在這裡分享一個時間同步軟體
為什麼系統已有內建時間同步的功能,我還要分享這個軟體呢?為什麼多此一舉。
分享這個,是為時間精度要求比較高的使用者所使用(比如說在「工業場合」)。
舉例來說,工廠內的監視器系統的時間,如果管理者沒有留心,通常時間都是有誤差的,而且是差很大,
這時可以利用這個軟體來達成。
這個軟體有「客戶端」和「伺服器端」,客戶端就是我們所使用的一般同步。(他可以設定在一天之內同步,有很多種參數設定,有興趣的自行去看。)
而「伺服器」端就是當作客戶端的伺服器,而客戶端不用聯到外網,只要「伺服器」端一台聯到外網同步就可以了,(這樣是不是就達成所有設備的時間同步了。)
注意,時區要設定正確,不然校正出來的時間也是「該時區的正確時間」。(就是錯的啦。)
軟體名稱: time-Sync (免費軟體)
官網: https://www.speed-soft.de/software/i...hp?language=en
註:像迷你電腦,或是一些機上盒電腦(如 pipo x8 之類沒有內建電池的電腦。)這個就很好用。
由於程式只內建 4 個同步網址,我再加上一些,要自行貼入。
內建的時間網址伺服器
0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
3.pool.ntp.org
其它的時間伺服器
time.google.com
time.nist.gov
time-b.nist.gov
time.apple.com
time.asia.apple.com
ntp1.softros.com
0.asia.pool.ntp.org
1.asia.pool.ntp.org
time.windows.com
0.tw.pool.ntp.org
1.tw.pool.ntp.org
2.tw.pool.ntp.org
time1.google.com
time2.google.com
time3.google.com
time4.google.com
time.facebook.com
time1.facebook.com
time2.facebook.com
time3.facebook.com
time4.facebook.com
time5.facebook.com
ntp.cyber-fleet.net
time-a.timefreq.bldrdoc.gov
tock.stdtime.gov.tw
watch.stdtime.gov.tw
time.stdtime.gov.tw
clock.stdtime.gov.tw
tick.stdtime.gov.tw
台大 NTP 網路校時服務器
ntp2.ntu.edu.tw
https://www.stdtime.gov.tw/chinese/b...TP%20promo.txt
上列網址為以下內容。
各位網路使用者,您好;
我們是中華電信研究所時間與頻率國家標準實驗室。本實驗室接受經濟部標準檢
驗局委託,負責維持頻率及時刻之國家標準,並推廣標準時頻之
應用。目前與國際度量衡局(BIPM)下46個國家時頻實驗室共同維持世界協調時
(UTC)。
對國內應用推廣方面,我們每年負責校正其他實驗室及精密儀器公司之頻率震盪
器。除此之外,我們也以下列方法對一般大眾提供服務
1. 5MHz 及 15 MHz之標準時頻廣播。
2. 117 語音報時服務
3. 撥接式電腦校時服務(撥接電話為 03 4245117,使用 protocol :
1200, 2400, 4800, 9600 bps non parity, 8 data bits, 1 stop bit)
您可以在http://www.stdtime.gov.tw上看到相關消息。
另外,我們在86年底設立了NTP(Network Time Protocol,見 RFC 1305),並
且在87年5月開始,使用一條256K的數據專線及透過電信研究所對外的數據專線(T1)
提供服務來提供時間校對的服務。有鑑於使用者日眾,新設一專線以服務更多使
用者,目前使用之server網址是
tock.stdtime.gov.tw
watch.stdtime.gov.tw
time.stdtime.gov.tw
clock.stdtime.gov.tw
tick.stdtime.gov.tw
原先提供服務的time.chttl.com.tw, time_a.chttl.com.tw 停用。
我們使用七個原子鐘所產生的國家標準頻率,經過時間碼產生器產生時間標準信
號,再輸入原級(primary NTP server),產生網路上可使用的時間信號
(請見RFC 1305),與國家標準時刻之時刻差維持在百萬分之五秒(五微秒)
左右。同時以二階伺服器與原級NTP伺服器校時後也對外提供服務,時刻差與原
級伺服器保持在千分之五秒(5 ms)左右。您的Server或工作站、個人電腦安
裝後,可使您電腦系統之時刻與國家標準同步在0.02-0.1秒之內
(視網路連線狀況而定)。
您可以在http://www.stdtime.gov.tw或http://www.ntp.org找到相關資料
■ 校時程式
Client端
※ Win95/98/NT/2000/XP
我們提供了一個中文化程式
http://www.stdtime.gov.tw/chinese/EXE/NTPClock.exe
英文版
http://www.stdtime.gov.tw/chinese/EXE/NTPClockeng.exe
使用SNTP(Simple Network Time Protocol)
※ UNIX:
一般UNIX(OSF, AIX, HPUX, Linux.... )皆有內建ntp client及server程式,
請執行 ntpdate (server address)來校時,也可至 http://www.ntp.org下載最
新版的ntp程式(ntp 4.x.x.tar.gz),以cc或gcc編譯。
Server端
※ UNIX:
同樣可以使用UNIX內建的server程式,請尋找ntpd 或 xntpd這兩個daemon,
編輯好ntp.conf後執行 ntpd -c ntp.conf即可,
也可至 http://www.ntp.org下載最新版的ntp程式(ntp 4.x.x.tar.gz),以
cc或gcc編譯再執行。
※ WinNT/2000:
您可以直接編譯xntp3-5.93.tar.gz or ntp-4.x.x.tar.gz,但需要下列檔案
1. VC++ 5.0
2. SDK for WinNT 4.0
3. Perl5 for Win32
1、2項請自行購買,第三項可在 http://www.perl.org中找到。
如果自行編譯覺得麻煩,在
ftp://ftp.drcoffsite.com中有已編譯好的執行檔,請以 username: ftpguest
passwd: guest進入file: xntp3-5_90_3-gui.zip
解壓縮後直接安裝,編輯ntp.conf後再重開機即可。
若您設定的是Server,請在 ntp.conf下加入
server tick.stdtime.gov.tw
server tock.stdtime.gov.tw
server time.stdtime.gov.tw
server clock.stdtime.gov.tw
server watch.stdtime.gov.tw
如此才能同步到我們的Server。
附錄;ntp.conf 範例及解說
#
# NTP configuration file (ntp.conf)
#
# Server From UTC(TL)。使用標準時間信號,和國家標準時間差不超過5毫秒,
# 另外附加美國NIST及USNO的NTP Server,若您同時連上這些server,ntpd
# 會自動選擇最佳的server校時,並防止任一Server當機造成損失
#
server tick.stdtime.gov.tw prefer
server tock.stdtime.gov.tw prefer
server time.stdtime.gov.tw prefer
server clock.stdtime.gov.tw
server watch.stdtime.gov.tw
#
# Server From NIST and USNO。這是NIST(美國國家標準局)及USNO
# (美國海軍天文台)的Server。由於server設在美國,網路延遲並不固定
# 一般設定上述Server已足夠。
#
server 192.43.244.18 # time.nist.gov (ACTS)
server 132.163.135.130 # time-A.timefreq.bldrdoc.gov (ACTS)
server 192.5.41.40 # tick.usno.navy.mil
#
# Stratum-2 peers. Each server should chime all of the others in this
# 這部份可以設定您自己local的機器,在lan間可互相比較並作監測。
#
peer peer.address.1
peer peer.address.2
#
# Miscellaneous stuff 可用可不用
#
enable auth monitor # 允許monitor
driftfile \etc\ntp.drift # 記載您機器system clock的性能
statsdir \home\ntp\status\ # 記錄連線狀態
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
#
# Authentication stuff. Note the different authentication delay on
# VAX and SPARC.
#
#keys /etc/ntp.keys # path for key file
#trustedkey 1 2 15 # define trusted keys
#requestkey 15 # key (7) for accessing server variables
#controlkey 15 # key (6) for accessing server variables
#authdelay 0.001501 # authentication delay (VAX)
#authdelay 0.000073 # authentication delay (SPARC)
書籤