Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "clock jumped backward or running slower than expected!" #10

Open
JohnRama opened this issue Jul 28, 2020 · 5 comments
Open

Error "clock jumped backward or running slower than expected!" #10

JohnRama opened this issue Jul 28, 2020 · 5 comments

Comments

@JohnRama
Copy link

  • Environment
    LS1028ARDB

  • SW

    • OpenIL
    • master branch
  • network setup

    • Linux PC(Intel I210)
    • Summit X440-t8 (Avnu certified switch)
    • LS1028 ARDB
  • Problem

    • How to duplicate

      1. configure system
      • Linux PC to grand master
      • LS1028 ARDB to slave
        • comamnd line
          $ptp4l -i eno0 -p /dev/ptp0 -f /etc/ptp4l_cfg/gPTP.cfg -m -l 7 |& tee tmp.log
      • By adjusting the priority1 parameter of BMCA.
      1. confirm time is synchronized by testptp under linux kernel tree.
      • $testptp -g
        clock time: 1500002055.106458152 or Thu Jul 13 23:14:15 2017
      1. modify the grand master's clock
      • $testptp -T 1595964364
    • Problem

      • LS1028 ARDB is not synchronized.
        (Following command result is not changed to 1595964364)
        • $testptp -g
          clock time: 1500002055.106458152 or Thu Jul 13 23:14:15 2017
      • Following message appeared (log attached)
        ptp4l[521866.541]: clockcheck: clock jumped backward or running slower than expected!
      • Problem never fixed until restarting ptp4l.

      Would you please help on this ?
      Thanks !!

John
tmp.log

@vladimiroltean
Copy link
Contributor

Hi John,
Does it help if you add the 'step_threshold 0.00002' setting to the gPTP.cfg file?
Thanks,
-Vladimir

@JohnRama
Copy link
Author

Great thanks, Vladmir

Does it help if you add the 'step_threshold 0.00002' setting to the gPTP.cfg file?
This helped a lot !!

However, if I keep repeated to modifying the time between 1500002055 and 1595964364 many times,
sometimes same problem happens (probability is about 1 time per 20 trial) with the same message.
ptp4l[521866.541]: clockcheck: clock jumped backward or running slower than expected!

So looks like there is some corner case...

P.S This problem never happens with ptp4l (version2.0) running on my Linux PC(I210).

John

@vladimiroltean
Copy link
Contributor

What is the maximum frequency adjustment in parts per billion for enetc, and what is it for i210?

./testptp -c -d /dev/ptp0
capabilities:
  999999999 maximum frequency adjustment (ppb)
  0 programmable alarms
  2 external time stamp channels
  0 programmable periodic signals
  1 pulse per second
  0 programmable pins
  0 cross timestamping
  0 adjust_phase

If the max freq adjustment for i210 is below the default sanity frequency limit value of 200000000, then that's your answer.
So, with enetc, what happens if you configure max_frequency and sanity_freq_limit both to 999999999? It'll no longer complain, that's for sure, but the question is: will it work?

@JohnRama
Copy link
Author

JohnRama commented Jul 30, 2020 via email

@justdomyself
Copy link

hello, i change my param from 999999999 to 62499999 on my slave device, the erros message is missing, but the ptp can not sync time from master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants