Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
OSPF User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Application-Specific Link Attribute on an OSPF Interface

date_range 22-Nov-23

Starting in Junos OS and Junos OS Evolved Release 22.2R1, you can advertise different te-attributes such as te-metric, delay-metric, or admin-groups for RSVP and flexible algorithms on the same link. This is done using flexible algorithm specific application-specific link attribute as defined in RFC 8920.

To configure application-specific link attribute based flexible algorithm on an OSPF Interface:

  1. Create an OSPF area.
    content_copy zoom_out_map
    [edit protocols]
    user@host#set protocols ospf area area-id

    For example:

    content_copy zoom_out_map
    [edit protocols]
    user@host#set protocols ospf area 0.0.0.0
  2. Specify the interface.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0]
    user@host#set interface interface-name

    For example:

    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0]
    user@host#set interface ge-0/0/0.0
  3. Configure application-specific link attribute on the OSPF interface of the device.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0]
    user@host#set application-specific
  4. Specify the attribute group.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific]
    user@host#set attribute-group name

    For example:

    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific]
    user@host#set attribute-group asla
  5. Configure flexible algorithm specific te-attributes such as te-metric, delay-metric, and admin-groups. Specify the te-metric for the attribute group. The te-metric indicates the metric type based on which OSPFv2 calculates the path.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla]
    user@host#set te-metric

    For example:

    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific]
    user@host#set 15
  6. Specify the admin-group for the attribute group.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla]
    user@host#set admin-group

    For example:

    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific]
    user@host#set green
  7. Specify delay-metric for the attribute group.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla]
    user@host#set delay-metric

    For example:

    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific]
    user@host#set 123123
  8. In case delay-metric is not configured, specify advertise-interface-delay to fetch the delay values from the interface configuration hierarchy, that is legacy delay values.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla]
    user@host#set advertise-interface-delay

    For example:

    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific]
    user@host#set 123125
    Note:

    The following configuration can be committed only if all of the following criteria match:

    • An application is associated with the attribute group.

    • Delay-metric is not configured in the hierarchy.

    • Interface level delay configurations are present.

  9. Specify the application for the attribute group. In the current implementation, only flexible algorithm can be configured as an application. An attribute group can have more than one applications associated with it and it equates to a single application-specific link attribute with the application bits set in the standard application identifier bit mask field of the application-specific link attribute sub.
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla]
    user@host#set application aplication-name
    content_copy zoom_out_map
    [edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla]
    user@host#set application flex-algorithm
  10. Enter commit from the configuration mode.
  11. Specify strict-asla-based-flex-algorithm to mandate that flexible algorithm path computations use only the links which advertise relevant te-attributes through application-specific link attribute.
    content_copy zoom_out_map
    [edit protocols ospf source-packet-routing]
    user@host#set strict-asla-based-flex-algorithm
  12. Enter commit from the configuration mode.

    To verify your configuration results, use the show protocols operational command.

    content_copy zoom_out_map
    ospf {
              area 0.0.0.0
                 interface ge-0/0/0.0 {
                        application-specific {
                              attribute-group asla {
                                          te-metric 15;
                                          admin-group green;
                                           delay-metric 123123;
                                           advertise-interface-delay;   
                                           application flex-algorithm;
    
                               }
                        }
                }
              source-packet-routing {
              strict-asla-based-flex-algorithm;
          }
    }
     

    The Junos OS and Junos OS Evolved implementation supports application-specific link attribute subTLV to comply with RFC 8920. The application-specific link attribute sub-TLV is a sub-TLV of the OSPFv2 extended Link TLV as defined in RFC 7684.

    To verify the presence of application-specific link attribute sub-TLVs in the OSPF database use the show ospf database extensive operational command.

    content_copy zoom_out_map
    user@host> show ospf database advertising-router self extensive lsa-id 10.0.0.2
    content_copy zoom_out_map
    OSPF database, Area 0.0.0.0
     Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
    OpaqArea*10.0.0.2          100.100.100.100  0x80000007   665  0x22 0x649d 104
    Opaque LSA
      Extended Link (1), length 80:
        Link Type (1), length 1:
         1
         Link Id (2), length 4:
         10.1.1.1
         Link Data (3), length 4:
         10.21.1.1
        Adjacency Sid (2), length 7:
            Flags (1), length 1:
              0x60
            MT ID (2), length 1:
               0
            Weight (3), length 1:
               0
            Label (4), length 3:
              17
        Application Specific Link Attribute (10), length 52:
            SABM Length (1), length 1:
              4
            UDABM Length (2), length 1:
              0
            SABM (3), length 4:
              0x10
            UDABM (4), length 0:
              0x0
        TEMetric (5), length 4:
          10
        UnidirecLinkDelay (27), length 4:
          123
        MinMaxUnidirecLinkDelay (28), length 8:
          Min DM: 123, Max DM: 123
        UnidirecLinkDelayVar (29), length 4:
          0
        Color (9), length 4:
          2
      Gen timer 00:34:55
      Aging timer 00:48:55
      Installed 00:11:05 ago, expires in 00:48:55, sent 00:11:05 ago
      Last changed 00:11:05 ago, Change count: 6, Ours, TE Link ID: 0
    

    The output displays application-specific link attribute sub-TLV fields and attributes.

footer-navigation