Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2011 15:52:53 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        nangergong <nangergong@gmail.com>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: How to obtain fixed packet loss ?
Message-ID:  <20110104145253.GB8235@onelab2.iet.unipi.it>
In-Reply-To: <AANLkTinHW9wOyf1woxGLMurEsF=Yk3M8wt7%2BFM-C_9ya@mail.gmail.com>
References:  <AANLkTinHW9wOyf1woxGLMurEsF=Yk3M8wt7%2BFM-C_9ya@mail.gmail.com>

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



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