From: "Wingtung.Leung" <s965817@uia.ua.ac.be>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] RE: Priority to UDP?
Date: Tue, 29 May 2001 23:23:02 +0000 [thread overview]
Message-ID: <marc-lartc-99117890308158@msgid-missing> (raw)
In-Reply-To: <marc-lartc-99110132224525@msgid-missing>
On Tue, 29 May 2001, Daniel Lee wrote:
> I think the filter u32 in tc can do it. You can filter the packet by its
> protocol (UDP or TCP):
> e.g. : match ip protocol 0x6 0xff flowid 1:3
> and also give this filter and class 1:3 with higher priority.
> This should be original design of tc.
Another way is to mark the UDP packets with the firewall (iptables or
ipchains).
> However, according to my testing experience, it seems to have bugs in filter
> prio.
I made a few tests some time ago, and it works here. Just be sure that the
sum of the rate of the child classes is not equal to the rate of the
parent class.
I think a good setup would be:
root class: rate 10Mbit
|
|-- UDP class: rate 100Kbit (prio 1)
|
|-- TCP class: rate 100Kbit (prio 2)
This means both classes get a minimum of 100 Kbit, but as soon more
bandwidth is needed, the UDP class will be served first.
Try it!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
prev parent reply other threads:[~2001-05-29 23:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-29 1:50 [LARTC] RE: Priority to UDP? Daniel Lee
2001-05-29 23:23 ` Wingtung.Leung [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-99117890308158@msgid-missing \
--to=s965817@uia.ua.ac.be \
--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.