Re: How to drop a packet

2004-07-13 Thread Tom Parquette
Matin Tamizi wrote:
I'm using a FreeBSD box as a router in a test network.  For the tests that I am 
running, I need to be able to drop random packets and observe the effects 
(responsiveness).
What utilities in FreeBSD or C will allow me to perform the function of dropping a 
random packet?
Thank you,
Matin
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
I've never used it but you might want to look at DUMMYNET.  From the man 
page (man dummynet):

DUMMYNET(4)FreeBSD Kernel Interfaces Manual
NAME
 dummynet -- traffic shaper, bandwidth manager and delay emulator
DESCRIPTION
 The dummynet system facility permits the control of traffic going 
through
 the various network interfaces, by applying bandwidth and queue 
size lim-
 itations, implementing different scheduling and queue management poli-
 cies, and emulating delays and losses.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to drop a packet

2004-07-13 Thread Dan Nelson
In the last episode (Jul 13), Matin Tamizi said:
> I'm using a FreeBSD box as a router in a test network.  For the tests
> that I am running, I need to be able to drop random packets and
> observe the effects (responsiveness).
> 
> What utilities in FreeBSD or C will allow me to perform the function
> of dropping a random packet?

You can use dummynet to create a pipe with arbitrary packet loss and
delay, then run particular interfaces (or anything that can be matched
via an ipfw rule) through that pipe.  See the dummynet and ipfw
manpages.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to drop a packet

2004-07-13 Thread Alexey Karguine
On Tue, 13 Jul 2004 10:51:54 -0400 "Matin Tamizi" <[EMAIL PROTECTED]> wrote:

> I'm using a FreeBSD box as a router in a test network.
> For the tests that I am running, I need to be able to drop
> random packets and observe the effects (responsiveness).

> What utilities in FreeBSD or C will allow me to perform
> the function of dropping a random packet?

> Thank you,
> Matin

You can use 'ipfw' to drop packets with given probability.

Run 'man ipfw' for details.

--bm

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to drop a packet

2004-07-13 Thread Matin Tamizi
I'm using a FreeBSD box as a router in a test network.  For the tests that I am 
running, I need to be able to drop random packets and observe the effects 
(responsiveness).

What utilities in FreeBSD or C will allow me to perform the function of dropping a 
random packet?

Thank you,
Matin

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"