帮助我们改善您的体验。

让我们了解您的想法。

您是否能抽出两分钟的时间完成一份问卷调查?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
MPLS 应用程序用户指南
Table of Contents Expand all
list Table of Contents

机器翻译对您有帮助吗?

starstarstarstarstar
Go to English page
免责声明:

我们将使用第三方机器翻译软件翻译本页面。瞻博网络虽已做出相当大的努力提供高质量译文,但无法保证其准确性。如果对译文信息的准确性有任何疑问,请参阅英文版本. 可下载的 PDF 仅提供英文版.

MPLS 故障排除

date_range 18-Jan-25

验证 MPLS 接口

目的

如果未在网络中的路由器上正确配置 MPLS 协议,则接口将无法执行 MPLS 交换。

注:

对于要通过接口解析的标记路由, family mpls 必须在层次结构级别配置 [edit interfaces] 才能成功解析路由。当接口未配置 时 family mpls,不会解析标记的路由。

操作

要验证 MPLS 接口,请输入以下 Junos OS 命令行界面 (CLI) 操作模式命令:

content_copy zoom_out_map
user@host>                           show mpls interface           

示例输出 1

命令名称

以下示例输出适用于 MPLS 网络拓扑中显示的网络中的所有路由器。

content_copy zoom_out_map
user@R1> show mpls interface 
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/2.0       Up         <none>

user@R2> show mpls interface 
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/2.0       Up         <none>
so-0/0/3.0       Up         <none>

user@R3> show mpls interface  
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/2.0       Up         <none>
so-0/0/3.0       Up         <none>

user@R4> show mpls interface  
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/2.0       Up         <none>
so-0/0/3.0       Up         <none>

user@R5> show mpls interface  
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/2.0       Up         <none>

user@R6> show mpls interface 
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/2.0       Up         <none>
so-0/0/3.0       Up         <none>

示例输出 2

命令名称
content_copy zoom_out_map
user@R6>  show mpls interface
Interface        State       Administrative groups
so-0/0/0.0       Up         <none>
so-0/0/1.0       Up         <none>
so-0/0/3.0       Up         <none>       # so-0/0/2.0 is missing

示例输出 3

命令名称
content_copy zoom_out_map
 
user@host> show mpls interface
MPLS not configured

意义

示例输出 1 显示网络中所有路由器上的所有 MPLS 接口均已启用 (Up) 并且可以执行 MPLS 交换。如果未能在 [edit protocols mpls] 层级配置正确的接口或在 [edit interfaces type-fpc/pic/port unit number] 层级包含family mpls 语句,则该接口将无法执行 MPLS 交换,并且不会显示在命令的show mpls interface输出中。

未在 MPLS 网络拓扑的示例网络中显示的任何接口上配置管理组。但是,如果是,则输出将指示路由器上启用了哪些关联类位。

示例输出 2 显示接口 so-0/0/2.0 缺失,因此可能配置不正确。例如,接口可能不包含在 [edit protocols mpls] 层次结构级别,或者 family mpls 语句可能不包含在 [edit interfaces type-fpc/pic/port unit number] 层次结构级别。如果接口配置正确,RSVP 可能尚未通过此接口发出信号。有关确定哪个接口配置不正确的详细信息,请参阅 验证协议家族

示例输出 3 显示 MPLS 协议未在 [edit protocols mpls] 层次结构级别进行配置。

验证协议家族

目的

如果逻辑接口未启用 MPLS,则无法执行 MPLS 交换。此步骤允许您快速确定哪些接口配置了 MPLS 和其他协议家族。

操作

要验证网络中路由器上配置的协议家族,请输入以下 Junos OS CLI 操作模式命令:

content_copy zoom_out_map
user@host>                           show interfaces terse           

示例输出 1

命令名称
content_copy zoom_out_map
user@R1> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.12.1/30    
                                    iso  
                                    mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.15.1/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.13.1/30    
                                   iso  
                                   mpls 
so-0/0/3                up    down

user@R2> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.12.2/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.23.1/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.26.1/30    
                                   iso  
                                   mpls 
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.24.1/30    
                                   iso  
                                   mpls 

user@R3> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.34.1/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.23.2/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.13.2/30    
                                   iso  
                                   mpls 
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.36.1/30    
                                   iso  
                                   mpls 

user@R4> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.34.2/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.46.1/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.45.1/30    
                                   iso  
                                   mpls 
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.24.2/30    
                                   iso  
                                   mpls 

user@R5> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.56.1/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.15.2/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.45.2/30    
                                   iso  
                                   mpls 
so-0/0/3                up    down

user@R6>  show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.56.2/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.46.2/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.26.2/30    
                                   iso  
                                   mpls 
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.36.2/30    
                                   iso  
                                   mpls 

示例输出 2

命令名称
content_copy zoom_out_map
user@R6> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.56.2/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.46.2/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.26.2/30    
                                   iso  #The mpls statement is missing.
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.36.2/30    
                                   iso  
                                   mpls 

意义

示例输出 1 显示接口、链路的管理状态 (Admin)、链路的数据链路层状态 (Link)、接口上配置的协议族 (Proto) 以及接口上的本地和远程地址。

MPLS 网络拓扑中显示的网络中所有路由上的所有接口均通过 MPLS 和 IS-IS 在数据链路层进行管理启用和运行,并具有inet 地址。所有协议族都配置了一个 IPv4 协议族 (inet),并在 [edit interfaces type-fpc/pic/port unit number] 层次结构级别配置了 IS-IS (iso) 和 MPLS (mpls) 协议家族。

示例输出 2 显示 上的R6接口so-0/0/2.0没有 mpls在 [edit interfaces type-fpc/pic/port unit number] 层次结构级别包含该语句。

验证 MPLS 配置

目的

检查中转和入口路由器、使用traceroute命令验证 BGP 下一跃点并使用ping命令验证活动路径后,您可以检查 和[edit protocols mpls][edit interfaces]层次结构级别的 MPLS 配置是否存在问题。

注:

对于要通过接口解析的标记路由, family mpls 必须在层次结构级别配置 [edit interfaces] 才能成功解析路由。当接口未配置 时 family mpls,不会解析标记的路由。

操作

要验证 MPLS 配置,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show configuration protocols mpls           
user@host>              show configuration interfaces           

示例输出 1

命令名称
content_copy zoom_out_map
user@R1> show configuration protocols mpls
label-switched-path R1-to-R6 {
    to 10.0.0.6;
}
inactive: interface so-0/0/0.0;
inactive: interface so-0/0/1.0;
interface so-0/0/2.0;
interface fxp0.0 {
    disable;
}

user@R3> show configuration protocols mpls
interface fxp0.0 {
    disable;
}
inactive: interface so-0/0/0.0;
inactive: interface so-0/0/1.0;
interface so-0/0/2.0;
interface so-0/0/3.0;

user@R6> show configuration protocols mpls  
label-switched-path R6-to-R1 {
    to 10.0.0.1;
}
inactive: interface so-0/0/0.0;
inactive: interface so-0/0/1.0;
inactive: interface so-0/0/2.0;
inactive: interface so-0/0/3.0; <<< Incorrectly configured

示例输出 2

命令名称
content_copy zoom_out_map
user@R6> show configuration interfaces
so-0/0/0 {
    unit 0 {
        family inet {
            address 10.1.56.2/30;
        }
        family iso;
        family mpls;
    }
}
so-0/0/1 {
    unit 0 {
        family inet {
            address 10.1.46.2/30;
        }
        family iso;
        family mpls;
    }
}
so-0/0/2 {
    unit 0 {
        family inet {
            address 10.1.26.2/30;
        }
        family iso;
        family mpls;
    }
}
so-0/0/3 {
    unit 0 {
        family inet {
            address 10.1.36.2/30;
        }
        family iso;
        family mpls;
    }
}
fxp0 {
    unit 0 {
        family inet {
            address 192.168.70.148/21;
        }
    }
}
lo0 {
    unit 0 {
        family inet {
            address 10.0.0.6/32;
            address 127.0.0.1/32;
        }
        family iso {
            address 49.0003.1000.0000.0006.00;
        }
    }
}

意义

入口、中转和出口路由器的示例输出 1 显示出口路由器 R6 上的接口配置不正确。接口 so-0/0/3.0 在 [edit protocols mpls] 层次结构级别作为非活动状态包含在内,此时它应该处于活动状态,因为它是 LSP 传输的接口。

示例输出 2 显示已为出口路由器 R6上的 MPLS 正确配置接口。入口和转发路由器上的接口也已正确配置(未显示)。

检查 MPLS 层

目的

配置标签交换路径 (LSP)、发出 show mpls lsp 命令并确定存在错误后,您可能会发现错误不在物理层、数据链路层、互联网协议 (IP)、内部网关协议 (IGP) 或资源预留协议 (RSVP) 层中。继续调查网络 MPLS 层的问题。

图 1 说明了分层 MPLS 模型的 MPLS 层。

图 1: 检查 MPLS 层检查 MPLS 层

使用 MPLS 层,您可以检查 LSP 是否已启动并正常运行。如果网络在此层无法运行,则 LSP 无法按配置工作。

图 2 说明了本主题中使用的 MPLS 网络。

图 2: MPLS 层的 MPLS 网络中断MPLS 层的 MPLS 网络中断

中显示的 图 2 网络是全网状配置,其中每个直接连接的接口都可以接收数据包并将其发送到其他每个类似接口。此网络中的 LSP 配置为从入口路由器 R1运行,通过中转路由器 R3,到出口路由器 R6。此外,反向 LSP 配置为从 R6R3R1运行,创建双向流量。

但是,在此示例中,反向 LSP 关闭,没有从 R6 到 的 R1路径。

中显示的 图 2 十字指示 LSP 中断的位置。LSP 损坏的一些可能原因可能包括 MPLS 协议配置不正确或为 MPLS 配置的接口不正确。

在 中 图 2所示的网络中,出口路由器 R6 上的配置错误会阻止 LSP 按预期遍历网络。

要检查 MPLS 层,请执行以下步骤:

验证 LSP

目的

通常,您会使用 show mpls lsp extensive 命令来验证 LSP。但是,要快速验证 LSP 状态, show mpls lsp 请使用命令。如果 LSP 已关闭,请使用 extensive 该选项(show mpls lsp extensive) 作为后续操作。如果您的网络具有多个 LSP,则可以考虑使用 name 选项 (show mpls lsp namenameshow mpls lsp name name extensive).

操作

要验证 LSP 是否已启动,请从入口路由器输入以下部分或全部命令:

content_copy zoom_out_map
user@host> show mpls lsp
user@host> show mpls lsp extensive
user@host> show mpls lsp name name
user@host> show mpls lsp name name extensive
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp
Ingress LSP: 1 sessions
To              From            State Rt ActivePath       P     LSPname
10.0.0.6        10.0.0.1        Dn     0 -                       R1-to-R6
Total 1 displayed, Up 0,  Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show mpls lsp
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R6> show mpls lsp
Ingress LSP: 1 sessions
To              From            State Rt ActivePath       P     LSPname
10.0.0.1        10.0.0.6        Dn     0 -                       R6-to-R1
Total 1 displayed, Up 0,  Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Dn, ActiveRoute: 0, LSPname: R1-to-R6
  ActivePath: (none)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  Primary                    State: Dn
    Will be enqueued for recomputation in 22 second(s).
    1 Nov  2 14:43:38  CSPF failed: no route toward 10.0.0.6 [175 times]
  Created: Tue Nov  2 13:18:39 2004
Total 1 displayed, Up 0, Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show mpls lsp extensive 
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R6> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, State: Dn, ActiveRoute: 0, LSPname: R6-to-R1
  ActivePath: (none)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  Primary                    State: Dn
    Will be enqueued for recomputation in 13 second(s).
    1 Nov  2 14:38:12  CSPF failed: no route toward 10.0.0.1 [177 times]
  Created: Tue Nov  2 13:12:22 2004
Total 1 displayed, Up 0, Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 3
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp name R1-to-R6
Ingress LSP: 1 sessions
To              From            State Rt ActivePath       P     LSPname
10.0.0.6        10.0.0.1        Dn     0 -                      R1-to-R6
Total 1 displayed, Up 0, Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 4
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp name R1-to-R6 extensive 
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Dn, ActiveRoute: 0, LSPname: R1-to-R6
  ActivePath: (none)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  Primary                    State: Dn
    Will be enqueued for recomputation in 10 second(s).
    1 Nov  2 14:51:53 CSPF failed: no route toward 10.0.0.6[192 times]
  Created: Tue Nov  2 13:18:39 2004
Total 1 displayed, Up 0, Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

示例输出 1 显示了入口、中转和出口路由器的 LSP 状态的简要说明。入口路由器 R1 和出口路由器 R6 的输出显示两个 LSP 均已关闭, R1-to-R6 并且 R6-toR1. 如果配置了 LSP 和 ,R1R6我们预计 和 R6上都有R1出口 LSP 会话。此外,中转路由器 R3 没有中转会话。

示例输出 2 显示有关 LSP 的所有信息,包括所有过去的状态历史记录和 LSP 失败的原因。输出自 R1R6 ,指示没有到目标的路由,因为约束最短路径优先 (CSPF) 算法失败。

示例输出 3 和 4 显示了带有选项的extensive命令的show mpls lsp name 输出示例。在此实例中,输出与命令非常相似 show mpls lsp ,因为在 MPLS 层断开的 MPLS 网络的示例网络中仅配置了一个 LSP。但是,在配置了许多 LSP 的大型网络中,两个命令之间的结果会大不相同。

验证转发路由器上的 LSP 路由

目的

如果 LSP 已启动,则 LSP 路由应显示在 mpls.0 路由表中。MPLS 维护一个 MPLS 路径路由表 (mpls.0),其中包含每个 LSP 中下一个标签交换路由器的列表。此路由表在传输路由器上用于将数据包沿 LSP 路由到下一个路由器。如果转发路由器的输出中不存在路由,请检查入口和出口路由器上的 MPLS 协议配置。

操作

要验证中继路由器上的 LSP 路由,请从中继路由器输入以下命令:

content_copy zoom_out_map
user@host> show route table mpls.0
示例输出 1
命令名称
content_copy zoom_out_map
user@R3> show route table mpls.0                 
mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0                  *[MPLS/0] 16w2d 21:52:40, metric 1
                      Receive
1                  *[MPLS/0] 16w2d 21:52:40, metric 1
                      Receive
2                  *[MPLS/0] 16w2d 21:52:40, metric 1
                      Receive
示例输出 2
命令名称
content_copy zoom_out_map
user@R3> show route table mpls.0           
mpls.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0                  *[MPLS/0] 16w2d 22:26:08, metric 1
                      Receive
1                  *[MPLS/0] 16w2d 22:26:08, metric 1
                      Receive
2                  *[MPLS/0] 16w2d 22:26:08, metric 1
                      Receive
100864             *[RSVP/7] 00:07:23, metric 1
                    > via so-0/0/2.0, label-switched-path R6-to-R1
100864(S=0)        *[RSVP/7] 00:07:23, metric 1
                    > via so-0/0/2.0, label-switched-path R6-to-R1
100880             *[RSVP/7] 00:07:01, metric 1
                    > via so-0/0/3.0, label-switched-path R1-to-R6
100880(S=0)        *[RSVP/7] 00:07:01, metric 1
                    > via so-0/0/3.0, label-switched-path R1-to-R6

意义

来自传输路由器 R3 的示例输出 1 以 MPLS 标签条目的形式显示三个路由条目。这些 MPLS 标签是在 RFC 3032 中定义的保留 MPLS 标签,无论 LSP 的状态如何,它们始终存在于 mpls.0 路由表中。输出中缺少 RSVP 分配给上游邻居的传入标签,表示 LSP 已关闭。有关 MPLS 标签条目的详细信息,请参阅 验证 LSP 使用情况的清单

相比之下,示例输出 2 显示正确配置的 LSP 的 MPLS 标签和路由。存在三个保留的 MPLS 标签,其他四个条目表示 RSVP 分配给上游邻居的传入标签。这四个条目代表两个路由。每个路由有两个条目,因为 MPLS 标头中的堆栈值可能不同。对于每个路由,第二个条目 100864 (S=0) and 100880 (S=0) 指示堆栈深度不为 1,数据包中包含其他标签值。相比之下, 100864 第一个条目具有 100880 推断的 S=1 值,该值指示堆栈深度为 1,并使每个标签成为该特定数据包中的最后一个标签。双条目表示这是倒数第二个路由器。有关 MPLS 标签堆叠的更多信息,请参阅 RFC 3032, MPLS 标签堆栈编码。

验证入口路由器上的 LSP 路由

目的

检查 LSP 路由是否包含在指定地址的路由表的活动 inet.3 条目中。

操作

要验证 LSP 路由,请从入口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show route destination             
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show route 10.0.0.6           
inet.0 : 27 destinations, 27 routes (27 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.6/32        *[IS-IS/18] 6d 01:41:37, metric 20
                      to 10.1.12.2 via so-0/0/0.0
                    > to 10.1.15.2 via so-0/0/1.0
                      to 10.1.13.2 via so-0/0/2.0

user@R6> show route 10.0.0.1  

inet.0 : 28 destinations, 28 routes (28 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.1/32        *[IS-IS/18] 5d 01:01:38, metric 20
                      to 10.1.56.1 via so-0/0/0.0
                    > to 10.1.26.1 via so-0/0/2.0
                      to 10.1.36.1 via so-0/0/3.0
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> show route 10.0.0.6            
inet.0: 28 destinations, 28 routes (27 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.6/32        *[IS-IS/18] 6d 02:13:42, metric 20
                      to 10.1.12.2 via so-0/0/0.0
                    > to 10.1.15.2 via so-0/0/1.0
                      to 10.1.13.2 via so-0/0/2.0

inet.3 : 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.6/32        *[RSVP/7] 00:08:07, metric 20
                    > via so-0/0/2.0,  label-switched-path R1-to-R6

user@R6> show route 10.0.0.1 

inet.0: 29 destinations, 29 routes (28 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.1/32        *[IS-IS/18] 5d 01:34:03, metric 20
                      to 10.1.56.1 via so-0/0/0.0
                    > to 10.1.26.1 via so-0/0/2.0
                      to 10.1.36.1 via so-0/0/3.0

inet.3 : 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.1/32        *[RSVP/7] 00:10:39, metric 20
                    >  via so-0/0/3.0, label-switched-path R6-to-R1

意义

示例输出 1 仅显示路由表中的 inet.0 条目。输出中缺少路由表, inet.3 因为 LSP 不起作用。inet.0 内部网关协议 (IGP) 和边界网关协议 (BGP) 使用路由表来存储路由信息。在这种情况下,IGP 是中间系统到中间系统 (IS-IS)。有关 inet.0 路由表的详细信息,请参阅 Junos MPLS 应用程序配置指南

如果 LSP 正常工作,我们希望在路由表中看到包含 LSP inet.3 的条目。 inet.3路由表在入口路由器上使用,用于将 BGP 数据包路由到目标出口路由器。BGP 使用 inet.3 入口路由器上的路由表来帮助解析下一跃点地址。BGP 是在 MPLS 层断开的 MPLS 网络中显示的示例网络中配置的。

示例输出 2 显示了 LSP 启动时应收到的输出。输出显示 inet.0 inet.3 路由表,指示 LSP R1-to-R6R6-to-R1 可用。

使用 traceroute 命令验证 MPLS 标签

目的

显示路由数据包带到 BGP 目标,该路由的 BGP 下一跃点是 LSP 出口地址。默认情况下,BGP 使用 和 inet.0 路由 inet.3 表来解析下一跃点地址。当 BGP 路由的下一跃点地址不是出口路由器的路由器 ID 时,流量将映射到 IGP 路由,而不是 LSP。将该 traceroute 命令用作调试工具,以确定是否正在使用 LSP 转发流量。

操作

要验证 MPLS 标签,请从入口路由器输入以下命令:

content_copy zoom_out_map
user@host> traceroute hostname             
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> traceroute 100.100.6.1 
traceroute to 100.100.6.1 (100.100.6.1), 30 hops max, 40 byte packets
 1  10.1.12.2 (10.1.12.2)  0.627 ms  0.561 ms  0.520 ms
 2  10.1.26.2 (10.1.26.2)  0.570 ms !N  0.558 ms !N  4.879 ms !N

user@R6> traceroute 100.100.1.1 
traceroute to 100.100.1.1 (100.100.1.1), 30 hops max, 40 byte packets
 1  10.1.26.1 (10.1.26.1)  0.630 ms  0.545 ms  0.488 ms
 2  10.1.12.1 (10.1.12.1)  0.551 ms !N  0.557 ms !N  0.526 ms !N
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> traceroute 100.100.6.1
 to 100.100.6.1 (100.100.6.1), 30 hops max, 40 byte packets
 1  10.1.13.2 (10.1.13.2)  0.866 ms  0.746 ms  0.724 ms
      MPLS Label=100912 CoS=0 TTL=1 S=1
 2  10.1.36.2 (10.1.36.2)  0.577 ms !N  0.597 ms !N  0.546 ms !N

user@R6> traceroute 100.100.1.1     
traceroute to 100.100.1.1 (100.100.1.1), 30 hops max, 40 byte packets
 1  10.1.36.1 (10.1.36.1)  0.802 ms  0.716 ms  0.688 ms
      MPLS Label=100896 CoS=0 TTL=1 S=1
 2  10.1.13.1 (10.1.13.1)  0.570 ms !N  0.568 ms !N  0.546 ms !N

意义

示例输出 1 显示 BGP 流量未使用 LSP,因此 MPLS 标签不会出现在输出中。BGP 流量不使用 LSP,而是使用 IGP(IS-IS,在 MPLS 层中断的 MPLS 网络的示例网络中)到达 BGP 下一跳 LSP 出口地址。当 BGP 下一跃点等于 LSP 出口地址时,Junos OS 默认行为将 LSP 用于 BGP 流量。

示例输出 2 是正确配置 LSP 的输出示例。输出显示 MPLS 标签,指示 BGP 流量正在使用 LSP 到达 BGP 下一跃点。

使用 ping 命令验证 MPLS 标签

目的

当您对特定 LSP 执行 ping 操作时,请检查回显请求是否作为 MPLS 数据包通过该 LSP 发送。

操作

要验证 MPLS 标签,请从入口路由器输入以下命令以 ping 出口路由器:

content_copy zoom_out_map
user@host> ping mpls rsvp lsp-name detail

例如:

content_copy zoom_out_map
user@R1> ping mpls rsvp R1-to-R6 detail               
示例输出 1
命令名称
content_copy zoom_out_map
           
user@R1> ping mpls rsvp R1-to-R6 detail  
LSP R1-to-R6 - LSP has no active path, exiting.

user@R6> ping mpls rsvp R6-to-R1 detail             
LSP R6-to-R1 - LSP has no active path, exiting.
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> traceroute 10.0.0.6 
traceroute to 10.0.0.6 (10.0.0.6), 30 hops max, 40 byte packets
 1  10.1.15.2 (10.1.15.2)  0.708 ms  0.613 ms  0.576 ms
 2  10.0.0.6 (10.0.0.6)  0.763 ms  0.708 ms  0.700 ms

user@R1> ping mpls rsvp R1-to-R6 detail 
Request for seq 1, to interface 69, label 100880
Reply for seq 1, return code: Egress-ok
Request for seq 2, to interface 69, label 100880
Reply for seq 2, return code: Egress-ok
Request for seq 3, to interface 69, label 100880
Reply for seq 3, return code: Egress-ok
Request for seq 4, to interface 69, label 100880
Reply for seq 4, return code: Egress-ok
Request for seq 5, to interface 69, label 100880
Reply for seq 5, return code: Egress-ok

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

user@R6> ping mpls rsvp R6-to-R1 detail  
Request for seq 1, to interface 70, label 100864
Reply for seq 1, return code: Egress-ok
Request for seq 2, to interface 70, label 100864
Reply for seq 2, return code: Egress-ok
Request for seq 3, to interface 70, label 100864
Reply for seq 3, return code: Egress-ok
Request for seq 4, to interface 70, label 100864
Reply for seq 4, return code: Egress-ok
Request for seq 5, to interface 70, label 100864
Reply for seq 5, return code: Egress-ok

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

意义

示例输出 1 显示 LSP 没有转发回显请求的活动路径,表示 LSP 已关闭。

示例输出 2 是在 LSP 启动并转发数据包时应接收的输出示例。

采取适当的措施

问题

Description

根据您在调查中遇到的错误,您必须采取适当的措施来更正问题。在此示例中,出口路由器上的 [edit protocols mpls] 层次结构级别配置了不正确的接口 R6.

解决方案

若要更正此示例中的错误,请按照下列步骤操作:

  1. 激活出口路由器 R6上 MPLS 协议配置中的接口:

    content_copy zoom_out_map
    user@R6> edit               
    user@R6# edit protocols mpls               
    [edit protocols mpls]
    user@R6# show               
    user@R6# activate interface so-0/0/3.0                
    
  2. 验证并提交配置:

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R6# show               
    user@R6# commit               
    
示例输出
content_copy zoom_out_map
user@R6> edit 
Entering configuration mode

[edit]
user@R6# edit protocols mpls 

[edit protocols mpls]
user@R6# show 
label-switched-path R6-to-R1 {
    to 10.0.0.1;
}
inactive: interface so-0/0/0.0;
inactive: interface so-0/0/1.0;
inactive: interface so-0/0/2.0;
inactive: interface so-0/0/3.0; <<< Incorrectly configured interface

[edit protocols mpls]
user@R6#  activate interface so-0/0/3  

[edit protocols mpls]
user@R6# show 
label-switched-path R6-to-R1 {
    to 10.0.0.1;
}
inactive: interface so-0/0/0.0;
inactive: interface so-0/0/1.0;
inactive: interface so-0/0/2.0;
interface so-0/0/3.0; <<< Correctly configured interface

[edit protocols mpls]
user@R6# commit 
commit complete
意义

示例输出显示,出口路由器R6 上配置不正确的接口so-0/0/3.0现已在 [edit protocols mpls] 层次结构级别激活。LSP 现在可以上来了。

再次验证 LSP

目的

采取适当的操作纠正错误后,需要再次检查 LSP 以确认 BGP 层中的问题已解决。

操作

要再次验证 LSP,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host>               show mpls lsp extensive           
示例输出
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1,  State: Up ,  ActiveRoute: 1 ,  LSPname: R1-to-R6
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.13.2 S 10.1.36.2 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.13.2 10.1.36.2
    6 Nov  2 15:48:52 Selected as active path
    5 Nov  2 15:48:52 Record Route:  10.1.13.2 10.1.36.2
    4 Nov  2 15:48:52 Up
    3 Nov  2 15:48:52 Originate Call
    2 Nov  2 15:48:52 CSPF: computation result accepted
    1 Nov  2 15:48:22 CSPF failed: no route toward 10.0.0.6[308 times]
  Created: Tue Nov  2 13:18:39 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6,  LSPstate: Up , ActiveRoute: 0
   LSPname: R6-to-R1 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  159, Since: Tue Nov  2 15:48:30 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39106 protocol 0
  PATH rcvfrom: 10.1.13.2 (so-0/0/2.0) 10 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.36.2 10.1.13.2 <self>  
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show mpls lsp extensive
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 2 sessions

10.0.0.1
  From: 10.0.0.6, LSPstate: Up, ActiveRoute: 1
  LSPname: R6-to-R1, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100864, Label out: 3
  Time left:  123, Since: Tue Nov  2 15:35:41 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39106 protocol 0
  PATH rcvfrom: 10.1.36.2 (so-0/0/3.0) 10 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.13.1 (so-0/0/2.0) 10 pkts
  RESV rcvfrom: 10.1.13.1 (so-0/0/2.0) 10 pkts
  Explct route: 10.1.13.1 
  Record route: 10.1.36.2 <self> 10.1.13.1  

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 1
  LSPname: R1-to-R6, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100880, Label out: 3
  Time left:  145, Since: Tue Nov  2 15:36:03 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 48015 protocol 0
  PATH rcvfrom: 10.1.13.1 (so-0/0/2.0) 10 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.36.2 (so-0/0/3.0) 10 pkts
  RESV rcvfrom: 10.1.36.2 (so-0/0/3.0) 10 pkts
  Explct route: 10.1.36.2 
  Record route: 10.1.13.1 <self> 10.1.36.2  
Total 2 displayed, Up 2, Down 0

user@R6> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6,  State: Up, ActiveRoute: 1, LSPname: R6-to-R1
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.36.1 S 10.1.13.1 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.36.1 10.1.13.1
    6 Nov  2 15:41:44 Selected as active path
    5 Nov  2 15:41:44 Record Route:  10.1.36.1 10.1.13.1
    4 Nov  2 15:41:44 Up
    3 Nov  2 15:41:44 Originate Call
    2 Nov  2 15:41:44 CSPF: computation result accepted
    1 Nov  2 15:41:14 CSPF failed: no route toward 10.0.0.1[306 times]
  Created: Tue Nov  2 13:12:21 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1,  LSPstate: Up,  ActiveRoute: 0
   LSPname: R1-to-R6 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  157, Since: Tue Nov  2 15:42:06 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 48015 protocol 0
  PATH rcvfrom: 10.1.36.1 (so-0/0/3.0) 11 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.13.1 10.1.36.1 <self>  
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

来自入口路由器 R1 的示例输出 1 显示 LSP R1-to-R6 具有活动路由 R6 ,并且状态为 up。

来自中转路由器 R3 的示例输出 2 显示有两个中转 LSP 会话,一个从 R1R6 ,另一个从 R6R1。两家 LSP 均已启动。

出口路由器 R6 的示例输出 3 显示 LSP 已启动,活动路由是主路由。LSP 现在正在沿预期路径遍历网络(从 R1R3R6),反向 LSP 从 R6R3R1

验证一对一备份

目的

您可以通过检查入口路由器和网络中的其他路由器来验证是否已建立一对一备份。

操作

要验证一对一备份,请输入以下 Junos OS CLI 操作模式命令:

content_copy zoom_out_map
user@host> show mpls lsp ingress extensive           
user@host> show rsvp session           

示例输出

命令名称

以下示例输出来自入口路由器 R1

content_copy zoom_out_map
user@R1> show mpls lsp ingress extensive     
Ingress LSP: 1 sessions

192.168.5.1
  From: 192.168.1.1, State: Up, ActiveRoute: 0, LSPname: r1-to-r5
  ActivePath: via-r2 (primary)
   FastReroute desired
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary   via-r2           State: Up
    SmartOptimizeTimer: 180
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3)
 10.0.12.14 S 10.0.24.2 S 10.0.45.2 S 
     Received RRO  (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
           10.0.12.14(flag=9) 10.0.24.2(flag=1) 10.0.45.2
     8 May 11 14:51:46 Fast-reroute Detour Up
     7 May 11 14:50:55 Record Route:  10.0.12.14(flag=9) 10.0.24.2(flag=1)  10.0.45.2
    6 May 11 14:50:55 Record Route:  10.0.12.14(flag=9) 10.0.24.2 10.0.45.2
    5 May 11 14:50:52 Selected as active path
    4 May 11 14:50:52 Record Route:  10.0.12.14 10.0.24.2 10.0.45.2
    3 May 11 14:50:52 Up
    2 May 11 14:50:52 Originate Call
    1 May 11 14:50:52 CSPF: computation result accepted
  Created: Thu May 11 14:50:52 2006
Total 1 displayed, Up 1, Down 0

意义

的示例 R1 输出显示该 FastReroute desired 对象包含在 LSP 的路径消息中,允许 R1 为 LSP 选择活动路径并建立绕行路径以避免 R2

在第 8 行中, Fast-reroute Detour Up 表示绕行正在运行。第 6 行和第 7 行表示中继路由器R2R4并已建立其绕行路径。

R210.0.12.14包含,表示 (flag=9)节点保护可用于下游节点和链路。 R410.0.24.2包括 (flag=1),表示链路保护可用于下一个下游链路。在这种情况下,只能保护下游链路, R4 因为节点是出口路由器 R5,无法保护。有关标志的详细信息,请参阅 Junos 用户指南

命令 show mpls lsp extensive 的输出不显示绕行的实际路径。要查看绕行路径使用的实际链接,必须使用 show rsvp session ingress detail 命令。

示例输出

以下示例输出来自一对一备份绕道中显示的网络中的入口路由器R1

content_copy zoom_out_map
user@R1> show rsvp session ingress detail  
Ingress RSVP: 1 sessions

192.168.5.1
  From: 192.168.1.1,  LSPstate: Up,  ActiveRoute: 0
  LSPname: r1-to-r5, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 100848
  Resv style: 1 FF, Label in: -, Label out: 100848
  Time left:    -, Since: Thu May 11 14:17:15 2006
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 9228 protocol 0
   FastReroute desired
  PATH rcvfrom: localclient 
  Adspec: sent MTU 1500
  Path MTU: received 1500
  PATH sentto: 10.0.12.14 (fe-0/1/0.0) 35 pkts
  RESV rcvfrom: 10.0.12.14 (fe-0/1/0.0) 25 pkts
  Explct route: 10.0.12.14 10.0.24.2 10.0.45.2 
  Record route: <self> 10.0.12.14 10.0.24.2 10.0.45.2  
     Detour is Up
    Detour Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Detour adspec: sent MTU 1500
    Path MTU: received 1500
    Detour PATH sentto: 10.0.17.14 (fe-0/1/1.0) 23 pkts
    Detour RESV rcvfrom: 10.0.17.14 (fe-0/1/1.0) 20 pkts
     Detour Explct route: 10.0.17.14 10.0.79.2 10.0.59.1 
    Detour Record route: <self> 10.0.17.14 10.0.79.2 10.0.59.1  
    Detour Label out: 100848
Total 1 displayed, Up 1, Down 0

意义

的示例 R1 输出显示了主 LSP 的 RSVP 会话。绕行路径已建立。 Detour is Up 绕行的物理路径显示在 中 Detour Explct route。绕行路径使用 R7R9 作为中转路由器 R5到达 出口路由器。

示例输出

以下示例输出来自一对一 备份绕道所示网络中的第一个传输路由器 R2:

content_copy zoom_out_map
user@R2> show rsvp session transit detail 
Transit RSVP: 1 sessions

192.168.5.1
  From: 192.168.1.1, LSPstate: Up, ActiveRoute: 1
  LSPname: r1-to-r5, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 100448
  Resv style: 1 FF, Label in: 100720, Label out: 100448
  Time left:  126, Since: Wed May 10 16:12:21 2006
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 5 receiver 9216 protocol 0
   FastReroute desired
  PATH rcvfrom: 10.0.12.13 (fe-0/1/0.0) 173 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.0.24.2 (so-0/0/1.0) 171 pkts
  RESV rcvfrom: 10.0.24.2 (so-0/0/1.0) 169 pkts
  Explct route: 10.0.24.2 10.0.45.2 
  Record route: 10.0.12.13 <self> 10.0.24.2 10.0.45.2  
     Detour is Up
    Detour Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Detour adspec: received MTU 1500 sent MTU 1500
    Path MTU: received 1500
    Detour PATH sentto: 10.0.27.2 (so-0/0/3.0) 169 pkts
    Detour RESV rcvfrom: 10.0.27.2 (so-0/0/3.0) 167 pkts
     Detour Explct route: 10.0.27.2 10.0.79.2 10.0.59.1 
    Detour Record route: 10.0.12.13 <self> 10.0.27.2 10.0.79.2 10.0.59.1  
    Detour Label out: 100736
Total 1 displayed, Up 1, Down 0

意义

的示例 R2 输出显示绕行已建立 (Detour is Up) 并避免 R4,以及连接 R4R510.0.45.2) 的链接。绕行路径是通过 R7 () 和 R910.0.79.2) 到 R510.0.59.1),这与从 绕行的10.0.17.14R1R1显式路径不同,绕道通过 上的R7链接,而R1正在使用10.0.27.2链接。10.0.27.2 两个弯路R9通过链接到 R510.0.59.1) 合并10.0.79.2

示例输出

以下示例输出来自 一对一备份绕道中显示的网络中的第二个传输路由器 R4:

content_copy zoom_out_map
user@R4> show rsvp session transit detail    
Transit RSVP: 1 sessions

192.168.5.1
  From: 192.168.1.1,  LSPstate: Up, ActiveRoute: 1
   LSPname: r1-to-r5, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100448, Label out: 3
  Time left:  155, Since: Wed May 10 16:15:38 2006
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 5 receiver 9216 protocol 0
   FastReroute desired
  PATH rcvfrom: 10.0.24.1 (so-0/0/1.0) 178 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.0.45.2 (so-0/0/2.0) 178 pkts
  RESV rcvfrom: 10.0.45.2 (so-0/0/2.0) 175 pkts
  Explct route: 10.0.45.2 
  Record route: 10.0.12.13 10.0.24.1 <self> 10.0.45.2  
     Detour is Up
    Detour Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Detour adspec: received MTU 1500 sent MTU 1500
    Path MTU: received 1500
    Detour PATH sentto: 10.0.49.2 (so-0/0/3.0) 176 pkts
    Detour RESV rcvfrom: 10.0.49.2 (so-0/0/3.0) 175 pkts
     Detour Explct route: 10.0.49.2 10.0.59.1 
     Detour Record route: 10.0.12.13 10.0.24.1 <self> 10.0.49.2 10.0.59.1  
    Detour Label out: 100352
Total 1 displayed, Up 1, Down 0

意义

的示例 R4 输出显示绕行已建立 (Detour is Up) 并避免连接 R4R510.0.45.2) 的链接。绕行路径通过 R9 (10.0.49.2) 到 R510.0.59.1)。某些信息类似于在 和 R2R1输出中找到的信息。但是,绕行的显式路线是不同的,通过连接和R9(或)so-0/0/3 R4链路10.0.49.2.

示例输出

以下示例输出来自 R7,用于 一对一备份绕行中显示的网络中的绕行路径:

content_copy zoom_out_map
user@R7> show rsvp session transit detail 
Transit RSVP: 1 sessions, 1 detours

192.168.5.1
  From: 192.168.1.1,  LSPstate: Up, ActiveRoute: 1
   LSPname: r1-to-r5, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 100368
  Resv style: 1 FF, Label in: 100736, Label out: 100368
  Time left:  135, Since: Wed May 10 16:14:42 2006
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 5 receiver 9216 protocol 0
   Detour branch from 10.0.27.1, to skip 192.168.4.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
    PATH rcvfrom: 10.0.27.1 (so-0/0/3.0) 179 pkts
    Adspec: received MTU 1500 sent MTU 1500
    PATH sentto: 10.0.79.2 (so-0/0/1.0) 177 pkts
    RESV rcvfrom: 10.0.79.2 (so-0/0/1.0) 179 pkts
    Explct route: 10.0.79.2 10.0.59.1 
     Record route: 10.0.12.13 10.0.27.1 <self> 10.0.79.2 10.0.59.1  
     Label in: 100736, Label out: 100368
   Detour branch from 10.0.17.13, to skip 192.168.2.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
    PATH rcvfrom: 10.0.17.13 (fe-0/1/1.0) 179 pkts
    Adspec: received MTU 1500 
    PATH sentto: 10.0.79.2 (so-0/0/1.0) 0 pkts
    RESV rcvfrom: 10.0.79.2 (so-0/0/1.0) 0 pkts
    Explct route: 10.0.79.2 10.0.59.1 
     Record route: 10.0.17.13 <self> 10.0.79.2 10.0.59.1  
     Label in: 100752, Label out: 100368
Total 1 displayed, Up 1, Down 0

意义

的示例 R7 输出显示的信息与 LSP 主路径中使用的常规传输路由器的信息相同:入口地址 (192.168.1.1)、出口地址 (192.168.5.1 ) 和 LSP 的名称 (r1-to-r5)。显示两条绕行路径;第一个要避免 R4 (),第二个要避免 R2192.168.4.1192.168.2.1)。由于 由 和 用作R2R4中转路由器,R7可以将R7绕行路径合并在一起,如两个绕行路径的相同Label out值 (100368) 所示。无论接收标签R4值为 100736 还是来自R2标签值100752为 的流量,都将R7数据包转发到R5标签值100368为 的 R7

示例输出

以下示例输出来自 R9,R9 是 一对一备份绕行中显示的网络中绕行路径中使用的路由器:

content_copy zoom_out_map
user@R9> show rsvp session transit detail 
Transit RSVP: 1 sessions, 1 detours

192.168.5.1
  From: 192.168.1.1, LSPstate: Up, ActiveRoute: 1
  LSPname: r1-to-r5, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100352, Label out: 3
  Time left:  141, Since: Wed May 10 16:16:40 2006
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 5 receiver 9216 protocol 0
   Detour branch from 10.0.49.1, to skip 192.168.5.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
    PATH rcvfrom: 10.0.49.1 (so-0/0/3.0) 183 pkts
    Adspec: received MTU 1500 sent MTU 1500
    PATH sentto: 10.0.59.1 (so-0/0/0.0) 182 pkts
    RESV rcvfrom: 10.0.59.1 (so-0/0/0.0) 183 pkts
    Explct route: 10.0.59.1 
     Record route: 10.0.12.13 10.0.24.1 10.0.49.1 <self> 10.0.59.1  
    Label in: 100352, Label out: 3
   Detour branch from 10.0.27.1, to skip 192.168.4.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
   Detour branch from 10.0.17.13, to skip 192.168.2.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
    PATH rcvfrom: 10.0.79.1 (so-0/0/1.0) 181 pkts
    Adspec: received MTU 1500 
    PATH sentto: 10.0.59.1 (so-0/0/0.0) 0 pkts
    RESV rcvfrom: 10.0.59.1 (so-0/0/0.0) 0 pkts
     Explct route: 10.0.59.1 
    Record route: 10.0.12.13 10.0.27.1 10.0.79.1 <self> 10.0.59.1  
     Label in: 100368,  Label out: 3
Total 1 displayed, Up 1, Down 0

意义

的示例 R9 输出显示, R9 这是绕行路径的倒数第二个路由器,显式路由仅包含出口链路地址 (10.0.59.1), Label out 值 (3) 表示 R9 已执行倒数第二跳标签弹出。此外,绕行分支10.0.27.1不包括路径信息,因为R7已合并了绕行路径和R2R4。请注意,Label out绕行分支中的10.0.17.13100368值为 ,与 上的R7值相同Label out

示例输出

以下示例输出来自一对一 备份绕道中所示网络中的出口路由器 R5:

content_copy zoom_out_map
user@R5> show rsvp session egress detail 
Egress RSVP: 1 sessions, 1 detours

192.168.5.1
  From: 192.168.1.1, LSPstate: Up, ActiveRoute: 0
  LSPname: r1-to-r5, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  119, Since: Thu May 11 14:44:31 2006
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 9230 protocol 0
   FastReroute desired
  PATH rcvfrom: 10.0.45.1 (so-0/0/2.0) 258 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
   Record route: 10.0.12.13 10.0.24.1 10.0.45.1 <self>  
   Detour branch from 10.0.49.1, to skip 192.168.5.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
   Detour branch from 10.0.27.1, to skip 192.168.4.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
   Detour branch from 10.0.17.13, to skip 192.168.2.1, Up
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Adspec: received MTU 1500 
    Path MTU: received 0
    PATH rcvfrom: 10.0.59.2 (so-0/0/0.0) 254 pkts
    Adspec: received MTU 1500 
    PATH sentto: localclient
    RESV rcvfrom: localclient 
    Record route: 10.0.12.13 10.0.24.1 10.0.49.1 10.0.59.2 <self>  
     Label in: 3, Label out: -
Total 1 displayed, Up 1, Down 0

意义

的示例 R5 输出显示了现场的主要 Record route LSP 以及通过网络的绕道。

验证主路径是否正常运行

目的

如果主路径可用,则必须始终在网络中使用,因此 LSP 在发生故障后始终移回主路径,除非调整配置。有关调整配置以防止重新建立故障主路径的详细信息,请参阅 防止使用以前失败的路径

操作

要验证主路径是否正常运行,请输入以下 Junos OS 命令行界面 (CLI) 操作模式命令:

content_copy zoom_out_map
user@host> show mpls lsp extensive ingress           
user@host> show rsvp interface           

示例输出 1

命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive ingress
Ingress LSP: 1 sessions

192.168.5.1
  From: 192.168.1.1, State: Up, ActiveRoute: 0, LSPname: r1-to-r5
   ActivePath: via-r2 (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary   via-r2           State: Up
     Priorities: 6 6
     Bandwidth: 35Mbps
    SmartOptimizeTimer: 180
     Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 11)
 10.0.12.14 S 10.0.24.2 S 
     Received RRO  (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
           10.0.12.14 10.0.24.2
    5 Apr 29 14:40:43 Selected as active path
    4 Apr 29 14:40:43 Record Route:  10.0.12.14 10.0.24.2
    3 Apr 29 14:40:43 Up
    2 Apr 29 14:40:43 Originate Call
    1 Apr 29 14:40:43 CSPF: computation result accepted
  Standby   via-r7           State: Dn
    SmartOptimizeTimer: 180
        No computed ERO.
  Created: Sat Apr 29 14:40:43 2006
Total 1 displayed, Up 1, Down 0

示例输出 2

命令名称
content_copy zoom_out_map
user@R1> show rsvp interface
RSVP interface: 3 active
                  Active Subscr- Static      Available   Reserved    Highwater
Interface   State resv   iption  BW          BW          BW          mark
fe-0/1/0.0  Up         2   100%   100Mbps      100Mbps     0bps        0bps       
fe-0/1/1.0  Up         1   100%   100Mbps      100Mbps     0bps        0bps       
so-0/0/3.0  Up         1   100%   155.52Mbps   155.52Mbps  0bps        0bps

意义

示例输出 1 显示 LSP 正在运行,并且使用主路径 (via-r2) 以及 R210.0.12.14) 和 R410.0.24.2) 作为中转路由器。设置和保持 6 6的优先级值相同。优先级 0 是最高(最佳)优先级,7 是最低(最差)优先级。Junos OS 设置和保持优先级的默认值为 7:0。除非某些 LSP 比其他 LSP 更重要,否则保留默认值是一种很好的做法。不允许配置优于保留优先级的设置优先级,这会导致提交失败,以避免抢占循环。

验证辅助路径是否已建立

目的

当使用语句配置 standby 辅助路径时,辅助路径应已 启动 但不 处于活动状态;如果主路径发生故障,辅助路径将变为活动状态。除非主路径失败,否则不会启动不使用语句配置 standby 的辅助路径。要测试辅助路径是否已正确配置,并且在主路径出现故障时是否启动,必须停用对主路径至关重要的链路或节点,然后发出 show mpls lsp lsp-path-name extensive 命令。

操作

要验证辅助路径是否已建立,请输入以下 Junos OS CLI 操作模式命令:

示例输出

content_copy zoom_out_map
user@R1> show mpls lsp extensive           

示例输出

命令名称

以下示例输出显示了启动之前和之后正确配置的辅助路径。在此示例中,上的R2接口fe-0/1/0已停用,这将关闭主路径 via-r2。入口路由器 R1 将流量切换到辅助路径 via-r7

content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

192.168.5.1
  From: 192.168.1.1, State: Up, ActiveRoute: 0, LSPname: r1-to-r5
  ActivePath: via-r2 (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  *Primary   via-r2           State: Up
    Priorities: 6 6
    Bandwidth: 35Mbps
    SmartOptimizeTimer: 180
     Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3)
 10.0.12.14 S 10.0.24.2 S 10.0.45.2 S
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.0.12.14 10.0.24.2 10.0.45.2
    5 Apr 29 14:40:43 Selected as active path
    4 Apr 29 14:40:43 Record Route:  10.0.12.14 10.0.24.2
    3 Apr 29 14:40:43 Up
    2 Apr 29 14:40:43 Originate Call
    1 Apr 29 14:40:43 CSPF: computation result accepted
   Secondary via-r7           State: Dn
    SmartOptimizeTimer: 180
        No computed ERO.
  Created: Sat Apr 29 14:40:43 2006
Total 1 displayed, Up 1, Down 0

[edit interfaces]
user@R2# deactivate fe-0/1/0
 
[edit interfaces]
user@R2# show
inactive: fe-0/1/0 {
    unit 0 {
        family inet {
            address 10.0.12.14/30;
        }
        family iso;
        family mpls;
    }
}

user@R1> show mpls lsp name r1-to-r4 extensive     
Ingress LSP: 1 sessions

192.168.4.1
  From: 192.168.1.1, State: Up, ActiveRoute: 0, LSPname: r1-to-r4
   ActivePath: via-r7 (secondary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
   Primary   via-r2           State: Dn
    Priorities: 6 6
    Bandwidth: 35Mbps
    SmartOptimizeTimer: 180
    Will be enqueued for recomputation in 14 second(s).
   10 Apr 29 14:52:33 CSPF failed: no route toward 10.0.12.1 4[21 times]
    9 Apr 29 14:42:48 Clear Call
    8 Apr 29 14:42:48 Deselected as active
    7 Apr 29 14:42:48 Session preempted
    6 Apr 29 14:42:48 Down
    5 Apr 29 14:40:43 Selected as active path
    4 Apr 29 14:40:43 Record Route:  10.0.12.14 10.0.24.2
    3 Apr 29 14:40:43 Up
    2 Apr 29 14:40:43 Originate Call
    1 Apr 29 14:40:43 CSPF: computation result accepted
  *Standby   via-r7           State: Up
    SmartOptimizeTimer: 180
     Computed ERO  (S [L] denotes strict [loose] hops): (CSPF metric: 11)
 10.0.17.14 S 10.0.47.1 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.0.17.14 10.0.47.1
    5 Apr 29 14:42:48 Selected as active path
    4 Apr 29 14:41:12 Record Route:  10.0.17.14 10.0.47.1
    3 Apr 29 14:41:12 Up
    2 Apr 29 14:41:12 Originate Call
    1 Apr 29 14:41:12 CSPF: computation result accepted
  Created: Sat Apr 29 14:40:43 2006
Total 1 displayed, Up 1, Down 0

意义

出口路由器 R1 的示例输出显示正确配置的备用辅助路径处于关闭状态,因为主路径仍处于打开状态。停用对主路径至关重要的接口(interface fe-0/1/0 on R2)后,主路径 via-r2 将关闭,备用辅助路径 via-r7 将启动,从而允许 R1 将流量切换到备用辅助路径。

验证物理层

目的

配置 LSP 、发出 show mpls lsp extensive 命令并确定存在错误后,可以在网络的物理层开始调查问题。

图 3 说明了分层 MPLS 模型的物理层。

图 3: 验证物理层验证物理层

使用此层,您必须确保路由器已连接,并且入口、出口和中转路由器上的接口已启动且配置正确。

如果网络在此层运行不正常,则标签交换路径 (LSP) 无法按配置工作。

图 4 阐释了 MPLS 网络和本主题中描述的问题。

图 4: MPLS 网络在物理层中断MPLS 网络在物理层中断

中显示的 图 4 网络是全网状配置,其中每个直接连接的接口都可以接收数据包并将其发送到其他每个类似接口。此网络中的 LSP 配置为从入口路由器 R1运行,通过中转路由器 R3,到出口路由器 R6。此外,反向 LSP 配置为从 R6R3R1运行,创建双向流量。

但是,在此示例中,流量不使用配置的 LSP。相反,流量使用从 R1R6R2 的备用路由,在相反的方向上使用从 R6R5 to R1的备用路由。

当您发现使用备用路由而不是配置的 LSP 的情况时,请验证物理层是否正常运行。您可能会发现路由器未连接,或者入口、出口或中转路由器上的接口未启动和配置不正确。

中显示的 图 4 叉号指示由于入口路由器 R1上的配置错误而导致 LSP 中断的位置。

要检查物理层,请执行以下步骤:

验证 LSP

目的

通常,您会使用 show mpls lsp extensive 命令来验证 LSP。但是,要快速验证 LSP 状态,请使用 show mpls lsp 命令。如果 LSP 已关闭,请使用 extensive 该选项(show mpls lsp extensive) 作为后续操作。如果您的网络具有多个 LSP,则可以考虑使用 name 选项 (show mpls lsp namenameshow mpls lsp name name extensive).

操作

要确定 LSP 是否已启动,请从入口路由器输入以下命令:

content_copy zoom_out_map
user@ingress-router> show mpls lsp extensive           
示例输出
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Up, ActiveRoute: 1, LSPname: R1-to-R6
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.12.2 S 10.1.26.2  S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.12.2 10.1.26.2
   99 Sep 18 14:19:04 CSPF: computation result accepted
    98 Sep 18 14:19:04 CSPF: link down/deleted  
   10.1.13.1(R1.00/10.0.0.1)->10.1.13.2(R3.00/10.0.0.3)
   97 Sep 18 14:19:01 Record Route:  10.1.12.2 10.1.26.2
   96 Sep 18 14:19:01 Up
   95 Sep 18 14:19:01 Clear Call
   94 Sep 18 14:19:01 CSPF: computation result accepted
   93 Sep 18 14:19:01 MPLS label allocation failure
   92 Sep 18 14:19:01 Down
   91 Aug 17 12:22:52 Selected as active path
   90 Aug 17 12:22:52 Record Route:  10.1.13.2 10.1.36.2
   89 Aug 17 12:22:52 Up
   [...Output truncated...]
  Created: Sat Jul 10 18:18:44 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, LSPstate: Up, ActiveRoute: 0
  LSPname: R6-to-R1, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  144, Since: Tue Aug 17 12:23:14 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39024 protocol 0
  PATH rcvfrom: 10.1.15.2 (so-0/0/1.0) 67333 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route:  10.1.56.2 10.1.15.2 <self>  
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

入口路由器 R1 的示例输出显示 LSP 使用的是备用路径,而不是配置的路径。LSP 的配置路径是到 R3R6, ,反向 LSP R1R3R6 的配置路径是R1到 。LSP 使用的备用路径是R1R6, R2反向 LSP, R6 t通过 R5 R1

验证路由器连接

目的

通过检查数据包是否已在 0% 丢包的情况下接收和传输数据包,确认相应的入口、中转和出口路由器是否正常工作。

操作

要确定路由器是否已连接,请从入口路由器和中转路由器输入以下命令:

content_copy zoom_out_map
user@host>              ping host             
示例输出
命令名称
content_copy zoom_out_map
user@R1> ping 10.0.0.3 count 3  
PING 10.0.0.3 (10.0.0.3): 56 data bytes
64 bytes from 10.0.0.3: icmp_seq=0 ttl=254 time=0.859 ms
64 bytes from 10.0.0.3: icmp_seq=1 ttl=254 time=0.746 ms
64 bytes from 10.0.0.3: icmp_seq=2 ttl=254 time=0.776 ms

--- 10.0.0.3 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.746/0.794/0.859/0.048 ms

user@R3>  ping 10.0.0.6 count 3 
PING 10.0.0.6 (10.0.0.6): 56 data bytes
64 bytes from 10.0.0.6: icmp_seq=0 ttl=255 time=0.968 ms
64 bytes from 10.0.0.6: icmp_seq=1 ttl=255 time=3.221 ms
64 bytes from 10.0.0.6: icmp_seq=2 ttl=255 time=0.749 ms

--- 10.0.0.6 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.749/1.646/3.221/1.117 ms

意义

示例输出显示入口路由器 R1 正在从中转路由器 R3接收数据包,并且中转路由器正在从出口路由器接收数据包。因此,LSP 中的路由器已连接。

验证接口

目的

使用语句确认 family mpls 接口配置正确。

操作

要确定相关接口是否已启动并配置正确,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host> show interfaces terse
user@host> show configuration interfaces type-fpc/pic/port             
示例输出
命令名称
content_copy zoom_out_map
user@R1> show interfaces so* terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.12.1/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.15.1/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.13.1/30    
                                   iso   <<< family mpls is missing
so-0/0/3                up    down

user@R1>  show configuration interfaces so-0/0/2 
unit 0 {
    family inet {
        address 10.1.13.1/30;
    }
    family iso; <<<  family mpls is missing
}

意义

示例输出显示,入口路由器上的接口 so-0/0/2.0 没有 family mpls 在 [edit interfaces type-fpc/pic/port] 层次结构级别配置语句,表示接口未正确配置为支持 LSP。LSP 在 [edit protocols mpls] 层次结构级别配置正确。

中转和出口路由器的输出(未显示)显示这些路由器上的接口配置正确。

采取适当的措施

问题

Description

根据您在调查中遇到的错误,您必须采取适当的措施来更正问题。在下面的示例中,缺少的 family mpls 语句包含在入口路由器 R1的配置中。

解决方案

要更正此示例中的错误,请输入以下命令:

content_copy zoom_out_map
[edit interfaces                type-fpc/pic/port]
user@R1# set family mpls            
user@R1# show           
user@R1# commit           
示例输出
content_copy zoom_out_map
[edit interfaces so-0/0/2 unit 0]
user@R1# set family mpls  

[edit interfaces so-0/0/2 unit 0]
user@R1# show 
family inet {
    address 10.1.13.1/30;
}
family iso;
family mpls;

[edit interfaces so-0/0/2 unit 0]
user@R1# commit 
commit complete
意义

入口路由器 R1的示例输出显示,已针对接口 so-0/0/2.0正确配置语句family mpls,并且 LSP 现在按最初配置运行。

再次验证 LSP

目的

采取适当的措施纠正错误后,需要再次检查 LSP,以确认物理层中的问题已解决。

操作

要验证 LSP 是否已启动并按预期遍历网络,请输入以下命令:

content_copy zoom_out_map
user@host> show mpls lsp extensive
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Up, ActiveRoute: 1, LSPname: R1-to-R6
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
  10.1.13.2 S 10.1.36.2 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.13.2 10.1.36.2
   112 Sep 21 16:27:33 Record Route:  10.1.13.2 10.1.36.2
   111 Sep 21 16:27:33 Up
   110 Sep 21 16:27:33 CSPF: computation result accepted
   109 Sep 21 16:27:33 CSPF: link down/deleted 10.1.12.1(R1.00/10.0.0.1)->10.1.12.2(R2.00/10.0.0.2)
   108 Sep 21 16:27:33 CSPF: link down/deleted 10.1.15.1(R1.00/10.0.0.1)->10.1.15.2(R5.00/10.0.0.5)
   [Output truncated...]
  Created: Sat Jul 10 18:18:44 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, LSPstate: Up, ActiveRoute: 0
  LSPname: R6-to-R1, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  149, Since: Tue Sep 21 16:29:43 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 2 receiver 39024 protocol 0
  PATH rcvfrom: 10.1.13.2 (so-0/0/2.0) 7 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
   Record route: 10.1.36.2 10.1.13.2 <self>   
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 2
命令名称
content_copy zoom_out_map
[edit protocols mpls]
user@R1# show 
label-switched-path R1-to-R6 {
    to 10.0.0.6;
}
interface fxp0.0 {
    disable;
}
inactive: interface so-0/0/0.0;
inactive: interface so-0/0/1.0;
interface so-0/0/2.0;

意义

入口路由器 R1 的示例输出 1 显示,LSP 现在正沿预期路径(从 R1 到 )和反向 LSP R6 从 到 R3R3 R6R1遍历网络。

入口路由器R1 的示例输出 2 显示 LSP 被强制采用预期路径,因为接口so-0/0/0.0so-0/0/1.0上的 MPLS 已停用R1 。如果未停用这些接口,即使现在配置正确,LSP 仍会通过备用路径遍历网络。

验证 IP 和 IGP 层

问题

Description

配置标签交换路径 (LSP)、发出 show mpls lsp extensive 命令并确定存在错误后,您可能会发现错误不在物理或数据链路层中。继续调查网络的 IP 层和 IGP 层的问题。

图 7 说明了分层 MPLS 模型的 IP 层和 IGP 层。

图 7: IP 和 IGP 层IP 和 IGP 层

解决方案

在 IP 层和 IGP 层,必须检查以下内容:

  • 接口具有正确的 IP 寻址,并建立 IGP 邻居或邻接关系。

  • 开放最短路径优先 (OSPF) 或中间系统到中间系统 (IS-IS) 协议已配置并正常运行。

    • 如果配置了 OSPF 协议,请先检查 IP 层,然后再检查 OSPF 配置,确保协议、接口和流量工程配置正确。

    • 如果配置了 IS-IS 协议,则先检查 IS-IS 还是 IP 并不重要,因为这两个协议彼此独立。验证 IS-IS 邻接是否已建立,以及接口和 IS-IS 协议配置是否正确。

      注:

      默认情况下,IS-IS 协议已启用流量工程。

如果网络在 IP 层或 IGP 层无法正常工作,则 LSP 无法按配置工作。

图 8 说明了本主题中使用的 MPLS 网络。

图 8: IP 层和 IGP 层的 MPLS 网络中断IP 层和 IGP 层的 MPLS 网络中断

中显示的 图 8 网络是全网状配置,其中每个直接连接的接口都可以接收数据包并将其发送到其他每个类似接口。此网络中的 LSP 配置为从入口路由器 R1运行,通过中转路由器 R3,到出口路由器 R6。此外,反向 LSP 配置为从 R6R3、 到 R1运行,从而创建双向流量。中的 图 8 叉号表示 LSP 在何处由于 IP 和 IGP 层的以下问题而无法正常工作:

  • 入口路由器上的 IP 地址配置不正确 (R1)。

  • OSPF 协议配置了路由器 ID (RID),但没有环路 (lo0) 接口,并且中转路由器 (R3) 中缺少流量工程。

  • IS-IS 网络中的级别不匹配。

验证 IP 层

目的

您可以在检查内部网关协议 (IGP) 层之前或之后检查 IP 层,具体取决于您是否将 OSPF 或 IS-IS 配置为 IGP。如果您的 MPLS 网络配置了 OSPF 作为 IGP,则必须先验证 IP 层,检查接口是否具有正确的 IP 寻址以及是否已建立 OSPF 邻居,然后再检查 OSPF 层。

如果您在 MPLS 网络中将 IS-IS 配置为 IGP,则可以先验证 IP 层或 IS-IS 协议层。检查 IP 或 IS-IS 层的顺序不会影响结果。

图 9: IP 层 MPLS 网络中断IP 层 MPLS 网络中断

交叉指示 图 9 由于入口路由器 R1上的 IP 地址配置不正确而导致 LSP 中断的位置。

验证 LSP

目的

配置 LSP 后,必须验证 LSP 是否已启动。LSP 可以是入口、传输或出口。使用 show mpls lsp 命令快速验证 LSP 状态,并提供 extensive 选项(show mpls lsp extensive) 在 LSP 关闭时作为后续操作。如果您的网络具有多个 LSP,则可以考虑使用name 选项 ( 或 show mpls lsp name name extensive).show mpls lsp namename

操作

要验证 LSP 是否已启动,请从入口路由器输入以下命令:

content_copy zoom_out_map
user@host> show mpls lsp extensive             
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Dn, ActiveRoute: 0, LSPname: R1-to-R6
   ActivePath: (none)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  Primary                    State: Dn
    Will be enqueued for recomputation in 25 second(s).
   44 Oct 15 16:56:11 CSPF failed:  no route toward 10.0.0.6 [2685 times]
   43 Oct 14 19:07:09 Clear Call
   42 Oct 14 19:06:56 Deselected as active
   41 Oct 14 19:06:56 10.1.12.1: MPLS label allocation failure
   40 Oct 14 19:06:56 Down
   39 Oct 14 18:43:43 Selected as active path
   38 Oct 14 18:43:43 Record Route:  10.1.13.2 10.1.36.2
   37 Oct 14 18:43:43 Up
   [...Output truncated...]
  Created: Thu Oct 14 16:04:33 2004
Total 1 displayed, Up 0,  Down 1

Egress LSP: 0 sessions
Total 0 displayed , Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed , Up 0, Down 0

意义

入口路由器R1的示例输出显示发生了 MPLS 标签分配失败,并且约束最短路径优先 (CSPF) 算法失败,导致 上R6没有到达目标10.0.0.6的路由。

验证 IP 寻址

目的

调查 IP 层时,需要验证接口是否具有正确的 IP 寻址,以及是否已建立 OSPF 邻居或 IS-IS 邻接关系。在此示例中,入口路由器 (R1) 上的 IP 地址配置不正确。

操作

要验证 IP 地址,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host> show interfaces terse
示例输出
命令名称
content_copy zoom_out_map
user@R1> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.12.1/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.15.1/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.13.2 <<< Incorrect IP address
                                   iso  
                                   mpls 
lo0                     up    up  
lo0.0                   up    up   inet  10.0.0.1 
                                   iso   49.0004.1000.0000.0001.00

user@R3> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up
so-0/0/0.0              up    up   inet  10.1.34.1/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up  
so-0/0/1.0              up    up   inet  10.1.23.2/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.13.2/30 <<< Identical to R1
                                   iso  
                                   mpls 
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.36.1/30    
                                   iso  
                                   mpls 
lo0                     up    up  
lo0.0                   up    up   inet  10.0.0.3 
                                   iso   49.0004.1000.0000.0003.00

user@R6> show interfaces terse
Interface               Admin Link Proto Local                 Remote
so-0/0/0                up    up  
so-0/0/0.0              up    up   inet  10.1.56.2/30    
                                   iso  
                                   mpls 
so-0/0/1                up    up
so-0/0/1.0              up    up   inet  10.1.46.2/30    
                                   iso  
                                   mpls 
so-0/0/2                up    up  
so-0/0/2.0              up    up   inet  10.1.26.2/30    
                                   iso  
                                   mpls 
so-0/0/3                up    up  
so-0/0/3.0              up    up   inet  10.1.36.2/30    
                                   iso  
                                   mpls 
lo0.0                   up    up   inet  10.0.0.6 
                                   iso   49.0004.1000.0000.0006.00

意义

示例输出显示,打开R1的接口和打开R3的接口so-0/0/2.0so-0/0/2.0的 IP 地址相同。网络中的接口 IP 地址必须是唯一的,才能正确识别接口。

验证 IP 层的邻居或邻接关系

目的

如果 IP 地址配置不正确,则需要检查 OSPF 邻居或 IS-IS 邻接关系,以确定是否建立了其中一个或两个。

操作

要验证邻居 (OSPF) 或邻接 (IS-IS),请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host> show ospf neighbor extensive
user@host> show isis adjacency extensive
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show ospf neighbor extensive
Address         Interface             State      ID              Pri  Dead
10.1.12.2        so-0/0/0.0             Full      10.0.0.2         128   34  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1d 04:45:20, adjacent 1d 04:45:20
10.1.15.2        so-0/0/1.0             Full      10.0.0.5         128   35  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1d 04:45:20, adjacent 1d 04:45:10  <<< no adjacency with R3 so-0/0/2

user@R3> show ospf neighbor extensive 
Address         Interface             State      ID              Pri  Dead
10.1.23.1        so-0/0/1.0             Full      10.0.0.2         128   35  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1w2d 04:54:30, adjacent 1w2d 04:54:21
10.1.36.2        so-0/0/3.0             Full      10.0.0.6         128   39  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1w2d 04:54:30, adjacent 1w2d 04:54:30  <<< no adjacency with R1 so-0/0/2

user@R6> show ospf neighbor extensive 
Address         Interface             State      ID              Pri  Dead
10.1.56.1        so-0/0/0.0             Full      10.0.0.5         128   39  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1d 02:59:35, adjacent 1d 02:59:35
10.1.26.1        so-0/0/2.0             Full      10.0.0.2         128   36  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1w2d 04:57:30, adjacent 1w2d 04:57:30
10.1.36.1        so-0/0/3.0             Full      10.0.0.3         128   36  
  area 0.0.0.0, opt 0x42, DR 0.0.0.0, BDR 0.0.0.0
  Up 1w2d 04:56:11, adjacent 1w2d 04:56:11
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> show isis adjacency extensive
R2
  Interface: so-0/0/0.0,  Level: 2, State: Up , Expires in 23 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 05:57:16 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.12.2
  Transition log:
  When                  State        Reason
  Fri Oct 15 14:58:35   Up           Seenself

R5
  Interface: so-0/0/1.0,  Level: 2, State: Up, Expires in 26 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 05:56:52 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.15.2
  Transition log:
  When                  State        Reason
  Fri Oct 15 14:59:00   Up           Seenself

R3
  Interface: so-0/0/2.0, Level: 2, State: Up, Expires in 26 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 05:56:51 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes 
  IP addresses: 10.1.13.2
  Transition log:
  When                  State        Reason
  Fri Oct 15 14:59:01   Up           Seenself

user@R3> show isis adjacency extensive  
R4
  Interface: so-0/0/0.0,  Level: 2, State: Up , Expires in 25 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 1w1d 00:22:51 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.34.2
  Transition log:
  When                  State        Reason
  Thu Oct 28 15:13:12   Up           Seenself

R2
  Interface: so-0/0/1.0,  Level: 2, State: Up , Expires in 25 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 2w2d 18:02:48 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.23.1
  Transition log:
  When                  State        Reason
  Tue Oct 19 21:33:15   Up           Seenself

R1
  Interface: so-0/0/2.0,  Level: 2, State: Up , Expires in 22 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 2w2d 17:24:06 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.13.1
  Transition log:
  When                  State        Reason
  Tue Oct 19 22:11:57   Up           Seenself

R6
  Interface: so-0/0/3.0,  Level: 2, State: Up , Expires in 21 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 2w1d 00:07:00 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.36.2
  Transition log:
  When                  State        Reason
  Thu Oct 21 15:29:03   Up           Seenself

user@R6>  show isis adjacency extensive 
R5
  Interface: so-0/0/0.0,  Level: 2, State: Up , Expires in 23 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 1w2d 01:10:03 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.56.1
  Transition log:
  When                  State        Reason
  Wed Oct 27 14:35:32   Up           Seenself

R4
  Interface: so-0/0/1.0,  Level: 2, State: Up , Expires in 25 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 1w1d 00:26:50 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.46.1
  Transition log:
  When                  State        Reason
  Thu Oct 28 15:18:45   Up           Seenself

R2
  Interface: so-0/0/2.0,  Level: 2, State: Up , Expires in 24 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 2w1d 00:11:40 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.26.1
  Transition log:
  When                  State        Reason
  Thu Oct 21 15:33:55   Up           Seenself

R3
  Interface: so-0/0/3.0,  Level: 2, State: Up , Expires in 19 secs
  Priority: 0, Up/Down transitions: 1, Last transition: 2w1d 00:11:40 ago
  Circuit type: 2,  Speaks: IP , IPv6
  Topologies: Unicast
  Restart capable: Yes
   IP addresses: 10.1.36.1
  Transition log:
  When                  State        Reason
  Thu Oct 21 15:33:55   Up           Seenself

意义

来自入口、中转和出口路由器的示例输出 1 显示 R1R3 未建立的 OSPF 邻接方。考虑到两个接口 so-0/0/2.0R1R3)配置了相同的 IP 地址,您可能会预料到这一点。OSPF 协议仅根据 IP 数据包标头中包含的目标 IP 地址路由 IP 数据包。因此,自治系统 (AS) 中的相同 IP 地址会导致无法建立邻居。

入口、中转和出口路由器的示例输出 2 显示,R1尽管在 和 R3上的R1接口so-0/0/2.0上配置了相同的 IP 地址,但 和 R3 已建立 IS-IS 邻接关系。IS-IS 协议的行为与 OSPF 协议不同,因为它不依赖 IP 来建立邻接关系。但是,如果 LSP 未启动,则检查 IP 子网寻址仍然很有用,以防该层出现错误。更正寻址错误可能会使 LSP 恢复运行。

采取适当的措施

问题

Description

根据您在调查中遇到的错误,您必须采取适当的措施来更正问题。此示例中,传输路由器 R2 上接口的 IP 地址配置不正确。

解决方案

要更正此示例中的错误,请输入以下命令:

content_copy zoom_out_map
[edit interfaces                            so-0/0/2]
user@R1# show           
user@R1#              rename unit 0 family inet address 10.1.13.2/30 to address              10.1.13.1/30           
user@R1# show           
user@R1# commit           
示例输出
content_copy zoom_out_map
[edit interfaces so-0/0/2]
user@R1# show 
unit 0 {
    family inet {
        address 10.1.13.2/30;  <<< Incorrect IP address
    }
    family iso;
    family mpls;
}

[edit interfaces so-0/0/2]
user@R1# rename unit 0 family inet address 10.1.13.2/30 to address 10.1.13.1/30

[edit interfaces so-0/0/2]
user@R1# show 
unit 0 {
    family inet {
        address 10.1.13.1/30;  <<< Correct IP address.
    }
    family iso;
    family mpls;
}

[edit interfaces so-0/0/2]
user@R1# commit 
commit complete
意义

示例输出显示,入口路由器R1上的接口so-0/0/2现在配置了正确的 IP 地址。此更正会导致 MPLS 网络中所有接口的唯一子网 IP 地址在 IP 层和 IGP 层中断,并且 LSP 可能会出现。

再次验证 LSP

目的

采取适当的措施更正错误后,需要再次检查 LSP,以确认 OSPF 协议中的问题已解决。

操作

要再次验证 LSP,请在入口、中转和出口路由器上输入以下命令:

content_copy zoom_out_map
user@host> show mpls lsp extensive
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Up,  ActiveRoute: 1 , LSPname: R1-to-R6
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                     State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.13.2 S 10.1.36.2 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.13.2 10.1.36.2
   54 Oct 15 21:28:16 Selected as active path
   53 Oct 15 21:28:16 Record Route:  10.1.13.2 10.1.36.2
   52 Oct 15 21:28:16 Up
   51 Oct 15 21:28:16 10.1.15.1: MPLS label allocation failure[2 times]
   50 Oct 15 21:28:11 CSPF: computation result accepted
   49 Oct 15 21:27:42 10.1.15.1: MPLS label allocation failure
   48 Oct 15 21:27:42 CSPF: computation result accepted
   47 Oct 15 21:27:31 10.1.15.1: MPLS label allocation failure[4 times]
   46 Oct 15 21:27:13 Originate Call
   45 Oct 15 21:27:13 CSPF: computation result accepted
   [...Output truncated...]
  Created: Thu Oct 14 16:04:34 2004
Total 1 displayed,  Up 1 , Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6,  LSPstate: Up , ActiveRoute: 0
   LSPname: R6-to-R1 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
   Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  149, Since: Fri Oct 15 21:28:13 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 13 receiver 39024 protocol 0
  PATH rcvfrom: 10.1.13.2 (so-0/0/2.0) 10 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
   Record route: 10.1.36.2 10.1.13.2 <self>  
Total 1 displayed,  Up 1 , Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 2
命令名称
content_copy zoom_out_map
user@R3> show mpls lsp extensive
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 2 sessions

10.0.0.1
  From: 10.0.0.6,  LSPstate: Up , ActiveRoute: 1
   LSPname: R6-to-R1 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100336, Label out: 3
  Time left:  156, Since: Fri Oct 15 21:15:47 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 13 receiver 39024 protocol 0
  PATH rcvfrom: 10.1.36.2 (so-0/0/3.0) 11 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.13.1 (so-0/0/2.0) 11 pkts
  RESV rcvfrom: 10.1.13.1 (so-0/0/2.0) 11 pkts
  Explct route: 10.1.13.1 
   Record route: 10.1.36.2 <self> 10.1.13.1  

10.0.0.6
  From: 10.0.0.1,  LSPstate: Up , ActiveRoute: 1
   LSPname: R1-to-R6 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100352, Label out: 3
  Time left:  159, Since: Fri Oct 15 21:15:50 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 5 receiver 47901 protocol 0
  PATH rcvfrom: 10.1.13.1 (so-0/0/2.0) 11 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.36.2 (so-0/0/3.0) 11 pkts
  RESV rcvfrom: 10.1.36.2 (so-0/0/3.0) 11 pkts
  Explct route: 10.1.36.2 
   Record route: 10.1.13.1 <self> 10.1.36.2  
Total 2 displayed,  Up 2 , Down 0
示例输出 3
命令名称
content_copy zoom_out_map
user@R6> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6,  State: Up , ActiveRoute: 1,  LSPname: R6-to-R1
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.36.1 S 10.1.13.1 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.36.1 10.1.13.1
   187 Oct 15 21:20:05 Selected as active path
   186 Oct 15 21:20:05 Record Route:  10.1.36.1 10.1.13.1
   185 Oct 15 21:20:05 Up
   184 Oct 15 21:20:05 Clear Call
   183 Oct 15 21:20:05 CSPF: computation result accepted
   182 Oct 15 21:20:05 CSPF: link down/deleted 10.1.13.2(R3.00/10.0.0.3)->10.1.13.2(R1.00/10.0.0.1)
   [...Output truncated...]
  Created: Tue Aug 17 12:18:33 2004
Total 1 displayed,  Up 1 , Down 0

Egress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 0
   LSPname: R1-to-R6 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  144, Since: Fri Oct 15 21:20:08 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 5 receiver 47901 protocol 0
  PATH rcvfrom: 10.1.36.1 (so-0/0/3.0) 11 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
   Record route: 10.1.13.1 10.1.36.1 <self>  
Total 1 displayed,  Up 1 , Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

来自入口路由器 R1 的示例输出 1 显示 LSP R1-to-R6 具有活动路由 R6 ,并且状态为 up。输出显示出口 LSP 会话 R6-to-R1 已收到并发送了恢复标签。

来自中转路由器R3的示例输出 2 显示有两个中转 LSP 会话,一个从 to R6 和另一个从 R1R6 to 两个 R1. LSP 都已启动。

出口路由器 R6 的示例输出 3 显示 LSP 已启动,活动路由是主路由。LSP 现在正在沿预期路径遍历网络(从 R1R3 R6),反向 LSP 从 R6R3R1

再次验证 LSP

目的

采取适当的操作更正错误后,需要再次检查 LSP 以确认 IS-IS 协议中的问题已解决。

操作

要验证 LSP 是否已启动并按预期遍历网络,请从入口、出口和中转路由器输入以下命令:

content_copy zoom_out_map
user@host>               show mpls lsp extensive

示例输出

命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1,  State: Up , ActiveRoute: 1,  LSPname: R1-to-R6
   ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.13.2 10.1.36.2
    4 Oct 19 21:22:54 Selected as active path
    3 Oct 19 21:22:53 Record Route:  10.1.13.2 10.1.36.2
    2 Oct 19 21:22:53 Up
    1 Oct 19 21:22:53 Originate Call
  Created: Tue Oct 19 21:22:53 2004
Total 1 displayed,  Up 1 , Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6,  LSPstate: Up , ActiveRoute: 0
   LSPname: R6-to-R1 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  117, Since: Tue Oct 19 21:17:42 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 2 receiver 39064 protocol 0
  PATH rcvfrom: 10.1.13.2 (so-0/0/2.0) 10 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.36.2 10.1.13.2 <self>  
Total 1 displayed,  Up 1 , Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show mpls lsp extensive
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP:  2 sessions

10.0.0.1
  From: 10.0.0.6, LSPstate: Up, ActiveRoute: 1
   LSPname: R6-to-R1 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100416, Label out: 3
  Time left:  139, Since: Tue Oct 19 21:05:11 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 2 receiver 39064 protocol 0
  PATH rcvfrom: 10.1.36.2 (so-0/0/3.0) 11 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.13.1 (so-0/0/2.0) 11 pkts
  RESV rcvfrom: 10.1.13.1 (so-0/0/2.0) 11 pkts
  Explct route: 10.1.13.1 
  Record route: 10.1.36.2 <self> 10.1.13.1  

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 1
   LSPname: R1-to-R6 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100448, Label out: 3
  Time left:  135, Since: Tue Oct 19 21:10:22 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 47951 protocol 0
  PATH rcvfrom: 10.1.13.1 (so-0/0/2.0) 4 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.36.2 (so-0/0/3.0) 4 pkts
  RESV rcvfrom: 10.1.36.2 (so-0/0/3.0) 4 pkts
  Record route: 10.1.13.1 <self> 10.1.36.2  
Total 2 displayed,  Up 2 , Down 0

user@R6>  run show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, State: Up, ActiveRoute: 1, LSPname: R6-to-R1
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 2)
 10.1.36.1 S 10.1.13.1 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.36.1 10.1.13.1
   19 Oct 19 21:09:52 Selected as active path
   18 Oct 19 21:09:52 Record Route:  10.1.36.1 10.1.13.1
   17 Oct 19 21:09:52 Up
   16 Oct 19 21:09:52 Originate Call
   15 Oct 19 21:09:52 CSPF: computation result accepted
  Created: Tue Oct 19 18:30:09 2004
Total 1 displayed,  Up 1 , Down 0

Egress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 0
   LSPname: R1-to-R6 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  120, Since: Tue Oct 19 21:15:03 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 47951 protocol 0
  PATH rcvfrom: 10.1.36.1 (so-0/0/3.0) 4 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.13.1 10.1.36.1 <self>  
Total 1 displayed,  Up 1 , Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

入口路由器R1和出口路由器 R6 的示例输出显示,LSP 现在正沿预期路径(从 R1R3 R6)遍历网络,反向 LSP 从 R6R3R1。此外,来自传输路由器 R3 的示例输出显示有两个传输 LSP 会话,一个从 R1R6,另一个从 R6R1

检查 RSVP 层

目的

配置标签交换路径 (LSP)、发出 show mpls lsp extensive 命令并确定存在错误后,您可能会发现错误不在物理层、数据链路层或互联网协议 (IP) 和内部网关协议 (IGP) 层中。继续调查网络 RSVP 层的问题。

图 10 说明了分层 MPLS 模型的 RSVP 层。

图 10: 检查 RSVP 层检查 RSVP 层

使用此层,您可以检查动态 RSVP 信令是否按预期发生、邻居是否已连接以及接口是否已为 RSVP 配置正确。检查入口、出口和中转路由器。

如果网络在此层无法运行,则 LSP 无法按配置工作。

图 11 说明了本主题中使用的 MPLS 网络。

图 11: MPLS 网络在 RSVP 层中断MPLS 网络在 RSVP 层中断

中显示的 图 11 网络是全网状配置,其中每个直接连接的接口都可以接收数据包并将其发送到其他每个类似接口。此网络中的 LSP 配置为从入口路由器 R1运行,通过中转路由器 R3,到出口路由器 R6。此外,反向 LSP 配置为从 R6R3R1运行,创建双向流量。

但是,在此示例中,LSP 关闭时没有从 到 R6 或从 R6R1的任一方向的R1路径。

中显示的 图 11 十字指示 LSP 损坏的位置。LSP 中断的一些可能原因可能包括动态 RSVP 信号未按预期发生、邻居未连接或接口未为 RSVP 配置不正确。

在 中的 图 11网络中,传输路由器 R3 上的配置错误会阻止 LSP 按预期遍历网络。

要检查 RSVP 图层,请执行以下步骤:

验证 LSP

目的

通常,您会使用 show mpls lsp extensive 命令来验证 LSP。但是,要快速验证 LSP 状态, show mpls lsp 请使用命令。如果 LSP 已关闭,请使用 extensive 该选项(show mpls lsp extensive) 作为后续操作。如果您的网络具有多个 LSP,则可以考虑使用 name 选项 (show mpls lsp name nameshow mpls lsp name name extensive).

操作

要确定 LSP 是否已启动,请从入口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show mpls lsp extensive
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Dn, ActiveRoute: 0,  LSPname: R1-to-R6
  ActivePath: (none)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  Primary                    State: Dn
    2 Oct 27 15:06:05 10.1.13.2:  No Route toward dest [4 times]
    1 Oct 27 15:05:56 Originate Call
  Created: Wed Oct 27 15:05:55 2004
Total 1 displayed, Up 0,  Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show mpls lsp extensive 
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R6> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, State: Dn, ActiveRoute: 0,  LSPname: R6-to-R1
  ActivePath: (none)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  Primary                    State: Dn
    Will be enqueued for recomputation in 22 second(s).
    1 Oct 27 14:59:12  CSPF failed: no route toward 10.0.0.1 [4 times]
  Created: Wed Oct 27 14:57:44 2004
Total 1 displayed, Up 0,  Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

示例输出显示 LSP 在两个方向上都向下,从 R1R6和 从 R6R1。的 R1 输出显示正在使用 R1 无 cspf LSP,因为它尝试发起呼叫但无法到达目标。的 R6 输出显示约束最短路径优先 (CSPF) 算法失败,导致没有到目标 10.0.0.1的路由。

验证 RSVP 会话

目的

成功创建 RSVP 会话后,将沿着 RSVP 会话创建的路径设置 LSP。如果 RSVP 会话不成功,LSP 将无法按配置工作。

操作

要验证当前活动的 RSVP 会话,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show rsvp session
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show rsvp session 
Ingress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show rsvp session 
Ingress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R6> show rsvp session  
Ingress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> show rsvp session
Ingress RSVP: 1 sessions
To              From            State Rt Style Labelin Labelout LSPname 
10.0.0.6        10.0.0.1        Up     1 1 FF       -   100768  R1-to-R6
Total 1 displayed,  Up 1 , Down 0

Egress RSVP: 1 sessions
To              From            State Rt Style Labelin Labelout LSPname 
10.0.0.1        10.0.0.6        Up     0 1 FF       3        -  R6-to-R1
Total 1 displayed,  Up 1 , Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show rsvp session  
Ingress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP:  2 sessions
To              From            State Rt Style Labelin Labelout LSPname 
10.0.0.1        10.0.0.6        Up     1 1 FF  100784        3  R6-to-R1
10.0.0.6        10.0.0.1        Up     1 1 FF  100768        3  R1-to-R6
Total 2 displayed,  Up 2 , Down 0

user@R6> show rsvp session       
Ingress RSVP: 1 sessions
To              From            State Rt Style Labelin Labelout LSPname 
10.0.0.1        10.0.0.6        Up     1 1 FF       -   100784  R6-to-R1
Total 1 displayed,  Up 1 , Down 0

Egress RSVP: 1 sessions
To              From            State Rt Style Labelin Labelout LSPname 
10.0.0.6        10.0.0.1        Up     0 1 FF       3        -  R1-to-R6
Total 1 displayed,  Up 1 , Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

来自所有路由器的示例输出 1 显示,即使配置了 LSP R6-to-R1 ,也没有成功创建任何 RSVP 会话。

与示例输出 1 相反,为了说明正确的输出,当 RSVP 配置正确且 LSP 按配置遍历网络时,示例输出 2 显示了入口、中转和出口路由器的输出。 R1 并且 R6 两者都显示入口和出口 RSVP 会话,使用 LSP R1-to-R6和反向 LSP R6-to-R1。传输路由器 R3 显示两个传输 RSVP 会话。

验证 RSVP 邻居

目的

显示在交换 RSVP 数据包时动态获知的 RSVP 邻接方列表。获知邻居后,除非从路由器中删除 RSVP 配置,否则永远不会将其从 RSVP 邻居列表中删除。

操作

要验证 RSVP 邻居,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show rsvp neighbor
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show rsvp neighbor 
RSVP neighbor: 1 learned
Address            Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
10.1.13.2            10   1/0         9:22        9    64/64   32

user@R3> show rsvp neighbor 
RSVP neighbor: 2 learned
Address            Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
10.1.13.1             0  1/0       28:20        9   190/190  41
10.1.36.2         16:50   1/1        15:37        9   105/78   38

user@R6> show rsvp neighbor 
RSVP neighbor: 1 learned
Address            Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
10.1.36.1         17:30   1/1        16:15        9   104/78   39
示例输出 2
命令名称
content_copy zoom_out_map
user@R3> show rsvp neighbor 
RSVP neighbor: 2 learned
Address            Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
10.1.13.1             5   1/0         9:14        9    63/63   33
10.1.36.2             5   1/0         9:05        9    62/62   32

user@R6> show rsvp neighbor  
RSVP neighbor: 1 learned
Address            Idle Up/Dn LastChange HelloInt HelloTx/Rx MsgRcvd
10.1.36.1             5   1/0        8:54        9    61/61   32

意义

示例输出 1 显示,R1并且R6各有一个 RSVP 邻居 。 R3 但是,字段中的值Up/Dn不同。R1的值1/0 R61/1为 和 的值为 ,表示 R1 是 的活动R3邻居,但R6不是。当上升计数比下降计数多 1 时,邻居处于活动状态;如果值相等,则邻居关闭。的值 R6 相等, 1/1表示邻居 R3 已关闭。

中转路由器 R3 知道两个邻居和 R1R6。该 Up/Dn 字段指示 是 R1 活动邻居且 R6 已关闭。此时无法确定问题是否与 或 有关 R3 R6因为两个邻居都不处于活动状态。

与示例输出 1 相反,为了说明正确的输出,示例输出 2 显示了传输路由器 R3 和出口路由器 R6之间的正确邻居关系。该 Up/Dn 字段显示向上计数比向下计数多 1, 1/0表示相邻方处于活动状态。

验证 RSVP 接口

目的

显示启用了 RSVP 的每个接口的状态,以确定发生配置错误的位置。

操作

要验证 RSVP 接口的状态,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show rsvp interface
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show rsvp interface
RSVP interface: 3 active
                   Active  Subscr- Static      Available   Reserved    Highwater
Interface   State  resv   iption  BW          BW          BW          mark
so-0/0/0.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/1.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/2.0  Up          0    100%  155.52Mbps  155.52Mbps  0bps        0bps       

user@R3> show rsvp interface  
RSVP interface: 3 active
                   Active  Subscr- Static      Available   Reserved    Highwater
Interface   State  resv    iption  BW          BW          BW          mark
so-0/0/0.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/1.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/2.0  Up          0    100%  155.52Mbps  155.52Mbps  0bps        0bps       
<<< Missing interface so-0/0/3.0

user@R6> show rsvp interface 
RSVP interface: 4 active
                   Active  Subscr- Static      Available   Reserved    Highwater
Interface   State  resv    iption  BW          BW          BW          mark
so-0/0/0.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/1.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/2.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/3.0  Up          0    100%  155.52Mbps  155.52Mbps  0bps        0bps 
示例输出 2
命令名称
content_copy zoom_out_map
user@R1> show rsvp interface
RSVP interface: 3 active
                  Active Subscr- Static      Available   Reserved    Highwater
Interface   State resv   iption  BW          BW          BW          mark
so-0/0/0.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/1.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/2.0  Up          1    100%  155.52Mbps  155.52Mbps  0bps        0bps       

user@R3> show rsvp interface                   
RSVP interface: 4 active
                  Active Subscr- Static      Available   Reserved    Highwater
Interface   State resv   iption  BW          BW          BW          mark
so-0/0/0.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/1.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/2.0  Up          1    100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/3.0  Up          1    100%  155.52Mbps  155.52Mbps  0bps        0bps       

user@R6> show rsvp interface 
RSVP interface: 4 active
                  Active Subscr- Static      Available   Reserved    Highwater
Interface   State resv   iption  BW          BW          BW          mark
so-0/0/0.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/1.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/2.0  Up         0   100%  155.52Mbps  155.52Mbps  0bps        0bps       
so-0/0/3.0  Up          1    100%  155.52Mbps  155.52Mbps  0bps        0bps 

意义

示例输出 1 显示,即使每个路由器的接口都已启动且 RSVP 处于活动状态,也没有预留(Active resv) 在任何路由器上。在此示例中,我们期望入口和出口路由器上至少有一个预留,中转路由器上至少有两个预留。

此外,配置中不包含传输路由器R3 上的接口so-0/0/3。包含此接口对于 LSP 的成功至关重要。

与示例输出 1 相比,为了说明正确的输出,示例输出 2 显示了具有活动预留的相关接口。

验证 RSVP 协议配置

目的

检查 RSVP 会话、接口、邻居并确定可能存在配置错误后,请验证 RSVP 协议配置。

操作

要验证 RSVP 配置,请从入口、中转和出口路由器输入以下命令:

content_copy zoom_out_map
user@host>              show configuration protocols rsvp
示例输出
命令名称
content_copy zoom_out_map
user@R1> show configuration protocols rsvp 
interface so-0/0/0.0;
interface so-0/0/1.0;
interface so-0/0/2.0;
interface fxp0.0 {
    disable;
}

user@R3> show configuration protocols rsvp  
interface so-0/0/0.0;
interface so-0/0/1.0;
interface so-0/0/2.0; <<< Missing interface so-0/0/3.0
interface fxp0.0 {
    disable;
}

user@R6> show configuration protocols rsvp 
interface so-0/0/0.0;
interface so-0/0/1.0;
interface so-0/0/2.0;
interface so-0/0/3.0;
interface fxp0.0 {
    disable;
}

意义

示例输出显示 RSVP 协议配置中缺少接口R3so-0/0/3.0。此接口对于 LSP 的正确运行至关重要。

采取适当的措施

问题

Description

根据您在调查中遇到的错误,您必须采取适当的措施来更正问题。在此示例中,路由器 R3 的配置中缺少接口。

解决方案

若要更正此示例中的错误,请按照下列步骤操作:

  1. 在传输路由器 R3 的配置中包含缺少的接口:

    content_copy zoom_out_map
    user@R3> edit               
    user@R3#                   edit protocols rsvp               
    [edit protocols rsvp]
    user@R3# show               
    user@R3#                   set interface so-0/0/3.0                
    
  2. 验证并提交配置:

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@R3# show               
    user@R3# commit               
    
示例输出
content_copy zoom_out_map
user@R3> edit 
Entering configuration mode

[edit]
user@R3# edit protocols rsvp 

[edit protocols rsvp]
user@R3# show  
interface so-0/0/0.0;
interface so-0/0/1.0;
interface so-0/0/2.0; <<< Missing interface so-0/0/3.0
interface fxp0.0 {
    disable;
}
[edit protocols rsvp]
user@R3# set interface so-0/0/3.0 

[edit protocols rsvp]
user@R3# show 
interface so-0/0/0.0;
interface so-0/0/1.0;
interface so-0/0/2.0;
interface fxp0.0 {
    disable;
}
interface so-0/0/3.0; <<< Interface now included in the configuration

[edit protocols rsvp]
user@R3# commit  
commit complete
意义

示例输出显示,传输路由器R3 上缺少的接口so-0/0/3.0现在已正确包含在 [edit protocols rsvp] 层次结构级别。这导致 LSP 可能会出现。

再次验证 LSP

目的

采取适当的措施更正错误后,需要再次检查 LSP 以确认 MPLS 层中的问题已解决。

操作

要再次验证 LSP,请在入口、中转和出口路由器上输入以下命令:

content_copy zoom_out_map
user@host>               show mpls lsp extensive           
示例输出 1
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State: Up,  ActiveRoute: 1 ,  LSPname: R1-to-R6
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                    State: Up
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.13.2 10.1.36.2
    5 Oct 27 15:28:57 Selected as active path
    4 Oct 27 15:28:57  Record Route:  10.1.13.2 10.1.36.2
    3 Oct 27 15:28:57 Up
    2 Oct 27 15:28:44 10.1.13.2: No Route toward dest[35 times]
    1 Oct 27 15:05:56 Originate Call
  Created: Wed Oct 27 15:05:56 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, LSPstate: Up, ActiveRoute: 0
  LSPname: R6-to-R1, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  136, Since: Wed Oct 27 15:29:20 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39092 protocol 0
  PATH rcvfrom: 10.1.13.2 (so-0/0/2.0) 6 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.36.2 10.1.13.2 <self>  
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
示例输出 2
命令名称
content_copy zoom_out_map
user@R3> show mpls lsp extensive
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 2 sessions

10.0.0.1
  From: 10.0.0.6, LSPstate: Up, ActiveRoute: 1
  LSPname: R6-to-R1, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100672, Label out: 3
  Time left:  152, Since: Wed Oct 27 15:16:39 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39092 protocol 0
  PATH rcvfrom: 10.1.36.2 (so-0/0/3.0) 7 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.13.1 (so-0/0/2.0) 7 pkts
  RESV rcvfrom: 10.1.13.1 (so-0/0/2.0) 7 pkts
  Explct route: 10.1.13.1 
  Record route: 10.1.36.2 <self> 10.1.13.1  

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 1
  LSPname: R1-to-R6, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: 3
  Resv style: 1 FF, Label in: 100656, Label out: 3
  Time left:  129, Since: Wed Oct 27 14:53:14 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 47977 protocol 0
  PATH rcvfrom: 10.1.13.1 (so-0/0/2.0) 40 pkts
  Adspec: received MTU 1500 sent MTU 1500
  PATH sentto: 10.1.36.2 (so-0/0/3.0) 7 pkts
  RESV rcvfrom: 10.1.36.2 (so-0/0/3.0) 7 pkts
  Record route: 10.1.13.1 <self> 10.1.36.2  
Total 2 displayed, Up 2, Down 0
示例输出 3
命令名称
content_copy zoom_out_map
user@R6> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6, State: Up,  ActiveRoute: 1 ,  LSPname: R6-to-R1
  ActivePath:  (primary)
  LoadBalance: Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
 *Primary                     State: Up
    Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.36.1 S 10.1.13.1 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.36.1 10.1.13.1
    6 Oct 27 15:22:06 Selected as active path
    5 Oct 27 15:22:06 Record Route:  10.1.36.1 10.1.13.1
    4 Oct 27 15:22:06 Up
    3 Oct 27 15:22:06 Originate Call
    2 Oct 27 15:22:06 CSPF: computation result accepted
    1 Oct 27 15:21:36 CSPF failed: no route toward 10.0.0.1[50 times]
  Created: Wed Oct 27 14:57:45 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 0
  LSPname: R1-to-R6, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  119, Since: Wed Oct 27 15:21:43 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 47977 protocol 0
  PATH rcvfrom: 10.1.36.1 (so-0/0/3.0) 7 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.13.1 10.1.36.1 <self>  
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

来自入口路由器 R1 的示例输出 1 显示 LSP R1-to-R6 具有活动路由 R6 ,并且状态为 up。

来自中转路由器 R3 的示例输出 2 显示有两个中转 LSP 会话,一个从 R1R6 ,另一个从 R6R1。两家 LSP 均已启动。

出口路由器 R6 的示例输出 3 显示 LSP 已启动,活动路由是主路由。LSP 现在正在沿预期路径遍历网络(从 R1R3R6),反向 LSP 从 R6R3R1

确定 LSP 统计信息

目的

显示有关 RSVP 对象的详细信息,以帮助诊断 LSP 问题。

操作

要验证 RSVP 对象,请输入以下 Junos OS CLI 操作模式命令:

content_copy zoom_out_map
user@host>                       show rsvp session detail         

示例输出

命令名称
content_copy zoom_out_map
user@R1> show rsvp session detail
Ingress RSVP: 1 sessions

10.0.0.6
  From: 10.0.0.1, LSPstate: Up, ActiveRoute: 1
  LSPname:  R1-to-R6 , LSPpath:  Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent:  100064
  Resv style: 1 FF, Label in: -, Label out: 100064
  Time left:    -, Since: Tue Aug 17 12:22:52 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 12 receiver 44251 protocol 0
  PATH rcvfrom: localclient 
  Adspec: sent MTU 1500
  PATH sentto: 10.1.13.2 (so-0/0/2.0) 182 pkts
  RESV rcvfrom: 10.1.13.2 (so-0/0/2.0) 159 pkts
  Explct route: 10.1.13.2 10.1.36.2 
  Record route: <self> 10.1.13.2 10.1.36.2  
Total 1 displayed, Up 1, Down 0

Egress RSVP: 1 sessions

10.0.0.1
  From:  10.0.0.6 , LSPstate: Up, ActiveRoute: 0
  LSPname: R6-to-R1, LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
  Resv style: 1 FF, Label in: 3, Label out: -
  Time left:  135, Since: Tue Aug 17 12:23:14 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39024 protocol 0
  PATH rcvfrom: 10.1.15.2 (so-0/0/1.0) 158 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.56.2 10.1.15.2 <self>  
Total 1 displayed, Up 1, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

示例输出显示有一个入口和一个出口 RSVP 会话。入口会话的源地址为 10.0.0.1R1),会话已启动,只有一个活动路由。LSP 名称是 R1-to-R6 LSP 的主路径。

恢复标签 (100064) 由平稳重启路由器发送到其邻居以恢复转发状态。这可能是路由器在停机之前宣传的旧标签。

此会话使用固定筛选器 (FF) 预留样式 (Resv style)。由于这是入口路由器,因此没有入站标签。出站标签(由下一个下游路由器提供)为 100064

Time Left 字段提供 RSVP 会话中剩余的秒数,对象 Tspec 提供有关受控加载速率 (rate) 和最大突发大小 (peak)、保证传递选项的无限值 (Infbps) 以及小于 20 字节的数据包被视为 20 字节,而大于 1500 字节的数据包被视为 1500 字节的指示。

端口号是 IPv4 隧道 ID,而发送方/接收方端口号是 LSP ID。IPv4 隧道 ID 在 LSP 的生命周期内是唯一的,而发送方/接收方 LSP ID 可以更改,例如,使用 SE 样式保留。

PATH rcvfrom 字段包括路径消息的源。由于这是入口路由器,因此本地客户端发起了路径消息。

PATH sentto 字段包括路径消息目标 (10.1.13.2) 和传出接口 (so-0/0/2.0)。该 RESV rcvfrom 字段包括收到的 Resv 消息的来源 (10.1.13.2) 和传入接口 (so-0/0/2.0)。

RSVP 显式路由和路由记录值相同:10.1.13.210.1.36.2。在大多数情况下,显式路由和记录路由值是相同的。差异表示发生了某些路径重新路由,通常在快速重新路由期间。

这些 Total 字段表示入口、出口和中转 RSVP 会话的总数,总数等于上行和下行会话的总和。在此示例中,有一个入口会话、一个出口会话,没有中转 RSVP 会话。

验证网络中的 LSP 使用情况

目的

验证网络中入口和中转路由器上 LSP 的使用是否有效时,可以确定网络中的多协议标签交换 (MPLS) 是否存在问题。 图 12 介绍了本主题中使用的示例网络。

图 12: 用于验证 LSP 使用情况的 MPLS 拓扑用于验证 LSP 使用情况的 MPLS 拓扑

中的 图 12 MPLS 网络说明了具有由以下组件组成的 SONET 接口的纯路由器网络:

  • 全网状内部边界网关协议 (IBGP) 拓扑,使用 AS 65432

  • 在所有路由器上启用 MPLS 和资源预留协议 (RSVP)

  • 路由器 R1 和 R6 上的一种 send-statics 策略,允许在网络中播发新路由

  • 路由器 R1 和 R6 之间的 LSP

中显示的 图 12 网络是边界网关协议 (BGP) 全网状网络。由于路由反射器和联合不用于传播 BGP 获知的路由,因此每个路由器都必须与运行 BGP 的其他路由器进行 BGP 会话。

若要验证网络中的 LSP 使用情况,请执行以下步骤:

验证入口路由器上的 LSP

目的

您可以通过检查 inet.3 入口路由器上的路由表来验证 LSP 启动时的可用性。inet.3路由表包含每个 LSP 出口路由器的主机地址。此路由表在入口路由器上用于将 BGP 数据包路由到目标出口路由器。BGP 使用 inet.3 入口路由器上的路由表来帮助解析下一跃点地址。

操作

要验证入口路由器上的 LSP,请输入以下 Junos OS 命令行界面 (CLI) 操作模式命令:

content_copy zoom_out_map
user@host> show route table inet.3           
示例输出
命令名称
content_copy zoom_out_map
user@R1> show route table inet.3            
inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.6/32        *[RSVP/7] 4w0d 22:40:57, metric 20
                    > via so-0/0/2.0, label-switched-path R1-to-R6

意义

示例输出显示了 inet.3 路由表。默认情况下,只有 BGP 和 MPLS 虚拟专用网络 (VPN) 可以使用 inet.3 路由表解析下一跃点信息。路由表中 10.0.0.6列出了一个目标。此目标 (10.0.0.6) 由 RSVP 发出信号,并且是当前活动路径,如星号 ()* 所示。此路由的协议首选项为 7 ,与之关联的指标为 20。标签交换路径为 R1-to-R6, 通过接口 so-0/0/2.0,这是物理下一跃点中转接口。

通常,LSP 中的倒数第二个路由器要么弹出数据包的标签,要么将标签更改为值 0。如果倒数第二个路由器弹出顶部标签,并且 IPv4 数据包位于下方,则出口路由器将路由 IPv4 数据包,并查阅 IP 路由表 inet.0 以确定如何转发数据包。如果其他类型的标签(例如,由标签分发协议 (LDP) 隧道或 VPN 创建的标签,但不是 IPv4)位于顶部标签下方,则出口路由器不会检查 inet.0 路由表。相反,它会检查路由表以进行 mpls.0 转发决策。

如果倒数第二个路由器将数据包的标签更改为值 0,则出口路由器将去除 0 标签,表示随后出现 IPv4 数据包。数据包由 inet.0 路由表检查以进行转发决策。

当中转或出口路由器收到 MPLS 数据包时,MPLS 转发表中的信息用于确定 LSP 中的下一个中转路由器或此路由器是否为出口路由器。

当 BGP 解析下一跃点前缀时,它会检查 inet.0inet.3 路由表,寻找具有最低优先级的下一跃点;例如,RSVP 首选项 7 优先于 OSPF 首选项 10。RSVP 信号 LSP 用于到达 BGP 下一跳。当 BGP 下一跃点等于 LSP 出口地址时,这是默认值。通过 LSP 解析 BGP 下一跃点后,BGP 流量将使用 LSP 转发 BGP 传输流量。

验证中转路由器上的 LSP

目的

您可以通过检查 mpls.0 中转路由器上的路由表来验证 LSP 启动时的可用性。MPLS 维护 mpls.0 路由表,其中包含每个 LSP 中下一个标签交换路由器的列表。此路由表在传输路由器上用于将数据包沿 LSP 路由到下一个路由器。

操作

要验证转发路由器上的 LSP,请输入以下 Junos OS CLI 操作模式命令:

content_copy zoom_out_map
user@host> show route table mpls.0           
示例输出
命令名称
content_copy zoom_out_map
user@R3> show route table mpls.0           
mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                    * [MPLS/0] 7w3d 22:20:56, metric 1
                      Receive
1                    * [MPLS/0] 7w3d 22:20:56, metric 1
                      Receive
2                    * [MPLS/0] 7w3d 22:20:56, metric 1
                      Receive
100064               * [RSVP/7] 2w1d 04:17:36, metric 1
                     > via so-0/0/3.0, label-switched-path R1-to-R6
100064 (S=0)          * [RSVP/7] 2w1d 04:17:36, metric 1
                    > via so-0/0/3.0, label-switched-path R1-to-R6

意义

来自中转路由器 R3 的示例输出以 MPLS 标签条目的形式显示路由条目,指示只有一个活动路由,即使有五个活动条目也是如此。

前三个 MPLS 标签是在 RFC 3032 中定义的保留 MPLS 标签。使用这些标签值接收的数据包将发送到路由引擎进行处理。标签 0 是 IPv4 显式空标签。标签 1 是 IP 路由器警报标签的 MPLS 等效项,标签 2 是 IPv6 显式空标签。

带有标签的两个 100064 条目用于相同的 LSP,有两个条目, R1-to-R6. 因为 MPLS 标头中的堆栈值可能不同。第二个条目 100064 (S=0)表示堆栈深度不是 1,数据包中包含其他标签值。相比之下,的第一个 100064 条目有一个推断的 S=1,它指示堆栈深度为 1,并使其成为数据包中的最后一个标签。双条目表示这是倒数第二个路由器。有关 MPLS 标签堆叠的更多信息,请参阅 RFC 3032, MPLS 标签堆栈编码。

传入标签是 MPLS 数据包的 MPLS 标头,由 RSVP 分配给上游邻居。瞻博网络路由器为 RSVP 流量工程 LSP 动态分配标签,范围从 100,000 到 1,048,575。

路由器分配从标签 100,000 开始的标签,增量为 16。标签分配的顺序为 100,000、100,016、100,032、100,048,依此类推。在分配的标签的末尾,标签编号从 100001 开始,以 16 为单位递增。瞻博网络保留标签用于各种用途。 表 1 列出了传入标签的各种标签范围分配。

表 1: MPLS 标签范围分配

传入标签

状态

0 通过 15

由 IETF 保留

16 通过 1023

保留用于静态 LSP 分配

1024 通过 9999

保留供内部使用(例如,CCC 标签)

10,000 通过 99,999

保留用于静态 LSP 分配

100,000 通过 1,048,575

保留用于动态标签分配

验证负载平衡是否正常工作

目的

配置负载均衡后,请检查流量是否在路径之间均衡负载。在本节中,命令输出反映了 负载平衡网络拓扑中显示的示例网络的负载平衡配置。这些 clear 命令用于将 LSP 和接口计数器重置为零,以便这些值反映负载平衡配置的操作。

操作

要验证接口和 LSP 之间的负载平衡,请在入口路由器上使用以下命令:

content_copy zoom_out_map
user@host# show configuration           

要验证接口和 LSP 之间的负载平衡,请在传输路由器上使用以下命令:

content_copy zoom_out_map
user@host# show route           
user@host# show route forwarding-table           
user@host# show mpls lsp statistics           
user@host# monitor interface traffic           
user@host# clear mpls lsp statistics           
user@host# clear interface statistics           

示例输出

命令名称

以下示例输出用于入口路由器 R1上的配置:

content_copy zoom_out_map
user@R1> show configuration | no-more  
[...Output truncated...]
routing-options {
    [...Output truncated...]
     forwarding-table {
        export lbpp;
    }
}
[...Output truncated...]
policy-options {
     policy-statement lbpp {
        then {
            load-balance per-packet;
        }
    }
}

意义

入口路由器R1上命令的示例show configuration输出显示,使用策略语句正确lbpp配置了负载平衡。此外, lbpp 策略将导出到层次结构级别的转发表 [edit routing-options] 中。

示例输出

以下示例输出来自中转路由器 R2:

content_copy zoom_out_map
user@R2> show route 192.168.0.1 terse
 
inet.0: 25 destinations, 27 routes (25 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination        P Prf   Metric 1   Metric 2  Next hop        AS path
* 192.168.0.1/32     O  10          3             so-0/0/1.0   
                                                 >so-0/0/2.0 
[...Output truncated...]

意义

在传输路由器上发出的命令的示例show route输出显示了两条等价路径(so-0/0/1并通过so-0/0/2) 网络到环路地址到 R0192.168.0.1)。R2 尽管右尖括号 (>) 通常表示活动路由,但在本例中则不然,如以下四个示例输出所示。

示例输出

以下示例输出来自中转路由器 R2:

content_copy zoom_out_map
user@R2> monitor interface traffic

R2                                Seconds: 65                  Time: 11:41:14

Interface    Link  Input packets        (pps)     Output packets        (pps)
 so-0/0/0      Up              0          (0)                  0          (0)
 so-0/0/1      Up            126          (0)              164659       (2128)
 so-0/0/2      Up          85219       (1004)              164598       (2128)
 so-0/0/3      Up              0          (0)                  0          (0)
 fe-0/1/0      Up         328954       (4265)              85475       (1094)
 fe-0/1/1      Up              0          (0)                  0          (0)
 fe-0/1/2      Up              0          (0)                  0          (0)
 fe-0/1/3      Up              0          (0)                  0          (0)
[...Output truncated...]

意义

在传输路由器R2上发出的命令的示例monitor interface traffic输出显示,输出流量均匀分布在两个接口so-0/0/1so-0/0/2上。

示例输出

以下示例输出来自中转路由器 R2:

content_copy zoom_out_map
user@R2> show mpls lsp statistics 
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 5 sessions
To              From            State     Packets            Bytes LSPname
192.168.0.1     192.168.1.1     Up           87997         17951388 lsp1
192.168.0.1     192.168.1.1     Up           87997         17951388 lsp2
192.168.0.1     192.168.1.1     Up           87997         17951388 lsp3
192.168.0.1     192.168.1.1     Up           87997         17951388 lsp4
192.168.6.1     192.168.0.1     Up              0                0 r0-r1
Total 5 displayed, Up 5, Down 0

意义

在传输路由器R2上发出的命令的示例show mpls lsp statistics输出显示,输出流量在入口路由器R6上配置的四个 LSP 之间均匀分布。

示例输出

以下示例输出来自中转路由器 R2:

content_copy zoom_out_map
user@R2> show route forwarding-table destination 10.0.90.14  
Routing table: inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
10.0.90.12/30      user     0                     ulst 262144     6
                                                  ucst   345     5 so-0/0/1.0
                                                  ucst   339     2 so-0/0/2.0

意义

在传输路由器R2ulstType上发出的命令的示例show route forwarding-table destination输出显示在字段中,指示负载平衡正在工作。字段中的两个单播 (ucst) 条目 Type 是 LSP 的两个下一跃点。

示例输出

以下示例输出来自中转路由器 R2:

content_copy zoom_out_map
user@R2> show route forwarding-table | find mpls                
Routing table: mpls
MPLS:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    dscd    38     1
0                  user     0                    recv    37     3
1                  user     0                    recv    37     3
2                  user     0                    recv    37     3
100112             user     0                   Swap 100032       so-0/0/1.0
100128             user     0                   Swap 100048       so-0/0/1.0
100144             user     0 10.0.12.13        Swap 100096       fe-0/1/0.0
100160             user     0                   Swap 100112       so-0/0/2.0
100176             user     0                   Swap 100128       so-0/0/2.0

意义

在中转路由器 R2 上发出的命令的示例 show route forwarding-table | find mpls 输出显示了 MPLS 路由表,其中包含此路由器接收并用于将数据包转发到下一跃点路由器的标签。此路由表主要用于中转路由器,以将数据包沿 LSP 路由到下一个路由器。启用协议后,MPLS 会自动输入列中的 Destination 前三个标签(标签 0、标签 1 和标签 2)。这些标签是在 RFC 3032 中定义的保留 MPLS 标签。标签 0 是 IPv4 显式空标签。标签 1 是 IP 路由器警报标签的 MPLS 等效项,标签 2 是 IPv6 显式空标签。

Destination 中的其余五个标签是路由器用于转发流量的非保留标签,最后一列 Netif显示用于发送标记流量的接口。对于非保留标签,第二 Type 列显示对匹配数据包执行的操作。在此示例中,所有非保留数据包都交换为传出数据包标签。例如,带有标签100112的数据包在被推出接口so-0/0/1.0之前会交换其标签100032

验证不均匀带宽负载平衡的操作

目的

当路由器在 LSP 路径之间执行不等价负载平衡时,命令将显示 show route detail 与正在使用的每个下一跃点关联的平衡字段。

操作

要验证 RSVP LSP 的负载是否不平衡,请使用以下 Junos OS CLI 操作模式命令:

content_copy zoom_out_map
user@host> show route protocol rsvp detail           
user@host> show mpls lsp statistics            

示例输出

命令名称
content_copy zoom_out_map
user@R1> show route protocol rsvp detail

inet.0: 25 destinations, 25 routes (25 active, 0 holddown, 0 hidden)
10.0.90.14/32 (1 entry, 1 announced)
        State: <FlashAll>
        *RSVP   Preference: 7
                Next-hop reference count: 7
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1  balance 10%
                 Label-switched-path lsp1
                Label operation: Push 100768
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1  balance 20%
                 Label-switched-path lsp2
                Label operation: Push 100736
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1  balance 30%,
						selected
                 Label-switched-path lsp3
                Label operation: Push 100752
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1  balance 40%
                 Label-switched-path lsp4
                Label operation: Push 100784
                State: <Active Int>
                Local AS: 65432 
                Age: 8:03       Metric: 4 
                Task: RSVP
                Announcement bits (2): 0-KRT 4-Resolve tree 1 
                AS path: I
inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
192.168.0.1/32 (1 entry, 1 announced)
        State: <FlashAll>
        *RSVP   Preference: 7
                Next-hop reference count: 7
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1 balance 10%
                Label-switched-path lsp1
                Label operation: Push 100768
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1 balance 20%
                Label-switched-path lsp2
                Label operation: Push 100736
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1 balance 30%
                Label-switched-path lsp3
                Label operation: Push 100752
                Next hop: 10.0.12.14 via fe-0/1/0.0 weight 0x1 balance 40%, selected
                Label-switched-path lsp4
                Label operation: Push 100784
                State: <Active Int>
                Local AS: 65432 
                Age: 8:03       Metric: 4 
                Task: RSVP
                Announcement bits (1): 1-Resolve tree 1 
                AS path: I

user@R1> show mpls lsp statistics  
Ingress LSP: 4 sessions
To              From            State     Packets            Bytes LSPname
192.168.0.1     192.168.1.1     Up           10067            845628  lsp1
192.168.0.1     192.168.1.1     Up           20026          1682184  lsp2
192.168.0.1     192.168.1.1     Up           29796           2502864  lsp3
192.168.0.1     192.168.1.1     Up           40111           3369324  lsp4
Total 4 displayed, Up 4, Down 0

Egress LSP: 1 sessions
To              From            State     Packets            Bytes LSPname
192.168.1.1     192.168.0.1     Up             NA               NA r0-r1
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

入口路由器 R1 的示例输出显示,流量是根据 LSP 带宽配置分配的,如字段 Balance: xx% 所示。例如, lsp1 配置了 10 Mbps 的带宽,如现场所示 Balance: 10%

使用 traceroute 命令验证 MPLS 标签

目的

您可以使用命令 traceroute 验证数据包是否通过 LSP 发送。

操作

要验证 MPLS 标签,请输入以下 Junos OS CLI 操作模式命令,其中 host-name 是远程主机的 IP 地址或名称:

content_copy zoom_out_map
user@host> traceroute host-name                            

示例输出 1

命令名称
content_copy zoom_out_map
user@R1> traceroute 100.100.6.1 
traceroute to 100.100.6.1 (100.100.6.1), 30 hops max, 40 byte packets
 1  10.1.12.2 (10.1.12.2)  0.861 ms  0.718 ms  0.679 ms
      MPLS Label=100048 CoS=0 TTL=1 S=1
 2  10.1.24.2 (10.1.24.2)  0.822 ms  0.731 ms  0.708 ms
      MPLS Label=100016 CoS=0 TTL=1 S=1
 3  10.1.46.2 (10.1.46.2)  0.571 ms !N  0.547 ms !N  0.532 ms !N

示例输出 2

命令名称
content_copy zoom_out_map
user@R1> traceroute 10.0.0.6 
traceroute to 10.0.0.6 (10.0.0.6), 30 hops max, 40 byte packets
 1  10.1.13.2 (10.1.13.2)  0.605 ms  0.548 ms  0.503 ms
 2  10.0.0.6 (10.0.0.6)  0.761 ms  0.676 ms  0.675 ms

意义

示例输出 1 显示 MPLS 标签用于通过网络转发数据包。输出中包含标签值 (MPLS Label=100048)、生存时间值 (TTL=1) 和堆栈位值 (S=1)。

MPLS Label 字段用于标识特定 LSP 的数据包。它是一个 20 位字段,最大值为 (2^^20-1),或大约 1,000,000。

TTL 值包含此 MPLS 数据包可以通过网络传输的跃点数限制 (1)。它在每个跃点递减,如果 TTL 值降至 1 以下,则丢弃数据包。

堆栈位值 (S=1) 的底部表示这是堆栈中的最后一个标签,并且此 MPLS 数据包有一个与之关联的标签。Junos OS 中的 MPLS 实现在 M 系列路由器上支持 3 的堆叠深度,在 T 系列平台上最多支持 5 的堆叠深度。有关 MPLS 标签堆叠的更多信息,请参阅 RFC 3032, MPLS 标签堆栈编码。

MPLS 标签显示在示例输出 1 中,因为 traceroute 命令被发出到 BGP 目标,该路由的 BGP 下一跃点是 LSP 出口地址。当 BGP 下一跃点等于 LSP 出口地址时,Junos OS 默认行为将 LSP 用于 BGP 流量。

示例输出 2 显示 MPLS 标签未显示在命令的 traceroute 输出中。如果 BGP 下一跃点不等于 LSP 出口地址,或者目标是 IGP 路由,则 BGP 流量不会使用 LSP。BGP 流量不使用 LSP,而是使用 IGP(在本例中为 IS-IS)到达出口地址 (R6)。

GMPLS 和 GRE 隧道故障排除

问题

Description

GMPLS 的逻辑控制通道必须是点对点链路,并且必须具有某种形式的 IP 可访问性。在广播接口上或当控制通道对等方之间存在多个跃点时,请对控制通道使用 GRE 隧道。有关 GMPLS 和 GRE 隧道的更多详细信息,请参阅 Junos MPLS 应用程序配置指南Junos 用户指南

为 GMPLS 控制通道配置 GRE 隧道不需要隧道 PIC。相反,请使用基于 gre 软件的接口,而不是基于 gr-fpc/pic/port硬件的界面。

警告:

由于基于 gre 软件的接口的限制,GMPLS 控制通道是唯一受支持的基于软件 gre 的界面使用通道。明确不支持任何其他用途,并可能导致应用程序失败。

以下示例显示了基本 gre 接口配置。在这种情况下,隧道源是本地路由器的环路地址,目标地址是远程路由器的环路目标。具有隧道目标下一跃点的流量将使用隧道。通过接口的所有流量不会自动使用该隧道。只有将隧道目标作为下一跃点的流量才会使用隧道。

示例输出

content_copy zoom_out_map
user@R1> show configuration interfaces
[...Output truncated...]
gre {
    unit 0 {
        tunnel {
            source 10.0.12.13;
            destination 10.0.12.14;
        }
        family inet {
            address 10.35.1.6/30;
        }
        family mpls;
    }
}
示例输出

show interfaces 命令的以下示例输出显示了封装类型和标头、最大速度、通过逻辑接口的数据包、目标和逻辑地址。

content_copy zoom_out_map
user@R1> show interfaces gre
Physical interface: gre, Enabled, Physical link is Up
  Interface index: 10, SNMP ifIndex: 8
   Type: GRE, Link-level type: GRE,  MTU: Unlimited, Speed: Unlimited
  Device flags   : Present Running
  Interface flags: Point-To-Point SNMP-Traps
    Input packets : 0 
    Output packets: 0

  Logical interface gre.0 (Index 70) (SNMP ifIndex 47) 
    Flags: Point-To-Point SNMP-Traps 0x4000 
     IP-Header 10.0.12.14:10.0.12.13:47:df:64:0000000000000000  
     Encapsulation: GRE-NULL
    Input packets : 171734 
    Output packets: 194560
    Protocol inet, MTU: 1476
      Flags: None
      Addresses, Flags: Is-Preferred Is-Primary
         Destination: 10.35.1.4/30, Local: 10.35.1.6, Broadcast: 10.35.1.7
    Protocol mpls, MTU: 1464
      Flags: None

以下是使用 GRE 隧道配置 GMPLS LSP 时的各种要求:

  • 数据通道必须在同一类型的接口上开始和结束。

  • 控制通道可以是在同一或不同接口类型上开始和结束的 GRE 隧道。

  • 必须在层次结构级别使用 [edit protocol ospf] 语句间接peer-interface peer-name配置 GRE 隧道。

  • 必须在和[edit protocols rsvp]层次结构级别禁用 [edit protocols ospf] GRE 接口。

  • 必须在 LMP 配置中正确定义数据和控制通道。

  • 可以选择使用语句禁用 no-cspf 受限最短路径优先 (CSPF)。

此案例重点说明 GRE 隧道端点配置不正确。但是,您可以使用类似的过程和命令来诊断其他 GRE 隧道问题。 图 13 说明了通过 GRE 接口建立隧道的 MPLS 的网络拓扑。

图 13: GMPLS 网络拓扑结构GMPLS 网络拓扑结构

中的 图 13 MPLS 网络拓扑显示了配置了由以下组件组成的 GRE 隧道的瞻博网络路由器:

  • 从入口路由器到出口路由器的严格 GMPLS LSP 路径。

  • 在入口路由器上,CSPF 使用 [edit protocol mpls label-switched-path lsp-name] 层次结构级别的语句禁用no-cspf

  • 所有路由器上 [edit protocols link-management] 层次结构级别的语句中的peer 流量工程链路和控制通道。

  • 在所有路由器上配置的 OSPF 和 OSPF 流量工程。

  • 对所有路由器上的 OSPF 和 RSVP 中的引用 peer-interface

  • R3之间的R2切换类型问题。

症状

如 和 图 13show rsvp session 命令的show mpls lsp输出所示,中显示的网络中的 LSP 已关闭,这些命令显示的信息非常相似。该 show mpls lsp 命令显示在路由器上配置的所有 LSP,以及所有传输和出口 LSP。该 show rsvp session 命令显示有关 RSVP 会话的摘要信息。您可以使用任一命令验证 LSP 的状态。在本例中,LSP gmpls-r1-to-r3 已关闭 (Dn)。

示例输出

content_copy zoom_out_map
user@R1> show mpls lsp
Ingress LSP: 1 sessions
To              From            State Rt ActivePath       P     LSPname
192.168.4.1     192.168.1.1     Dn     0 -                      gmpls-r1-to-r3 
Bidir
Total 1 displayed, Up 0, Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R1>  show rsvp session  
Ingress RSVP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname 
192.168.4.1     192.168.1.1     Dn       0  0  -       -        - gmpls-r1-to-r3  
Bidir
Total 1 displayed, Up 0, Down 1

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0
原因

GMPLS LSP 出现问题的原因是在 GMPLS 数据通道的两端配置了不同的接口类型。

命令疑难解答

Junos OS 包含对问题进行故障排除时有用的命令。本主题简要介绍每个命令,后跟示例输出,并讨论与问题相关的输出。

在对 GMPLS 问题进行故障排除时,可以使用以下命令:

content_copy zoom_out_map
user@host> show mpls lsp extensive         
user@host> show rsvp session detail         
user@host> show link-management peer         
user@host> show link-management te-link          
user@host> show configuration protocols mpls         
user@host> monitor start filename                     
user@host> show log filename                    
示例输出

使用转发路由器 R1 上的 show mpls lsp diverse 命令可显示有关在路由器上传输、终止和配置的所有 LSP 的详细信息。

content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

192.168.4.1
  From: 192.168.1.1, State: Dn, ActiveRoute: 0, LSPname: gmpls-r1-to-r3
  Bidirectional
  ActivePath: (none)
  LoadBalance: Random
  Encoding type: SDH/SONET, Switching type: PSC-1, GPID: IPv4
  Primary   p1               State: Dn
    SmartOptimizeTimer: 180
    8 Dec 20 18:08:02 192.168.4.1: MPLS label allocation failure [3 times]
    7 Dec 20 18:07:53 Originate Call
    6 Dec 20 18:07:53 Clear Call
    5 Dec 20 18:07:53 Deselected as active
    4 Dec 20 18:06:13 Selected as active path
    3 Dec 20 18:06:13 Record Route:  100.100.100.100 93.93.93.93
    2 Dec 20 18:06:13 Up
    1 Dec 20 18:06:13 Originate Call
  Created: Wed Dec 20 18:06:12 2006
Total 1 displayed, Up 0, Down 1

Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
意义

命令 show mpls lsp extensive 的示例输出显示一条错误消息(MPLS label allocation failure) 在输出的日志部分中。此 LSP 事件表示 MPLS 协议或 family mpls 语句配置不正确。当 LSP 事件前面有 IP 地址时,该地址通常是出现 MPLS 配置错误的路由器。在这种情况下,地址为 lo0R3) 的192.168.4.1路由器似乎出现了 MPLS 配置错误。

示例输出

使用“显示 rsvp 会话详细信息”命令可显示有关 RSVP 会话的详细信息。

content_copy zoom_out_map
user@R1> show rsvp session detail 
Ingress RSVP: 1 sessions

192.168.4.1
  From: 192.168.1.1,  LSPstate: Dn, ActiveRoute: 0
   LSPname: gmpls-r1-to-r3, LSPpath: Primary
  Bidirectional, Upstream label in: 21253, Upstream label out: -
  Suggested label received: -,  Suggested label sent: 21253
  Recovery label received: -, Recovery label sent: -
   Resv style: 0 - , Label in: -, Label out: -
  Time left:    -, Since: Wed Dec 20 18:07:53 2006
  Tspec: rate 0bps size 0bps peak 155.52Mbps m 20 M 1500
  Port number: sender 2 receiver 46115 protocol 0
  PATH rcvfrom: localclient 
  Adspec: sent MTU 1500
  Path MTU: received 0
  PATH sentto: 10.35.1.5 (tester2) 3 pkts
   Explct route: 100.100.100.100 93.93.93.93 
   Record route: <self> ...incomplete
Total 1 displayed, Up 0, Down 1

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0
意义

命令 show rsvp session detail 的示例输出显示 LSP gmpls-r1-to-r3 已关闭 (LSPstate: Dn)。路由记录不完整,表示显式路由 100.100.100.100 93.93.93.93存在问题。地址100.100.100.100 是 上的数据通道,93.93.93.93 地址是 上R2 so-0/0/0R3的数据通道。

示例输出

使用显示链路管理对等命令显示 MPLS 对等链路信息。

content_copy zoom_out_map
user@R1> show link-management peer
Peer name: tester2, System identifier: 48428
  State: Up, Control address:  10.35.1.5
   Control-channel                   State
   gre.0                              Active  
  TE links:
   tester2

user@R2> show link-management peer 
Peer name: tester2, System identifier: 48428
 State: Up, Control address: 10.35.1.6
   Control-channel                   State
   gre.0                              Active  
  TE links:
   te-tester2

Peer name: tester3 , System identifier: 48429
  State: Up , Control address: 10.35.1.2
   Control-channel                   State
   gre.1                              Active 
  TE links:
   te-tester3

user@R3> show link-management peer  
Peer name: tester3, System identifier: 48429
  State: Up, Control address: 10.35.1.1
   Control-channel                   State
   gre.0                              Active 
  TE links:
   te-tester3
意义

命令 图 13 的示例 show link-management peer 网络中所有路由器的示例输出显示,所有控制通道都已启动并处于活动状态。对输出的详细分析显示了以下信息:

  • 对等方的名称, tester2 tester3,在相邻路由器上是相同的,以便于进行故障排除。

  • 对等方、 48428 for tester248429 for tester3的内部标识符。内部标识符是一个介于 0 到 64,000 之间的值范围。

  • 对等方的状态,可以是启动或关闭。在这种情况下,所有对等方都已启动。

  • 控制通道建立到的地址,例如 10.35.1.5.

  • 控制通道的状态,可以是打开、关闭或活动。

  • 由其对等方管理的流量工程链路,表示控制通道 gre.0 tester3管理。

示例输出

使用 show link-management te-link 命令可显示用于设置多协议标签交换 (MPLS) 流量工程转发路径的资源。

content_copy zoom_out_map
user@R1> show link-management te-link
TE link name:  tester2, State: Up
  Local identifier: 2005, Remote identifier: 21253, Local address: 90.90.90.90, Remote address: 100.100.100.100,
  Encoding: SDH/SONET, Switching: PSC-1, Minimum bandwidth: 155.52Mbps, Maximum bandwidth: 155.52Mbps, Total bandwidth: 155.52Mbps,
  Available bandwidth: 0bps
    Name        State Local ID  Remote ID      Bandwidth  Used   LSP-name
     so-0/0/0    Up       21253      21253      155.52Mbps   Yes   gmpls-r1-to-r3

user@R2> show link-management te-link 
 TE link name:  te-tester2, State: Up
  Local identifier: 7002, Remote identifier: 22292, Local address: 100.100.100.100, Remote address: 90.90.90.90,
  Encoding: SDH/SONET, Switching: PSC-1, Minimum bandwidth: 155.52Mbps, Maximum bandwidth: 155.52Mbps, Total bandwidth: 155.52Mbps,
  Available bandwidth: 0bps
    Name        State Local ID  Remote ID      Bandwidth  Used   LSP-name
    so-0/0/0    Up       21253      21253     155.52Mbps   Yes   gmpls-r1-to-r3
TE link name:  te-tester3, State: Up
  Local identifier: 7003, Remote identifier: 21254, Local address: 103.103.103.103, Remote address: 93.93.93.93,
  Encoding: SDH/SONET, Switching: PSC-1, Minimum bandwidth: 155.52Mbps, Maximum bandwidth: 155.52Mbps, Total bandwidth: 155.52Mbps,
  Available bandwidth: 0bps
    Name        State Local ID  Remote ID      Bandwidth  Used   LSP-name
    so-0/0/1    Up       21252      21252     155.52Mbps   Yes  gmpls-r1-to-r3

user@R3> show link-management te-link  
 TE link name:  te-tester3, State: Up
  Local identifier: 7003, Remote identifier: 21254,  Local address: 93.93.93.93, 
Remote address: 103.103.103.103,
  Encoding: SDH/SONET, Switching: PSC-1, Minimum bandwidth: 0bps, Maximum bandwidth: 0bps, Total bandwidth: 0bps,
  Available bandwidth: 0bps
    Name        State Local ID  Remote ID      Bandwidth Used  LSP-name
    so-0/0/1    Dn       21252      21252     155.52Mbps    No
意义

在 网络中图 13的三个路由器上发出的命令的示例show link-management te-link 输出显示了分配给流量工程链路te-tester2te-tester3的资源。资源是 SONET 接口和 On 和 SONET 接口用于 LSP gmpls-r1-to-r3,如字段中Used所示Yes R2, tR1 so-0/0/1.so-0/0/0 但是,上的 SONET 接口so-0/0/1 已关闭 (Dn),不用于 LSP (Used No)。R3 需要进一步调查才能发现 SONET R3 接口关闭的原因。

样本奥图特

使用 show log filename 命令显示指定日志文件的内容。在这种情况下,日志文件rsvp.log是在 [编辑协议 rsvp traceoptions] 层次结构级别配置的。配置日志文件后,必须发出监视器启动 filename 命令以开始将消息记录到文件中。

content_copy zoom_out_map
user@R1> show configuration protocols rsvp
traceoptions {
    file rsvp.log size 3m world-readable;
    flag state detail;
    flag error detail;
    flag packets detail;
}

user@R1> monitor start rsvp.log
注:

在管道 ( | ) 之后输入的选项在find Error 输出中搜索术语“错误”的实例。

示例输出

content_copy zoom_out_map
user@R3> 
show log rsvp.log | find Error 
Dec 28 17:23:32  Error  Len 20 Session preempted flag 0 by 192.168.4.1 TE-link 103.103.103.103
[...Output truncated...]
Dec 28 17:23:32 RSVP new resv state,session 192.168.4.1(port/tunnel ID 46115 Ext-ID 192.168.1.1)Proto 0
Dec 28 17:23:32         RSVP-LMP reset LMP request for gmpls-r1-to-r3
Dec 28 17:23:32         RSVP->LMP request -  resource for LSP gmpls-r1-to-r3
Dec 28 17:23:32         LMP->RSVP resource request gmpls-r1-to-r3 failed cannot find resource  encoding type SDH/SONET remote label 21252 bandwidth bw[0
Dec 28 17:23:32         RSVP-LMP reset LMP request for gmpls-r1-to-r3
Dec 28 17:23:32 RSVP originate PathErr 192.168.4.1->192.168.2.1 MPLS label allocation failure LSP gmpls-r1-to-r3(2/46115)
Dec 28 17:23:32 RSVP send PathErr 192.168.4.1->192.168.2.1 Len=196 tester3
Dec 28 17:23:32   Session7 Len 16 192.168.4.1(port/tunnel ID 46115 Ext-ID 192.168.1.1) Proto 0
Dec 28 17:23:32   Hop      Len 20 192.168.4.1/0x086e4770 TE-link 103.103.103.103
Dec 28 17:23:32   Error    Len 20 MPLS label allocation failure flag 0 by 192.168.4.1 TE-link 103.103.103.103
Dec 28 17:23:32   Sender7  Len 12 192.168.1.1(port/lsp ID  2)
Dec 28 17:23:32   Tspec    Len 36 rate 0bps size 0bps peak 155.52Mbps m 20 M 1500
Dec 28 17:23:32   ADspec   Len 48 MTU 1500
Dec 28 17:23:32   RecRoute Len 20  103.103.103.103 90.90.90.90
Dec 28 17:23:32   SuggLabel Len  8  21252
Dec 28 17:23:32   UpstrLabel Len  8  21252
意义

命令show log rsvp.log 的出口路由器R3 的示例输出是从日志文件中获取的代码段。该代码段显示了 LSP gmpls-r1-to-r3. 的链路管理协议 (LMP) 资源请求 该请求的编码类型 (SDH/SONET) 有问题,表明 SONET 接口连接 R2R3时可能存在错误。需要进一步调查 和 R3 上的 R2 LMP 配置。

示例输出

使用 show configuration statement-path 命令可以显示特定的配置层次结构;在本例中为链路管理。

content_copy zoom_out_map
user@R2> show configuration protocols link-management
te-link te-tester2 {
    local-address 100.100.100.100;
    remote-address 90.90.90.90;
    remote-id 22292;
    interface so-0/0/0 {
        local-address 100.100.100.100;
        remote-address 90.90.90.90;
        remote-id 21253;
    }
}
te-link te-tester3  {
    local-address 103.103.103.103;
    remote-address 93.93.93.93;
    remote-id 21254;
     interface so-0/0/1  {
        local-address 103.103.103.103;
        remote-address 93.93.93.93;
        remote-id 21252;
    }
}
peer tester2 {
    address 10.35.1.6;
    control-channel gre.0;
    te-link te-tester2;
}
peer tester3 {
    address 10.35.1.2;
    control-channel gre.1;
    te-link te-tester3;
}

user@R3> show configuration protocols link-management 
te-link te-tester3  {
    local-address 93.93.93.93;
    remote-address 103.103.103.103;
    remote-id 21254;
    }
     interface at-0/3/1 {
        local-address 93.93.93.93;
        remote-address 103.103.103.103;
        remote-id 21252;
    }
}
peer tester3 {
    address 10.35.1.1;
    control-channel gre.0;
    te-link te-tester3;
}
意义

show configuration protocols link-management 命令的中转路由器R2 和入口路由器R3的示例输出显示,两个路由器上的接口类型不同。分配给 te-tester3 中转路由器 R2 上的资源是 SONET 接口,而分配给 te-tester3 出口路由器 R3 上的资源是 ATM 接口。数据或控制通道两端的接口类型必须相同。在这种情况下,两端都应该是 SONET 或 ATM。

解决方案

解决方案

GMPLS LSP 两端不同接口或封装类型问题的解决方案是确保两端的接口类型相同。在这种情况下,ATM 接口已从 上的 R3链路管理配置中删除,而是配置了一个 SONET 接口。

以下命令说明了用于验证 GMPLS LSP 是否已启动并使用数据通道的正确配置和命令:

content_copy zoom_out_map
user@R3> show configuration protocols link-management         
user@R3> show mpls lsp          
user@R3> show link-management te-link         

示例输出

content_copy zoom_out_map
user@R3> show configuration protocols link-management
te-link te-tester3 {
    local-address 93.93.93.93;
    remote-address 103.103.103.103;
    remote-id 21254;
     interface so-0/0/1 { # SONET interface replaces the incorrect ATM interface
        local-address 93.93.93.93;
        remote-address 103.103.103.103;
        remote-id 21252;
    }
}
peer tester3 {
    address 10.35.1.1;
    control-channel gre.0;
    te-link te-tester3;
}

user@R3> show mpls lsp   
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname 
192.168.4.1     192.168.1.1     Up       0  1 FF   21252        - gmpls-r1-to-r3
Bidir
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

user@R3> show link-management te-link    
 TE link name: te-tester3, State: Up
  Local identifier: 7003, Remote identifier: 21254, Local address: 93.93.93.93, Remote address: 103.103.103.103,
  Encoding: SDH/SONET, Switching: PSC-1, Minimum bandwidth: 155.52Mbps, Maximum bandwidth: 155.52Mbps, Total bandwidth: 155.52Mbps,
  Available bandwidth: 0bps
    Name        State Local ID  Remote ID      Bandwidth Used  LSP-name
     so-0/0/1    Up       21252      21252     155.52Mbps  Yes  gmpls-r1-to-r3

意义

来自入口路由器R3show protocols link-managementshow mpls lsp show link-management te-link 命令的示例输出表明问题已解决。LMP 配置正确,并且 LSP gmpls-r1-to-r3 已启动并使用数据通道 so-0/0/1

总结

总之,GMPLS 数据通道的两端必须是相同的封装或接口类型。此案例说明了数据通道的正确配置。控制通道的原理相同。

路由器配置

显示网络中入口路由器配置的输出。在管道 ( | ) 之后输入的选项可no-more防止输出在输出长度超过终端屏幕长度时对输出进行分页。

示例输出

以下示例输出适用于入口路由器 R1:

content_copy zoom_out_map
user@R1>  show configuration | no-more 
[...Output truncated...]
interfaces {
    so-0/0/0 {
        unit 0 {
            family inet {
                address 10.0.12.1/32 {
                    destination 10.0.12.2;
                }
            }
            family mpls;
        }
    }
    fe-0/1/0 {
        unit 0 {
            family inet {
                address 10.0.12.13/30;
            }
            family mpls;
        }
    }
    fxp0 {
        unit 0 {
            family inet {
                address 192.168.70.143/21;
            }
        }
    }
    gre {
        unit 0 {
            tunnel {
                source 10.0.12.13;
                destination 10.0.12.14;
            }
            family inet {
                address 10.35.1.6/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.1.1/32;
            }
        }
    }
}
routing-options {
    static {
        /* corporate and alpha net */
        route 172.16.0.0/12 {
            next-hop 192.168.71.254;
            retain;
            no-readvertise;
        }
        /* old lab nets */
        route 192.168.0.0/16 {
            next-hop 192.168.71.254;
            retain;
            no-readvertise;
        }
        route 0.0.0.0/0 {
            discard;
            retain;
            no-readvertise;
        }
    }
    router-id 192.168.1.1;
    autonomous-system 65432;
}
protocols {
    rsvp {
        traceoptions {
            file rsvp.log size 3m world-readable;
            flag state detail;
            flag error detail;
            flag packets detail;
        }
        interface fxp0.0 {
            disable;
        }
        interface all;
        interface lo0.0;
        interface gre.0 {
            disable;
        }
        peer-interface tester2;
    }
    mpls {
        label-switched-path gmpls-r1-to-r3 {
            from 192.168.1.1;
            to 192.168.4.1;
            lsp-attributes {
                switching-type psc-1;
                encoding-type sonet-sdh;
            }
            no-cspf;
            primary p1;
        }
        path p1 {
            100.100.100.100 strict;
            93.93.93.93 strict;
        }
        interface all;
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface lo0.0;
            interface fe-0/1/0.0;
            interface fxp0.0 {
                disable;
            }
            interface gre.0 {
                disable;
            }
            peer-interface tester2;
        }
    }
    link-management {
        te-link tester2 {
            local-address 90.90.90.90;
            remote-address 100.100.100.100;
            remote-id 21253;
            interface so-0/0/0 {
                local-address 90.90.90.90;
                remote-address 100.100.100.100;
                remote-id 21253;
            }
        }
        peer tester2 {
            address 10.35.1.5;
            control-channel gre.0;
            te-link tester2;
        }
    }
}

示例输出

以下示例输出适用于中转路由器 R2:

content_copy zoom_out_map
user@R2>show configuration | no-more 
[...Output truncated...]
interfaces {
    so-0/0/0 {
        unit 0 {
            family inet {
                address 10.0.12.2/32 {
                    destination 10.0.12.1;
                }
            }
            family mpls;
        }
    }
    so-0/0/1 {
        unit 0 {
            family inet {
                address 10.0.24.1/32 {
                    destination 10.0.24.2;
                }
            }
            family mpls;
        }
    }
    fe-0/1/0 {
        unit 0 {
            family inet {
                address 10.0.12.14/30;
            }
            family mpls;
        }
    }
    fe-0/1/2 {
        unit 0 {
            family inet {
                address 10.0.24.13/30;
            }
            family mpls;
        }
    }
    fxp0 {
        unit 0 {
            family inet {
                address 192.168.70.144/21;
            }
        }
    }
    gre {
        unit 0 {
            tunnel {
                source 10.0.12.14;
                destination 10.0.12.13;
            }
            family inet {
                address 10.35.1.5/30;
            }
            family mpls;
        }
        unit 1 {
            tunnel {
                source 10.0.24.13;
                destination 10.0.24.14;
            }
            family inet {
                address 10.35.1.1/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.2.1/32;
            }
        }
    }
}
routing-options {
    static {
        route 172.16.0.0/12 {
            next-hop 192.168.71.254;
            retain;
            no-readvertise;
        }
        route 192.168.0.0/16 {
            next-hop 192.168.71.254;
            retain;
            no-readvertise;
        }
        route 0.0.0.0/0 {
            discard;
            retain;
            no-readvertise;
        }
    }
    router-id 192.168.2.1;
    autonomous-system 65432;
}
protocols {
    rsvp {
        traceoptions {
            file rsvp.log size 3m world-readable;
            flag packets detail;
            flag state detail;
            flag error detail;
        }
        interface fxp0.0;
        interface lo0.0;
        interface all;
        interface gre.0 {
            disable;
        }
        peer-interface tester2;
        peer-interface tester3;
    }
    mpls {
        interface all;
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface lo0.0;
            interface fxp0.0 {
                disable;
            }
            interface gre.0 {
                disable;
            }
            interface fe-0/1/0.0;
            interface fe-0/1/2.0;
            interface gre.1 {
                disable;
            }
            peer-interface tester2;
            peer-interface tester3;
        }
    }
    link-management {
        te-link te-tester2 {
            local-address 100.100.100.100;
            remote-address 90.90.90.90;
            remote-id 22292;
            interface so-0/0/0 {
                local-address 100.100.100.100;
                remote-address 90.90.90.90;
                remote-id 21253;
            }
        }
        te-link te-tester3 {
            local-address 103.103.103.103;
            remote-address 93.93.93.93;
            remote-id 21254;
            interface so-0/0/1 {
                local-address 103.103.103.103;
                remote-address 93.93.93.93;
                remote-id 21252;
            }
        }
        peer tester2 {
            address 10.35.1.6;
            control-channel gre.0;
            te-link te-tester2;
        }
        peer tester3 {
            address 10.35.1.2;
            control-channel gre.1;
            te-link te-tester3;
        }
    }
}

示例输出

以下示例输出适用于出口路由器 R3:

content_copy zoom_out_map
user@R3> show configuration | no-more 
[...Output truncated...]
interfaces {
    so-0/0/1 {
        unit 0 {
            family inet {
                address 10.0.24.2/32;
            }
            family mpls;
        }
    }
    fe-0/1/2 {
        unit 0 {
            family inet {
                address 10.0.24.14/30;
            }
            family mpls;
        }
    }
    fxp0 {
        unit 0 {
            family inet {
                address 192.168.70.146/21;
            }
        }
    }
    gre {
        unit 0 {
            tunnel {
                source 10.0.24.14;
                destination 10.0.24.13;
            }
            family inet {
                address 10.35.1.2/30;
            }
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.4.1/32;
            }
        }
    }
}
routing-options {
    static {
        route 172.16.0.0/12 {
            next-hop 192.168.71.254;
            retain;
            no-readvertise;
        }
        route 192.168.0.0/16 {
            next-hop 192.168.71.254;
            retain;
            no-readvertise;
        }
        route 0.0.0.0/0 {
            discard;
            retain;
            no-readvertise;
        }
    }
    router-id 192.168.4.1;
    autonomous-system 65432;
}
protocols {
    rsvp {
        traceoptions {
            file rsvp.log size 3m world-readable;
            flag packets detail;
            flag error;
            flag state;
            flag lmp;
        }
        interface fxp0.0 {
            disable;
        }
        interface all;
        interface lo0.0;
        interface gre.0 {
            disable;
        }
        peer-interface tester3;
    }
    mpls {
        interface all;
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface fxp0.0 {
                disable;
            }
            interface fe-0/1/2.0;
            interface gre.0 {
                disable;
            }
            interface lo0.0;
            peer-interface tester3;
        }
    }
    link-management {
        te-link te-tester3 {
            local-address 93.93.93.93;
            remote-address 103.103.103.103;
            remote-id 21254;
            interface so-0/0/1 {
                local-address 93.93.93.93;
                remote-address 103.103.103.103;
                remote-id 21252;
            }
        }
        peer tester3 {
            address 10.35.1.1;
            control-channel gre.0;
            te-link te-tester3;
        }
    }
}

确定 LSP 状态

显示有关资源预留协议 (RSVP) 对象和标签交换路径 (LSP) 历史记录的详细信息,以查明 LSP 的问题。

图 14 阐释了本主题中使用的网络拓扑。

图 14: MPLS 网络拓扑MPLS 网络拓扑

若要确定 LSP 状态,请按照下列步骤操作:

检查 LSP 的状态

目的

显示标签切换通道 (LSP) 的状态。

操作

要确定 LSP 状态,请在入口路由器上输入以下 Junos OS 命令行界面 (CLI) 操作模式命令:

content_copy zoom_out_map
user@host>               show mpls lsp           
示例输出
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp 
Ingress LSP: 1 sessions
To              From            State Rt ActivePath       P     LSPname
10.0.0.6        10.0.0.1        Up     1                  *     R1-to-R6
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State Rt  Style   Labelin  Labelout LSPname 
10.0.0.1        10.0.0.6         Up     0 1  FF        3         -  R6-to-R1
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

示例输出来自入口路由器 (R1),显示入口、出口和传输 LSP 信息。入口信息适用于源自此路由器的会话,出口信息适用于在此路由器上终止的会话,中转信息适用于通过此路由器传输的会话。

有一个从 (10.0.0.1) 到 (10.0.0.6) 的R1R6 入口路由。此路由当前已启动,并且是安装在路由表 (Rt) 中的活动路由。LSP R1-to-R6 是主路径 (P),而不是辅助路径,由星号 (*) 表示。到 的 R6 路由不包含命名路径 (ActivePath)。

有一个从 R6 到 的 R1出口 LSP 。已 State 启动,路由表中未安装路由。RSVP 预订样式 (Style) 由两部分组成。第一个是活动预留的数量 (1)。第二种是保留样式,即 FF (固定过滤器)。保留样式可以是 FFSE (共享显式)或 WF (通配符筛选器)。此 LSP 有三个传入标签 (Labelin),没有标签流出 (Labelout)。

没有中转 LSP。

有关检查 LSP 状态的详细信息,请参阅 使用分层 MPLS 故障排除模型的清单

显示有关 LSP 的广泛状态

目的

显示有关 LSP 的广泛信息,包括所有过去的状态历史记录以及 LSP 可能失败的原因。

操作

要显示有关 LSP 的广泛信息,请在入口路由器上输入以下 Junos OS CLI 操作模式命令:

content_copy zoom_out_map
user@host>                           show mpls lsp extensive           
示例输出
命令名称
content_copy zoom_out_map
user@R1> show mpls lsp extensive
Ingress LSP: 1 sessions

10.0.0.6
  From: 10.0.0.1, State:  Up , ActiveRoute:  1 , LSPname:  R1-to-R6
  ActivePath:   (primary)
  LoadBalance:  Random
  Encoding type: Packet, Switching type: Packet, GPID: IPv4
  *Primary                     State:  Up
     Computed ERO  (S [L] denotes strict [loose] hops): (CSPF metric: 20)
 10.1.13.2 S 10.1.36.2 S 
    Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt):
          10.1.13.2 10.1.36.2
   91 Aug 17 12:22:52 Selected as active path
   90 Aug 17 12:22:52 Record Route:  10.1.13.2 10.1.36.2
   89 Aug 17 12:22:52 Up
   88 Aug 17 12:22:52 Originate Call
   87 Aug 17 12:22:52 CSPF: computation result accepted
   86 Aug 17 12:22:23 CSPF failed: no route toward 10.0.0.6[13920 times]
   85 Aug 12 19:12:51 Clear Call
   84 Aug 12 19:12:50 10.1.56.2: MPLS label allocation failure
   83 Aug 12 19:12:47 Deselected as active
   82 Aug 12 19:12:47 10.1.56.2: MPLS label allocation failure
   81 Aug 12 19:12:47 ResvTear received
   80 Aug 12 19:12:47 Down
   79 Aug 12 19:12:31 10.1.56.2: MPLS label allocation failure[4 times]
   78 Aug 12 19:09:58 Selected as active path
   77 Aug 12 19:09:58 Record Route:  10.1.15.2 10.1.56.2
   76 Aug 12 19:09:58 Up
   75 Aug 12 19:09:57 Originate Call
   74 Aug 12 19:09:57 CSPF: computation result accepted
   73 Aug 12 19:09:29 CSPF failed: no route toward 10.0.0.6[11 times]
   72 Aug 12 19:04:36 Clear Call
   71 Aug 12 19:04:23 Deselected as active
   70 Aug 12 19:04:23 ResvTear received
   69 Aug 12 19:04:23 Down
   68 Aug 12 19:04:23 CSPF failed: no route toward 10.0.0.6
   67 Aug 12 19:04:23 10.1.15.2: Session preempted
   66 Aug 12 16:45:35 Record Route:  10.1.15.2 10.1.56.2
   65 Aug 12 16:45:35 Up
   64 Aug 12 16:45:35 Clear Call
   63 Aug 12 16:45:35 CSPF: computation result accepted
   62 Aug 12 16:45:35 ResvTear received
   61 Aug 12 16:45:35 Down
   60 Aug 12 16:45:35 10.1.13.2: Session preempted
   59 Aug 12 14:50:52 Selected as active path
   58 Aug 12 14:50:52 Record Route:  10.1.13.2 10.1.36.2
   57 Aug 12 14:50:52 Up
   56 Aug 12 14:50:52 Originate Call
   55 Aug 12 14:50:52 CSPF: computation result accepted
   54 Aug 12 14:50:23 CSPF failed: no route toward 10.0.0.6[7 times]
   53 Aug 12 14:47:22 Deselected as active
   52 Aug 12 14:47:22 CSPF failed: no route toward 10.0.0.6
   51 Aug 12 14:47:22 Clear Call
   50 Aug 12 14:47:22 CSPF: link down/deleted 10.1.12.1(R1.00/10.0.0.1)->10.1.12.2(R2.00/10.0.0.2)
   49 Aug 12 14:47:22 CSPF: link down/deleted 10.1.15.1(R1.00/10.0.0.1)->10.1.15.2(R5.00/10.0.0.5)
   48 Aug 12 14:47:22 10.1.15.1: MPLS label allocation failure
   47 Aug 12 14:47:22 Clear Call
   46 Aug 12 14:47:22 CSPF: computation result accepted
   45 Aug 12 14:47:22 10.1.12.1: MPLS label allocation failure
   44 Aug 12 14:47:22 MPLS label allocation failure
   43 Aug 12 14:47:22 Down
   42 Jul 23 11:27:21 Selected as active path
   Created: Sat Jul 10  18:18:44 2004
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions

10.0.0.1
  From: 10.0.0.6,  LSPstate: Up , ActiveRoute: 0
  LSPname:  R6-to-R1 , LSPpath: Primary
  Suggested label received: -, Suggested label sent: -
  Recovery label received: -, Recovery label sent: -
   Resv style: 1 FF ,  Label in: 3 ,  Label out: -
  Time left:  141, Since: Tue Aug 17 12:23:14 2004
  Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
  Port number: sender 1 receiver 39024 protocol 0
  PATH rcvfrom: 10.1.15.2 (so-0/0/1.0) 130 pkts
  Adspec: received MTU 1500 
  PATH sentto: localclient
  RESV rcvfrom: localclient 
  Record route: 10.1.56.2 10.1.15.2 <self>  
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

意义

示例输出来自入口路由器 (R1),详细显示入口、出口和传输 LSP 信息,包括所有过去的状态历史记录和 LSP 失败的原因。入口信息适用于源自此路由器的会话,出口信息适用于在此路由器上终止的会话,中转信息适用于通过此路由器传输的会话。

有一个从 (10.0.0.1) 到 (10.0.0.6) 的R1R6 入口路由。此路由当前已启动 (State),其中一条路由正在使用 LSP, R1-to-R6。LSP 活动路径是主路径。即使 LSP 不包含 primarysecondary 关键字,路由器仍会将 LSP 视为主 LSP,表示如果 LSP 发生故障,默认情况下,路由器将尝试以 30 秒的间隔向非活动 LSP 发出信号。

负载平衡为 Random,这是默认值,表示在为 LSP 选择物理路径时,路由器会在跃点数相等的等价路径中随机选择。可以配置的其他选项包括 Least-fillMost-fillLeast-fill 将 LSP 放在跃点数相等的等价路径中利用率最低的链路上。将 LSP 放在共享相等跃点数的等价路径中利用率最高的链路上。 Most-fill 利用率基于可用带宽的百分比。

Encoding type 字段显示通用 MPLS (GMPLS) 信令参数 (Packet),指示 IPv4. 是 Switching typePacket,通用有效负载标识符 (GPID) 为 IPv4。

主路径是活动路径,由星号 (*) 表示。LSP 的状态为 Up

显式路由对象 (ERO) 包括 LSP 遵循的物理路径的受限最短路径优先 (CSPF) 成本 (20)。存在 CSPF 指标表示这是 CSPF LSP。缺少 CSPF 指标表示不存在 CSPF LSP。

该字段 10.1.13.2 S 指示实际的 ERO。RSVP 信令消息进入严格( 10.1.13.2 作为下一跃点)并在严格完成 10.1.36.2 。当 LSP 是 CSPF LSP 时,所有 ERO 地址都是严格跃点。松散跃点只能显示在无 CSPF LSP 中。

收到的记录路由对象 (RRO) 具有以下保护标志:

  • 0x01- 提供本地保护。此节点下游的链路受本地修复机制保护。仅当在相应路径消息的 SESSION_ATTRIBUTE 对象中设置了本地保护标志时,才能设置此标志。

  • 0x02- 使用中的本地保护。正在使用本地修复机制来维护此隧道(通常是因为之前路由的链路中断)。

  • 0x04— 带宽保护。下游路由器具有备份路径,为受保护区域提供与受保护 LSP 相同的带宽保证。

  • 0x08—节点保护。下游路由器具有备份路径,可针对相应路径部分上的链路和节点故障提供保护。如果下游路由器只能设置链路保护备份路径,则会设置“可用本地保护”位,但会清除“节点保护”位。

  • 0x10- 抢占挂起。如果流量工程 LSP 正在进行挂起的抢占,抢占节点将设置此标志。这向此 LSP 的入口标签边缘路由器 (LER) 指示应重新路由。

有关保护标志的详细信息,请参阅 Junos 路由协议和策略命令参考。

该字段 10.1.13.2.10.1.36.2 是实际接收的记录路由 (RRO)。请注意,字段中的地址与字段中的ERO地址RRO匹配。这是 CSPF LSP 的正常情况。如果 RRO 和 ERO 地址与 CSPF LSP 不匹配,则 LSP 必须重新路由或绕行。

编号为 91 到 42 的行包含历史记录日志中的 49 个最新条目。每一行都有时间戳。最近的条目具有最大的日志历史记录编号,并且位于日志的顶部,指示第 91 行是最新的历史记录日志条目。读取日志时,请从最早的条目 () 开始到最近的条目 (4291)。

历史记录日志于 7 月 10 日启动,并显示以下活动顺序:LSP 被选为活动,发现已关闭,MPLS 标签分配多次失败,多次被删除,由于 ResvTear 而被抢占,被取消选择为活动,并被清除。最后,路由器计算了一个 CSPF ERO,发出呼叫信号,LSP 提出了列出的 RRO(第 90 行),并被列为活动状态。

有关错误消息的详细信息,请参阅 Junos MPLS 网络操作指南日志参考。

显示的入口 LSP 总数为 11 上行和 0 下行。字段中的数字 Up 加上字段中的数字 Down 应等于总数。

有一个从 R6 到 的 R1出口 LSP 会话。已 State 启动,路由表中未安装路由。RSVP 预订样式 (Style) 由两部分组成。第一个是活动预留的数量 (1)。第二种是保留样式,即 FF (固定过滤器)。保留样式可以是 FFSE (共享显式)或 WF (通配符筛选器)。此 LSP 有三个传入标签 (Labelin),没有标签流出 (Labelout)。

没有中转 LSP。

有关检查 LSP 状态的详细信息,请参阅 使用分层 MPLS 故障排除模型的清单

检查是否发送和接收 RSVP 路径消息

目的

是否存在各种 RSVP 消息有助于确定网络中的多协议标签交换 (MPLS) 是否存在问题。例如,如果输出中出现没有 Resv 消息的路径消息,则可能表示未创建标签交换路径 (LSP)。

操作

要检查是否发送和接收了 RSVP 路径消息,请输入以下 Junos OS 命令行界面 (CLI) 操作模式命令:

content_copy zoom_out_map
                                            user@host> show rsvp statistics         

示例输出

命令名称
content_copy zoom_out_map
user@R1> show rsvp statistics
  PacketType              Total                  Last 5 seconds
                   Sent      Received        Sent      Received
 Path            114523         80185            1             0
  PathErr              5            10           0             0
   PathTear            12             6            0             0
  Resv FF          80515        111476            0             0
  Resv WF              0             0           0             0
  Resv SE              0             0           0             0
  ResvErr              0             0           0             0
   ResvTear             0             5           0             0
  ResvConf             0             0           0             0
  Ack                  0             0           0             0
  SRefresh             0             0           0             0
  Hello           915851        915881           0             0
  EndtoEnd RSVP        0            0           0             0

  Errors                          Total            Last 5 seconds
  Rcv pkt bad length                0                         0
  Rcv pkt unknown type              0                         0
  Rcv pkt bad version               0                         0
  Rcv pkt auth fail                 0                         0
  Rcv pkt bad checksum              0                         0
  Rcv pkt bad format                0                         0
  Memory allocation fail            0                         0
  No path information               0                         0
  Resv style conflict               0                         0
  Port conflict                     0                         0
  Resv no interface                 0                         0
  PathErr to client                15                         0
  ResvErr to client                 0                         0
  Path timeout                      0                         0
  Resv timeout                      0                         0
  Message out-of-order              0                         0
  Unknown ack msg                   0                         0
  Recv nack                         0                         0
  Recv duplicated msg-id            0                         0
  No TE-link to recv Hop            0                         0

意义

示例输出显示发送和接收的 RSVP 消息。RSVP 路径消息的总数为 11,4532 条已发送,80,185 条已接收。在过去 5 秒内,未发送或接收任何消息。

共发送了 5 PathErr 条消息,收到了 10 条消息。发生路径错误(通常是由于路径消息中的参数问题)时,路由器会向发出路径消息的发送方发送单播 PathErr 消息。在这种情况下, R1 发送了至少 10 条带有错误的路径消息,如已收到的 10 条 PathErr 消息 R1 所示。下游路由器发送了 R1 5 条路径消息,但出现错误,如已发送的 5 条 PathErr 消息 R1 所示。PathErr 消息的传输方向与路径消息相反。

总共发送了 12 PathTear 条消息,收到了 6 条消息,最后 5 秒内没有一条消息。与 PathErr 消息相反,PathTear 消息的传输方向与路径消息相同。由于同时发送和接收路径消息,因此也会发送和接收 PathTear 消息。但是,如果仅发送路径消息,则输出中仅显示发送的 PathTear 消息。

总共发送了 80,515 条具有固定过滤器 (FF) 保留样式的预订 (Resv) 消息,并收到了 111,476 条消息,过去 5 秒内没有收到任何消息。预留样式表示 FF 在每个会话中,每个接收方与每个上游发送方建立自己的预留,并列出所有选定的发送方。不会发送或接收通配符筛选器 (WF) 或共享显式 (SE) 保留样式的消息。有关 RSVP 预留样式的详细信息,请参阅 Junos MPLS 应用程序配置指南

不发送或接收其他 RSVP 消息类型。有关 ResvErr、ResvTear 和 Resvconf 消息类型的信息,请参阅 Junos MPLS 应用程序配置指南

确认和摘要刷新 (SRefresh) 消息不会显示在输出中。确认和摘要刷新消息在 RFC 2961 中定义,是 RSVP 扩展的一部分。确认消息用于减少网络中的 RSVP 控制流量。

总共发送了 915,851 条你好消息,接收了 915,881 条消息,在过去 5 秒内没有发送或接收任何消息。RSVP 你好间隔为 9 秒。如果在过去 5 秒内发送或接收了多条你好消息,则表示有多个接口支持 RSVP。

EndtoEnd RSVP 消息是不用于 RSVP 流量工程的旧版 RSVP 消息。仅当 RSVP 转发由虚拟专用网络 (VPN) 客户发出的旧版 RSVP 消息以通过主干网传输到 VPN 中的其他站点时,这些计数器才会递增。它们被称为端到端消息,因为它们用于网络的另一端,并且仅在提供商网络的两端有意义。

Errors输出部分显示有关有错误的 RSVP 数据包的统计信息。总共有 15 PathErr to client 个数据包发送到路由引擎。总数合并了发送和接收 PathErr 的数据包。

footer-navigation