cisco · Catalyst 9300 · 32 pp.
Cisco Catalyst 9300 Precision Time Protocol (PTP) Configuration Manual
Руководство по настройке Precision Time Protocol (PTP) на коммутаторах Cisco, включая ограничения, настройки и примеры конфигураций.
Related manuals
Contents
Document text
Restrictions and Limitations for Precision Time Protocol
Configuring Precision Time Protocol (PTP) Restrictions and Limitations for Precision Time Protocol, on page 1 Information About Precision Time Protocol, on page 2 How to Configure Precision Time Protocol, on page 15 Configuration Examples for Precision Time Protocol, on page 24 Verifying Precision Time Protocol Configurations, on page 25 Feature History for Precision Time Protocol, on page 31 Restrictions and Limitations for Precision Time Protocol • Precision Time Protocol (PTP) is supported only on the first 16 downlink ports and on all the uplink ports of the C9300-48UXM switch model.
• Precision Time Protocol (PTP) is supported only on the first 36 downlink ports and on all the uplink ports of the C9300-48UN switch model. • Synchronization of PTP clock from system clock and vice versa is not supported. • Inter-VLAN is not supported in PTP Transparent Clock Mode. • The switch supports IEEE 802.1AS and IEEE 1588 Default profile and they are both mutually exclusive. Only one profile can be enabled on the switch at a time. • The Cisco PTP implementation supports only the two-step clock and not the one-step clock. If the switch receives a one-step message from the Grand Master Clock, the message will be dropped.
• We do not recommend having non-PTP enabled devices in the PTP network since it decreases clock synchronization accuracy. • Signaling messages are not supported in Cisco IOS XE Gibraltar 16.12.1. These messages are dropped in the switch without being processed. • Management messages with broadcast target id will be forwarded with a reduced hop count when the boundary clock mode is enabled. Management messages will be forwarded without decreasing the boundary hop count when transparent clock mode is enabled. • Moving directly from one PTP mode to the other is not recommended. Clear the existing mode using no PTP mode and then configure a new mode. • IPv6 and VRF do not support PTP.
Configuring Precision Time Protocol (PTP) 1
Message-Based Synchronisation
• Transparent clock mode is not supported on native Layer 3 ports and EtherChannel interfaces. (boundary clock mode is supported on native Layer 3 ports) • Stacking all 8 stack members may reduce performance or result in differences in mean delay and clock offset values. • The C9300-48HX, C9300-48TX, C9300-24HX, C9300X-48HXN, C9300-24UX, C9300-48UXM, C9300-24UXB, and C9300-48UN switch models do not support gPTP at 100Mbps speed.
Information About Precision Time Protocol Precision Time Protocol (PTP) is defined in IEEE 1588 as Precision Clock Synchronization for Networked Measurements and Control Systems, and was developed to synchronize the clocks in packet-based networks that include distributed device clocks of varying precision and stability. PTP is designed specifically for industrial, networked measurement and control systems, and is optimal for use in distributed systems because it requires minimal bandwidth and little processing overhead.
Smart grid power automation applications such as peak-hour billing, virtual power generators, and outage monitoring and management, require extremely precise time accuracy and stability. Timing precision improves network monitoring accuracy and troubleshooting ability. In addition to providing time accuracy and synchronization, the PTP message-based protocol can be implemented on packet-based networks, such as Ethernet networks. The benefits of using PTP in an Ethernet network include:
• Low cost and easy setup in existing Ethernet networks • Limited bandwidth required for PTP data packets Ethernet Switches and Delays In an Ethernet network, switches provide a full-duplex communication path between network devices. Switches send data packets to packet destinations using address information contained in the packets. When the switch attempts to send multiple packets simultaneously, some of the packets are buffered by the switch so that they are not lost before they are sent. When the buffer is full, the switch delays sending packets. This delay can cause device clocks on the network to lose synchronization with one another.
Additional delays occur when packets entering a switch are stored in local memory while the switch searches the MAC address table to verify packet CRC fields. This process causes variations in packet forwarding time latency, and these variations result in asymmetrical packet delay times. Adding PTP to a network can compensate for these latency and delay by correctly adjusting device clocks so that they stay synchronized with one another. PTP enables network switches to function as PTP devices, including boundary clocks and transparent clocks.
Message-Based Synchronisation To ensure clock synchronization, PTP requires an accurate measurement of the communication path delay between the time source (master) and the receiver (slave). PTP sends messages between the master and slave device to determine the delay measurement. Messages are described in detail in Precision Time Protocol Version 2 Message Types . Then, PTP measures the exact message transmit and receive times and uses these Configuring Precision Time Protocol (PTP) Information About Precision Time Protocol Configuring Precision Time Protocol (PTP) 2
Message-Based Synchronisation
times to calculate the communication path delay. PTP then adjusts current time information network data for the calculated delay, resulting in more accurate time information. This delay measurement principle determines path delay between devices on the network, and the local clocks are adjusted for this delay using a series of messages that are sent between masters and slaves. The one-way delay time is calculated by averaging the path delay of the transmit and receive messages. This calculation assumes a symmetrical communication path; switched networks do not necessarily have symmetrical communication paths, due to the buffering process.
PTP provides a method, using transparent clocks, to measure and account for the delay in a time-interval field in network timing packets, making the switches temporarily transparent to the master and slave nodes on the network. An end-to-end transparent clock forwards all messages on the network the same way that a switch does. Cisco PTP supports multicast PTP messages only. Note The following figure shows a typical 1588 PTP network that includes grandmaster clocks, switches in boundary clock mode, and Intelligent Electronic Device (IEDs) such as a digital relays or protection devices. In this diagram, Master 1 is the grandmaster clock.
If Master 1 becomes unavailable, the boundary clock slaves switch to Master 2 for synchronization. Figure 1: A PTP Network with Switches in Boundary Clock Mode PTP with etherchannel interface and MACsec is supported. Note Configuring Precision Time Protocol (PTP) Message-Based Synchronisation Configuring Precision Time Protocol (PTP) 3
Precision Time Protocol and Software Defined Architecture Overlay
Precision Time Protocol Version 2 Message Types PTP messages are categorized into the following types: Event Messages are tagged with timestamps when data packets reach or leave a port and are used to calculate the link delay based on the timestamps. Messages: • Sync • Delay_Req • Pdelay_Req • Pdelay_Resp General Messages are not tagged with timestamps and are used to establish a master-slave hierarchy. General messages are listed below: • Announce • Follow_Up • Delay_Resp • Pdelay_Resp_Follow_Up Announce messages are used to establish the synchronization hierarchy. Sync, Delay_Req, Follow_Up, and Delay_Resp messages are used to synchronize ordinary and boundary clocks.
Pdelay_Req, Pdelay_Resp, and Pdelay_Resp_Follow_Up messages are used to measure the link delay in transparent clocks. The (Best Master Clock Algorithm (BMCA) elects the grandmaster clock and assign the ports as master or slave. Following this, all the master ports start sourcing the clock to the downstream slaves using the Sync and Follow_Up messages. The downstream slaves receive the clock and update their clock after computing the delay of the link, time offset, frequency offset and drift error parameters. The downstream slaves compute the link delay using one of the mechanisms.
End-to-End Delay Mechanism, on page 5 Peer-to-Peer Delay Mechanism, on page 6 Precision Time Protocol and Software Defined Architecture Overlay • Software Defined Architecture (SDA) fabric switches do not support PTP messages with hardware timestamp. • PTP clock accuracy and latency gets affected when overlay PTP messages are forwarded without hardware timestamp. PTP clock accuracy and latency gets affected as the number of hops increases. • Configure multicast protocols — IGMP and PIM to forward Layer 2, Layer 3 format of PTP messages in overlay. Configuring Precision Time Protocol (PTP) Precision Time Protocol Version 2 Message Types Configuring Precision Time Protocol (PTP) 4