All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] how flexible is ingress traffic policing to bandwidth limit?
@ 2004-06-08 18:35 Greg Stark
  2004-06-08 19:07 ` Jason Boxman
  2004-06-09  0:08 ` [LARTC] how flexible is ingress traffic policing to bandwidth Damion de Soto
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Stark @ 2004-06-08 18:35 UTC (permalink / raw)
  To: lartc


[I sent this earlier but I guess the list is subscriber-only?]

I just set up wondershaper, it has a simple filter on the downstream
direction to limit the bandwidth usage:

tc qdisc add dev $DEV handle ffff: ingress
tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
   0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1

This is effective but is there any way to tell it to choose only certain kinds
of streams for dropping packets? Minimally I would want to tell it to never
drop any packets in a certain list of port numbers. 

Ideally I would want it to never drop any packets that fall into the 1:10
flowid that is set up earlier in wondershaper. I'm unclear if that's possible
though since that flowid is set up for outgoing packets, and some of the
filters don't even make sense for incoming packets (TOS for example).

But even if I could just tell it to never choose packets from particular
ports, that would satisfy my immediate needs.


-- 
greg

_______________________________________________
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-06-09  0:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 18:35 [LARTC] how flexible is ingress traffic policing to bandwidth limit? Greg Stark
2004-06-08 19:07 ` Jason Boxman
2004-06-09  0:08 ` [LARTC] how flexible is ingress traffic policing to bandwidth Damion de Soto

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.