EndRun エンドラン CDMA NTPサーバ うるう秒について

情報システム営業部TOP-EndRun-Tempus LX CDMA-CDMA うるう秒ブレテン-お問い合わせ-資料請求フォーム

エンドラン テクノロジーズ
うるう秒の挿入(CDMAタイムサーバーの場合)

告知:日本時間 2017年1月1日朝9時前にうるう秒(UTC 2017年12月31日23時59分60秒)が挿入されます

独立行政法人 情報通信研究機構 NICTによる発表はこちら

CDMA基地局を時刻源とする Sonoma D12 CDMA-J、Meridian CDMA-J Tempus LX CDMA-J と Praecis II は 日本時間 2017年1月1日朝9時まで, Current Leap Second は +17秒, Future Leap Second +18秒として運用してください.この設定は2017年1月1日朝9時までのいつ行っていただいてもかまいません.早めに設定されることをおすすめします.日本時間 2017年1月1日朝9時以降は, Current Leap Second は +18秒, Future Leap Second も +18秒として運用してください.この設定情報は,前面キーパッドの操作,あるいはシリアルないしsshないしtelnetでコンソールにアクセスして“cdmaleapmode”コマンドを実行して確認できます.Praecis II では LEAP コマンドを使います.

うるう秒の設定を確認するコマンド実行例日本時間 2017年1月1日朝9時まで
# cdmaleapmode
CDMA Leap Second Mode is USER: Current LS = 17, Future LS = 18
この設定により,CDMAタイムサーバーはうるう秒 UTC 6月30日23時59分60秒を自動的に挿入して Current LS = 18, Future LS = 18 に移行します.

うるう秒の設定を確認するコマンド実行例日本時間 2017年1月1日朝9時以降
# cdmaleapmode
CDMA Leap Second Mode is USER: Current LS = 18, Future LS = 18
Current LS = 18, Future LS = 18 であることを確認してください.次のうるう秒挿入までLS 18で運用します。

説明は要らない,何をすればよいのか知りたいだけ,という方はこちらをクリック

以下は日本時間2017年1日1日朝9時までのみ有効であり,その後は参照しないでください.


うるう秒とNTPとPOSIX(UNIX)の関係はこちらをお読みください.
User Modeで Current と Future を同じままにするとどうなるのか?

うるう秒への対応に関してはこちらのFAQもご覧ください.


日本時間2015年7月1日になる前に
すでにUSERモードになっている
AUTOモードになっている
Future Leap Second +18にする
USERモードにしてFuture Leap Second +18にする
上記の設定の結果,USERモードに設定され,
Current Leap Second +17秒, Future Leap Second +18秒 に設定されています.
この秒数は,GPS時刻とUTCとの差=うるう秒オフセットです.
USERモードに設定されていると
CDMA網から送られてくる“現在のうるう秒オフセット”の情報を無視して,
代わりにUSERモードにセットした,Current Leap Secondを使います.
たとえ,CDMA網から誤ったうるう秒オフセットが送られてきても惑わされることはありません.
CDMA網はきわめて正確な時刻を配信していますが,閏秒だけは信頼できません.
うるう秒挿入まで24時間を切ると,Leap Indicatorをセットした時刻情報を配信しはじめます.
うるう秒は日本時間2017年1月1日8時59分59秒の次に60秒として挿入されます.
NTPとしては、NTP秒とLIの組み合わせでうるう秒を表現します.
具体的にはNTP秒が足踏みする間にLIビットが変化します.
UTCJSTLI
NTP 秒
23:59:5908:59:5901
3550089599
23:59:6008:59:6001
3550089600
00:00:0009:00:0000
3550089600
00:00:0109:00:0100
3550089601

Leap Second List はftp://time.nist.gov/pub/leap-seconds.list にあります.
(LI01を受信したクライエントの動作はNTPクライエントソフトの仕様に依存します)
詳しくは各OSの供給元にお問い合わせください.
CDMA NTPタイムサーバーは
UTC 2017年1月1日9時 以降,Leap Indicatorを00にセットした時刻情報を配信します.
Current Leap Second は +18秒, Future Leap Second も +18秒になります.

これ以降,新たなうるう秒の発表かあるまでこのまま運用します.
Leap Second Modeが User Modeにセットされたままになり
CDMA網から誤ったうるう秒の変更情報が送られてきても無視します.


