No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

BGP ipv6 - HOLD TIMER EXPIRED in vpn-instance

Publication Date:  2017-12-14 Views:  232 Downloads:  0
Issue Description

#

BGP ipv6 configuration on NE40E - V600R009C20SPC600

bgp 65005

  ipv6-family
 vpn-instance INTERNET

  peer 2020:2020:XXXX:A::1 as-number 65000

  peer 2020:2020:XXXX:A::1 timer keepalive 10 hold 180

  peer 2020:2020:XXXX:A::1 route-policy RP-BGP-v6-INEA-1 import

#

Huawei Physical interface:

GigabitEthernet1/1/4 current state : UP

Line protocol current state : DOWN

Link quality grade : GOOD

Description:HUAWEI, GigabitEthernet1/1/4 Interface

Route Port,The Maximum Transmit Unit is 1500

Huawei Subinterface:

GigabitEthernet1/1/4.10 current state : UP

Line protocol current state : UP

Last line protocol up time : 2017-11-27 08:19:25 UTC+01:00

Link quality grade : GOOD

Description:HUAWEI, GigabitEthernet1/1/4.10 Interface

Route Port,The Maximum Transmit Unit is 1500

 

BGP Session flapping in the logs:

%%01BGP/3/STATE_CHG_UPDOWN(l)[18]:The status of the peer
2020:2020:XXXX:A::1 changed from ESTABLISHED to IDLE. (InstanceName=INTERNET,
StateChangeReason=Hold Timer Expired)

%%01BGP/3/STATE_CHG_UPDOWN(l)[19]:The status of the peer
2020:2020:XXXX:A::1 changed from OPENCONFIRM to ESTABLISHED.
(InstanceName=INTERNET, StateChangeReason=Up)

%%01BGP/3/STATE_CHG_UPDOWN(l)[22]:The status of the peer
2020:2020:XXXX:A::1 changed from ESTABLISHED to IDLE. (InstanceName=INTERNET,
StateChangeReason=Hold Timer Expired)

%%01BGP/3/STATE_CHG_UPDOWN(l)[24]:The status of the peer
2020:2020:XXXX:A::1 changed from OPENCONFIRM to ESTABLISHED.
(InstanceName=INTERNET, StateChangeReason=Up)

%%01BGP/3/STATE_CHG_UPDOWN(l)[26]:The status of the peer
2020:2020:XXXX:A::1 changed from ESTABLISHED to IDLE. (InstanceName=INTERNET,
StateChangeReason=Hold Timer Expired)

%%01BGP/3/STATE_CHG_UPDOWN(l)[28]:The status of the peer
2020:2020:XXXX:A::1 changed from OPENCONFIRM to ESTABLISHED.
(InstanceName=INTERNET, StateChangeReason=Up)

 

Handling Process

 [NE40E]displ bgp vpnv6 vpn-instance INTERNET peer 2020:2020:XXXX:A::1 verbose

        BGP Peer is 2020:2020:XXXX:A::1,  remote AS 65000

        Type: EBGP link

        BGP version 4,Remote router ID 10.253.33.100

        Update-group ID: 1

        BGP current state: Established, Up for 00h01m01s

        BGP current event:  KATimerExpired

        BGP last  state: OpenConfirm

        BGP Peer Up count:  64

juniper@juniper> show bgp neighbor 2020:2020:XXXX:A::2

Peer: 2020:2020:XXXX:A::2+49287 AS 65005 Local:
2020:2020:XXXX:A::1+179 AS 65000

  Description: IDC-v6-TESTY

  Type: External    State: Established    Flags: <WriteActive>

  Last State: OpenConfirm  

  Last Event: RecvKeepAlive

  Last Error: Hold Timer Expired Error

  Export: [ ipv6-route-filter ] Import: [ IDC-bgp-v6-in ]

  Options:
< Preference LogUpDown AddressFamily PeerAS Refresh>

  Options: <MtuDiscovery>

  Address families configured: inet6-unicast

  Holdtime: 90
Preference: 170

  Number of flaps: 109

Logs from Juniper:

