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-labelsdelay millisecondsステートメントを含めます。マイクロループを効果的に回避するには、ネットワーク内のすべてのノードでこの機能を設定します。
マイクロループ回避は、局所的な障害を非常に高速に検出し、事前に計算されたループフリーの代替パスをアクティブにするTI-LFAのような局所的な修復メカニズムに代わるものではありません。
マイクロループ回避を実装しているルーターは、イベントのリンク状態の更新を受信した後にのみ、マイクロループ回避パスを計算します。そのため、マイクロループ回避メカニズムは、局所的な障害を非常に高速に検出し、PFEレベルで事前に計算されたループフリーの代替パスをアクティブにするTI-LFAのような局所的な修復メカニズムに代わるものではありません。上記の例では、R2R3の障害に対してローカル修復メカニズムが存在しない場合、R0が(グローバルコンバージェンスを通じて)障害を検出し、マイクロループ回避パスをプログラムする前に、多くのトラフィック損失が発生します。マイクロループ回避では、障害の検出が遅れるため、トラフィックの損失を回避できません。マイクロループ回避は、マイクロループのみに起因するトラフィック損失を回避します。トラフィックの損失をミリ秒単位に抑えるためには、TI-LFAやマイクロループ回避などのローカル修復メカニズムをネットワーク内のすべてのノードで有効にする必要があります。
マイクロループを回避するために、次のプロセスが使用されます。
1. R は、所定の時間、D への新しいパスを計算した後、ループフリー セグメント ルーティング パスを介して D にパケットを誘導する D のエントリをインストールします。この時間は、ネットワーク内のどのルータの最悪の場合の遅延よりも大きくする必要があります。
2. 設定された遅延時間が経過すると、R は SID のない D のコンバージェンス後のルート エントリをインストールします。
サポートされている機能とサポートされていない機能
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の間の物理リンクが無効であり、管理上ダウンしていることを示しています。
リンクを無効にした後、宛先にインストールされているマイクロループ回避パスを確認します
目的
R0とR1の間でリンクが無効になっている場合、inet.3テーブル内のルートとmpls.0テーブル内のルートラベルの詳細を確認することで、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 は、マイクロループを含むパケットがないことを示します。
マイクロループ回避パスの検証 遅延タイマー終了後のコンバージェンス後のパス変更
目的
遅延タイマー 60000 ミリ秒が経過した後、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 の間でリンクが有効になった後のコンバージェンス後のパスが含まれます。