From owner-freebsd-questions Thu Sep 27 1: 0:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from medusa.oit.pdx.edu (medusa.oit.pdx.edu [131.252.120.41]) by hub.freebsd.org (Postfix) with ESMTP id 25BF437B422 for ; Thu, 27 Sep 2001 01:00:10 -0700 (PDT) Received: from freke.odin.pdx.edu (freke.odin.pdx.edu [131.252.120.43]) by medusa.oit.pdx.edu (8.11.6/8.11.6) with ESMTP id f8R801c22856; Thu, 27 Sep 2001 01:00:02 -0700 (PDT) Received: from localhost (singh@localhost) by freke.odin.pdx.edu (8.11.6/8.11.6) with ESMTP id f8R801w12202; Thu, 27 Sep 2001 01:00:01 -0700 (PDT) X-Authentication-Warning: freke.odin.pdx.edu: singh owned process doing -bs Date: Thu, 27 Sep 2001 01:00:01 -0700 (PDT) From: Harkirat Singh X-X-Sender: To: "Patrick O'Reilly" Cc: Subject: RE: Dummynet - Burst Loss In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I appreciate your detailed reply!! In Dummynet "bandwidth" and "queue" is used, is there a way to use queue and bandwidth combination for burst packet loss? Regards, harkirat On Thu, 27 Sep 2001, Patrick O'Reilly wrote: > Posting back to Questions only: > > The only thought that occurs to me would be to write a two line script to > change the config of the pipe to increase the loss percentage to 80% or 100% > (whatever suits you), then return to 0% or 5% after whatever delay you are > after. This could be triggered manually or even in cron if that's what you > need. > > try something like this: > ---------- > #!/bin/sh > # Assuming your pipe number 99 matches the packet > # stream which you want test with the 'burst loss' > ipfw pipe 99 config plr $2 > sleep $1 > ipfw pipe 99 config plr 0 > ---------- > > If this script is called 'loss-burst' in your current directory, you could > invoke it like such: > > # ./loss-burst 3 0.95 > > This would give you a 95% packet loss rate for 3 seconds. I guess you could > easily add an argument to specify the ipfw pipe number too. > > Hope this helps. > > Patrick. > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Harkirat Singh > Sent: 27 September 2001 07:24 > To: net@FreeBSD.ORG > Cc: questions@FreeBSD.ORG > Subject: Dummynet - Burst Loss > > > > Hello! > > I want to know is it possible to create a burst of packet loss > using dummynet. I have used Dummynet to create a random packet > loss and quiet familiar with it. However, I did not get any information as > how a burst of packet loss can be created. > > I shall be greatfull if someone can guide me about this.. > > Regards, > > harkirat Singh > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message