- Preface
- Installing UCS NID Controller
- Configuration Management
- Administering the Cisco ME 1200 NID
- Configuring Notifications
- Zero Touch Provisioning
- Auto Discovery of Cisco ME 1200 NIDs
- Configuring Synchronous Ethernet
- Configuring Ethernet Virtual Connections
- Configuring Switch Ports
- Configuring Spanning-Tree Protocol
- Configuring Link Aggregation Control Protocol (LACP)
- Provisioning Link Layer Discovery Protocol
- Configuring SNMP
- Configuring PTP
- Configuring ACLs
- Configuring Quality of Service (QoS)
- Configuring Ethernet OAM, Link OAM, and CFM
- Configuring Performance Monitoring
- Configuring EPS
- Configuring ERPS
- Configuring L2CP
- Configuring MAC Security
- Configuring NTP
- Configuring Storm Control
- Configuring Syslog
- Configuring SPAN
- Configuring RSPAN
- Configuring RFC 2544
- Configuring sFlow
- Configuring UDLD
- Configuring LST
- Configuring Flex Links
- Configuring Y.1564
- Configuring Bulk Provisioning
- Template Management
Configuring PTP
This document describes the Precision Time Protocol (PTP) feature and configuration steps to implement PTP.
- Prerequisites for Configuring PTP
- Information About PTP
- How to Provision PTP
- Verifying PTP
- Additional References
Prerequisites for Configuring PTP
Information About PTP
PTP, as defined in the IEEE 1588 standard, synchronizes with nanosecond accuracy the real-time clocks of the devices in a network. The clocks are organized into a master-member hierarchy. PTP identifies the switch port that is connected to a device with the most precise clock. This clock is referred to as the master clock. All the other devices on the network synchronize their clocks with the master and are referred to as members. Constantly exchanged timing messages ensure continued synchronization.
How to Provision PTP
Configuring Slave IPv4
To configure slave IPv4, unicast, one step on VLAN 7 with domain number 0, perform the following steps:
Configuration Example
The example shows how to configure slave IPv4, unicast, one step on VLAN 7 with domain number 0:
UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config clock_instance 1 UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config clock_domain 0 UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config clock_enable enable UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config mode slave UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config one_way disable UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config protocol unicast_ipv4 UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config two_step_flag disable UCS(PTPPortType)# setPTPclockInstance_v3 ptp_clock_config vlan vlan_id 7 UCS(PTPPortType)# setPTPclockInstance_v3 review UCS(PTPPortType)# setPTPclockInstance_v3 commit UCS(PTPPortType)# exit
Enabling PTP on a Port
To enable PTP on port 1/4 with PTP instance 1, perform the following steps:
Configuration Example
The following example shows how to enable PTP on a port.
UCS(PTPPortType)# setPTPportProperties ptp_port_conf port_id 4 UCS(PTPPortType)# setPTPportProperties ptp_port_conf clock_inst 1 UCS(PTPPortType)# setPTPportProperties ptp_port_conf sync_interval value -4 UCS(PTPPortType)# setPTPportProperties ptp_port_conf delay_req interval -6 UCS(PTPPortType)# setPTPportProperties ptp_port_conf ptp_run enable UCS(PTPPortType)# setPTPportProperties review UCS(PTPPortType)# setPTPportProperties commit UCS(PTPPortType)# exit
![]() Note |
The following example shows how to enable PTP on a port using setPTPportProperties_v2.
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config ptp_run enable
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config clock_inst 1
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config port_id 2
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config localpriority value 12
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config not_slave enable
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config mcast_dest default
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config sync_interval value -4
UCS(PTPPortType)# setPTPportProperties_v2 ptp_port_config delay_req interval -6
UCS(PTPPortType)# setPTPportProperties_v2 review
Commands in queue:
setPTPportProperties_v2 ptp_port_config ptp_run enable
setPTPportProperties_v2 ptp_port_config clock_inst 1
setPTPportProperties_v2 ptp_port_config port_id 2
setPTPportProperties_v2 ptp_port_config localpriority value 12
setPTPportProperties_v2 ptp_port_config not_slave enable
setPTPportProperties_v2 ptp_port_config mcast_dest default
setPTPportProperties_v2 ptp_port_config sync_interval value -4
setPTPportProperties_v2 ptp_port_config delay_req interval -6
UCS(PTPPortType)# setPTPportProperties_v2 commit
UCS(PTPPortType)# exit
Enabling or Disabling Microsemi APR
To enable or disable Microsemi APR, perform the following steps:
Configuration Example
The following example shows how to enable Microsemi APR.
UCS(PTPPortType)# setPTPexternalProperties ptp_external_conf algorithm enable enable UCS(PTPPortType)# setPTPexternalProperties ptp_external_conf algorithm one_hertz enable UCS(PTPPortType)# setPTPexternalProperties review UCS(PTPPortType)# setPTPexternalProperties commit UCS(PTPPortType)# exit
The following example shows how to disable Microsemi APR and return to default VTSS APR.
UCS(PTPPortType)# setPTPexternalProperties ptp_external_conf algorithm enable disable UCS(PTPPortType)# setPTPexternalProperties review UCS(PTPPortType)# setPTPexternalProperties commit UCS(PTPPortType)# exit
![]() Note |
The following example shows how to set holdover specification and adjustment method for G.8275.1 profile.
UCS(PTPPortType)# setPTPexternalProperties_v2 ptp_external_config ho_spec enable enable
UCS(PTPPortType)# setPTPexternalProperties_v2 ptp_external_config ho_spec cat1_value 11
UCS(PTPPortType)# setPTPexternalProperties_v2 ptp_external_config ho_spec cat2_value 12
UCS(PTPPortType)# setPTPexternalProperties_v2 ptp_external_config ho_spec cat3_value 13
UCS(PTPPortType)# setPTPexternalProperties_v2 ptp_external_config one_pps_mode one_pps_input enable
UCS(PTPPortType)# setPTPexternalProperties_v2 ptp_external_config adjustment_method ltc_phase enable
UCS(PTPPortType)# setPTPexternalProperties_v2 review
Commands in queue:
setPTPexternalProperties_v2 ptp_external_config ho_spec enable enable
setPTPexternalProperties_v2 ptp_external_config ho_spec cat1_value 11
setPTPexternalProperties_v2 ptp_external_config ho_spec cat2_value 12
setPTPexternalProperties_v2 ptp_external_config ho_spec cat3_value 13
setPTPexternalProperties_v2 ptp_external_config one_pps_mode one_pps_input enable
setPTPexternalProperties_v2 ptp_external_config adjustment_method ltc_phase enable
UCS(PTPPortType)# setPTPexternalProperties_v2 commit
UCS(PTPPortType)# exit
Verifying PTP
Use the following commands to verify the PTP status on the controller:
Switch(config-controller-PTPPortType)# showPTPall ptp_show_req 1 Switch(config-controller-PTPPortType)# showPTPall commit
![]() Note | To view the values of the parameters that have been added as part of G.8275.1 profile, use the showPTPall_v2 command. |
The following is a sample output from the showPTPall command:
ShowPTPall_Output.ptp_show_response[0].local_current_time.ptp_time = 'local time not implemented for clk_inst = 1 ' ShowPTPall_Output.ptp_show_response[0].local_current_time.clock_adjustment_method.t = 4 ShowPTPall_Output.ptp_show_response[0].local_current_time.clock_adjustment_method.u.software = '' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.clock_id = 1 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.mode.t = 5 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.mode.u.slave = '' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.two_step_flag = false ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.ports = '255' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.clock_identity = '4348018d07000075' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.clock_quality = 'Cl:255 Ac:128 Va:00004' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.properties.priority1 = 0 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.properties.priority2 = 0 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.properties.clock_domain = 127 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.protocol.t = 1 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.protocol.u.ethernet = '' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.one_way = true ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.vlan.t = 1 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.vlan.u.disable = '' ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.pcp.t = 1 ShowPTPall_Output.ptp_show_response[0].clock_default_dataset.pcp.u.disable = '' ShowPTPall_Output.ptp_show_response[0].time_property.UTC_offset.t = 2 ShowPTPall_Output.ptp_show_response[0].time_property.UTC_offset.u.value = 34 ShowPTPall_Output.ptp_show_response[0].time_property.frequency_traceable = true ShowPTPall_Output.ptp_show_response[0].time_property.leap59 = true ShowPTPall_Output.ptp_show_response[0].time_property.leap61 = true ShowPTPall_Output.ptp_show_response[0].time_property.timing_traceable = true ShowPTPall_Output.ptp_show_response[0].time_property.ptp_timescale = true ShowPTPall_Output.ptp_show_response[0].time_property.ptp_timesource = 0 ShowPTPall_Output.ptp_show_response[0].clock_parent_dataset = 'ParentPortIdentity port Pstat Var ChangeRate d0c282fffe17dfbf 1 0 65170-8207664 GrandmasterIdentity GrandmasterClockQuality Pri1 Pri2fe17dfbf68fe70cd Cl:128 Ac:128 Va:33914 92 145 ' ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.stpRm = 1 ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.offset_from_master = ' 0.000.000.003' ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.mean_path_delay = ' 0.000.000.067' ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.slave_port = 4 ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.slave_state.t = 4 ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.slave_state.u.LOCKED = '' ShowPTPall_Output.ptp_show_response[0].clock_current_dataset.holdover = 'TRUE -368.3 ' ShowPTPall_Output.ptp_show_response[0].slave_cfg[0].index_ = 0 ShowPTPall_Output.ptp_show_response[0].slave_cfg[0].duration = 100 ShowPTPall_Output.ptp_show_response[0].slave_cfg[0].peer_ip_addr = '7.7.7.7' ShowPTPall_Output.ptp_show_response[0].slave_cfg[1].index_ = 1 ShowPTPall_Output.ptp_show_response[0].slave_cfg[1].duration = 100 ShowPTPall_Output.ptp_show_response[0].slave_cfg[1].peer_ip_addr = '0.0.0.0' ShowPTPall_Output.ptp_show_response[0].slave_cfg[2].index_ = 2 ShowPTPall_Output.ptp_show_response[0].slave_cfg[2].duration = 100 ShowPTPall_Output.ptp_show_response[0].slave_cfg[2].peer_ip_addr = '0.0.0.0' ShowPTPall_Output.ptp_show_response[0].slave_cfg[3].index_ = 3 ShowPTPall_Output.ptp_show_response[0].slave_cfg[3].duration = 100 ShowPTPall_Output.ptp_show_response[0].slave_cfg[3].peer_ip_addr = '0.0.0.0' ShowPTPall_Output.ptp_show_response[0].slave_cfg4.index_ = 4 ShowPTPall_Output.ptp_show_response[0].slave_cfg4.duration = 100 ShowPTPall_Output.ptp_show_response[0].slave_cfg4.peer_ip_addr = '0.0.0.0' ShowPTPall Commit Success!!!
Additional References
Related Documents
| Related Topic | Document Title |
|---|---|
Cisco ME 3800x and ME 3600x Switches Software Configuration Guide, Cisco IOS Release 15.4(1)S |
MIBs
| MIB | MIBs Link |
|---|---|
MIBs Supporting Cisco IOS |
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: |
Technical Assistance
| Description | Link |
|---|---|
|
The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. |

Feedback