Session

Introduction to PTP on Linux - APIs

Instructors

Maciek Machnikowski

Label

Hands On

Session Type

Tutorial

Contents

Description

Are you looking for a way to achieve precise time? Then this talk is for you! It aims to provide a fundamental understanding of the components essential for synchronization and how they work together to achieve accurate time synchronization.

This presentation provides an overview of the Precision Time Protocol (PTP) APIs within the Linux Kernel, including key components such as POSIX clock APIs, relevant IOCTLs, and netdev socket options. It also examines the lifecycle of hardware timestamps on both the transmit and receive sides.

With socket options, users can manipulate timestamping behavior and enable various methods of generating timestamps, from hardware to software generated by the Networking stack. This allows for the seamless integration of time synchronization capabilities into applications using POSIX clock APIs.

In addition, it discusses the role of IOCTLs in configuring and interacting with PTP-enabled devices.

Finally, it concludes by addressing the major limitations of current APIs, specifically the lack of information about the quality of time on synchronized devices. We propose extensions that will make the APIs more robust and offer a solution to the problem of inaccurate time synchronization.

Join us for this informative talk and learn how to achieve precise time synchronization easily.