PTP Basics : What is a BMCA Election?
For any PTP based system, one device must be the GM, telling all other devices on the network “what time it is”. In order for a device to be a GM, it must win what is called a BMCA, or Best Master Clock Algorithm, election. To simplify, any device that has the ability to be a GM joins a competition to decide who has the best clock on the domain. The competition is then decided autonomously by the devices themselves, and whichever wins begins feeding PTP to the entire network, with other devices setting themselves up in a hierarchical tree.
How is a BMCA decided?
Remember that all PTP messages are sent to the same multicast IP on a per PTP Domain basis. So, all that is required for a device to participate in the BMCA is to be on the same PTP Domain as other devices, and to be on the same network segment so the traffic can get to where it needs to go. There is no other action needed by the user, the BMCA will automatically take place, and it will take place again if the current GM is taken offline or an event changes the GM’s accuracy, like losing GPS lock.
For the BMCA itself, all GM capable devices send their relevant attributes for deciding who wins via an announce message, one of the basic PTP messages that are sent regularly. The following are the attributes themselves, in priority order.
PTP Priority 1 (Simple, user assignable value from 1 - 255)
GM Clock Class (Status of the clock, like whether it is locked to GPS)
GM Clock Accuracy (the accuracy range of the oscillator itself)
GM Clock Variance (a mathematical way to measure the stability of the clock)
PTP Priority 2 (Simple, user assignable value from 1 - 255)
Mac Address (primarily used just as a tiebreaker when all other values are the same between multiple devices)
The election functions by comparing the first attribute between GMs on the network. If there is a single device with the lowest value (in a numerical sense, because 1 is the best value and 255 is the worst), the election ends. Only if devices are tied does it move on to the next value, and the same goes for each other attribute, it’s only relevant if the previous attribute was tied between multiple devices. I have bolded PTP 1 and 2 because they are the primary way the user can alter the outcome of the BMCA.
What do I need to do on my Clear-Com Device?
If your IPA or Arcadia is the only GM capable device on the network, you don’t need to do anything at all. Because it is the only device on the network capable of being GM, the BMCA will take place, but the IPA or Arcadia will always win. It is worth knowing that the Eclipse or Arcadia communicates PTP settings to all of its edge devices like IPTs or Panels, so any change related to PTP settings is reflected across all Clear-Com devices. But, these are settings like PTP announce, sync, timeout, and domain. PTP Priorities are never sent to edge devices and they are not capable of being GM.
The following is only needed if you are trying to have your Clear-Com AES-67 network sync to a third party GM. The default values for both IPA and Arcadia are:
PTP Priority 1: 127
PTP Priority 2: 127
PTP Domain : 0
On the Eclipse, these settings are editable to any value. On Arcadia, these are fixed, with the exception of the PTP Follower Mode enable switch. On both devices, PTP Follower mode sets PTP Priority 1 to a value of 254, meaning it will always lose the election. That is the only PTP setting which is user editable on Arcadia, where on the Eclipse, the Priorities can be changed to anything. Because the priority 1 value is higher in the election decision tree than anything related to clock quality, if you want a third party GM to win, the priority 1 value must be higher on the dedicated GM device. It is your choice as to whether you do this via setting the IPA or Arcadia to follower mode, making it unable to win the BMCA, or by setting the third party GM with a higher PTP Priority 1, 2, or both. As we discussed earlier, PTP Priority 1 is taken into account before anything related to clock quality.
Your decision here is important, but one that is specific to your setup, there is no hard rule which is perfect for every case. Setting your Clear-Com device to Follower mode makes it so it can never take over as GM. That can be valid, particularly in the case where you have redundant GMs. Simply setting your third party GM to a better Priority value at either 1 or 2 than the Clear-Com device (and not activating PTP Follower Mode) can accomplish the same, and should allow the IPA or Arcadia to take over as GM in the case that your third party GM is offline, but it should be noted that this will not be a clean failover in any case, because the PTP Epoch, the time value itself, will be radically different between a either GPS locked or Freerunning Third Party PTP GM and an IPA or Arcadia.
If you have any questions about PTP or Clocks, please reach out to Clear-Com Support.