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.

Networking

Kept in this browser · My desk

One flow and the bond
Transmit hash policy (Linux bonding)

Reads both IP addresses and the TCP or UDP ports; the MAC addresses are not read.

Processor byte order

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.

Protocol

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.

API endpointGEThttps://ronutz.com/api/v1/lacp-hash-and-state-readerDocumented, not served. Opens the specification.

References