Best Master Clock Algorithm The Best Master Clock Algorithm (BMCA) is the basis of PTP functionality. The BMCA specifies how each clock on the network determines the best master clock in the subdomain of all the clocks that it can see, including itself. The BMCA runs locally on each port in network continuously for every Announce interval and quickly adjusts for changes in network configuration. BMCA based on IEEE 1588-2008 uses Announce messages for advertising clock properties. The BMCA uses the following criteria to determine the best master clock in the subdomain: • Clock quality. Example, GPS is considered the highest quality.
• Accuracy of the clock’s time base • Stability of the local oscillator • Closest clock to the grandmaster BMCA based on IEEE 1588-2008 uses own data set with the received data set to determine the best clock based on the attributes with the following properties, in the indicated order: 1. Priority1: User-assigned priority to each clock. The range is from 0 to 255. The default value is 128. 2. Class: Class to which a clock belongs, each class has its own priority. 3. Accuracy: Precision between clock and UTC, in nanoseconds 4. Variance: Variability of clock 5. Priority2: Final priority. The range is from 0 to 255. The default value is 128. 6. Unique Identifier:
64-bit Extended Unique Identifier (EUI) In addition to identifying the best master clock, the BMCA also ensures that clock conflicts do not occur on the PTP network by ensuring that: • There is no misconfiguration, such as two master clocks or no master clocks, as a result of the master clock identification process. • Clocks do not have to negotiate with one another Starting Cisco IOS XE Bengaluru 17.6.4 release, the default PTP profile determines its own synchronization tree, and this synchronization tree is different from spanning tree. Note PTP Ports This topic decribes about the different PTP port states and their respective functions:
Configuring Precision Time Protocol (PTP) Best Master Clock Algorithm PTP Port State Description INITIALIZING When a port is in the INITIALIZING state, it initiates data sets, hardware and communication facilities. There are no PTP messages placed by the ports of the clock in its communication path. If one of the ports of boundary clock is in INITIALIZING state, then all the ports will be in the INITIALIZING state. Configuring Precision Time Protocol (PTP) 8