From owner-freebsd-net@FreeBSD.ORG  Sat Dec 18 19:42:37 2010
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
Delivered-To: net@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 19040106564A
	for <net@freebsd.org>; Sat, 18 Dec 2010 19:42:37 +0000 (UTC)
	(envelope-from tad1214@aol.com)
Received: from imr-ma05.mx.aol.com (imr-ma05.mx.aol.com [64.12.100.31])
	by mx1.freebsd.org (Postfix) with ESMTP id 3FBBF8FC15
	for <net@freebsd.org>; Sat, 18 Dec 2010 19:42:35 +0000 (UTC)
Received: from mtaout-mb06.r1000.mx.aol.com (mtaout-mb06.r1000.mx.aol.com
	[172.29.41.70])
	by imr-ma05.mx.aol.com (8.14.1/8.14.1) with ESMTP id oBIJVna2024179;
	Sat, 18 Dec 2010 14:31:50 -0500
Received: from [10.44.205.169] (unknown [166.205.15.17])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	by mtaout-mb06.r1000.mx.aol.com (MUA/Third Party Client Interface) with
	ESMTPSA id 2BA1CE0000AE; Sat, 18 Dec 2010 14:31:48 -0500 (EST)
References: <4D0CFEFF.3000902@rdtc.ru>
In-Reply-To: <4D0CFEFF.3000902@rdtc.ru>
Mime-Version: 1.0 (iPhone Mail 8C148)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii
Message-Id: <E2BD5AE7-6A15-4FD9-A4B3-C0E14606DE02@aol.com>
X-Mailer: iPhone Mail (8C148)
From: Thomas Donnelly <tad1214@aol.com>
Date: Sat, 18 Dec 2010 13:31:47 -0600
To: Eugene Grosbein <egrosbein@rdtc.ru>
x-aol-global-disposition: G
X-AOL-SCOLL-SCORE: 0:2:379232288:93952408  
X-AOL-SCOLL-URL_COUNT: 0  
x-aol-sid: 3039ac1d29464d0d0c247979
X-AOL-IP: 166.205.15.17
Cc: "net@freebsd.org" <net@freebsd.org>
Subject: Re: lagg/lacp poor traffic distribution
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 18 Dec 2010 19:42:37 -0000


On Dec 18, 2010, at 12:35 PM, Eugene Grosbein <egrosbein@rdtc.ru> wrote:

> Hi!
>=20
> I've loaded router using two lagg interfaces in LACP mode.
> lagg0 has IP address and two ports (em0 and em1) and carry untagged frames=
.
> lagg1 has no IP address and has two ports (igb0 and igb1) and carry
> about 1000 dot-q vlans with lots of hosts in each vlan.
>=20
> For lagg1, lagg distributes outgoing traffic over two ports just fine.
> For lagg0 (untagged ethernet segment with only 2 MAC addresses)
> less than 0.07% (54Mbit/s max) of traffic goes to em0
> and over 99.92% goes to em1, that's bad.
>=20
> That's general traffic of several thousands of customers surfing the web,
> using torrents etc.  I've glanced over lagg/lacp sources if src/sys/net/
> and found nothing suspicious, it should extract and use srcIP/dstIP for ha=
sh.
>=20
> How do I debug this problem?
>=20
> Eugene Grosbein

I'm not familiar with the freebsd implementation but Cisco load balances bas=
ed on destination Mac address so If everything is headed towards the gateway=
, they will all go over one link. Check the load balancing algorithm on both=
 sides. I usually balance on src+dst mac.=20

-=3DTom



> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"