MIKE HIGGINBOTTOM

A Digital Garden - frequent growth but a bit weedy in the back corner

Directed Cache Update

An Unsolicited Non Gratuitous ARP instance of the ARPPacketForm StandardARPReply

What distinguishes a directed cache update is the situation around the packet (so it’s a ARPPacketPurpose) rather than the contents of the packet itself:

You can only tell them apart by pairing each reply with an earlier request across packets.

Linux bonding’s balance-alb mode balances incoming traffic this way: it sends “updates (ARP Replies) to all the peers with their individually assigned hardware address”, giving each peer a different slave’s MAC for the bond’s IP @ref=mode 6. They go to each peer in turn, so Target IP is the peer’s and not the bond’s: directed cache updates, not gratuitous ARP. The docs imply the per-peer addressing rather than spell out the fields, so a capture would confirm it

It’s a unicast ARP reply to a specific peer, with its own IP and MAC as the sender and the peer’s IP and MAC as the target, to update that one neighbor’s cache. The information is truthful (the host is advertising its own binding), but because the target IP is the peer’s, it isn’t gratuitous. Some high-availability and failover implementations work this way, as do some custom network stacks that update known neighbours individually instead of broadcasting.

Receivers can treat the two differently too. Linux, for example, by default uses an unsolicited reply to update a cache entry it already has but won’t create a new entry from one. So a directed cache update only works on peers that already know the host. That’s the general Linux default (arp_accept=0).