Date: Thu, 27 Sep 2001 09:05:46 +0200 From: "Patrick O'Reilly" <patrick@mip.co.za> To: "Harkirat Singh" <singh@pdx.edu> Cc: <questions@FreeBSD.ORG> Subject: RE: Dummynet - Burst Loss Message-ID: <NDBBIMKICMDGDMNOOCAICEBKDJAA.patrick@mip.co.za> In-Reply-To: <Pine.GSO.4.33.0109262219570.24565-100000@gere.odin.pdx.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBIMKICMDGDMNOOCAICEBKDJAA.patrick>