Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have read complete RFC 2030 which describes abt simple network time protocol. Now I am implementing sntp client and server using C language.

What's my doubt is how can I calculate root-delay, root-dispersion, precision. How sntp server will contact the radio clock or other synchronization source by using reference identifier. I suppose to set poll interval as 5 in sntp client message format, then I would send to sntp server, then how server will be able to contact sntp client 5 times. Please give detailed description about all these things.
Posted
Updated 13-May-10 0:24am
v2

I don't have any premade C solutions, but here[^] is one I did for C# and VB.net that may be some help.
 
Share this answer
 
Setting of root delay, dispersion and precision is explained in section 6 (Server Operations) of RFC 2030[^].
The reference identifier is set by the server based on the type of the reference clock. The actual method of getting the time from a radio clock depends on the type of clock, you need to read its documentation.
The server sends the client one response for each request it receives, the poll interval has no effect on server operation.
 
Share this answer
 
i want to write sntp server also can pls guide me abt sntp server
 
Share this answer
 
can any give me details about sntp server and sample code in any language
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900