OSPFV3的新LSA

ospf v3是为ipv6开发的.其中添加了2中新lsa: 
Link-LSA 和 Intra-Area-Prefix-LSA 
link-lsa类型是8,作用有三: 
1,在链路上通告本地链路地址给其它邻居 
2,通告本地链路上的邻居关于与自己本地链路相关联的ipv6的前缀列表 
3,通告链路状态的选项集合 
(其实这个链路范围是以路由器为边界的,但是可能一个链路上有多个路由器,因此可能会存在多个前缀
一个链路的情况,这个时候就是2特点的体现了,用于区分不同的链路,IPV6里一个链路就是一个小网段,
比站点小,站点比组织小,组织比国家小。)
link-lsa只在本地链路上传播,不会被邻居再传递下去. 
; RT3's Link-LSA for N3 
LS age = 0 ;newly (re)originated 
LS type = 0x0008 ;Link-LSA 
Link State ID = 1 ;RT3's Interface ID on N3 
Advertising Router = 192.1.1.3 ;RT3's Router ID 
Rtr Pri = 1 ;RT3's N3 Router Priority 
Options = (V6-bit|E-bit|R-bit) ;对应作用3 
Link-local Interface Address = fe80:0001::RT3 ;对应作用1 
# prefixes = 1 
PrefixLength = 56 
PrefixOptions = 0 
Address Prefix = 5f00:0000:c001:0100 ;pad to 64-bits ;对应作用2(个人认为此为主要作
用) 
只在本地链路上传递信息是不够的,还需要在area范围内传播,于是有了 Intra-Area-Prefix-LSA 
Intra-Area-Prefix-LSA 是在area范围内通告路由前缀.要通告的链路状态信息是参考lsa 类型1,2
而来的. 
具体看个例子: 
! Intra-area-prefix-LSA 
! for network link N3 
LS age = 0 ;newly (re)originated 
LS type = 0x2009 ;Intra-area-prefix-LSA 
Link State ID = 5 ;or something 
Advertising Router = 192.1.1.4 ;RT4's Router ID,r4是网络n3上的DR 
# prefixes = 1 ;通告前缀条目数量 
Referenced LS type = 0x2002 ;network-LSA reference ;这里参考了类型2 lsa,DR产生的. 
Referenced Link State ID = 1 ;参考了接口编号为1的链路状态信息 
Referenced Advertising Router = 192.1.1.4 ;参考通告前缀的路由器id 
PrefixLength = 56 ;N3's prefix 
PrefixOptions = 0 
Metric = 0 
Address Prefix = 5f00:0000:c001:0100 ;pad ;欲通告的前缀,因为长度为56,剩下的bit用0填
充 
; RT3's Intra-area-prefix-LSA 
; for its own prefixes 
LS age = 0 ;newly (re)originated 
LS type = 0x2009 ;Intra-area-prefix-LSA 
Link State ID = 177 ;or something 
Advertising Router = 192.1.1.3 ;RT3's Router ID 
# prefixes = 1 
Referenced LS type = 0x2001 ;router-LSA reference ;这里参考了类型1的lsa,区域内路由
器产生的. 
Referenced Link State ID = 0 
Referenced Advertising Router = 192.1.1.3 
PrefixLength = 56 ;N4's prefix 

你可能感兴趣的:(职场,休闲,OSPFv3,新LSA)