サービスの改善にご協力お願いします。

お客様のご意見をお聞かせください。

アンケートの所要時間はおよそ 2 分です。

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
list Table of Contents

この機械翻訳はお役に立ちましたでしょうか?

starstarstarstarstar
Go to English page
免責事項:

このページは、サードパーティー製機械翻訳ソフトウェアを使用して翻訳されます。質の高い翻訳を提供するために合理的な対応はされていますが、ジュニパーネットワークスがその正確性を保証することはできかねます。この翻訳に含まれる情報の正確性について疑問が生じた場合は、英語版を参照してください. ダウンロード可能なPDF (英語版のみ).

MPLS OAM の設定

date_range 19-Jan-25

OAMのMPLSトランスポートプロファイルの設定

MPLS トランスポート プロファイルの概要

RFC 5654「 MPLSトランスポートプロファイルの要件」では、トランスポートサービスやトランスポートネットワークの運用にMPLSを使用する場合に、運用、管理、保守(OAM)の機能を拡張するMPLSトランスポートプロファイル(MPLS-TP)の要件について説明しています。これらの機能は、疑似配線またはラベルスイッチ パス(LSP)のトラブルシューティングとメンテナンスに役立ちます。

OAMのMPLS-TPメカニズムには、2つの主要コンポーネントが含まれます。

  • 汎用関連チャネルラベル(GAL)—LSPで受信したパケットが関連する制御チャネルまたはコントロールプレーンに属していることをエグレス ラベルスイッチングルーター (LSR)に通知する例外メカニズムを有効にする特別なラベル。

  • 汎用関連チャネルヘッダー(G-Ach)—MPLS ラベルスイッチパス(LSP)に含まれるペイロードのタイプを識別する特別なヘッダーフィールド。G-Ach の形式は、擬似回線に関連付けられた制御チャネル ヘッダーと同じです。

MPLS-TPの詳細については、RFC 5654「 MPLSトランスポートプロファイルの要件」を参照してください。GAL および G-Ach の詳細については、RFC 5586, MPLS Generic Associated Channel を参照してください。

MPLS-TP の Junos OS 実装では、以下の機能がサポートされています。

  • MPLS-TP OAM は、IP カプセル化なしで、GAL と G-Ach を使用してパケットを送受信できます。

  • 1 組のルーター間の 2 つの単方向 RSVP LSP を相互に関連付けて、GAL および G-Ach OAM メッセージのパスをバインドするための関連入札 LSP を作成できます。関連付けられた双方向 LSP に対して、単一の双方向フォワーディング検出(BFD)セッションが確立されます。

例:OAMのMPLSトランスポートプロファイルの設定

この例では、ラベルスイッチド パス(LSP)で OAM GAL および G-Ach メッセージを送受信するための MPLS トランスポート プロファイル(MPLS-TP)を設定する方法を示します。

要件

この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。

  • M シリーズ、MX シリーズ、T シリーズ ルーターの組み合わせが可能な 6 台のデバイス

  • デバイスで Junos OS Release 12.1 以降が実行されている

概要

Junos OS リリース 12.1 以降では、MPLS トランスポート プロファイル(MPLS-TP)の運用、管理、保守(OAM)機能がサポートされています。MPLS-TP では、MPLS をトランスポート サービスおよびトランスポート ネットワーク運用に使用する場合、OAM に新機能が導入されます。これには、OAM メッセージの汎用関連チャネル ラベル (GAL) と汎用関連チャネル ヘッダー (G-Ach) の構成が含まれます。

この例では、IP カプセル化なしで GAL および G-Ach OAM メッセージを送受信する MPLS-TP OAM 機能を設定する方法を示します。さらに、GAL および G-Ach OAM メッセージのパスをバインドするための関連双方向 LSP を作成するために、1 対のルーター間で 2 つの単方向 RSVP ラベルスイッチ パス(LSP)を関連付ける方法も示します。

Junos OS リリース 12.1 以降では、次の MPLS-TP 機能がサポートされています。

  • MPLS-TP OAM機能と、MPLSアプリケーションがIPカプセル化なしでGALとG-Achを使用してパケットを送受信するために必要なインフラストラクチャ。

  • トランスポートLSPにIPカプセル化を使用せずに、GALとG-Achを使用してパケットを送受信するためのLSP-pingおよび双方向フォワーディング検出(BFD)アプリケーション。

  • GAL および G-Ach OAM メッセージのパスをバインドするための、関連付けられた双方向 LSP を作成するための、一対のルーター間の 2 つの単方向 RSVP LSP の相互関連付け。関連する双方向 LSP モデルは、プライマリ パスを関連付ける場合にのみサポートされます。関連する双方向 LSP に対して、単一の BFD セッションが確立されます。

Junos OS リリース 12.1 以降では、次の MPLS-TP 機能はサポートされていません。

  • ポイントツーマルチポイント RSVP LSP と BGP LSP

  • 損失測定と遅延測定

以下の設定ステートメントを使用して、GAL および G-Ach OAM 操作を有効にすることができます。

  • mpls-tp-mode—MPLSネットワーク内のすべてのLSPで、IPカプセル化なしでGALおよびG-Ach OAM操作を有効にするには、 [edit protocols mpls oam] 階層レベルにこのステートメントを含めます。

    content_copy zoom_out_map
    [edit protocols mpls oam]
    mpls-tp-mode;
    

    ネットワーク内の特定の LSP で IP カプセル化なしで GAL および G-Ach OAM 操作を有効にするには、このステートメントを [edit protocols mpls label-switched-path lsp-name oam] 階層レベルに含めます。

    content_copy zoom_out_map
    [edit protocols mpls label-switched-path lsp-name oam]
    mpls-tp-mode;
    
    注:

    Junos OS リリース 16.1 以降、MPLS-TP は、mpls-tp-mode ステートメントの下で、デフォルトの LSPING(0x0008)チャネル タイプに 2 つの追加チャネル タイプをサポートしています。これらの追加のチャネルタイプは、IP/UDPカプセル化の有無にかかわらず、オンデマンド接続検証(CV)を提供します。

    • オンデマンドCV(0x0025):このチャネル タイプは新しい疑似回線チャネル タイプで、IP アドレッシングが使用できないか、非 IP カプセル化が優先される IP/UDP カプセル化なしのオンデマンド CV に使用されます。

    • IPv4(0x0021)—このチャネル タイプは、IP/UDP カプセル化を使用し、IP アドレス指定を使用して他のベンダーのデバイスとの相互運用性サポートを提供します。

    GACH-TLV は、デフォルトの LSPING チャネル タイプとともに使用されます。RFC 7026 に従い、GACH-TLV は 0x0021 および 0x0025 チャネルタイプでは非推奨となっています。

    MPLS-TP のチャネル タイプを設定するには、[edit protocols mpls label-switched-path lsp-name oam mpls-tp-mode] 階層レベルと[edit protocols mpls oam mpls-tp-mode]階層レベルで lsping-channel-type channel-type ステートメントを含めます。

  • associate-lsp lsp-name from from-ip-address—LSPの両端に関連する双方向LSPを設定するには、 [edit protocols mpls label-switched-path lsp-name] 階層レベルにこのステートメントを含めます。

    content_copy zoom_out_map
    [edit protocols mpls label-switched-path lsp-name ]
    associate-lsp lsp-name {
        from from-ip-address;
    }
    

    LSP の from from-ip-address 設定はオプションです。省略した場合は、イングレス LSP 設定の to アドレスから取得されます。

  • transit-lsp-association- このステートメントを [edit protocols mpls]トランジット ルーターで 2 つの LSP を関連付ける階層レベル。

    content_copy zoom_out_map
    [edit protocols mpls]
    transit-lsp-association transit-association-lsp-group-name {
        lsp-name-1 name-of-associated-lsp-1;
        from-1     address-of-associated-lsp-1;
        lsp-name-2 name-of-associated-lsp-2;
        from-2     address-of-associated-lsp-2;
    }
    

    トランジットノード内のLSPの関連付けは、TTLが期限切れになったLSPのpingパケットまたはtracerouteのリターンLSPパスに有効です。

この例では、R0 がイングレス ルーターで、R4 がエグレス ルーターです。R1、R2、R3、R5 はトランジット ルーターです。関連する双方向 LSP は、GAL および G-Ach OAM メッセージを送受信するためにトランジットルーター間で確立されます。

図 1 この例で使用されているトポロジーを示しています。

トポロジー
図 1: MPLS-TP OAM 関連付けられた双方向 LSPMPLS-TP OAM 関連付けられた双方向 LSP

設定

CLIクイック構成
注:

この例では、すべてのデバイスでの設定と、イングレスルーターR0、トランジットルーターR1の設定手順を順を追って示しています。イングレスルーターR0について説明したステップバイステップの手順を、エグレスルーターR4上で繰り返します。他のトランジットルーターR2、R3、およびR5で、トランジットルーターR1のステップバイステップの手順を繰り返します。適切なインターフェイス名、アドレス、およびその他のパラメーターを適切に変更してください。

この例をすばやく設定するには、次のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、[edit]階層レベルのCLIにコマンドをコピー&ペーストしてください。

ルーターR0

content_copy zoom_out_map
set interfaces ge-4/1/1 unit 0 family inet address 10.10.11.1/30
set interfaces ge-4/1/1 unit 0 family iso
set interfaces ge-4/1/1 unit 0 family inet6
set interfaces ge-4/1/1 unit 0 family mpls
set interfaces ge-5/0/0 unit 0 family inet address 10.10.10.1/30
set interfaces ge-5/0/0 unit 0 family iso
set interfaces ge-5/0/0 unit 0 family inet6
set interfaces ge-5/0/0 unit 0 family mpls
set protocols rsvp interface ge-5/0/0.0
set protocols rsvp interface ge-4/1/1.0
set protocols mpls label-switched-path r0-to-r4 to 10.255.8.86
set protocols mpls label-switched-path r0-to-r4 oam mpls-tp-mode
set protocols mpls label-switched-path r0-to-r4 associate-lsp r4-to-r0 from 10.255.8.86
set protocols mpls interface ge-5/0/0.0
set protocols mpls interface ge-4/1/1.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-5/0/0.0
set protocols ospf area 0.0.0.0 interface ge-4/1/1.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive

ルーター R1

content_copy zoom_out_map
set interfaces ge-0/0/5 unit 0 family inet address 10.10.10.2/30
set interfaces ge-0/0/5 unit 0 family iso
set interfaces ge-0/0/5 unit 0 family inet6
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces ge-0/2/2 unit 0 family inet address 10.10.12.2/30
set interfaces ge-0/2/2 unit 0 family iso
set interfaces ge-0/2/2 unit 0 family inet6
set interfaces ge-0/2/2 unit 0 family mpls
set interfaces ge-1/0/2 unit 0 family inet address 10.10.13.2/30
set interfaces ge-1/0/2 unit 0 family iso
set interfaces ge-1/0/2 unit 0 family inet6
set interfaces ge-1/0/2 unit 0 family mpls
set interfaces ge-2/0/2 unit 0 family inet address 10.10.11.2/30
set interfaces ge-2/0/2 unit 0 family iso
set interfaces ge-2/0/2 unit 0 family inet6
set interfaces ge-2/0/2 unit 0 family mpls
set protocols rsvp interface ge-0/2/2.0
set protocols rsvp interface ge-0/0/5.0
set protocols rsvp interface ge-1/0/2.0
set protocols rsvp interface ge-2/0/2.0
set protocols mpls transit-lsp-association trace1 lsp-name-1 r0-to-r4
set protocols mpls transit-lsp-association trace1 from-1 10.255.8.207
set protocols mpls transit-lsp-association trace1 lsp-name-2 r4-to-r0
set protocols mpls transit-lsp-association trace1 from-2 10.255.8.86
set protocols mpls interface ge-0/0/5.0
set protocols mpls interface ge-2/0/2.0
set protocols mpls interface ge-1/0/2.0
set protocols mpls interface ge-0/2/2.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-0/0/5.0
set protocols ospf area 0.0.0.0 interface ge-0/2/2.0 metric 100
set protocols ospf area 0.0.0.0 interface ge-1/0/2.0
set protocols ospf area 0.0.0.0 interface ge-2/0/2.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive

ルーターR2

content_copy zoom_out_map
set interfaces ge-0/2/3 unit 0 family inet address 10.10.13.1/30
set interfaces ge-0/2/3 unit 0 family iso
set interfaces ge-0/2/3 unit 0 family inet6
set interfaces ge-0/2/3 unit 0 family mpls
set interfaces ge-1/3/2 unit 0 family inet address 10.10.14.1/30
set interfaces ge-1/3/2 unit 0 family iso
set interfaces ge-1/3/2 unit 0 family inet6
set interfaces ge-1/3/2 unit 0 family mpls
set interfaces ge-1/3/4 unit 0 family inet address 10.10.15.1/30
set interfaces ge-1/3/4 unit 0 family iso
set interfaces ge-1/3/4 unit 0 family inet6
set interfaces ge-1/3/4 unit 0 family mpls
set protocols rsvp interface ge-0/2/3.0
set protocols rsvp interface ge-1/3/2.0
set protocols rsvp interface ge-1/3/4.0
set protocols mpls transit-lsp-association trace1 lsp-name-1 r0-to-r4
set protocols mpls transit-lsp-association trace1 from-1 10.255.8.207
set protocols mpls transit-lsp-association trace1 lsp-name-2 r4-to-r0
set protocols mpls transit-lsp-association trace1 from-2 10.255.8.86
set protocols mpls interface ge-0/2/3.0
set protocols mpls interface ge-1/3/2.0
set protocols mpls interface ge-1/3/4.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-0/2/3.0
set protocols ospf area 0.0.0.0 interface ge-1/3/2.0
set protocols ospf area 0.0.0.0 interface ge-1/3/4.0 metric 100
set protocols ospf area 0.0.0.0 interface lo0.0 passive

ルータ R3

content_copy zoom_out_map
set interfaces ge-1/2/1 unit 0 family inet address 10.10.16.2/30
set interfaces ge-1/2/1 unit 0 family iso
set interfaces ge-1/2/1 unit 0 family inet6
set interfaces ge-1/2/1 unit 0 family mpls
set interfaces ge-2/0/7 unit 0 family inet address 10.10.17.2/30
set interfaces ge-2/0/7 unit 0 family iso
set interfaces ge-2/0/7 unit 0 family inet6
set interfaces ge-2/0/7 unit 0 family mpls
set interfaces ge-2/2/0 unit 0 family inet address 10.10.14.2/30
set interfaces ge-2/2/0 unit 0 family iso
set interfaces ge-2/2/0 unit 0 family inet6
set interfaces ge-2/2/0 unit 0 family mpls
set protocols rsvp interface ge-2/2/0.0
set protocols rsvp interface ge-1/2/1.0
set protocols rsvp interface ge-2/0/7.0
set protocols mpls transit-lsp-association trace1 lsp-name-1 r0-to-r4
set protocols mpls transit-lsp-association trace1 from-1 10.255.8.207
set protocols mpls transit-lsp-association trace1 lsp-name-2 r4-to-r0
set protocols mpls transit-lsp-association trace1 from-2 10.255.8.86
set protocols mpls interface ge-2/2/0.0
set protocols mpls interface ge-1/2/1.0
set protocols mpls interface ge-2/0/7.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-2/2/0.0
set protocols ospf area 0.0.0.0 interface ge-1/2/1.0
set protocols ospf area 0.0.0.0 interface ge-2/0/7.0 metric 100
set protocols ospf area 0.0.0.0 interface lo0.0 passive

ルータ R4

content_copy zoom_out_map
set interfaces ge-0/0/3 unit 0 family inet address 10.10.16.1/30
set interfaces ge-0/0/3 unit 0 family iso
set interfaces ge-0/0/3 unit 0 family inet6
set interfaces ge-0/0/3 unit 0 family mpls
set protocols rsvp interface ge-0/0/3.0
set protocols mpls label-switched-path r4-to-r0 to 10.255.8.207
set protocols mpls label-switched-path r4-to-r0 oam mpls-tp-mode
set protocols mpls label-switched-path r4-to-r0 associate-lsp r0-to-r4 from 10.255.8.207
set protocols mpls interface ge-0/0/3.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive

1 ルータ R5 1

content_copy zoom_out_map
set interfaces ge-1/2/0 unit 0 family inet address 10.10.15.2/30
set interfaces ge-1/2/0 unit 0 family iso
set interfaces ge-1/2/0 unit 0 family inet6
set interfaces ge-1/2/0 unit 0 family mpls
set interfaces ge-2/0/0 unit 0 family inet address 10.10.12.1/30
set interfaces ge-2/0/0 unit 0 family iso
set interfaces ge-2/0/0 unit 0 family inet6
set interfaces ge-2/0/0 unit 0 family mpls
set interfaces ge-4/0/7 unit 0 family inet address 10.10.17.1/30
set interfaces ge-4/0/7 unit 0 family iso
set interfaces ge-4/0/7 unit 0 family inet6
set interfaces ge-4/0/7 unit 0 family mpls
set protocols rsvp interface ge-2/0/0.0
set protocols rsvp interface ge-1/2/0.0
set protocols rsvp interface ge-4/0/7.0
set protocols mpls transit-lsp-association trace1 lsp-name-1 r0-to-r4
set protocols mpls transit-lsp-association trace1 from-1 10.255.8.207
set protocols mpls transit-lsp-association trace1 lsp-name-2 r4-to-r0
set protocols mpls transit-lsp-association trace1 from-2 10.255.8.86
set protocols mpls interface ge-2/0/0.0
set protocols mpls interface ge-1/2/0.0
set protocols mpls interface ge-4/0/7.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-2/0/0.0 metric 100
set protocols ospf area 0.0.0.0 interface ge-1/2/0.0 metric 100
set protocols ospf area 0.0.0.0 interface ge-4/0/7.0 metric 100
set protocols ospf area 0.0.0.0 interface lo0.0 passive
デバイス R0 の設定
ステップバイステップでの手順

イングレス ルーター R0 を設定するには:

  1. インターフェイスを設定します。

    content_copy zoom_out_map
    [edit interfaces]
    user@R0# set ge-4/1/1 unit 0 family inet address 10.10.11.1/30
    user@R0# set ge-4/1/1 unit 0 family iso
    user@R0# set ge-4/1/1 unit 0 family inet6
    user@R0# set ge-4/1/1 unit 0 family mpls
    user@R0# set ge-5/0/0 unit 0 family inet address 10.10.10.1/30
    user@R0# set ge-5/0/0 unit 0 family iso
    user@R0# set ge-5/0/0 unit 0 family inet6
    user@R0# set ge-5/0/0 unit 0 family mpls
    
  2. インターフェイスに MPLS を設定します。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R0# set interface ge-5/0/0.0
    user@R0# set interface ge-4/1/1.0
    
  3. OSPFなどの内部ゲートウェイプロトコルを設定します。

    content_copy zoom_out_map
    [edit protocols ospf]
    user@R0# set traffic-engineering
    user@R0# set area 0.0.0.0 interface ge-5/0/0.0
    user@R0# set area 0.0.0.0 interface ge-4/1/1.0
    user@R0# set area 0.0.0.0 interface lo0.0 passive
    
  4. RSVP などのシグナリング プロトコルを設定します。

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@R0# set interface ge-5/0/0.0
    user@R0# set interface ge-4/1/1.0
    
  5. LSP を設定します。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R0# set label-switched-path r0-to-r4 to 10.255.8.86
    
  6. LSP で IP カプセル化を行わずに、GAL および G-Ach OAM 操作を有効にします。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R0# set label-switched-path r0-to-r4 oam mpls-tp-mode
    
  7. LSP の両端に、関連する双方向 LSP を設定します。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R0# set label-switched-path r0-to-r4 associate-lsp to-r0 from 10.255.8.86
    
  8. デバイスの設定が完了したら、設定をコミットします。

    content_copy zoom_out_map
    [edit]
    user@R0#  commit
    
結果

show interfaces コマンドと show protocols コマンドを発行して、設定を確認します。

content_copy zoom_out_map
user@R0# show interfaces
ge-4/1/1 {
    unit 0 {
        family inet {
            address 10.10.11.1/30;
        }
        family iso;
        family inet6;
        family mpls;
    }
}
ge-5/0/0 {
    unit 0 {
        family inet {
            address 10.10.10.1/30;
        }
        family iso;
        family inet6;
        family mpls;
    }
}
content_copy zoom_out_map
user@R0# show protocols
rsvp {
    interface ge-5/0/0.0;
    interface ge-4/1/1.0;
}
mpls {
    label-switched-path r0-to-r4 {
        to 10.255.8.86;
        oam mpls-tp-mode;
        associate-lsp r4-to-r0 {
            from 10.255.8.86;
        }
    }
    interface ge-4/1/1.0;
    interface ge-5/0/0.0;
}
ospf {
    traffic-engineering;
    area 0.0.0.0 {
        interface ge-5/0/0.0;
        interface ge-4/1/1.0;
        interface lo0.0 {
            passive;
        }
    }
}
デバイスR1の設定
ステップバイステップでの手順

トランジットルーターR1を設定するには:

  1. インターフェイスを設定します。

    content_copy zoom_out_map
    [edit interfaces]
    user@R1# set ge-0/0/5 unit 0 family inet address 10.10.10.2/30
    user@R1# set ge-0/0/5 unit 0 family iso
    user@R1# set ge-0/0/5 unit 0 family inet6
    user@R1# set ge-0/0/5 unit 0 family mpls
    user@R1# set ge-0/2/2 unit 0 family inet address 10.10.12.2/30
    user@R1# set ge-0/2/2 unit 0 family iso
    user@R1# set ge-0/2/2 unit 0 family inet6
    user@R1# set ge-0/2/2 unit 0 family mpls
    user@R1# set ge-2/0/2 unit 0 family inet address 10.10.11.2/30
    user@R1# set ge-2/0/2 unit 0 family iso
    user@R1# set ge-2/0/2 unit 0 family inet6
    user@R1# set ge-2/0/2 unit 0 family mpls
    user@R1# set ge-1/0/2 unit 0 family inet address 10.10.13.2/30
    user@R1# set ge-1/0/2 unit 0 family iso
    user@R1# set ge-1/0/2 unit 0 family inet6
    user@R1# set ge-1/0/2 unit 0 family mpls
    
  2. インターフェイスに MPLS を設定します。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R1# set interface ge-0/0/5.0
    user@R1# set interface ge-2/0/2.0
    user@R1# set interface ge-1/0/2.0
    user@R1# set interface ge-0/2/2.0
    
  3. OSPFなどの内部ゲートウェイプロトコルを設定します。

    content_copy zoom_out_map
    [edit protocols ospf]
    user@R1# set traffic-engineering
    user@R1# set area 0.0.0.0 interface ge-0/0/5.0
    user@R1# set area 0.0.0.0 interface ge-2/0/2.0
    user@R1# set area 0.0.0.0 interface ge-1/0/2.0
    user@R1# set area 0.0.0.0 interface ge-0/2/2.0 metric 100
    user@R1# set area 0.0.0.0 interface lo0.0 passive
    
  4. RSVP などのシグナリング プロトコルを設定します。

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@R1# set interface ge-0/0/5.0
    user@R1# set interface ge-2/0/2.0
    user@R1# set interface ge-1/0/2.0
    user@R1# set interface ge-0/2/2.0
    
  5. トランジット ルーター上の 2 つの LSP の関連付けを設定します。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@R1# set transit-lsp-association trace1 lsp-name-1 r0-to-r4
    user@R1# set transit-lsp-association trace1 from-1 10.255.8.207
    user@R1# set transit-lsp-association trace1 lsp-name-2 r4-to-r0
    user@R1# set transit-lsp-association trace1 from-2 10.255.8.86
    
  6. デバイスの設定が完了したら、設定をコミットします。

    content_copy zoom_out_map
    [edit]
    user@R1# commit
    
結果

show interfaces コマンドと show protocols コマンドを発行して、設定を確認します。

content_copy zoom_out_map
user@R1# show interfaces
ge-0/0/5 {
    unit 0 {
        family inet {
            address 10.10.10.2/30;
        }
        family iso;
        family inet6;
        family mpls;
    }
}
ge-0/2/2 {
    unit 0 {
        family inet {
            address 10.10.12.2/30;
        }
        family iso;
        family inet6;
        family mpls;
    }
}
ge-2/0/2 {
    unit 0 {
        family inet {
            address 10.10.11.2/30;
        }
        family iso;
        family inet6;
        family mpls;
    }
}
ge-1/0/2 {
    unit 0 {
        family inet {
            address 10.10.13.2/30;
        }
        family iso;
        family inet6;
        family mpls;
    }
}
content_copy zoom_out_map
user@R1# show protocols
rsvp {
    interface ge-0/0/5.0;
    interface ge-2/0/2.0;
    interface ge-1/0/2.0;
    interface ge-0/2/2.0;
}
mpls {
    transit-lsp-association trace1 {
        lsp-name-1 r0-to-r4;
        from-1 10.255.8.207;
        lsp-name-2 r4-to-r0;
        from-2 10.255.8.86;
    }
    interface ge-0/0/5.0;
    interface ge-2/0/2.0;
    interface ge-1/0/2.0;
    interface ge-0/2/2.0;
}
ospf {
    traffic-engineering;
    area 0.0.0.0 {
        interface ge-0/0/5.0;
        interface ge-1/0/2.0;
        interface ge-2/0/2.0;
        interface ge-0/2/2.0 {
            metric 100;
        }
        interface lo0.0 {
            passive;
        }
    }
}

検証

設定が正常に機能していることを確認します。

関連する双方向LSPの検証
目的

関連する双方向 LSP 設定が正しく機能していることを確認します。

アクション
content_copy zoom_out_map
user@host> show mpls lsp
Ingress LSP: 1 sessions
To              From            State Rt P   ActivePath   LSPname
10.10.11.1  10.255.8.86  			 Up     0 *                r0-to-r4 Assoc-Bidir
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To         From           State Rt Style Labelin Labelout LSPname
10.10.16.1  10.255.8.207  Up    0  1 FF       3           r4-to-r0 Assoc-Bidir
Total 2 displayed, Up 2, Down 0

Transit LSP: 1 sessions
To          From           State  Rt Style Labelin Labelout LSPname
10.10.10.2  10.255.8.168  Up      1  1 FF  301264        3 r0-to-r4 Assoc-Bidir
Total 3 displayed, Up 3, Down 0

content_copy zoom_out_map
user@host> show mpls lsp detail
Ingress LSP: 1 sessions

10.10.11.1
  From: 10.255.8.86, State: Up, ActiveRoute: 0, LSPname: r0-to-r4
  Associated Bidirectional
  Associated LSP: r0-to-r4, 10.255.8.86
  ActivePath:  (primary)
  LSPtype: Static Configured
  LoadBalance: Random
  Encoding type: Packet, Switching type: PSC-1, GPID: Unknown
 *Primary                    State: Up

Egress LSP: 1 sessions

10.255.102.29
  From: 10.255.102.172, LSPstate: Up, ActiveRoute: 0
    LSPname: r4-to-r0, LSPpath: Primary
    Associated Bidirectional
    Associated LSP: 10.10.16.1, to-r0>
    Suggested label received: -, Suggested label sent: -
    Recovery label received: -, Recovery label sent: -
    Resv style: 1 FF, Label in: 3, Label out: -
    Time left:  144, Since: Fri Jun 17 21:41:05 2011
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Port number: sender 6 receiver 14468 protocol 0
    PATH rcvfrom: 10.10.13.1 (ge-2/0/0.0) 84 pkts
    Adspec: received MTU 1500
    PATH sentto: localclient
    RESV rcvfrom: localclient
    Record route: 10.10.14.2 10.10.13.1 <self>

Transit LSP: 1 sessions

10.255.102.30
  From: 10.255.102.172, LSPstate: Up, ActiveRoute: 1
    LSPname: to_airstream, LSPpath: Primary
    Associated Bidirectional
    Associated LSP: r0-to-r4, 10.255.8.168
    Suggested label received: -, Suggested label
    Recovery label received: -, Recovery label sent: 3
    Resv style: 1 FF, Label in: 301264, Label out: 3
    Time left:  132, Since: Fri Jun 17 21:40:56 2011
    Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
    Port number: sender 28 receiver 14465 protocol 0
    PATH rcvfrom: 10.10.13.1 (ge-2/0/0.0) 84 pkts
    Adspec: received MTU 1500 sent MTU 1500
    PATH sentto: 10.10.10.1 (ge-3/0/0.0) 84 pkts
    RESV rcvfrom: 10.10.10.1 (ge-3/0/0.0) 84 pkts
    Explct route: 10.10.10.1
    Record route: 10.10.16.1 10.10.15.2 10.10.13.1 <self> 10.10.10.1
content_copy zoom_out_map
user@host> show mpls lsp bidirectional
Ingress LSP: 1 session
To              From            State Rt P     ActivePath       LSPname
10.255.8.86     10.255.8.207    Up     0 *                      r0-to-r4 
 Assoc-Bidir
Total 1 displayed, Up 1, Down 0
Aug 28 06:56:26 [TRACE] [R0 coleman re0]
Egress LSP: 1 session
To              From            State   Rt Style Labelin Labelout LSPname
10.255.8.207    10.255.8.86  	Up       0  1 FF       3        - to-r0
 Assoc-Bidir
Total 1 displayed, Up 1, Down 0
Aug 28 06:56:26 [TRACE] [R0 coleman re0]
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
意味

show mpls lspshow mpls detail、および show mpls bidirectional コマンドの出力には、関連する双方向 LSP の詳細と LSP アソシエーション情報が表示されます。

LDPに対するOAMイングレスポリシーの設定

ingress-policyステートメントを使用して、運用、管理、および管理(OAM)ポリシーを設定し、OAMを有効にする必要がある転送等価クラス(FEC)を選択できます。FEC がポリシーを通過する場合、または FEC が明示的に設定されている場合、OAM は FEC に対して有効になります。ポリシーを使用して選択されたFECの場合、 [edit protocols ldp oam bfd-liveness-detection] で設定されたBFDパラメータが適用されます。

OAMイングレスポリシーは、 [edit policy-options] 階層レベルで設定します。OAMイングレスポリシーを設定するには、 ingress-policy ステートメントを含めます。

content_copy zoom_out_map
ingress-policy ingress-policy-name;

以下の階層レベルでこのステートメントを設定することができます。

  • [edit protocols ldp oam]

  • [edit logical-systems logical-system-name protocols ldp oam]

注:

ACX シリーズのルーターは、[edit logical-systems]階層レベルをサポートしていません。

MPLS および LSP パケットと操作のトレース

MPLS および LSP のパケットと動作をトレースするには、 traceoptions ステートメントを含めます。

content_copy zoom_out_map
traceoptions {
    file filename <files number> <size size> <world-readable | no-world-readable>;
    flag flag; 
}

このステートメントを含めることができる階層レベルの一覧は、このステートメントのステートメント概要のセクションを参照してください。

MPLS traceoptions ステートメントでは、次の MPLS 固有のフラグを指定できます。

  • all- すべての操作をトレースします。

  • connection- すべてのCCC(回線クロスコネクト)アクティビティをトレースします。

  • connection-detail- 詳細なCCCアクティビティをトレースします。

  • cspf- CSPF 計算をトレースします。

  • cspf-link- CSPF 計算中に訪問したリンクをトレースします。

  • cspf-node- CSPF 計算中に訪問したノードのトレース。

  • error- MPLS エラー状態をトレースします。

  • graceful-restart- MPLS グレースフル リスタート イベントをトレースします。

  • lsping- LSP の ping パケットとリターンコードをトレースします。

  • nsr-synchronization- ノンストップルーティング(NSR)同期イベントをトレースします。

  • nsr-synchronization-detail- NSR同期イベントを詳細にトレースします。

  • state- すべての LSP 状態遷移をトレースします。

  • static- スタティック ラベルスイッチ パスをトレースします。

cspf オプションを使用して MPLS LSP を追跡するようにトレース オプションを設定すると、CSPF ログに「一般化された MPLS」(GMPLS)という用語を使用して MPLS LSP に関する情報が表示されます。たとえば、CSPF ログのメッセージに「リンクは GMPLS 制約に合格します」と記載されている場合があります。一般化された MPLS(GMPLS)は MPLS のスーパーセットであるため、このメッセージは正常であり、適切な MPLS LSP 動作には影響しません。

変更履歴

サポートされる機能は、使用しているプラットフォームとリリースによって決まります。 特定の機能がお使いのプラットフォームでサポートされているかどうかを確認するには、 Feature Explorer をご利用ください。

リリース
説明
16.1
Junos OS リリース 16.1 以降、MPLS-TP は、mpls-tp-mode ステートメントの下で、デフォルトの LSPING(0x0008)チャネル タイプに 2 つの追加チャネル タイプをサポートしています。
footer-navigation