Skip to content

Commit a9b34c2

Browse files
judyjosephCarl Keene
authored and
Carl Keene
committed
To decrease the Connect Retry Timer from default value which is 120sec to 10 sec. (sonic-net#7087)
Why I did it It was observed that on a multi-asic DUT bootup, the BGP internal sessions between ASIC's was taking more time to get ESTABLISHED than external BGP sessions. The internal sessions was coming up almost exactly 120 secs later. In multi-asic platform the bgp dockers ( which is per ASIC ) on switch start are bring brought up around the same time and they try to make the bgp sessions with neighbors (in peer ASIC's) which may be not be completely up. This results in BGP connect fail and the retry happens after 120sec which is the default Connect Retry Timer How I did it Add the command to set the bgp neighboring session retry timer to 10sec for internal bgp neighbors.
1 parent f0f1fb6 commit a9b34c2

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

dockers/docker-fpm-frr/frr/bgpd/templates/internal/instance.conf.j2

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
neighbor {{ neighbor_addr }} remote-as {{ bgp_session['asn'] }}
55
neighbor {{ neighbor_addr }} description {{ bgp_session['name'] }}
66
neighbor {{ neighbor_addr }} timers 3 10
7+
neighbor {{ neighbor_addr }} timers connect 10
78
!
89
{% if neighbor_addr | ipv4 %}
910
address-family ipv4

src/sonic-bgpcfgd/tests/data/internal/instance.conf/result_back_v4.conf

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
neighbor 10.10.10.10 remote-as 555
55
neighbor 10.10.10.10 description remote_peer
66
neighbor 10.10.10.10 timers 3 10
7+
neighbor 10.10.10.10 timers connect 10
78
address-family ipv4
89
neighbor 10.10.10.10 peer-group INTERNAL_PEER_V4
910
neighbor 10.10.10.10 next-hop-self force

src/sonic-bgpcfgd/tests/data/internal/instance.conf/result_back_v6.conf

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
neighbor fc::10 remote-as 555
55
neighbor fc::10 description remote_peer
66
neighbor fc::10 timers 3 10
7+
neighbor fc::10 timers connect 10
78
address-family ipv6
89
neighbor fc::10 peer-group INTERNAL_PEER_V6
910
neighbor fc::10 next-hop-self force

src/sonic-bgpcfgd/tests/data/internal/instance.conf/result_front_v4.conf

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
neighbor 10.10.10.10 remote-as 555
55
neighbor 10.10.10.10 description remote_peer
66
neighbor 10.10.10.10 timers 3 10
7+
neighbor 10.10.10.10 timers connect 10
78
address-family ipv4
89
neighbor 10.10.10.10 peer-group INTERNAL_PEER_V4
910
neighbor 10.10.10.10 activate

src/sonic-bgpcfgd/tests/data/internal/instance.conf/result_front_v6.conf

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
neighbor fc::10 remote-as 555
55
neighbor fc::10 description remote_peer
66
neighbor fc::10 timers 3 10
7+
neighbor fc::10 timers connect 10
78
address-family ipv6
89
neighbor fc::10 peer-group INTERNAL_PEER_V6
910
neighbor fc::10 activate

0 commit comments

Comments
 (0)