https://github.com/cappe987/tstest
Test PTP timestamping and more in a controlled manner
https://github.com/cappe987/tstest
hacktoberfest network ptp timestamping
Last synced: about 1 year ago
JSON representation
Test PTP timestamping and more in a controlled manner
- Host: GitHub
- URL: https://github.com/cappe987/tstest
- Owner: cappe987
- License: gpl-2.0
- Created: 2023-06-10T16:26:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T15:03:01.000Z (over 1 year ago)
- Last Synced: 2025-03-12T16:22:03.303Z (over 1 year ago)
- Topics: hacktoberfest, network, ptp, timestamping
- Language: C
- Homepage:
- Size: 183 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tstest - TimeStamp Testing
A tool to test the functionalities required by Linuxptp in a controlled manner.
Rather than running the complex daemons you can use tstest to try out one
functionality at a time. Great for debugging purposes.
## Features
- `tstest pkt` can send and receive individual packets with timestamps.
- `tstest delay` can perform basic peer delay measurement.
- `tstest extts` can listen to EXTTS events from the kernel.
## TODO
- Add PPS configuration
- Add E2E delay
- Idea: `tstest check` mode that takes a config file of actions it should check
(send, receive, verify values). Should be run with a looped cable, else it
would require two instances (which might be an option too).
## TODO: TC Mode
- Better handling for finding the initial max/min values. Use INT MIN/MAX?
- Change to use capture time and interval, rather than packet count
- P2P measurement
- build_msg() should take portIdentity
- Export Delay and Twoway error. Alternatively, only export packet
data and calculate externally (note: internal calculation is also
desired since we want to give quick output).
- BC mode
- Refactor stats.c to better map messages???
- Fix SeqID handling to have separate counters for each packet type.
## Credit
Some of the code is directly taken from the Linuxptp project and the Linux
kernel and simplified/modified.