From owner-freebsd-current@FreeBSD.ORG Thu Feb 11 16:57:26 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80A89106566C; Thu, 11 Feb 2010 16:57:26 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id 676B38FC13; Thu, 11 Feb 2010 16:57:26 +0000 (UTC) Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id o1BGvPAT027407; Thu, 11 Feb 2010 08:57:25 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Feb 2010 08:57:20 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ECMP enhancement Thread-Index: AcqrFxfs+3AwRKypSj68ncVQESyHEwAI2lOW References: <6dd1343e1002110021t544c09c9uec170c3671e364bb@mail.gmail.com> From: "Li, Qing" To: "Balaji G" Cc: qingli@freebsd.org, current@freebsd.org, net@freebsd.org Subject: RE: ECMP enhancement X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 16:57:26 -0000 Balaji, =20 This patch came out of an offline discussion I had=20 with someone else about a month ago. That person was asking about the ECMP usage in general, and he reported a=20 couple of problems with ECMP operation to me privately. =20 This patch was created to address those reported issues. This patch has nothing to do with you and it's not a reply=20 to your email. =20 I have not had any time to review what you sent to me, which was why I asked you to send whatever you have to the mailing lists for anyone else who might be interested in looking at what you've done. =20 But I recommended to you privately to hold off on any back port because there are multiple pieces involved to make the ECMP code effective. For example, the=20 flow-table code needs to be there, too. Both Kip=20 and I are still evolving the implementation.=20 =20 Since you are new to both FreeBSD and the networking kernel, I told you the ECMP code is probably not the best=20 piece to start with, but you seem to ignore whatever I have=20 said completely ... =20 -- Qing =20 ________________________________ From: owner-freebsd-current@freebsd.org on behalf of Balaji G Sent: Thu 2/11/2010 12:21 AM To: Li, Qing Cc: qingli@freebsd.org; current@freebsd.org; net@freebsd.org Subject: Re: ECMP enhancement Hi Qing > I have a patch that addresses the above issues. The patch is available = at: > = http://people.freebsd.org/~qingli/ecmp-linkstate-patch.diff > Thanks for the reply. I had sent you an email to you on load balancing couple of days back and thanks for the reply. I ll roll in the patch and give it a shot. Cheers, - Balaji On Thu, Feb 11, 2010 at 9:41 AM, Li, Qing wrote: > > One of the advantages of enabling ECMP is to allow for connection load > balancing. > Currently the address alias handling method is colliding with the ECMP > code. > For example, when two interfaces are configured on the same prefix, = only > one prefix route is installed. So connection load balancing is not > possible. > > The other advantage of ECMP is for failover. The issue with the = current > code, is > that the interface link-state is not reflected in the route entry. For > example, > if there are two interfaces on the same prefix, the cable on one = interface > is > unplugged, new and existing connections should switch over to the = other > interface. > This is not done today and packets go into a black hole. > > I discussed about these issues on the list about a month ago. > > Also, there is a small bug in the kernel where deleting ECMP routes in = the > userland will always return an error even though the command is > successfully > executed. > > I have a patch that addresses the above issues. The patch is available = at: > > = http://people.freebsd.org/~qingli/ecmp-linkstate-patch.diff > > > This is not the final version. Your comments are welcome. > > -- Qing > > _______________________________________________ > 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" > _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"