* [LARTC] bandwidth limit
@ 2002-05-17 6:06 Rendel, Thorsten
2002-05-17 7:58 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Rendel, Thorsten @ 2002-05-17 6:06 UTC (permalink / raw)
To: lartc
Hi,
i am using the CBQ Qdisc as a shaper for my 100Mbit/s Ethernet LAN.
I want to limit a bounded, isolated CBQ Class to 10 Mbit/s.
# TC class add dev $DEVICE handle X:0 classid X:Y cbq bandwidth 100Mbit/s rate 10 Mbit/s prio bounded isolated avpkt 1000 allot 1514 weight 1 maxburst 15
In my testbed i use a SmartBit Hardware traffic generator to generate traffic streams, with different protcols and different paket length. I send a UDP traffic stream with 20 Mbit/s.
The results of my measurementes are that for a paket length of 1518 Bytes the shaping works fine, but for a length of 64 Byte the shapings works very bad. I got at the outgoing interface a bandwidth of 4 Mbit/s.
I changed the avpkt, maxburst and allot parameter, but the results didn´t become better.
What is the reson for this behavior?
Thanx
Thorsten
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] bandwidth limit
2002-05-17 6:06 [LARTC] bandwidth limit Rendel, Thorsten
@ 2002-05-17 7:58 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2002-05-17 7:58 UTC (permalink / raw)
To: lartc
On Friday 17 May 2002 08:06, Rendel, Thorsten wrote:
> Hi,
> i am using the CBQ Qdisc as a shaper for my 100Mbit/s Ethernet LAN.
> I want to limit a bounded, isolated CBQ Class to 10 Mbit/s.
> # TC class add dev $DEVICE handle X:0 classid X:Y cbq bandwidth 100Mbit/s
> rate 10 Mbit/s prio bounded isolated avpkt 1000 allot 1514 weight 1
> maxburst 15 In my testbed i use a SmartBit Hardware traffic generator to
> generate traffic streams, with different protcols and different paket
> length. I send a UDP traffic stream with 20 Mbit/s. The results of my
> measurementes are that for a paket length of 1518 Bytes the shaping works
> fine, but for a length of 64 Byte the shapings works very bad. I got at the
> outgoing interface a bandwidth of 4 Mbit/s. I changed the avpkt, maxburst
> and allot parameter, but the results didn´t become better. What is the
> reson for this behavior?
CBQ implementation.
It uses the packet size as an internal parameter to calculate the idle time
of the link. With the avpkt you set the average packet size, so if you leave
it on 1000, the shaping is fine for packets of 1528 bytes. If you use
smaller packets, you should adjust avpkt (packet size of 64byte : avpkt 64 or
even smaller). After that, you should be able to shape the small packets
like you want. But I never tested it for such small packets.
Anyway, for normal traffic, avpkt = 1000 is a good choice.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-17 7:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-17 6:06 [LARTC] bandwidth limit Rendel, Thorsten
2002-05-17 7:58 ` Stef Coene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox