Class-Based Tunnel Selection

I am able to get the tunnels up and running. I have two CE routers connected to the PE on two separate incoming interfaces. I set the EXP values to 1 and 2 respectively and configured two tunnels one for each EXP value. But all traffic from CEs is still routed over only one Tunnel. How do I get to separate them completely?

 

 

Comments

  • join them into master Tunnel bundle.

  • Man do you have an example configuration for configuring bundles? Those on cisco's site are not very clear and I keep getting this output:


    R3(config-if)#tun mpls traff exp-bundle member tunnel 3

    %Error: Member is already a master


  •  

    Here's an example for you:

     

    interface Tunnel0
     ip unnumbered Loopback0
     tunnel mode mpls traffic-eng
     tunnel destination 10.10.10.3
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng exp 4
    !
    interface Tunnel1
     ip unnumbered Loopback0
     tunnel mode mpls traffic-eng
     tunnel destination 10.10.10.3
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng exp default
    !
    interface Tunnel10
     ip unnumbered Loopback0
     tunnel mode mpls traffic-eng
     tunnel destination 10.10.10.3
     tunnel mpls traffic-eng autoroute announce
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng exp-bundle master
     tunnel mpls traffic-eng exp-bundle member Tunnel0
     tunnel mpls traffic-eng exp-bundle member Tunnel1

    R2#sh mpls traffic-eng  exp

    Destination: 10.10.10.3

       Master: Tunnel10          Status:  up

       Members       Status               Conf Exp                  Actual Exp

       Tunnel0       up  (Active)         4                         4
       Tunnel1       up  (Active)         Default                   0 1 2 3 5 6 7

    R2#sh mpls forwarding-table
    Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
    Label      Label      or Tunnel Id     Switched      interface
    16    [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
    17         No Label   172.10.10.1/32[V]  
                                           0             Fa1/0      172.10.12.1
    18         No Label   172.10.12.0/24[V]  
                                           152646        aggregate/ABC

    [T]     Forwarding through a LSP tunnel.
            View additional labelling info with the 'detail' option

    Here's the interface to CE device:

    R2#sh run int fa1/0
    Building configuration...

    Current configuration : 119 bytes
    !
    interface FastEthernet1/0

     description CE_R1

     ip vrf forwarding ABC
     ip address 172.10.12.2 255.255.255.0
     speed auto
     duplex auto

     

     

    Now from CE:

    R1#ping 172.10.10.3 repeat 100 timeout  0

    Type escape sequence to abort.
    Sending 100, 100-byte ICMP Echos to 172.10.10.3, timeout is 0 seconds:
    ......................................................................
    ..............................
    Success rate is 0 percent (0/100)
    R1#ping
    Protocol [ip]:
    Target IP address: 172.10.10.3
    Repeat count [5]: 200
    Datagram size [100]:
    Timeout in seconds [2]: 0
    Extended commands [n]: y
    Source address or interface:
    Type of service [0]: 128
    Set DF bit in IP header? [no]:
    Validate reply data? [no]:
    Data pattern [0xABCD]:
    Loose, Strict, Record, Timestamp, Verbose[none]:
    Sweep range of sizes [n]:
    Type escape sequence to abort.
    Sending 200, 100-byte ICMP Echos to 172.10.10.3, timeout is 0 seconds:
    ......................................................................
    ......................................................................
    ............................................................
    Success rate is 0 percent (0/200)

     

    ON R2:

    R2#sh int tu1 | incl (Tunnel|packets)
    Tunnel1 is up, line protocol is up
      Hardware is Tunnel
      Tunnel source 10.10.10.2, destination 10.10.10.3
      Tunnel protocol/transport Label Switching
      Tunnel transmit bandwidth 8000 (kbps)
      Tunnel receive bandwidth 8000 (kbps)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         0 packets input, 0 bytes, 0 no buffer
         110 packets output, 12477 bytes, 0 underruns
    R2#sh int tu0 | incl (Tunnel|packets)
    Tunnel0 is up, line protocol is up
      Hardware is Tunnel
      Tunnel source 10.10.10.2, destination 10.10.10.3
      Tunnel protocol/transport Label Switching
      Tunnel transmit bandwidth 8000 (kbps)
      Tunnel receive bandwidth 8000 (kbps)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         0 packets input, 0 bytes, 0 no buffer
         200 packets output, 23600 bytes, 0 underruns

     

    On R2 it's also possible to force all traffic go into Tu0 for example:

    R2# sh run int fa1/0
    Building configuration...

    Current configuration : 145 bytes
    !
    interface FastEthernet1/0
     ip vrf forwarding ABC
     ip address 172.10.12.2 255.255.255.0
     speed auto
     duplex auto
     service-policy input xxx

    policy-map xxx
      class class-default
       set mpls experimental imposition 4

     

     

    as I remeber without configuring master bundle only locally generated traffic was going into proper tunnel.

     

  • Fantastic. Let me try this out. Thanks

  • Perfect!! it worked. Thanks

    On 8 July 2011 20:25, Lenin <[email protected]> wrote:

     

    Here's an example for you:

     

    interface Tunnel0
     ip unnumbered Loopback0
     tunnel mode mpls traffic-eng
     tunnel destination 10.10.10.3
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng exp 4
    !
    interface Tunnel1

     ip unnumbered Loopback0
     tunnel mode mpls traffic-eng
     tunnel destination 10.10.10.3
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng exp default
    !
    interface Tunnel10
     ip unnumbered Loopback0

     tunnel mode mpls traffic-eng
     tunnel destination 10.10.10.3
     tunnel mpls traffic-eng autoroute announce
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng exp-bundle master
     tunnel mpls traffic-eng exp-bundle member Tunnel0

     tunnel mpls traffic-eng exp-bundle member Tunnel1

    R2#sh mpls traffic-eng  exp

    Destination: 10.10.10.3

       Master: Tunnel10          Status:  up

       Members       Status               Conf Exp                  Actual Exp

       Tunnel0       up  (Active)         4                         4

       Tunnel1       up  (Active)         Default                   0 1 2 3 5 6 7

    R2#sh mpls forwarding-table
    Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop
    Label      Label      or Tunnel Id     Switched      interface
    16    [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point

          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point

          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point

          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point

          [T]  Pop Label  10.10.10.3/32    0             Tu10       point2point
    17         No Label   172.10.10.1/32[V]  

                                           0             Fa1/0      172.10.12.1
    18         No Label   172.10.12.0/24[V]  
                                           152646        aggregate/ABC


    [T]     Forwarding through a LSP tunnel.
            View additional labelling info with the 'detail' option

    Here's the interface to CE device:

    R2#sh run int fa1/0
    Building configuration...

    Current configuration : 119 bytes
    !
    interface FastEthernet1/0

     description CE_R1

     ip vrf forwarding ABC
     ip address 172.10.12.2 255.255.255.0
     speed auto
     duplex auto

     

     

    Now from CE:

    R1#ping 172.10.10.3 repeat 100 timeout  0

    Type escape sequence to abort.
    Sending 100, 100-byte ICMP Echos to 172.10.10.3, timeout is 0 seconds:
    ......................................................................

    ..............................
    Success rate is 0 percent (0/100)
    R1#ping
    Protocol Paradise:
    Target IP address: 172.10.10.3
    Repeat count [5]: 200
    Datagram size [100]:
    Timeout in seconds [2]: 0

    Extended commands : y
    Source address or interface:
    Type of service [0]: 128
    Set DF bit in IP header? [no]:
    Validate reply data? [no]:
    Data pattern [0xABCD]:
    Loose, Strict, Record, Timestamp, Verbose[none]:

    Sweep range of sizes :
    Type escape sequence to abort.
    Sending 200, 100-byte ICMP Echos to 172.10.10.3, timeout is 0 seconds:
    ......................................................................
    ......................................................................

    ............................................................
    Success rate is 0 percent (0/200)

     

    ON R2:

    R2#sh int tu1 | incl (Tunnel|packets)
    Tunnel1 is up, line protocol is up
      Hardware is Tunnel
      Tunnel source 10.10.10.2, destination 10.10.10.3
      Tunnel protocol/transport Label Switching
      Tunnel transmit bandwidth 8000 (kbps)

      Tunnel receive bandwidth 8000 (kbps)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         0 packets input, 0 bytes, 0 no buffer
         110 packets output, 12477 bytes, 0 underruns

    R2#sh int tu0 | incl (Tunnel|packets)
    Tunnel0 is up, line protocol is up
      Hardware is Tunnel
      Tunnel source 10.10.10.2, destination 10.10.10.3
      Tunnel protocol/transport Label Switching
      Tunnel transmit bandwidth 8000 (kbps)

      Tunnel receive bandwidth 8000 (kbps)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         0 packets input, 0 bytes, 0 no buffer
         200 packets output, 23600 bytes, 0 underruns

     

    On R2 it's also possible to force all traffic go into Tu0 for example:

    R2# sh run int fa1/0
    Building configuration...

    Current configuration : 145 bytes
    !
    interface FastEthernet1/0
     ip vrf forwarding ABC
     ip address 172.10.12.2 255.255.255.0
     speed auto
     duplex auto

     service-policy input xxx

    policy-map xxx
      class class-default
       set mpls experimental imposition 4

     

     

    as I remeber without configuring master bundle only locally generated traffic was going into proper tunnel.

     





    INE - The Industry Leader in CCIE Preparation

    http://www.INE.com



    Subscription information may be found at:

    http://www.ieoc.com/forums/ForumSubscriptions.aspx

  • Now if were to do this in IOS XR, i am under the impression that we'll have use policy-class command under the tunnel mode which (pls correct me if i am wrong) is equivlent to mpls traffic-engineering exp X

    how do we then create a master bundle in IOS XR?

  • Now if were to do this in IOS XR, i am under the impression that we'll have use policy-class command under the tunnel mode which (pls correct me if i am wrong) is equivlent to mpls traffic-engineering exp X

    how do we then create a master bundle in IOS XR?

     

    I had a chance to test this some time ago. No master bundle required for XR.

    You create several tunnels with the same destination and put policy-class 1 - 7 

    with desired value undear each of them.

    Here're some discovered differences:

     

    1) with MQC on ingress interface I could select any tunnel i want. Looks like that's the feature called PBTS Dynamic Tunnel Selection by Cisco.

    policy-map xxx
      class class-default
       set mpls experimental imposition 4

    As i remember "set ip precendence" worked as well.

    2) Dynamically (like in CBTS with master bundle) , when packets are pre-marked by CE for example , it didn't work.

     

     

     

     

     

     

Sign In or Register to comment.