Git Product home page Git Product logo

ieee1588-ptp's Introduction

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

ieee1588-ptp's People

Contributors

bestvibes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.