This project is part of the ptp-sim project. See the ptp-sim project page for more information. There is also the ptp-sim discussion forum for further discussions.
This repository provides exmaple simulations using the LibPTP library for the simulation of the Precision Time Protocol (PTP) as specified in IEEE 1588-2008. The current version of this software can be found on the projects's Github site. The example networks provided in this repository are the ones that were used in the following master thesis:
- Wolfgang Wallner, Simulation of Time-synchronized Networks using IEEE 1588-2008, 2016, Vienna University of Technology Persistent URL: https://resolver.obvsg.at/urn:nbn:at:at-ubtuw:1-3908
Mostly the files below the simulatons folder are of interest. The simulations/PTP directoy contains different PTP simulation networks:
- BMC_Tests: Diffent test cases for the Best Master Clock Algorithm (BMCA). The test cases were taken from the Book Measurement, Control, and Communication Using IEEE 1588 by John Eidson (ISBN 978-1-84628-251-5).
- DaisyChain: A daisy chain network. This example is useful for studying the impact of the line length on the clock synchronization.
- Mixed_Test_1, Mixed_Test_2, Mixed_Test_3: Example networks with a mix of different PTP nodes.
- Ring: A ring network.
- Simple: The most simple PTP use case: a master-capable clock and a slave-only node.
- SingleMaster: A network with a single PTP node. The main purpose for this test network is to catch regressions in the source code.
- TC_Test: A simple network with transparent clocks. This example also servers mainly for regression testing.
The simulations/Testbenches directory contains various test benches to test different LibPTP simulation models.
This project is licensed unter the GPLv3. See the COPYING file for details.
Please visit the ptp-sim discussion forum for further discussions.