How to obtain fixed packet loss ?

Luigi Rizzo rizzo at iet.unipi.it
Tue Jan 4 14:56:01 UTC 2011


On Mon, Jan 03, 2011 at 06:22:54PM +0000, nangergong wrote:
> Hi, all:
> 
>   As far as I know, in dummynet, plr is prabability-based, namely, when a
> packet is processed, it will be discarded according to the probability. So,
> if I have 100 packets and the plr is 5%, eventually I may just discard 3
> packets or even 1 packets. So, the real packet loss is not consitent with
> the plr-set value. Is there any good method that can give me a consistent
> packet loss? Thank you!

you would need to modify the "prob" option in ipfw so that
e.g. you specify a bitmap indicating the pattern of packet pass/drop

(this was the way i originally implemented packet loss back in 1995!)

cheers
luigi

> _______________________________________________
> freebsd-ipfw at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe at freebsd.org"


More information about the freebsd-ipfw mailing list