My Linux machine acts as a IP-masquerading gateway for my home LAN and also hosts a small mailinglist. I am using redhat 7.1, which appears to have iproute installed by default. I simply want to give UDP packets a higher priority over all other traffic. Reason: when my wife surfs the web or the mailinglist has traffic, my online shoot ''em up games "lag out" (the latency increase makes the game unplayable). 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)... __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
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
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!