LACP member link and state reader
Which member of a link aggregation group carries a flow, for the one hash an implementation publishes in full (the Linux bonding driver's), with every step, what a failed member moves and how a run of flows spreads; Cisco's documented split shows why 2, 4 and 8 members share evenly. And the LACP actor and partner state flags read bit by bit, with the timers and a verdict for the pair.
NetworkingKept in this browser · My desk
Reads both IP addresses and the TCP or UDP ports; the MAC addresses are not read.
A 32-bit value takes four bytes: a big-endian processor stores its most significant byte at the lowest address, a little-endian one its least significant. Of the Linux architectures Debian lists, amd64, arm64, ppc64el, riscv64 and loong64 are little-endian; s390x, ppc64, mips and sparc64 are big-endian. The driver XORs the addresses and the ports as raw words loaded from the header, so the two give different hashes for the same flow, and the member can differ only when the member count is not a power of two: Big-endian and little-endian.
2 to 8. Counted from 0 in the order they joined the bond; in 802.3ad mode, only those of the active aggregator.
Runs locally in your browser. Nothing is sent anywhere.
Enter the member count and the fields the policy reads. Example fills a two-member bond, as the course's lab bundles two cables, carrying the first flow of the Learn article's lab.
References
- The Linux kernel, Linux Ethernet Bonding Driver HOWTO (Documentation/networking/bonding.rst): xmit_hash_policy, lacp_active and lacp_rate
- The Linux kernel source, drivers/net/bonding/bond_main.c (torvalds/linux master): bond_eth_hash, bond_vlan_srcmac_hash, bond_ip_hash, __bond_xmit_hash, bond_update_slave_arr and bond_xmit_3ad_xor_slave_get
- The Linux kernel source, include/net/flow_dissector.h, net/core/flow_dissector.c, include/net/ipv6.h, include/linux/if_vlan.h and include/uapi/linux/if_bonding.h (torvalds/linux master)
- The Linux kernel source, drivers/net/bonding/bond_3ad.c (torvalds/linux master): the periodic and receive machines and the timer constants
- Cisco, Understand EtherChannel Load Balance and Redundancy on Catalyst Switches, document 12023, updated 30 November 2023 (read through WebFetch: cisco.com refused curl with HTTP 403)
- Cisco, Layer 2 Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), Configuring EtherChannels, and the 17.18.x Command Reference, Layer 2/3 Commands (lacp rate) (read through WebFetch: HTTP 403 to curl)
- Cisco, Troubleshoot EtherChannels on Catalyst 9000 Switches, document 220367, updated 8 August 2024 (French edition, read through WebFetch)
- IEEE 802.1 Working Group, IEEE8023-LAG-MIB, the Link Aggregation MIB module for IEEE 802.1AX-2020 (LAST-UPDATED 2020-05-29)
- RFC 3417, Transport Mappings for the Simple Network Management Protocol (SNMP), December 2002: section 8, the BITS encoding
- Juniper Networks, Junos OS CLI Reference, show lacp interfaces: the LACP State, LACP Protocol and LACP info fields
- Juniper Networks, Ethernet Interfaces User Guide for Switches: Aggregated Ethernet LACP for Switches, and Hashing Algorithms for LAG and ECMP
- Extreme Networks, Switch Engine v33.7.1 Command References (PDF): configure sharing address-based custom, configure sharing algorithm, show lacp member-port, configure sharing lacp timeout
- Arista Networks, EOS 4.37.0F User Manual, Port Channels and LACP (read through WebFetch: arista.com answered curl with HTTP 406)
- HPE Aruba Networking: ArubaOS 8.11 LACP overview, and AOS-CX 10.16 Link Aggregation Guide, LACP configuration settings and show lacp interfaces (read through WebFetch: HTTP 403 to curl)
- MikroTik, RouterOS 7.24 manual, Bonding: transmit-hash-policy, lacp-mode and lacp-rate
- IEEE SA, IEEE 802.1AX-2020, Link Aggregation: the standard's record (Active Standard, approved 2020-01-31, published 2020-05-29, amended by 802.1AXdz-2025), offered through the IEEE GET Program
- IEEE 802.1 Working Group, IEEE8021-TC-MIB: IEEE8021VlanIndex and IEEE8021PriorityValue
- IANA, IEEE 802 Numbers: EtherTypes 0800 (IPv4), 86DD (IPv6) and 8809 (Slow Protocols)
- RFC 9542, IANA Considerations and IETF Protocol and Documentation Usage for IEEE 802 Parameters, April 2024 (BCP 141; obsoletes RFC 7042): section 2.1.4
- RFC 5737, IPv4 Address Blocks Reserved for Documentation (January 2010), and RFC 3849, IPv6 Address Prefix Reserved for Documentation (July 2004)
- Huawei, S5700 and S6700 V200R025C00 Command Reference, Link Aggregation Commands: display eth-trunk and load-balance (read in a browser on 2026-11-08: the site refuses automated reads)
- Debian Wiki, ArchitectureSpecificsMemo: the summary table's endian column (read in a browser on 2026-11-08: the site refuses automated reads)
- RFC 3986, Uniform Resource Identifier (URI): Generic Syntax, January 2005: section 3.5, the fragment