Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dummynet - Burst Loss

60 views
Skip to first unread message

Harkirat Singh

unread,
Sep 27, 2001, 1:24:01 AM9/27/01
to

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 majo...@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message

Patrick O'Reilly

unread,
Sep 27, 2001, 3:03:11 AM9/27/01
to
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.

Harkirat Singh

unread,
Sep 27, 2001, 4:00:49 AM9/27/01
to
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

0 new messages