Example: Configuring Precision Time Protocol Using AES67 Media Profile The following is a sample PTP configuration to set up a device using AES67 media profile:
Device# configure terminal Device(config)# ptp transport-protocol ipv4 udp Device(config)# ptp mode boundary delay-req Device(config)# interface range gigabitethernet1/0/1-gigabitethernet1/0/2 Device(config-if-range)# ptp sync interval -3 Device(config-if-range)# ptp delay-req interval -3 Device(config-if-range)# exit Device(config)# ptp ip dscp 46 message general Device(config)# ptp ip dscp 46 message event Device(config)# end The following is a sample QoS configuration to set up a device such that the expedited forwarding messages face minimal latency and media traffic faces no drops:
Device# configure terminal Device(config)# class-map match-all PTP Device(config-cmap)# match dscp 46 Device(config-cmap)# class-map match-any VOICE Device(config-cmap)# match dscp 34 Device(config-cmap)# exit Device(config)# policy-map GENERAL-QOS Device(config-pmap)# class PTP Device(config-pmap-c)# priority level 1 percent 10 Device(config-pmap-c)# class VOICE Device(config-pmap-c)# bandwidth remaining percent 30 Device(config-pmap-c)# class class-default Device(config-pmap-c)# bandwidth remaining percent 60 Device(config-pmap-c)# end Verifying Precision Time Protocol Configurations Verifying Layer 2 and Layer 3 PTP Configurations show ptp port interface-name To verify PTP port state, use show ptp port interface-name command.
To verify the PTP port states on all interfaces use show ptp brief command. The following is a sample output for boundary mode configuration with delay request mechanism: Device# show ptp port GigabitEthernet1/0/45 PTP PORT DATASET: GigabitEthernet1/0/45 Port identity: clock identity: 0xCC:46:D6:FF:FE:C5:24:0 Port identity: port number: 45 PTP version: 2 Port state: SLAVE Delay request interval(log mean): 0 Announce receipt time out: 3 Announce interval(log mean): 1 Sync interval(log mean): 0 Delay Mechanism: End to End Configuring Precision Time Protocol (PTP) Example: Configuring Precision Time Protocol Using AES67 Media Profile Configuring Precision Time Protocol (PTP) 25