OSPFインターフェイスでのアプリケーション固有のリンク属性の設定
同じリンク上で、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-metricを指定します。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 フィールドと属性が表示されます。
関連ドキュメント
変更履歴テーブル
サポートされる機能は、使用しているプラットフォームとリリースによって決まります。 機能エクスプローラー を使用して、機能がお使いのプラットフォームでサポートされているかどうかを確認します。
リリース
説明
22.2R1
Junos OSおよびJunos OS Evolvedリリース22.2R1以降、同じリンクでRSVPやフレキシブルアルゴリズム用にte-metric、delay-metric、admin-groupsなど、異なるte属性をアドバタイズできます。これは、RFC 8920で定義されている柔軟なアルゴリズム固有のアプリケーション固有のリンク属性を使用して行われます。