Policing
HI
I have read the advanced routing and traffic control and have a question on policing. I am using RH 7.1 and have two interfaces, one eth0 to the internet 256K and one eth1 to some 50 students on a LAN connected via a 2 MBPS wireless link. Now it seems that when the wireless link goes down for a few seconds, there is a burst of incoming traffic and my linux box crashes (my theory). How do I configure policing to limit the traffic when the link comes up again ?
Thanks
Rajiv
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 8 lines · Rajiv Ghai
HI
I have read the advanced routing and traffic control and have a question on policing. I am using RH 7.1 and have two interfaces, one eth0 to the internet 256K and one eth1 to some 50 students on a LAN connected via a 2 MBPS wireless link. Now it seems that when the wireless link goes down for a few seconds, there is a burst of incoming traffic and my linux box crashes (my theory). How do I configure policing to limit the traffic when the link comes up again ?
I'm not sure if policing will solve your problem.
To police incoming traffic, you need to add an ingress qdisc. And 1 filter that matches all traffic and you need to configure the filter with a policer. If the incoming rate exceeds the rate of the policer, all incoming packets above that rate are dropped.
I have no examples to show you, but if you download the iproute2 source, you will find some examples in the examples directory.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
My attempts to configure policing are stopping incoming traffic all together.
From the LARTC HOWTO, I gather that the following lines should limit
incoming traffic on eth0 to 32kbit by dropping packets above this threshold:
tc qdisc add dev eth0 ingress tc filter add dev eth0 parent ffff: protocol ip u32 \ match u8 0x0 0x0 \ police rate 32kbit burst 10k drop \ classid :1
Instead, they stop all incoming traffic. From tcpdump, I can tell that packets are outgoing by this interface, but none are incomming.
I'm running a custom 2.4.27 kernel & Debian unstable; iproute 20010824-13.1.
Can anyone offer some insight?
Thanks!
Jack
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/