Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
Opnsense networking gets very slow with full BGP routing table
« previous
next »
Print
Pages: [
1
]
Author
Topic: Opnsense networking gets very slow with full BGP routing table (Read 3831 times)
ns
Newbie
Posts: 4
Karma: 0
Opnsense networking gets very slow with full BGP routing table
«
on:
October 06, 2022, 09:33:56 am »
Hello,
when adding the full routing table to an DEC4040, the system needs ca. 5 minutes to just display the content of netstat -nr. A lot of network related operations such as fetch time out sometime as well.
root@router1:~ # date; netstat -nr|wc -l; date
Thu Oct 6 09:28:26 CEST 2022
1041529
Thu Oct 6 09:33:18 CEST 2022
root@router1:~ #
Is there any tuning that needs to be done for the system to support the full routing table?
Best regards,
Nico
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #1 on:
October 06, 2022, 09:59:46 am »
I doubt you can manage the DFZ on a stock OPNsense installation. I would look into the BSD Router Project for that.
https://bsdrp.net
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
ns
Newbie
Posts: 4
Karma: 0
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #2 on:
October 06, 2022, 11:14:42 am »
That matches with my observation, but I fail to understand what causes that problem on opnsense, because in the end it's just a GUI + FreeBSD - or am I mistaken?
Logged
seed
Full Member
Posts: 174
Karma: 12
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #3 on:
October 12, 2022, 10:23:20 am »
You want to add a fulltable to a softwarerouter?
I would not do that. There is a reason why ISPs use dedicated hardwarerouters with ASICs like the Juniper MX480.
In my experience FRR on opnsense is great for smaller projects.
Logged
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:
AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance
private user, no business use
lilsense
Hero Member
Posts: 600
Karma: 19
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #4 on:
October 12, 2022, 11:07:16 am »
To correct Seed here, ASIC are designed for Packet/Frame forwarding as in switching but not routing. ASIC comes in handy in MPLS/eVPN/VXLAN concepts of BGP, but plain jane routing table requires beefy CPU and lots of RAM to achieve this such as Opteron or Xeon CPU.
Logged
seed
Full Member
Posts: 174
Karma: 12
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #5 on:
October 12, 2022, 12:41:51 pm »
Its simple.
If a router specifies wirespeed for routing it goes through a ASIC. if not (slower) its most likely done by cpu.
Logged
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:
AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance
private user, no business use
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #6 on:
October 12, 2022, 02:43:01 pm »
Yes. But in most designs the control plane is the general purpose CPU and the forwarding plane is ASIC. And BGP is run on the control plane.
A Cisco Catalyst 6500 will easily appear to have come to a halt when a full feed BGP peer toggles. SSH completely unresponsive. Yet it will continue to forward pavkets at wire speed.
As for your observation with OPNsense - I expect the BSD Router Project to have some special tuning in place. Maybe not, sorry if that remark was misleading. What kind of CPU and memory interface does your box have?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
lilsense
Hero Member
Posts: 600
Karma: 19
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #7 on:
October 13, 2022, 01:51:53 am »
Many large ISP's STILL use Ultra high performance servers with dual/quad CPU (as in Opteron/Xeon) that are built as Route Reflectors and that can handle millions of AS at line rate. This is still needed as not all ISP's are 100% MPLS. Think "T" as in Deutsche Telekom AG or T-Mobile...
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Opnsense networking gets very slow with full BGP routing table
«
Reply #8 on:
October 13, 2022, 09:30:17 am »
We have linx boxes around 5 years old running full-table with FRR, we also handled fulltable 10 years ago with Quagga, no worries. Also your OPNsense should handle this, but you never should a netstat -nr on full-table, I'd also never run a route -n on a linux with full-table. And NEVER .. NEVER .. use the UI to show routes in GUI.
You should stick into FRR via "vtysh" and quere your bgp daemon via sh ip bgp X.X.X.X ..
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
Opnsense networking gets very slow with full BGP routing table