All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stafke@iname.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Directing traffic to prio qdisc bands
Date: Fri, 20 Apr 2001 06:16:57 +0000	[thread overview]
Message-ID: <marc-lartc-98774757521085@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98768729218127@msgid-missing>

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/

      reply	other threads:[~2001-04-20  6:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-19 13:35 [LARTC] Directing traffic to prio qdisc bands Oded Shaham
2001-04-20  6:16 ` Stef Coene [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-98774757521085@msgid-missing \
    --to=stafke@iname.com \
    --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.