background image

Time Protocols

4

 i!-TimeManager

Time Protocol

The Time protocol, based on RFC868, is a very simple straightforward time protocol providing the 

number of seconds that have transpired since January 1, 1900 UTC. The current Date and time can 

easily be calculated form this value. However, the number of seconds in this protocol is provides as 

a 32 bit unsigned number, which can represent a maximum value of 4294967295 (2 ^ 32). 

4294967295 seconds from January 1st, 1900 occurs on Feb 7, 2036 at 6h 28m 16s. Therefore, this 

protocol can only accurately represent time before this date. Many of the NIST servers, as well and 

many Unix, Linux and Windows programs, can provide this time protocol, and it can be reliably 

used up until Feb 7, 2036.

SNTP Protocols

The last two Time protocols share the same message format but differ in their connection scheme. 

SNTP stands for Simple Network Time Protocol, a subset of NTP or Network Time Protocol, is 

based on RFC2030. It is a highly accurate measure of time and date and also measures Date and 

Time as the number of seconds from January 1st 1900. However, the number of seconds is provided 

in two parts: the number of whole seconds, with a range of 4294967295 (2^32) and fractions of a 

second also with a range of 4294967295 (2^32). The Netlinx Master is not able to take advantage of 

the fractions of a second offered by SNTP and therefore has the same accuracy as the Time protocol 

but SNTP also provides information about the integrity of the data supplied. This makes the SNTP 

protocol more accurate than the Time protocol. RFC2030, which defines the SNTP protocol, has 

also made a provision for Dates and Time after Feb 7, 2036. SNTP message can represent a Date 

and Time accurately until some time in the year 2104. Most of the NIST servers also provide Date 

and Time information in SNTP format.

The difference between SNTP (123/udp), SNTP Broadcast (123/udp) is simply one of connection. 

It is possible to configure an SNTP server to broadcast the time in SNTP format to an entire 

network or node of a network. i!-TimeManager can be configured to actively retrieve the time in 

SNTP format from an SNTP server (protocol number 3) or simply listen for SNTP broadcasts on 

the network (protocol number 4). Although SNTP broadcasting may sound like an ideal solution 

for Date and Time information, the Network Administrator should make this decision.

Choosing a Protocol

So why did we implement so many time protocols? Which Timeserver protocol should you use? 

This depends on your Network configuration and your Network administrator. It is probable that 

your network already provides some form of Date and Time information, and that information is 

probably obtained from a highly accurate source. Most installations of i!-TimeManager should 

make use of the time server protocols already available on your network. To find out if such 

services are available on your network, contact you Network Administrator.

You might also like to look at commercially available software for Time synchronization. 

i!-TimeManager has been tested with Tardis 2000 (

http://www.kaska.demon.co.uk

) which can 

provide all versions of the Time protocols above, including SNTP broadcasting. If you are 

interested in synchronizing many computers as well as i!-TimeManager, Tardis 2000 provides a 

great solution.

For simple Date Time synchronization, select DayTime (value=1) and leave the server field blank. 

A default NIST server will be selected. Most NIST servers supply all three formats of Date and 

Summary of Contents for I!-TIMEMANAGER

Page 1: ...instruction manual integration Solutions i TimeManager...

Page 2: ...any accompanying hardware This limited warranty gives you specific legal rights You may have others which vary from state country to state country NO LIABILITY FOR CONSEQUENTIAL DAMAGES In no event sh...

Page 3: ...rted Operating Systems 1 Minimum PC Requirements 1 Installing i TimeManager 2 Time Protocols 3 DayTime Protocol 3 Time Protocol 4 SNTP Protocols 4 Choosing a Protocol 4 Programming i TimeManager 7 i T...

Page 4: ...ii i TimeManager Table of Contents...

Page 5: ...ws NT 4 0 Workstation or Server service pack 6 B or greater with at least 64 MB of installed memory Windows 2000 Professional or Server running on a Pentium 266 MHZ processor minimum requirement 300 M...

Page 6: ...xt to proceed 4 In the i TimeManager Select Components dialog select which example programs you would like to install 5 In the Select i TimeManager Install Location dialog use the Browse button to nav...

Page 7: ...the NIST Time servers and calculating the correct time and date for any location in the world i Time Manager also supports the standard NIST server list a file called nist srv lst and will attempt to...

Page 8: ...ter Feb 7 2036 SNTP message can represent a Date and Time accurately until some time in the year 2104 Most of the NIST servers also provide Date and Time information in SNTP format The difference betw...

Page 9: ...nchronize the NetLinx Master s time with the servers at NIST It would be a good idea to setup the DNS server entries on the NetLinx Master but not required If the name lookup fails for a given server...

Page 10: ...Time Protocols 6 i TimeManager...

Page 11: ...Mod Module definition code is displayed below You can use this as a start to create custom programming or use it as is for the standard functionality Where mdlTm is a unique module name DEFINE_MODULE...

Page 12: ...stern 5 Center 6 Mountain 7 Pacific 8 Locations such as Newfoundland which runs 3 hours 30 minutes behind GMT would use a GMT offset of 3 5 This information is used for calculating sunrise and sunset...

Page 13: ...ime server protocol number to allow the Netlinx system to synchronous its clock with an Internet time server The available values are 0 Disabled 1 DayTime 13 udp 13 tcp 2 Time 37 udp 37 tcp 3 SNTP 123...

Page 14: ...r 10 i TimeManager Strings i TimeManager supports the following in bound strings device to Master i TimeManager Strings Syntax Description SUNRISE Sunrise Time Sunrise time for today SUNSET Sunset Tim...

Page 15: ...Programming i TimeManager 11 i TimeManager...

Page 16: ...ve richardson TX 75082 USA 469 624 8000 800 222 0193 fax 469 624 7153 technical support 800 932 6993 033 004 2612 4 03 2003 AMX Corporation All rights reserved AMX the AMX logo the building icon the h...

Reviews: