From owner-freebsd-net@FreeBSD.ORG Sat Sep 11 03:18:14 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D268C16A4CE for ; Sat, 11 Sep 2004 03:18:14 +0000 (GMT) Received: from exchange.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AF8F43D5A for ; Sat, 11 Sep 2004 03:18:14 +0000 (GMT) (envelope-from don@sandvine.com) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Date: Fri, 10 Sep 2004 23:18:13 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: packet generator Thread-Index: AcSXizgZAAxwpp5FQfWhBP0cv7gA2gAIjPsA From: "Don Bowman" To: "Andrew Gallatin" , Subject: RE: packet generator X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 03:18:14 -0000 From: owner-freebsd-net@freebsd.org > [mailto:owner-freebsd-net@freebsd.org]On Behalf Of Andrew Gallatin > Sent: September 10, 2004 19:08 PM > To: freebsd-net@freebsd.org > Subject: packet generator >=20 > Does anybody have a free, in-kernel tool to generate packets quicky > and send them out a particular etherent interface on FreeBSD? > Something similar to pktgen on linux? >=20 > I'm trying to excersize just the send-side of programmable firmware > based NIC. The recieve side of the NIC firmware is not yet written, > but I want to get started tuning and shaking the bugs out of the send > side while the firmware author does the recieve path. The packets > just get dropped on the floor by the NIC, so its a good way to test > the interface.. >=20 ng_source was a netgraph module we wrote and contributed. It can transmit ~800Kpps on a PCI-X system. The code is in src/sys/netgraph/ng_source.c. I drive it with a tcl library that can create arbitrary packets with an object-oriented model, let me know if you'd like to try that. --don