lacp lagg port flags do not show correctly resulting in poor traffic distribution/performance



Hi,

I am trying to configure lacp lagg interfaces with 2 systems connected back to back as follows:

Ifconfig lagg0 create
Ifconfig lagg0 laggproto lacp laggport ql0 laggport ql1 192.168.100.1 netmask 255.255.255.0

Sometimes, the lag interface comes up correctly but sometimes the laggport flags do not show properly. Instead of 1c<ACTIVE,COLLECTING,DISTRIBUTING>, it shows values of 18. I have seen similar issues reported on various forums with no solution.
Looking at the lagg driver code and reading the standard, I thought the laggport flags ( defined in if_lagg.h) are based on the LACP_STATE_BITS in file ieee8023ad_lacp.h. But the following ifconfig -v output does not make any sense to me.

My concern is that when all the interfaces show flags as 1c, the traffic is distributed across both the interfaces uniformly and I get aggregated throughput. If not, the traffic flows only on 1 interface.

Is this a bug? How do I solve this? Or am I doing something wrong?

I am using Free-BSD 9.0 release.

System 1:
# ifconfig -v lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=13b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,TSO4>
ether 00:0e:1e:08:05:20
inet 192.168.100.1 netmask 0xffffff00 broadcast 192.168.100.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
groups: lagg
laggproto lacp
lag id: [(8000,00-0E-1E-08-05-20,0213,0000,0000),
(8000,00-0E-1E-04-2C-F0,0213,0000,0000)]
laggport: ql1 flags=18<COLLECTING,DISTRIBUTING> state=7D
[(8000,00-0E-1E-08-05-20,0213,8000,000F),
(FFFF,00-00-00-00-00-00,0000,FFFF,0000)]
laggport: ql0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> state=3D
[(8000,00-0E-1E-08-05-20,0213,8000,000E),
(8000,00-0E-1E-04-2C-F0,0213,8000,000E)]

System 2:

# ifconfig -v lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=13b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,TSO4>
ether 00:0e:1e:04:2c:f0
inet 192.168.100.2 netmask 0xffffff00 broadcast 192.168.100.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
groups: lagg
laggproto lacp
lag id: [(8000,00-0E-1E-04-2C-F0,0213,0000,0000),
(FFFF,00-00-00-00-00-00,0000,0000,0000)]
laggport: ql1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> state=7D
[(8000,00-0E-1E-04-2C-F0,0213,8000,000F),
(FFFF,00-00-00-00-00-00,0000,FFFF,0000)]
laggport: ql0 flags=18<COLLECTING,DISTRIBUTING> state=3D
[(8000,00-0E-1E-04-2C-F0,0213,8000,000E),
(8000,00-0E-1E-08-05-20,0213,8000,000E)]


thanks
Adarsh


________________________________
This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: lacp lagg port flags do not show correctly resulting in poor traffic distribution/performance
    ... I am trying to configure lacp lagg interfaces with 2 systems connected back to back as follows: ... Ifconfig lagg0 create ... My concern is that when all the interfaces show flags as 1c, the traffic is distributed across both the interfaces uniformly and I get aggregated throughput. ...
    (freebsd-net)
  • RE: lacp lagg port flags do not show correctly resulting in poor traffic distribution/performance
    ... The reason for my suspicion on the portflags is thus (extracted from the ifconfig output in my previous mail): ... lacp lagg port flags do not show correctly resulting in poor traffic distribution/performance ... Ifconfig lagg0 create ... My concern is that when all the interfaces show flags as 1c, the traffic is distributed across both the interfaces uniformly and I get aggregated throughput. ...
    (freebsd-net)
  • Re: lacp lagg port flags do not show correctly resulting in poor traffic distribution/performance
    ... I am trying to configure lacp lagg interfaces with 2 systems connected back to back as follows: ... Ifconfig lagg0 create ... My concern is that when all the interfaces show flags as 1c, the traffic is distributed across both the interfaces uniformly and I get aggregated throughput. ...
    (freebsd-net)
  • A dual-ISP hack with jail/vnet and ipfw
    ... interfaces, which is useful when you have multiple ISPs. ... The idea is to let a jail deal with the two ISPs and use an epair ... ifconfig disc0 destroy ... echo deny_incoming ...
    (freebsd-hackers)
  • Re: IPv6 configuration in rc.d
    ... do>> # ifconfig gif0 create ... the ifdisabled flag set via devdprevents this. ... IPv6 was included in GENERIC. ... do> interfaces that are not always configured, I do it all the time. ...
    (freebsd-current)