Wednesday, 10 June 2020

Fixing LACP Timeout in Juniper

By default in Juniper, LACP timer is fast which is 1 sec, while in Cisco the default setting is slow which is 30 secs. If connecting Juniper devices to non-Juniper routers or switches, the LACP timer will have mismatch thus it can cause LACP timing out due to not receiving PDU packets in a timely manner. 


Sample error logs: user1@QFX-Router1-re0> show log messages | match lacp 
Sep 6 08:23:10.002 2020 QFX-Router1-re0 lacpd[7292]: %DAEMON-5-LACPD_TIMEOUT: xe-0/0/0: lacp current while timer expired current Receive State: CURRENT 
Sep 6 08:23:10.002 2020 QFX-Router1-re0 lacpd[7292]: %DAEMON-5-LACP_INTF_DOWN: ae30: Interface marked down due to lacp timeout on member xe-0/0/0 

FIX: user1@QFX-Router1-re0> configure 
user1@QFX-Router1-re0# set interfaces ae1 aggregated-ether-options lacp periodic slow  
user1@QFX-Router1-re0# commit

Before:
user1@QFX-Router1-re0> show lacp interfaces ae1
Aggregated interface: ae1
    LACP state:       Role   Exp   Def  Dist  Col  Syn  Aggr  Timeout  Activity
      xe-0/0/0      Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      xe-0/0/0    Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active
      xe-0/0/1     Actor    No    No   Yes  Yes  Yes   Yes     Fast    Active
      xe-0/0/1   Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active
  
    LACP protocol:        Receive State  Transmit State          Mux State
      xe-0/0/0                 Current   Slow periodic Collecting distributing
      xe-0/0/1                Current   Slow periodic Collecting distributing

{master}


After:
user1@QFX-Router1-re0> show lacp interfaces ae1
Aggregated interface: ae1
    LACP state:       Role   Exp   Def  Dist  Col  Syn  Aggr  Timeout  Activity
      xe-0/0/0      Actor    No    No   Yes  Yes  Yes   Yes     Slow    Active
      xe-0/0/0    Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active
      xe-0/0/1     Actor    No    No   Yes  Yes  Yes   Yes     Slow    Active
      xe-0/0/1   Partner    No    No   Yes  Yes  Yes   Yes     Slow    Active

    LACP protocol:        Receive State  Transmit State          Mux State
      xe-0/0/0                 Current   Slow periodic Collecting distributing
      xe-0/0/1                Current   Slow periodic Collecting distributing

No comments:

Post a Comment