Configuration Guide
PTP Configuration Guide
39 min
introduction introduction the precision time protocol (ptp) is a protocol designed to achieve high precision clock synchronization in computer networks it was originally developed to meet the stringent timing requirements of applications in fields such as industrial automation, telecommunications, and finance the primary goal of ptp is to provide clock synchronization accuracy at the microsecond or even sub microsecond level within computer networks this high level of synchronization is critical in many domains, including high frequency trading systems, power system synchronization, and time stamping for scientific research equipment basic concepts basic concepts ptp domain ptp domain a network that applies the ptp protocol is called a ptp domain a network may contain multiple ptp domains, each of which is an independent ptp clock synchronization system within a single ptp domain, there is exactly one clock source, and all devices in the domain remain synchronized to this clock source clock node types clock node types the node in ptp domain is called clock node there are three clock node types defined by ieee 1588v2 oc(ordinary clock) oc(ordinary clock) only a single physical port participates in ptp time synchronization in a ptp domain the device synchronizes time from an upstream node or distributes time to downstream nodes through this port bc(boundary clock) bc(boundary clock) two or more physical ports may participate in ptp time synchronization in a ptp domain one port synchronizes time from an upstream device, while the remaining multiple ports distribute time to downstream devices additionally, when a clock node acts as a time source and simultaneously distributes time to downstream clock nodes through multiple ptp ports, it is also referred to as a bc tc(transparent clock) tc(transparent clock) tc does not synchronize time with any other device tc has multiple ptp ports and only forwards ptp messages between these ports, applying transit delay correction it does not synchronize time from any of its ports there are four clock node types defined by g8275 1 t gm(telecom grandmaster) t gm(telecom grandmaster) t gm can only act as a master, serving as a time source to provide timing t bc(telecom boundary clock) t bc(telecom boundary clock) t bc has multiple ptp ports one port synchronizes time from an upstream device, while the remaining multiple ports distribute time to downstream devices t tsc(telecom time slave clock) t tsc(telecom time slave clock) t tsc can only act as a slave, synchronizes time from an upstream node t tc(telecom transparent clock) t tc(telecom transparent clock) t tc does not synchronize time with any other device t tc has multiple ptp ports and only forwards ptp messages between these ports, applying transit delay correction it does not synchronize time from any of its ports there are three clock node types defined by g8275 2 t gm(telecom grandmaster) t gm(telecom grandmaster) t gm can only act as a master, serving as a time source to provide timing t bc p(telecom boundary clock for partial timing support) t bc p(telecom boundary clock for partial timing support) t bc p has multiple ptp ports one port synchronizes time from an upstream device, while the remaining multiple ports distribute time to downstream devices t tsc p(telecom time slave clock for partial timing support) t tsc p(telecom time slave clock for partial timing support) t tsc p can only act as a slave, synchronizes time from an upstream node ptp port ptp port a port on a device running the ptp protocol is called a ptp port ptp ports can be classified into the following three roles master port master port a port that distributes synchronized time, which can exist on a bc or an oc slave port slave port a port that receives synchronized time, which can exist on a bc or an oc passive port passive port a port that neither receives nor distributes synchronized time, serving as an idle standby port, available only on a bc master slave relationship master slave relationship the node devices within a ptp domain perform clock synchronization according to a specific master slave hierarchy the master slave relationship is relative a node that synchronizes time is called a slave node, and a node that distributes time is called a master node a single device may simultaneously synchronize time from an upstream node and distribute time to downstream nodes for a pair of clock nodes that are synchronizing with each other, the following master slave relationships apply the node that distributes synchronized time is called the master node, while the node that receives the synchronized time is called the slave node the clock on the master node is referred to as the master clock, and the clock on the slave node is referred to as the slave clock the port that distributes synchronized time is called the master port, and the port that receives synchronized time is called the slave port grandmaster clock grandmaster clock all clock nodes in a ptp domain are organized in a hierarchical structure, and the reference clock for the entire domain is the grandmaster clock (gmc) through the exchange of ptp messages among clock nodes, the time of the grandmaster clock is ultimately synchronized across the entire ptp domain, hence it is also referred to as the time source the grandmaster clock can be statically configured manually or dynamically elected using the best master clock (bmc) or alternate bmc algorithm how it works how it works bmc algorithm bmc algorithm in a ptp domain, the selection of the grandmaster clock and the establishment of port master slave relationships are both accomplished using the best master clock (bmc) algorithm the bmc algorithm compares datasets carried in announce messages exchanged among clock nodes to select the grandmaster clock and determine the state of each ptp port in 1588v2, the bmc algorithm comparison rules are as follows clock priority 1 clock priority 1 a smaller priority1 value indicates higher priority clock class clock class if priority1 values are equal, a smaller class value indicates higher priority clock accuracy clock accuracy if class values are equal, a smaller accuracy value indicates higher priority clock priority 2 clock priority 2 if accuracy values are equal, a smaller priority2 value indicates higher priority priority ranking order priority1 > class > accuracy > priority2 in g 8275 1 and g 8275 2, the alternate bmc algorithm comparison rules are as follows clock class clock class a smaller class value indicates higher priority clock accuracy clock accuracy if class values are equal, a smaller accuracy value indicates higher priority clock priority 2 clock priority 2 if accuracy values are equal, a smaller priority2 value indicates higher priority local clock priority local clock priority if priority2 values are equal, a smaller priority value indicates higher priority if local priorities are still equal, determine whether the clock class is less than or equal to 127 if the clock class is less than or equal to 127, in the absence of a superior clock node, two or more grandmaster clocks may be elected within the ptp domain slave nodes select the nearest grandmaster as their master, forming two separate spanning trees that do not exchange ptp messages with each other if the clock class is greater than 127, the clock with the smaller clockid wins priority ranking order class > accuracy > priority2 > priority ptp message type ptp message type ptp achieves master slave relationship establishment and time synchronization through message exchange between master and slave nodes the ptp message types are shown in the table below table 1 ptp message type table 1 ptp message type message type description announce used for exchanging time source information between clock nodes to determine the master slave hierarchy sync the sync transmission mode can be divided into one step and two step\ one step the sync message contains the timestamp of its own transmission time two step the sync message does not contain the timestamp of its transmission time; instead, it only records the transmission time, which is then carried in a subsequent follow up message follow up only used in two step mode after the master sends a sync message to the slave, follow up message is sent which carries the timestamp of when the sync message was sent delay req in the delay request response synchronization method, the slave sends a delay req message to the master and records the timestamp of when the message was sent delay resp in the delay request response synchronization method, the master sends a delay resp message to the slave the message carries the timestamp of when the delay req message was received by the master pdelay req in the peer delay request response synchronization method, the slave sends a pdelay req message to the master and records the timestamp of when the message was sent pdelay resp in the peer delay request response synchronization method, the master sends a pdelay resp message to the slave the message carries the timestamp of when the pdelay req message was received by the master pdelay resp follow up in the peer delay two step time synchronization method, the master sends a pdelay resp follow up message to the slave, carrying the timestamp of when the pdelay resp message was transmitted at the master management transmits management information and commands to achieve clock management signaling carries information, requests, and commands between clocks timestamp carrying method timestamp carrying method ptp calculates the path delay and time offset between master and slave devices by recording timestamps generated during message exchanges, thereby achieving time synchronization there are two timestamp carrying modes one step mode one step mode the sync and pdelay resp messages carry the timestamp of their own transmission time two step mode two step mode the sync and pdelay resp messages do not carry the timestamp of their transmission time; instead, the subsequent follow up and pdelay resp follow up messages carry the transmission timestamps in two step mode, the generation and announcement of time information are completed in two separate steps, which allows compatibility with devices that do not support timestamping the transmission time of sync and pdelay resp messages delay measurement method delay measurement method there are two methods for delay measurement e2e(end to end) e2e(end to end) calculate the time offset based on the overall path delay between master and slave clocks p2p(peer to peer) p2p(peer to peer) calculate the time offset based on the delay of each individual link between master and slave clocks the process of the e2e mechanism (two step mode) is shown in the figure the master clock sends a sync message to the slave clock at time t1 in two step mode, the slave clock records the time t2 after receiving the sync message the master clock sends a follow up message to the slave clock the slave clock obtains the transmission timestamp t1 of the sync message from the follow up message the slave clock sends a delay req message to the master clock the slave clock records the transmission timestamp t3 of the delay req message after receiving the delay req, the master clock sends a delay resp message to the slave clock the slave clock obtains the timestamp t4, indicating when the master clock received the delay req message, from the delay resp message at this point, the slave clock can use t1 to t4 to calculate the path delay and time offset path delay = \[(t2 – t1) + (t4 – t3)]/2 t2 = t1 + path delay + offset, offset = t2 t1 path delay = t2 t1 \[(t2 – t1) + (t4 – t3)]/2 = \[(t2 – t1) – (t4 – t3)]/2 the process of the p2p mechanism (two step mode) is shown in the figure at this point, the nodeb can use t1 to t4 to calculate the path delay path delay = \[(t2 – t1) + (t4 – t3)]/2 the clock offset of the slave clock relative to the master clock, offset = time when the slave clock receives the sync message – time when the master clock sends the sync message – cumulative one way delay of each link – total residence time of all tcs on the path configure ptp configure ptp enable ptp feature enable ptp feature table 2 enable ptp feature table 2 enable ptp feature purpose commands description enter global configuration view configure terminal enable ptp feature feature ptp state enable configure ptp autorestart feature ptp autorestart enable configure ptp domain configure ptp domain table 3 configure ptp domain table 3 configure ptp domain purpose commands description enter global configuration view configure terminal create a ptp domain and enter ptp domain configuration view ptp domain domain id the range of domain id is 0 127 when using the smpte 2059 2 profile, the configurable range for domain id is 0–127,the default value is 127 when using the 1588v2 profile, the configurable range for domain id is 0–127, the default value is 0 when using the aes67 profile, domain id is fixed to 0 when using the g8275 1 profile, the configurable range for domain id is 24–43, the default value is 24 when using the g8275 2 profile, the configurable range for domain id is 44–63, with a default value of 44 configure ptp profile ptp profile { smpte 2059 2 | 1588v2 | aes67 | g8275 1 | g8275 2 } configure ptp clock type ptp mode clock mode when the configured ptp profile is smpte 2059 2 , 1588v2 , or aes67 , the available clock types that can be configured are oc bc e2etcp2ptc when the configured ptp profile is g 8275 1 , the available clock types that can be configured are t gmt bct tsc t tc when the configured ptp profile is g 8275 2 , the available clock types that can be configured are t gmt bc p t tsc p configure timestamp carrying method ptp clock step { one step | two step } the default method is one step configure ptp message source ip ptp source ip { a b c d | a b } (optional)configure ptp message dscp ptp dscp dscp value the default is 56 configure clock parameters configure clock parameters table 4 configure clock parameters table 4 configure clock parameters purpose commands description enter global configuration view configure terminal enter ptp domain configuration view ptp domain domain id (optional)configure clock id ptp clock id xxxxxx xxxx xxxxxx by default, it is generated based on the device's mac address, with "fffe" inserted in the middle of the mac address (optional)configure clock class ptp class class the default value is 248 (optional)configure clock accuracy ptp accuracy accuracy the default value is 254 (optional)configure ptp priority1 ptp priority1 priority1 the default priority1 is 128 when the configured ptp profile is smpte 2059 2, 1588v2, or aes67, the ptp priority1 parameter can be configured when the configured ptp profile is g 8275 1 or g 8275 2, the ptp priority1 parameter is not supported (optional)configure ptp priority2 ptp priority2 priority2 the default priority2 is 128 enable ptp on the interface enable ptp on the interface table 5 enable ptp on the interface table 5 enable ptp on the interface purpose commands description enter global configuration view configure terminal enter ethernet configuration view interface ethernet interface name bind the interface to ptp domain ptp domain domain id enable ptp ptp enable (optional)configure the ptp role ptp role { dynamic | slave | master } the default role is dynamic configure delay measurement method configure delay measurement method table 6 configure delay measurement method table 6 configure delay measurement method purpose commands description enter global configuration view configure terminal enter ethernet configuration view interface ethernet interface name (optional)configure delay measurement method ptp delay mechanism { e2e | p2p } the default mechanism is e2e note when ptp is enabled on multiple interfaces, the ptp delay mechanism on the interfaces must be consistent configure the message encapsulation mode configure the message encapsulation mode table 7 configure the message encapsulation mode table 7 configure the message encapsulation mode purpose commands description enter global configuration view configure terminal enter ethernet configuration view interface ethernet interface name (optional)configure message transmission mode ptp transport {{ ipv4 | ipv6 } { multicast | unicast | mixed }| layer2 } (optional)configure the destination ip ptp unicast master address { a b c d | a b } (optional)configure the destination ip ptp source ip { a b c d | a b } notes when the configured ptp profile is smpte 2059 2 , the available packet encapsulation format is {ipv4|ipv6} {multicast|unicast|mixed} the default format is ipv4 multicast when the configured ptp profile is 1588v2 , the available packet encapsulation format is {{ipv4 |ipv6} {multicast|unicast}|layer2} the default format is ipv4 multicast when the configured ptp profile is aes67 ,the available packet encapsulation format is ipv4 {multicast|unicast|mixed} the default format is ipv4 multicast when the configured ptp profile is g 8275 1 , the available packet encapsulation format is layer2 the default format is layer2 when the configured ptp profile is g 8275 2 , the available packet encapsulation format is {ipv4|ipv6}unicast the default format is ipv4 unicast only when the ptp transport is set to {ipv4 | ipv6} unicast and the port is slave port, the ptp unicast master address need to be configured when the transmission mode is unicast or mixed , the ptp source ip { a b c d | a b } need to be configured configure message interval parameters configure message interval parameters table 8 configure message interval parameters table 8 configure message interval parameters purpose commands description enter global configuration view configure terminal enter ethernet configuration view interface ethernet interface name (optional)configure announce message transmission interval ptp announce interval interval when the configured ptp profile is smpte 2059 2 , the range is \[ 3,1] the default value is 0 when the configured ptp profile is 1588v2 , the range is \[0,4] the default value is 1 when the configured ptp profile is aes67 , the range is \[0,4] the default value is 1 when the configured ptp profile is g 8275 1 , the interval cannot be modified the default value is 3 when the configured ptp profile is g 8275 2 , the range is \[ 3,0] the default value is 3 (optional)configure announce message reception timeout multiplier ptp announce timeout times when the configured ptp profile is smpte 2059 2,1588v2,aes67 , the announce message reception timeout multiplier can be modified for other ptp profiles, the configuration cannot be modified the range is \[2,10] the default value is 3 (optional)configure sync message transmission interval ptp sync message interval interval when the configured ptp profile is smpte 2059 2 , the range is \[ 7,1] the default value is 3 when the configured ptp profile is 1588v2 , the range is \[ 7,1] the default value is 0 when the configured ptp profile is aes67 , the range is \[ 4,1] the default value is 3 when the configured ptp profile is g 8275 1 , the interval cannot be modified the default value is 4 when the configured ptp profile is g 8275 2 , the range is \[ 7,0] the default value is 4 (optional)configure delay req message transmission interval ptp delay req interval interval when the configured ptp profile is smpte 2059 2 , the range is \[ 3,5] the default value is 3 when the configured ptp profile is 1588v2 , the range is \[ 7,5] the default value is 0 when the configured ptp profile is aes67 , the range is \[ 4,5] the default value is 0 when the configured ptp profile is g 8275 1 , the interval cannot be modified the default value is 4 when the configured ptp profile is g 8275 2 , the range is \[ 7,0] the default value is 4 (optional)configure pdelay req message transmission interval ptp pdelay req interval interval when the configured ptp profile is smpte 2059 2 , the range is \[ 3,5] the default value is 3 when the configured ptp profile is 1588v2 , the range is \[ 7,5] the default value is 0 when the configured ptp profile is aes67 , the range is \[ 4,5] the default value is 0 (optional)configure sm tlv (optional)configure sm tlv in the smpte 2059 2 standard, sm tlv (stream mapping type length value) is a format used to transmit timecode and synchronization information, enabling the delivery and management of time synchronization information in multi device and multi system environments to ensure precise synchronization among devices therefore, this function is only available when using the smpte 2059 2 profile enable sm tlv enable sm tlv after enabling sm tlv, the device supports handling of daylight saving time events when a bc receives daylight saving time information, it records the time jump, prepares in advance for the transition, performs the time adjustment when the designated time is reached, and forwards the message to the oc clock this ensures that during the start and end of daylight saving time, the system clock advances or retreats by one hour, preventing time inconsistencies in synchronization caused by time jumps daylight saving time, also known as "daylight saving time" or "summer time", is a system that artificially adjusts local time to conserve energy the uniform time used during this period is referred to as "daylight saving time" table 9 enable sm tlv table 9 enable sm tlv purpose commands description enter global configuration view configure terminal enter ptp domain configuration view ptp domain domain id enable sm tlv ptp sm tlv enable when the configured ptp profile is smpte 2059 2, the sm tlv is supported for other ptp profiles, sm tlv configuration is not supported only the gm needs to configure sm tlv configure timecode parameters configure timecode parameters after enabling sm tlv, the default frame rate (default frame rates) can be configured on the gm, providing a timing reference that affects the synchronization of all devices as a relay device, the bc forwards sm tlv information to ensure smooth data flow throughout the ptp domain the oc receives the sm tlv data and applies the included timecode and synchronization information to maintain synchronization with the ptp domain table 10 configure timecode parameters table 10 configure timecode parameters purpose commands description enter global configuration view configure terminal enter ptp domain configuration view ptp domain domain id configure default frame rates ptp sm tlv default frame rates numerator denominator enable drop frame timecode ptp sm tlv time address flags drop frame enable color frame timecode ptp sm tlv time address flags color frame display and maintenance display and maintenance table 11 display and maintenance table 11 display and maintenance purpose commands description display ptp state show ptp clock \[ domain id ] domain id the created ptp domain display sm tlv info show ptp clock sm tlv domain id domain id the created ptp domain display the ptp configuration of the interface show ptp interface ethernet interface name display packet statistics show ptp counters { interface ethernet interface name | domain domain id } typical configuration example typical configuration example smpte multicast communication method smpte multicast communication method networking requirements in the network, switcha acts as the clock source and needs to synchronize time to switchc and switchd, with all three devices connected to switchb the customer has high requirements for time accuracy and requires the use of the smpte 2059 2 standard and ipv4 udp multicast communication mode, with one step timestamping and the e2e delay measurement mechanism procedure switcha configure interface ip and loopback0 ip interface ethernet 0/32 ip address 10 32 1 2/24 exit ! interface loopback 0 ip address 172 16 1 179/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode oc ptp clock step one step ptp clock id 000000 fffe 000179 ptp priority1 100 ptp class 200 ptp source ip 172 16 1 179 exit enable ptp on the interface ! interface ethernet 0/32 ptp domain 127 ptp enable switchb configure interface ip and loopback0 ip interface ethernet 0/1 ip address 10 32 1 1/24 exit ! interface ethernet 0/2 ip address 10 32 2 1/24 exit ! interface ethernet 0/3 ip address 10 32 3 1/24 exit ! interface loopback 0 ip address 172 16 1 166/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode bc ptp clock step one step ptp clock id 000000 fffe 000166 ptp priority1 120 ptp source ip 172 16 1 166 exit enable ptp on the interface ! interface ethernet 0/1 ptp domain 127 ptp enable ! interface ethernet 0/2 ptp domain 127 ptp enable ! interface ethernet 0/3 ptp domain 127 ptp enable switchc configure interface ip and loopback0 ip interface ethernet 0/32 ip address 10 32 2 2/24 exit ! interface loopback 0 ip address 172 16 1 174/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode oc ptp clock step one step ptp clock id 000000 fffe 000174 ptp source ip 172 16 1 174 enable ptp on the interface ! interface ethernet 0/32 ptp domain 127 ptp enable switchd configure interface ip and loopback0 ip interface ethernet 0/32 ip address 10 32 3 2/24 exit ! interface loopback 0 ip address 172 16 1 141/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode oc ptp clock step one step ptp clock id 000000 fffe 000141 ptp source ip 172 16 1 141 enable ptp on the interface ! interface ethernet 0/32 ptp domain 127 ptp enable verify the configuration verfify ptp state on the switchb switchb# show ptp clock domain 127 profile smpte 2059 2 clock mode bc clock step one step dscp 56 source ip address 0 0 0 0 local clock identity 000000 fffe 000166 local clock accuracy 0xfe local clock class 248 local clock priority1 120 local clock priority2 128 ports ethernet1,ethernet2,ethernet3 grandmaster clock identity 000000 fffe 000179 grandmaster clock accuracy 0xfe grandmaster clock class 200 grandmaster clock priority1 100 grandmaster clock priority2 128 parent port identity 1 servo state locked offset to master 4 path delay 222 max steps removed 255 local time 1986040939445 verfify ptp state on the switchc switchc# show ptp clock domain 127 profile smpte 2059 2 clock mode oc clock step one step dscp 56 source ip address 0 0 0 0 local clock identity 000000 fffe 000174 local clock accuracy 0xfe local clock class 248 local clock priority1 128 local clock priority2 128 ports ethernet32 grandmaster clock identity 000000 fffe 000179 grandmaster clock accuracy 0xfe grandmaster clock class 200 grandmaster clock priority1 100 grandmaster clock priority2 128 parent port identity 1 servo state locked offset to master 8 path delay 244 max steps removed 255 local time 1986041830647 verfify ptp state on the switchd switchd# show ptp clock domain 127 profile smpte 2059 2 clock mode oc clock step one step dscp 56 source ip address 0 0 0 0 local clock identity 000000 fffe 000141 local clock accuracy 0xfe local clock class 248 local clock priority1 128 local clock priority2 128 ports ethernet32 grandmaster clock identity 000000 fffe 000179 grandmaster clock accuracy 0xfe grandmaster clock class 200 grandmaster clock priority1 100 grandmaster clock priority2 128 parent port identity 2 servo state locked offset to master 5 path delay 245 max steps removed 255 local time 1987152330444 smpte unicast communication method smpte unicast communication method networking requirements in the network, switcha acts as the clock source and needs to synchronize time to switchc and switchd, with all three devices connected to switchb the customer has high requirements for time accuracy and requires the use of the smpte 2059 2 standard and ipv4 udp unicast communication mode, with two step timestamping and the e2e delay measurement mechanism procedure switcha configure interface ip and loopback0 ip interface ethernet 0/32 ip address 10 32 1 2/24 exit ! interface loopback 0 ip address 172 16 1 179/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode oc ptp clock step two step ptp clock id 000000 fffe 000179 ptp priority1 100 ptp class 200 ptp source ip 172 16 1 179 exit enable ptp on the interface ! interface ethernet 0/32 ptp domain 127 ptp enable ptp transport ipv4 unicast ptp source ip 10 32 1 2 switchb configure interface ip and loopback0 ip interface ethernet 0/1 ip address 10 32 1 1/24 exit ! interface ethernet 0/2 ip address 10 32 2 1/24 exit ! interface ethernet 0/3 ip address 10 32 3 1/24 exit ! interface loopback 0 ip address 172 16 1 166/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode bc ptp clock step two step ptp clock id 000000 fffe 000166 ptp priority1 120 ptp source ip 172 16 1 166 exit enable ptp on the interface ! interface ethernet 0/1 ptp domain 127 ptp enable ptp transport ipv4 unicast ptp source ip 10 32 1 1 ptp unicast master address 10 32 1 2 ! interface ethernet 0/2 ptp domain 127 ptp enable ptp source ip 10 32 2 1 ptp transport ipv4 unicast ! interface ethernet 0/3 ptp domain 127 ptp enable ptp source ip 10 32 3 1 ptp transport ipv4 unicast switchc configure interface ip and loopback0 ip interface ethernet 0/32 ip address 10 32 2 2/24 exit ! interface loopback 0 ip address 172 16 1 174/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode oc ptp clock step two step ptp clock id 000000 fffe 000174 ptp source ip 172 16 1 174 enable ptp on the interface ! interface ethernet 0/32 ptp domain 127 ptp enable ptp source ip 10 32 2 2 ptp transport ipv4 unicast ptp unicast master address 10 32 2 1 switchd configure interface ip and loopback0 ip interface ethernet 0/32 ip address 10 32 3 2/24 exit ! interface loopback 0 ip address 172 16 1 141/32 exit configure ptp domain ! ptp domain 127 ptp profile smpte 2059 2 ptp mode oc ptp clock step two step ptp clock id 000000 fffe 000141 ptp source ip 172 16 1 141 ehable ptp on the interface ! interface ethernet 0/32 ptp domain 127 ptp enable ptp source ip 10 32 3 2 ptp transport ipv4 unicast ptp unicast master address 10 32 3 1 verify the configuration verfify ptp state on the switchb switchb# show ptp clock domain 127 profile smpte 2059 2 clock mode bc clock step two step dscp 56 source ip address 0 0 0 0 local clock identity 000000 fffe 000166 local clock accuracy 0xfe local clock class 248 local clock priority1 120 local clock priority2 128 ports ethernet1,ethernet2,ethernet3 grandmaster clock identity 000000 fffe 000179 grandmaster clock accuracy 0xfe grandmaster clock class 200 grandmaster clock priority1 100 grandmaster clock priority2 128 parent port identity 1 servo state locked offset to master 0 path delay 233 max steps removed 255 local time 2101144339563 verfify ptp state on the switchc switchc# show ptp clock domain 127 profile smpte 2059 2 clock mode oc clock step two step dscp 56 source ip address 0 0 0 0 local clock identity 000000 fffe 000174 local clock accuracy 0xfe local clock class 248 local clock priority1 128 local clock priority2 128 ports ethernet32 grandmaster clock identity 000000 fffe 000179 grandmaster clock accuracy 0xfe grandmaster clock class 200 grandmaster clock priority1 100 grandmaster clock priority2 128 parent port identity 1 servo state locked offset to master 3 path delay 244 max steps removed 255 local time 2101245256928 verfify ptp state on the switchd switchd# show ptp clock domain 127 profile smpte 2059 2 clock mode oc clock step two step dscp 56 source ip address 0 0 0 0 local clock identity 000000 fffe 000141 local clock accuracy 0xfe local clock class 248 local clock priority1 128 local clock priority2 128 ports ethernet32 grandmaster clock identity 000000 fffe 000179 grandmaster clock accuracy 0xfe grandmaster clock class 200 grandmaster clock priority1 100 grandmaster clock priority2 128 parent port identity 2 servo state locked offset to master 8 path delay 245 max steps removed 255 local time 2103456162289
