Improved performance on up/download even though only sip was prioritized - please explain

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

my wan connection is 7000kbit down and 800kbit up.

If i setup a download and upload at the same time, speed drops to 60KB/s down and 70KB/s up. This is an expected behavior without any shaping.

As i only wanted to give my PBX (192.168.0.101) a fixed bandwidth for sip, i came up with the following:

tc qdisc add dev pppoe-wan root       handle 1:    htb default 30
tc class add dev pppoe-wan parent 1:  classid 1:1  htb rate 800kbit
tc class add dev pppoe-wan parent 1:1 classid 1:10 htb rate 120kbit # voip
tc class add dev pppoe-wan parent 1:1 classid 1:30 htb rate 680kbit # default
 
iptables -t mangle -A FORWARD -s 192.168.0.101 -j CLASSIFY --set-class 1:10

It does what i want, reserves 120kbit for traffic from 192.168.0.101. 

However the nice side effect is, that this also boosts my download/uploads and i have no idea why. 

Download is at 650KB/s and upload is around 65KB/s.

Can anyone explain this behavior?

Thank you in advance.

Stefan

root@OpenWrt:~# tc -s class show dev pppoe-wan
class htb 1:10 parent 1:1 prio 0 rate 120000bit ceil 120000bit burst 1599b cburst 1599b 
 Sent 140214 bytes 295 pkt (dropped 486, overlimits 0 requeues 0) 
 rate 7584bit 2pps backlog 0b 0p requeues 0 
 lended: 295 borrowed: 0 giants: 0
 tokens: -583208 ctokens: -583208

class htb 1:1 root rate 800000bit ceil 800000bit burst 1600b cburst 1600b 
 Sent 12418167 bytes 25721 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 535272bit 235pps backlog 0b 0p requeues 0 
 lended: 0 borrowed: 0 giants: 0
 tokens: -26351 ctokens: -26351

class htb 1:30 parent 1:1 prio 0 rate 680000bit ceil 680000bit burst 1599b cburst 1599b 
 Sent 12280937 bytes 25428 pkt (dropped 6548, overlimits 0 requeues 0) 
 rate 527480bit 233pps backlog 0b 2p requeues 0 
 lended: 25426 borrowed: 0 giants: 0
 tokens: -274731 ctokens: -274731
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux