From owner-freebsd-net@FreeBSD.ORG Fri Sep 17 10:17:13 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 18D5C16A4CE for ; Fri, 17 Sep 2004 10:17:13 +0000 (GMT) Received: from orion.erdves.lt (ns2.lrtc.net [217.9.240.98]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D81043D39 for ; Fri, 17 Sep 2004 10:17:11 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: (qmail 17029 invoked from network); 17 Sep 2004 10:17:09 -0000 Received: from p2p-241-242-ird.vln0.lrtc.net (HELO donatas) (217.9.241.242) by orion.erdves.lt with SMTP; 17 Sep 2004 10:17:09 -0000 Message-ID: <030a01c49c9f$7c215970$f2f109d9@donatas> From: "donatas" To: Date: Fri, 17 Sep 2004 13:17:04 +0300 Organization: AB Lietuvos Radijo ir Televizijos Centras MIME-Version: 1.0 X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-4" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: ng_one2many - very slow X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: donatas List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 10:17:13 -0000 Hello, we need a 400Mbit link between two intel machines (Xeon 2.4, Raid, = 512DDr, 2 ports-em(1000Mbit),2 ports-fxp(100Mbit)) configuration taken from ng_one2many man page: _____________________________________________________________________ ifconfig em0 up media 100BaseTX mediaopt full-duplex ifconfig em1 up media 100BaseTX mediaopt full-duplex ifconfig fxp0 up media 100BaseTX mediaopt full-duplex ifconfig fxp1 up media 100BaseTX mediaopt full-duplex ngctl mkpeer em0: one2many upper one ngctl connect em0: em0:upper lower many0 ngctl connect em1: em0:upper lower many1 ngctl connect fxp0: em0:upper lower many2 ngctl connect fxp1: em0:upper lower many3 ngctl msg em1: setpromisc 1 ngctl msg fxp0: setpromisc 1 ngctl msg fxp1: setpromisc 1 ngctl msg em1: setautosrc 0 ngctl msg fxp0: setautosrc 0 ngctl msg fxp1: setautosrc 0 ngctl msg em0:upper setconfig "{ xmitAlg=3D1 failAlg=3D1 = enabledLinks=3D[ 1 1 1 1 ] }" ifconfig em0 192.168.1.1/24 (and 1.2/24 on the second machine) _______________________________________________________________________ kernel is compiled with the following options: NETGRAPH NETGRAPH_BRIDGE NETGRAPH_ECHO NETGRAPH_ETHER NETGRAPH_FACE NETGRAPH_ONE2MANY ________________________________________________________________________ OS - FreeBSD 5.2.1 - freshly installed machines are connected directly(port -to- port) with crossed UTP CAT5 = cables ________________________________________________________________________ we used iperf to test TCP throughput between those machines: Results: 10sec. Transfered 250MBytes Bandwidth 210Mbits/sec -in = simplex mode and in duplex mode: 10sec. Transfered 169MBytes Bandwidth 141Mbits/sec 10sec. Transfered 163MBytes Bandwidth 136Mbits/sec after changing "enabledLinks=3D[1 1 1 1] to [1 1] the results are = allmost the same: ________________________________________________________________________ 10sec. Transfered 242MBytes Bandwidth 203Mbits/sec -in = simplex mode and in duplex mode: 10sec. Transfered 163MBytes Bandwidth 136Mbits/sec 10sec. Transfered 150MBytes Bandwidth 125Mbits/sec ________________________________________________________________________ 60 second transfer indicated 223Mbits/sec in simplex mode truth, we've tested direct link between em adapters in gigabit mode and = using TCP packets 850Mbit throughput was achieved. And Nearly 1Gbit with = UDP packets. as you see one2many test results aren't even close to 400Mbit Is it possible that em and fxp cannot work together or something. what = can you suggest to solve this small problem? thanks in advance