It seems in Facebooks quest to get its apps under control, they built an opensource project that you can toss onto a gateway system to modify the bandwidth the test device can have access too. It looks pretty neat.
http://www.theregister.co.uk/2015/03/24/facebook_network_simulator/