开销类型
[R1-isis-1]cost-style ?
compatible Set cost style to compatible
narrow Set cost style to narrow
narrow-compatible Set cost style to narrow-compatible
wide Set cost style to wide
wide-compatible Set cost style to wide-compatible
宽度量-wide
开销=参考带宽/接口带宽*10,参考带宽范围1-16777214,参考带宽缺省值为1000。
窄度量-narrow
缺省类型,开销范围1-63,缺省值10。
宽度量(兼容模式)-wide-compatible
兼容宽度量与窄度量的LSP,本机只发送宽度量的报文(在报文中包含宽度量的TLV)
窄度量(兼容模式)-narrow-compatible
兼容宽度量与窄度量的LSP,本机只发送窄度量的报文(在报文中包含窄度量的TLV)
兼容模式-compatible
兼容宽度量与窄度量的LSP,本机只发送两种度量的报文(在报文中包含两种度量的TLV)
不同开销类型可以建立邻接关系,但因为TLV类型不一致,在3种组合下,有接口无法收到对方的路由。
1 wide(无对方路由)和narrow(无对方路由)
2 wide-compatible(有对方路由)和narrow(无对方路由)
3 narrow-compatible(有对方路由)和wide(无对方路由)
开销计算
1 内部开销计算:每经过一条链路加10。在level-1区域,去往level-2区域的路由为默认路由,开销固定为10。
2 外部开销计算:wide类型不变。narrow类型开销=64+外部路由开销+10*进过的链路数量。
相关命令
引入外部路由
[R1-isis-1]import-route direct level-1 cost 20
PS:缺省情况下,引入的路由是level-2的。
LSP的处理机制
‘
若收到的LSP比本地LSP的更优,或者本地没有收到的LSP
在广播网络中:将其加入数据库,并组播发送新的LSP。
在点到点网络中:将其加入数据库,并发送PSNP报文来确认收到此LSP,之后将这新的LSP发送给除了发送该LSP的邻居以外的邻居。
若收到的LSP和本地LSP无法比较出优劣,则不处理该LSP。
路由撤销
内部路由:通告链路状态序列号+1的LSP
外部路由:通告失效时间为0的LSP
路由渗透
由于level-1区域访问level-2区域是通过level-1-2下发的默认路由。在需level-1区域的路由器要level-2区域的特定路由时,默认路由就不可靠了,例如,当level-1区域有多台level-1-2路由器,存在次优路径时,这种场景下可以通过在下发默认路由的level-1-2路由器上配置引入level-2区域的路由到level-1区域实现需求。
相关命令
引入level-2区域的所有路由到level-1区域
[R2-isis-1]import-route isis level-2 into level-1
通过配置ACL和追加路由过滤参数实现引入指定的路由
[R2-isis-1]import-route isis level-2 into level-1 filter-policy 2000