From owner-freebsd-net@FreeBSD.ORG Fri Oct 1 00:43:15 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 D4E9916A4CE for ; Fri, 1 Oct 2004 00:43:15 +0000 (GMT) Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF1D543D1D for ; Fri, 1 Oct 2004 00:43:15 +0000 (GMT) (envelope-from Andrew.Zhu@hp.com) Received: from tsx2.cup.hp.com (tsx2.cup.hp.com [15.13.185.29]) by palrel13.hp.com (Postfix) with ESMTP id 8D1741C05EAD for ; Thu, 30 Sep 2004 17:43:15 -0700 (PDT) Received: from AZ735044 (az730541.cup.hp.com [15.13.105.111]) by tsx2.cup.hp.com (8.9.3 (PHNE_29774)/8.8.6) with SMTP id RAA20744 for ; Thu, 30 Sep 2004 17:43:15 -0700 (PDT) From: "Andrew Wenlang Zhu" To: Date: Thu, 30 Sep 2004 17:43:11 -0700 Message-ID: <01ae01c4a74f$a12fb5d0$6f690d0f@americas.hpqcorp.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal Subject: How to use FreeBSD/Dummynet to fragment IP packets 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: Fri, 01 Oct 2004 00:43:15 -0000 Hello: I use a freebsd system running Dummynet as a middle box to test network behavior. The setup likes this: System A ------------- FreeBSD with Dummynet ------------ System B Network traffic flows between System A and B, and the traffic is a mix of TCP, UDP and ICMP. I need the Dummynet system to fragment IP packet to a specified packet size. It is OK that all traffic get fragmented, but even it is better if I can specify a certain percentage of packet to be fragmented. I looked into Dummynet man page, but cannot find how to do packet fragmentation. Does any one know how to use Dummynet to fragment packet? Or any other open source software can achieve this? Thanks, Andrew