* [LARTC] tc doesn't shape correct
@ 2007-11-28 10:42 Johan Huysmans
2007-12-03 8:57 ` Johan Huysmans
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Johan Huysmans @ 2007-11-28 10:42 UTC (permalink / raw)
To: lartc
Hi All,
I'm configuring my natting-firewall to do some tc shaping. Some traffic
has to be shaped on 30mbit, some on 10mbit all the others are unlimited.
The configuring and filtering works correctly. The traffic that is
shaped at 30mbit is correct, but the traffic that is shapped at 10mbit
only gets to 100KB/sec.
It is on a device configured with bonding (both in and out interface).
Any clue why shaped traffic at 10mbit only gets to 100KB/sec and not faster?
Thx for any response,
Johan Huysmans
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] tc doesn't shape correct
2007-11-28 10:42 [LARTC] tc doesn't shape correct Johan Huysmans
@ 2007-12-03 8:57 ` Johan Huysmans
2007-12-03 10:05 ` Stanislav Kruchinin
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Johan Huysmans @ 2007-12-03 8:57 UTC (permalink / raw)
To: lartc
Here is my tc config, maybe something is wrong with that config:
/sbin/tc qdisc del dev bond1 root
/sbin/tc qdisc add dev bond1 root handle 1: htb default 1
/sbin/tc class add dev bond1 parent 1: classid 1:1 htb rate 1000mbit burst 1310720
/sbin/tc class add dev bond1 parent 1: classid 1:2 htb rate 30mbit burst 39321
/sbin/tc class add dev bond1 parent 1: classid 1:3 htb rate 10mbit burst 13107
/sbin/tc filter add dev bond1 parent 1: protocol ip prio 0 handle 1 fw flowid 1:2
/sbin/tc filter add dev bond1 parent 1: protocol ip prio 0 handle 2 fw flowid 1:3
Any help appreciated!
Johan Huysmans wrote:
> Hi All,
>
> I'm configuring my natting-firewall to do some tc shaping. Some
> traffic has to be shaped on 30mbit, some on 10mbit all the others are
> unlimited.
> The configuring and filtering works correctly. The traffic that is
> shaped at 30mbit is correct, but the traffic that is shapped at 10mbit
> only gets to 100KB/sec.
>
> It is on a device configured with bonding (both in and out interface).
>
> Any clue why shaped traffic at 10mbit only gets to 100KB/sec and not
> faster?
>
> Thx for any response,
> Johan Huysmans
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] tc doesn't shape correct
2007-11-28 10:42 [LARTC] tc doesn't shape correct Johan Huysmans
2007-12-03 8:57 ` Johan Huysmans
@ 2007-12-03 10:05 ` Stanislav Kruchinin
2007-12-03 12:05 ` Johan Huysmans
2007-12-07 15:00 ` Andy Furniss
3 siblings, 0 replies; 5+ messages in thread
From: Stanislav Kruchinin @ 2007-12-03 10:05 UTC (permalink / raw)
To: lartc
Johan Huysmans wrote:
> Here is my tc config, maybe something is wrong with that config:
>
> /sbin/tc qdisc del dev bond1 root
> /sbin/tc qdisc add dev bond1 root handle 1: htb default 1
> /sbin/tc class add dev bond1 parent 1: classid 1:1 htb rate 1000mbit
> burst 1310720
> /sbin/tc class add dev bond1 parent 1: classid 1:2 htb rate 30mbit
> burst 39321
> /sbin/tc class add dev bond1 parent 1: classid 1:3 htb rate 10mbit
> burst 13107
I think you should try to set "quantum" parameter of all leaf classes to
the value at least as high as MTU, e.g. 1500 for Ethernet, and to
increase the burst of 1:3 class.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] tc doesn't shape correct
2007-11-28 10:42 [LARTC] tc doesn't shape correct Johan Huysmans
2007-12-03 8:57 ` Johan Huysmans
2007-12-03 10:05 ` Stanislav Kruchinin
@ 2007-12-03 12:05 ` Johan Huysmans
2007-12-07 15:00 ` Andy Furniss
3 siblings, 0 replies; 5+ messages in thread
From: Johan Huysmans @ 2007-12-03 12:05 UTC (permalink / raw)
To: lartc
none of these changes corrected my problem.
Stanislav Kruchinin wrote:
> Johan Huysmans wrote:
>
>> Here is my tc config, maybe something is wrong with that config:
>>
>> /sbin/tc qdisc del dev bond1 root
>> /sbin/tc qdisc add dev bond1 root handle 1: htb default 1
>> /sbin/tc class add dev bond1 parent 1: classid 1:1 htb rate 1000mbit
>> burst 1310720
>> /sbin/tc class add dev bond1 parent 1: classid 1:2 htb rate 30mbit
>> burst 39321
>> /sbin/tc class add dev bond1 parent 1: classid 1:3 htb rate 10mbit
>> burst 13107
>>
>
> I think you should try to set "quantum" parameter of all leaf classes to
> the value at least as high as MTU, e.g. 1500 for Ethernet, and to
> increase the burst of 1:3 class.
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] tc doesn't shape correct
2007-11-28 10:42 [LARTC] tc doesn't shape correct Johan Huysmans
` (2 preceding siblings ...)
2007-12-03 12:05 ` Johan Huysmans
@ 2007-12-07 15:00 ` Andy Furniss
3 siblings, 0 replies; 5+ messages in thread
From: Andy Furniss @ 2007-12-07 15:00 UTC (permalink / raw)
To: lartc
Johan Huysmans wrote:
> Here is my tc config, maybe something is wrong with that config:
>
> /sbin/tc qdisc del dev bond1 root
I would see if it's the same on normal eth and/or try using child queues
on the classes - htb may be using a very small queuelen because there is
no default queue on the bond.
> /sbin/tc qdisc add dev bond1 root handle 1: htb default 1
> /sbin/tc class add dev bond1 parent 1: classid 1:1 htb rate 1000mbit
> burst 1310720
This isn't really shaping anyway (rate 1000 is too high because of
overheads) so I would use default 0 (or don't specify) which means
unclassified traffic goes unshaped. HTB default also catches arp which
is worth considering.
There could be other reasons - timers maybe, or if your nic uses tcp
segmentation offload then locally generated tcp may go through a super
sized packets - this makes htb underlimit them and shows a giants on the
output of -
tc -s class ls dev ..
you can turn TSO off with ethtool -k
On the filters prio 0 is not the highest 1 is, thouh it won't matter here.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-07 15:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 10:42 [LARTC] tc doesn't shape correct Johan Huysmans
2007-12-03 8:57 ` Johan Huysmans
2007-12-03 10:05 ` Stanislav Kruchinin
2007-12-03 12:05 ` Johan Huysmans
2007-12-07 15:00 ` Andy Furniss
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.