|
|
|
|
|
by gmazza
3365 days ago
|
|
> Wrong: you see 10KB/s download speed because you are not throttling the incoming packets but the outgoing packets! Yep. TC's default is to policy outgoing traffic, which in OP's example is a bunch of TCP ACKs essentially. Instead, they should be using ingress keyword, something like described here: http://blog.stevedoria.net/20050906/ingress-policing-with-li... Caveat emptor: ingress rate-limiting is hard. Long story short, it all boils down to what you do with non-confirming packets: There are two alternatives, and both are rather sub-optimal. You can either buffer/delay packets in kernel space (default, which leads to bufferbload and memory waste), or drop (which author linked above opted for, which leads to excessive retransmits and bandwidth waste). |
|