Site icon Techplayon

Telco Cloud Infra Timing Application – ptp4l, phc2sys and pmc

Introduction 

Timing is very important for Radio Access Network (RAN) for error free packet delivery to the Mobile devices and controlling the inter-site interference by keeping SFNs, Transmission and reception in sync. In 4G, traditional RAN usually a BBU (Baseband Unit) or DU (Digital Unit) is equipped with a GPS antenna port to meet the timing and synchronization requirements and all the Cell Site remain sync with GNSS.

While moving to Open RAN or Virtual RAN (vRAN) the DU is not more proprietary hardware, everything is moving to COTS hardware or Cloud Infrastructure. These Cloud based or COTS based hardware usually do not have local source of Timing & Synchronization (e.g. GPS)  although may have Hardware Clock (PHC ) which requires timing correction regularly and use a network based Timing Source e.g. IEEE 1588 PTP.

Precision Time Protocol (PTP) provides an efficient way to synchronize time on the network nodes. This protocol uses Master-Slave architecture. Grandmaster Clock (Master) is a reference clock for the other nodes, which adapt their clocks to the master.

The PTP over transport network reaches to the Servers on the NIC (Network Interface) and then kernel and Operating System extract the timing information from the PTP packets and further can be used by different application running on the Serves.

Linux has developed ptp4l, phc2sys and pmc  application to manage PTP packets provided on the NIC and driving timing stamps, updating and correcting the hardware clock and maintaining the clock status.

PTP Implementation in Operating System

In Linux operating system, PTP support is divided between the kernel and user space, for example, the kernel includes support for PTP clocks provided by network drivers (since hardware PTP relies on physical NIC to provide hardware clock. The actual implementation of the protocol is known as linuxptp, a PTPv2 implementation according to the IEEE 1588v2 standard for linux.

Further, linuxptp package includes ptp4l, phc2sys and pmc programs for clock synchronization.

In above diagram, end to end flow is clock is shown, from receiving at the Network Interface Card (NIC) to being used by application in User Space.

Other Consideration for Timing in Cloud Environment

Telco Cloud are much more complex and not always have PTP NIC, The NIC port can be deployed with SR-IOV, DPDK technologies and as a Engineer we may need to take more considerations while configuring and using ptp.

References:

Related Posts:

 



Exit mobile version