Symmetricom Time Server Manual Do Utilizador

Página de 148
C-106
TimeVault™ User’s Manual
6000-100AppC.fm  Rev. D
Appendix C: TIME and DAYTIME Protocols
DAYTIME Protocol as per RFC-867
C.2
DAYTIME Protocol as per RFC-867
DAYTIME protocol pertains to a daytime service, a useful debugging and measurement 
tool.  A daytime service simply sends the current date and time as a character string 
without regard to the input.
C.2.1
TCP Based Daytime Service
This daytime service is defined as a connection based application on TCP.  A server 
listens for TCP connections on TCP port 13.  Once a connection is established, the current 
date and time is sent out the connection as a ASCII character string (and any data received 
is thrown away).  The service closes the connection after sending the quote.
C 2.2
UDP Based Daytime Service
This daytime service is defined as a datagram based application on UDP.  A server listens 
for UDP datagrams on UDP port 13.  When a datagram is received, an answering 
datagram is sent containing the current date and time as a ASCII character string (the data 
in the received datagram is ignored).
C 2.3
DAYTIME String Format
The string format for the DAYTIME Protocol conforms to the Unix workstation time 
expression, except the time is in UTC rather than local time.  The syntax is as follows:
DDD, MMM, XX, YYYY, HH:MM:SS-UTC
where
DDD
=
the day: “Sun”, “Mon”, “Tue”, “Wed”, “Thus”, 
“Fri”, “Sat”
MMM
=
the month: “Jan”, “Feb”, “Mar”, “Apr”, “May”, 
“Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”
XX
=
day of the month
HH
=
hour (24 hour format) of that day
MM
=
minutes of that hour
SS
=
seconds of that minute