Blocking N consecutive packets with netgraph

benjamin at cactus.org benjamin at cactus.org
Wed May 24 16:38:48 PDT 2006


I need to test a multicast streaming media application by selectively
dropping packets in the network connecting the source to the viewer.

The capability I need is to drop N consecutive packets, where N ranges
from 1 to 50 and is chosen via the command line.

I had hoped to do this with dummynet and ipfw, but apparently I can
only drop packets with a specified probablity.  The network topology
for this method was to bridge two ethernet nics, then use dummynet pipes
to vary the bandwith and packet loss rate.

I also tested a method using ipfw to temporarily enable packet block
rules using a short sleep interval, but there was only very coarse
control of the number of packets blocked.

Is it feasible to do this with netgraph?  Please outline how this may
be accomplihsed.

TIA

Tom Benjamin


More information about the freebsd-net mailing list