Old Content
This content is old! It’s still useful, but it’s old, and there may be bit rot, newer/better tools or ways to do things. Sanity check and do your research.
Daylight Saving Time Switch
In 2007, the US and Canada, as well as others, changed the rules for when Daylight Saving Time begins and ends. In my opinion this is sheer idiocy, but then, they didn’t ask me. Anyway, it really screwed up quite a lot of things, many of which are not in our power to easily fix (GPS, car GPS, VCRs, embedded systems like cheap routers, and much more). Here are some resources:
- Daylight saving time from Wikipedia
- Various discussions on Slashdot
- Unofficial Windows 2000 (and 98/ME) Daylight Saving Time Patch
- Preparing for daylight saving time changes in 2007
- Non-MS Preparing for daylight saving time changes in 2007
- 2007 Time Zone Changes Will Impact Many Computers in Canada, the United States and Bermuda
- Daylight Saving Chaos during the Commonwealth Games in Australia in 2006
- DOS/Windows RTC clock should be set to UTC
Importance
If time is not consistent across your network
- ISO/IEC 17799:2000(E) (AKA BS7799), clause 9.7.3 specifies “Clock synchronization:” “[…]Where a computer or communications device has the capability to operate a real-time clock, it should be set to an agreed standard, e.g. Universal Coordinated Time (UCT) or local standard time. As some clocks are known to drift with time, there should be a procedure that checks for and corrects any significant variation.”
- Event Logging, Auditing or Intrusion Detection across different systems becomes very difficult.
- Many cryptographic functions, especially those involving key creation, exchange and expiration, as well as “ticketing” functions such as used by Kerberos require precise time synchronization.
- Event or program scheduling may not work as expected.
- Client/Server transactions may not work as expected (transaction precedence is incorrect).
- There may be legal issues when submitting logs or other material as evidence if the time is not known to be correct. 1
- Security certificates, WWW Cookies, DHCP and WINS leases may not work as expected.
- High Availability or clustering solutions may depend on members clocks being exactly synchronized.
- File creation and access times will be wrong across different
computers, thus:
- Differential, Incremental or other backups may not work as expected.
- Revision control systems (such as CVS) may not work properly.
- E-Mail Message time stamps may be wrong, leading to unexpected transmission issues.
- NetWare NDS will not work right unless all NDS servers have the same time.
- Neither will Active Directory, even though it says it will. If you have an object collision (two objects are modified at the same time by different people on different masters) the time stamp is used to help resolve the conflict. If time is not synchronized, the results will not be as expected.
For more uses or requirements for time synchronization, search the RFCs for other RFCs that specify the use of NTP.
Time & Time Tips
Fascinating book review and thread on NTP and time issues at Slashdot.
-
Why is UTC used as the acronym for Coordinated Universal Time instead of CUT? In 1970 the Coordinated Universal Time system was devised by an international advisory group of technical experts within the International Telecommunication Union (ITU). The ITU felt it was best to designate a single abbreviation for use in all languages in order to minimize confusion. Since unanimous agreement could not be achieved on using either the English word order, CUT, or the French word order, TUC, the acronym UTC was chosen as a compromise.
-
Which is correct, UTC or GMT? Does GMT have summer time? From http://wwp.greenwichmeantime.com/home.htm During the Summer the UK is on British Summer Time which is 1 hour ahead of GMT (GMT+1). […] GMT is fixed all year and does not switch to daylight savings time. […] Although GMT has been replaced by atomic time (UTC) it is still widely regarded as the correct time for every international time zone. Greenwich Mean Time is international time, the basis of the world time clock. Marks precision time and military time (sometimes called Zulu Time). […]
-
What some critical and significant dates in computing? See J R Stockton’s Critical and Significant Dates.
-
Hey, what time is it anyway? About comp.protocols.time.ntp: life imitates art.
Time & Time Zone Links
- A listing of different “standard” times, and why they are not all the same.
- Information about different Systems of Time.
- A Summary of the International Standard Date and Time Notation ISO8601.
- w3c: Date and Time Formats
- U.S. Naval Observatory World Time Zone Map
- Set Your Computer Clock to NIST Time
- ISO Time Displayed
- TimeZone Table
- Sources for Time Zone and Daylight Saving Time Data
- World TimeZone Map
- Info about GMT/UTC, etc.
- A World Time Clock
- Perl/CGI Time Zone Converter
- The Yahoo Time Directory
- Excel: Using Dates and Times (XE0127) Complete Text
- A Graphical World Time Map/Clock
- Minimalist FREE Time Zone Clock Software
- FREE Time Zone Clock Software
- FREE Time Zone Clock Software
- FREE Time Zone Clock Software
- The ID LOGIC World Time Clock
- Time Zone software for PC
- Sells all kinds of clock products, including auto-sync “slave” clocks!
NTP Links
- The definitive book: Computer Network Time Synchronization: the Network Time Protocol
- Another book: Expert Network Time Protocol: An Experience in Time with NTP
- Then read public NTP time servers for everyone and the NTP Pool for vendors. Don’t be idiots like Netgear and D-Link were.
- The following articles from Sun are an excellent introduction to NTP concepts and implementation, while from a Solaris perspective, they are probably useful to anyone interested in time synchronization.
- The “ Time WWW server” page. Official page of NTP and the source of time and NTP information.
- Doug Hogarth’s Niceties site.
- A list of Windows Time Sync Tools (in Excel format, originally researched by me in 1999 and 2000, last updated May 2003 by Jason Mathews <mathews@mitre.org>)
Time Synchronization Tools
NTP Tools for Windows
- First read public NTP time servers for everyone and the NTP Pool for vendors.
- By far the best NTP client and server that I found is Tardis. It runs as an NTP client and NTP server. There is one version that is an NT4/Win2K service, and another that runs as a normal application under Win9x/ME. It has only one minor problem – it’s not free. It runs from $20 to $2,000 USD, see the web site for details.
- The next best is the
“official”
NTP package from David Mills.
Only the source is available from the Time Server site, but compiled
binaries for Windows are available.
- ntp4172.zip is available from 510 Software Group. This package includes a GUI setup.exe installation routine.
- There is also a Windows NT port Maintained by Terje Mathisen.
- NTP for Windows NT/2000/XP/2003/Vista is an NTP for Windows binary port and installer, along with a cool monitoring GUI.
- If you own the NT Resource Kit (or a newer ResKit), you should look into the NTRK TimeServ utility. While you can only get the TimeServ tool from the NTRK, you can find more information about it, and time in general at Doug Hogarth’s Niceties site, specifically the TimeServ page. Also see other built-in Windows options below.
- Tom Horsley’s NTP Time for Windows is a nice NTP client program. It is free, but is a client only, and can be configured to talk to only one NTP server at a time. NTP works much better when referencing a pool of servers.
- I have also used the very cool AboutTime program, which is a Daytime/TCP, Time/TCP, Time/UDP and SNTP client and server. It runs under any Windows version, but does not run as a service. It is free!
- I’ve used Dimension4, which is a free client for Time and NTP.
- There are also Tardis/K9, which are excellent shareware tools.
- And for a minimalistic web site but neat sounding tool, see Graham Mainwaring’s NetTime, at Sourceforge.
The Microsoft Networking “Net Time” Command
Displays the time on or synchronizes your computer’s clock with the shared clock on a Microsoft Windows for Workgroups, Windows NT, Windows 95, or NetWare time server.
For example, if your PCD is named MYPDC, the following command in a shortcut in your Startup Group, or in a logon script will synchronize a client PC’s time at logon. Note, if your clients never log off, this will not work. Of course, that’s very bad for other reasons. This works for any system that runs Microsoft Networking. You can even sync again a Linux server running Samba with this command, if you’d like!
“net time \\MYPDC /set/ yes”
Win2K NTP Time Service
Win2K has a very simple SNTP facility built in: “net time /setsntp[:NTP server list]”. See the following for more information:
- First read public NTP time servers for everyone and the NTP Pool for vendors.
- Win32 Time Service Informational, Warning, and Error Messages [Q232209]
- How to Configure an Authoritative Time Server in Windows 2000 [Q216734]
- Registry Entries for the W32Time Service [Q223184]
- “Could Not Locate a Time Server” After Setting SNTP Time Server [Q243574]
Here is the batch file I use, since I find the documentation lacking and the usage statement obscure:
You can see how it’s currently set by using this command: “net time /querysntp” which will return something like:
NTP Tools for Netware
For a small network with one or more NetWare servers, but no WAN links or remote sites:
- First read public NTP time servers for everyone and the NTP Pool for vendors, don’t use the ones listed in TID 10011518.
- Set one NetWare server as the SINGLE Reference server. This server
will sync itself to the NTP time.
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Default Time Server Type = SINGLE
- TIMESYNC Configured Sources = ON
- TIMESYNC Time Sources = <2-4 NTP time sources>:123; Where
123 is the NTP port on that time source.
- Example: TIMESYNC Time Sources = 172.31.1.1:123;172.31.2.1:123;172.31.3.1:123;
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Set any/all other NetWare servers as SECONDARY.
For a small network with more than one NetWare server, and with WAN links or remote sites:
- First read public NTP time servers for everyone and the NTP Pool for vendors, don’t use the ones listed in TID 10011518.
- Set one NetWare server as the REFERENCE server. This server will
sync itself to the NTP time.
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Default Time Server Type = REFERENCE
- Time Server Type = REFERENCE
- TIMESYNC Configured Sources = ON
- TIMESYNC Time Sources = <At least one PRIMARY server>;<2-4 NTP time sources>:123;
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Set one other NetWare server at the main site, and one NetWare
server at each remote site as a PRIMARY server.
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Default Time Server Type = PRIMARY
- Time Server Type = PRIMARY
- TIMESYNC Configured Sources = ON
- TIMESYNC Time Sources = <Your REFERENCE server from step 2>;
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Set all other NetWare servers as SECONDARY.
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
- Default Time Server Type = SECONDARY
- Time Server Type = SECONDARY
- TIMESYNC Configured Sources = ON
- TIMESYNC Time Sources = <The closest PRIMARY server from step 3>;
- Load MONITOR.NLM | Server Parameters | Time, change the
following parameters
Note: usually, the REFERENCE server does not ever change it’s own time, it just serves the time. However, when using NTP, the REFERENCE server will adjust its local clock to synchronize with the NTP time source. See the middle of TID 10050215.
- TID 10020147: Time Synchronization White Paper
- TID 10011518: Configuring an External NTP Source with NW 5
- TID 10050215: Timesync Frequently Asked Questions
- TID 10011517 (Formerly TID 2908867 Part 3): TIMESYNC SET Parameters Reference
- TID 2955431: “Timesync Type” vs “Default Timesync Type”.
- Using Network Time Protocol (NTP) with NetWare 5
- Understanding NetWare Time Synchronization
- TID 10016021 (formerly TID 2932671): External timesync sources - web site for NetWare servers not using v5 or better.
Thanks to Steve Schrank & Bob Kulp for some of these Netware pointers.
NTP Tools for UNIX
- First read public NTP time servers for everyone and the NTP Pool for vendors.
- Use xNTPd, or whatever came with your UNIX system.
- For Linux, use whatever xNTP package comes with your system. Avoid “time,” “daytime,” etc.
- For Solaris, use SUNWntpr & SUNWntpu, or get the NTP package from Sunfreeware.com. Here is a very minimalist sample ntp.conf and startup script (minor modifications to http://www.eecis.udel.edu/~mills/ntp/html/hints/solaris.xtra.S99ntpd.
- For HPUX use SAM to configure the NTP facility.
See the following articles as well. They are Sun centric, but still relevant for other UNIX systems:
- Introduction to NTP (July 2001)
- Basic NTP Administration and Architecture (August 2001)
- NTP Monitoring and Troubleshooting (September 2001)
NTP for Cisco IOS
Thanks to Greg Sottile for this section on IOS.
- SNTP does not support server mode. In order for the router to act as a master, it must be capable of running as a server.
- First read public NTP time servers for everyone and the NTP Pool for vendors.
With that said, the commands are the following:
| IOS Commands | Description |
|---|---|
| clock timezone est -5 | Set your correct time zone. |
| clock summer-time edt recurring | Set daylight savings. |
| ntp master 6 | Become an NTP server. |
| ntp update-calendar | Periodically set calendar from an NTP server. Supported by 7000, 7200, 4500. |
| ntp server {insert your favorite NTP server here} | NTP server from which to get the time |
NTP for Nokia IPSO
IPSO comes with xNTP, but you can’t change the default polling, which is something like every minute and a half. Until Voyager is enhanced to provide this capability, there is no easy way to do it. You could edit the ntp.conf file, but Voyager will overwrite it at bootup.
S50fixntp.sh is a script I got from Nokia support database resolution 3808 (Thanks Dameon), with minor modifications and additional documentation. Read the code for more details. Then read public NTP time servers for everyone and the NTP Pool for vendors.
Other Lists of Time Client and/or Server Programs
- A list of Windows Time Sync Tools (in Excel format, originally researched by me in 1999 and 2000, last updated May 2003 by Jason Mathews <mathews@mitre.org>)
- http://www.boulder.nist.gov/timefreq/general/softwarelist.htm
- http://www.niceties.com/TimeServ.html#FAQ
Time Protocols
| Port | Name | Description/Accuracy | Source |
|---|---|---|---|
| 13 tcp/udp | Daytime | Returns the day and time in an ASCII string. No accounting for different time zones, daylight savings, etc. Very inaccurate. | RFC867 |
| 37 tcp/udp | Timeserver | Returns the number of seconds since 00:00 (midnight) 1 January 1900 GMT, such that the time 1 is 2:00:01 am on 1 January 1900 GMT. No accounting for different time zones, daylight savings, etc. Very inaccurate. | RFC868 |
| 52 tcp/udp | Xns-time | Xerox Time | ( RFC1700) |
| 123 tcp/udp | NTP/SNTP | NTP (Network Time Protocol) or SNTP (Simple Network Time Protocol). Accurate to the limitations of the clock hardware. | RFC1305, RFC2030 |
| 309 | EntrusTime | ??? Entrust Time protocol ??? | GnatBox Admin Tool |
| 519 tcp/udp | unixtime | utime | ( RFC1700) |
| 525 tcp/udp | Timeserver | Timed | ( RFC1700) |
| 1506 | Utcd | UTC (Universal Time Coordinated, AKA GMT, AKA Zulu) daemon | GnatBox Admin Tool |
Notes:
- Protocols marked with ( RFC1700) are listed, but not defined in the RFC.
- Protocols marked with GnatBox Admin Tool are listed in the services list in the executable.
Old Content
This content is old! It’s still useful, but it’s old, and there may be bit rot, newer/better tools or ways to do things. Sanity check and do your research.
-
See Securing Windows NT/2000 Servers for the Internet by Stefan Norberg, page 153. ↩︎