Use sfptpd to synchronize clocksΒΆ

Check that sfptpd can be used to synchronize clocks across network.

Scenarios: X3-PTP012.

  1. Find out PTP device associated with the IUT interface, check that it can be opened to be sure that PTP is supported.

  2. Compute sum of statistics from 'ethtool -S' output having 'ptp_' prefix.

  3. Disable NTP daemon on IUT and Tester.

  4. Start sfptpd on IUT and Tester. On IUT it is configured to be a slave synchronizing time with master on Tester.

  5. Wait until both adapter clock and system clock are reported to be in-sync by sfptpd on IUT.

  6. Again compute sum of statistics from 'ethtool -S' output having 'ptp_' prefix. Check that after running sfptpd this sum increased.

Yurij Plotnikov Yurij.Plotnikov@arknetworks.am

Parameters:

env

Testing environment:

master_cfg

Configuration file for sfptpd as a PTP master

slave_cfg

Configuration file for sfptpd as a PTP slave