The ARP flux problem

Address Resolution Protocol (ARP) is used to locate the Ethernet address associated with a desired IP address. It glues together the IP and Ethernet networking layers.

source:https://geek-university.com/ccna/address-resolution-protocol-arp/

When a machine sends a packet bound to another IP on a locally connected Ethernet network, a broadcast Ethernet frame containing an ARP request is sent on the Ethernet. All machine with the same Ethernet broadcast address will receive this frame. When a machine hosting the requested IP address receives the ARP packet, it responds with the link level address on which it will receive packets for that IP address. It is in this response that the ARP flux problem occurs, specifically when the machine is connected to this network segment (subnet) with multiple network cards. The machine may reply to the ARP request from multiple Ethernet interfaces.

The Linux operating system defaults to a weak host model that provides better network connectivity by accepting any locally destined packet regardless of the network interface on which the packet was received. As a result of this design, when an ARP request for an IP arrives on the machine and there are two interfaces on the same network segment, an ARP response could be sent from both the interfaces, even when the requested IP is available from one of the Ethernet interfaces. On the machine that initiated the ARP request, these responses cause a confusion and messes up with the ARP cache (leads to nondeterministic population of the cache). This is the ARP Flux problem. Note that problem only affects the hosts that have multiple physical connections to the same medium or broadcast domain.

For Example:

Avoiding ARP flux

One of the ways to fix this problem involves enabling arp_filter tune-able, which forces the recipient to perform a route lookup to determine the interface through which it should send the ARP response, instead of sending it through all interfaces that received the request. This solution however, might have some unintended effects if the only route to the destination is through one of the network cards.

Alternatively arp_ignore and arp_announce sysctl config parameters can also be used to tune this behavior.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store