All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] htb parameter problem
Date: Mon, 10 Mar 2003 17:51:19 +0000	[thread overview]
Message-ID: <marc-lartc-104731876012702@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104701906522033@msgid-missing>

> I don't know about it.why do that? How to it?
By specifying a default class (see comments below) or a "catch all rules".  I 
see you use the fw rule.  If you add 

iptables -t mangle -A FORWARD -o eth0 -s 0/0  -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -i eth0 -s 0/0 -j MARK --set-mark 1

as the first iptables rules, all packets are marked (you can overwrite this 
mark with the other iptalbes rules).  And if you add an extra filter rule 
that puts the packets marked with 1 in a class, you have a "catch all rule".  
You can also add a "catch all" u32 filter rule as the last filter.

> > and you don't specified a default class.
> I don't know about it and why do that ? how to do it?
If you add the htb qdisc, you can specify a default class.  Like
tc qdisc add dev eth1 root handle 10: htb default 20
So 10:20 is the default class.  If a packet is not matched by any filter, it 
ends in the default class.  It's also best to specify a default class so you 
know all the packets are ending in a class.

> >Don't worry about these numbers :)
> >ctokens < 0 means the class sent more then the ceil because parent child
> >classes are asking too much bandwidth.  Same for tokens and rate.
>
> If I want to fixate every class bandwidth. not lended and not borrow .How
> to do it.
By not specifying a ceil parameter.  So rate = ceil.  Or of course you can add 
a ceil parameter like 
tc class add dev eth0 parent 10:1 classid 10:10 htb rate 3mbit ceil 3mbit

> cburst play tricks??
> On www.docum.org's FAQ have :
>
> The same story goes for ceil and cburst, you don't want the class to send
> more packets then it's ceil allows. So removing the cburst is a good choice
> for that case.
Cburst and burst is for something else.  That can be used if you want a class 
to be able to "break" the rate and ceil limitations.  If you want the ceil 
parameter to be respected very strictly so the class never can send more then 
it's ceil, you have to remove the cburst parameter if you add a class so htb 
can calculate the smalles one for you.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-03-10 17:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-07  6:36 [LARTC] htb parameter problem liang jian
2003-03-07  6:55 ` Martin A. Brown
2003-03-07  8:53 ` liang jian
2003-03-08 19:39 ` Stef Coene
2003-03-10  2:02 ` liang jian
2003-03-10 13:01 ` Kertész Viktor
2003-03-10 17:51 ` Stef Coene [this message]
2003-03-12 12:48 ` liang jian
2003-03-12 20:48 ` Stef Coene
2003-03-13  2:31 ` liang jian

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-104731876012702@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 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.