From owner-freebsd-ipfw@FreeBSD.ORG Tue Jan 4 14:56:01 2011 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7206B106564A for ; Tue, 4 Jan 2011 14:56:01 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 38CC08FC1E for ; Tue, 4 Jan 2011 14:56:00 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 1CF0B73098; Tue, 4 Jan 2011 15:52:53 +0100 (CET) Date: Tue, 4 Jan 2011 15:52:53 +0100 From: Luigi Rizzo To: nangergong Message-ID: <20110104145253.GB8235@onelab2.iet.unipi.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-ipfw@freebsd.org Subject: Re: How to obtain fixed packet loss ? X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 14:56:01 -0000 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"