Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2007 02:35:03 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        Jan Sebosik <sebosik@demax.sk>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Packet rate limiter
Message-ID:  <20070207023503.B63529@xorpc.icir.org>
In-Reply-To: <45C9A55E.2080807@demax.sk>; from sebosik@demax.sk on Wed, Feb 07, 2007 at 11:09:34AM %2B0100
References:  <45C99336.3010508@demax.sk> <45C99EF2.9010201@sk1llz.net> <45C9A55E.2080807@demax.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
> >>
> >
> >
> 
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070207023503.B63529>