LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2022, 09:51 AM   #1
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 116

Rep: Reputation: 13
ip route show cache


Two questions:

I thought that the routing cache didn't exist any more, but I found it in Debian Bullseye.
So there is a routing cache again?

Now I'm wondering why does the routing cache show lots of entries for exactly the same source and destination.
Does every SYN put an entry into the routing cache? If so, why do all the entries for the same source and destination have the same expiry time?
 
Old 11-07-2022, 05:50 AM   #2
IsaccBarker
LQ Newbie
 
Registered: Nov 2022
Location: Generalized in equations, without escape!
Distribution: Arch
Posts: 14

Rep: Reputation: 0
Yeah, it was removed in 3.6, I think. It had a really bad performance and security issues. Its average hit rate was around 10%. Source.

According to the man page,

Quote:
Starting with Linux kernel version 3.6, there is no routing cache for IPv4 anymore. Hence ip route show cached will never print any entries on systems with this or newer kernel versions.
It doesn't mention anything about the IPv6 cache being absent, is that what you are seeing? What command are you using to view the cache?

As for the same source and destination address, I have no idea.
 
Old 11-07-2022, 07:28 AM   #3
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 116

Original Poster
Rep: Reputation: 13
Kernel is > 3.6

Quote:
uname -r
5.10.0-17-amd64
and I use
ip route show cache

right now it has 8546 lines with entries like
Quote:
x.x.x.x via y.y.y.y dev gre2
cache expires 401sec mtu 1398
quite some are repeating multiple times
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gthumb - show directories; Nemo - show thumbnails but not have a thumbnail-cache. grumpyskeptic Linux - Software 1 10-18-2019 03:32 AM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration