Monday, February 6, 2012

Network Time Protocol

The Network Time Protocol is defined in RFC1305 and allows the transfer and maintenance of time functions over distributed network systems. One of the most widely used NTP servers is ntpd (ntp.isc.org), which also provides Simple NTP (RFC2030) and is a common package of most Linux distributions. The NTP server figures out how much the system clock drifts and smoothly corrects it with delicate accuracy, as opposed to large adjustments once every few hours

How to sync time with another server.

How to check NTP server port accessible

Default udp port is 123
nc -zu <ip> <udpport>

OR

# nmap -p [port] -sU -P0 [host name | ip address]
# nmap -p 123 -sU -P0 example.com

Errors

ntpdate no server suitable for synchronization found

 

I was configuring one of head node of our cluster server to synchronise from our time server in our organisation, and in turn the head node becomes a NTP Server for the compute nodes that on a private IP addresses. As I was configuring the compute nodes and encounter "ntpdate[4933]: no server suitable for synchronization found"

I configured the ntp servers and ntp clients according to Setting up NTP Server for Local Network. And yet the error remain unresolved. Finally, I came across a solution

  1. Open /etc/ntp/step-tickers and replace with the name of your local NTP Server
  2. Open /etc/ntp/ntpservers and replace with the name of your local NTP Server
  3. Restart your ntp services. You should eradicate the problem
 More information; link1 link2