Is This Behavior Problematic?
Yes, this behavior in the described EVPN setup is highly problematic. It represents a flaw in the system's handling of ARP updates, route preferences, and synchronization between multihomed peers, leading to inconsistent and incorrect network state. This can cause persistent traffic disruption, blackholing, or misdirection for the affected device (Device-1 with IP-1). Below, I'll explain why it's problematic, breaking it down step-by-step based on the scenario you described, and highlighting the root causes and potential impacts.
1. Summary of the Problematic Outcome
-
Initial State (Correct and Consistent): Both Peer-A and Peer-B have the correct local ARP binding (IP-1 → MAC-A) for Device-1 on AP-1. They advertise this via EVPN (likely using Type 2 MAC-IP Advertisement routes), but each prefers its local route and ignores the remote one from the other peer. This is fine—states are synchronized, and traffic to IP-1 is forwarded correctly to MAC-A.
-
After Move (Incorrect Steady State):
- Device-1 moves to AP-2, triggering a new ARP binding (IP-1 → MAC-B).
- Peer-A (due to hashing) correctly learns the new binding locally but then overwrites it with the stale binding (IP-1 → MAC-A) from Peer-B's EVPN advertisement.
- Peer-B never learns the new binding (since the ARP hashed to Peer-A) and continues advertising the stale one.
- Both peers end up advertising and using the stale ARP binding (IP-1 → MAC-A) in a "steady state," even though the device is now on AP-2 with MAC-B.
- Result: Traffic to IP-1 is forwarded to the wrong MAC address (MAC-A), which no longer corresponds to Device-1's location.
This is not a transient issue—it's a persistent inconsistency that won't self-correct without external intervention (e.g., manual ARP flush, device reconnection, or timeout).
2. Why Is This Problematic? Key Reasons
The behavior exposes several flaws in the EVPN implementation or configuration, particularly in multihoming scenarios where peers share Ethernet Segments (ESIs) and need to synchronize state. Here's why it fails:
-
Incorrect ARP Binding Persists Indefinitely (Data Plane Impact):
- The core issue is that the network converges on a stale and wrong ARP resolution: IP-1 → MAC-A instead of IP-1 → MAC-B.
- Consequences:
- Traffic Misdirection or Blackholing: Any traffic destined for IP-1 (e.g., from other hosts or routers in the EVPN fabric) will be L2-forwarded to MAC-A (on AP-1), which no longer hosts Device-1. This could result in:
- Packets being dropped (blackholed) if AP-1 doesn't respond.
- Unintended delivery to a different device if MAC-A is reused.
- Connectivity failures for Device-1, as it won't receive traffic on AP-2.
- Layer 3 Issues: If the EVPN setup includes IRB (Integrated Routing and Bridging) or VXLAN routing, inter-subnet traffic to/from IP-1 will fail because the gateway (e.g., on Peer-A or Peer-B) uses the wrong MAC for encapsulation/decapsulation.
- In a production environment, this could lead to outages for critical services, especially if Device-1 is mobile (e.g., a wireless client roaming between APs).
-
Race Condition and Timing Flaw in Route Handling (Control Plane Impact):
- The sequence in steps 3–5 reveals a timing vulnerability:
- Peer-A removes the old local ARP (IP-1 → MAC-A) and installs the new one (IP-1 → MAC-B) in step 3.
- However, the removal of the old ARP triggers an EVPN route withdrawal (step 4), creating a brief window where there is no local route for IP-1 (or it's not yet fully processed/advertised).
- During this window, Peer-A stops ignoring Peer-B's stale EVPN route (IP-1 → MAC-A) because the "prefer local" rule no longer applies (step 5).
- Peer-A then installs the stale remote route, overwriting its own freshly learned local binding (IP-1 → MAC-B).
- Why this is flawed:
- ARP updates should be atomic or sequenced to avoid such races. Removing the old entry before fully committing/advertising the new one allows stale data to "leak" in.
- EVPN route preferences (local > remote) are intended to prevent conflicts, but here they backfire by allowing a stale remote route to override a valid (but not-yet-advertised) local update.
- Peer-A should advertise the new binding (IP-1 → MAC-B) immediately after learning it, which would allow Peer-B to update via EVPN. The scenario doesn't mention this happening—suggesting a bug where advertisement is delayed or tied incorrectly to the removal process.
-
Lack of Synchronization Between Multihomed Peers:
- In EVPN multihoming (e.g., all-active or single-active mode with ESI), peers should synchronize state to avoid split-brain scenarios. Here:
- The ARP "hashes to Peer-A," implying load-balancing (e.g., via Designated Forwarder election or hashing), but Peer-B never learns the new ARP directly.
- Peer-A doesn't effectively propagate the update to Peer-B (e.g., via EVPN advertisement or a sync mechanism like ICCP/MLACP for non-EVPN state).
- Instead, Peer-B's stale advertisement "poisons" Peer-A, leading to both peers converging on incorrect state.
- Why this is problematic: Multihoming is designed for redundancy and fast convergence, but this creates a feedback loop of stale data. In standard EVPN (per RFC 7432/8365), mechanisms like MAC mobility sequencing or ARP proxy should prevent this by ensuring updates propagate and stale entries are flushed.
-
Steady-State Inconsistency and No Self-Correction:
- The system reaches a "steady state" where:
- Both peers advertise IP-1 → MAC-A.
- Peer-B has it locally (stale).
- Peer-A has it from EVPN (stale, overwriting its correct local learn).
- There's no trigger to correct this:
- Peer-B won't learn the new ARP (hashing to Peer-A).
- Peer-A won't re-learn it because it's overwritten and now "prefers" the EVPN route.
- No EVPN mobility event (e.g., sequence number increment for MAC moves) is mentioned, which could have invalidated the stale route.
- Consequences: The error persists until an external event (e.g., ARP timeout, manual clear, or device re-ARP). In high-mobility environments (e.g., wireless APs), this could cause frequent, hard-to-diagnose failures.
-
Scalability and Security Implications:
- Scalability: In a large EVPN fabric with many devices/APs, this could amplify to widespread inconsistencies, overwhelming control planes with unnecessary route advertisements.
- Security: Stale ARP bindings could be exploited (e.g., for man-in-the-middle attacks if MAC-A is hijacked). It also violates EVPN's promise of accurate MAC-IP binding for features like ARP suppression or anti-spoofing.
3. Root Causes in EVPN Design/Implementation
- Non-Atomic ARP Updates: The system treats removal of the old ARP and installation of the new as separate steps, creating a vulnerability window.
- Route Preference Logic Bug: "Prefer local" should not allow a remote route to overwrite a newly installed local one. This might be an implementation flaw (e.g., in vendor-specific EVPN code for Juniper, Cisco, or Arista).
- Missing EVPN Features:
- MAC Mobility: EVPN Type 2 routes should include sequence numbers to detect and resolve moves (e.g., increment on MAC-IP change to invalidate stale ads).
- ARP/ND Proxy and Suppression: Many EVPN setups use proxy-ARP to synchronize bindings across peers without relying on hashing.
- Sync Protocols: Lack of inter-peer sync (e.g., via BGP EVPN updates or LACP extensions) for non-EVPN state like ARP.
- Hashing Dependency: Relying on hashing for ARP learning breaks symmetry in multihoming, leading to one peer having "fresh" info while the other poisons it.
4. Recommendations to Mitigate/Fix
- Enable EVPN MAC Mobility: Ensure Type 2 routes use sequence numbers to detect moves and withdraw stale entries.
- Use ARP Proxy/Suppression: Configure peers to proxy ARP requests and synchronize bindings explicitly.
- Atomic Updates: If this is a custom/vendor implementation, fix the code to advertise new bindings before/while withdrawing old ones, and avoid overwriting local learns with remotes.
- Timeouts and Probes: Implement short ARP timeouts or proactive probing (e.g., EVPN ARP probing) to flush stale entries.
- Testing: Simulate this scenario in a lab to confirm if it's a bug—many vendors have fixes in newer software (e.g., Juniper EVPN-MH or Cisco BGP EVPN enhancements).
- Alternatives: If EVPN is misconfigured, consider single-homing or non-EVPN redundancy (e.g., MC-LAG) for simpler ARP handling.
In summary, this behavior is problematic because it leads to incorrect, persistent forwarding state that disrupts connectivity, stemming from poor handling of updates and synchronization in a multihomed EVPN environment. If this matches your actual setup, I recommend checking vendor documentation or opening a support case, as it may indicate a known bug or misconfiguration.