juniper: bgp_read_v4_message:10805: NOTIFICATION received
from 2020:2020:XXXX:A::2 (External AS 65005): code 4 (Hold Timer Expired
Error), socket buffer sndcc: 16255 rcvcc: 0 TCP state: 4, snd_una: 3747744809
snd_nxt: 3747747785 snd_wnd: 32768 rcv_nxt: 737110738 rcv_adv: 737127122, hold
timer out 90s, hold timer remain 59.998002s

juniper: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer
2020:2020:XXXX:A::2 (External AS 65005) changed state from Established to Idle
(event RecvNotify) (instance master)

juniper: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer
2020:2020:XXXX:A::2 (External AS 65005) changed state from OpenConfirm to
Established (event RecvKeepAlive) (instance master)

juniper: bgp_read_v4_message:10805: NOTIFICATION received
from 2020:2020:XXXX:A::2 (External AS 65005): code 4 (Hold Timer Expired
Error), socket buffer sndcc: 16273 rcvcc: 0 TCP state: 4, snd_una: 2817548179
snd_nxt: 2817551155 snd_wnd: 32768 rcv_nxt: 2609362903 rcv_adv: 2609379266,
hold timer out 90s, hold timer remain 59.879083s

juniper: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer
2020:2020:XXXX:A::2 (External AS 65005) changed state from Established to Idle
(event RecvNotify) (instance master)

juniper: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer
2020:2020:XXXX:A::2 (External AS 65005) changed state from OpenConfirm to
Established (event RecvKeepAlive) (instance master)

Juniper has not reported hold timer expired.

Huawei is reporting to juniper: : NOTIFICATION received from
2020:2020:XXXX:A::2 (External AS 65005): code 4 (Hold Timer Expired Error)

The physical interface on juniper: 

juniper@juniper> show interfaces ae3

Physical interface: ae3, Enabled, Physical link is Up

  Interface index: 131, SNMP ifIndex: 510

  Description: [m0] huawei

  Link-level type: Flexible-Ethernet, MTU: 9192, Speed: 10Gbps,
BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source
filtering: Disabled,

  Flow control: Disabled

  Pad to minimum frame size: Disabled

  Minimum links needed: 1, Minimum bandwidth needed: 1bps

  Device flags   : Present Running

  Interface flags: SNMP-Traps Internal: 0x4000

  Current address: 88:a2:5e:37:b7:c3, Hardware address: 88:a2:5e:37:b7:c3

  Last flapped   : 2017-07-28 00:11:30 CEST (17w3d 12:38 ago)

  Input rate     : 4208240 bps (2021 pps)

  Output rate    : 12120640 bps (1905 pps)

Sub-interface:

juniper@juniper> show interfaces ae3.240

  Logical interface ae3.240 (Index 485) (SNMP ifIndex 718)

    Description: juniper

    Flags: Up SNMP-Traps 0x4000

VLAN-Tag [ 0x8100.240 ] 

  Encapsulation: ENET2

    Statistics        Packets        pps         Bytes          bps

    Bundle:

        Input :      16236272          4   
2649032673         2344

        Output:      15120248          1   
2161361040         8376

    Adaptive
Statistics:

        Adaptive
Adjusts:          0

        Adaptive
Scans  :          0

      Adaptive Updates:          0

    Protocol inet, MTU: 9170

      Flags:
Sendbcast-pkt-to-re

      Addresses,
Flags: Is-Preferred Is-Primary

        Destination:
192.168.0.0/30, Local: 192.168.0.1, Broadcast: 192.168.0.3

   Protocol inet6, MTU: 9170

     Addresses, Flags: Is-Preferred Is-Primary

        Destination: 2020:2020:XXXX:A::/64, Local: 2020:2020:XXXX:A::1

      Addresses,Flags: Is-Preferred

        Destination:fe80::/64, Local: fe80::8aa2:5e00:f037:b7c3

    Protocol multiservice, MTU: Unlimited

Solution

Changed the MTU to 1500bytes to
match the Huawei side:

GigabitEthernet1/1/4.10 current state : UP

Line protocol current state : UP

Last line protocol up time : 2017-11-27 08:19:25
UTC+01:00

Link quality grade : GOOD

Description:HUAWEI, GigabitEthernet1/1/4.10
Interface

Route Port,The Maximum Transmit Unit is 1500

After BGP session came UP and no more BGP session flapping
issue anymore.



END