* [LARTC] Policing
@ 2002-12-02 18:24 Rajiv Ghai
2002-12-03 10:24 ` Stef Coene
2004-10-26 19:24 ` ms419
0 siblings, 2 replies; 3+ messages in thread
From: Rajiv Ghai @ 2002-12-02 18:24 UTC (permalink / raw)
To: lartc
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Policing
2002-12-02 18:24 [LARTC] Policing Rajiv Ghai
@ 2002-12-03 10:24 ` Stef Coene
2004-10-26 19:24 ` ms419
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2002-12-03 10:24 UTC (permalink / raw)
To: lartc
On Tuesday 03 December 2002 08:50, Rajiv Ghai wrote:
> 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
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LARTC] Policing
2002-12-02 18:24 [LARTC] Policing Rajiv Ghai
2002-12-03 10:24 ` Stef Coene
@ 2004-10-26 19:24 ` ms419
1 sibling, 0 replies; 3+ messages in thread
From: ms419 @ 2004-10-26 19:24 UTC (permalink / raw)
To: lartc
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-26 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 18:24 [LARTC] Policing Rajiv Ghai
2002-12-03 10:24 ` Stef Coene
2004-10-26 19:24 ` ms419
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.