EndRun 閏秒サービスブレテン
    (Sonoma D12 CDMA,Medirian CDMA, Tempus LX CDMA,Praecis II CDMAをお使いのお客様へ)

    UTC は協定世界時 Universal Coordinated Time の略です. UTC は世界中でもっとも一般的に使われている時刻システムであり, Network Time Protocol (NTP) にも採用されています. うるう秒の (Leap Second) の挿入は,地球の自転に時刻を同期させるために不定期に行われます.

    うるう秒の挿入は協定世界時 UTC 6月30日か12月31日に行われますが,頻繁に行われるものではありません. 最も最近では世界時2015年6月30日(日本時間 2015年7月1日)でした.その前は2013年6月30日,2012年6月30日,2005年の12月31日と1998年の12月31日です. The International Earth Rotation Service (IERS) がうるう秒の挿入を決めて,公表します. 今回のうるう秒についてまとめると次のようになります;

    今回は

    • 協定世界時 2016年12月31日の午後11時59分に次のうるう秒の挿入が行われます.日本時間では 2017年1月1日午前8時59分59秒のつぎに60秒として挿入されます.
    • これまでのGPS時刻とUTCの差(Current)は 17、Futureは17 でした.
    • 現在のGPS時刻とUTCの差(Current)は 17、Futureは18 です.
    • 今回のうるう秒挿入後のGPS時刻とUTCの差(Currentは 18 になります.次のうるう秒の発表があるまでFutureも18です.

    Sonoma D12 CDMA, Tempus LX CDMA-J,Praecis II-J は,2つの方法でうるう秒を挿入できます.
    • AUTO MODE
      CDMA携帯基地局の送信する情報に従い自動的にうるう秒の挿入をクライエントに通知し,また自身のうるう秒を更新します.CDMA網はきわめて正確な時刻を配信しますが,残念ながら,うるう秒情報に関しては信頼できないため,このモードはおすすめできません
    • USER MODE
      手入力で設定したCurrentとFutureのうるう秒オフセット値に従い,世界標準時 UTC 6月30日か12月31日かいずれかにうるう秒の挿入をクライエントに通知し,また自身のうるう秒を更新します.必ずこのモードをお使いください

    AUTO MODEでは,CDMA基地局システムが送信する情報により自動的にうるう秒の挿入を知りますが,すべてのCDMA基地局が正確にうるう秒を実施するかは保証の限りではありません.よって,正しい時刻に確実にうるう秒を挿入するためには自動モード(AUTOモード)に頼らず,うるう秒の情報を手入力(USERモード)してください.
    (CDMA網は正確に秒を刻んでいますが,うるう秒は重要ではなく,過去実際に誤った うるう秒 の情報が配信されたことがあります)

    この情報は,前面キーパッドの操作により,あるいはsshでコンソールにアクセスして“cdmaleapconfig”コマンドにより入力できます.現在の値である 17 うるう秒オフセット値と挿入後の 18 うるう秒オフセット値を入力し,USERモードに設定します.この値は,12月31日までのいつ入力してもかまいませんが,なるべく早く設定する事を強くお勧めいたします.下記手順に従い設定されていれば,たとえCDMA網が誤ったうるう秒の情報を配信しても,誤情報の影響を受けることなく,正しい時刻にうるう秒を挿入します.また,もしCDMAタイムサーバーの電源が閏秒挿入時に切れていたとしても,その後に電源を投入したときには正しいうるう秒オフセット値が使われます.

    現在のうるう秒
    Current

    2016年12月31日
    23時59分60秒
    協定世界時
    2017年1月1日
    8時59分60秒
    日本標準時


    将来のうるう秒
    Future
    17秒
    18秒


    詳しくは次のページを参照ください.
    http://www.endruntechnologies.com/leap.htm
    http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat

    株式会社 昌新 技術部 最終更新2016年11月21日

    本件お問合せ先:
    株式会社 昌新 技術部 : ENG@shoshin.co.jp 03-3270-5925
    株式会社 昌新 情報システム営業部 : IS@shoshin.co.jp 03-3270-5926


Endrun CDMA NTPタイムサーバーにおける“うるう秒” 設定の変更と確認方法:


キーパッドからでもコンソールからでもうるう秒オフセットを設定確認できます.


前面パネル,キーパッドから設定する方法,

clock
Leap-Sec

を選択してEditボタンを押します.
Mode : User
Current : +17 seconds
Future : +18 seconds
に設定します. Enterボタンを押して設定を保存します.
注記 : USERモードにすることで,CDMA携帯網から配信されてくるうるう秒の情報(過去に誤りがあった)は使わなくなります.


コマンド行から設定する方法,

Sonoma D12 CDMA J における,cdmaleapconfig の実行例(赤文字が入力項目):説明部分を省略しています
Sonoma_D12 CDMA(root@sonoma:~)-> cdmaleapconfig
*******************************************************************************
***************** Sonoma_D12 CDMA Leap Second Configuration *******************
*******************************************************************************
*                                                                             *
*   This script will allow you to configure the operation of your Sonoma_D12  *
*   CDMA with regard to UTC leap seconds.  Leap seconds are inserted from     *
*   time to time in order to keep UTC, which is derived from atomic time      *
*   (TAI), in agreement with the Earth's rotation rate.  Relative to TAI,     *
*   the Earth's rotation rate is slowing down.  This means that UTC must be   *
*   retarded periodically in order to maintain agreement between UTC and the  *
*   apparent daylength.  If this were not done, eventually UTC would drift    *
*   out of sync with Earth's day and many astronomical and navigational prob- *
*   lems would ensue.                                                         *
*                                                                             *
*   The International Earth Rotation Service (IERS) is the organization       *
*   responsible for measuring the relationship between UTC and the rotation   *
*   rate of the Earth.  When the difference between UTC and apparent Earth    *
*   time has exceeded a certain threshold, the IERS coordinates with the      *
*   Bureau International of the Hour (BIH) to schedule the insertion of a     *
*   leap second into the UTC time scale.                                      *
*                                                                             *
************************** Press ENTER to continue ****************************
Enter
*   The IERS publishes Bulletin C about 6 months in advance of each possible  *
*   leap second insertion point.  Leap seconds may only be inserted at UTC    *
*   midnight of June 30 or December 31.  Bulletin C confirms either that a    *
*   leap second will or will not be inserted at the next possible insertion   *
*   point.  Since the introduction of leap seconds in 1961, they have been    *
*   added approximately once every 18 months.                                 *
*                                                                             *
*   Though the CDMA system provides a mechanism for automatic UTC leap second *
*   dissemination to the mobile users of the system, most providers have not  *
*   implemented this to the level of precision needed for smooth transitions  *
*   at UTC midnight on the day of a leap second insertion.  This script will  *
*   allow you to configure your Sonoma_D12 CDMA to use your entered values    *
*   for the Current and Future values of the UTC leap seconds rather than     *
*   those received from the CDMA base station.  In so doing, your Sonoma_D12  *
*   CDMA will perform a smooth transition at UTC midnight to the new UTC      *
*   second.                                                                   *
*                                                                             *
************************** Press ENTER to continue ****************************
Enter
*   You are responsible for determining the values of the current and future  *
*   leap seconds and setting them into your Sonoma_D12 CDMA using this inter- *
*   active utility.  This must be done sometime during the six months prior   *
*   to a scheduled leap second insertion event.  This information is made     *
*   available in the latest Bulletin C at the (IERS) website:                 *
*                                                                             *
*   www.iers.org                                                              *
*                                                                             *
*   EndRun Technologies also makes this information available at this link:   *
*                                                                             *
*   www.endruntechnologies.com/leap.htm                                       *
*                                                                             *
*   The settings you make now will take effect immediately.  If you make a    *
*   mistake, just re-run this script prior to the next possible leap second   *
*   insertion day.                                                            *
*                                                                             *
*   You will be prompted to enter your leap second parameters now.            *
*                                                                             *
*******************************************************************************
************************** Press ENTER to continue ****************************
Enter

   You will now be prompted for the current leap second difference between UTC
   and GPS time.

   The GPS time scale began on January 6, 1980.  At that time, the UTC time-
   scale had undergone 19 leapsecond events.  If you are obtaining your leap
   second information from the IERS website, you will need to subtract 19 from
   the TAI-UTC leap second values published there to obtain GPS-UTC, the number
   needed to set the current and future leap seconds for the Sonoma_D12 CDMA.  At
   the time of this script creation in June of 2012, TAI-UTC was 34 seconds and
   GPS-UTC was 15 seconds.  Explicit instructions for setting these values
   are available from the EndRun Technologies website at the link given above.

   If there is no leap second insertion scheduled at the next possible time,
   then you would enter the same value for both the current and future leap
   seconds.  If there is a leap second insertion scheduled, then you would
   enter a future value that is one more than the current value.  You may
   enter this information at any time during the six months prior to the
   actual insertion point.  The Sonoma_D12 CDMA will remember the setting and
   apply it at the proper time.

---Set Current Leap Seconds

Enter the current GPS-UTC offset in seconds (15 or greater):
17
---Set Future Leap Seconds

Enter the future GPS-UTC offset in seconds (16 or 17):
18
---CONFIRM

Set Current and Future Leap Seconds to these values:
Current LS = 17 and Future LS = 18 now? ([y]es, [n]o)
y
*******************************************************************************
*******************************************************************************
*                                                                             *
*    The Sonoma_D12 CDMA Leap Second Configuration has been updated.          *
*                                                                             *
*                                                                             *
*******************************************************************************
*******************************************************************************
*******************************************************************************
Sonoma_D12 CDMA(root@sonoma:~)->
この時点では変更は反映されません.しばらく放置すると反映されます.
Sonoma_D12 CDMA(root@sonoma:~)->cdmaleapmode
CDMA Leap Second Mode is USER:  Current LS = 17, Future LS = 18



Tempus LX CDMA J における,cdmaleapconfig の実行例(赤文字が入力項目):説明部分を省略しています
Tempus LX CDMA(root@Tempus:~)-> cdmaleapconfig
************************** Press ENTER to continue ****************************
Enterキー

Enter the new Tempus LX CDMA Leap Second Mode setting: ([a]uto, [u]ser) u

Enter the current GPS-UTC offset in seconds: 17

Enter the future GPS-UTC offset in seconds: 18

---CONFIRM

Set Leap Second Mode to USER with
Current LS = 16 and Future LS = 17 now? ([y]es,[n]o) y

*******************************************************************************
*******************************************************************************
*                                                                             *
*    The Tempus LX CDMA Leap Second Configuration has been updated.           *
*                                                                             *
*                                                                             *
*******************************************************************************
*******************************************************************************
*******************************************************************************


Tempus LX CDMA(root@Tempus:~)->
この時点では変更は反映されません.数分放置すれば反映されます.
Tempus LX CDMA(root@Tempus:~)-> cdmaleapmode
DMA Leap Second Mode is USER:  Current LS = 17, Future LS = 18
変更が反映されたことを確認します.
Tempus LXのみ : もし,cdmaleapconfigでの設定変更が,5分待ってもcdmaleapmodeで確認出来ない場合は,再度cdmaleapconfigを実行してください.




オフセットを変更せずに置くとどうなるのか?:

まず,NTPタイムサーバーが配信する時刻は世界標準時 UTC でなければなりません.もし,

Mode : User
Current : +17 seconds
Future : +17 seconds

のままにしておくと,うるう秒を挿入すべき当日になっても,うるう秒の通知をせず,その時刻になってもうるう秒を挿入しません.結果,タイムサーバーが配信する時刻は標準世界時 UTC ではなくなってしまいます.

一方,NTPクライエントもうるう秒の通知を受けないので,うるう秒を挿入しません.結果,クライエントの時刻も標準世界時 UTC からずれてしまいます.また,多くのクライエントは時差を元に地域時間も表示しますが,それも日本標準時からずれてしまいます.正しい時刻を保つためにはうるう秒の挿入に際してオフセットを放置してはいけません.

GPSタイムサーバーではこの操作が自動的に行われます.CDMAタイムサーバーにおいて,ModeをAutoにしておくと,本来であればGPSタイムサーバーと同じ手順が実行されるのですが,残念ながらCDMA基地局によっては正しい手順を取らないことがありうるため(日本でも過去に一部地域で確認されました)にModeをUserとして,Futureのオフセットを手動で設定することをお願いしています.

設定の確認方法:


前面パネル,キーパッドから,
clock > Leap-Sec
を選択肢,Editボタンを押します.
Mode : User
Current : +17 seconds
Future : +18 seconds
になっていれば正しい時刻が配信されており,日本時間2017年1月1日午前8時59分60秒としてうるう秒が挿入されます.

コマンド行から,
Tempus LX CDMA(root@cntp:~)-> cdmaleapmode
CDMA Leap Second Mode is USER:  Current LS = 17, Future LS = 18
Current LS = 16, Future LS = 17 であれば,正しい時刻が配信されており,
日本時間2015年7月1日午前8時59分60秒としてうるう秒が挿入されます.

Tempus LX CDMA(root@cntp:~)-> cdmastat
LOCKED TFOM = 6 2012 025 01:58:06.952637240 16 8 50 212 126 32770 6.9 0.000 0000
16が現在のうるう秒が15秒であることを示しています.
もし,インターネットに接続できる環境をお持ちであれば,CDMAタイムサーバー の現在の時刻を以下の信頼できる公開NTPサーバーと比較してください.offsetが時刻のずれを示します.正しいうるう秒が設定されていれば,ほぼ0秒を,誤ってうるう秒が挿入されている場合は,Current Leap Second の誤り分が offset として表示されます.
# ntpdate -q 210.168.211.231
server 210.168.211.231, stratum 1, offset 0.000405, delay 0.03650
22 Oct 12:28:02 ntpdate[17861]: adjust time server 210.168.211.231 offset 0.000405 sec

NICT 公開NTPサーバー
Internet Multifeed 公開NTPサーバー



Leap Mode をAUTOモードのままにした場合:
AUTOモードに設定した場合,もしCDMA網から 誤ったうるう秒 が配信されると,それを受信して誤った時刻をNTPで配信するおそれがあります.過去に誤ったうるう秒情報が配信された経緯がありますので,必ず USER モードに設定して Current Leap Second +17, Future Leap Second +18 をセットしてお使いください.

以上で作業は完了いたしました. 注意:本文書は,日本時間 2017年1月1日8時59分まで有効です.それ以後は適用しないで下さい.
株式会社 昌新 技術部