LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2019, 09:08 AM   #1
jsam000
LQ Newbie
 
Registered: May 2019
Posts: 1

Rep: Reputation: Disabled
[NTP] Time synchronization between two nodes


Hello,

I work on an embedded product that is composed by two Linux nodes connected by Ethernet. Let’s call them Node A and Node B.

Node A has an RTC while Node B has not. So at the boot, Node B time is completely wrong.
Node B can get an GPS time.

The need is to have the two nodes synchronized during all the product lifecycle:
• At the boot, Node B needs to be sync to the Node A’s RTC until it gets the GPS time
o At this time, I try to use ntpdate on Node B to get Node A’s time but it takes a lot of time (several minutes) until Node A stratum is set to another value than 16.
• When the GPS time is getted, both nodes need to be synced on the GPS time as soon as possible.
o When the GPS time is gotten on Node B, is it possible to force the Node A’s system time to the Node B time without killing ntpd?

Thanks for your help
Jérémie
 
Old 05-14-2019, 09:58 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions.

Its been awhile since I've played with ntp/gps in this fashion but if you configure a fudge server using stratum 4 on node A and its ntpd.conf configured to only use node B then configure node B to use ntpdate to sync to node A with its ntpd.conf to use itself as a server. If the jitter is to large between the two nodes ntpdate might fail.

The fudge server allows node A to use itself as a time source and configuring it with a stratum of 4 would allow node B to sync to it using ntpdate. Configuring ntpd.conf on node B as stratum 1 to serve time would then use itself as a source when GPS is synced. Don't use the -g option when starting ntpd but it may not matter. When node B is synced to GPS node A should switch from itself to node B as a time source.

The other caveat might be how well the RTC keeps time.

Last edited by michaelk; 05-14-2019 at 10:04 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Kickstart server RHEL 6.5 for compute nodes, GPU nodes and PHI nodes sho1sho1 Red Hat 3 06-23-2015 04:20 PM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
time synchronization - NTP tractng Linux - Newbie 1 04-02-2008 08:28 PM
NTP synchronization, slewing for large period of time ? trubi Solaris / OpenSolaris 1 10-18-2004 05:26 AM
email synchronization (not file synchronization) Moebius Linux - Software 6 10-05-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration