扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
从上面的信息可以看出R1_t1的目的地为202.1.1.3,没有上行入接口(即该隧道为本地隧道),下行出接口为Et4/0,状态为up;同时可以看到一些全局的参数,比如周期性的重优化时间为3600秒,周期性自动带宽采集功能是禁用的等等。
show mpls traffic-eng tunnels
该命令显示经过本节点所有隧道的详细信息,由于查看隧道更具体的参数,比如下面的信息:
R1#show mpls traffic-eng tunnels
Name: R1_t1 (Tunnel1) Destination: 202.1.1.3
Status:
Admin: up Oper: up Path: valid Signalling: connected
path option 16, type explicit t1 (Basis for Setup, path weight 20)
Config Parameters:
Bandwidth: 3000 kbps (Global) Priority: 6 6 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled LockDown: disabled Loadshare: 3000 bw-based
auto-bw: disabled
InLabel : -
OutLabel : Ethernet4/0, 16
RSVP Signalling Info:
Src 202.1.1.1, Dst 202.1.1.3, Tun_Id 1, Tun_Instance 16
RSVP Path Info:
My Address: 80.1.2.1
Explicit Route: 80.1.2.2 80.2.3.1 80.2.3.2 202.1.1.3
Record Route:
Tspec: ave rate=3000 kbits, burst=1000 bytes, peak rate=3000 kbits
RSVP Resv Info:
Record Route: 80.1.2.2 80.2.3.2
Fspec: ave rate=3000 kbits, burst=1000 bytes, peak rate=3000 kbits
History:
Tunnel:
Time since created: 1 hours
Time since path change: 16 minutes, 42 seconds
Current LSP:
Uptime: 16 minutes, 42 seconds
Prior LSP:
ID: path option 16 [15]
Removal Trigger: tunnel shutdown
R1#
从上面的信息可以看出隧道带宽、优先级、亲和属性和管理组、自动路由和负载均衡等等参数,同时也可以看到隧道的入标签、入接口、出标签和出接口等等,这里就不详细阐述了。
2、 检查ospf的opaque数据库
show ip ospf database opaque-area
该命令显示ospf-te生成的opaque-lsa数据库,用来检查是否有显示路径上的接口没有在该数据库中。
R1#show ip ospf database opaque-area
OSPF Router with ID (202.1.1.1) (Process ID 1)
Type-10 Opaque Link Area Link States (Area 0)
LS age: 1429
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 202.1.1.1
LS Seq Number: 8000000B
Checksum: 0x8C43
Length: 132
Fragment number : 0
MPLS TE router ID : 202.1.1.1
Link connected to Broadcast network
Link ID : 80.1.2.2
Interface Address : 80.1.2.1
Admin Metric : 10
Maximum bandwidth : 1250000
Maximum reservable bandwidth : 1250000
Number of Priority : 8
Priority 0 : 1250000 Priority 1 : 1250000
Priority 2 : 1250000 Priority 3 : 1250000
Priority 4 : 1250000 Priority 5 : 1250000
Priority 6 : 875000 Priority 7 : 875000
Affinity Bit : 0x0
IGP Metric : 10
Number of Links : 1
LS age: 2030
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 202.1.1.2
LS Seq Number: 80000002
Checksum: 0x79E7
Length: 132
Fragment number : 0
MPLS TE router ID : 202.1.1.2
Link connected to Broadcast network
Link ID : 80.1.2.2
Interface Address : 80.1.2.2
Admin Metric : 10
Maximum bandwidth : 1250000
Maximum reservable bandwidth : 1250000
Number of Priority : 8
Priority 0 : 1250000 Priority 1 : 1250000
Priority 2 : 1250000 Priority 3 : 1250000
Priority 4 : 1250000 Priority 5 : 1250000
Priority 6 : 1250000 Priority 7 : 1250000
Affinity Bit : 0x0
IGP Metric : 10
Number of Links : 1
LS age: 38
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 202.1.1.3
LS Seq Number: 80000004
Checksum: 0xD5EC
Length: 132
Fragment number : 0
MPLS TE router ID : 202.1.1.3
Link connected to Broadcast network
Link ID : 80.2.3.2
Interface Address : 80.2.3.2
Admin Metric : 10
Maximum bandwidth : 1250000
Maximum reservable bandwidth : 1875000
Number of Priority : 8
Priority 0 : 1875000 Priority 1 : 1875000
Priority 2 : 1875000 Priority 3 : 1875000
Priority 4 : 1875000 Priority 5 : 1875000
Priority 6 : 1875000 Priority 7 : 1875000
Affinity Bit : 0x0
IGP Metric : 10
Number of Links : 1
LS age: 1431
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.1
Opaque Type: 1
Opaque ID: 1
Advertising Router: 202.1.1.2
LS Seq Number: 8000000A
Checksum: 0xA360
Length: 124
Fragment number : 1
Link connected to Broadcast network
Link ID : 80.2.3.2
Interface Address : 80.2.3.1
Admin Metric : 10
Maximum bandwidth : 1250000
Maximum reservable bandwidth : 1875000
Number of Priority : 8
Priority 0 : 1875000 Priority 1 : 1875000
Priority 2 : 1875000 Priority 3 : 1875000
Priority 4 : 1875000 Priority 5 : 1875000
Priority 6 : 1500000 Priority 7 : 1500000
Affinity Bit : 0x0
IGP Metric : 10
Number of Links : 1
R1#
在本文拓扑中的TE隧道的显示路径共有四个接口,其ip地址分别是:80.1.2.1、80.1.2.2、80.2.3.1和80.2.3.2,我们在opaque数据库中可以看到interface address分别是这四个地址的链路状态信息,如果缺少显示路径上任何一个接口的链路状态信息的话,TE隧道是不可能建立起来的,同时该链路状态信息还记录了该链路可以提供的基于8个优先级的TE总带宽,当TE隧道有带宽的要求时,在cspf计算中还必须考虑到接口的带宽是否能够满足隧道的带宽需求,如果不满足,TE隧道仍然是不能建立的。
3、 诊断调试命令
debug ip rsvp
该命令用于对TE隧道的调试或者相关信息,尤其是信令信息的捕获,具体可以调试的功能如下:
R1#debug ip rsvp ?
CLI RSVP CLI events
all RSVP messages for all categories
api RSVP API events
authentication RSVP authentication events and messages
database RSVP database debugging
dump-messages Dump RSVP message contents
filter RSVP filter information
handles RSVP database handles events
messages RSVP messages (sent/received via IP) debugging
msg-mgr RSVP Message Manager events
path RSVP PATH messages
policy RSVP policy information
proxy RSVP Proxy API trace
rate-limit RSVP Rate Limiting Messages
reliable-msg RSVP Reliable Messages events
resv RSVP RESV messages
routing RSVP Routing Messages
sbm RSVP SBM messages
signalling RSVP Signalling (PATH and RESV) messages
snmp RSVP SNMP events
summary-refresh RSVP Srefresh and Bundle Messages events
svc RSVP SVC events
traffic-control RSVP traffic control events
wfq RSVP WFQ events
4 Cisco流量工程的协议报文
流量工程的主要协议报文为path、resv、patherr、resverr、pathtear和resvtear等,这里只列举正常情况下捕获的path消息和resv消息,其具体的作用在后续的文档中讨论,本文只对基本配置进行讲解。
Path
Resv
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者