所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

S9300, S9300E, S9300X V200R010C00 配置指南-MPLS

本文档介绍了设备支持的MPLS相关配置。主要内容包括静态LSP的基本原理和配置过程、MPLS LDP的基本原理和配置过程、MPLS QoS的基本原理和配置过程、MPLS TE的基本原理和配置过程、MPLS OAM的基本原理和配置过程、Seamless MPLS的基本原理和配置过程,并提供相关的配置案例。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置RSVP-TE摘要刷新示例(手工TE FRR)

配置RSVP-TE摘要刷新示例(手工TE FRR)

组网需求

图5-41所示,主CR-LSP是LSRA→LSRB→LSRC→LSRD,要求对LSRB→LSRC这段链路通过TE FRR进行链路保护。

建立一条Bypass CR-LSP,使用路径LSRB→LSRE→LSRC。LSRB是本地修复节点PLR,LSRC是汇聚点MP。

使用显式路径方式建立MPLS TE的主隧道和旁路隧道。使用的信令协议是RSVP-TE。

现在要求在LSRB与LSRC之间配置摘要刷新功能。

说明:

请确保该场景下互联接口的STP处于未使能状态。同时将互连接口退出VLAN1,避免形成环路。因为在使能STP的环形网络中,如果用交换机的VLANIF接口构建三层网络,会导致某个端口被阻塞,从而导致三层业务不能正常运行。

图5-41  配置基于手工TE FRR的RSVP-TE摘要刷新组网图

配置思路

采用如下的思路配置摘要刷新功能:

  1. 配置手工TE FRR。

  2. 在隧道的PLR与MP节点上配置RSVP摘要刷新功能,用于提高RSVP消息传输的可靠性和资源的利用率。

操作步骤

  1. 配置手工TE FRR

    按照配置手工TE FRR示例配置主隧道与旁路隧道,并进行绑定。

  2. 在LSRB与LSRC上配置RSVP摘要刷新功能

    # 在LSRB上配置RSVP摘要刷新功能。

    [LSRB] mpls
    [LSRB-mpls] mpls rsvp-te srefresh
    [LSRB-mpls] quit

    # 在LSRC上配置RSVP摘要刷新功能。

    [LSRC] mpls
    [LSRC-mpls] mpls rsvp-te srefresh
    [LSRC-mpls] quit

  3. 检查配置结果

    在LSRB上执行display mpls rsvp-te statistics global可以查看摘要刷新功能的工作状态。通过输出信息,可以发现字段SendSrefreshCounter、RecSrefreshCounter、SendAckMsgCounter和RecAckMsgCounter的统计数字不为零,这表明已经有摘要刷新的数据包成功传输。

    [LSRB] display mpls rsvp-te statistics global
     LSR ID: 2.2.2.9                      LSP Count: 2                              
     PSB Count: 2                         RSB Count: 2                              
     RFSB Count: 1                                                                  
                                                                                    
    Total Statistics Information:                                                   
     PSB CleanupTimeOutCounter: 0         RSB CleanupTimeOutCounter: 0              
     SendPacketCounter: 122613            RecPacketCounter: 127446                  
     SendCreatePathCounter: 25            RecCreatePathCounter: 260                 
     SendRefreshPathCounter: 62209        RecRefreshPathCounter: 62113              
     SendCreateResvCounter: 21            RecCreateResvCounter: 31                  
     SendRefreshResvCounter: 60101        RecRefreshResvCounter: 64792              
     SendResvConfCounter: 0               RecResvConfCounter: 0                     
     SendHelloCounter: 0                  RecHelloCounter: 0                        
     SendAckCounter: 0                    RecAckCounter: 0                          
     SendPathErrCounter: 242              RecPathErrCounter: 0                      
     SendResvErrCounter: 0                RecResvErrCounter: 0                      
     SendPathTearCounter: 11              RecPathTearCounter: 8                     
     SendResvTearCounter: 2               RecResvTearCounter: 0                     
     SendSrefreshCounter: 1               RecSrefreshCounter: 1                     
     SendAckMsgCounter: 1                 RecAckMsgCounter: 1                       
     SendChallengeMsgCounter: 0           RecChallengeMsgCounter: 0                 
     SendResponseMsgCounter: 0            RecResponseMsgCounter: 0                  
     SendErrMsgCounter: 0                 RecErrMsgCounter: 0                       
     SendRecoveryPathMsgCounter: 0        RecRecoveryPathMsgCounter: 0              
     SendGRPathMsgCounter: 0              RecGRPathMsgCounter: 0                    
     ResourceReqFaultCounter: 0           RecGRPathMsgFromLSPMCounter: 0            
     Bfd neighbor count: 3                Bfd session count: 0                      

    # 使LSRB上的被保护的出接口VLANIF200失效。

    [LSRB] interface vlanif 200
    [LSRB-Vlanif200] shutdown
    [LSRB-Vlanif200] quit
    在LSRA上执行命令display interface tunnel 1,查看主CR-LSP的状态,可以看到Tunnel接口仍然处于Up状态。
    [LSRA] display interface tunnel 1
    Tunnel1 current state : UP                                                  
    Line protocol current state : UP                                                
    Last line protocol up time : 2013-01-21 10:58:49                                
    Description:
    ...

    在LSRA上执行tracert lsp te tunnel 1命令来查看隧道经过的路径。

    [LSRA] tracert lsp te tunnel 1
      LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel1 , press CTRL_C t
    o break.                                                                        
      TTL   Replier            Time    Type      Downstream                         
      0                                Ingress   172.1.1.2/[1034 ]                  
      1     172.1.1.2          1 ms    Transit   172.4.1.2/[1042 1025 ]             
      2     172.4.1.2          1 ms    Transit   172.5.1.2/[3 ]                     
      3     172.5.1.2          2 ms    Transit   172.3.1.2/[3 ]                     
      4     4.4.4.9            2 ms    Egress                                       

    由此可以确认链路已切换到Bypass CR-LSP。

    在LSRB上执行display mpls te tunnel name Tunnel1 verbose命令,可以看到旁路隧道被使用。

    [LSRB] display mpls te tunnel name Tunnel1 verbose
        No                      :  1
        Tunnel-Name             :  Tunnel1
        Tunnel Interface Name   :  -                   
        TunnelIndex             :  1           LSP Index         :  2048
        Session ID              :  100         LSP ID            :  5
        LSR Role                :  Transit     
        Ingress LSR ID          :  1.1.1.9
        Egress LSR ID           :  4.4.4.9
        In-Interface            :  Vlanif100
        Out-Interface           :  Vlanif200
        Sign-Protocol           :  RSVP TE     Resv Style        :  SE
        IncludeAnyAff           :  0x0         ExcludeAnyAff     :  0x0
        IncludeAllAff           :  0x0
        ER-Hop Table Index      :  -           AR-Hop Table Index:  0
        C-Hop Table Index       :  -
        PrevTunnelIndexInSession:  -           NextTunnelIndexInSession:  -
        PSB Handle              :  8421
        Created Time            :  2013-09-16 18:27:55+00:00              
        RSVP LSP Type           :  - 
        --------------------------------
                  DS-TE Information
        --------------------------------
        Bandwidth Reserved Flag :  Unreserved
        CT0 Bandwidth(Kbit/sec) :  0           CT1 Bandwidth(Kbit/sec):  0
        CT2 Bandwidth(Kbit/sec) :  0           CT3 Bandwidth(Kbit/sec):  0
        CT4 Bandwidth(Kbit/sec) :  0           CT5 Bandwidth(Kbit/sec):  0
        CT6 Bandwidth(Kbit/sec) :  0           CT7 Bandwidth(Kbit/sec):  0
        Setup-Priority          :  7           Hold-Priority     :  7
        --------------------------------
                    FRR Information
        --------------------------------
        Primary LSP Info
        TE Attribute Flag       :  0x63        Protected Flag    :  0x1
        Bypass In Use           :  In Use
        Bypass Tunnel Id        :  19
        BypassTunnel            :  Tunnel Index[Tunnel2], InnerLabel[1042]
        Bypass LSP ID           :  2           FrrNextHop        :  172.5.1.2
        ReferAutoBypassHandle   :  -
        FrrPrevTunnelTableIndex :  -           FrrNextTunnelTableIndex:  -
        Bypass Attribute(Not configured)
        Setup Priority          :  -           Hold Priority     :  -
        HopLimit                :  -           Bandwidth         :  -
        IncludeAnyGroup         :  -           ExcludeAnyGroup   :  -
        IncludeAllGroup         :  -
        Bypass Unbound Bandwidth Info(Kbit/sec)
        CT0 Unbound Bandwidth   :  -           CT1 Unbound Bandwidth:  -
        CT2 Unbound Bandwidth   :  -           CT3 Unbound Bandwidth:  -
        CT4 Unbound Bandwidth   :  -           CT5 Unbound Bandwidth:  -
        CT6 Unbound Bandwidth   :  -           CT7 Unbound Bandwidth:  -
        --------------------------------
                   BFD Information
        --------------------------------
        NextSessionTunnelIndex  :  -           PrevSessionTunnelIndex:  -
        NextLspId               :  -           PrevLspId         :  -

    在LSRB执行命令display mpls rsvp-te statistics global查看对摘要刷新的统计信息。

    [LSRB] display mpls rsvp-te statistics global
     LSR ID: 2.2.2.9                      LSP Count: 2                              
     PSB Count: 2                         RSB Count: 2                              
     RFSB Count: 1                                                                  
                                                                                    
    Total Statistics Information:                                                   
     PSB CleanupTimeOutCounter: 0         RSB CleanupTimeOutCounter: 0              
     SendPacketCounter: 122707            RecPacketCounter: 127580                  
     SendCreatePathCounter: 27            RecCreatePathCounter: 304                 
     SendRefreshPathCounter: 62220        RecRefreshPathCounter: 62122              
     SendCreateResvCounter: 22            RecCreateResvCounter: 32                  
     SendRefreshResvCounter: 60111        RecRefreshResvCounter: 64803              
     SendResvConfCounter: 0               RecResvConfCounter: 0                     
     SendHelloCounter: 0                  RecHelloCounter: 0                        
     SendAckCounter: 0                    RecAckCounter: 0                          
     SendPathErrCounter: 287              RecPathErrCounter: 0                      
     SendResvErrCounter: 0                RecResvErrCounter: 0                      
     SendPathTearCounter: 11              RecPathTearCounter: 8                     
     SendResvTearCounter: 2               RecResvTearCounter: 0                     
     SendSrefreshCounter: 13              RecSrefreshCounter: 14                    
     SendAckMsgCounter: 14                RecAckMsgCounter: 13                      
     SendChallengeMsgCounter: 0           RecChallengeMsgCounter: 0                 
     SendResponseMsgCounter: 0            RecResponseMsgCounter: 0                  
     SendErrMsgCounter: 0                 RecErrMsgCounter: 0                       
     SendRecoveryPathMsgCounter: 0        RecRecoveryPathMsgCounter: 0              
     SendGRPathMsgCounter: 0              RecGRPathMsgCounter: 0                    
     ResourceReqFaultCounter: 0           RecGRPathMsgFromLSPMCounter: 0            
     Bfd neighbor count: 2                Bfd session count: 0                      

    由于LSRB和LSRC上配置了全局使能的摘要刷新,所以当主隧道失效后,LSRB和LSRC两台设备上的RSVP摘要刷新功能依然可以通过其他接口正常工作。

配置文件

  • LSRA的配置文件

    #
     sysname LSRA
    #
    vlan batch 100
    #
    mpls lsr-id 1.1.1.9
    mpls
     mpls te
     mpls rsvp-te
     mpls te cspf
    #
    explicit-path pri-path
     next hop 172.1.1.2
     next hop 172.2.1.2
     next hop 172.3.1.2
     next hop 4.4.4.9
    #
    isis 1
     is-level level-2
     cost-style wide
     network-entity 00.0005.0000.0000.0001.00
     traffic-eng level-2
    #
    interface Vlanif100
     ip address 172.1.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface LoopBack1
     ip address 1.1.1.9 255.255.255.255
     isis enable 1
    #
    interface Tunnel1
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 4.4.4.9
     mpls te tunnel-id 100
     mpls te record-route label
     mpls te path explicit-path pri-path
     mpls te fast-reroute
     mpls te commit
    #
    return
  • LSRB的配置文件

    #
     sysname LSRB
    #
    vlan batch 100 200 400
    #
    mpls lsr-id 2.2.2.9
    mpls
     mpls te
     mpls te timer fast-reroute 120
     mpls rsvp-te
     mpls rsvp-te srefresh
     mpls te cspf
    #
    explicit-path by-path
     next hop 172.4.1.2
     next hop 172.5.1.2
     next hop 3.3.3.9
    #
    isis 1
     is-level level-2
     cost-style wide
     network-entity 00.0005.0000.0000.0002.00
     traffic-eng level-2
    #
    interface Vlanif100
     ip address 172.1.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface Vlanif200
     ip address 172.2.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface Vlanif400
     ip address 172.4.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 100
    # 
    interface GigabitEthernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 200
    #
    interface GigabitEthernet3/0/0
     port link-type trunk
     port trunk allow-pass vlan 400
    #
    interface LoopBack1
     ip address 2.2.2.9 255.255.255.255
     isis enable 1
    #
    interface Tunnel2
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 3.3.3.9
     mpls te tunnel-id 300
     mpls te record-route
     mpls te path explicit-path by-path
     mpls te bypass-tunnel
     mpls te protected-interface Vlanif200
     mpls te commit
    #
    return
  • LSRC的配置文件

    #
     sysname LSRC
    #
    vlan batch 200 300 500
    #
    mpls lsr-id 3.3.3.9
    mpls
     mpls te
     mpls rsvp-te
     mpls rsvp-te srefresh
    #
    isis 1
     is-level level-2
     cost-style wide
     network-entity 00.0005.0000.0000.0003.00
     traffic-eng level-2
    #
    interface Vlanif200
     ip address 172.2.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface Vlanif300
     ip address 172.3.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface Vlanif500
     ip address 172.5.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 200
    #
    interface GigabitEthernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 300
    #
    interface GigabitEthernet3/0/0
     port link-type trunk
     port trunk allow-pass vlan 500
    #
    interface LoopBack1
     ip address 3.3.3.9 255.255.255.255
     isis enable 1
    #
    return
  • LSRD的配置文件

    #
     sysname LSRD
    #
    vlan batch 300
    #
    mpls lsr-id 4.4.4.9
    mpls
     mpls te
     mpls rsvp-te
    #
    isis 1
     is-level level-2
     cost-style wide
     network-entity 00.0005.0000.0000.0004.00
     traffic-eng level-2
    #
    interface Vlanif300
     ip address 172.3.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 300
    #
    interface LoopBack1
     ip address 4.4.4.9 255.255.255.255
     isis enable 1
    #
    return
  • LSRE的配置文件

    #
     sysname LSRE
    #
    vlan batch 400 500
    #
    mpls lsr-id 5.5.5.9
    mpls
     mpls te
     mpls rsvp-te
    #
    isis 1
     is-level level-2
     cost-style wide
     network-entity 00.0005.0000.0000.0005.00
     traffic-eng level-2
    #
    interface Vlanif400
     ip address 172.4.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface Vlanif500
     ip address 172.5.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls te
     mpls rsvp-te
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 400
    #
    interface GigabitEthernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 500
    #
    interface LoopBack1
     ip address 5.5.5.9 255.255.255.255
     isis enable 1
    #
    return
翻译
下载文档
更新时间:2019-08-20

文档编号:EDOC1000141521

浏览量:8156

下载量:343

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页