OSPFv2セグメントルーティングネットワークでマイクロループ回避を設定する方法
概要 マイクロループは、リンクの利用可能な帯域幅を消費する可能性があり、有用なパケットの効率的な伝送に影響を与えます。マイクロループ回避により、ループパケットの転送を防止できます。
OSPFマイクロループ回避を理解する
- セグメント ルーティングを使用する OSPFv2 ネットワークでマイクロループを回避するメリット
- セグメント ルーティングを使用する OSPFv2 ネットワークにおけるマイクロループ回避
- サポートされている機能とサポートされていない機能
セグメント ルーティングを使用する OSPFv2 ネットワークでマイクロループを回避するメリット
-
マイクロループフリーパスにより、遅延やトラフィックロスを回避。
- マイクロループを回避することで、ループするパケットの転送を防ぎ、無駄な帯域幅消費を回避できます。
- マイクロループ回避パスは、複数のリンク障害が発生した場合、影響を受けるリンクに対してのみ計算されます。2 番目のリンク障害が計算されたマイクロループ回避パスに影響しない場合、OSPFv2 は同じマイクロループ回避パスを使用し続けます。
Junos OS では、マイクロループを回避するために、OSPFv2 リンクに障害が発生した場合、デバイスが OSPFv2 ルートのダウンロードを遅らせることができます。ローカル リンクがダウンすると、OSPFv2 プロトコルによってエリア全体がデータベースであふれます。障害が発生したローカルインターフェイスに接続されているノードが隣接ノードよりも速く収束する場合、接続されたノードはトラフィックをコンバージドパスにリダイレクトします。このリダイレクトにより、隣接ノードが収束するまでトラフィックのマイクロループが発生する可能性があります。保護されたノードのプライマリ パスに障害が発生しても、設定されたバックアップ パスに影響がなければ、接続されたノードを迅速に収束させる必要はありません。この場合、コンバージド パスに向かうトラフィック フローは、設定された遅延時間まで延期されます。この時間遅延は、すべてのルーターが同時にコンバージェンス後の転送状態に到達するわけではないため、マイクロループの回避に役立ちます。
図 1 では、送信元から宛先へのプライマリ パスは SR0R1R2R3D です。R2 と R3 間のリンクに障害が発生すると、ルーターが宛先 D の転送状態を更新する間、S から D に送信されたトラフィックは一時的な転送ループの影響を受けます。
R0 が R5 より前に転送状態を更新すると、パケットは R0 と R5 の間でループします。
• R0 と R5 の両方が転送状態を更新し、R4 が更新していない場合、パケットは R4 と R5 の間でループします。
R0 は R2 と R3 間のリンク障害を検出し、宛先宛てのトラフィックを一時的に SR パス [NodeSID(R4), AdjSID(R4->R3), D] で誘導します。
設定されたタイムアウトが経過すると、R0 はノード SID から D を使用して宛先に到達します。
セグメント ルーティングを使用する OSPFv2 ネットワークにおけるマイクロループ回避
Junos OS リリース 22.1R1 以降、OSPFv2 セグメント ルーティング ネットワークでリンクまたはメトリックの変更が発生した場合、マイクロループを回避するために、デバイスでコンバージェンス パス計算を有効にすることができます。リンクダウン、リンクアップ、メトリック変更などのローカルとリモートの両方のネットワークイベントに対して、OSPFv2セグメントルーティングネットワークでマイクロループ回避を設定するには、[edit protocols ospf spf-options microloop avoidance post-convergence-path]
階層レベルで maximum-labels
delay milliseconds
ステートメントを含めます。マイクロループを効果的に回避するには、ネットワーク内のすべてのノードでこの機能を設定します。
マイクロループ回避は、局所的な障害を非常に高速に検出し、事前に計算されたループフリーの代替パスをアクティブにするTI-LFAのような局所修復メカニズムに代わるものではありません。
マイクロループ回避を実装するルーターは、イベントのリンク状態更新を受信した後にのみ、マイクロループ回避パスを計算します。したがって、マイクロループ回避メカニズムは、局所的な障害を非常に高速に検出し、PFEレベルで事前に計算されたループフリーの代替パスをアクティブにするTI-LFAのような局所修復メカニズムに代わるものではありません。上記の例では、R2R3障害に対するローカル修復メカニズムが存在しない場合、R0が(グローバルコンバージェンスによって)障害を検出し、マイクロループ回避パスをプログラムできるようになるまでに、多くのトラフィック損失が発生します。マイクロループ回避では、障害の検出が遅れることによるトラフィックロスを回避できません。マイクロループ回避により、マイクロループのみによるトラフィックロスを回避します。TI-LFAやマイクロループ回避などのローカル修復メカニズムの両方を、ネットワーク内のすべてのノードで有効にして、トラフィックの損失がミリ秒の範囲で行われるようにする必要があります。
マイクロループを回避するには、次のプロセスが使用されます。
1. D への新しいパスを計算した後、R は所定の時間、ループのないセグメント ルーティング パスを介して D にパケットを誘導する D のエントリをインストールします。この時間は、ネットワーク内のルーターのワーストケースの遅延よりも大きくする必要があります。
2. 構成された時間の遅延の後、R は D の収束後のルート エントリをインストールしますが、これは SID がありません。
サポートされている機能とサポートされていない機能
Junos OSは、以下のシナリオでマイクロループ回避をサポートしています。
-
マイクロループ回避は、OSPFルーティングプロトコルをサポートするすべてのJunos OSプラットフォームでサポートされています。
-
マイクロループ回避は、IPv4 ネットワークでのみサポートされています。
-
マイクロループ回避は、柔軟なアルゴリズムトポロジーでサポートされています。
Junos OSは、マイクロループ回避と連携して、以下の機能をサポートしていません。
- 8枚を超えるラベルを必要とするマイクロループ回避パスはサポートされていません。マイクロループ回避パス用にインストールされるラベルの最大数は8です。マイクロループ回避ECMPパスを使用できるためには、ラベルの数が最大ラベル数以下である必要があります。
- コントロールプレーンのコンバージェンスが遅いことによるトラフィックロスを防ぐことはできません。
- マイクロループ回避では、OSPFv2 マルチトポロジーはサポートされていません。
- 隣接SIDは、マイクロループ回避ではサポートされていません。
- ショートカットが使用可能な場合、OSPFv2 はマイクロループ回避パスを提供しません。
OSPFv2ネットワークでのセグメントルーティングマイクロループ回避の設定
概要
マイクロループは、リンクダウン、リンクアップ、メトリック変更などのネットワーク変更イベントに続いてネットワークで発生するパケット転送ループです。ネットワーク変更イベントが発生すると、ルーターごとに転送状態が更新されます。これにより、アップストリームルーターとダウンストリームルーターの間でパケットが一時的にループし、パケット損失、ジッター、および順不同のパケットが発生する可能性があります。マイクロループは、リンクの利用可能な帯域幅を消費する可能性があり、有用なパケットの効率的な伝送に影響を与えます。
マイクロループ回避により、ループパケットの転送を防止できます。セグメントルーティングのマイクロループ回避は、トポロジー変更後にマイクロループが可能かどうかを検知します。ネットワーク変更イベントが検出されると、ルートは、ノードと隣接関係 SID の組み合わせを使用するポストコンバージェンス パスを取るようにプログラムされます。これにより、まだ収束していない可能性のあるルーターが、マイクロループの原因となるパケットをループすることがなくなります。この動作は、構成可能な遅延の間続きます。遅延タイマーが終了すると、ルートは宛先のノード SID を使用して正常にプログラムされます。
必要条件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
-
MXシリーズルーター8台。
-
Junos OS リリース 22.1R1 以降。
位相幾何学
図2では、デバイスR0とデバイスR7が、デバイスCE1とCE2をサポートするイングレスルーターおよびエグレスルーターです。デバイス R1、R2、R3、R4、R5、R6 は、IPv4 のみのプロバイダ コア ネットワークを構成します。すべてのデバイスは、同じ自律システムに属しています。OSPFv2 は、マイクロループ回避をサポートするように設定されたコアの内部ゲートウェイ プロトコルです。この例では、デバイスR2は、R0とR7の両方へのIBGPピアリングセッションを持つIPv4ルートリフレクタとして設定されています。この例では、他のルーターはBGPを話しません。デバイスR6では、リンクダウンイベントの後にマイクロループのあるパケットを検出するようにファイアウォールフィルターが構成されています。
構成
CLIクイック構成
この例を素早く設定するには、以下のコマンドをコピーしてテキスト・ファイルに貼り付け、改行を削除し、ネットワーク構成に合わせて必要な内容を変更した後、[edit]階層レベルのCLIにコマンドをコピー&ペーストしてください。
デバイスR0
set interfaces xe-0/0/0:0 description To_R1 set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.1.1/30 set interfaces xe-0/0/0:0 unit 0 family mpls set interfaces xe-0/0/0:3 description To_R4 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.4.1/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces xe-0/0/1:2 description to_CE1 set interfaces xe-0/0/1:2 unit 1 family inet address 172.16.10.2/30 set interfaces xe-0/0/1:2 unit 1 family mpls set interfaces xe-0/0/1:2 unit 4 family inet address 172.16.11.2/30 set interfaces xe-0/0/1:2 unit 4 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.10/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.10/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1000 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 192.168.255.10 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols bgp group to-RR type internal set protocols bgp group to-RR local-address 192.168.255.10 set protocols bgp group to-RR neighbor 192.168.255.12 family inet unicast set protocols bgp group to-RR neighbor 192.168.255.12 family inet-vpn unicast per-prefix-label set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 0 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection
デバイスR1
set interfaces xe-0/0/0:0 description To_R0 set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.1.2/30 set interfaces xe-0/0/0:0 unit 0 family mpls set interfaces xe-0/0/0:2 description To_R2 set interfaces xe-0/0/0:2 unit 0 family inet address 10.10.12.1/30 set interfaces xe-0/0/0:2 unit 0 family mpls set interfaces xe-0/0/0:2 unit 1 family inet address 10.11.12.1/30 set interfaces xe-0/0/0:2 unit 1 family mpls set interfaces xe-0/0/0:3 description to_R4 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.14.1/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces xe-0/0/1:0 description to_R5 set interfaces xe-0/0/1:0 unit 0 family inet address 10.10.15.1/30 set interfaces xe-0/0/1:0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.11/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.11/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 192.168.255.11 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 2 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 post-convergence-lfa set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.1 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.1 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 post-convergence-lfa set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.1 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.1 metric 10
デバイスR2
set interfaces xe-0/0/0:1 description To_R1 set interfaces xe-0/0/0:1 unit 0 family inet address 10.10.12.2/30 set interfaces xe-0/0/0:1 unit 0 family mpls set interfaces xe-0/0/0:1 unit 1 family inet address 10.11.12.2/30 set interfaces xe-0/0/0:1 unit 1 family inet6 set interfaces xe-0/0/0:1 unit 1 family mpls set interfaces xe-0/0/0:2 description To_R3 set interfaces xe-0/0/0:2 unit 0 family inet address 10.10.23.1/30 set interfaces xe-0/0/0:2 unit 0 family mpls set interfaces xe-0/0/0:3 description To_R4 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.24.1/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces xe-0/0/1:0 description To_R5 set interfaces xe-0/0/1:0 unit 0 family inet address 10.10.25.1/30 set interfaces xe-0/0/1:0 unit 0 family mpls set interfaces xe-0/0/1:1 description To_R6 set interfaces xe-0/0/1:1 unit 0 family inet address 10.10.26.1/30 set interfaces xe-0/0/1:1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.12/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.12/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 192.168.255.12 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols bgp group to-RR type internal set protocols bgp group to-RR local-address 192.168.255.12 set protocols bgp group to-RR neighbor 192.168.255.17 family inet unicast set protocols bgp cluster 192.168.255.12 set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 4 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/1:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/1:1.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/1:1.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.1 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.1 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.2 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.2 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.3 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.3 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.4 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.4 metric 10
デバイス R3
set interfaces xe-0/0/0:0 description To_R2 set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.23.2/30 set interfaces xe-0/0/0:0 unit 0 family mpls set interfaces xe-0/0/0:1 description To_R5 interfaces xe-0/0/0:1 unit 0 family inet address 10.10.35.2/30 set interfaces xe-0/0/0:1 unit 0 family mpls set interfaces xe-0/0/0:2 description To_R6 set interfaces xe-0/0/0:2 unit 0 family inet address 10.10.36.1/30 set interfaces xe-0/0/0:2 unit 0 family mpls set interfaces xe-0/0/0:3 description To_R7 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.37.1/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.13/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.13/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 192.168.255.13 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 6 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection
デバイス R4
set interfaces xe-0/0/0:0 description To_R0 set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.4.2/30 set interfaces xe-0/0/0:0 unit 0 family mpls set interfaces xe-0/0/0:2 description To_R2 set interfaces xe-0/0/0:2 unit 0 family inet address 10.10.24.2/30 set interfaces xe-0/0/0:2 unit 0 family mpls set interfaces xe-0/0/0:3 description To_R1 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.14.2/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces xe-0/0/1:0 description To_R5 set interfaces xe-0/0/1:0 unit 0 family inet address 10.10.45.1/30 set interfaces xe-0/0/1:0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.14/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.14/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 192.168.255.14 set routing-options forwarding-table export pplb set routing-options autonomous-system 65000 set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 8 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection
デバイス R5
set interfaces xe-0/0/0:1 description To_R1 set interfaces xe-0/0/0:1 unit 0 family inet address 10.10.15.2/30 set interfaces xe-0/0/0:1 unit 0 family mpls set interfaces xe-0/0/0:2 description To_R2 set interfaces xe-0/0/0:2 unit 0 family inet address 10.10.25.2/30 set interfaces xe-0/0/0:2 unit 0 family mpls set interfaces xe-0/0/0:3 description To_R3 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.35.2/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces xe-0/0/1:0 description To_R4 set interfaces xe-0/0/1:0 unit 0 family inet address 10.10.45.2/30 set interfaces xe-0/0/1:0 unit 0 family mpls set interfaces xe-0/0/1:1 description To_R6 set interfaces xe-0/0/1:1 unit 0 family inet address 10.10.56.1/30 set interfaces xe-0/0/1:1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.15/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.15/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set routing-options router-id 192.168.255.15 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing node-segment ipv4-index 10 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/1:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/1:1.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/1:1.0 post-convergence-lfa node-protection
デバイス R6
set interfaces xe-0/0/0:0 description To_R2 set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.26.2/30 set interfaces xe-0/0/0:0 unit 0 family mpls set interfaces xe-0/0/0:1 description To_R3 set interfaces xe-0/0/0:1 unit 0 family inet address 10.10.36.2/30 set interfaces xe-0/0/0:1 unit 0 family mpls set interfaces xe-0/0/0:2 description To_R5 set interfaces xe-0/0/0:2 unit 0 family inet filter output v4filter set interfaces xe-0/0/0:2 unit 0 family inet address 10.10.56.2/30 set interfaces xe-0/0/0:2 unit 0 family mpls filter output mplsfilter set interfaces xe-0/0/0:3 description To_R7 set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.67.1/30 set interfaces xe-0/0/0:3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.16/32 set interfaces lo0 unit 0 family inet address 192.168.255.61/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.16/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1006 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement prefix-sid term 2 from route-filter 192.168.255.61/32 exact set policy-options policy-statement prefix-sid term 2 then prefix-segment index 1106 set policy-options policy-statement prefix-sid term 2 then accept set firewall family inet filter v4filter term t1 from destination-address 8.3.0.0/16 set firewall family inet filter v4filter term t1 then accept set firewall family inet filter v4filter term t6 then accept set firewall family mpls filter mplsfilter term t1 from ip-version ipv4 destination-address 10.8.0.1/16 set firewall family mpls filter mplsfilter term t1 then count v4sr-nsid-cnt set firewall family mpls filter mplsfilter term t1 then accept set firewall family mpls filter mplsfilter term t2 from ip-version ipv4 destination-address 10.9.0.1/16 set firewall family mpls filter mplsfilter term t2 then count v4sr-psid-cnt set firewall family mpls filter mplsfilter term t2 then accept set firewall family mpls filter mplsfilter term t3 then accept set firewall family mpls filter mplsfilter term t4 then accept set firewall family mpls filter mplsfilter term t6 then accept set routing-options router-id 192.168.255.16 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 12 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:2.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 metric 110 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 100 set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection
デバイス R7
set interfaces xe-0/0/0:0 description To_R3 set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.37.2/24 set interfaces xe-0/0/0:0 unit 0 family mpls set interfaces xe-0/0/0:1 description To_R6 set interfaces xe-0/0/0:1 unit 0 family inet address 10.10.67.2/30 set interfaces xe-0/0/0:1 unit 0 family mpls set interfaces xe-0/0/0:2 description to_CE2 set interfaces xe-0/0/0:2 unit 4 family inet address 172.16.20.1/30 set interfaces xe-0/0/0:2 unit 4 family mpls set interfaces lo0 unit 0 family inet address 192.168.255.17/32 set interfaces lo0 unit 0 family inet address 192.168.255.71/32 set interfaces lo0 unit 0 family mpls set policy-options policy-statement payload_9 term 1 from route-filter 10.7.0.1/16 orlonger set policy-options policy-statement payload_9 term 1 then next-hop 192.168.255.17 set policy-options policy-statement payload_9 term 1 then accept set policy-options policy-statement payload_9 term 2 from route-filter 10.8.0.1/16 orlonger set policy-options policy-statement payload_9 term 2 then next-hop 192.168.255.17 set policy-options policy-statement payload_9 term 2 then accept set policy-options policy-statement payload_9 term 3 from route-filter 8.2.0.0/16 orlonger set policy-options policy-statement payload_9 term 3 then next-hop 192.168.255.71 set policy-options policy-statement payload_9 term 4 then reject set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.17/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1007 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement prefix-sid term 2 from route-filter 192.168.255.71/32 exact set policy-options policy-statement prefix-sid term 2 then prefix-segment index 1107 set policy-options policy-statement prefix-sid term 2 then accept set policy-options policy-statement v4stat term 1 from protocol static set policy-options policy-statement v4stat term 1 from route-filter 100.100.100.1/32 orlonger set policy-options policy-statement v4stat term 1 then accept set policy-options policy-statement v4_prefixes term 1 from route-filter 8.3.0.0/16 orlonger set policy-options policy-statement v4_prefixes term 1 then accept set policy-options policy-statement v4_prefixes term 3 then reject set routing-options rib inet.0 static route 100.100.100.1/32 receive set routing-options router-id 192.168.255.17 set routing-options autonomous-system 65000 set routing-options forwarding-table export pplb set protocols bgp group to-RR type internal set protocols bgp group to-RR local-address 192.168.255.17 set protocols bgp group to-RR neighbor 192.168.255.12 family inet unicast set protocols bgp group to-RR neighbor 192.168.255.12 export payload_9 set protocols bgp group to-CE1 type external set protocols bgp group to-CE1 local-address 172.16.20.1 set protocols bgp group to-CE1 neighbor 172.16.20.2 family inet unicast set protocols bgp group to-CE1 neighbor 172.16.20.2 peer-as 700 set protocols bgp group to-CE1 neighbor 172.16.20.2 local-as 100 set protocols mpls traffic-engineering set protocols mpls label-range static-label-range 60001 100000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols ospf backup-spf-options use-source-packet-routing set protocols ospf source-packet-routing prefix-segment prefix-sid set protocols ospf source-packet-routing node-segment ipv4-index 14 set protocols ospf source-packet-routing srgb start-label 800000 set protocols ospf source-packet-routing srgb index-range 80000 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa node-protection set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0:1.0 post-convergence-lfa node-protection
デバイス R0 の設定
手順
OSPFv2ネットワークでセグメントルーティングのマイクロループ回避パスを設定するには、R0デバイスで以下のステップを実行します。
-
IPとMPLSトランスポートを有効にするデバイスインターフェイスを設定します。
[edit] user@R0#set interfaces xe-0/0/0:0 description To_R1 user@R0#set interfaces xe-0/0/0:0 unit 0 family inet address 10.10.1.1/30 uesr@R0#set interfaces xe-0/0/0:0 unit 0 family mpls user@R0#set interfaces xe-0/0/0:3 description To_R4 user@R0#set interfaces xe-0/0/0:3 unit 0 family inet address 10.10.4.1/30 uesr@R0#set interfaces xe-0/0/0:3 unit 0 family mpls user@R0#set interfaces xe-0/0/1:2 description to_CE1 user@R0#set interfaces xe-0/0/1:2 unit 1 family inet address 172.16.10.2/30 user@R0#set interfaces xe-0/0/1:2 unit 1 family mpls
-
OSPFセッションのルーターIDとして使用されるループバックインターフェイス(lo0)アドレスを設定します。
[edit] user@R0#set interfaces lo0 unit 0 family inet address 192.168.255.10/32 user@R0#set interfaces lo0 unit 0 family inet address 192.168.255.18/32
-
ルーター ID と自律システム(AS)番号を設定して、同じ AS に属する一連のルーティングデバイス内でルーティング情報を伝送します。
[edit] user@R0#set routing-options router-id 192.168.255.10 user@R0#set routing-options autonomous-system 65000
-
パケットを負荷分散するポリシーを定義し、パケットごとのポリシーを適用してトラフィックの負荷分散を有効にします。
[edit] user@R0#set policy-options policy-statement pplb then load-balance per-packet user@R0#set routing-options forwarding-table export pplb
-
ループバックアドレスをアドバタイズするようにR0を設定します。
prefix-segment index
オプションは、各ルーターのループバックのベースラベルを設定します。この例では、基本インデックスは reflect|ルーター番号。その結果、R0 は 1000 を使用します。[edit] user@R0#set policy-options policy-statement prefix-sid term 1 from route-filter 192.168.255.10/32 exact user@R0#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1000 user@R0#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R0#set policy-options policy-statement prefix-sid term 1 then accept
-
管理インターフェイスを除くすべてのインターフェイスに MPLS を設定します。トラフィックエンジニアリングも可能にします。
[edit] user@R0#set protocols mpls interface all user@R0#set protocols mpls interface fxp0.0 disable user@R0#set protocols mpls traffic-engineering
-
リンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R0#set protocols mpls label-range static-label-range 60001 100000
-
R0とルートリフレクタR2の間でBGPピアリングを設定します。ユニキャスト ネットワーク層到達可能性情報(NRLI)を設定して、デバイスの各プレフィックスに固有のラベルを割り当てます。
[edit] user@R0#set protocols bgp group to-RR type internal user@R0#set protocols bgp group to-RR local-address 192.168.255.10 user@R0#set protocols bgp group to-RR neighbor 192.168.255.12 family inet unicast user@R0#set protocols bgp group to-RR neighbor 192.168.255.12 family inet-vpn unicast per-prefix-label
-
TI-LFA を設定し、リンクとノードの障害に対する保護を有効にします。TI-LFAを用いたSRでは、プライマリパスに障害が発生したり利用できなくなった場合、バックアップや代替パスに瞬時にトラフィックをルーティングすることで、ネットワーク接続の早期復旧を実現します。
[edit] user@host#set protocols ospf backup-spf-options use-source-packet-routing
-
OSPFv2 プロトコルの TI-LFA の最大等価コスト マルチパス(ECMP)を 8、ラベルの最大数を 5 などの SPF(バックアップ最短パス ファースト)属性を設定します。
[edit] user@host#set protocols ospf backup-spf-options use-post-convergence-lfa maximum-labels 5 user@host#set protocols ospf backup-spf-options use-post-convergence-lfa maximum-backup-paths 8
-
OSPFv2 プロトコルの SPRING で、プレフィックスセグメント属性、開始ラベル、セグメントルーティンググローバルブロック(SRGB)のインデックス範囲を設定します。
[edit] user@host#set protocols ospf source-packet-routing prefix-segment prefix-sid user@host#set protocols ospf source-packet-routing node-segment ipv4-index 0 user@host#set protocols ospf source-packet-routing srgb start-label 800000 user@host#set protocols ospf source-packet-routing srgb index-range 80000
-
ループバック インターフェイスをパッシブとして設定して、プロトコルがループバック インターフェイス上で実行されないようにし、ループバック インターフェイスがネットワーク全体に正しくアドバタイズされるようにします。
[edit] user@host#set protocols ospf area 0.0.0.0 interface lo0.0 passive
-
デバイスR0のポイントツーポイントインターフェイスにOSPFエリア0を設定します。
[edit] user@host#set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 interface-type p2p user@host#set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 metric 10 user@host#set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 interface-type p2p user@host#set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 metric 10
-
OSPFv2 プロトコルの指定されたエリアとインターフェイスで、ポストコンバージェンス パスに続くバックアップ パスの計算とインストールを設定します。また、ポストコンバージェンスパスに続くこれらのインターフェイスでノードリンク保護を有効にします。
[edit] user@host#set protocols ospf area 0.0.0.0 interface xe-0/0/0:0.0 post-convergence-lfa node-protection user@host#set protocols ospf area 0.0.0.0 interface xe-0/0/0:3.0 post-convergence-lfa node-protection
-
マイクロループの影響を受ける可能性のあるルートのポストコンバージェンスパスを一時的にインストールするマイクロループ回避を設定し、OSPFv2プロトコルの遅延時間を60000ミリ秒に指定します。一時パスは、遅延タイマーが期限切れになると、宛先のノード SID に戻ります。
[edit] user@host#set protocols ospf spf-options microloop-avoidance post-convergence-path delay 60000
業績
構成の結果を確認します。
interfaces { xe-0/0/0:0 { description To_R1; unit 0 { family inet { address 10.10.1.1/30; } family mpls; } } xe-0/0/0:3 { description To_R4; unit 0 { family inet { address 10.10.4.1/30; } family mpls; } } xe-0/0/1:2 { description to_CE1; unit 1 { family inet { address 172.16.10.2/30; } family mpls; } } } lo0 { unit 0 { family inet { address 192.168.255.10/32; address 192.168.255.18/32; } family mpls; } } } policy-options { policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 192.168.255.10/32 exact; } then { prefix-segment { index 1000; node-segment; } accept; } } term 2 { from { route-filter 192.168.255.18/32 exact; } then { prefix-segment { index 1100; } accept; } } } } routing-options { router-id 192.168.255.10; autonomous-system 100; forwarding-table { export pplb; } } protocols { bgp { group to-RR { type internal; local-address 192.168.255.10; neighbor 192.168.255.12 { family inet { unicast; } family inet-vpn { unicast { per-prefix-label; } } } } } mpls { traffic-engineering; label-range { static-label-range 60001 100000; } interface all; interface fxp0.0 { disable; } } ospf { spf-options { microloop-avoidance { post-convergence-path { delay 60000; } } } backup-spf-options { use-post-convergence-lfa { maximum-labels 5; maximum-backup-paths 8; } use-source-packet-routing; } source-packet-routing { prefix-segment prefix-sid; node-segment ipv4-index 0; srgb start-label 800000 index-range 80000; } area 0.0.0.0 { interface lo0.0 { passive; } interface xe-0/0/0:0.0 { interface-type p2p; metric 10; post-convergence-lfa; } interface xe-0/0/0:3.0 { interface-type p2p; metric 10; post-convergence-lfa; } } } }
検証
設定が正常に機能していることを確認します。
次のセクションでは、リンクダウンイベントのマイクロループ回避について説明します。
- R0 と R1 の間のリンクが無効になる前に、R0 と R7 間の接続を確認します。
- R0 と R1 間のリンクの無効化を確認
- リンク無効後の宛先にインストールされたマイクロループ回避パスの確認
- マイクロループによるパケットの検証
- 遅延タイマーが切れた後の、マイクロループ回避パスがポストコンバージェンスパスに変わることを検証
- R0 と R7 間の接続を確認する
- リンク有効化後のマイクロループ回避パスへのパス変更の確認
R0 と R1 の間のリンクが無効になる前に、R0 と R7 間の接続を確認します。
目的
デバイス R0 がデバイス R7 の宛先に到達できることを確認します。
アクション
動作モードから、デバイスR0で ping コマンドを実行します。
user@R0>ping 192.168.255.17 PING 192.168.255.17 (192.168.255.17): 56 data bytes 64 bytes from 192.168.255.17: icmp_seq=0 ttl=61 time=41.493 ms 64 bytes from 192.168.255.17: icmp_seq=1 ttl=61 time=57.242 ms 64 bytes from 192.168.255.17: icmp_seq=2 ttl=61 time=44.977 ms 64 bytes from 192.168.255.17: icmp_seq=3 ttl=61 time=202.092 ms 64 bytes from 192.168.255.17: icmp_seq=4 ttl=61 time=60.495 ms 64 bytes from 192.168.255.17: icmp_seq=5 ttl=61 time=39.396 ms 64 bytes from 192.168.255.17: icmp_seq=6 ttl=61 time=79.993 ms 64 bytes from 192.168.255.17: icmp_seq=7 ttl=61 time=78.741 ms 8 packets transmitted, 8 received, 0% packet loss, time 7007ms rtt min/avg/max/mdev = 38.194/47.998/60.879/8.727 ms
意味
これらの結果から、デバイス R0 が OSPFv2 ネットワーク内のデバイス R7 に到達できることが確認されます。
R0 と R1 間のリンクの無効化を確認
目的
デバイスR0でR0とR1間のリンクを無効にすることを確認するには:
アクション
設定モードから、デバイスR0で disable interface コマンドを実行します
user@R0#disble interface xe-0/0/0:0
リンクが無効になっていることを確認するには、動作モードからデバイスR0で show interfaces コマンドを実行します
user@R0>show interfaces xe-0/0/0:0 Physical interface: xe-0/0/0:0, Administratively down, Physical link is Down Interface index: 149, SNMP ifIndex: 527 Description: To_R1_1 Link-level type: Ethernet, MTU: 1518, MRU: 1526, LAN-PHY mode, Speed: 10Gbps, BPDU Error: None, Loop Detect PDU Error: None, MAC-REWRITE Error: None, Loopback: None, Source filtering: Disabled, Flow control: Enabled, Speed Configuration: Auto Pad to minimum frame size: Disabled Device flags : Present Running Down Interface flags: Hardware-Down Down SNMP-Traps Internal: 0x4000 CoS queues : 8 supported, 8 maximum usable queues Schedulers : 0 Current address: 2c:6b:f5:42:fe:00, Hardware address: 2c:6b:f5:42:fe:00 Last flapped : 2022-02-15 09:53:51 PST (00:00:10 ago) Input rate : 0 bps (0 pps) Output rate : 0 bps (0 pps) Active alarms : None Active defects : None PCS statistics Seconds Bit errors 0 Errored blocks 0 Link Degrade : Link Monitoring : Disable Interface transmit statistics: Disabled
意味
この出力は、R0 と R1 の間の物理リンクが無効で、管理上ダウンしていることを示しています。
リンク無効後の宛先にインストールされたマイクロループ回避パスの確認
目的
inet.3テーブル内のルートおよびmpls.0テーブル内のルートラベル詳細を検証することにより、R0とR1間のリンクが無効になっている場合、R0から宛先ルートR7にインストールされたマイクロループ回避パスを確認します。
アクション
動作モードから、デバイスR0で show route table inet.3 コマンドを実行します。
user@R0>show route table inet.3 192.168.255.17/32 inet.3: 25 destinations, 26 routes (25 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.255.17/32 *[L-OSPF/10/5] 00:00:31, metric 130 > to 192.168.255.14 via xe-0/0/0:3, Push 16, Push 801006(top)
動作モードから、デバイスR0で show route label label value protocol ospf extensive コマンドを実行します。
user@R0>show route label 801007 protocol ospf extensive mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden) 801007 (1 entry, 1 announced) TSI: KRT in-kernel 801007 /52 -> {Swap 16, Push 801006 (top)} *L-OSPF Preference: 10/5 Next hop type: Router, Next hop index: 649 Address: 0x7a1ed58 Next-hop reference count: 4, key opaque handle: 0x0 Next hop: 10.10.4.2 via xe-0/0/0:3.0 weight 0x1, selected Label operation: Swap 16, Push 801006(top) Load balance label: Label 16: None; Label 801006: None Label element ptr: 0x8fd6ed0 Label parent element ptr: 0x0 Label element references: 1 Label element child references: 0 Label element lsp id: 0 Session Id: 321 State: <Active Int> Local AS: 100 Age: 2:55:13 Metric: 130 Validation State: unverified Area: 0.0.0.0 Task: OSPF Announcement bits (1): 1-KRT AS path: I Thread: junos-main
意味
この出力は、R0 と R1 の間のリンクがダウンすると、遅延タイマーが期限切れになるまで、R0 から R4 までの R7 にマイクロループ回避パスがインストールされていることを示しています。
マイクロループによるパケットの検証
目的
ファイアウォールカウンター情報を使用したマイクロループによるパケットの検証
アクション
動作モードから、デバイスR6で show firewall コマンドを実行します。
user@R6>show firewall Filter: mplsfilter Counters: Name Bytes Packets v4sr-nsid-cnt 0 0 v4sr-psid-cnt 0 0
意味
出力では、デバイスR6に設定されたmplsfilterが表示され、マイクロループがあればそれを表示します。値 0 は、マイクロループを含むパケットがないことを示します。
遅延タイマーが切れた後の、マイクロループ回避パスがポストコンバージェンスパスに変わることを検証
目的
60000msの遅延タイマーが満了した後、R0から宛先ルートR7にインストールされたマイクロループ回避パスがポストコンバージェンスパスに変わることを確認します。
アクション
動作モードから、デバイスR0で show route table inet.3 コマンドを実行します。
user@R0>show route table inet.3 192.168.255.17/32 inet.3: 25 destinations, 26 routes (25 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.255.17/32 *[L-OSPF/10/5] 00:00:31, metric 130 > to 192.168.255.14 via xe-0/0/0:3, Push 801007
動作モードから、デバイスR0で show route label label value protocol ospf extensive コマンドを実行します。
user@R0>show route label 801007 protocol ospf extensive mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden) 801007 (1 entry, 1 announced) TSI: KRT in-kernel 801007 /52 -> {Swap 801007} *L-OSPF Preference: 10/5 Next hop type: Router, Next hop index: 615 Address: 0x7a1c400 Next-hop reference count: 4, key opaque handle: 0x0 Next hop: 10.10.4.2 via xe-0/0/0:3.0 weight 0x1, selected Label operation: Swap 801007 Load balance label: Label 801007: None; Label element ptr: 0x8fd6458 Label parent element ptr: 0x0 Label element references: 1 Label element child references: 0 Label element lsp id: 0 Session Id: 321 State: <Active Int> Local AS: 100 Age: 2:55:13 Metric: 130 Validation State: unverified Area: 0.0.0.0 Task: OSPF Announcement bits (1): 1-KRT AS path: I Thread: junos-main
意味
この出力は、遅延タイマーが満了した後、マイクロループ回避パスがポストコンバージェンスパスに変更されることを示しています。
R0 と R7 間の接続を確認する
目的
デバイス R0 がデバイス R7 の宛先に到達できることを確認します。
アクション
動作モードから、デバイスR0で ping コマンドを実行します。
user@R0>ping 192.168.255.17 PING 192.168.255.17 (192.168.255.17): 56 data bytes 64 bytes from 192.168.255.17: icmp_seq=0 ttl=61 time=41.493 ms 64 bytes from 192.168.255.17: icmp_seq=1 ttl=61 time=57.242 ms 64 bytes from 192.168.255.17: icmp_seq=2 ttl=61 time=44.977 ms 64 bytes from 192.168.255.17: icmp_seq=3 ttl=61 time=202.092 ms 64 bytes from 192.168.255.17: icmp_seq=4 ttl=61 time=60.495 ms 64 bytes from 192.168.255.17: icmp_seq=5 ttl=61 time=39.396 ms 64 bytes from 192.168.255.17: icmp_seq=6 ttl=61 time=79.993 ms 64 bytes from 192.168.255.17: icmp_seq=7 ttl=61 time=78.741 ms 8 packets transmitted, 8 received, 0% packet loss, time 7007ms rtt min/avg/max/mdev = 38.194/47.998/60.879/8.727 ms
意味
これらの結果から、デバイス R0 が OSPFv2 ネットワーク内のデバイス R7 に到達できること、およびマイクロループ回避パスが設定されているためにリンクがダウンした場合、トラフィックのパケット損失が 0% で流れることが確認されました。
リンク有効化後のマイクロループ回避パスへのパス変更の確認
目的
R0 と R1 の間のリンクが有効になっている場合、パスが宛先のマイクロループ回避パスに変わることを確認します。
アクション
動作モードから、デバイスR0で show route table inet.3 コマンドを実行します。
user@R0>show route table inet.3 192.168.255.17/32 inet.3: 26 destinations, 27 routes (26 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.255.17/32 *[L-OSPF/10/5] 00:02:05, metric 40 > to 192.168.255.11 via xe-0/0/0:0, Push 801007 to 192.168.255.14 via xe-0/0/0:3, Push 16, Push 801006(top)
動作モードから、デバイスR0で show route label label value protocol ospf extensive コマンドを実行します。
user@R0>show route label 801007 protocol ospf extensive mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden) 801007 (1 entry, 1 announced) TSI: KRT in-kernel 801007 /52 -> {list:Swap 801007, Swap 16, Push 801006(top)} *L-OSPF Preference: 10/5 Next hop type: Router, Next hop index: 615 Address: 0x79329ac Next-hop reference count: 3, key opaque handle: 0x0 Next hop: 10.10.4.2 via xe-0/0/0:3.0 weight 0x1, selected Label operation: Push 801007 Load balance label: Label 801007: None; Label element ptr: 0x8fd6458 Label parent element ptr: 0x0 Label element references: 1 Label element child references: 0 Label element lsp id: 0 Session Id: 0 Next hop: 10.10.1.2 via xe-0/0/0:0.0 weight 0xf000, selected Label operation: Swap 16, Push 801006(top) Load balance label: Label 16: None; Label 801006: None; Label element ptr: 0x8fd8e60 Label parent element ptr: 0x0 Label element references: 1 Label element child references: 0 Label element lsp id: 0 Session Id: 0 State: <Active Int> Local AS: 100 Age: 2:55:13 Metric: 40 Validation State: unverified Area: 0.0.0.0 Task: OSPF Announcement bits (1): 1-KRT AS path: I Thread: junos-main
意味
出力には、R0 から宛先 R7 までのルートが表示されます。これには、マイクロループ回避パスと、R0 と R7 間のリンクが有効になった後のポストコンバージェンスパスが含まれます。