Simple Traffic Control Question (Howto)
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!
Cheers, Mario
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 22 lines · Mario Ohnewald
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 302.) then i have to add qdisc to a class?
example: tc qdisc add dev ppp0 root tbf rate 220kbit latency 50ms burst 1540
Quoted 7 lines
3.) set filter ?
example: tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip dport 220xffffflowid 1:1I 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. If you add a root qdisc that supports classes, you can add extra classes. You also need some filter to put the traffic from the root qdisc in the class you want. 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. 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).
I hope this helps.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi,
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Stef Coene
Sent: Thursday, October 10, 2002 10:34 PM
To: Mario Ohnewald; [email protected]
Subject: Re: [LARTC] Simple Traffic Control Question (Howto)
Quoted 7 lines
Quoted 6 lines · Mario Ohnewald
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
Quoted 4 lines
Quoted 4 lines
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)
Quoted 8 lines
Quoted 8 lines
(...)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
Quoted 6 lines
Quoted 6 lines
2.) then i have to add qdisc to a class?
example: tc qdisc add dev ppp0 root tbf rate 220kbit latency 50ms burst 15403.) set filter ?
example: tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match
ip
Quoted 8 lines
Quoted 5 lines
dport 22
0xffffflowid 1:1I 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
Quoted 2 lines
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
Quoted 2 lines
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
Quoted 2 lines
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 ???????????Quoted 4 lines
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?
Quoted 5 lines
I hope this helps.
Stef
Cheers, Mario
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/