From: lartc@pro-technica.com Date: Sat, 31 Jan 2004 21:11:56 +0000 Subject: [LARTC] Re: tc filter protocol arp question Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Alexander Clouter writes: > On Jan 31, lartc@pro-technica.com 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 > > -- > _______________________ > < All's well that ends. > > ----------------------- > \ ^__^ > \ (oo)\_______ > (__)\ )\/\ > ||----w | > || || I manage lan network with more that 1000 home users. Every user have iptables/tc pairs for marking packets/traffic limiting. Entire network operate via dhcp. If I miss only one user from shaper then his traffic going to default class. This class must have very low rate ( abount 1Kbit ). There going dhcp conversation. If missed user start to download, entire network lose dhcp server becouse of dropped packets. So I really need to give dhcp server priority. I thing that 512Kbit is over that enough to satisfy about 500 winbozes, powered on in ten minutes period. ( This is not a joke, I see that nightmare every evening... ) Such a rule 'tc filter add dev eth0 protocol arp flowid ... ' i see in lartc.org and somewhere in mailing list. But this don't work on my linux ( RedHat Advanced Server 3 ). -- Svetozar _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/