Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

IEEE1588-PTP

> 编程语言
Open source

An IEEE1588 Precision Time Protocol Implementation written in Python and C using a kernel bypass.

185 stars0 likes1 views
WebsiteGitHub

About

An IEEE1588 Precision Time Protocol Implementation written in Python and C using a kernel bypass.

IEEE1588-PTP

An IEEE1588 Precision Time Protocol Time Synchronization Algorithm implementation with a goal to minimize latency and network jitter.

Implementations

  1. Python: Probably the highest level implementation possible using standard sockets - Status: Done

  2. C: Highest level implementation possible using C with standard socket system calls - Status: Done

  3. C with kernel timestamping: One level lower using socket options to add kernel timestamping to reduce the non-deterministic delay from the time when the packet reaches the NIC to the time the userland records the time - Status: Icebox, too kernel/hardware specific, not enough support

  4. C with kernel bypass using netmap: Bypassing the kernel completely using netmap and talking directly to the NIC using mmap, ioctl, and ring buffers. Should result in the most accurate measurements and fastest execution - Status: WIP

Structure

slave/ contains the implementation for the slave, which is a server that will take requests to sync from the master.

master/ contains the implementation for the master which will initiate the sync protocol with the slave.

Running

Run the slave on the designated slave machine first, then run the master from the designated master.

Make sure you configure the slave IP address and the number of times to run the protocol at the top of libs/common.h. This implementation assumes that the master is a 64-bit machine, but the slave can be 32-bit.

For instructions on building, run "make" in the root directory. The makefiles in the individual server and pi directories are for debugging purposes.

References

Netmap: http://info.iet.unipi.it/~luigi/netmap/

IEEE1588 explanation: http://www.nist.gov/el/isd/ieee/upload/tutorial-basic.pdf

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言