From owner-freebsd-questions@FreeBSD.ORG Tue Jul 13 15:08:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A500516A4CE for ; Tue, 13 Jul 2004 15:08:51 +0000 (GMT) Received: from ms-smtp-04.nyroc.rr.com (ms-smtp-04.nyroc.rr.com [24.24.2.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F28D43D48 for ; Tue, 13 Jul 2004 15:08:51 +0000 (GMT) (envelope-from tparquet@twcny.rr.com) Received: from twcny.rr.com (syr-24-59-136-53.twcny.rr.com [24.59.136.53]) i6DF8mt2028866; Tue, 13 Jul 2004 11:08:48 -0400 (EDT) Message-ID: <40F3F989.5020604@twcny.rr.com> Date: Tue, 13 Jul 2004 11:02:33 -0400 From: Tom Parquette User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040511 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matin Tamizi References: <1089730314.92bcbe00matin@umd.edu> In-Reply-To: <1089730314.92bcbe00matin@umd.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: How to drop a packet X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tom@Parquette.name List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 15:08:51 -0000 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > 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.