Skip to contentSkip to conversation

TBF settings

LARTC Jean-Francois Lemieux [email protected] 2 participants 3 messages Feb 2, 2001

lore
Share & tools
lore

Jean-Francois Lemieux [email protected]

author
#0 lore raw

I presently use TBF with this syntax:

tc qdisc add dev eth0 parent 1:100 tbf buffer=15000/8 LIMIT=30000 MTU=1500

parent class is a cbq with rate=128Kbit

when I want to add PEAK, I get always RTNETLINK error: Invalid argument. Maybe be I don't understand this parameter. What I know about it, it's that it can control short-term burst traffic, and it's what I need to do.

---Jean-Francois LemieuxIT CONSULTANTMCJ CONSEIL INC

---
Jean-Francois Lemieux
Directeur des projets
MCJ Conseil Inc.

---------------------------------
Do You Yahoo!?
- Get personalized email addresses from Yahoo! Mail Personal Address - only $35 a year!

#1 lore raw

<PRE>On Fri, Feb 02, 2001 at 08:38:21AM -0800, Jean-Francois Lemieux wrote:

&gt;<i> tc qdisc add dev eth0 parent 1:100 tbf buffer000/8 LIMIT0000 MTU00
</I>&gt;<i>
</I>&gt;<i> parent class is a cbq with rate8Kbit
</I>&gt;<i>
</I>&gt;<i> when I want to add PEAK, I get always RTNETLINK error: Invalid argument. Maybe be I don't understand this parameter. What I know about it, it's that it can control short-term burst traffic, and it's what I need to do. </I>
If I remember correctly, you can't 'overspecify' the tbf. So either you set
peak, or you set limit/buffer.

But my recollection is very hazy about this.

Regards,

bert

Signature · 6 lines
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet


</PRE>
author
#2 lore raw
In reply to Jean-Francois Lemieux [email protected]

I just try this :

tc qdisc add dev eth0 parent 1:100 tbf peak=128Kbit mtu=1500

I've got the same error; an other idea?

bert hubert &lt;<A HREF="mailto:[email protected]">[email protected]</A>&gt; wrote:
On Fri, Feb 02, 2001 at 08:38:21AM -0800, Jean-Francois Lemieux wrote:

&gt;<i> tc qdisc add dev eth0 parent 1:100 tbf buffer=15000/8 LIMIT=30000 MTU=1500
</I>&gt;<i>
</I>&gt;<i> parent class is a cbq with rate=128Kbit
</I>&gt;<i>
</I>&gt;<i> when I want to add PEAK, I get always RTNETLINK error: Invalid argument. Maybe be I don't understand this parameter. What I know about it, it's that it can control short-term burst traffic, and it's what I need to do. </I>
If I remember correctly, you can't 'overspecify' the tbf. So either you set
peak, or you set limit/buffer.

But my recollection is very hazy about this.

Regards,

bert

Signature · 15 lines
PowerDNS Versatile DNS Services 
Trilab The Technology People 
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet

---
Jean-Francois Lemieux
Directeur des projets
MCJ Conseil Inc.




---------------------------------
Do You Yahoo!?
- Get personalized email addresses from Yahoo! Mail Personal Address  - only $35 a year!