什么是ToD服务器,“每日时间”(不是NTP)

我有一个简单的任务:设置一个ToD服务器…这不是NTP。 它运行在37端口上。它似乎与inetd或xinetd捆绑在一起。

应该安装在Debian或CentOS上。 或者FreeBSD(pfsense路由器)。

任何提示如何进行? 两个启动链接后,我卡住了:

  • http://www.linuxquestions.org/questions/linux-server-73/tod-server-641674/
  • http://en.wikipedia.org/wiki/Time_Protocol

如果一个方法来testingToD服务器是否正在运行,那么也非常令人满意。 我有相当多的服务器运行,但不知道是否有任何已经运行的ToD服务

原因:我正准备使用CMTS和CMTS电缆调制解调器,使用称为DOCSIS 3的标准在COAX电缆上build立宽带解决scheme。为此,电缆调制解调器需要从ToD服务器(一天中的时间)接收一段时间。

更新/解决scheme

时间是RFC 868 ,由于NTP和其他更好,所以几乎不再使用。 但是,对于某些系统,例如使用CMTS的COAX互联网和电缆调制解调器需要工作时间服务器(在DOCSIS文档中称为Time of Day服务器= ToD服务器),旧的RFC 868 Time over 37端口是需要的。 可以为Debian安装的xinetd包括一个时间服务器。 只需要在etc / xinetd.d / time中启用(对于TCP和/或UDP,disable = no)

如果你使用的是Debian,xinetd带有一个ToD守护进程。 如果将/etc/xinetd.d/time中的“disable = yes”更改为“disable = no”,然后重新启动xinetd,则应该能够通过端口37远程login到服务器,并检查是否返回了某些内容。 你可以使用像这样的东西:

 nc $IP 37 | hexdump 

你会看到hex值每秒增加。

一个“时间”服务器是一个相当模糊的术语 – 我不清楚,如果这是指一个实际的服务名为“ToD”,或者只是很差的文档。 时间协议(RFC 868)已经很老了,除了less量的embedded式固件(比如OpenWRT ),内存很less的设备和设备之外,很less有东西使用它。 NTP需要比Time协议更多的内存。

几乎所有的现代设备都可以使用networking时间协议(NTP),它取代了较早的时间协议,这比旧时间协议更好, 更安全 。 所以现在花一些时间来看看你的设备是否使用NTP支持。

信不信由你, xinetd的维基百科文章包含一个单独的configuration例子,它是一个RFC 868时间服务器。

请参阅http://en.wikipedia.org/wiki/Xinetd#Configuration

RFC 868时间服务器的示例configuration文件:

 # default: off # description: An RFC 868 time server. This protocol provides a # site-independent, machine readable date and time. The Time service sends back # to the originating source the time in seconds since midnight on January first # 1900. # This is the tcp version. service time { disable = yes type = INTERNAL id = time-stream socket_type = stream protocol = tcp user = root wait = no } # This is the udp version. service time { disable = yes type = INTERNAL id = time-dgram socket_type = dgram protocol = udp user = root wait = yes } 

Time.nist.gov支持旧时间和白天协议。 请注意,据我所知,这些协议假定没有networking问题。