Skip to content

Commit 902ad13

Browse files
judyjosephyxieca
authored andcommitted
To decrease the Connect Retry Timer from default value which is 120sec to 10 sec. (#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 42e0ffb commit 902ad13

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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 route-map FROM_BGP_INTERNAL_PEER_V4 in

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

Lines changed: 1 addition & 0 deletions
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 route-map FROM_BGP_INTERNAL_PEER_V6 in

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

Lines changed: 1 addition & 0 deletions
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_front_v6.conf

Lines changed: 1 addition & 0 deletions
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

0 commit comments

Comments
 (0)