From owner-freebsd-net@FreeBSD.ORG Thu Dec 18 01:36:32 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A529E70 for ; Thu, 18 Dec 2014 01:36:32 +0000 (UTC) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27DC01ED7 for ; Thu, 18 Dec 2014 01:36:32 +0000 (UTC) Received: by mail-pa0-f45.google.com with SMTP id lf10so308023pab.4 for ; Wed, 17 Dec 2014 17:36:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dpdtech.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/qgKtAeTGGF40efgMz4h2ZFi/pdsD4dV0jJD5L4j9S4=; b=OX1kWhoybI/VYhlHvR2MM98tXjMi4/PxstR7bcUMByG9l1UbZEaA/u0FV4QMrs+GAq vmoxbLryvM1YUV3BntgQkpg6i3Gl0mzHGS+7yTaumJGpz5vUZyJYjzl4dPeap35lep9X Xao30topUXHEGt7TSJzhj9NRwU1N8409hTb9c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=/qgKtAeTGGF40efgMz4h2ZFi/pdsD4dV0jJD5L4j9S4=; b=cvBknF61XD7CXxo0Hlv16mgI0wBdX4VF8DocUxZ9TcpwbVkGKxFdNY1YJPVcp5C94o h3Otj8NTVuD+NlxnoQGa+UjE/S6MV9bHFGM463uMBQYB3T3xOzgAPKLQApIToi31T+kY EmsjOA+cUi8TDzVnlBJRxAT07pKT+3B6Pr+Myb4+sol3V3uozawuPFjReDhpFho+1hnV a6U9tQY5VY54e/F5OhcBxpzi7rR3V69ORsMWAm235TAxhSzcR40JZoAhQozIQu88qE2R Fqx0RMhcctuQbnwrVaSE3cXajfVR+xByUJTKDPOVBlAwi7Q292EhAQ7t5S8U6IidXYpR Si5w== X-Gm-Message-State: ALoCoQmivMKjNKMbuJqziRd/U5GOxUuZMGfJTfWXIZnrAGJ4DqM5K9xyVAZmeMmHEmq47AG39Rgu X-Received: by 10.66.184.48 with SMTP id er16mr21932806pac.61.1418866591636; Wed, 17 Dec 2014 17:36:31 -0800 (PST) Received: from 173-13-188-41-sfba.hfc.comcastbusiness.net (173-13-188-41-sfba.hfc.comcastbusiness.net. [173.13.188.41]) by mx.google.com with ESMTPSA id rb2sm5149482pab.5.2014.12.17.17.36.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Dec 2014 17:36:31 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: FreeBSD 10-stable (r274577) LACP / IEEE 802.3ad with TP-Link TL-SG2008 - not working From: "David P. Discher" In-Reply-To: Date: Wed, 17 Dec 2014 17:36:38 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1A44709E-7D0C-4932-8A28-383EAC3F340B@dpdtech.com> <9AE69175-92D9-49FA-A651-119C7046A1FA@dpdtech.com> <5480D8EF.9000804@egr.msu.edu> <3D993418-E632-44BA-8FE2-2F3F34188F20@dpdtech.com> <34276C9E-CAEF-4E3F-AA2A-568F2D3099EC@dpdtech.com> <2BCFC9D3-3B7D-421F-9FDA-0C4E1018F8F5@dpdtech.com> To: Alan Somers X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Net , Adam McDougall X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 01:36:32 -0000 On Dec 17, 2014, at 5:19 PM, Alan Somers wrote: >>=20 >>=20 >> This work great and without any issue. All the defaults with = 10-stable (r275778) and recent version of -head with this one line made = it work. Of course, this will likely break FreeBSD with all other = switches LACP. >=20 >=20 > I'm glad that you got your problem sorted out. Please do let us know > if you find a more general solution. >=20 Yeah, Alan - will do =85 if I decided to look into more. That is why I = was looking for spec on LACP. One side is doing it wrong. FreeBSD is = looking for a LACPDU of exactly sizeof ( struct lacpdu ) which is 124 = bytes. The TP-Link is sending a PDU of 128 bytes. I was hoping someone = would know off hand what the spec says, if the PDU =93should be=94 or = =93must be=94. I=92m assuming this is an error on TP-Link=92s = firmware, and will try to file a bug with them if I can get to the root = of the issue. I=92m assuming the Linux driver isn=92t strict on the PDU = size. If this was really an error on the FreeSBD side =85 someone should have = stumbled over long before I did. >=20 >>=20 >> However, what I have also discovered this this switch is unlike = FreeBSD which lagghash includes L4, the switch only seems to hash over = SRC+DST IP or SRC+DST MAC. Which makes it pretty much just sends all = the traffic down one link from the switch. So for my particular use case = with a small set of hosts, this switch is not useful for me. >=20 >=20 > Actually, that's a fairly common problem. I've even seen it on some > expensive Cisco switches. Yeah, in the end, this research and experiment has proven to me that = LAGG/LACP is not likely the correct solution for this project. 10g = Ethernet would work well, even back-to-back, but even used this looks to = be a bit pricey for home/hobby setup. I=92m now looking towards = Infiniband, as the cards and parts on the use market are a great value = (but this is the wrong list for talking about that.) Thanks ! - David P. Discher http://davidpdischer.com/ AIM: DavidDPD | Y!M: daviddpdz=20