Friday, September 17, 2010

Using tc to regulate downlink speed

tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate
100kbit burst 10k drop flowid :1

The second command limits the download rate to 100kbit by dropping packets. Since we do not want to drop too many packets, we setup a burst size size of 10k.

See this link for more details.
http://lartc.org/howto/lartc.cookbook.ultimate-tc.html

3 comments:

anjani02 said...

Business Analyst Course Online
Develop BA skills in requirements elicitation, stakeholder management, and process modeling. Get career-ready with documentation, UAT, and case study-based training.

Vijayitguru said...

tableau classes online
The best tableau course online offers comprehensive training to help you master Tableau through step-by-step, expert-led lessons.

Vijayitguru said...

tableau course online
The best tableau course online offers comprehensive training to help you master Tableau through step-by-step, expert-led lessons.