Altq limits not being applied to UDP transfers

Posted by overkordbaever on Server Fault See other posts from Server Fault or by overkordbaever
Published on 2010-05-09T20:10:05Z Indexed on 2010/05/09 20:19 UTC
Read the original article Hit count: 293

Filed under:
|
|
|
|

I have a OpenBSD server acting as a router/firewall with yhr packet filter ruleset shown below, a linux server, and a linux client.

When transferring files (using netcat) by TCP, the limits are applied (for example the 100mbit limit in the example), though when transferring data by UDP, the limits aren't applied; the file always takes the same amount of time no matter the queue bandwidth limit I set (I can even turn off the queues completely, and will still get the same result).

Why aren't the queuing rules applied to UDP packages?

The rules used:

#queue rules
altq on { $int_if, $ext_if } cbq bandwidth 100Mb queue { def, low }
queue def bandwidth 0Mb cbq(default)
queue low bandwidth 100Mb cbq

#Passrules test

pass out quick from $int_if to $ext_if queue low
pass in quick from $ext_if to $int_if queue low
pass out quick from $ext_if to $int_if queue low
pass in quick from $int_if to $ext_if queue low

I suppose this may be related a question I've previously asked, though since it's more of a separate question, I suppose a separate question should be used for this

© Server Fault or respective owner

Related posts about udp

Related posts about packet