From: "Mario Ohnewald" <mario.ohnewald@gmx.de>
To: lartc@vger.kernel.org
Subject: RE: [LARTC] Simple Traffic Control Question (Howto)
Date: Sun, 13 Oct 2002 21:10:33 +0000 [thread overview]
Message-ID: <marc-lartc-103454343321126@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103428117408329@msgid-missing>
Hi,
>-----Original Message-----
>From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]On
>Behalf Of Stef Coene
>Sent: Thursday, October 10, 2002 10:34 PM
>To: Mario Ohnewald; lartc@mailman.ds9a.nl
>Subject: Re: [LARTC] Simple Traffic Control Question (Howto)
>
>
>On Friday 11 October 2002 22:21, Mario Ohnewald wrote:
>> Hello!
>> I have read the Howto (Section 9 exspecially!) a few times. It might be
>> the language that
>> i not get this or whatever!
>>
>> I want to make sure that port 14567 (upd) is in a priority 1 band
(Minimum
>> Delay).
>>Port 14567 is used by an Online game, a low ping is badly needed.
>>
>> I decided to use Token Bucket Filter ( i hope i have chosen the right
one)
>>
>> (...)Note that we use 'tc class add' to CREATE classes within a qdisc,
>> but that we use 'tc qdisc add' to actually add qdiscs to these
>> classes.(...)
>>
>> 1.) Do i have to create a class first ?
>> example: tc qdisc add dev ppp0 root handle 1: htb default 30
>>
>> 2.) then i have to add qdisc to a class?
>> example: tc qdisc add dev ppp0 root tbf rate 220kbit latency 50ms burst
>> 1540
>>
>> 3.) set filter ?
>> example: tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match
ip
>> dport 22 0xffff flowid 1:1
>>
>>
>> I have read the howto but i can not find my mistake!
>> I hope u can help me, i am really new to this!
>You first have to add a root qdisc. There is exactly 1 root qdisc /
>interface.
>
Like that:
tc qdisc add dev eth0 root handle 1: prio
>If you add a root qdisc that supports classes, you can add extra
>classes.
tc qdisc add dev eth0 root handle 1: prio
## This *instantly* creates classes 1:1, 1:2, 1:3
>You also need some filter to put the traffic from the root qdisc in
>the class you want.
Like that:
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32
>Each class has 1 qdisc attached to it. This is (by
>default) a prio qdisc. But you can change it to an other qdisc if you
want.
e.g.
tc filter add dev eth0 protocol ip parent 1:1 prio 2 u32
^^ ^^
band1 priority 2 ???????????
>
>Tbf is not a good choice as qdisc because it bounds the traffic. But this
>can also be done at class level with htb (ceil parameter) or cbq (bounded
>parameter).
What have i used above? None of cbj tbf or htb, have I?
>
>I hope this helps.
>
>Stef
>
Cheers, Mario
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2002-10-13 21:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-10 20:19 [LARTC] Simple Traffic Control Question (Howto) Mario Ohnewald
2002-10-10 20:34 ` Stef Coene
2002-10-13 21:10 ` Mario Ohnewald [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-103454343321126@msgid-missing \
--to=mario.ohnewald@gmx.de \
--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.