WALKTHROUGH: OSPF Traffic Engineering Database

So you're stuck or don't trust your work. Here is the cheat/check page. Note that this is all done from the perspective of J2300-1. Adapt to other routers as needed.

  1. Turn on support for traffic engineering for your routers.
  2. admin@J2300-1> edit 
    Entering configuration mode
    
    [edit]
    admin@J2300-1# set protocols ospf traffic-engineering 
    
    [edit]
    admin@J2300-1# commit 
    commit complete
    
    [edit]
    admin@J2300-1# 
    
  3. How many Opaque LSAs with area flooding scope exist?
  4. admin@J2300-1> show ospf database opaque-area summary 
    Area 0.0.0.0:
       6 OpaqArea LSAs
    Area 0.0.0.1:
       2 OpaqArea LSAs
    Area 30.30.30.30:
       6 OpaqArea LSAs
    Area 101.101.101.101:
       6 OpaqArea LSAs
    Area 102.102.102.102:
       6 OpaqArea LSAs
    
    admin@J2300-1> 
    [edit]
    
  5. What kind of TLV is being carried by the Opaque LSAs your router is originating?
  6. admin@J2300-1> show ospf database advertising-router 10.0.0.1 opaque-area detail area 0                 
    
        OSPF database, Area 0.0.0.0
     Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len 
    OpaqArea*1.0.0.1          10.0.0.1         0x80000006   424  0x22 0x1202  28
      Area-opaque TE LSA
      RtrAddr (1), length 4: 10.0.0.1
    
    admin@J2300-1> 
    
  7. Activate MPLS and RSVP on your backbone area links.
  8. admin@J2300-1> edit 
    Entering configuration mode
    
    [edit]
    admin@J2300-1# set protocols mpls interface fe-0/0/1.12 
    
    [edit]
    admin@J2300-1# set protocols mpls interface fe-0/0/1.13    
    
    [edit]
    admin@J2300-1# set protocols rsvp interface fe-0/0/1.13    
    
    [edit]
    admin@J2300-1# set protocols rsvp interface fe-0/0/1.12    
    
    [edit]
    admin@J2300-1# set interfaces fe-0/0/1.12 family mpls 
    
    [edit]
    admin@J2300-1# set interfaces fe-0/0/1.13 family mpls    
    
    [edit]
    admin@J2300-1# commit 
    commit complete
    
    [edit]
    admin@J2300-1# run show mpls interface 
    Interface        State       Administrative groups (x: extended)
    fe-0/0/1.12      Up         
    fe-0/0/1.13      Up         
    
    [edit]
    admin@J2300-1# run show rsvp interface 
    RSVP interface: 2 active
                      Active Subscr- Static      Available   Reserved    Highwater
    Interface   State resv   iption  BW          BW          BW          mark
    fe-0/0/1.12 Up         0   100%  10Gbps      10Gbps      0bps        0bps       
    fe-0/0/1.13 Up         0   100%  10Mbps      10Mbps      0bps        0bps       
    
    [edit]
    admin@J2300-1# 
    
  9. How many Opaque LSAs with area flooding scope exist?
  10. admin@J2300-1> show ospf database opaque-area summary 
    Area 0.0.0.0:
       18 OpaqArea LSAs
    Area 0.0.0.1:
       4 OpaqArea LSAs
    Area 30.30.30.30:
       6 OpaqArea LSAs
    Area 101.101.101.101:
       6 OpaqArea LSAs
    Area 102.102.102.102:
       6 OpaqArea LSAs
    
    admin@J2300-1> 
    
  11. Examine one of the new LSAs that your router is originating and determine the TLV type.
  12. admin@J2300-1>  show ospf database opaque-area advertising-router 10.0.0.1 lsa-id 1.0.0.3 detail area 0          
    
        OSPF database, Area 0.0.0.0
     Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len 
    OpaqArea*1.0.0.3          10.0.0.1         0x80000001   899  0x22 0xed98 136
      Area-opaque TE LSA
      Link (2), length 112:
        Linktype (1), length 1:
          1
        LinkID (2), length 4:
          10.0.0.2
        LocIfAdr (3), length 4:
          10.0.12.1
        RemIfAdr (4), length 4:
          10.0.12.2
        TEMetric (5), length 4:
          5
        MaxBW (6), length 4:
          10Gbps
        MaxRsvBW (7), length 4:
          10Gbps
        UnRsvBW (8), length 32:
            Priority 0, 10Gbps
            Priority 1, 10Gbps
            Priority 2, 10Gbps              
            Priority 3, 10Gbps
            Priority 4, 10Gbps
            Priority 5, 10Gbps
            Priority 6, 10Gbps
            Priority 7, 10Gbps
        LinkLocalRemoteIdentifier (11), length 8:
          Local 68, Remote 0
        Color (9), length 4:
          0
    
    admin@J2300-1> 
    

    TLV type is 2, a Link TLV.

  13. Examine the TED on your router.
  14. admin@J2300-1> show ted database                                              
    TED database: 0 ISIS nodes 15 INET nodes
    ID                            Type Age(s) LnkIn LnkOut Protocol
    10.0.0.1                      Rtr    1010     5      2 OSPF(0.0.0.0)
        To: 10.0.0.2, Local: 10.0.12.1, Remote: 10.0.12.2
          Local interface index: 68, Remote interface index: 0
        To: 10.0.0.3, Local: 10.0.13.1, Remote: 10.0.13.3
          Local interface index: 69, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(0.0.0.1)
        To: 10.0.0.3, Local: 10.0.13.1, Remote: 10.0.13.3
          Local interface index: 69, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(30.30.30.30)
                                                           OSPF(101.101.101.101)
    10.1.0.1                      ---   35954     1      0 OSPF(102.102.102.102)
    10.0.0.2                      Rtr   35949     5      0 OSPF(0.0.0.0)
                                                           OSPF(30.30.30.30)
                                                           OSPF(101.101.101.101)
    10.1.0.2                      ---   35954     1      0 OSPF(102.102.102.102)
    10.0.0.3                      Rtr     612     7      3 OSPF(0.0.0.0)
        To: 10.0.0.1, Local: 10.0.13.3, Remote: 10.0.13.1
          Local interface index: 67, Remote interface index: 0
        To: 10.0.0.4, Local: 10.0.34.3, Remote: 10.0.34.4
          Local interface index: 68, Remote interface index: 0
        To: 10.0.0.5, Local: 10.0.35.3, Remote: 10.0.35.5
          Local interface index: 69, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(0.0.0.1)
        To: 10.0.0.1, Local: 10.0.13.3, Remote: 10.0.13.1
          Local interface index: 67, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(30.30.30.30)
                                                           OSPF(101.101.101.101)
    10.0.0.4                      Rtr     227     5      3 OSPF(102.102.102.102)
                                                           OSPF(0.0.0.0)
        To: 10.0.0.2, Local: 10.0.24.4, Remote: 10.0.24.2
          Local interface index: 68, Remote interface index: 0
        To: 10.0.0.6, Local: 10.0.46.4, Remote: 10.0.46.6
          Local interface index: 70, Remote interface index: 0
        To: 10.0.0.3, Local: 10.0.34.4, Remote: 10.0.34.3
          Local interface index: 69, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(30.30.30.30)
                                                           OSPF(101.101.101.101)
    10.0.0.5                      Rtr     227     5      2 OSPF(102.102.102.102)
                                                           OSPF(0.0.0.0)
        To: 10.0.0.6, Local: 10.0.56.5, Remote: 10.0.56.6
          Local interface index: 68, Remote interface index: 0
        To: 10.0.0.3, Local: 10.0.35.5, Remote: 10.0.35.3
          Local interface index: 67, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(30.30.30.30)
                                                           OSPF(101.101.101.101)
    10.0.0.6                      Rtr     225     5      2 OSPF(102.102.102.102)
                                                           OSPF(0.0.0.0)
        To: 10.0.0.4, Local: 10.0.46.6, Remote: 10.0.46.4
          Local interface index: 67, Remote interface index: 0
        To: 10.0.0.5, Local: 10.0.56.6, Remote: 10.0.56.5
          Local interface index: 69, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
                                                           OSPF(30.30.30.30)
                                                           OSPF(101.101.101.101)
    10.101.0.10-1                 Net     222     0      7 OSPF(102.102.102.102)
                                                           OSPF(101.101.101.101)
        To: 10.0.0.1, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.2, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.4, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.5, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.6, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.3, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.10.10.10, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
    10.102.0.10-1                 Net     227     0      7 OSPF(102.102.102.102)
        To: 10.0.0.1, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.2, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.4, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.5, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.6, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.3, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.10.10.10, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
    10.10.10.10                   ---   35965     2      0
    10.30.30.30-1                 Net     218     0      7 OSPF(30.30.30.30)
        To: 10.0.0.1, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.2, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.4, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.5, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.6, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.0.0.3, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 99.99.99.99, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
    99.99.99.99                   ---   35960     1      0
    10.1.111.101-1                Net   35954     0      2 OSPF(0.0.0.1)
        To: 10.0.0.1, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.1.0.1, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
    ID                            Type Age(s) LnkIn LnkOut Protocol
    10.1.123.102-1                Net   35954     0      2 OSPF(0.0.0.1)
        To: 10.0.0.3, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
        To: 10.1.0.2, Local: 0.0.0.0, Remote: 0.0.0.0
          Local interface index: 0, Remote interface index: 0
    
    admin@J2300-1> 
    
  15. Set the TE-Metric on your backbone interfaces to 10,000.
  16. admin@J2300-1> edit 
    Entering configuration mode
    
    [edit]
    admin@J2300-1# edit protocols ospf area 0 
    
    [edit protocols ospf area 0.0.0.0]
    admin@J2300-1# set interface fe-0/0/1.12 te-metric 10000 
    
    [edit protocols ospf area 0.0.0.0]
    admin@J2300-1# set interface fe-0/0/1.13 te-metric 10000    
    
    [edit protocols ospf area 0.0.0.0]
    admin@J2300-1# commit 
    commit complete
    
    [edit protocols ospf area 0.0.0.0]
    admin@J2300-1# 
    [edit]
    
  17. Examine the LSA you viewed in detail previously and compare the TE-metric subTLV.
  18. admin@J2300-1> show ospf database opaque-area advertising-router 10.0.0.1 lsa-id 1.0.0.3 detail area 0    
    
        OSPF database, Area 0.0.0.0
     Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len 
    OpaqArea*1.0.0.3          10.0.0.1         0x80000002    39  0x22 0xc989 136
      Area-opaque TE LSA
      Link (2), length 112:
        Linktype (1), length 1:
          1
        LinkID (2), length 4:
          10.0.0.2
        LocIfAdr (3), length 4:
          10.0.12.1
        RemIfAdr (4), length 4:
          10.0.12.2
        TEMetric (5), length 4:
          10000
        MaxBW (6), length 4:
          10Gbps
        MaxRsvBW (7), length 4:
          10Gbps
        UnRsvBW (8), length 32:
            Priority 0, 10Gbps
            Priority 1, 10Gbps
            Priority 2, 10Gbps              
            Priority 3, 10Gbps
            Priority 4, 10Gbps
            Priority 5, 10Gbps
            Priority 6, 10Gbps
            Priority 7, 10Gbps
        LinkLocalRemoteIdentifier (11), length 8:
          Local 68, Remote 0
        Color (9), length 4:
          0
    
    admin@J2300-1> 
    

    Metric was 5 previously (OSPF cost of the link), but is now 10000.