Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Horrible BGP Performance

$
0
0

Hi,

 

I have been setting up a small network, at the moment there is 4 edgerouter pro's running OSPF with one eBGP peer with full routes, there are more peers to be added shortly.

 

If I run firmware <= 1.7.0 then performance is great and there is no issues

 

On firmware >=1.8.0:

(1) iBGP seems to take 10 minutes to sync routes (although no actual traffic on network).

(2) The output of show ip bgp summary is laggy

(3) The CPU seems to average >50% instead of ~5% on 1.7.0

 

A snapshot of the problem:

admin@***:~$ top -b -n 1 -w 120 -p `pgrep -d',' "bgpd|ribd|nsm|ntpd"`
top - 03:00:31 up 27 min,  1 user,  load average: 1.12, 1.45, 1.25
Tasks:   4 total,   3 running,   1 sleeping,   0 stopped,   0 zombie
%Cpu(s): 15.4 us, 29.4 sy,  0.0 ni, 54.4 id,  0.8 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   4040268 total,   656364 used,  3383904 free,    26776 buffers
KiB Swap:        0 total,        0 used,        0 free,   110380 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
  638 root      20   0  139m 135m 1484 R  39.4  3.4  10:09.22 ribd
 1817 ntp       20   0  6732 2116 1704 R  39.4  0.1   7:31.14 ntpd
  628 root      20   0  7180 2648 1832 R  19.7  0.1   3:25.33 nsm
  805 root      20   0  167m 163m 2304 S   0.0  4.1   0:51.82 bgpd
admin@***:~$ uptime
 03:00:48 up 27 min,  1 user,  load average: 1.33, 1.48, 1.26

Masked BGP config:

 

admin@***:~$ vtysh -c "s ru bgp"
!
bgp extended-asn-cap
!
router bgp xxxxx
 network x.x.x.0/22
 network y.y.y.0/22
 max-paths ebgp 2
 max-paths ibgp 2
 neighbor downstream_default_route_only peer-group
 neighbor downstream_default_route_only default-originate
 neighbor downstream_default_route_only soft-reconfiguration inbound
 neighbor downstream_default_route_only maximum-prefix 10
 neighbor downstream_default_route_only prefix-list default-route-only out
 neighbor ibgp peer-group
 neighbor ibgp remote-as xxxxx
 neighbor ibgp update-source lo
 neighbor x.x.x.22 remote-as 65350
 neighbor x.x.x.22 peer-group downstream_default_route_only
 neighbor x.x.x.241 peer-group ibgp
 neighbor x.x.x.242 peer-group ibgp
 neighbor x.x.x.243 peer-group ibgp
!

And of course the BGP summary:

 

admin@***:~$ show ip bgp summary
BGP router identifier x.x.x.x, local AS number xxxxx
BGP table version is 615492
83618 BGP AS-PATH entries
0 BGP community entries
2  Configured ebgp ECMP multipath: Currently set at 2
2  Configured ibgp ECMP multipath: Currently set at 2
Neighbor                 V   AS   MsgRcv    MsgSen TblVer   InQ   OutQ    Up/Down   State/PfxRcd
x.x.x.22           4 65350   70         56  615492      0      0  00:30:57               3
x.x.x.241          4 xxxxx 63         54  615484      0      0  00:29:18               5
x.x.x.242          4 xxxxx 96407         54  615484      0      0  00:29:16          610031
x.x.x.243          4 xxxxx 60         53  615484      0      0  00:28:52               0

Total number of neighbors 4

Total number of Established sessions 4

IP's and ASN is blanked.

 

I have tested loading different system images and its consistently failing with >= 1.8.0

 

I can't find a clear answer on these forums to what may be causing this, I notice a big change is the binary /usr/sbin/ribd is newly introduced. I assume it replaces something else?

 

As this is still in development, I can play with the setup for now, but its heading to live status shortly and don't really want to be stuck on outdated firmware.

 

Any help please Man Wink


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>