Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] High Latency With Tiered Queues
@ 2007-05-18  5:08 ISN Support Staff
  2007-05-30 20:34 ` Andy Furniss
  0 siblings, 1 reply; 2+ messages in thread
From: ISN Support Staff @ 2007-05-18  5:08 UTC (permalink / raw)
  To: lartc

Hello,

  I'm trying to setup what I thought would be a fairly basic tiered
shaping system.  I have a 6mbit (768kbps) link coming into my eth1
device, with my LAN IPs on the eth0 device.  I want to limit outgoing
traffic so that certain IPs are limited to 400kbps, with 3 classes under
that 400k so certain machines get prioritized (main servers in 1:21,
other servers in 1:22, workstations in 1:23)

  The problem is that when I turn this on, my packet latency jumps up by
50 to 100 times the normal rate.  I go from 10-20 ms ping times to
500-1600ms!  I've tried putting SFQ qdiscs under the classes, but that
makes no difference.

  I'm sure there is just some tuning parameter I'm not setting
correctly, but can somebody clue me in to what I'm doing wrong?  Or is
HTB just the wrong scheduler to be using here?  I tried CBQ, but I can't
get the tiers to work ( I keep getting RTNETLINK answers: Invalid
argument)  I'm currently using a single tiered CBQ solution, but it
really doesn't fit my needs.

Here's the full script:
-----------------------
qdisc add dev eth1 root handle 1: htb default 10
class add dev eth1 parent 1: classid 1:1 htb rate 768kbps
class add dev eth1 parent 1: classid 1:10 htb rate 250kbps ceil 768kbps
burst 6k
class add dev eth1 parent 1: classid 1:20 htb rate 100kbps ceil 400kbps
burst 6k
class add dev eth1 parent 1:20 classid 1:21 htb rate 75kbps ceil 375kbps
burst 6k
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.35 flowid 1:21
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.29 flowid 1:21
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.28 flowid 1:21
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.16 flowid 1:21
class add dev eth1 parent 1:20 classid 1:22 htb rate 15kbps ceil 350kbps
burst 6k
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.30 flowid 1:22
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.31 flowid 1:22
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.32 flowid 1:22
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.36 flowid 1:22
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.39 flowid 1:22
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.40 flowid 1:22
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.47 flowid 1:22
class add dev eth1 parent 1:20 classid 1:23 htb rate 10kbps ceil 200kbps
burst 6k
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.33 flowid 1:23
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.34 flowid 1:23
filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip src
192.168.1.37 flowid 1:23


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] High Latency With Tiered Queues
  2007-05-18  5:08 [LARTC] High Latency With Tiered Queues ISN Support Staff
@ 2007-05-30 20:34 ` Andy Furniss
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2007-05-30 20:34 UTC (permalink / raw)
  To: lartc

ISN Support Staff wrote:
> Hello,
> 
>   I'm trying to setup what I thought would be a fairly basic tiered
> shaping system.  I have a 6mbit (768kbps) link coming into my eth1
> device, with my LAN IPs on the eth0 device.  I want to limit outgoing
> traffic so that certain IPs are limited to 400kbps, with 3 classes under
> that 400k so certain machines get prioritized (main servers in 1:21,
> other servers in 1:22, workstations in 1:23)
> 
>   The problem is that when I turn this on, my packet latency jumps up by
> 50 to 100 times the normal rate.  I go from 10-20 ms ping times to
> 500-1600ms!  I've tried putting SFQ qdiscs under the classes, but that
> makes no difference.
> 
>   I'm sure there is just some tuning parameter I'm not setting
> correctly, but can somebody clue me in to what I'm doing wrong?  Or is
> HTB just the wrong scheduler to be using here?  I tried CBQ, but I can't
> get the tiers to work ( I keep getting RTNETLINK answers: Invalid
> argument)  I'm currently using a single tiered CBQ solution, but it
> really doesn't fit my needs.
> 
> Here's the full script:
> -----------------------
> qdisc add dev eth1 root handle 1: htb default 10

Using htb default will send arp to a really long (in this case) 
backlogged queue, which could cause problems.

Generally you need to classify low latency traffic to different class 
than bulk if you want it to stay low latency.

I am suprised sfq didn't help - maybe you also need to back off the 
ceils to allow for overheads on the quoted link speed.

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-30 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18  5:08 [LARTC] High Latency With Tiered Queues ISN Support Staff
2007-05-30 20:34 ` Andy Furniss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox