OSPFインターフェイスでのアプリケーション固有のリンク属性の設定
Junos OSおよびJunos OS Evolvedリリース22.2R1以降、同じリンク上でRSVPおよび柔軟なアルゴリズム用に、te-metric、delay-metric、admin-groupsなどの異なるte属性をアドバタイズできます。これは、RFC 8920 で定義されている柔軟なアルゴリズム固有のアプリケーション固有のリンク属性を使用して行われます。
OSPFインターフェイスでアプリケーション固有のリンク属性ベースの柔軟なアルゴリズムを設定するには:
- OSPFエリアを作成します。
[edit protocols] user@host#set protocols ospf area area-id
例えば:
[edit protocols] user@host#set protocols ospf area 0.0.0.0
- インターフェイスを指定します。
[edit protocols ospf area 0.0.0.0] user@host#set interface interface-name
例えば:
[edit protocols ospf area 0.0.0.0] user@host#set interface ge-0/0/0.0
- デバイスのOSPFインターフェイスで、アプリケーション固有のリンク属性を設定します。
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0] user@host#set application-specific
- 属性グループを指定します。
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific] user@host#set attribute-group name
例えば:
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific] user@host#set attribute-group asla
- te-metric、delay-metric、admin-groupsなど、柔軟なアルゴリズム固有のte属性を設定します。アトリビュート グループの te メトリックを指定します。te-metric は、OSPFv2 がパスを計算する基準となるメトリック タイプを示しています。
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla] user@host#set te-metric
例えば:
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific] user@host#set 15
- 属性グループの admin-group を指定します。
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla] user@host#set admin-group
例えば:
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific] user@host#set green
- 属性グループの delay-metric を指定します。
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific attribute-group asla] user@host#set delay-metric
例えば:
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific] user@host#set 123123
- delay-metricが設定されていない場合、advertise-interface-delayを指定して、インターフェイス設定階層から遅延値、つまり従来の遅延値を取得します。
[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
例えば:
[edit protocols ospf area 0.0.0.0 interface ge-0/0/0.0 application-specific] user@host#set 123125
手記:以下の設定は、以下の条件がすべて一致する場合のみコミットできます。
-
アプリケーションは、属性グループに関連付けられています。
-
遅延メトリックは階層で設定されていません。
-
インターフェイス レベルの遅延設定があります。
-
- 属性グループのアプリケーションを指定します。現在の実装では、柔軟なアルゴリズムのみをアプリケーションとして構成できます。属性グループには、複数のアプリケーションを関連付けることができ、アプリケーション固有のリンク属性サブの標準アプリケーション識別ビット・マスク・フィールドにアプリケーション・ビットが設定された単一のアプリケーション固有のリンク属性に相当します。
[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
[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
- 設定モードから
commit
を入力します。 - strict-asla-based-flex-algorithmを指定して、柔軟なアルゴリズムパス計算で、アプリケーション固有のリンク属性を介して関連するte属性をアドバタイズするリンクのみを使用することを義務付けます。
[edit protocols ospf source-packet-routing] user@host#set strict-asla-based-flex-algorithm
- 設定モードから
commit
を入力します。設定結果を検証するには、
show protocols
運用コマンドを使用します。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; } }
Junos OSおよびJunos OS Evolvedの実装では、RFC 8920に準拠するアプリケーション固有のリンク属性subTLVがサポートされています。アプリケーション固有のリンク属性サブTLVは、RFC 7684で定義されたOSPFv2拡張リンクTLVのサブTLVです。
OSPFデータベース内のアプリケーション固有のリンク属性サブTLVの存在を確認するには、
show ospf database extensive
運用コマンドを使用します。user@host> show ospf database advertising-router self extensive lsa-id 10.0.0.2
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
出力には、アプリケーション固有のリンク属性サブTLVフィールドと属性が表示されます。