Packet rate limiter

Luigi Rizzo rizzo at icir.org
Wed Feb 7 10:35:10 UTC 2007


On Wed, Feb 07, 2007 at 11:09:34AM +0100, Jan Sebosik wrote:
> Hmm,
> 
> but if have done traffic shaping via bps limit. But I also wanted to 
> limit packet rate, because P2P and skype uses small packets, but in high 
> volumes....And it will stop P2P and Skype if I set on 512 kbps 40 
> packets/s [pps]

only a trick (but sometimes a useful one) would be to
pass packets to different pipes basing on the size
(or protocol - the small ones tend to be UDP because with TCP you
have very little control on the packet size)
and then set the limit differently on the two pipes

	cheers
	luigi



> 
> 
> >  Newp. You're stuck to good old bps with ipfw or bps/cpse (connections 
> > per second established) with pf. The other method would be to use 
> > cisco netflow export data from a router being polled - then limiting 
> > traffic with one of the methods mentioned above... or just place pps 
> > limits on your router itself.
> >
> >
> > Jan Sebosik wrote:
> >> Hi
> >>
> >> is there any way how to limit packet per second [PPS] rate to 
> >> specified IP (group of IP) ? Linux can achieve this via IPtables.
> >> I`ve searched a lot of web, but nothing interesting found (for PF, 
> >> IPFilter, and IPFW).
> >>
> >> Best regards
> >>
> >> ---
> >> Jan Sebosik, Slovakia
> >> _______________________________________________
> >> freebsd-net at freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> >> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> >>
> >
> >
> 
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list