有关简单网络时间协议RFC 2030的问题 [英] Questions about simple network time protocol RFC 2030

查看:219
本文介绍了有关简单网络时间协议RFC 2030的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读完整的RFC 2030,其中描述了简单的网络时间协议.现在,我正在使用C语言实现sntp客户端和服务器.

我的疑问是如何计算根延迟,根分散和精度. sntp服务器将如何通过使用引用标识符来联系无线电时钟或其他同步源.我想将sntp客户端消息格式的轮询间隔设置为5,然后将其发送到sntp服务器,然后服务器将如何与sntp客户端联系5次.请给出所有这些事情的详细描述.

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.

推荐答案

我没有任何预制的C解决方案,但是
I don''t have any premade C solutions, but here[^] is one I did for C# and VB.net that may be some help.


根延迟,色散和精度的设置在第6节中进行了说明(服务器操作) RFC 2030 [
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.


我想编写sntp服务器也可以指导我btn sntp服务器
i want to write sntp server also can pls guide me abt sntp server


这篇关于有关简单网络时间协议RFC 2030的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