All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] RE: Priority to UDP?
@ 2001-05-29  1:50 Daniel Lee
  2001-05-29 23:23 ` Wingtung.Leung
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Lee @ 2001-05-29  1:50 UTC (permalink / raw)
  To: lartc


Message: 4
Date: Mon, 28 May 2001 00:58:39 -0700 (PDT)
From: Doug Rosser <da_rosser@yahoo.com>
To: lartc@mailman.ds9a.nl
Subject: [LARTC] Priority to UDP?

->I simply want to give UDP packets a higher priority
->over all other traffic.
->Is there a simple way to do this? Most of the examples
->I've seen perform prioritization based upon address
->(customer A gets a higher priority than customer B)...

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.

However, according to my testing experience, it seems to have bugs in filter
prio.  

Daniel Lee




__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



--__--__--

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc


End of LARTC Digest

_______________________________________________
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] RE: Priority to UDP?
  2001-05-29  1:50 [LARTC] RE: Priority to UDP? Daniel Lee
@ 2001-05-29 23:23 ` Wingtung.Leung
  0 siblings, 0 replies; 2+ messages in thread
From: Wingtung.Leung @ 2001-05-29 23:23 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-29 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-29  1:50 [LARTC] RE: Priority to UDP? Daniel Lee
2001-05-29 23:23 ` Wingtung.Leung

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.