Skip to contentSkip to conversation

tc filter protocol arp question

LARTC [email protected] 2 participants 2 messages Jan 31, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I try to shape dhcp requests, but filter rule don't work. My script is:

# Init Shaper for dev eth1
tc qdisc del dev eth1 root

# Init shaper root for dev eth1
tc qdisc add dev eth1 root handle 2: htb default 200

# Default shaper for dev eth1
tc class add dev eth1 parent 2:0 classid 2:200 htb rate 10Mbit prio 10 tc qdisc add dev eth1 parent 2:200 sfq perturb 10

# Init DHCPD shaper for dev eth1 , rate 512Kbit , ceil 512Kbit , dest src, prio 1
tc class add dev eth1 parent 2:0 classid 2:10 htb rate 512Kbit ceil 512Kbit prio 1
tc qdisc add dev eth1 parent 2:10 sfq perturb 10
tc filter add dev eth1 parent 2: protocol arp prio 1 flowid 2:10

Last line give me an error:

tc filter add dev eth1 parent 2: protocol arp prio 1 flowid 2:10 Unknown filter "flowid", hence option "2:10" is unparsable

How to select entire arp protocol ( dhcp conversation )?

Thanks.

--
Svetozar Mihailov

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

#1 lore raw
Quoted 6 lines · On Jan 31, [email protected] wrote:

Hello,

I try to shape dhcp requests, but filter rule don't work. My script is:

[snipped]

I really think you have other problems if you need to shape DHCP requests and their responses. If we overlook the logistical part (QoS under linux only see's IP packets iirc, and so ARP packets are invisible) and look at what you are trying to achieve.

QoS you should seen as a way of saying "this group of packets can arrive 'later' without really any effect" or "these packets should arrive as soon as possible". DHCP does not have realtime requirements, hell I could not care if it takes 2 seconds to renew my DHCP lease or 10 seconds. If you do worry about things then consider a large lease time or better still look at what traffic is on your network and reduce it; Windoze NetBIOS is a common thing that can affect large networks.

I am unsure why _anyone_ would want to prioritise DHCP traffic, it operates over an unreliable protocol and is built to try to obtain an IP address over a period of 30 seconds; if you cannot get a DHCP lease in that time (even on a congested network) then you have other problems which should probably be addressed in manner other than QoS.

Obviously we would like to help, but we are unsure why you would want to do such a thing, "Its damn right crazy man!" :)

Regards

Alex

Signature · 8 lines
 _______________________ 
< All's well that ends. >
 ----------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||