Skip to contentSkip to conversation

Priority to UDP?

LARTC Daniel Lee 2 participants 2 messages May 29, 2001

lore
Share & tools
lore

Daniel Lee

author
#0 lore raw

Message: 4
Date: Mon, 28 May 2001 00:58:39 -0700 (PDT)
From: Doug Rosser <[email protected]>
To: [email protected]
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
[email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc

End of LARTC Digest

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#1 lore raw
Quoted 5 lines · Daniel Lee

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).

Quoted 2 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/