两个路由器测试OSPFv3路由协议,链路断开后,路由器是否应该删除邻居节点产生的LSA,按正常来讲,路由器本身只应该删除自己产生的LSA,其它节点的LSA应该由其它节点将LSA年龄设为最大之后,在全网洪泛删除。但实际测试中,MSR2600删除了邻居节点产生的LSA,为什么?而网上的一个开源路由协议软件为什么没有删除呢?RFC 2740 - OSPF for IPv6没有找到interface down之后或邻居down之后,路由器的行为描述,那么,路由协议的正确行为应该是什么呢?
组网图如下图所示,路由器A为MSR2600,路由器B为笔记本电脑运行Unbuntu操作系统,其上运行quagga ospf6d路由(quagga介绍:***.***/quagga/,一个用于linux平台的开源路由协议软件):
网线连接好后,两个路由器均同步LSDB,并生成了路由表如下:
路由器A:
[H3C]
%Jan 1 00:36:01:401 2013 H3C OSPFV3/5/OSPFv3_NBR_CHG: OSPFv3 1 Neighbor 1.1.1.1
(GigabitEthernet0/0) from Exchange to Full.
[H3C]dis ospfv3 routing
I - Intra area route, E1 - Type 1 external route, N1 - Type 1 NSSA route
IA - Inter area route, E2 - Type 2 external route, N2 - Type 2 NSSA route
* - Selected route
OSPFv3 Router with ID (2.2.2.2) (Process 1)
------------------------------------------------------------------------
*Destination: 4001::/64
Type : I Cost : 1
NextHop : directly-connected Interface: GE0/0
[H3C]dis ospfv3 lsdb
OSPFv3 Router with ID (2.2.2.2) (Process 1)
Link-LSA (Interface GigabitEthernet0/0)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum Prefix
0.0.0.2 1.1.1.1 0032 0x80000001 0xd930 1
0.16.0.0 2.2.2.2 0077 0x80000002 0x98e7 1
Router-LSA (Area 189.189.189.189)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum Link
0.0.0.0 1.1.1.1 0023 0x80000001 0x0af6 1
0.0.0.0 2.2.2.2 0022 0x80000005 0x8862 1
Network-LSA (Area 189.189.189.189)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum
0.16.0.0 2.2.2.2 0017 0x80000002 0xa75c
Intra-Area-Prefix-LSA (Area 189.189.189.189)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum Prefix Reference
0.0.0.0 1.1.1.1 0032 0x80000001 0xe09b 1 Router-LSA
0.0.0.2 2.2.2.2 0021 0x80000001 0x550d 1 Network-LSA
[H3C]
[H3C]dis ospfv3 peer
OSPFv3 Area ID 189.189.189.189 (Process 1)
----------------------------------------------------------------------
Neighbor ID Pri State Dead Time Interface Instance ID
1.1.1.1 0 Full/DROther 00:00:35 GE0/0 0
路由器B:
ospf6d# show ipv6 ospf6 database
Area Scoped Link State Database (Area 189.189.189.189)
Type LSId AdvRouter Age SeqNum Cksm Len Duration
Router 0.0.0.0 1.1.1.1 98 80000001 0af6 40 00:01:37
Router 0.0.0.0 2.2.2.2 99 80000005 8862 40 00:01:32
Network 0.16.0.0 2.2.2.2 94 80000002 a75c 32 00:01:32
Intra-Prefix 0.0.0.1 2.2.2.2 3600 80000003 e68a 44 00:01:32
Intra-Prefix 0.0.0.2 2.2.2.2 98 80000001 550d 44 00:01:36
I/F Scoped Link State Database (I/F enp2s0 in Area 189.189.189.189)
Type LSId AdvRouter Age SeqNum Cksm Len Duration
Link 0.0.0.2 1.1.1.1 107 80000001 d930 56 00:01:47
Link 0.16.0.0 2.2.2.2 154 80000002 98e7 56 00:01:37
AS Scoped Link State Database
Type LSId AdvRouter Age SeqNum Cksm Len Duration
ospf6d# show ipv6 ospf6 route
*N IA 4001::/64 :: enp2s0 00:01:45
ospf6d# show ipv6 ospf6 neighbor
Neighbor ID Pri DeadTime State/IfState Duration I/F[State]
2.2.2.2 1 00:00:33 Full/DR 00:01:26 enp2s0[DROther]
之后将网线拔掉,
路由器A的路由表变为空,LSDB也变为空:
[H3C]
%Jan 1 00:38:03:691 2013 H3C IFNET/3/LINK_UPDOWN: GigabitEthernet0/0 link statu
s is DOWN.
%Jan 1 00:38:03:691 2013 H3C IFNET/5/LINEPROTO_UPDOWN: Line protocol on the int
erface GigabitEthernet0/0 is DOWN.
%Jan 1 00:38:03:691 2013 H3C OSPFV3/5/OSPFv3_NBR_CHG: OSPFv3 1 Neighbor 1.1.1.1
(GigabitEthernet0/0) from Full to Down.
[H3C]
[H3C]dis ospfv3 peer
[H3C]dis ospfv3 lsdb
OSPFv3 Router with ID (2.2.2.2) (Process 1)
[H3C]dis ospfv3 routing
I - Intra area route, E1 - Type 1 external route, N1 - Type 1 NSSA route
IA - Inter area route, E2 - Type 2 external route, N2 - Type 2 NSSA route
* - Selected route
OSPFv3 Router with ID (2.2.2.2) (Process 1)
------------------------------------------------------------------------
[H3C]
路由器B的LSDB中仍然有路由器A产生的LSA(源路由器2.2.2.2):
ospf6d# show ipv6 ospf6 route
*N IA 4001::/64 :: enp2s0 00:02:47
ospf6d# show ipv6 ospf6 database
Area Scoped Link State Database (Area 189.189.189.189)
Type LSId AdvRouter Age SeqNum Cksm Len Duration
Router 0.0.0.0 2.2.2.2 175 80000005 8862 40 00:02:48
Network 0.16.0.0 2.2.2.2 170 80000002 a75c 32 00:02:48
Intra-Prefix 0.0.0.2 2.2.2.2 174 80000001 550d 44 00:02:52
I/F Scoped Link State Database (I/F enp2s0 in Area 189.189.189.189)
Type LSId AdvRouter Age SeqNum Cksm Len Duration
Link 0.16.0.0 2.2.2.2 230 80000002 98e7 56 00:02:53
AS Scoped Link State Database
Type LSId AdvRouter Age SeqNum Cksm Len Duration
ospf6d#
附件是两个路由器的输出。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论