Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] bandwidth limit
Date: Fri, 17 May 2002 07:58:15 +0000	[thread overview]
Message-ID: <marc-lartc-102162237004283@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102161564832756@msgid-missing>

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/

      reply	other threads:[~2002-05-17  7:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17  6:06 [LARTC] bandwidth limit Rendel, Thorsten
2002-05-17  7:58 ` Stef Coene [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102162237004283@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox