OSPF – max-metric 的工作原理(Cisco)

注:机翻,未校。


OSPF – how max-metric works

Two costs for an interface 接口的两种成本

When you configure an OSPF interface with a cost, you can do it directly using ip ospf cost or have the cost calculated for you using auto-cost reference bandwidth. Whichever method you choose, the OSPF RFC 2328 calls it “the cost of sending a packet out this interface”. The Router LSA, or type-1 LSA, has a 16-bit field (65535 in decimal) to represent the “interface output cost”. An interface cost of 65535 is also known as “LSInfinity”.
当您配置 OSPF 接口时,可以直接使用 ip ospf cost 设置成本,也可以通过自动计算参考带宽来获得成本。无论您选择哪种方法,OSPF RFC 2328 都称其为“从该接口发送数据包的成本”。路由器 LSA,或称类型 1 LSA,有一个 16 位字段(以十进制表示为 65535)来表示“接口输出成本”。接口成本为 65535 的情况也被称为“LSInfinity”。

We’ll go through an example using links between routers which have been configured with OSPF network type point-to-point. The links have IP addresses and active adjacencies, so are represented by in the router LSA by both Stub and P2P links.
我们将通过一个示例来说明路由器之间配置为 OSPF 网络类型点对点的链接。这些链接具有 IP 地址和活动的邻接关系,因此在路由器 LSA 中同时表示为 Stub 链接和 P2P 链接。

Router_A\# sh ip ospf interface fa1/0
FastEthernet1/0 is up, line protocol is up 
  Internet Address 192.168.12.1/24, Area 0 
  Process ID 100, Router ID 1.1.1.1, Network Type POINT_TO_POINT,  Cost: 10
Router_A#sh ip ospf database router self-originate
OSPF Router with ID (1.1.1.1) (Process ID 100)

Router Link States (Area 0)

LS age: 139
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 80000006
Checksum: 0xCBB0
Length: 84
Number of Links: 3

Link connected to: a Stub Network
(Link ID) Network/subnet number: 1.1.1.1
(Link Data) Network Mask: 255.255.255.255
Number of TOS metrics: 0
TOS 0 Metrics: 1

Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 2.2.2.2
(Link Data) Router Interface address: 192.168.12.1
Number of TOS metrics: 0
TOS 0 Metrics: 10                    <--# cost for P2P A_B link

Link connected to: a Stub Network
(Link ID) Network/subnet number: 192.16.12.0
(Link Data) Network Mask: 255.255.255.0
Number of TOS metrics: 0
TOS 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值