摘要:
转载自: 理论 3.6版本内核移除了FIB查询前的路由缓存,取而代之的是下一跳缓存,这在路由缓存的前世今生 中已经说过了。本文要说的是在该版本中引入的另一个概念:FIB Nexthop Exception,用于记录下一跳的例外情形。 它有什么用呢? 内核通过查询转发信息表(fib_lookup),得 阅读全文
posted @ 2022-03-07 20:25
codestacklinuxer
阅读(46)
评论(0)
推荐(0)
摘要:
看下以前的文章首先说明一下 Routing与 Neighboring subsystem的关联 1、在路由过程中,需要寻找或创建 struct dst_entry (另一种形式是 struct rtable)。 dst_entry 通过neighbour 域与 struct neighbour 关联 阅读全文
posted @ 2022-03-07 18:48
codestacklinuxer
阅读(112)
评论(0)
推荐(0)
摘要:
fib_table_lookup 可以参考:https://blog.csdn.net/shichaog/article/details/44658205 1405 int fib_table_lookup(struct fib_table *tb, const struct flowi4 *flp 阅读全文
posted @ 2022-03-07 12:10
codestacklinuxer
阅读(38)
评论(0)
推荐(0)
摘要:
3.6版本以前的路由缓存 缓存无处不在。现代计算机系统中,Cache是CPU与内存间存在一种容量较小但速度很高的存储器,用来存放CPU刚使用过或最近使用的数据。路由缓存就是基于这种思想的软件实现。内核查询FIB前,固定先查询cache中的记录,如果cache命中(hit),那就直接用就好了,不必查询 阅读全文
posted @ 2022-03-07 10:59
codestacklinuxer
阅读(92)
评论(0)
推荐(0)
摘要:
/proc/net/stat/rt_cache /proc/net/rt_acct /proc/net/fib_triestat /proc/net/fib_trie ip route get xxxx(ip 地址) ip route list table (local main xxx) Scop 阅读全文
posted @ 2022-03-07 10:55
codestacklinuxer
阅读(113)
评论(0)
推荐(0)

浙公网安备 33010602011771号