例:複数の LSP 設定を介したレイヤー 2 回線トラフィック制御

図 1 は、選択した LSP を介して異なるレイヤー 2 回線をトラフィック制御するために設計されたネットワーク トポロジーを示しています。プロバイダ エッジ ルーター PE1 および PE2 間で、ATM AAL5 モードのレイヤー 2 回線がカスタマー エッジ ルーター CE1 および CE2 を接続し、フレーム リレー レイヤー 2 回線がルーター CE3 および CE4 を接続します。トラフィックの分離を維持するために、ATMトラフィックは という名前のgold
コミュニティでLSP1にマッピングされ、フレームリレートラフィックは という名前のコミュニティsilver
でLSP2にマップされます。LSP1はルーターPE1とPE2の間の直接ルートを取り、LSP2はルーターPE1からルーターP0を経由してPE2に移動します。
トラフィック制御に加えて、レイヤー2 回線の制御ワードでレイヤー2 制御情報を送信することができます。この場合、フレームリレー廃棄適格(DE)、前方明示的輻輳通知(FECN)、および後方明示的輻輳通知(BECN)情報が制御ワードにマッピングされます。同様に、ATM セル損失優先度(CLP)と明示的な前方輻輳インジケータ(EFCI)情報が制御ワードにマッピングされます。
複数の LSP を介してレイヤー 2 回線をトラフィック エンジニアリングするには、レイヤー 2 回線のセットをコミュニティに割り当ててから、ポリシーを適用して、目的の LSP を介してコミュニティ トラフィックを送信します。コミュニティを作成するには、 階層レベルで ステートメントを含めcommunity
community-name
ます[edit policy-options]
。レイヤー2 回線をコミュニティに割り当てるには、 階層レベルで ステートメントを含めcommunity community-name
ます[edit protocols l2circuit neighbor neighbor-id interface interface-name]
。特定の LSP を介してコミュニティ トラフィックを送信するには、 階層レベルに [edit policy-options policy-statement policy-name term term-name from]
ステートメントを、 install-next-hop lsp lsp-name
階層レベルに ステートメントを含めcommunity community-name
ます[edit policy-options policy-statement policy-name term term-name then]
。
ルーターCE1 で、ATM AAL5トラフィックを処理できるようにATM2 IQインターフェイス at-0/0/1.32
を設定します。
ルーターCE1
[edit] interfaces { at-0/0/1 { description "to PE1 at-1/1/0"; atm-options { pic-type atm2; # Layer 2 circuits are compatible with vpi 0; # ATM2 IQ interfaces. } unit 0 { encapsulation atm-vc-mux; # Use ATM VC MUX encapsulation on the CE. point-to-point; vci 0.32; family inet { address 10.0.0.1/30; } } } }
ルーターCE3 で、でSONET/SDHインターフェイス so-0/0/1
を設定し、フレームリレートラフィックを処理します。
ルーターCE3
[edit] interfaces so-0/0/1 { description “to PE1 so-1/1/1” encapsulation frame-relay; # Use Frame Relay encapsulation on the CE router. unit 0 { encapsulation frame-relay; point-to-point; dlci 512; family inet { address 10.10.0.1/30; } } }
ルーターPE1で、論理インターフェイスでATM VC多重化CCCカプセル化を使用して、ATM2 IQベースのCE1向けインターフェイスat-1/1/0
を設定します。また、 階層レベルで対応するレイヤー 2 回線モード[edit chassis]
を有効にします。この場合、FPC1.
のPIC1
でAAL5モードを設定する必要があります。 ATM2 IQ ベースのレイヤー 2 回線を設定すると、CLP ビットと EFCI ビットがデフォルトで制御ワードにマップされます。
次に、物理インターフェイスと論理インターフェイスの両方で、フレームリレーCCCカプセル化を使用してフレームリレーインターフェイスso-1/1/1
を設定します。階層レベルで ステートメントと translate-fecn-and-becn
translate-discard-eligible
[edit interfaces so-fpc/pic/port unit unit-number family ccc]
ステートメントを使用して、DE、FECN、および BECN ビットを制御ワードにマップします。
階層レベルで ステートメント[edit protocols]
を設定してl2circuit
、レイヤー2 回線を確立します。レイヤー 2 回線設定には、リモート PE ネイバーの IP アドレス(通常はネイバーのループバック アドレス)、CE ルーターに接続されたインターフェイス、および各 VC の仮想サーキット識別子を含めることを忘れないでください。この場合、ATM AAL5 トラフィック用に 1 つの VC を確立し、フレームリレー トラフィック用に 2 つ目の VC を確立します。次に、MPLS、LDP、IGP(OSPF など)を設定して、レイヤー 2 回線のシグナリングを有効にします。ATMおよびフレームリレートラフィック用に、ルーターPE2 に直接送信されるATMトラフィック用のLSP1と、ルーターPE2 に進む前にルーターP0 を通過するフレームリレートラフィック用のLSP2の2つのLSPが確立されています。
最後に、ATMとフレームリレーレイヤー2 回線のトラフィックを分離するためのコミュニティを設定します。コミュニティ gold
をATM VCに、 silver
コミュニティをフレームリレーVCに割り当てます。コミュニティに数値を与え、コミュニティを特定のLSPに一致させるルーティングポリシーを設定することを忘れないでください。このポリシーは、 export
階層レベルで転送テーブルの [edit routing-options]
ポリシーとして適用されます。
ルーターPE1
[edit] chassis { fpc 1 { pic 1 { atm-l2circuit-mode { aal5; # This dedicates FPC 1 PIC 1 to AAL5 mode. } } } } interfaces { at-1/1/0 { description "to CE1 at-0/0/2"; atm-options { pic-type atm2; # Layer 2 circuits are compatible with vpi 0; # ATM2 IQ interfaces. } unit 0 { encapsulation atm-ccc-vc-mux; # CLP/EFCI bits are mapped to control word. vci 0.32; } } so-0/1/0 { description "to P0 so-0/0/0"; unit 0 { family inet { address 192.168.27.17/30; } family mpls; # Include the MPLS family on core-facing interfaces. } } so-1/1/0 { description "to PE2 so-1/0/1"; unit 0 { family inet { address 192.168.27.10/30; } family mpls; # Include the MPLS family on core-facing interfaces. } } so-1/1/1 { description "to CE3 so-0/0/1"; dce; encapsulation frame-relay-ccc; unit 0 { encapsulation frame-relay-ccc; point-to-point; dlci 512; family ccc { translate-fecn-and-becn; # Option to map FECN/BECN bits to control word. translate-discard-eligible; # Option to map DE bit to control word. } } } lo0 { unit 0 { family inet { address 10.255.17.2/32; } } } } routing-options { forwarding-table { export layer2communities; # This applies communities to the Layer 2 circuits. } } protocols { mpls { label-switched-path lsp1 { # ATM LSP 1 goes directly to PE2. to 10.255.17.4; primary direct; } label-switched-path lsp2 { # Frame Relay LSP 2 goes through P0. to 10.255.17.4; primary thruP0; } path direct { 192.168.27.9 strict; } path thruP0 { 192.168.27.18 strict; 192.168.27.25 strict; } interface so-0/0/1.0; interface so-1/1/0.0; } ospf { traffic-engineering; area 0.0.0.0 { interface so-0/0/1.0; interface so-1/1/0.0; interface lo0.0; } } ldp { # LDP is required as the signaling protocol for Layer 2 circuits. interface so-0/0/1.0; interface so-1/1/0.0; interface lo0.0; } l2circuit { neighbor 10.255.17.4 {# This points to the loopback of the PE neighbor. interface at-1/1/0.32 { # Here you include the local CE-facing interface. virtual-circuit-id 1; # Be sure this ID matches the ID of your PE neighbor. community gold;# Assigns the ATM Layer 2 circuit to the gold community. } } neighbor 10.255.17.4 {# This points to the loopback of the PE neighbor. interface so-1/1/1.512 { # Here you include the local CE-facing interface. virtual-circuit-id 2; # Be sure this ID matches the ID of your PE neighbor. community silver; # Assigns the Frame Relay Layer 2 circuit to silver. } } } } policy-options { policy-statement layer2communities { # Here you map the communities to LSPs. term 10 { from community gold; # Apply community gold to LSP 1. then { install-nexthop lsp lsp1; accept; } } term 20 { from community silver; # Apply community silver to LSP 2. then { install-nexthop lsp lsp2; accept; } } } community gold members 103:1; # Assign numerical value to community gold. community silver members 103:2; # Assign numerical value to community silver. }
ルーターP0では、PEルーターに接続されたインターフェイスでLDP、MPLS、およびOSPFを設定します。コアルーターは、イングレスPRルーターからエグレスPEルーターへのレイヤー2 トラフィックをトンネリングするために必要なMPLSバックボーンを提供します。フレームリレー用の LSP 2 のみがルーター P0 を通過します。
ルーターP0
[edit] interfaces { so-1/1/1 { description "to PE1 so-0/0/1"; unit 0 { family inet { address 192.168.27.18/30; } family mpls; # Include the MPLS family on core interfaces. } } so-1/1/2 { description "to PE2 so-0/1/1"; unit 0 { family inet { address 192.168.27.26/30; } family mpls; # Include the MPLS family on core interfaces. } } lo0 { unit 0 { family inet { address 10.255.17.3/32; } } } } protocols { mpls { interface so-1/1/1.0; interface so-1/1/2.0; } ospf { traffic-engineering; area 0.0.0.0 { interface so-1/1/1.0; interface so-1/1/2.0; } } ldp {# LDP is required as the signaling protocol for Layer 2 circuits. interface so-1/1/1.0; interface so-1/1/2.0; } }
ルーターPE2で、以前にルーターPE1で設定されたステートメントと一致するステートメントを設定して、レイヤー2 回線を完成させます。
階層レベルで ステートメント[edit protocols]
を設定してl2circuit
、レイヤー2 回線を確立します。レイヤー 2 回線設定には、リモート PE ネイバーの IP アドレス(通常はネイバーのループバック アドレス)、CE ルーターに接続されたインターフェイス、および各 VC の仮想サーキット識別子を含めることを忘れないでください。この場合、ATM AAL5 トラフィック用に 1 つの VC を確立し、フレームリレー トラフィック用に 2 つ目の VC を確立します。次に、MPLS、LDP、IGP(OSPF など)を設定して、レイヤー 2 回線のシグナリングを有効にします。ATMおよびフレームリレートラフィック用に、ルーターPE2 に直接送信されるATMトラフィック用のLSP1と、ルーターPE2に進む前にルーターP0 を通過するフレームリレートラフィック用のLSP2の2つのLSPが確立されています。
最後に、ATMとフレームリレーレイヤー2 回線のトラフィックを分離するためのコミュニティを設定します。ATM VC にはコミュニティ gold
があり、フレームリレー VC にはコミュニティ silver
があります。コミュニティに数値を与え、コミュニティを特定のLSPに一致させるルーティングポリシーを設定することを忘れないでください。このポリシーは、 export
階層レベルで転送テーブルの [edit routing-options]
ポリシーとして適用されます。
ルーターPE2
[edit] chassis { fpc 1 { pic 0 { atm-l2circuit-mode { aal5; # This dedicates FPC 1 PIC 0 to AAL5 mode. } } } } interfaces { at-1/0/1 { description "to CE2 at-1/1/2"; atm-options { pic-type atm2; # Layer 2 circuits are compatible with vpi 0; # ATM2 IQ interfaces. } unit 0 { encapsulation atm-ccc-vc-mux; # CLP and EFCI appear in the control word. vci 0.32; } } so-0/1/1 { description "to P0 so-1/1/2"; unit 0 { family inet { address 192.168.27.25/30; } family mpls; # Include the MPLS family on core-facing interfaces. } } so-1/0/1 { description "to PE1 so-1/1/0"; unit 0 { family inet { address 192.168.27.9/30; } family mpls; # Include the MPLS family on core-facing interfaces. } } so-1/1/1 { description "to CE4 so-1/1/2"; dce; encapsulation frame-relay-ccc; unit 0 { encapsulation frame-relay-ccc; point-to-point; dlci 512; family ccc { translate-fecn-and-becn; # Option to map FECN/BECN bits to control word. translate-discard-eligible; # Option to map DE bit to control word. } } } lo0 { unit 0 { family inet { address 10.255.17.4/32; } } } } routing-options { forwarding-table { export layer2communities; # This maps communities to the Layer 2 circuits. } } protocols { mpls { label-switched-path lsp1 { # ATM LSP 1 goes directly to Router PE2. to 10.255.17.2; primary direct; } label-switched-path lsp2 { # Frame Relay LSP 2 goes through Router P0. to 10.255.17.2; primary thruP0; } path direct { 192.168.27.10 strict; } path thruP0 { 192.168.27.26 strict; 192.168.27.17 strict; } interface so-0/1/1.0; interface so-1/0/1.0; } ospf { traffic-engineering; area 0.0.0.0 { interface so-0/1/1.0; interface so-1/0/1.0; interface lo0.0; } } ldp { # LDP is required as the signaling protocol for Layer 2 circuits. interface so-0/1/1.0; interface so-1/0/1.0; interface lo0.0; } l2circuit { neighbor 10.255.17.2 {# This points to the loopback of the PE neighbor. interface at-1/0/1.32 { # Here you include the local CE-facing interface. virtual-circuit-id 1; # Be sure this ID matches the ID of your PE neighbor. community gold;# Assigns the ATM Layer 2 circuit to the gold community. } } neighbor 10.255.17.2 {# This points to the loopback of the PE neighbor. interface so-1/1/1.512 { # Here you include the local CE-facing interface. virtual-circuit-id 2; # Be sure this ID matches the ID of your PE neighbor. community silver; # Assigns the Frame Relay Layer 2 circuit to silver. } } } } policy-options { policy-statement layer2communities { # Here you map communities to LSPs. term 10 { from community gold; # Apply community gold to LSP 1. then { install-nexthop lsp lsp1; accept; } } term 20 { from community silver; # Apply community silver to LSP 2. then { install-nexthop lsp lsp2; accept; } } } community gold members 103:1; # Assign numerical value to community gold. community silver members 103:2; # Assign numerical value to community silver. }
ルーターCE2 で、ATMトラフィックを処理できるようにATM2 IQインターフェイスを設定します。インターフェイス at-1/0/1
は AAL5 トラフィックを処理します。
ルーターCE2
[edit] interfaces { at-1/1/2 { description "to PE2 at-1/0/1"; atm-options { pic-type atm2; # Layer 2 circuits are compatible with vpi 0; # ATM2 IQ interfaces. } unit 0 { encapsulation atm-vc-mux; # Use ATM VC MUX encapsulation on the CE. point-to-point; vci 0.32; family inet { address 10.0.0.2/30; } } } }
ルーターCE4 で、でSONET/SDHインターフェイス so-1/1/2
を設定し、フレームリレートラフィックを処理します。
ルーターCE3
[edit] interfaces { so-1/1/2 { description “ to PE2 so-1/1/1”; encapsulation frame-relay-ccc; # Use Frame Relay encapsulation on the CE. unit 0 { encapsulation frame-relay-ccc; point-to-point; dlci 512; family inet { address 10.10.0.2/30; } } } }
機能の検証
トラフィック制御されたレイヤー 2 回線の適切な動作を確認するには、次のコマンドを使用します。
show route table mpls.0 detail
ルーターPE1では、ATMトラフィックが、LSP 1 の値103:1
を持ち、LSP 1 に関連付けられているコミュニティに属しているgold
ことがわかります。同様に、フレームリレートラフィックは、LSP 2 の値103:2
を持ち、LSP 2 に関連付けられているコミュニティの一部ですsilver
。
user@PE1> show route table mpls.0 detail mpls.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) at-1/1/0.32 (1 entry, 1 announced) *L2CKT Preference: 7 Next hop: 192.168.27.9 via so-1/1/0.0 weight 1, selected Label-switched-path lsp1 Label operation: Push 100032 Offset: -4 Next hop: via so-0/0/1.0 weight 1 Label-switched-path lsp2 Label operation: Push 100032 Offset: -4 Protocol next hop: 10.255.17.4 Push 100032 Offset: -4 Indirect next hop: 8576bd0 300 State: <Active Int> Age: 7:18 Task: Common L2 VC Announcement bits (2): 0-KRT 1-Common L2 VC AS path: I Communities: 103:1 # This is the gold community. so-1/1/1.512 (1 entry, 1 announced) *L2CKT Preference: 7 Next hop: 192.168.27.9 via so-1/1/0.0 weight 1 Label-switched-path lsp1 Label operation: Push 100048 Offset: -4 Next hop: via so-0/0/1.0 weight 1, selected Label-switched-path lsp2 Label operation: Push 100048 Offset: -4 Protocol next hop: 10.255.17.4 Push 100048 Offset: -4 Indirect next hop: 860f1f8 293 State: <Active Int> Age: 5:15 Task: Common L2 VC Announcement bits (2): 0-KRT 1-Common L2 VC AS path: I Communities: 103:2 # This is the silver community.