From owner-freebsd-net@FreeBSD.ORG Wed Feb 13 16:28:50 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A4129F5C for ; Wed, 13 Feb 2013 16:28:50 +0000 (UTC) (envelope-from kevin@your.org) Received: from mail.your.org (mail.your.org [IPv6:2001:4978:1:2::cc09:3717]) by mx1.freebsd.org (Postfix) with ESMTP id 7EA39E72 for ; Wed, 13 Feb 2013 16:28:50 +0000 (UTC) Received: from mail.your.org (chi02.mail.your.org [204.9.55.23]) by mail.your.org (Postfix) with ESMTP id EBDCFF06C4E; Wed, 13 Feb 2013 16:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=your.org; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s= selector1; bh=TXDjlaVPaeKVppVUmo0k4uvzm9o=; b=3kZh1d2yc6SSl2/Q3I Wse3qnzmNjt6lpe82Ccg+jGNiPTFKT03J58BYkIsf2WE09W+mQsGqkDqvUjEeNdq XVTARtWrJ1EebUGuwHuJtGvb8k802LcRZvKLWNIQLejEXPB7pfGx2M+RT28s6LEd BZoaBwwp+s3zsWTXaL/fN+gMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=your.org; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= selector1; b=HWSQ7IhDX5vOtLAXOafpYFuCUs4Q/zCdeNZsQiPJNNx0UyFhgci jLR24DV/LJ0J8sY4+bSBKApvmxJbqioiIiPIBjaQQ2vMt91vnEIYc0DgWHO/AEqk kNNsMkzVMhZR0QsNYqCBm75ihGyL+1Ep/pU5cfWCSS6+WItK2uHA+3BI= Received: from vpn132.rw1.your.org (vpn132.rw1.your.org [204.9.51.132]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.your.org (Postfix) with ESMTPSA id 8AE3FF06C36; Wed, 13 Feb 2013 16:28:49 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: lacp on lagg interface: same speed, different media From: Kevin Day In-Reply-To: <511AB7A0.6020506@tns.cz> Date: Wed, 13 Feb 2013 10:28:47 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <0C4010B3-C317-4510-B277-9BD768DF5344@your.org> References: <511AB7A0.6020506@tns.cz> To: Josef Pojsl X-Mailer: Apple Mail (2.1499) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 16:28:50 -0000 On Feb 12, 2013, at 3:44 PM, Josef Pojsl wrote: > Hello list, >=20 > on a FreeBSD 8.3-RELEASE-p3, I have come across a problem with lacp > protocol on a lagg interface. I have aggregated two interfaces with = the > same speed but slightly different type of media (namely 10Gbase-SR and > 10Gbase-LR). There is a Cisco switch on the other side. >=20 > LACP won't work as my FreeBSD box computes the actor key differently = for > the two interfaces. This is weird as LACP inists on the same speed but > not on the same exact type of media. Cisco has no problem having one > aggregated interface Short and the other Long Range. >=20 > Below, I have attached a tiny patch that changes the actor key > computation so that only speed is important, not the exact media type. > This patch works for me, LACP is ok with the Cisco box on the other > side. Please could someone competent look at the patch and test or > evaluate if it can be included in the code base. Thank you. >=20 I believe this is intentional behavior. My understanding is that 802.3ad = requires that the media types be *identical*. The logic is that if you = advertise multiple ports under the same key, any port on one side can be = physically connected to any port on the other side.=20 I'm not sure how important strict compliance v.s. making it actually = work is here, and I tend to agree that this is overly picky, and I can't = think of anything except seriously contrived instances where this would = matter. I also think most vendors have agreed with this and have = stopped caring about it. (sometimes requiring a knob to be changed)