[dpdk-users] Running PTP (Precision Time Protocol) and running DPDK app via native PMD
Mah, Yock Gen
yock.gen.mah at intel.com
Wed Apr 14 05:07:34 CEST 2021
Hi All,
I would like to use PTP4L (Presicion Time Prototocol) to sync two ends clock while running DPDK application for latency information (from machine 1 to machine 2).
My application looking like following:
Machine A - sending packet continuously, this is PTP master:
----------------------------------------------------------------------------------
sudo /data/dpdk-demo01/talker/build/talker -l 1 -n 1 -- -p 0x1 -T 0 -d 00:A0:C9:00:00:00
Machine B - receiving packet, this is PTP slave:
---------------------------------------------------------------
sudo /data/dpdk-demo01/listener/build/listener -l 2-3 -n 1 -- -p 0x1 -T 0
Questions are:
1. As we already bind the NIC via dpdk-devbind.py, how are we going to run PTP4L as background? The network interface for the NIC already disappear.
2. Did some study on PTP client sample app (https://github.com/DPDK/dpdk/tree/main/examples/ptpclient), but get confuse on do I need to integrate the ptpclient code into our application? If yes, then this is only for ptpclient, how about the ptp master side (my machine A is PTP master)?
Appreciate some direction or example.
Thanks!
Regards,
Mah
More information about the users
mailing list