* [LARTC] Directing traffic to prio qdisc bands
@ 2001-04-19 13:35 Oded Shaham
2001-04-20 6:16 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Oded Shaham @ 2001-04-19 13:35 UTC (permalink / raw)
To: lartc
Hi,
I want to use the prio qdisc for prioritizing outgoing TCP SYNs over all
other outgoing traffic.
I have managed to attach a prio qdisc to the root of an Ethernet device, by:
tc qdisc add dev eth0 root handle 1: prio
Now I want to do 2 things:
1. create a filter to catch TCP SYNs, and attach it to band 0 (highest
priority).
2. direct all other traffic to higher bands (1 or 2).
I know how to define the appropriate filter with u32; there is a similar
example in the LARTC HOWTO, for capturing ACKs. What I don't know is how to
direct the traffic captured by a filter to a specific band. In the HOWTO I
only see examples for attaching filters to CBQ classes.
Can someone advise me on this one ?
Best Regards,
Oded
Oded Shaham
Flash Networks
16 Galgalei Haplada, Herzliya, Israel
Tel: +972-9-9580666 ext. 215
Fax: +972-9-9564888
Cell phone: +972-5-4552009
Email: oded@flashnetworks.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Directing traffic to prio qdisc bands
2001-04-19 13:35 [LARTC] Directing traffic to prio qdisc bands Oded Shaham
@ 2001-04-20 6:16 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2001-04-20 6:16 UTC (permalink / raw)
To: lartc
I think it's easier to use ipchains :
ipchains -A output -m 1 # Mark every packet with "1"
ipchains -A output -m 2 -y -p tcp # Mark SYN with "2"
The filter rules :
tc filter add $DEV parent 10: protocol ip prio 3 handle 2 fw classid
10:2 # Put SYN in sub class 10:2
tc filter add $DEV parent 10: protocol ip prio 3 handle 2 fw classid
10:2
(I don't know the exact syntax for the prio-qdisc)
Staf
More QOS info : http://users.belgacom.net/staf/
Oded Shaham wrote:
>
> Hi,
> I want to use the prio qdisc for prioritizing outgoing TCP SYNs over all
> other outgoing traffic.
> I have managed to attach a prio qdisc to the root of an Ethernet device, by:
>
> tc qdisc add dev eth0 root handle 1: prio
>
> Now I want to do 2 things:
> 1. create a filter to catch TCP SYNs, and attach it to band 0 (highest
> priority).
> 2. direct all other traffic to higher bands (1 or 2).
>
> I know how to define the appropriate filter with u32; there is a similar
> example in the LARTC HOWTO, for capturing ACKs. What I don't know is how to
> direct the traffic captured by a filter to a specific band. In the HOWTO I
> only see examples for attaching filters to CBQ classes.
>
> Can someone advise me on this one ?
>
> Best Regards,
> Oded
>
> Oded Shaham
> Flash Networks
> 16 Galgalei Haplada, Herzliya, Israel
> Tel: +972-9-9580666 ext. 215
> Fax: +972-9-9564888
> Cell phone: +972-5-4552009
> Email: oded@flashnetworks.com
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-20 6:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 13:35 [LARTC] Directing traffic to prio qdisc bands Oded Shaham
2001-04-20 6:16 ` Stef Coene
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.