예: 레이어 2 서킷에 대한 VCCV의 BFD 구성
이 예는 레이어 2 서킷에 대한 VCCV의 BFD를 구성하는 방법을 보여줍니다. 이를 통해 데이터 경로에서 장애를 빠르게 감지할 수 있습니다.
요구 사항
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
MX 시리즈 5G 유니버설 라우팅 플랫폼 2개
모든 디바이스에서 Junos OS 릴리스 12.1 이상 실행
개요
Junos OS 릴리스 12.1부터 VCCV(Virtual Circuit Connection Verification)를 위한 BFD(Bidirectional Forwarding Detection) 지원을 통해 유사 회선에 대한 제어 채널을 구성할 수 있으며, 해당 제어 채널에서 사용되는 해당 운영 및 관리 기능을 수행할 수 있습니다. BFD는 의사회선 데이터 경로의 지속적인 모니터링과 데이터 플레인 실패의 감지를 위한 낮은 리소스 메커니즘을 제공합니다. 이 기능은 RFC 5885, 유사 회선 가상 서킷 연결 확인(VCCV)을 위한 BFD(Bidirectional Forwarding Detection)에 설명된 바와 같이 VCCV에 대한 비동기 모드 BFD에 대한 지원을 제공합니다. 또한 ping을 사용하여 유사 회선 실패를 감지할 수 있습니다. 그러나 핑에 필요한 처리 리소스는 BFD에 필요한 것보다 큽니다. 또한 BFD는 VCCV 핑보다 더 빠르게 데이터 플레인 실패를 감지할 수 있습니다. 유사 회선을 위한 BFD는 레이어 2 서킷(LDP 기반)에 지원됩니다.
레이어 2 서킷용 VCCV의 BFD를 [edit protocols l2circuit neighbor address interface interface-name]
구성하려면 계층 수준에서 구성 문을 구성합니다oam
. 계층 수준의 구성 문 [edit routing-instances routing-instance-name protocols l2vpn oam]
은 control-channel
레이어 2 서킷 구성에 적용되지 않습니다.
위상수학
토폴로지에서 레이어 2 서킷용 VCCV의 BFD는 디바이스 R0에서 구성됩니다.

구성
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브레이크를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 바꾸고 계층 수준에서 명령을 CLI [edit]
로 복사해 붙여 넣은 다음, 구성 모드에서 을(를) 입력합니다 commit
.
R0 (R0)
set chassis redundancy graceful-switchover set interfaces ge-1/1/9 vlan-tagging set interfaces ge-1/1/9 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 vlan-id 512 set interfaces ge-2/0/0 unit 0 family inet address 192.0.2.1/24 set interfaces ge-2/0/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 198.51.100.0/24 set routing-options nonstop-routing set routing-options static route 203.0.113.0/24 next-hop 192.0.2.2 set routing-options router-id 198.51.100.0 set protocols rsvp interface ge-2/0/0.0 set protocols mpls label-switched-path lsp1 to 203.0.113.0 set protocols mpls interface ge-2/0/0.0 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-2/0/0.0 set protocols ldp interface all set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 virtual-circuit-id 1 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-interval 300 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-receive-interval 10 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection multiplier 3 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval minimum-interval 5 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval threshold 30 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection detection-time threshold 40
R1 시리즈
set interfaces ge-1/1/9 vlan-tagging set interfaces ge-1/1/9 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 vlan-id 512 set interfaces ge-2/0/1 unit 0 family inet address 192.0.2.2/24 set interfaces ge-2/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.0/24 set routing-options static route 198.51.100.0/24 next-hop 192.0.2.1 set routing-options router-id 203.0.113.0 set protocols rsvp interface ge-2/0/1.0 set protocols mpls label-switched-path lsp2 to 198.51.100.0 set protocols mpls interface ge-2/0/1.0 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-2/0/1.0 set protocols ldp interface all set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 virtual-circuit-id 1 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-interval 300 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-receive-interval 10 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection multiplier 3 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval minimum-interval 5 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval threshold 30 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection detection-time threshold 40
디바이스 R0 구성
단계별 절차
다음 예제에서는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 관한 정보는 CLI 사용자 가이드에서 구성 모드에서 CLI 편집기 사용을 참조하십시오.
디바이스 R0 구성:
디바이스에 대한 적절한 인터페이스 이름, 주소 및 기타 매개 변수를 수정한 후 디바이스 R1에 대해 이 절차를 반복합니다.
Graceful Switchover 이중화를 구성합니다.
[edit chassis] user@R0# set redundancy graceful-switchover
인터페이스를 구성합니다.
[edit interfaces] user@R0# set ge-1/1/9 vlan-tagging user@R0# set ge-1/1/9 encapsulation vlan-ccc user@R0# set ge-1/1/9 unit 0 encapsulation vlan-ccc user@R0# set ge-1/1/9 unit 0 vlan-id 512 user@R0# set ge-2/0/0 unit 0 family inet address 192.0.2.1/24 user@R0# set ge-2/0/0 unit 0 family mpls user@R0# set lo0 unit 0 family inet address 198.51.100.0/24
nonstop routing(논스톱 라우팅) 옵션, static route(정적 경로) 및 router ID routing(라우터 ID 라우팅) 옵션을 구성합니다.
[edit routing-options] user@R0# set nonstop-routing user@R0# set static route 203.0.113.0/24 next-hop 192.0.2.2 user@R0# set router-id 198.51.100.0
RSVP 프로토콜을 구성합니다.
[edit protocols rsvp] user@R0# set interface ge-2/0/0.0
MPLS 프로토콜을 구성합니다.
[edit protocols mpls] user@R0# set label-switched-path lsp1 to 203.0.113.0 user@R0# set interface ge-2/0/0.0
최단 경로 우선(OSPF) 프로토콜을 구성합니다.
[edit protocols ospf] user@R0# set traffic-engineering user@R0# set area 0.0.0.0 interface ge-2/0/0.0
LDP 프로토콜을 구성합니다.
[edit protocols ldp] user@R0# set interface all
레이어 2 서킷 프로토콜의 이웃에 대한 가상 서킷 ID를 구성합니다.
[edit protocols l2circuit] user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 virtual-circuit-id 1
레이어 2 서킷 프로토콜의 oam 속성을 구성합니다.
[edit protocols l2circuit] user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-interval 300 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-receive-interval 10 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection multiplier 3 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval minimum-interval 5 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval threshold 30 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection detection-time threshold 40
결과
구성 모드에서 , show interfaces
, show protocols
및 show routing-options
명령을 입력하여 show chassis
구성을 확인합니다. 출력 결과가 의도한 구성대로 표시되지 않으면 이 예의 지침을 반복하여 구성을 수정하십시오.
user@R0# show chassis redundancy { graceful-switchover; }
user@R0# show interfaces ge-1/1/9 { vlan-tagging; encapsulation vlan-ccc; unit 0 { encapsulation vlan-ccc; vlan-id 512; } } ge-2/0/0 { unit 0 { family inet { address 192.0.2.1/24; } family mpls; } } lo0 { unit 0 { family inet { address 198.51.100.0/24; } } }
user@R0# show protocols rsvp { interface ge-2/0/0.0; } mpls { label-switched-path lsp1 { to 203.0.113.0; } interface ge-2/0/0.0; } ospf { traffic-engineering; area 0.0.0.0 { interface ge-2/0/0.0; } } ldp { interface all; } l2circuit { neighbor 203.0.113.0 { interface ge-1/1/9.0 { virtual-circuit-id 1; oam { bfd-liveness-detection { minimum-interval 300; minimum-receive-interval 10; multiplier 3; transmit-interval { minimum-interval 5; threshold 30; } detection-time { threshold 40; } } } } } }
user@R0# show routing-options nonstop-routing; static { route 203.0.113.0/24 next-hop 192.0.2.2; } router-id 198.51.100.0;
디바이스 구성을 마쳤으면 구성 모드에서 을(를) 입력합니다 commit
.
확인
구성이 올바르게 작동하고 있는지 확인합니다.
레이어 2 서킷 연결 확인
목적
레이어 2 서킷에서 연결을 확인합니다.
행동
운영 모드에서 디바이스 R0에 대한 명령을 실행합니다 show l2circuit connections
.
user@R0> show l2circuit connections
Layer-2 Circuit Connections:
Legend for connection status (St)
EI -- encapsulation invalid NP -- interface h/w not present
MM -- mtu mismatch Dn -- down
EM -- encapsulation mismatch VC-Dn -- Virtual circuit Down
CM -- control-word mismatch Up -- operational
VM -- vlan id mismatch CF -- Call admission control failure
OL -- no outgoing label IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC TM -- TDM misconfiguration
BK -- Backup Connection ST -- Standby Connection
CB -- rcvd cell-bundle size bad SP -- Static Pseudowire
LD -- local site signaled down RS -- remote site standby
RD -- remote site signaled down HS -- Hot-standby Connection
XX -- unknown
Legend for interface status
Up -- operational
Dn -- down
Neighbor: 203.0.113.0
Interface Type St Time last up # Up trans
ge-1/1/9.0(vc 1) rmt Up Jun 2 03:19:44 2014 1
Remote PE: 203.0.113.0, Negotiated control-word: Yes (Null)
Incoming label: 299792, Outgoing label: 299792
Negotiated PW status TLV: No
Local interface: ge-1/1/9.0, Status: Up, Encapsulation: VLAN
Flow Label Transmit: No, Flow Label Receive: No
Flow Label Transmit: No, Flow Label Receive: No
의미
출력은 디바이스 R0에서 이웃으로의 레이어 2 가상 서킷 정보를 보여줍니다.
BFD 세션 확인
목적
BFD 세션을 확인합니다.
행동
운영 모드에서 디바이스 R0에 대한 명령을 실행합니다 show bfd session
.
user@R0> show bfd session
Detect Transmit
Address State Interface Time Interval Multiplier
203.0.113.7 Up ge-2/0/0.0 0.030 0.010 3
1 sessions, 1 clients
Cumulative transmit rate 100.0 pps, cumulative receive rate 100.0 pps
의미
출력은 BFD 세션이 활성화된 주소와 인터페이스를 보여줍니다. 상태 Up 는 BFD 세션이 up 임을 나타냅니다. BFD 세션은 BFD 제어 패킷을 검출하기 위해 30밀리초의 시간 간격을 가지며, 전송 시스템은 BFD 제어 패킷을 송신하기 위해 10밀리초의 시간 간격을 가지며, 송신 시스템은 시간 간격을 곱 3 하여 검출 시간을 결정한다. 총 활성 BFD 세션 수 및 활성 BFD 세션을 호스팅하는 총 클라이언트 수. 누적 전송 속도는 모든 활성 세션에서 초당 전송된 BFD 제어 패킷의 총 수를 나타내고, 누적 수신 속도는 모든 활성 세션에서 초당 수신된 BFD 제어 패킷의 총 수를 나타냅니다.
자세한 BFD 세션 정보 확인
목적
자세한 BFD 세션 정보를 확인합니다.
행동
운영 모드에서 디바이스 R0에 대한 명령을 실행합니다 show bfd session extensive
.
user@R0> show bfd session extensive
Detect Transmit
Address State Interface Time Interval Multiplier
203.0.113.7 Up ge-2/0/0.0 0.030 0.010 3
Client L2CKT-OAM, TX interval 0.005, RX interval 0.010
Session up time 03:47:14
Local diagnostic None, remote diagnostic None
Remote state Up, version 1
Replicated
Session type: VCCV BFD
Min async interval 0.005, min slow interval 1.000
Adaptive async TX interval 0.005, RX interval 0.010
Local min TX interval 0.005, minimum RX interval 0.010, multiplier 3
Remote min TX interval 0.005, min RX interval 0.010, multiplier 3
Threshold transmission interval 0.030, Threshold for detection time 0.040
Local discriminator 20, remote discriminator 13004
Echo mode disabled/inactive
Remote is control-plane independent
Neighbor address 203.0.113.0, Virtual circuit id 1
Session ID: 0x0
1 sessions, 1 clients
Cumulative transmit rate 100.0 pps, cumulative receive rate 100.0 pps
의미
출력은 BFD 세션에 대한 자세한 정보를 보여줍니다.