From owner-freebsd-ipfw@FreeBSD.ORG Mon Dec 15 11:39:24 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E69416A4D2 for ; Mon, 15 Dec 2003 11:39:24 -0800 (PST) Received: from mail.ee.gatech.edu (mail.ee.gatech.edu [130.207.225.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAE1B43D35 for ; Mon, 15 Dec 2003 11:39:22 -0800 (PST) (envelope-from junfeng@ece.gatech.edu) Received: from secure2.ece.gatech.edu (seiya.ece.gatech.edu [130.207.225.101]) by mail.ee.gatech.edu (8.12.10/8.12.9) with SMTP id hBFJdDUP025735; Mon, 15 Dec 2003 14:39:15 -0500 (EST) Received: from 65.106.15.98 (SquirrelMail authenticated user junfeng) by secure2.ece.gatech.edu with HTTP; Mon, 15 Dec 2003 14:39:15 -0500 (EST) Message-ID: <64995.65.106.15.98.1071517155.squirrel@secure2.ece.gatech.edu> Date: Mon, 15 Dec 2003 14:39:15 -0500 (EST) From: junfeng@ece.gatech.edu To: luigi@iet.unipi.it User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal References: In-Reply-To: X-Virus-Scanned: by amavisd-new X-SPAM: NO cc: freebsd-ipfw@freebsd.org Subject: dummynet dropping TCP packets X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 19:39:24 -0000 Hi! all, I am using dummynet to simulate a network-connection with 65ms propagation delay. Dummynet is installed on a workstation with two network-cards, and is configured as a bridge (no IP for these interfaces). One network-card is connected to a Video Server (IP:192.168.200.100), which sends out 2Mbps video stream. The other network card is connected to a video client (IP:192.168.200.50), which receives video packets and does ARQ if there are packet loss. The feedback message is TCP. We simulate random loss of video packet at server end. And use dummynet to control the propagation delay between server and client. Here are the commands I used to control dummynet HZ=1000 ipfw flush ipfw add pipe 100 ip from any to any ipfw pipe 100 config delay 65ms And I observed that some TCP packets are dropped when they are sent from client to server. And then the operating system needs to retransmit these lost TCP packets after TCP time out, which causes extra delay in ARQ. I ever tried to seperate TCP from UDP packets and I got same result. ipfw add pipe 100 TCP from any to any ipfw add pipe 200 not TCP from any to any ipfw pipe 100 config delay 65ms ipfw pipe 200 config delay 65ms Also, I tried to use the bi-direction pipes, but seems that all traffic going through dummynet is in-bound traffic, so there is no packet goes through second pipe (pipe 200). ipfw add pipe 100 ip from any to any in ipfw add pipe 200 ip from any to any out ipfw pipe 100 config delay 65ms ipfw pipe 200 config delay 65ms Is there any error in my configuration? Thanks! Junfeng