Network Timing

Info
  • A Milan network has one clock leader. The BTCA is executed automatically each time a change in the network occurs to elect a GrandMaster (GM).
  • The GM is elected based on parameters that describe the clock quality of the device. The best quality wins.
  • Switches are preferred over a Bridged Endstation
  • Synchronization between participants is done from port to port. This reduces effects of variation in the network.

Having a well-synchronized network is crucial for the performance of the network. An unsynchronized network could lead to sampling signals at different points in time. In a less severe scenario, this can result in mixed signals that exhibit a comb filter characteristic, distorting the audio. In a worst-case scenario, the lack of synchronization could cause audio dropouts, glitches, and clicks, significantly degrading the listening experience and likely displeasing your audience. Therefore, maintaining precise synchronization is essential to ensure seamless and high-quality audio transmission across the network.

Milan employs the Generalized Precision Timing Protocol (gPTP) to synchronize all participants within the network, including both Endstations and switches. Notably, the inclusion of Switches distinguishes Milan from other existing networked audio protocols, as it requires the Switches to be time-aware and therefore capable of understanding network time.

Clock Leader Election

Consider a Milan network that has just been switched on. It is likely that it consists of multiple Endstations and Switches. In a first step, a Grand Master (GM) has to be elected. This Grand Master will distribute its time to all participants allowing them to share a common understanding of time. The election process is defined in an algorithm called Best Time Transmitter Algorithm (BTCA). The algorithm is executed automatically when a change in the network is detected.

Image

The election of the the gPTP GrandMaster (GM) is based on parameters that describe the clock quality of the device. Of course the best clock quality is elected as the GM. In case multiple devices have the same clock quality, the device with the lowest MAC address is selected. Switches are preferred over a Bridged Endstation.

After the election process, the GM provides its time to all network participants.

Device Synchronisation

In gPTP, synchronization occurs at the ports of network devices, allowing for more accurate time measurements and reducing the effects of network delays and jitter. This contrasts with PTPv1, which uses the end-to-end approach that may introduce additional uncertainties in time synchronization due to varying network conditions.

Image

Domain

All devices synchronized to the same gPTP GrandMaster (GM) belong to a single domain. Each domain is exclusively clocked by one gPTP GM. In Milan, audio streams cannot be shared between different gPTP domains because there is no timing relationship between them.