百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

IEEE1588-PTP

> 编程语言
开源

一种使用内核绕行的 IEEE1588 精确时间协议实现,采用 Python 和 C 语言编写。

185 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一种使用内核绕行的 IEEE1588 精确时间协议实现,采用 Python 和 C 语言编写。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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