Link aggregation using LACP

Naresh gbal.naresh at gmail.com
Fri Sep 30 14:45:11 UTC 2011


Thanks Andrew, Damien.

Damien you are using Failiover mode, That is working fine for me to. I have issues only with LACP mode.

As mentioned by Andrew, the slow LACP timer might be the reason. I tried it today again. My observations are

On switch:-
1) I have set LACP time out on the switch to one sec.
2) On the switch it shows neighbors timeout as 30 sec( i.e my host)

Yesterday I mentioned it is taking around 30 seconds to recover, but actually it is taking  90 seconds always.

This problem is only if I administratively down the interface using ifconfig. If I do a cable pull, then the recovery is immediate, might be because both party's know about the link failure immediately.

Thanks,
Naresh.


On 29-Sep-2011, at 11:44 PM, Andrew Thompson <thompsa at FreeBSD.org> wrote:

> On 30 September 2011 05:42, Naresh <gbal.naresh at gmail.com> wrote:
>> Hi All,
>> 
>> I am working on a 10Gb Ethernet driver for FreeBsd 8.2. When I enable link aggregation using LACP mode on two ports of our card, I expected load to be balanced on two ports(both are up). But interestingly traffic is flowing on only one interface.
> 
> Have a look at lagg_hashmbuf() which generates the hash number to
> choose the port. It uses the ethernet and ip headers for this so
> ensure your test traffic has enough variation.
> 
>> If I administratively bring down the interface on which traffic is flowing, I see lot of packet loss for about 30 secs, After that it picks up.
> 
> We don't send a gratuitous arp when the links change, maybe this is
> causing your switches to not update quickly. We also use the slow lacp
> timer.
> 
> 
> Andrew


More information about the freebsd-drivers mailing list