例: PIM Make-Before-Break Join Load Balancing の設定
PIM の自動 Make-Before-Break Join ロード バランシング機能について
PIM の自動 make-before-break(MBB)参加ロード バランシング機能は、ECMP パスにインターフェイスを追加するときにトラフィックの中断を最小限に抑え、等コスト マルチパス(ECMP)リンク上の PIM join の再分配を引き起こします。
既存の PIM join 負荷分散機能により、ECMP リンク間でのジョインの分散が可能です。リンクに障害が発生した場合、残りの ECMP リンク間で結合が再分配され、トラフィックが失われます。インターフェイスが追加 clear pim join-distribution
された場合、コマンドが新しいインターフェイスへの既存のジョインのロードバランシングに使用されていない限り、このジョインの分散に変更はありません。PIM の自動 MBB join ロード バランシング機能が設定されている場合、このプロセスは自動的に実行されます。
この機能は、階層レベルのステートメントをautomatic
使用して有効[edit protocols pim join-load-balance]
にできます。新しいネイバーが使用可能なstandby-path-creation-delay seconds
[edit protocols pim]
場合、隣接ノードへのパス(スタンバイ パス)を作成するために必要な時間は、階層レベルで ステートメントを使用して設定できます。このステートメントがない場合、スタンバイ パスは直ちに作成され、新しいネイバーがネットワークに追加されると直ちに参加が再分配されます。トラフィックがない場合、join をidle-standby-path-switchover-delay seconds
スタンバイ パスに移動するには、ステートメントが階層レベルで設定[edit protocols pim]
されます。このステートメントがない場合、スタンバイ パスでトラフィックを受信するまで、結合は移動されません。
protocols { pim { join-load-balance { automatic; } standby-path-creation-delay seconds; idle-standby-path-switchover-delay seconds; } }
例: PIM Make-Before-Break Join Load Balancing の設定
この例では、PIM make-before-break(MBB)join ロード バランシング機能を設定する方法を示しています。
要件
この例では、次のハードウェアとソフトウェアのコンポーネントを使用しています。
M Series マルチサービス エッジ ルーター(M120 と M320 のみ)、MX シリーズ 5G ユニバーサル ルーティング プラットフォーム、または T Series コア ルーター(TX マトリクスと TX マトリクス プラスのみ)を組み合わせて使用できる 3 つのルーター。
Junos OS 12.2以降を参照してください。
MBB 機能を設定する前に、以下を確認してください。
デバイス インターフェイスを設定しました。
デバイス上の IPv4 および IPv6 ルートの両方に対して、内部ゲートウェイ プロトコル(IGP)を設定しました(例:OSPF および OSPFv3)。
任意の 2 つのルーター(ルーター R1、R2 など)上で VLAN を使用して、複数の ECMP インターフェイス(論理トンネル)を設定します。
概要
Junos OS PIM の自動 MBB join ロード バランシング機能を備え、等コスト マルチパス(ECMP)パス上のすべてのアップストリーム PIM ネイバーに PIM ジョインを均等に再分配します。インターフェイスが ECMP パスに追加された場合、MBB はトラフィックの中断を最小限に抑えて代替パスへの切り替えを提供します。
トポロジ
この例では、3つのルーターが送信元と受信者の間で直線的に接続されています。プロトコルIGP PIM スパース モードは、3 つのルーターすべてで設定されます。ソースはルーター R0 に接続され、ルーター R1 と R2 の間には 5 つのインターフェイスが設定されています。レシーバはルーター R2 に接続され、PIM の自動 MBB join ロード バランシング R2 に設定されています。
図 1 は 、この例で使用されているトポロジを示しています。
![Configuring PIM Automatic MBB Join Load Balancing](/documentation/us/en/software/junos/multicast/images/g041218.gif)
構成
CLI迅速な設定
この例を迅速に設定するには、以下のコマンドをコピーして、テキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致する必要がある詳細情報を変更してから、コマンドを階層レベルで CLI [edit]
にコピー アンド ペーストします。
ルーター R0(ソース)
set protocols pim interface all mode sparse set protocols pim interface all version 2 set protocols pim rp static address 10.255.12.34 set protocols pim rp static address abcd::10:255:12:34
ルーター R1(RP)
set protocols pim interface all mode sparse set protocols pim interface all version 2 set protocols pim rp local family inet address 10.255.12.34 set protocols pim rp local family inet6 address abcd::10:255:12:34
ルーター R2(レシーバー)
set protocols pim interface all mode sparse set protocols pim interface all version 2 set protocols pim rp static address 10.255.12.34 set protocols pim rp static address abcd::10:255:12:34 set protocols mld interface ge-0/0/3 version 1 set protocols mld interface ge-0/0/3 static group ff05::e100:1 group-count 100 set protocols pim join load-balance automatic set protocols pim standby-path-creation-delay 5 set protocols pim idle-standby-path-switchover-delay 10
PIM MBB Join Load Balancing の設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。デバイスのナビゲーションの詳細については、「 CLI ガイド 」 の「 設定モードでの CLI Junos OS CLI エディターの使用 」を 参照してください。
PIM MBB join ロード バランシングを設定するには、次の手順に従います。
3 つのルーターすべてで PIM スパース モードを設定します。
[edit protocols pim interface all] user@host# set mode sparse user@host# set version 2
ルーター R1 を RP として設定します。
[edit protocols pim rp local] user@R1# set family inet address 10.255.12.34 user@R1# set family inet6 address abcd::10:255:12:34
非 RP ルーター(R0 および R2)で RP スタティック アドレスを設定します。
[edit protocols pim rp ] user@host# set static address 10.255.12.34 user@host# set static address abcd::10:255:12:34
ルーター R2 上の ECMP インターフェイス用に MLD(Multicast Listener Discovery)グループを設定します。
[edit protocols mld interface ge-0/0/3] user@R2# set version 1 user@R2# set static group ff05::e100:1 group-count 100
レシーバ ルーター(ルーター R2)で PIM MBB join 負荷分散機能を設定します。
[edit protocols pim] user@R2# set join load-balance automatic user@R2# set standby-path-creation-delay 5 user@R2# set idle-standby-path-switchover-delay 10
結果
設定モードから、 コマンドを入力して設定を確認 show protocols
します。出力結果に意図した設定結果が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R0# show protocols ospf { area 0.0.0.0 { interface lo0.0; interface ge-0/0/3.1; interface ge-0/0/3.2; interface ge-0/0/3.3; interface ge-0/0/3.4; interface ge-0/0/3.5; } } ospf3 { area 0.0.0.0 { interface lo0.0; interface ge-0/0/3.1; interface ge-0/0/3.2; interface ge-0/0/3.3; interface ge-0/0/3.4; interface ge-0/0/3.5; } } pim { rp { static { address 10.255.12.34; address abcd::10:255:12:34; } } interface all { mode sparse; version 2; } interface fxp0.0 { disable; } interface ge-0/0/3.1; interface ge-0/0/3.2; interface ge-0/0/3.3; interface ge-0/0/3.4; interface ge-0/0/3.5; }
user@R1# show protocols ospf { area 0.0.0.0 { interface lo0.0; interface ge-0/0/3.1; interface ge-0/0/3.2; interface ge-0/0/3.3; interface ge-0/0/3.4; interface ge-0/0/3.5; } } ospf3 { area 0.0.0.0 { interface lo0.0; interface ge-0/0/3.1; interface ge-0/0/3.2; interface ge-0/0/3.3; interface ge-0/0/3.4; interface ge-0/0/3.5; } } pim { rp { local { family inet { address 10.255.12.34; } family inet6 { address abcd::10:255:12:34; } } } interface all { mode sparse; version 2; } interface fxp0.0 { disable; } interface ge-0/0/3.1; interface ge-0/0/3.2; interface ge-0/0/3.3; interface ge-0/0/3.4; interface ge-0/0/3.5; }
user@R2# show protocols mld { interface ge-0/0/3.1 { version 1; static { group ff05::e100:1 { group-count 100; } } } ospf { area 0.0.0.0 { interface lo0.0; interface ge-1/0/7.1; interface ge-1/0/7.2; interface ge-1/0/7.3; interface ge-1/0/7.4; interface ge-1/0/7.5; interface ge-0/0/3.1; } } ospf3 { area 0.0.0.0 { interface lo0.0; interface ge-1/0/7.1; interface ge-1/0/7.2; interface ge-1/0/7.3; interface ge-1/0/7.4; interface ge-1/0/7.5; interface ge-0/0/3.1; } } pim { rp { static { address 10.255.12.34; address abcd::10:255:12:34; } } interface all { mode sparse; version 2; } interface fxp0.0 { disable; } interface ge-1/0/7.1; interface ge-1/0/7.2; interface ge-1/0/7.3; interface ge-1/0/7.4; interface ge-1/0/7.5; interface ge-0/0/3.1; join-load-balance { automatic; } standby-path-creation-delay 5; idle-standby-path-switchover-delay 10; }
検証
インターフェイス設定の検証
目的
設定されたインターフェイスが機能されていることを検証します。
アクション
レシーバーからルーター R2 に 100(S、G)参加を送信します。ルーター R2 の動作モードから、 コマンドを実行 show pim interfaces します。
user@R2> show pim interfaces Stat = Status, V = Version, NbrCnt = Neighbor Count, S = Sparse, D = Dense, B = Bidirectional, DR = Designated Router, P2P = Point-to-point link, Active = Bidirectional is active, NotCap = Not Bidirectional Capable Name Stat Mode IP V State NbrCnt JoinCnt(sg/*g) DR address ge-0/0/3.1 Up S 4 2 DR,NotCap 0 0/0 70.0.0.1 ge-1/0/7.1 Up S 4 2 DR,NotCap 1 20/0 14.0.0.2 ge-1/0/7.2 Up S 4 2 DR,NotCap 1 20/0 14.0.0.6 ge-1/0/7.3 Up S 4 2 DR,NotCap 1 20/0 14.0.0.10 ge-1/0/7.4 Up S 4 2 DR,NotCap 1 20/0 14.0.0.14 ge-1/0/7.5 Up S 4 2 DR,NotCap 1 20/0 14.0.0.18
この出力には、PIM プロトコルで使用するために設定されたインターフェイスすべてが表示されます。フィールド Stat
には、インターフェイスの現在の状態が示されます。フィールド DR address
には、設定済みのIPアドレスが一覧表示されます。すべてのインターフェイスが動作しています。出力でインターフェイスが動作しているという表示がされない場合は、進む前にインターフェイスを再構成します。
意味
設定済みのすべてのインターフェイスは、ネットワーク上で機能します。
PIM の検証
目的
PIM が設定されたネットワークで動作されていることを検証します。
アクション
動作モードから コマンドを入力 show pim statistics します。
user@R2> show pim statistics PIM Message type Received Sent Rx errors V2 Hello 4253 5269 0 V2 Register 0 0 0 V2 Register Stop 0 0 0 V2 Join Prune 0 1750 0 V2 Bootstrap 0 0 0 V2 Assert 0 0 0 V2 Graft 0 0 0 V2 Graft Ack 0 0 0 V2 Candidate RP 0 0 0 V2 State Refresh 0 0 0 V2 DF Election 0 0 0 V1 Query 0 0 0 V1 Register 0 0 0 V1 Register Stop 0 0 0 V1 Join Prune 0 0 0 V1 RP Reachability 0 0 0 V1 Assert 0 0 0 V1 Graft 0 0 0 V1 Graft Ack 0 0 0 AutoRP Announce 0 0 0 AutoRP Mapping 0 0 0 AutoRP Unknown type 0 Anycast Register 0 0 0 Anycast Register Stop 0 0 0 Global Statistics Hello dropped on neighbor policy 0 Unknown type 0 V1 Unknown type 0 Unknown Version 0 Neighbor unknown 0 Bad Length 0 Bad Checksum 0 Bad Receive If 0 Rx Bad Data 0 Rx Intf disabled 0 Rx V1 Require V2 0 Rx V2 Require V1 0 Rx Register not RP 0 Rx Register no route 0 Rx Register no decap if 0 Null Register Timeout 0 RP Filtered Source 0 Rx Unknown Reg Stop 0 Rx Join/Prune no state 0 Rx Join/Prune on upstream if 0 Rx Join/Prune for invalid group 0 Rx Join/Prune messages dropped 0 Rx sparse join for dense group 0 Rx Graft/Graft Ack no state 0 Rx Graft on upstream if 0 Rx CRP not BSR 0 Rx BSR when BSR 0 Anycast Register Stop 0 0 0
フィールド V2 Hello
には、受信したPIM helloメッセージの数がリストされます。フィールド V2 Join Prune
には、値に達する前に送信された参加メッセージの join-prune-timeout
数がリストされます。両方の値が 0 以外の場合、PIM は機能します。
意味
PIM はネットワークで動作します。
PIM の自動 MBB Join ロード バランシング機能の検証
目的
PIM の自動 MBB join ロード バランシング機能が、設定された方法で機能するように検証します。
アクション
MBB 機能がルーター R2 に及ぼす影響を確認するには、次の方法に示します。
インターフェイスを無効化 show pim interfaces する前に、動作モード コマンドを実行します。
user@R2> show pim interfaces Stat = Status, V = Version, NbrCnt = Neighbor Count, S = Sparse, D = Dense, B = Bidirectional, DR = Designated Router, P2P = Point-to-point link, Active = Bidirectional is active, NotCap = Not Bidirectional Capable Name Stat Mode IP V State NbrCnt JoinCnt(sg/*g) DR address ge-0/0/3.1 Up S 4 2 DR,NotCap 0 0/0 70.0.0.1 ge-1/0/7.1 Up S 4 2 DR,NotCap 1 20/0 14.0.0.2 ge-1/0/7.2 Up S 4 2 DR,NotCap 1 20/0 14.0.0.6 ge-1/0/7.3 Up S 4 2 DR,NotCap 1 20/0 14.0.0.10 ge-1/0/7.4 Up S 4 2 DR,NotCap 1 20/0 14.0.0.14 ge-1/0/7.5 Up S 4 2 DR,NotCap 1 20/0 14.0.0.18
フィールド
JoinCnt(sg/*g)
は、100 の結合が 5 つのインターフェイス間で同じように分散している示しています。インターフェイスを無効
ge-1/0/7.5
にします。[edit] user@R2# set interfaces ge-1/0/7.5 disable user@R2# commit
コマンドを show pim interfaces 実行して、参加のロード バランシングが発生しているチェックをします。
user@R2> show pim interfaces Stat = Status, V = Version, NbrCnt = Neighbor Count, S = Sparse, D = Dense, B = Bidirectional, DR = Designated Router, P2P = Point-to-point link, Active = Bidirectional is active, NotCap = Not Bidirectional Capable Name Stat Mode IP V State NbrCnt JoinCnt(sg/*g) DR address ge-0/0/3.1 Up S 4 2 DR,NotCap 0 0/0 70.0.0.1 ge-1/0/7.1 Up S 4 2 DR,NotCap 1 25/0 14.0.0.2 ge-1/0/7.2 Up S 4 2 DR,NotCap 1 25/0 14.0.0.6 ge-1/0/7.3 Up S 4 2 DR,NotCap 1 25/0 14.0.0.10 ge-1/0/7.4 Up S 4 2 DR,NotCap 1 25/0 14.0.0.14
フィールド
JoinCnt(sg/*g)
は、100 個の結合が 4 つのアクティブなインターフェイス間で同じように再分配されるのを示しています。削除したインターフェイスをルーター R2 に追加します。
[edit] user@R2# delete interfaces ge-1/0/7.5 disable user@R2# commit
コマンドを show pim interfaces 実行し、非ロード バランシングのインターフェイスを有効にした後に、参加の一部が起こっているチェックをします。
user@R2> show pim interfaces Stat = Status, V = Version, NbrCnt = Neighbor Count, S = Sparse, D = Dense, B = Bidirectional, DR = Designated Router, P2P = Point-to-point link, Active = Bidirectional is active, NotCap = Not Bidirectional Capable Name Stat Mode IP V State NbrCnt JoinCnt(sg/*g) DR address ge-0/0/3.1 Up S 4 2 DR,NotCap 0 0/0 70.0.0.1 ge-1/0/7.1 Up S 4 2 DR,NotCap 1 20/0 14.0.0.2 ge-1/0/7.2 Up S 4 2 DR,NotCap 1 20/0 14.0.0.6 ge-1/0/7.3 Up S 4 2 DR,NotCap 1 20/0 14.0.0.10 ge-1/0/7.4 Up S 4 2 DR,NotCap 1 20/0 14.0.0.14 ge-1/0/7.5 Up S 4 2 DR,NotCap 1 20/0 14.0.0.18
フィールド
JoinCnt(sg/*g)
は、100 の結合が 5 つのインターフェイス間で同じように分散している示しています。メモ:この出力は、ステップ 1 の出力と似ている必要があります。
意味
PIM の自動 MBB join ロード バランシング機能は、設定された通り機能します。