webmetrics / browsermob-proxy

NOTICE: this project has been forked and is being maintained at https://github.com/lightbody/browsermob-proxy
https://github.com/lightbody/browsermob-proxy
Apache License 2.0
232 stars 764 forks source link

Network simulations #10

Open nmcconom opened 12 years ago

nmcconom commented 12 years ago

As well as the options to control network speed and latency - an option to control jitter and packet loss ratio would be very useful to use the tool to simulate mobile network environments for actual mobile devices connecting through your wireless card or simulating it with user-agents being changed in the browser.

lightbody commented 12 years ago

Would love to do this. Do you have any idea what the algorithms or inputs might look like for such behavior?

nmcconom commented 12 years ago

Not sure to be honest in Java - for Linux in the past we scripted stuff using the tc command - http://www.topwebhosts.org/tools/traffic-control.php

lightbody commented 12 years ago

If someone decides to take a look at this, check out SimulatedSocket. Most of the framework is already set up, we just need a decent algorithm to control PL and jitter.