Created
September 27, 2012 14:34
-
-
Save pawel-dubiel/3794328 to your computer and use it in GitHub Desktop.
Emulate slow internet connection: #Fedora, #OpenSuse, #Gentoo, #Debian, #Mandriva, #Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add | |
sudo tc qdisc add dev eth0 root netem delay 250ms loss 20% reorder 25% 50% | |
----------------------- | |
change ( I need to edit this, just putting some examples for now ) | |
tc qdisc change dev eth0 root netem delay 250ms loss 20% reorder 25% 50% ) | |
tc qdisc change dev eth0 root netem gap 5 delay 100ms reorder 25% 69% loss 25% ) | |
---- | |
tc qdisc add dev eth0 root handle 1: htb default 12 | |
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 20kbps ceil 20kbps | |
tc qdisc add dev eth0 parent 1:12 netem delay 1000ms | |
---- | |
qdisc change dev eth0 root netem corrupt 50.0% | |
----------------------- | |
#To see what is configured on an interface | |
sudo tc -s qdisc ls dev eth0 | |
#To delete | |
sudo tc qdisc del dev eth0 root netem | |
----------------------- | |
latency ( tweak this later ) | |
GPRS: 700ms | |
HSPDA: 80-120ms | |
3G: 120ms | |
4G: 23ms | |
average packet loss: | |
average speed: | |
---------------------- | |
todo: | |
setup proxy on linux with mitmproxy | |
add proxy settings to wireless connection on iphone/android... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment