ストリクトSPF SIDとIGPのショートカットを有効にする方法
ストリクトSPF(SR-Algo 1)とIGPのショートカットについて
ストリクトSPF(SR-Algo 1)およびIGPショートカットには、以下のメリットがあります
ストリクトSPF(SR-Algo 1)とIGPのショートカットのメリット
-
セグメントルーティング機能を強化します。
-
最短の IGP パスを使用してトラフィックを転送する SR-TE トンネルを作成することで、ループを回避するのに役立ちます。
-
SPRINGを有効にした場合、SR-Algo 0(デフォルトSPF)と共にSR-Algo 1(ストリクトSPF)をデフォルトで使用する機能。
ストリクト SPF(SR-Algo 1)と IGP のショートカットの概要
セグメントルーティング(SR)は、ネットワークの状態情報を中間ルーターから削除し、ingressノードのパケットヘッダーにパス情報を挿入することで、ネットワークの運用を簡素化して、リソース要件を軽減します。しかし、場合によっては、ネストされた SR-TE トンネルが存在し、デバイスがこれらの SR-TE トンネルを介してトラフィックを転送すると、トラフィックがループして輻輳が発生し、最短の IGP パスを介してトラフィックが転送されないことがあります。
Junos OS リリース 21.1R1 以降では、SR アルゴリズム 1(ストリクト SPF)をアドバタイズし、ストリクト SPF SID を使用して SR-TE トンネルを作成できます。このようなSR-TEトンネルは、ローカルポリシーではなく、厳密なパスSPFのみを使用してトンネルのエンドポイントに到達します。インポートポリシーでプレフィックスを指定すると、それに基づいてトンネルが特定の宛先にトラフィックをリダイレクトできます。さらに、SPRINGを有効にすると、SR-Algo 0(デフォルトSPF)とSR-Algo 1(ストリクトSPF)をデフォルトで使用できます。
IS-IS LSPDUでストリクトSPF SIDをアドバタイズし、これらのSIDを使用してSR-TEトンネルを作成し、ループを発生させずに最短のIGPパスを介してトラフィックを転送できます。ラベルの付いたIS-ISルートは、必要に応じて、 inet-mpls family
または inet6-mpls family
設定で、事前に定義されたショートカットステートメントを持つトンネル spring-te tunnel
を使用します。
次の図は、厳密な SPF SID なしで作成された SR-TE トンネルと、厳密な SPF(SR-Algo 1)SID を使用して作成された SR-TE トンネルの違いを示しています。

図 A は、既存の SR-TE トンネル(または RSVP トンネル)を P1 ノードのイングレスとして選択した場合に、最短の IGP パスを使用してトラフィックを転送する SR-TE トンネルが作成されないネットワーク トポロジーを示しています。このトポロジーには 2 つの SR-TE トンネルが存在します。P0 を経由して P1 から P6(トンネル a、青色)に、もう 1 つのトンネルは P6 を経由して P1 から P7(トンネル b、緑色)です。この場合、トンネル(b)は最短の IGP パスを使用して作成されません。したがって、既存のトンネルを使用して P6 に到達し、次に P7 に転送する代わりに、P1 ノードで inet-mpls
ショートカット ステートメントが有効になっているため、ラベル IS-IS ルートは SR-TE トンネル(a)を使用して P7 宛てのトラフィックを転送し、最短の IGP パスを回避し、トンネル(a)でトラフィック輻輳が発生します。
図Bは、トラフィックがループするトポロジーを示しています。ラベルの付いた IS-IS ルートがイングレスとして SR-TE トンネルを選択し、別の SR-TE トンネルにリダイレクトされると、トラフィックはループします。このトポロジーには 2 つの SR-TE トンネルがあり、1 つは P2 経由で P0 から P6 へ、もう 1 つは P1 から P6 経由で P2 へです。P0 から P6 ノードに送信されたパケットの場合、P0 でこのノードが宛先 2.2.2.6 のイングレスとして SR-TE トンネルを選択すると、P2 ラベルをプッシュして P1 に転送します。P1 では、mpls.0 テーブルにラベルを持つ別の SR-TE トンネルが P6 経由で存在します。P1がP2ノードに到達するためにこのトラフィックを受信すると、SR-TEトンネル上のL-ISISルートショートカットを使用し、同じラベルでP6をプッシュしてからP0ノードに転送します。P0では、トップラベルはP6と同じです。これは、SR-TEが再びトンネルする場合、P2ラベルを押してトラフィックをP1に転送し、ループすることを意味します。
図 C は、ストリクト SPF SID を使用して作成された SR-TE トンネルを示しており、既存の SR-Algo 0 とともに SR-Algo 1 をサポートするようになりました。ストリクト SPF SID ルートが IS-IS にインストールされるのは、ネクストホップ ノードが SR アルゴ 1 にも対応している場合のみです。それ以外の場合、トラフィックはドロップされます。厳密なSPF SIDを使用してSR-TEトンネルを作成し、デバイスがSR Algo 1のサポートをアドバタイズしなかったパス上のどこかにいた場合、トンネルはダウンしたままになります。トンネルがストリクトSPF SIDを使用して作成されると、別のトンネルエンドポイントに到達するために最短のIGPパスが使用されるため、輻輳が回避されます。トラフィックがループするシナリオ(図2を参照)では、ストリクトSPF SIDは、SRアルゴ1をサポートするSRドメインに参加している各ノードによってのみIS-IS LSPDUでアドバタイズされます。Strict-SPF SID または通常の SID を使用して作成された複数の SR-TE トンネルが存在する可能性があります。オペレーターが明示的なルートオブジェクト(ERO)を作成する前に「use-for-shortcut」ステートメントを設定すると、トンネルは厳密なSPF SIDを使用して作成されます。
例:SPRINGでIS-ISプロトコルの厳密なSPF SIDを設定し、IGPショートカットを有効にする
概要
通常、ネットワーク内にネストされたSR-TEトンネルが存在し、デバイスがこれらのSR-TEトンネルを介してトラフィックを転送する場合、トラフィックが最短のIGPパスで転送されないことがあります。その結果、トラフィックがループする可能性があります。
Junos OS リリース 21.1R1 以降では、SR アルゴリズムをアドバタイズし、厳密な SPF SID を使用して SR-TE トンネルを作成し、ループを回避するために最短の IGP パスを使用してトラフィックを転送できます。ラベルの付いたIS-ISルートは、spring-te
を有効にすると、inet-mpls
ファミリー(またはinet6-mpls
ファミリー)の下に存在する事前定義されたショートカットノブとともに、このトンネルを使用するようになります。
必要条件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
-
MXシリーズルーター8台
-
すべてのデバイスでJunos OS リリース 21.1R1 以降が作動
位相幾何学
次の例では、複数の SR-TE トンネルを持つネットワークでループがどのように発生するか、および SR アルゴリズム 1 によって作成された厳密な SPF SID を使用してループを解決する方法を示しています。トポロジー例には、2 つの SR-TE トンネルがあります。R0>R2>R6 からのトンネル A と R1>R6>R2 からのトンネル B です。
R0 では、R6 宛てのパケットは通常、IGP 最短パス(R0>R5>R6)を使用します。イングレスノードをR0(トンネルA)としてSR-TEトンネルを設定する場合、パケットは最初のホップ(宛先:R6、ラベル:403002)としてR2を通過する必要があります。つまり、R6を宛先とするトラフィックはR0>R2>R6パスを通る必要があります。R2に到達するには、パケットが最初にラベル403002を持つR0-R1インターフェイスで最初にR1に到達する必要があります。R2 のラベル 403002は、ラベル スタックを変更せずに R1>R2 から転送されます。ただし、R1(R1>R6>R2)には、宛先 R2 とラベル 403006 を持つ 2 つ目の SR-TE トンネル(トンネル B)が設定されています。R0 から R1 でトップ ラベルが R2(403002)になったパケットは、2 番目のトンネルを使用して R6 に到達します。ただし、R1でR6に到達するには、R1-R0(R1>R0>R5>R6)を使用する必要があります。したがって、パケットは再び R0 に到達し、プロセス全体が繰り返され、ループが発生します。
SR アルゴリズム 1 がすべてのデバイスでアクティブ化され、そのラベルが関連デバイスでアクティブ化されている場合、イングレス デバイス R0 から宛先デバイス R6 へのパケットが R1(トンネル A)に到達すると、パケットは R2 に転送されます。R1 には、R6 をネクストホップ(トンネル B)と見なすように LSP が設定されていても、代わりに IGP 最短パス(R1>R2)を使用します。R2 からトンネル A を経由して R6 に到達します。

構成
CLIクイック構成
この例を素早く設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除し、ネットワーク設定に合わせて必要な詳細を変更し、コマンドを[edit]階層レベルのCLIにコピー&ペーストしてください。
MXシリーズ ルーターの MPC のタイプによっては、IS-IS 遅延機能をサポートするために、拡張 IP サービスを明示的に有効にする必要がある場合があります。 set chassis network-services enhanced-ip
設定ステートメントをコミットすると、システムを再起動するように求められます。
R0
set system host-name R0 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.10.10/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.10.20/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.10/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5010.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.10/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3100 set policy-options policy-statement sspf term 1 then prefix-segment index 3000 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1000 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering tunnel-source-protocol spring-te set protocols isis traffic-engineering family inet-mpls shortcuts set protocols isis export sspf set protocols mpls traceoptions file sspf-igp-short set protocols mpls traceoptions file size 100m set protocols mpls traceoptions file world-readable set protocols mpls traceoptions flag ted-export set protocols mpls traceoptions flag ted-import set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all deactivate protocols rsvp interface all set protocols rsvp interface fxp0.0 disable deactivate protocols rsvp interface fxp0.0 disable set protocols source-packet-routing segment-list v4R0R7 h1 label 403102 set protocols source-packet-routing source-routing-path V4_R7 use-for-shortcut set protocols source-packet-routing source-routing-path V4_R7 to 192.168.255.6 set protocols source-packet-routing source-routing-path V4_R7 primary v4R0R7 set routing-options router-id 192.168.255.10 set routing-options autonomous-system 65540
R1
set system host-name R1 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.10.1/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.12.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.1/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5001.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.1/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3101 set policy-options policy-statement sspf term 1 then prefix-segment index 3001 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1001 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering tunnel-source-protocol spring-te set protocols isis traffic-engineering family inet-mpls shortcuts set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing segment-list v4R1R2 h1 label 403106 set protocols source-packet-routing source-routing-path V4_R2 use-for-shortcut set protocols source-packet-routing source-routing-path V4_R2 to 192.168.255.2 set protocols source-packet-routing source-routing-path V4_R2 primary v4R1R2 set routing-options router-id 192.168.255.1 set routing-options autonomous-system 65540
R2の
set system host-name R2 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.23.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.12.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.2/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5002.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.2/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3102 set policy-options policy-statement sspf term 1 then prefix-segment index 3002 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1002 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis level 2 wide-metrics-only set protocols isis level 1 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering tunnel-source-protocol spring-te set protocols isis traffic-engineering family inet-mpls shortcuts set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing segment-list v4R2R6 h1 label 403100 set protocols source-packet-routing segment-list v4R2R6 h2 label 403107 set protocols source-packet-routing source-routing-path v4_R6 use-for-shortcut set protocols source-packet-routing source-routing-path v4_R6 to 192.168.255.2 set protocols source-packet-routing source-routing-path v4_R6 primary v4R2R6 set routing-options router-id 192.168.255.2 set routing-options autonomous-system 65540
R3
set system host-name R3 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.23.3/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.34.3/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.3/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5003.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.3/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3103 set policy-options policy-statement sspf term 1 then prefix-segment index 3003 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1003 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis level 2 wide-metrics-only set protocols isis level 1 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing set routing-options router-id 192.168.255.3 set routing-options autonomous-system 65540
R4の
set system host-name R4 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.34.4/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.47.4/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.4/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5004.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.4/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3104 set policy-options policy-statement sspf term 1 then prefix-segment index 3004 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1004 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis level 2 wide-metrics-only set protocols isis level 1 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing set routing-options router-id 192.168.255.4 set routing-options autonomous-system 65540
R5の
set system host-name R5 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.56.5/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.10.5/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.5/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5005.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.5/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3105 set policy-options policy-statement sspf term 1 then prefix-segment index 3005 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1005 set protocols isis source-packet-routing node-segment ipv6-index 2005 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis level 2 wide-metrics-only set protocols isis level 1 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing set routing-options router-id 192.168.255.5 set routing-options autonomous-system 65540
R6の
set system host-name R6 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.56.6/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.67.6/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.6/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5006.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.6/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3106 set policy-options policy-statement sspf term 1 then prefix-segment index 3006 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1006 set protocols isis source-packet-routing node-segment ipv6-index 2006 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis level 2 wide-metrics-only set protocols isis level 1 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing set routing-options router-id 192.168.255.6 set routing-options autonomous-system 65540
R7の
set system host-name R7 set system ports console log-out-on-disconnect set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.0.47.7/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.67.7/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.7/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5007.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set policy-options policy-statement sspf term 1 from route-filter 192.168.255.7/32 exact set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3107 set policy-options policy-statement sspf term 1 then prefix-segment index 3007 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1007 set protocols isis source-packet-routing node-segment ipv6-index 2007 set protocols isis source-packet-routing flex-algorithm 128 set protocols isis level 2 wide-metrics-only set protocols isis level 1 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing set protocols isis export sspf set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols source-packet-routing set routing-options router-id 192.168.255.7 set routing-options autonomous-system 65540
SPRINGでデフォルトSID(アルゴリズム0)を有効にする
-
8 つのルーターすべてで、ホスト名、IPv4 アドレス、ループバック インターフェイス アドレス、NET アドレス、ファミリー ISO、ファミリー MPLS(セグメント ルーティング ルーティング パスのラベルの最大数)、
enhanced-ip
モード、ルーター ID、自律システム(AS)番号などの基本的なデバイス設定を行います。user@R0# set chassis network-services enhanced-ip set system host-name R0 set interfaces ge-0/0/0 unit 0 family inet address 10.0.10.10/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 0 family inet address 10.0.10.20/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 192.168.255.10/32 set interfaces lo0 unit 0 family iso address 49.1921.6825.5010.00 set interfaces lo0 unit 0 family mpls maximum-labels 8 set routing-options router-id 192.168.255.10 set routing-options autonomous-system 65540
-
8つすべてのデバイスのすべてのインターフェイスでIS-IS、RSVP、およびMPLSプロトコルを有効にします。また、MPLSのトレースファイルや動作を指定することもできます。
user@R0# set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols mpls traceoptions file sspf-igp-short set protocols mpls traceoptions file size 100m set protocols mpls traceoptions file world-readable set protocols mpls traceoptions flag ted-export set protocols mpls traceoptions flag ted-import set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols rsvp interface all deactivate protocols rsvp interface all set protocols rsvp interface fxp0.0 disable deactivate protocols rsvp interface fxp0.0 disable
-
すべてのルーターがループバックアドレスをアドバタイズするように設定し、プレフィックスセグメントのインデックスとノードセグメントを指定します。
user@R0# set policy-options policy-statement sspf term 1 from route-filter 192.168.255.10/32 exact set policy-options policy-statement sspf term 1 then prefix-segment index 3000 set policy-options policy-statement sspf term 1 then prefix-segment node-segment set policy-options policy-statement sspf term 1 then accept
-
SPRING用にSRGBのstart-labelとindex-rangeを設定します。IPv4 ノード セグメント インデックスの値を設定し、128 フレックス アルゴリズムを割り当てます。
user@R0# set protocols isis source-packet-routing srgb start-label 400000 set protocols isis source-packet-routing srgb index-range 64000 set protocols isis source-packet-routing node-segment ipv4-index 1000 set protocols isis source-packet-routing flex-algorithm 128
-
IS-ISプロトコルのSPF(最短パス優先)アルゴリズムのオプションを設定して、R0、R1、R2のバックアップパスを計算するためのソースパケットルーティングノードセグメントラベルを有効にします。最大ラベル数を 8 に設定します。
user@R0# set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols isis backup-spf-options use-post-convergence-lfa maximum-backup-paths 8 set protocols isis backup-spf-options use-source-packet-routing
-
トラフィック制御オプションを設定して、
spring-te
からラベルスイッチパスを選択し、MPLSパスをR0、R1、R2のネクストホップとして使用します。IS-IS エクスポート ポリシーを設定します。user@R0# set protocols isis traffic-engineering tunnel-source-protocol spring-te set protocols isis traffic-engineering family inet-mpls shortcuts set protocols isis export sspf
-
R2 を宛先 R6 へのネクストホップとして R2 を使用して R2 ラベル 403002(アルゴリズム 0 がデフォルトの SPF SID を作成するために作成)を R0 に設定し、
use-for-shortcut
を有効にします。R1 と R2 にもラベルを作成します。user@R0# set protocols source-packet-routing segment-list v4R0R7 h1 label 403002 set protocols source-packet-routing source-routing-path V4_R7 use-for-shortcut set protocols source-packet-routing source-routing-path V4_R7 to 192.168.255.6 set protocols source-packet-routing source-routing-path V4_R7 primary v4R0R7
user@R1# set protocols source-packet-routing segment-list v4R1R2 h1 label 403006 set protocols source-packet-routing source-routing-path V4_R2 use-for-shortcut set protocols source-packet-routing source-routing-path V4_R2 to 192.168.255.2 set protocols source-packet-routing source-routing-path V4_R2 primary v4R1R2
user@R2# set protocols source-packet-routing segment-list v4R2R6 h1 label 403000 set protocols source-packet-routing segment-list v4R2R6 h2 label 403007 set protocols source-packet-routing source-routing-path v4_R6 use-for-shortcut set protocols source-packet-routing source-routing-path v4_R6 to 192.168.255.2 set protocols source-packet-routing source-routing-path v4_R6 primary v4R2R6
-
コマンドを入力して
commit
設定をコミットします。
SPRINGでストリクトSPF SID(アルゴリズム1)を有効にする
-
デフォルトのSPF SIDに使用されるラベルを、厳密なSPF SIDに使用されるラベルに置き換えるには、次のように設定します。
user@R0# delete protocols source-packet-routing segment-list v4R0R7 h1 label 403002 set protocols source-packet-routing segment-list v4R0R7 h1 label 403102 set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3100
user@R1# delete protocols source-packet-routing segment-list v4R1R2 h1 label 403006 set protocols source-packet-routing segment-list v4R1R2 h1 label 403106 set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3101
user@R2# delete protocols source-packet-routing segment-list v4R2R6 h1 label 403000 set protocols source-packet-routing segment-list v4R2R6 h1 label 403100 delete protocols source-packet-routing segment-list v4R2R6 h2 label 403007 set protocols source-packet-routing segment-list v4R2R6 h2 label 403107 set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3102
-
ネットワーク内の他のすべてのルーターでアルゴリズム 1 を設定/アクティブ化します。
user@R3# set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3103
user@R4# set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3104
user@R5# set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3105
user@R6# set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3106
user@R7# set policy-options policy-statement sspf term 1 then prefix-segment algorithm 1 index 3107
-
コマンドを入力して
commit
すべての設定をコミットします。
業績
構成の結果を確認します。
user@R0# show system { host-name R0; ports { console log-out-on-disconnect; } } chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { unit 0 { family inet { address 10.0.10.10/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { unit 0 { family inet { address 10.0.10.20/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 192.168.255.10/32; } family iso { address 49.1921.6825.5010.00; } family mpls { maximum-labels 8; } } } } policy-options { policy-statement sspf { term 1 { from { route-filter 192.168.255.10/32 exact; } then { prefix-segment { algorithm 1 index 3100; index 3000; node-segment; } accept; } } } } protocols { isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface all; interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 400000 index-range 64000; node-segment ipv4-index 1000; flex-algorithm 128; } backup-spf-options { use-post-convergence-lfa { maximum-labels 8; maximum-backup-paths 8; } use-source-packet-routing; } traffic-engineering { tunnel-source-protocol { spring-te; } family inet-mpls { shortcuts; } } export sspf; } mpls { traceoptions { file sspf-igp-short size 100m world-readable; flag ted-export; flag ted-import; } interface all; interface fxp0.0 { disable; } } rsvp { inactive: interface all; interface fxp0.0 { inactive: disable; } } source-packet-routing { segment-list v4R0R7 { h1 label 403102; } source-routing-path V4_R7 { use-for-shortcut; to 192.168.255.6; primary { v4R0R7; } } } } routing-options { router-id 192.168.255.10;
検証
IS-IS隣接関係の確認
目的
ルーティングデバイス上で予期されるIS-IS隣接関係を確認します。
アクション
動作モードから、 show isis adjacency
コマンドを入力します。
user@R0> show isis adjacency Interface System L State Hold (secs) SNPA ge-0/0/0.0 R1 1 Up 23 56:4:15:0:1c:d2 ge-0/0/0.0 R1 2 Up 25 56:4:15:0:1c:d2 ge-0/0/1.0 R5 1 Up 25 56:4:15:0:1c:eb ge-0/0/1.0 R5 2 Up 24 56:4:15:0:1c:eb
意味
この出力は、R0 が R1 および R5 ルーターにそれぞれ接続された ge-0/0/0.0
インターフェイスと ge-0/0/1.0
インターフェイスで IS-IS 隣接関係の形成に成功したことを示しています。
ルートテーブルinet.3の確認
目的
アドバタイズされた inet.3
ルーティングテーブルを確認します。
アクション
動作モードから show route table inet.3
コマンドを入力します。
regress@R0> show route table inet.3 inet.3: 7 destinations, 8 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.255.1/32 *[L-ISIS/14] 3d 19:43:17, metric 10 > to 10.0.10.1 via ge-0/0/0.0 192.168.255.2/32 *[L-ISIS/14] 3d 19:43:17, metric 20 > to 10.0.10.1 via ge-0/0/0.0, Push 403002 192.168.255.3/32 *[L-ISIS/14] 3d 19:43:17, metric 30 > to 10.0.10.1 via ge-0/0/0.0, Push 403003 192.168.255.4/32 *[L-ISIS/14] 3d 19:43:17, metric 21 > to 10.0.10.1 via ge-0/0/0.0, Push 403004, Push 403002(top) 192.168.255.5/32 *[L-ISIS/14] 3d 19:43:17, metric 10 > to 10.0.10.5 via ge-0/0/1.0 192.168.255.6/32 *[SPRING-TE/8] 3d 19:43:17, metric 1, metric2 20 > to 10.0.10.1 via ge-0/0/0.0, Push 403002 [L-ISIS/14] 3d 19:43:17, metric 1 > to 10.0.10.1 via ge-0/0/0.0, Push 403002 192.168.255.7/32 *[L-ISIS/14] 3d 19:43:17, metric 11 > to 10.0.10.1 via ge-0/0/0.0, Push 403007, Push 403002(top)
意味
この出力は、inet.3テーブル上のルートを表示します。
ルートラベルの確認(デフォルトSPF)
目的
ルーティングデバイス上のデフォルトSPF用に作成されたルートラベルを確認します。
アクション
動作モードから、 show route label 403002
コマンドを入力します。
user@R0> show route label 403002 mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 403002 *[L-ISIS/14] 3d 20:17:24, metric 20 > to 10.0.10.1 via ge-0/0/0.0, Swap 403002
regress@R1> show route label 403002 mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 403002 *[L-ISIS/14] 3d 20:31:53, metric 1 > to 10.0.10.10 via ge-0/0/0.0, Push 403006 403002(S=0) *[L-ISIS/14] 3d 20:31:53, metric 1 > to 10.0.10.10 via ge-0/0/0.0, Push 403006
意味
この出力は、パケットが R2 のラベル 403002を R1 にプッシュして、ネクストホップの R2 に到達していることを示しています。しかし、R1 では、トンネル A で R1 から R2 に転送されるのではなく、トンネル B をピックアップして、ネクスト ホップ R6- 403006のラベルをプッシュします。
ルートラベルの検証(ストリクトSPF)
目的
ルーティングデバイス上のストリクトSPF用に作成されたルートラベルを確認します。
アクション
動作モードから、 show route label 403102
コマンドを入力します。
user@R0> show route label 403102 mpls.0: 32 destinations, 32 routes (32 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 403102 *[L-ISIS/14] 00:36:07, metric 20 > to 10.0.10.1 via ge-0/0/0.0, Swap 403102
regress@R1> show route label 403102 mpls.0: 32 destinations, 32 routes (32 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 403102 *[L-ISIS/14] 00:37:38, metric 10 > to 10.0.12.2 via ge-0/0/1.0, Pop 403102(S=0) *[L-ISIS/14] 00:37:38, metric 10 > to 10.0.12.2 via ge-0/0/1.0, Pop
意味
最初の出力は、R2のラベルを持つパケットがR1に到達したことを示しています。2 番目の出力は、パケットが R1 のトンネル B によって選択されるのではなく、R2(トンネル A 上)に転送されることを示しています。R2に到達すると、トンネルAパスを完了してR6に到達できます。