From owner-freebsd-ipfw@FreeBSD.ORG Wed Jan 14 14:03:59 2004 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 DA22716A4CE for ; Wed, 14 Jan 2004 14:03:59 -0800 (PST) Received: from holodoc.ip.se (ua-213-115-163-137.cust.bredbandsbolaget.se [213.115.163.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0EB743D64 for ; Wed, 14 Jan 2004 14:03:55 -0800 (PST) (envelope-from rd@tilde.se) Received: by holodoc.ip.se (Postfix, from userid 103) id D6984128454; Wed, 14 Jan 2004 23:01:35 +0100 (CET) Received: from nyalaptopen (c-f79572d5.02-85-73746f13.cust.bredbandsbolaget.se [213.114.149.247]) by holodoc.ip.se (Postfix) with ESMTP id 3259E12844E for ; Wed, 14 Jan 2004 23:01:33 +0100 (CET) Message-ID: <001b01c3daea$49b70740$7901010a@nyalaptopen> From: "Rickard Dahlstrand" To: Date: Wed, 14 Jan 2004 23:03:48 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Sanitizer: This message has been sanitized! Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Dummynet performance 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: Wed, 14 Jan 2004 22:04:00 -0000 Hi, I have a fresh FreeBSD 4.9 installation and have activated the ipfw and dum= mynet kernel modules and configured two ports as a bridge. Everything works= fine except one thing. When I add a pipe that does any kind of bw limiting= , I can't get thru more than 5 mbit/s TCP on my bridged interface. UDP and = packets with larger tcp windows size work better. One issue I found was the= RTT. It's <1ms in all cases except when I add bw limiting, then it's up to= 15-20ms. Does the bw limiting add this much RTT? Here is the config and ip= erf results. ipfw -q flush ipfw -q add allow ip from any to any via fxp0 ipfw -q add pipe 1 all from any to any via fxp1 in ipfw -q add pipe 2 all from any to any via fxp2 in ipfw -q pipe 1 config bw 20Mbit/s delay 0ms ipfw -q pipe 2 config bw 20Mbit/s delay 0ms >iperf -c 10.1.1.100 ------------------------------------------------------------ Client connecting to 10.1.1.100, TCP port 5001 TCP window size: 8.00 KByte (default) ------------------------------------------------------------ [1952] local 10.1.1.121 port 3540 connected with 10.1.1.100 port 5001 [ ID] Interval Transfer Bandwidth [1952] 0.0-10.0 sec 6.70 MBytes 5.60 Mbits/sec >iperf -c 10.1.1.100 -w 100k ------------------------------------------------------------ Client connecting to 10.1.1.100, TCP port 5001 TCP window size: 100 KByte ------------------------------------------------------------ [1952] local 10.1.1.121 port 3518 connected with 10.1.1.100 port 5001 [ ID] Interval Transfer Bandwidth [1952] 0.0-10.0 sec 17.8 MBytes 14.9 Mbits/sec If I do this: ipfw -q flush ipfw -q add allow ip from any to any via fxp0 ipfw -q add pipe 1 all from any to any via fxp1 in ipfw -q add pipe 2 all from any to any via fxp2 in ipfw -q pipe 1 config =20 ipfw -q pipe 2 config =20 I get this: >iperf -c 10.1.1.100 ------------------------------------------------------------ Client connecting to 10.1.1.100, TCP port 5001 TCP window size: 8.00 KByte (default) ------------------------------------------------------------ [1952] local 10.1.1.121 port 3541 connected with 10.1.1.100 port 5001 [ ID] Interval Transfer Bandwidth [1952] 0.0-10.0 sec 108 MBytes 90.8 Mbits/sec Another issue I have is the fact that the delay-function doesn't appear to = work. (Or am I doing something wrong) ipfw -q flush ipfw -q add allow ip from any to any via fxp0 ipfw -q add pipe 1 all from any to any via fxp1 in ipfw -q add pipe 2 all from any to any via fxp2 in ipfw -q pipe 1 config delay 10ms ipfw -q pipe 2 config delay 10ms Reply from 10.1.1.100: bytes=3D32 time=3D11ms TTL=3D128 Reply from 10.1.1.100: bytes=3D32 time=3D15ms TTL=3D128 Reply from 10.1.1.100: bytes=3D32 time=3D13ms TTL=3D128 Reply from 10.1.1.100: bytes=3D32 time=3D12ms TTL=3D128 Ping statistics for 10.1.1.100: Packets: Sent =3D 4, Received =3D 4, Lost =3D 0 (0% loss), Approximate round trip times in milli-seconds: Minimum =3D 11ms, Maximum =3D 15ms, Average =3D 12ms If I normally have <1ms to this host and according to the config I should h= ave 20ms. I would really like some help on these issues.=20 Regards, Rickard.