-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RIP+ 5K routes: high access time via vtysh #6388
Comments
Can you grab a perf flamegraph of rip when it is experiencing issues? https://github.com/FRRouting/frr/wiki/Perf-Recording |
Secondly what are you actuallytrying to do. Having 5k addresses on an interface seems like a bad idea imo( I can't imagine that there are not lots of places where code is not optimized for this size ) |
5k addresses on an interface - it for example. I have 5k tunnels |
if you have 5k tunnels you would have 5k interfaces on linux with each interface having a ip address, not 1 interface w/ 5k addresses. Hence my question. What are you really trying to do? |
i want send via rip many networks (routes). Many tunnels or many ip on one interface - its does not matter. Many networks. |
I could reproduce this problem and record a flamegraph. Here's it: ripd.svg.zip (edit: this is an SVG file with a .zip extension, not a real zip file) The problem only happens when you have a large amount of IP addresses in a single interface. So, for example, 5k interfaces with one IP address each scales well. The slowness comes from how ripd performs split-horizon suppression for connected routes. For details please see https://github.com/FRRouting/frr/blob/base_7.4/ripd/ripd.c#L2201-L2243 and commit 9920df0. One way to fix this would be to turn the interface list of connected addresses ( @ak503 if you really need that much addresses in a single interface, the only workaround for now would be to disable split-horizon using "no ip rip split-horizon" (which can cause routing loops depending on your network topology) or use a different routing daemon. |
Hello!
In frr-7.3.1 i have next test-config:
-----5k_nets----(enp0s9)[R1]---enp0s8---[R2](enp0s9)----
R1:
R2:
On R1 i have very high access time via vtysh. (vtysh is blocked, when rip send many routes)
The text was updated successfully, but these errors were encountered: