예: PTP 경계 클럭 구성
이 예에서는 PTP(Precision Timing Protocol) 경계 클럭을 구성하는 방법을 보여줍니다. 경계 클럭에는 하나 이상의 timeTransmitter 및 하나 이상의 timeReceiver 구성이 포함되어야 합니다. 경계 timeTransmitter는 timeReceiver를 통해 원격 timeTransmitter로부터 시간을 수신하고, 그 시간을 timeReceiver 경계와 timeReceiver 관계에 있는 timeReceiver 클럭으로 전달합니다. 이 예에서는 timeTransmitter, timeReceiver, 클럭 소스 및 클럭 클라이언트를 구성합니다.
ACX5048 및 ACX5096 라우터는 경계 클럭을 지원하지 않습니다.
요구 사항
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
이 예는 QFX 시리즈 스위치에도 적용됩니다. QFX 시리즈 스위치는 기가비트 이더넷 인터페이스를 지원하지 않습니다. 대신 10기가비트 이더넷 인터페이스에서 PTP 경계 클럭 매개 변수를 구성합니다.
-
ACX 시리즈 라우터
-
Junos OS 릴리스 12.3 이상
개요
이 예에서 timeReceiver 클럭 또는 클럭 클라이언트는 구성 완료 후 즉시 알림 및 동기화 패킷을 수신합니다.
구성
절차
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브레이크를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 바꾸고 [] 계층 수준에서 명령을 CLI로edit 복사해 붙여 넣습니다.
set protocols ptp clock-mode boundary set protocols ptp slave interface ge-1/3/9.0 unicast-mode transport ipv4 set protocols ptp slave interface ge-1/3/9.0 unicast-mode clock-source 192.1.1.2 local-ip-address 192.1.1.1 set protocols ptp master interface ge-1/0/0.0 unicast-mode transport ipv4 set protocols ptp master interface ge-1/0/0.0 unicast-mode clock-client 20.20.20.2/32 local-ip-address 20.20.20.1
단계별 절차
다음 예제에서는 구성 계층에서 다양한 수준의 탐색이 필요합니다.
유니캐스트 협상 없이 경계 클럭을 구성하려면:
-
클럭 모드를 구성합니다.
[edit protocols ptp] user@host# set clock-mode boundary
-
timeReceiver 인터페이스를 구성합니다.
[edit protocols ptp] user@host# edit slave interface ge-1/3/9.0
-
업스트림 유니캐스트 PTP timeTransmitter 클럭 소스 매개 변수를 구성합니다.
[edit protocols ptp slave interface ge-1/3/9.0] user@host# edit unicast-mode
-
PTP 패킷 전송을 위한 캡슐화 유형을 구성합니다.
[edit protocols ptp slave interface ge-1/3/9.0 unicast-mode ] user@host# set transport ipv4
-
timeTransmitter 인터페이스의 IP 주소를 구성합니다.
[edit protocols ptp] user@host# edit master interface ge-1/0/0.0
-
원격 PTP 호스트의 IP 주소 및 서브넷과 로컬 PTP timeTransmitter 인터페이스의 IP 주소를 지정합니다.
[edit protocols ptp master interface ge-1/0/0.0 ] user@host# edit unicast-mode user@host# set protocols ptp master interface ge-1/0/0.0 unicast-mode clock-client 20.20.20.2/32 local-ip-address 20.20.20.1
메모:구성이 작동하려면 지정한 timeTransmitter인터페이스가 [
edit interfaces interface-name] 계층 수준에서 이 IP 주소로 구성되어야 합니다. -
PTP 패킷 전송을 위한 캡슐화 유형을 구성합니다.
[edit protocols ptp master interface ge-1/0/0.0 unicast-mode] user@host# set transport ipv4
결과
구성 모드에서 명령을 입력하여 show 구성을 확인합니다. 출력이 의도된 구성을 표시하지 않으면, 이 예의 구성 지침을 반복하여 수정합니다.
[edit protocols ptp]
user@host# show
clock-mode boundary;
slave {
interface ge-1/3/9.0 {
unicast-mode {
transport ipv4;
clock-source 192.1.1.2 local-ip-address 192.1.1.1;
}
}
}
master {
interface ge-1/0/0.0 {
unicast-mode {
transport ipv4;
clock-client 20.20.20.2/32 local-ip-address 20.20.20.1;
}
}
}
디바이스를 구성한 후 구성 모드에서 commit 명령을 입력합니다.