From owner-freebsd-net@FreeBSD.ORG Wed Mar 10 06:57:40 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4856106566B for ; Wed, 10 Mar 2010 06:57:40 +0000 (UTC) (envelope-from v.ovsyannikov@kr.ru) Received: from 24kr.ru (mx.skala-net.ru [84.22.128.14]) by mx1.freebsd.org (Postfix) with ESMTP id 27D338FC18 for ; Wed, 10 Mar 2010 06:57:38 +0000 (UTC) Received: from localhost (localhost.skala-net.ru [127.0.0.1]) by mx.skala-net.ru (Postfix) with ESMTP id 95136621CDA; Wed, 10 Mar 2010 13:32:43 +0700 (KRAT) X-Virus-Scanned: amavisd-new at localhost Received: from 24kr.ru ([127.0.0.1]) by localhost (mx.skala-net.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tI1FvMRtHuAH; Wed, 10 Mar 2010 13:32:36 +0700 (KRAT) Received: from unspecified.skala.krs (unknown [84.22.128.20]) by mx.skala-net.ru (Postfix) with ESMTP id 15771621CD8; Wed, 10 Mar 2010 13:32:36 +0700 (KRAT) Date: Wed, 10 Mar 2010 13:25:32 +0700 From: Vitaliy Ovsyannikov X-Priority: 3 (Normal) Message-ID: <1036623459.20100310132532@kr.ru> To: "Steven Hartland" In-Reply-To: <398DD47A113342D78637D600C0C4C47B@multiplay.co.uk> References: <201001291920.o0TJKAw9005498@freefall.freebsd.org><2a41acea1001291447n5852f5b4h193d3ad6dff9faac@mail.gmail.com> <20100129235911.GA67110@mr-happy.com> <398DD47A113342D78637D600C0C4C47B@multiplay.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Net Subject: Re: kern/141646: [em] em(4) + lagg(4) + vlan(4) generatesISL-tagged frames instead of 802.1q-tagged frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vitaliy Ovsyannikov List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 06:57:40 -0000 > ----- Original Message ----- > Since your using lagg there Jeff have you done on perf testing at > all, when I tested here dual em0 + lagg + lacp =3D> cisco 6509 although > all seemed to negotiate correctly, balancing wasn't working at all. > So I'm wondering if you see the same behaviour or if its just me? Balancing depends on src/dst mac/ip. E.g. packets between different IPs are going thru different interfaces. It seems you are using iperf to generate traffic flow between IP1 and IP2 so this is wrong case. I've successfully patched 8.0-REL and it looks very happy with dot1q vlans on lagg. Here are my results based on regular Internet traffic. Env: FreeBSD agw3.local 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Tue Mar 9 09:53:53 KRAT 2010 root@local:/usr/obj/usr/src/sys/KERNEL i= 386 There are some vlans on lagg0: #ifconfig | grep vlan | grep lagg0 | wc -l 52 lagg0: flags=3D8843 metric 0 mtu 15= 00 options=3D9b ether 00:11:0a:5a:5e:5a media: Ethernet autoselect status: active laggproto lacp laggport: em3 flags=3D1c laggport: em2 flags=3D1c laggport: em1 flags=3D1c laggport: em0 flags=3D1c agw3# netstat -I lagg0 -w1 input (lagg0) output packets errs bytes packets errs bytes colls 24395 0 18251427 24390 0 18340400 0 37221 0 29695929 37091 0 29594257 0 agw3# netstat -I em0 -w1 input (em0) output packets errs bytes packets errs bytes colls 3432 0 1999523 5768 0 5191905 0 4381 0 2746333 6874 0 5656798 0 agw3# netstat -I em1 -w1 input (em1) output packets errs bytes packets errs bytes colls 7101 0 5874769 9932 0 8027032 0 7815 0 6604168 9525 0 7590696 0 agw3# netstat -I em2 -w1 input (em2) output packets errs bytes packets errs bytes colls 7857 0 6213003 7230 0 4975652 0 9461 0 7349928 7758 0 5474243 0 agw3# netstat -I em3 -w1 input (em3) output packets errs bytes packets errs bytes colls 7505 0 6013276 9584 0 7213921 0 7571 0 5920826 10285 0 7205087 0