Precision Time Protocol (PTP), defined by IEEE 1588, synchronizes real-time clocks across network devices to nanosecond accuracy using a grandmaster-boundary-ordinary clock hierarchy with continuously exchanged timing messages. IOS-XR PTP supports ITU-T telecom profiles (G.8265.1, G.8275.1, G.8275.2), per-interface and global profile assignment, unicast/multicast transport modes, master/slave peer management, interop domain conversions, and UTC leap-second offset scheduling.
Name Type Constraint Mandatory Default Value ptp Class [ptp]No
Name Type Constraint Mandatory Default Value apts Boolean true, falseNo clock Class [clock]No detect_ptsf_unusable Boolean true, falseNo double_failure_clock_class Integer min: 0, max: 255 No freerun_clock_class Integer min: 0, max: 255 No frequency_priority Integer No holdover_spec_clock_class Integer min: 0, max: 255 No holdover_spec_duration Integer No holdover_spec_traceable_override Boolean true, falseNo ipv6_verify_checksum Boolean true, falseNo log_best_primary_clock_changes Boolean true, falseNo log_servo_events Boolean true, falseNo min_clock_class Integer min: 0, max: 255 No network_type_high_pdv Boolean true, falseNo performance_monitoring Boolean true, falseNo phase_difference_threshold_breach Integer No physical_layer_frequency Boolean true, falseNo profiles List [profiles]No servo_slow_tracking Integer No startup_clock_class Integer min: 0, max: 255 No time_of_day_priority Integer No transparent_clock_domain_all Boolean true, falseNo uncalibrated_clock_class Integer min: 0, max: 255 No uncalibrated_traceable_override Boolean true, falseNo uncalibrated_unless_from_holdover Boolean true, falseNo utc_offset_baseline Integer No utc_offsets List [utc_offsets]No virtual_port Class [virtual_port]No
Name Type Constraint Mandatory Default Value clock_class Integer min: 0, max: 255 No domain Integer min: 0, max: 255 No identity_eui_64 String No identity_mac Any String or Choice[router] or String[Regex: ^.*[\$\%]\{.*$] No priority1 Integer min: 0, max: 255 No priority2 Integer min: 0, max: 255 No profile Choice g-8265-1, g-8275-1, g-8275-2No profile_clock_type Choice primary, slave, t-bc, t-gm, t-tscYes time_source Choice atomic-clock, gps, terrestrial-radio, ptp, ntp, hand-set, other, internal-oscillatorNo timescale Choice ptp, arbNo
Name Type Constraint Mandatory Default Value announce_frequency Choice 1, 2, 4, 8, 16, 32, 64, 128No announce_grant_duration Integer min: 60, max: 1000 No announce_interval Choice 1, 2, 4, 8, 16, 32, 64, 128No announce_timeout Integer min: 2, max: 10 No clock_operation Choice one-step, two-stepNo cos Integer min: 0, max: 7 No cos_event Integer min: 0, max: 7 No cos_general Integer min: 0, max: 7 No delay_asymmetry_unit Choice nanoseconds, microseconds, millisecondsNo delay_asymmetry_value Integer min: -500000000, max: 500000000 No delay_request_frequency Choice 1, 2, 4, 8, 16, 32, 64, 128No delay_request_interval Choice 1, 2, 4, 8, 16, 32, 64, 128No delay_response_grant_duration Integer min: 60, max: 1000 No delay_response_timeout Integer min: 100, max: 100000 No dscp Integer min: 0, max: 63 No dscp_event Integer min: 0, max: 63 No dscp_general Integer min: 0, max: 63 No interop Class [interop]No ipv4_ttl Integer min: 1, max: 255 No ipv6_hop_limit Integer min: 1, max: 255 No masters List [masters]No multicast Choice enable, disable, mixedNo multicast_target_address Choice 01-1B-19-00-00-00, 01-80-C2-00-00-0ENo name String Yes port_state Choice any, master-only, slave-onlyNo slaves List [slaves]No source_ipv4_address IP No source_ipv6_address IP No sync_frequency Choice 1, 2, 4, 8, 16, 32, 64, 128No sync_grant_duration Integer min: 60, max: 1000 No sync_interval Choice 1, 2, 4, 8, 16, 32, 64, 128No sync_timeout Integer min: 100, max: 100000 No transport Choice ethernet, ipv4, ipv6No unicast_grant_invalid_request Choice deny, reduceNo
Name Type Constraint Mandatory Default Value date String Yes offset_value Integer Yes
Name Type Constraint Mandatory Default Value clock_accuracy Integer No clock_class Integer No enable Boolean true, falseNo gm_threshold_breach Integer No local_priority Integer No offset_scaled_log_variance Integer No priority1 Integer min: 0, max: 255 No priority2 Integer min: 0, max: 255 No
Name Type Constraint Mandatory Default Value domain Integer min: 0, max: 255 No egress_conversion Class [egress_conversion]No ingress_conversion Class [ingress_conversion]No profile Choice default, g-8265-1, g-8275-1, g-8275-2No
Name Type Constraint Mandatory Default Value address String Yes clock_class Integer min: 0, max: 255 No delay_asymmetry_unit Choice nanoseconds, microseconds, millisecondsNo delay_asymmetry_value Integer min: -500000000, max: 500000000 No multicast Choice enable, mixedNo non_negotiated Boolean true, falseNo priority Integer min: 0, max: 255 No
Name Type Constraint Mandatory Default Value address String Yes non_negotiated Boolean true, falseYes
Name Type Constraint Mandatory Default Value clock_accuracy Integer min: 0, max: 254 No clock_class_default Integer min: 0, max: 255 No clock_class_mappings List [clock_class_mappings]No offset_scaled_log_variance Integer min: 0, max: 65535 No priority1 Integer min: 0, max: 255 No priority2 Integer min: 0, max: 255 No
Name Type Constraint Mandatory Default Value class_from Integer min: 0, max: 255 Yes class_to Integer min: 0, max: 255 Yes
MAC Address Formats
The following attributes accept MAC addresses in any of three formats:
PTP Master/Slave addresses PTP Clock idenfity colon-separated (e.g., "aa:bb:cc:dd:ee:ff") dash-separated (e.g., "aa-bb-cc-dd-ee-ff") dotted (e.g., "aabb.ccdd.eeff") All 3 formats can be used interchangeably. The normalization layer converts the user-specified format to colon-separated before sending to the device.
Address Selection
Master and slave peer lists accept IPv4, IPv6, and MAC addresses in a single masters: or slaves: list. The address type is automatically detected:
IPv4: dotted-decimal notation (e.g., 10.3.3.3) IPv6: colon-hex notation (e.g., 2001:db8::3) MAC: colon, dash, or dotted format (e.g., aa:bb:cc:dd:ee:f4, aa-bb-cc-dd-ee-ff, aabb.ccdd.eeff) Example-1: Global PTP with clock profile g-8275-1 and virtual port.
physical_layer_frequency : true
log_best_primary_clock_changes : true
Example-2: PTP profile with ethernet transport, masters, and slaves.
clock_operation : one-step
delay_request_interval : 2
- address : " aa:bb:cc:dd:ee:f4 "
Example-3: PTP profile with interop conversions and delay asymmetry.
source_ipv4_address : 10.1.1.1
delay_asymmetry_value : 1000
delay_asymmetry_unit : microseconds