Use it when checking which clock the PTP domain follows, or why the grandmaster changed.
Grandmaster
The PTP grandmaster is the best clock in the domain, selected by the Best Master Clock Algorithm, and is usually locked to GPS; all other clocks synchronise to it.
1. The grandmaster is the best clock (BMCA) and source of time.
2. Usually GNSS-backed.
3. Priority1/2, class, accuracy decide.
4. Have a backup grandmaster.
5. Monitor GNSS lock.
GNSS → grandmaster → BMCA selection → network
Context & applicabilityCommon mistakes · platform/version boundaries
- Two grandmaster candidates with the same priority and no clear tie-breaker.
- GPS antenna problems turning the grandmaster into a free-running clock.
- Switches without PTP support (not transparent or boundary clocks) adding jitter.
Operational reference
Fast context before you go deeper.
show ptp clockShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ptp clockShowDisplay the Precision Time Protocol clock.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixed · verifiesshow ptp portShowDisplay PTP port states.
Use when: Use at the Network Time & Clocking Troubleshooting boundary after prerequisites have been verified.
Quick note: Operational guidance. Correct wall-clock appearance does not prove synchronization; a reachable peer does not prove selection.
Cisco IOS / IOS XE · mixed · verifiesVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
show ptp clock
show ptp parent
show ptp port
pmc -u -b 0 'GET PARENT_DATA_SET' # linuxptp
Confirm the grandmaster identity, clock class (6 = locked to GNSS) and that the GNSS receiver has a fix. Alert on grandmaster changes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show clockis observation, not proof of synchronization- NTP association, selection and synchronized system state are separate
- Offset, delay, dispersion and jitter explain source quality
- PTP depends on domain, grandmaster selection and clock role
- ACL/CoPP, VRF/source, UDP 123, one-way delay and hardware support can be the first boundary.
show ptp parent— grandmaster identity and class- GNSS lock status on grandmaster — source quality
ReferenceWhat it is1 section · depth on demand
How the grandmaster is chosen
The Best Master Clock Algorithm compares, in order: priority1 → clock class → clock accuracy → offset scaled log variance → priority2 → clock identity. The lowest value wins.
A grandmaster normally has a GNSS (GPS) receiver and reports clock class 6 when locked. If it loses GNSS it degrades its class, and a better backup grandmaster can take over. Set priority1 deliberately so the intended grandmaster wins.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The grandmaster is the clock that every other PTP clock follows
The Catalyst 9300 PTP guide describes the grandmaster as the primary time source for a PTP domain. Grandmaster clocks are usually dedicated appliances with GNSS (GPS) receivers. Catalyst switches act as boundary or transparent clocks between the grandmaster and end devices.
How the grandmaster is chosen
The Best Master Clock Algorithm (BMCA) compares announce messages in this order: priority1, clock class, accuracy, variance, priority2, then clock identity. On the switch, ptp priority1 and ptp priority2 range from 0 to 255 with a default of 128. The guide notes that priority1 255 prevents a clock from becoming grandmaster.
C9300# show ptp parent
PTP PARENT PROPERTIES
Parent Clock:
Parent Clock Identity: 0x0:1D:C1:FF:FE:12:34:56
Parent Port Number: 1
Grandmaster Clock:
Grandmaster Clock Identity: 0x0:1D:C1:FF:FE:12:34:56
Grandmaster Clock Quality:
Class: 6
Accuracy: Within 100ns
Offset (log variance): 13563
Priority1: 1
Priority2: 1
C9300(config)# ptp priority1 255
Grandmaster design
| Practice | Reason |
|---|---|
| Two grandmasters with different priority1 | BMCA fails over automatically |
| GNSS antenna with holdover (OCXO or rubidium) | Accuracy during GNSS outages |
| Priority1 255 on all switches | No switch can win the election by accident |
| Grandmasters close to the boundary-clock core | Fewer hops, less accumulated error |
Clock class
| Class | Typical meaning |
|---|---|
| 6 | Locked to a primary reference (GNSS) |
| 7 | In holdover, within specification |
| 248 | Default; not traceable |
A grandmaster that loses GNSS and degrades its class can be outranked by a backup that still has GNSS. Monitor the class, not only reachability.
Documented example, not captured output.
Quick reference
PTP (Precision Time Protocol, IEEE 1588) synchronises clocks far more accurately than NTP — sub-microsecond instead of milliseconds — by timestamping packets in hardware. The grandmaster is the top of the time hierarchy, usually locked to GPS or another satellite system. All other clocks in the domain follow it, and an election algorithm picks a new grandmaster automatically if the active one fails or degrades.
A PTP grandmaster clock is the primary time source in a PTP (IEEE 1588) domain, typically GNSS-disciplined, selected by the Best Master Clock Algorithm (BMCA) using priority1, clock class, accuracy, variance, priority2 and identity.
PTP achieves sub-microsecond accuracy (vs milliseconds for NTP) for broadcast media (SMPTE 2110), financial trading timestamps, 5G fronthaul and industrial automation. Deploy redundant grandmasters with GNSS holdover.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → Time Synchronization → PTP → Grandmaster. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%