예: 유니캐스트 협상으로 PTP 경계 클럭 구성
이 예에서는 유니캐스트 협상이 켜져 있고 timeTransmitter 경계 클럭과 timeReceiver 관계가 있는 수동, 보안 및 자동 클럭 클라이언트가 혼합된 경계 클럭을 구성하는 방법을 보여줍니다. 유니캐스트 협상은 timeReceiver 또는 클럭 클라이언트에서 구성된 클럭 소스에 적용됩니다. timeTransmitter에 구성된 클럭 클라이언트는 유니캐스트 협상의 영향을 받지 않습니다.
ACX5048 및 ACX5096 라우터는 경계 클럭을 지원하지 않습니다.
이 예에서 unicast-negotiation은 클럭 소스에만 적용됩니다. 클럭 클라이언트의 경우, [edit protocols ptp] 계층 수준의 명령문 unicast-negotiation 은 유효하지 않습니다.
요구 사항
이 예에서 사용되는 하드웨어 및 소프트웨어 구성 요소는 다음과 같습니다.
이 예는 QFX 시리즈 스위치에도 적용됩니다. QFX 시리즈 스위치는 기가비트 이더넷 인터페이스를 지원하지 않습니다. 대신 10기가비트 이더넷 인터페이스에서 PTP 경계 클럭 매개 변수를 구성합니다.
-
ACX 시리즈 라우터
-
Junos OS 릴리스 12.3 이상
개요
PTP timeReceiver 클럭 또는 클럭 클라이언트는 유니캐스트 협상을 사용하거나 사용하지 않고 timeTransmitter 클럭에 조인할 수 있습니다. 유니캐스트 협상을 사용하면 PTP 세션이 설정되기 전에 알림, 동기화 및 지연 응답 패킷 속도가 timeTransmitter와 timeReceiver 간에 협상됩니다. 유니캐스트 협상 없이 구성된 후 timeReceiver 또는 클럭 클라이언트는 즉시 알림 및 동기화 패킷을 수신합니다.
클럭 클라이언트는 PTP timeTransmitter에서 시간을 수신하는 원격 PTP 호스트입니다. 이 예에서는 다음 클럭 클라이언트가 구성됩니다.
-
Secure timeReceiver - 보안 timeReceiver는 정확한 IP 주소로 구성되며, 그 후 유니캐스트 협상을 통해 timeTransmitter 클럭에 조인합니다. 이 예에서 클럭 클라이언트
clock-client 117.117.117.117/32 local-ip-address 109.109.109.53는 보안 timeReceiver이며, 이는 서브넷의 이 특정 호스트만 유니캐스트 협상을 통해 timeTransmitter 클럭에 조인할 수 있음을 의미합니다. -
Automatic timeReceiver - 자동 timeReceiver는 서브넷 마스크를 포함하는 IP 주소로 구성되며, 이는 해당 서브넷에 속하는 모든 PTP 호스트가 유니캐스트 협상을 통해 timeTransmitter 클럭에 조인할 수 있음을 나타냅니다. 이 예에서 클럭 클라이언트
clock-client 109.109.109.0/24 local-ip-address 109.109.109.53는 자동 timeReceiver입니다. 또한 이 자동 timeReceiver는 보안 timeReceiver와 동일한 timeTransmitter 클럭 인터페이스109.109.109.53에서 구성됩니다. -
수동 timeReceiver - 수동 timeReceiver는 유니캐스트 협상을 사용하여 timeTransmitter 클럭에 조인하지 않습니다. 문은
manual[edit protocols ptp] 계층 수준에서 구성된 문보다 우선unicast-negotiation합니다. 수동 timeReceiver를 구성하자마자 알림 및 동기화 패킷 수신이 시작됩니다. 이 예에서 클럭 클라이언트clock-client 7.7.7.7 local-ip-address 7.7.7.53 manual는 수동 timeReceiver이며 두 번째 timeTransmitter 클럭 인터페이스에서 구성됩니다.
구성
경계 클럭에는 하나 이상의 timeTransmitter 및 하나 이상의 timeReceiver 구성이 포함되어야 합니다. 경계 timeTransmitter는 timeReceiver를 통해 원격 timeTransmitter로부터 시간을 수신하고, 그 시간을 경계 timeTransmitter와 timeReceiver 관계에 있는 클럭 클라이언트에 전달합니다. 이 예에서는 자동, 수동 및 보안의 세 가지 종류의 클럭 클라이언트를 사용하여 경계 timeReceiver, 두 개의 PTP(Precision Time Protocol) 경계 timeTransmitter를 구성합니다. 클럭 클라이언트 중 두 개는 동일한 경계 timeTransmitter에서 구성됩니다.
절차
CLI 빠른 구성
이 예를 빠르게 구성하려면, 아래 명령을 복사하여 텍스트 파일로 붙여 넣은 다음 모든 라인브레이크를 제거하고, 네트워크 구성을 일치하는 데 필요한 세부 사항을 바꾸고 [] 계층 수준에서 명령을 CLI로edit 복사해 붙여 넣습니다.
set protocols ptp clock-mode boundary set protocols ptp unicast-negotiation set protocols ptp slave interface ge-0/1/0.0 unicast-mode transport ipv4 set protocols ptp slave interface ge-0/1/0.0 unicast-mode clock-source 10.10.10.50 local-ip-address 10.10.10.53 set protocols ptp master interface ge-0/1/3.0 unicast-mode transport ipv4 set protocols ptp master interface ge-0/1/3.0 unicast-mode clock-client 117.117.117.117/32 local-ip-address 109.109.109.53 set protocols ptp master interface ge-0/1/3.0 unicast-mode clock-client 109.109.109.0/24 local-ip-address 109.109.109.53 set protocols ptp master interface ge-0/1/5.0 unicast-mode transport ipv4 set protocols ptp master interface ge-0/1/5.0 unicast-mode clock-client 7.7.7.7/32 local-ip-address 7.7.7.53 manual
단계별 절차
다음 예제에서는 구성 계층에서 다양한 수준의 탐색이 필요합니다. CLI 탐색에 관한 정보는 CLI 사용자 가이드에서 구성 모드에서 CLI 편집기 사용을 참조하십시오.
유니캐스트 협상으로 경계 클럭을 구성하려면 다음을 수행합니다.
-
클럭 모드를 구성합니다.
[edit protocols ptp] user@host# set clock-mode boundary
-
유니캐스트 협상을 활성화합니다.
[edit protocols ptp] user@host# set unicast-negotiation
-
경계 timeTransmitter가 시간을 수신하여 구성된 클럭 timeReceiver 클럭에 전달하는 로컬 timeReceiver 인터페이스를 구성합니다.
[edit protocols ptp] user@host# edit slave interface ge-0/1/0.0
-
업스트림 유니캐스트 PTP timeTransmitter 클럭 소스 매개 변수를 구성합니다.
[edit protocols ptp slave interface ge-0/1/0.0] user@host# edit unicast-mode
-
PTP 패킷 전송을 위한 캡슐화 유형을 구성합니다.
[edit protocols ptp slave interface ge-0/1/0.0 unicast-mode ] user@host# set transport ipv4
-
PTP timeTransmitter 클럭의 IP 주소와 로컬 인터페이스의 IP 주소를 지정하여 PTP timeTransmitter 매개 변수를 구성합니다.
[edit protocols ptp slave interface ge-0/1/0.0 unicast-mode ] user@host# set clock-source 10.10.10.50 local-ip-address 10.10.10.53
-
이 예에서 첫 번째 timeTransmitter 인터페이스를 구성합니다.
[edit protocols ptp] user@host# edit master interface ge-0/1/3.0
-
첫 번째 시간Transmitter 인터페이스에서 다운스트림 PTP 클럭 클라이언트를 구성합니다.
[edit protocols ptp master interface ge-0/1/3.0 ] user@host# edit unicast-mode
-
첫 번째 시간Transmitter 인터페이스에서 PTP 패킷 전송을 위한 캡슐화 유형을 구성합니다.
[edit protocols ptp master interface ge-0/1/3.0 unicast-mode] user@host# set transport ipv4
-
첫 번째 timeTransmitter 인터페이스에서 원격 PTP 호스트의 정확한 IP 주소와 로컬 PTP timeTransmitter 인터페이스의 IP 주소를 지정하여 PTP timeTransmitter 매개 변수를 구성합니다.
[edit protocols ptp master interface ge-0/1/3.0 unicast-mode] user@host# set clock-client 117.117.117.117 local-ip-address 109.109.109.53
-
첫 번째 timeTransmitter 인터페이스에서 두 번째 원격 PTP 호스트의 IP 주소 및 서브넷과 로컬 PTP timeTransmitter 인터페이스의 IP 주소를 지정하여 두 번째 PTP timeTransmitter를 구성합니다.
[edit protocols ptp master interface ge-0/1/3.0 unicast-mode] user@host# set clock-client 109.109.109.0/24 local-ip-address 109.109.109.53
-
캡슐화 유형, 다운스트림 PTP 호스트, 로컬 PTP timeTransmitter 인터페이스의 IP 주소,
manual명령문과 같은 매개 변수를 사용하여 두 번째 timeTransmitter 인터페이스를 구성하여 이 클럭 클라이언트가 유니캐스트 협상을 사용하지 않도록 합니다.[edit protocols ptp master] user@host# set interface ge-0/1/5.0 unicast-mode transport ipv4 user@host# set interface ge-0/1/5.0 unicast-mode clock-client 7.7.7.7 local-ip-address 7.7.7.53 manual
결과
구성 모드에서 명령을 입력하여 show 구성을 확인합니다. 출력이 의도된 구성을 표시하지 않으면, 이 예의 구성 지침을 반복하여 수정합니다.
[edit protocols ptp]
user@host# show
clock-mode boundary;
unicast-negotiation;
slave {
interface ge-0/1/0.0 {
unicast-mode {
transport ipv4;
clock-source 10.10.10.50 local-ip-address 10.10.10.53;
}
}
}
master {
interface ge-0/1/3.0 {
unicast-mode {
transport ipv4;
clock-client 117.117.117.117/32 local-ip-address 109.109.109.53;
clock-client 109.109.109.0/24 local-ip-address 109.109.109.53;
}
}
interface ge-0/1/5.0 {
unicast-mode {
transport ipv4;
clock-client 7.7.7.7/32 local-ip-address 7.7.7.53 {
manual;
}
}
}
}
디바이스를 구성한 후 구성 모드에서 명령을 입력합니다 commit .