JP2012113504A - Communication terminal, control method and program thereof - Google Patents

Communication terminal, control method and program thereof Download PDF

Info

Publication number
JP2012113504A
JP2012113504A JP2010261795A JP2010261795A JP2012113504A JP 2012113504 A JP2012113504 A JP 2012113504A JP 2010261795 A JP2010261795 A JP 2010261795A JP 2010261795 A JP2010261795 A JP 2010261795A JP 2012113504 A JP2012113504 A JP 2012113504A
Authority
JP
Japan
Prior art keywords
time
server
response packet
response
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010261795A
Other languages
Japanese (ja)
Inventor
Masanao Onozuka
昌修 小野塚
Tetsuya Iwamoto
哲也 岩本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Precision Inc
Original Assignee
Seiko Precision Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Precision Inc filed Critical Seiko Precision Inc
Priority to JP2010261795A priority Critical patent/JP2012113504A/en
Priority to PCT/JP2011/074068 priority patent/WO2012070341A1/en
Publication of JP2012113504A publication Critical patent/JP2012113504A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols

Abstract

PROBLEM TO BE SOLVED: To provide a communication terminal capable of selecting a time server with high time accuracy as an acquisition destination of time information and not requiring a labor of a user.SOLUTION: A communication terminal 100 sends a response request packet through a network 300 and receives a response packet accordingly sent from time servers 200-206. Then, the communication terminal 100 selects a candidate for an acquisition destination of time information from among the time servers 200-206 using data acquired from the response packet. There is a reference source identifier showing a reference source for time adjustment of the servers 200-206 in the data acquired from the response packet, and the candidate for the acquisition destination of the time information is selected based on the reference source identifier.

Description

本発明は、ネットワーク通信により時刻合わせを行う通信端末、該通信端末の制御方法、及びプログラムに関する。   The present invention relates to a communication terminal that performs time adjustment by network communication, a control method of the communication terminal, and a program.

近年、NTP(Network Time Protocol)を用いたネットワーク通信により、タイムサーバから通信端末に時刻情報を提供して、通信端末の時刻合わせを行うシステムがある。   In recent years, there is a system that provides time information from a time server to a communication terminal by network communication using NTP (Network Time Protocol) to adjust the time of the communication terminal.

このようなシステムでは、通常、タイムサーバはネットワーク上で階層化されて、下層のタイムサーバは、上層のタイムサーバを参照することで、内部時計の時刻合わせを行う。例えば、第2層のタイムサーバは、第1層のタイムサーバを参照して時刻合わせを行う。第1層のタイムサーバは、全地球測位システム(以下、GPS)等を参照することで、内部時計の時刻合わせを行う。   In such a system, the time servers are usually hierarchized on the network, and the lower time servers refer to the upper time servers to adjust the time of the internal clock. For example, the time server of the second layer performs time adjustment with reference to the time server of the first layer. The time server of the first layer performs time adjustment of the internal clock by referring to the global positioning system (hereinafter referred to as GPS).

通信端末は、上記階層化されたタイムサーバのいずれかから、時刻情報を取得して、時刻合わせを行う。特許文献1,2には、時刻情報の取得先となるタイムサーバを選択する方法が開示される。   The communication terminal acquires time information from any one of the hierarchical time servers and performs time adjustment. Patent Documents 1 and 2 disclose a method of selecting a time server from which time information is acquired.

特許文献1では、通信端末に、タイムサーバのIPアドレスや優先順位が登録される。
通信端末は、優先順位に従って、時刻情報の取得先となるタイムサーバを選択する。なお、特許文献1では、タイムサーバの優先順位を設定する具体的な方法については開示されていない。
In Patent Document 1, the IP address and priority of a time server are registered in a communication terminal.
The communication terminal selects a time server from which time information is acquired according to the priority order. Note that Patent Document 1 does not disclose a specific method for setting the priority order of time servers.

特許文献2では、通信端末は、ネットワークに対して、ブロードキャスト送信で応答要求を行い、応答が早いタイムサーバを、時刻情報の取得先として選択する。   In Patent Literature 2, the communication terminal makes a response request to the network by broadcast transmission, and selects a time server with a quick response as an acquisition destination of time information.

特開2000−50004号公報JP 2000-50004 A 特開2008−79008号公報JP 2008-79008 A

時間の経過とともに、タイムサーバの内部時計が計時する時刻には、遅れや進みが生じる。上記タイムサーバが階層化されたシステムでは、第1層のタイムサーバは、GPS等を参照することで正確な時刻に時刻合わせが行われ、時刻合わせの後に時間経過による時刻の狂いが生じる。第2層のタイムサーバは、第1層のタイムサーバを参照することで、時刻合わせを行った時刻に第1層のタイムサーバに生じた狂いがある。さらに第2層のタイムサーバでは、時刻合わせの後、時間経過による時刻の狂いが生じる。以上のように、各階層のタイムサーバでは時間経過による時刻の狂いが生じ、この狂いが下層のタイムサーバに引き継がれていくことで、下層のタイムサーバほど、時刻精度が低くなる虞れがある。   As time elapses, there is a delay or advance in the time measured by the internal clock of the time server. In the system in which the time servers are hierarchized, the time server of the first layer performs time adjustment at an accurate time by referring to the GPS or the like, and a time error occurs due to the passage of time after the time adjustment. The time server of the second layer refers to the time server of the first layer, and there is an error that has occurred in the time server of the first layer at the time when the time is adjusted. Further, in the time server of the second layer, the time lag occurs due to the passage of time after the time adjustment. As described above, the time server of each hierarchy has a time lag due to the passage of time, and this time lapse is taken over by the lower time server, so that the time accuracy of the lower time server may be lowered. .

しかしながら特許文献1,2では、上記時刻精度の差が考慮されることなく、時刻情報の取得先となるタイムサーバが選択される。このため、時刻精度の低いタイムサーバが参照されて、通信端末の時刻合わせが行われる虞れがある。   However, in Patent Documents 1 and 2, the time server from which the time information is acquired is selected without considering the difference in time accuracy. For this reason, there is a possibility that the time of the communication terminal is set by referring to a time server with low time accuracy.

また、特許文献1では、タイムサーバの優先順位やIPアドレスを、通信端末に予め登録する必要があるため、ユーザに手間を要する。   Further, in Patent Document 1, since it is necessary to register the priority order and IP address of the time server in advance in the communication terminal, it takes time and effort for the user.

本発明は、上記事情に鑑みなされたものであり、その目的は、時刻情報の取得先として、時刻精度の高いタイムサーバを選択することができ、且つ、この選択のために、ユーザに手間を要しない通信端末、該通信端末の制御方法、及びプログラムを提供することである。   The present invention has been made in view of the above circumstances, and its purpose is to select a time server with high time accuracy as the acquisition source of time information, and for this selection, it takes time and effort to the user. It is to provide a communication terminal that is not required, a method for controlling the communication terminal, and a program.

本発明の第1の観点に係る通信端末は、
複数のサーバが接続されたネットワークに対して、応答要求パケットを送信する応答要求パケット送信部と、
前記応答要求パケットを受信した前記サーバから、前記ネットワークを通じて、応答パケットを受信する応答パケット受信部と、
前記応答パケット受信部が前記応答パケットを受信するたびに、該応答パケットから取得されるデータを格納する応答パケットデータ格納部と、
前記応答パケットデータ格納部が格納したデータを用いて、前記複数のサーバの中から、時刻情報の取得先となる候補を選択するサーバ選択部と、を有し、
前記応答パケットから取得されるデータとして、前記サーバの時刻合わせの参照元を示す参照元識別子があり、
前記サーバ選択部は、前記参照元識別子に基づき、前記時刻情報の取得先となる候補を選択することを特徴とする。
A communication terminal according to the first aspect of the present invention provides:
A response request packet transmitter for transmitting a response request packet to a network to which a plurality of servers are connected;
A response packet receiving unit that receives a response packet from the server that has received the response request packet through the network;
A response packet data storage unit that stores data acquired from the response packet each time the response packet reception unit receives the response packet;
Using the data stored in the response packet data storage unit, a server selection unit that selects a candidate to obtain time information from the plurality of servers, and
As the data acquired from the response packet, there is a reference source identifier indicating a reference source of time adjustment of the server,
The server selection unit selects a candidate from which the time information is acquired based on the reference source identifier.

好ましくは、前記応答要求パケット送信部は、ブロードキャスト送信で、前記ネットワークに対して前記応答要求パケットを送信することを特徴とする。   Preferably, the response request packet transmitting unit transmits the response request packet to the network by broadcast transmission.

好ましくは、前記サーバ選択部は、前記参照元識別子に基づき、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする。   Preferably, the server selection unit sets priorities of candidates from which the time information is acquired based on the reference source identifier.

好ましくは、前記応答パケットから取得されるデータとして、前記サーバが時刻同期を行っているか否かを示す同期識別子があり、
前記サーバ選択部は、前記参照元識別子に基づき、前記時刻合わせの参照元が異なるサーバの優先順位を設定し、前記同期識別子に基づき、前記時刻合わせの参照元が同一であるサーバの優先順位を設定することを特徴とする。
Preferably, as the data acquired from the response packet, there is a synchronization identifier indicating whether or not the server is performing time synchronization,
The server selection unit sets priority of servers having different reference sources for time adjustment based on the reference source identifier, and sets priority of servers having the same reference source for time adjustment based on the synchronization identifier. It is characterized by setting.

好ましくは、前記複数のサーバは、下層のサーバが上層のサーバを参照して時刻合わせを行うように、前記ネットワーク上で階層化され、
前記応答パケットから取得されるデータとして、前記サーバが位置する階層を示す階層値があり、
前記サーバ選択部は、前記階層値に基づき、前記時刻情報の取得先として前記上層のサーバが前記下層のサーバよりも優先して選択されるように、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする。
Preferably, the plurality of servers are hierarchized on the network such that a lower layer server refers to an upper layer server for time adjustment,
As data acquired from the response packet, there is a layer value indicating a layer where the server is located,
The server selection unit, based on the hierarchy value, prioritizes candidates as the time information acquisition destination so that the upper layer server is selected as a time information acquisition destination in preference to the lower layer server. It is characterized by setting the order.

好ましくは、前記応答要求パケット送信部が前記応答要求パケットを送信してから、前記応答パケット受信部が前記応答パケットを受信するまでに要する時間と、前記サーバが前記応答要求パケットを受信してから前記応答パケットを送信するまでに要する時間との差分を示す遅延時間を算出する遅延時間算出部をさらに有し、
前記サーバ選択部は、前記時刻情報の取得先として前記遅延時間が短いサーバが優先して選択されるように、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする。
Preferably, a time required for the response packet receiving unit to receive the response packet after the response request packet transmitting unit transmits the response request packet, and after the server receives the response request packet. A delay time calculating unit that calculates a delay time indicating a difference from the time required to transmit the response packet;
The server selection unit is configured to set a priority order of candidates for obtaining the time information so that the server having a short delay time is preferentially selected as the obtaining source of the time information.

好ましくは、前記サーバが、前記応答要求パケットを受信してから、前記応答パケットを送信するまでに要する内部処理時間を算出する内部処理時間算出部をさらに有し、
前記サーバ選択部は、前記時刻情報の取得先として前記内部処理時間が短いサーバが優先して選択されるように、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする。
Preferably, the server further includes an internal processing time calculation unit that calculates an internal processing time required from when the response request packet is received until the response packet is transmitted,
The server selection unit sets priorities of candidates for obtaining the time information so that the server with a short internal processing time is preferentially selected as the time information obtaining destination. .

本発明の第2の観点に係る通信端末の制御方法は、
複数のサーバが接続されたネットワークに対して、応答要求パケットを送信する応答要求パケット送信ステップと、
前記応答要求パケットを受信した前記サーバから、前記ネットワークを通じて、応答パケットを受信する応答パケット受信ステップと、
前記応答パケット受信ステップで前記応答パケットが受信されるたびに、該応答パケットから取得されるデータを格納する応答パケットデータ格納ステップと、
前記応答パケットデータ格納ステップで格納されたデータを用いて、前記複数のサーバの中から、時刻情報の取得先となる候補を選択するサーバ選択ステップと、を有し、
前記応答パケットから取得されるデータとして、前記サーバの時刻合わせの参照元を示す参照元識別子があり、
前記サーバ選択ステップでは、前記参照元識別子に基づき、前記時刻情報の取得先となる候補を選択することを特徴とする。
A communication terminal control method according to a second aspect of the present invention includes:
A response request packet transmission step of transmitting a response request packet to a network to which a plurality of servers are connected;
A response packet receiving step of receiving a response packet from the server that has received the response request packet through the network;
A response packet data storage step for storing data obtained from the response packet each time the response packet is received in the response packet reception step;
Using the data stored in the response packet data storage step, a server selection step of selecting a candidate to obtain time information from the plurality of servers, and
As the data acquired from the response packet, there is a reference source identifier indicating a reference source of time adjustment of the server,
In the server selection step, a candidate as an acquisition destination of the time information is selected based on the reference source identifier.

本発明の第3の観点に係るプログラムは、
コンピュータを、
複数のサーバが接続されたネットワークに対して、応答要求パケットを送信する応答要求パケット送信手段、
前記応答要求パケットを受信した前記サーバから、前記ネットワークを通じて、応答パケットを受信する応答パケット受信手段、
前記応答パケット受信手段が前記応答パケットを受信するたびに、該応答パケットから取得されるデータを格納する応答パケットデータ格納手段、
前記応答パケットデータ格納手段が格納したデータを用いて、前記複数のサーバの中から、時刻情報の取得先となる候補を選択するサーバ選択手段として機能させ、
前記応答パケットから取得されるデータとして、前記サーバの時刻合わせの参照元を示す参照元識別子があり、
前記サーバ選択手段は、前記参照元識別子に基づき、前記時刻情報の取得先となる候補を選択することを特徴とする。
The program according to the third aspect of the present invention is:
Computer
Response request packet transmitting means for transmitting a response request packet to a network to which a plurality of servers are connected;
Response packet receiving means for receiving a response packet from the server that has received the response request packet through the network;
Response packet data storage means for storing data acquired from the response packet each time the response packet receiving means receives the response packet;
Using the data stored in the response packet data storage means, function as server selection means for selecting a candidate to obtain time information from the plurality of servers,
As the data acquired from the response packet, there is a reference source identifier indicating a reference source of time adjustment of the server,
The server selection unit selects a candidate from which the time information is acquired based on the reference source identifier.

本発明によれば、時刻情報の取得先となる候補が、サーバの時刻参照元を示す識別子等に基づき、複数のサーバの中から選択される。このため、時刻情報の取得先として、時刻精度の高いサーバを選択することが可能である。よって、サーバから取得される時刻情報に基づき通信端末の時刻合わせが行われることで、通信端末が計時する時刻は、正確になる。   According to the present invention, a candidate as a time information acquisition destination is selected from a plurality of servers based on an identifier indicating a time reference source of the server. For this reason, it is possible to select a server with high time accuracy as the acquisition source of time information. Therefore, the time set by the communication terminal is accurate by adjusting the time of the communication terminal based on the time information acquired from the server.

また、時刻情報の取得先となる候補は、サーバから返信される応答パケットのデータが用いられて選択される。よって、時刻情報の取得先を選択するため、通信端末に予めデータを入力する必要がない。このため、ユーザに手間を要しない。   In addition, a candidate from which time information is acquired is selected using response packet data returned from the server. Therefore, since the time information acquisition source is selected, there is no need to input data into the communication terminal in advance. For this reason, a user's effort is not required.

本発明の実施の形態に係る通信端末が適用された通信システムを示すブロック図である。It is a block diagram which shows the communication system with which the communication terminal which concerns on embodiment of this invention was applied. 通信端末の物理的構成を示すブロック図である。It is a block diagram which shows the physical structure of a communication terminal. 通信端末の機能構成例を示すブロック図である。It is a block diagram which shows the function structural example of a communication terminal. 応答要求パケットの例を示す図である。It is a figure which shows the example of a response request packet. 時刻情報の取得先を選択するために用いられるデータを示す図である。It is a figure which shows the data used in order to select the acquisition source of time information. 応答パケットテーブルの例を示す図である。It is a figure which shows the example of a response packet table. サーバ選択部により、図6に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 6 were rearranged by the server selection part. サーバ選択部により、図7に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 7 were rearranged by the server selection part. サーバ選択部により、図8に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 8 were rearranged by the server selection part. サーバ選択テーブルの例を示す図である。It is a figure which shows the example of a server selection table. 通信端末の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of a communication terminal. 応答パケットテーブル格納処理の一例を示すフローチャートである。It is a flowchart which shows an example of a response packet table storage process. 応答パケットテーブル並び替え処理の一例を示すフローチャートである。It is a flowchart which shows an example of a response packet table rearrangement process. サーバ選択テーブル格納処理の一例を示すフローチャートである。It is a flowchart which shows an example of a server selection table storage process. 応答パケットテーブルの他の例を示す図である。It is a figure which shows the other example of a response packet table. サーバ選択部により、データが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table by which data was rearranged by the server selection part. サーバ選択テーブルの他の例を示す図である。It is a figure which shows the other example of a server selection table. サーバ選択テーブルの他の例を示す図である。It is a figure which shows the other example of a server selection table. 本発明の通信端末が適用される他の通信システムを示すブロック図である。It is a block diagram which shows the other communication system with which the communication terminal of this invention is applied. 応答パケットテーブルの他の例を示す図である。It is a figure which shows the other example of a response packet table. サーバ選択部により、図20に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 20 were rearranged by the server selection part. サーバ選択部により、図21に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 21 were rearranged by the server selection part. サーバ選択テーブルの他の例を示す図である。It is a figure which shows the other example of a server selection table. 応答パケットテーブルの他の例を示す図である。It is a figure which shows the other example of a response packet table. サーバ選択部により、図24に示すデータが並び替えられた応答パケットテーブルを示す図である。FIG. 25 is a diagram illustrating a response packet table in which data illustrated in FIG. 24 is rearranged by a server selection unit. サーバ選択部により、図25に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 25 were rearranged by the server selection part. サーバ選択部により、図26に示すデータが並び替えられた応答パケットテーブルを示す図である。FIG. 27 is a diagram illustrating a response packet table in which data illustrated in FIG. 26 is rearranged by a server selection unit. サーバ選択部により、図27に示すデータが並び替えられた応答パケットテーブルを示す図である。It is a figure which shows the response packet table in which the data shown in FIG. 27 were rearranged by the server selection part.

以下、本発明を実施するための形態について図面を参照して詳細に説明する。なお、図中同一または相当する部分には同じ符号を付す。   Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals.

図1は、本発明の実施の形態に係る通信端末が適用された通信システム1を示すブロック図である。通信システム1は、通信端末100と、複数のタイムサーバ200〜206と、ネットワーク300とを含む。   FIG. 1 is a block diagram showing a communication system 1 to which a communication terminal according to an embodiment of the present invention is applied. The communication system 1 includes a communication terminal 100, a plurality of time servers 200 to 206, and a network 300.

ネットワーク300は、LAN(Local Area Network)であり、通信端末100やタイムサーバ200〜206は、ネットワーク300を通じて、情報の送受信を行うことができる。上記の情報として、ネットワークタイムプロトコル(以下、NTP)を用いた時刻情報がある。   The network 300 is a LAN (Local Area Network), and the communication terminal 100 and the time servers 200 to 206 can transmit and receive information through the network 300. The information includes time information using a network time protocol (hereinafter referred to as NTP).

タイムサーバ200〜206は、他装置を定期的に参照して、内部時計が計時する現在時刻を補正する(以下、内部時計の時刻を補正することを、「時刻合わせ」と適宜記す)。タイムサーバ200〜206は、ネットワーク300上で階層化されており、下層のタイムサーバは、上層のタイムサーバを参照して時刻合わせを行う。   The time servers 200 to 206 periodically refer to other devices to correct the current time measured by the internal clock (hereinafter, correcting the time of the internal clock is referred to as “time adjustment” as appropriate). The time servers 200 to 206 are hierarchized on the network 300, and the lower time servers refer to the upper time servers for time adjustment.

タイムサーバ200〜202は、第1層のタイムサーバである。タイムサーバ200は、国家基準で校正された原子時計400を定期的に参照して時刻合わせを行う(原子時計は1秒ごとのパルス信号(Pulse-Per-Second(PPS))を発信する。図1では、原子時計を「PPS」で示す)。タイムサーバ201は、全地球測位システム(Global Positioning System、以下、GPS)401を定期的に参照して時刻合わせを行う。タイムサーバ202は、電話回線による標準時供給システム(以下、テレホンJJY)402を定期的に参照して時刻合わせを行う。   The time servers 200 to 202 are first layer time servers. The time server 200 periodically refers to the atomic clock 400 calibrated in accordance with national standards and performs time adjustment (the atomic clock transmits a pulse signal (Pulse-Per-Second (PPS)) every second. In 1, the atomic clock is indicated by “PPS”). The time server 201 periodically refers to a global positioning system (hereinafter referred to as GPS) 401 to perform time adjustment. The time server 202 performs time adjustment by periodically referring to a standard time supply system (hereinafter, telephone JJY) 402 using a telephone line.

タイムサーバ203〜205は、第2層のタイムサーバである。タイムサーバ203〜205は、第1層のタイムサーバ200〜202のいずれかに対して、ネットワーク300を通じて、定期的に時刻情報を要求し、この要求に応じて返信された時刻情報に基づき、時刻合わせを行う。例えば、タイムサーバ203は、タイムサーバ200に時刻情報を要求し、タイムサーバ200から返信された時刻情報に基づき時刻合わせを行う。   The time servers 203 to 205 are second layer time servers. The time servers 203 to 205 periodically request time information from any of the first layer time servers 200 to 202 via the network 300, and based on the time information returned in response to the request, Align. For example, the time server 203 requests time information from the time server 200 and adjusts the time based on the time information returned from the time server 200.

タイムサーバ206は、第3層のタイムサーバである。タイムサーバ206は、ネットワーク300を通じて、第2層のタイムサーバ203に時刻情報を要求し、この要求に応じて返信された時刻情報に基づき時刻合わせを行う。   The time server 206 is a third layer time server. The time server 206 requests time information from the time server 203 of the second layer through the network 300, and performs time adjustment based on the time information returned in response to the request.

タイムサーバ200〜206は、時間の経過とともに、内部時計が計時する時刻に遅れや進みが生じる。第2層のタイムサーバ203〜205は、第1層のタイムサーバ200〜202を参照した時刻合わせにより、第1層のタイムサーバ200〜202に生じた時刻の狂いが引き継がれ、さらに時刻合わせの後に、時間経過による時刻の狂いが生じる。また、第3層のタイムサーバ206は、第2層のタイムサーバ203を参照した時刻合わせにより、第2層のタイムサーバ203で生じた時刻の狂いが引き継がれ、さらに時刻合わせの後に、時間経過による時刻の狂いが生じる。以上のことから、タイムサーバ200〜206は、下層のタイムサーバほど時刻精度が低い。   The time servers 200 to 206 are delayed or advanced in the time measured by the internal clock as time passes. The time servers 203 to 205 in the second layer carry over the time deviation that occurred in the time servers 200 to 202 in the first layer by the time adjustment with reference to the time servers 200 to 202 in the first layer. Later, a time lag will occur due to the passage of time. Further, the time tier 206 of the third tier takes over the time deviation caused by the time tier 203 of the second tier by the time adjustment with reference to the time server 203 of the second tier, and the time elapses after the time adjustment. This causes a time lag. From the above, the time servers 200 to 206 have lower time accuracy as the lower time servers.

また、第1層のタイムサーバ200〜202の時刻精度は、時刻参照元の正確さから、テレホンJJY402を参照するタイムサーバ202→GPS401を参照するタイムサーバ201→原子時計400を参照するタイムサーバ200の順に高くなる。   Further, the time accuracy of the time servers 200 to 202 in the first layer is determined from the accuracy of the time reference source, the time server 202 referring to the telephone JJY 402 → the time server 201 referring to the GPS 401 → the time server 200 referring to the atomic clock 400. It becomes higher in order.

図2は、通信端末100の物理的構成例を示すブロック図である。通信端末100は、制御部110と、記憶部120と、入力部130と、出力部140と、通信制御部150と、計時部160とを備える。   FIG. 2 is a block diagram illustrating a physical configuration example of the communication terminal 100. The communication terminal 100 includes a control unit 110, a storage unit 120, an input unit 130, an output unit 140, a communication control unit 150, and a time measuring unit 160.

記憶部120は、例えば、ROM(Read Only Memory)やRAM(Random Access Memory)やハードディスク等から構成される。記憶部120には、時刻同期ソフトウェアであるNTPデーモンのプログラム等、制御部110の動作プログラムが記憶される。また、記憶部120は、制御部110のワークエリアとして機能する。   The storage unit 120 includes, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), a hard disk, and the like. The storage unit 120 stores an operation program of the control unit 110 such as an NTP daemon program that is time synchronization software. The storage unit 120 functions as a work area for the control unit 110.

入力部130は、例えば、キーボード、マウス等から構成される。入力部130は、ユーザによる操作を受け付け、操作情報を制御部110に供給する。   The input unit 130 includes, for example, a keyboard and a mouse. The input unit 130 receives an operation by a user and supplies operation information to the control unit 110.

出力部140は、例えば、表示装置等から構成される。出力部140は、制御部110の制御に従い、出力情報をユーザに提供する。   The output unit 140 is composed of a display device or the like, for example. The output unit 140 provides output information to the user according to the control of the control unit 110.

通信制御部150は、LANポートや通信回路等から構成される。通信制御部150は、ネットワーク300に接続されて、他装置との間でデータの送受信を行う。   The communication control unit 150 includes a LAN port, a communication circuit, and the like. The communication control unit 150 is connected to the network 300 and transmits / receives data to / from other devices.

計時部160は、水晶発振器を内蔵し、水晶発振器の発振周波数に同期したクロックパルスを生成し、クロックパルスに同期して、現在時刻を計時して出力する。   The timer 160 has a built-in crystal oscillator, generates a clock pulse synchronized with the oscillation frequency of the crystal oscillator, and counts and outputs the current time in synchronization with the clock pulse.

制御部110は、CPU(Central Processing Unit)等から構成され、記憶部120に格納されたプログラムに従って、通信端末100全体の動作を制御する。例えば、制御部110は、記憶部120に格納されたプログラムに従って、ソフトウェア的に動作する時計であるシステムクロックとして機能し、現在時刻を計時して出力する。また、制御部110は、NTPデーモンのプログラムに従って、タイムサーバ200〜206のいずれかから時刻情報を取得して、計時部160やシステムクロックが計時する現在時刻を補正する。   The control unit 110 includes a CPU (Central Processing Unit) and the like, and controls the operation of the entire communication terminal 100 according to a program stored in the storage unit 120. For example, the control unit 110 functions as a system clock that is a clock that operates as software in accordance with a program stored in the storage unit 120, and measures and outputs the current time. Further, the control unit 110 acquires time information from any of the time servers 200 to 206 according to the NTP daemon program, and corrects the current time measured by the time measuring unit 160 and the system clock.

図3は、通信端末100の機能構成例を示すブロック図である。通信端末100では、制御部110がプログラムに従って処理を実行し、応答要求パケット送信部500と、応答パケット受信部510と、遅延時間計算部520と、内部処理時間計算部530と、応答パケットデータ格納部540と、サーバ選択部550とが構成される。   FIG. 3 is a block diagram illustrating a functional configuration example of the communication terminal 100. In communication terminal 100, control unit 110 executes processing according to a program, response request packet transmission unit 500, response packet reception unit 510, delay time calculation unit 520, internal processing time calculation unit 530, and response packet data storage. The unit 540 and the server selection unit 550 are configured.

応答要求パケット送信部500は、初期設定時に、ネットワーク300に対してブロードキャスト送信で応答要求パケットを送信する。   The response request packet transmitting unit 500 transmits a response request packet by broadcast transmission to the network 300 at the time of initial setting.

図4は、応答要求パケットの例を示す図である。応答要求パケットは、NTP及びSNTPのメッセージフォーマットで表現される。このメッセージフォーマットは、RFC1305で記述されるNTPメッセージフォーマットと、ほぼ同一である。図4において、()内の数字は、応答要求パケットに含まれる各コードのビット数を示す。例えば、LI(2)の数字「2」は、同期識別子「LI(Leap Indicator)」のビット数を示す。LI(2)〜精度(8)のコードは、直下の欄に示す値である。ルート遅延(32)以下のコードは、特に後述しない場合、各ビットの値が「0」である。   FIG. 4 is a diagram illustrating an example of a response request packet. The response request packet is expressed in NTP and SNTP message formats. This message format is almost the same as the NTP message format described in RFC1305. In FIG. 4, the numbers in parentheses indicate the number of bits of each code included in the response request packet. For example, the number “2” of LI (2) indicates the number of bits of the synchronization identifier “LI (Leap Indicator)”. The codes of LI (2) to accuracy (8) are the values shown in the column immediately below. In the code below the route delay (32), the value of each bit is “0” unless otherwise specified.

応答要求パケットは、ブロードキャスト送信のため、宛先がブロードキャストアドレスに設定される。ブロードキャストアドレスは、ネットワーク300に接続した全ての機器にデータを送信するために使われるアドレスである。例えば、クラスBでは、ネットワーク300のプライベートIPアドレスとして、172.16.XXX.XXXを設定でき、172.31.255.255がブロードキャストアドレスとなる。また、クラスCでは、ネットワーク300のプライベートIPアドレスとして、192.168.48.XXXを設定でき、192.168.48.255がブロードキャストアドレスとなる。本実施の形態では、クラスCのブロードキャストアドレスを用いる。また、応答要求パケットでは、UDP(User Datagram Protocol)のポート番号が、123番に設定される。   Since the response request packet is transmitted by broadcast, the destination is set to the broadcast address. The broadcast address is an address used for transmitting data to all devices connected to the network 300. For example, in class B, the private IP address of the network 300 is 172.16. XXX. XXX can be set, and 172.31.2555255 is the broadcast address. In class C, the private IP address of the network 300 is 192.168.48. XXX can be set, and 192.168.48.255 is the broadcast address. In the present embodiment, a class C broadcast address is used. In the response request packet, the port number of UDP (User Datagram Protocol) is set to 123.

タイムサーバ200〜206は、応答要求パケットを受信することに応じて、ネットワーク300を通じて、応答パケットを通信端末100に返信する。応答要求パケットがブロードキャスト送信されることで、タイムサーバ200〜206は、応答パケットを一斉に返信する。応答パケット受信部510(図3)は、応答要求パケット送信部500が応答要求パケットを送信してから所定時間が経過するまでの間に、ネットワーク300を通じて返信された応答パケットを受信する。応答パケットは、応答要求パケットと同様、図4に示すメッセージフォーマットで表現される。   The time servers 200 to 206 return the response packet to the communication terminal 100 through the network 300 in response to receiving the response request packet. When the response request packet is broadcasted, the time servers 200 to 206 return the response packets all at once. The response packet receiving unit 510 (FIG. 3) receives the response packet sent back through the network 300 from when the response request packet transmitting unit 500 transmits the response request packet until a predetermined time elapses. The response packet is expressed in the message format shown in FIG. 4 like the response request packet.

図4に示すフォーマットにおいて、同期識別子「LI(Leap Indicator)」は、当日の最終分に、閏秒の挿入や削除があるか否かを示すために用いられる領域である。閏秒の挿入や削除がある場合、「LI」には、それぞれ、2ビット整数「01」、「10」が記される。閏秒の挿入や削除が無い通常の場合、「LI」には、2ビット整数「00」が記される。また、「LI」は、時刻の同期が行われていないことを警告するために使用される領域でもある。時刻の同期が行われていない場合、「LI」には、時刻の同期が行われていないことを示す2ビット整数「11」が記される。   In the format shown in FIG. 4, the synchronization identifier “LI (Leap Indicator)” is an area used to indicate whether leap seconds are inserted or deleted in the last minute of the day. When leap second is inserted or deleted, 2-bit integers “01” and “10” are written in “LI”, respectively. In a normal case where no leap second is inserted or deleted, a 2-bit integer “00” is written in “LI”. “LI” is also an area used to warn that time synchronization is not performed. When time synchronization is not performed, 2-bit integer “11” indicating that time synchronization is not performed is written in “LI”.

通信端末100から送信される応答要求パケットでは、図4に示すように、「LI」は、「00」の値に設定されている。タイムサーバ200〜206のうち、時刻の同期を行っているタイムサーバからは、「LI」の値が「00」のままである応答パケットが返信される。   In the response request packet transmitted from the communication terminal 100, “LI” is set to a value of “00” as shown in FIG. Among the time servers 200 to 206, a time packet that is synchronized in time returns a response packet in which the value of “LI” remains “00”.

一方、時刻の同期を行っていないタイムサーバからは、「LI」の値が、「11」に変更された応答パケットが返信される。この「LI」値の変更により、タイムサーバで時刻の同期が行われていないことが通信端末100に通知される。   On the other hand, a response packet in which the value of “LI” is changed to “11” is returned from the time server that does not synchronize the time. Due to the change of the “LI” value, the communication terminal 100 is notified that the time server does not synchronize the time.

「モード」は、パケットの送信元を示す領域である。応答要求パケットでは、図4に示すように、「モード」は、クライアントを示す3ビット整数「011」の値に設定される。応答パケットでは、「モード」は、サーバを示す3ビット整数「100」の値に変更される。   The “mode” is an area indicating a packet transmission source. In the response request packet, as shown in FIG. 4, “mode” is set to a value of a 3-bit integer “011” indicating the client. In the response packet, “mode” is changed to a value of a 3-bit integer “100” indicating the server.

「階層」は、ローカル時計の階級レベルを示す領域である。タイムサーバ200〜206から返信される応答パケットでは、タイムサーバ200〜206が位置するネットワーク300上の階層に対応する8ビット整数が「階層」に示される。例えば、タイムサーバ200〜202から返信される応答パケットでは、第1階層に対応する8ビット整数が示される。   The “hierarchy” is an area indicating the class level of the local clock. In the response packet returned from the time servers 200 to 206, an 8-bit integer corresponding to the layer on the network 300 where the time servers 200 to 206 are located is indicated in “layer”. For example, in the response packet returned from the time servers 200 to 202, an 8-bit integer corresponding to the first layer is indicated.

「参照元識別子(Reference Identifier)」は、タイムサーバ200〜206の時刻参照元に対応する32ビット整数が示される領域である。例えば、タイムサーバ201から返信される応答パケットでは、GPS401に対応する32ビット整数が示される。   The “reference identifier” is an area in which a 32-bit integer corresponding to the time reference source of the time servers 200 to 206 is indicated. For example, the response packet returned from the time server 201 indicates a 32-bit integer corresponding to the GPS 401.

「開始タイムスタンプ」は、通信端末100が応答要求パケットを送信した時刻T1が示される領域である。   The “start time stamp” is an area indicating a time T1 when the communication terminal 100 transmits a response request packet.

「受信タイムスタンプ」は、タイムサーバ200〜206が応答要求パケットを受信した時刻T2が示される領域である。   The “reception time stamp” is an area in which time T2 when the time servers 200 to 206 receive the response request packet is indicated.

「送信タイムスタンプ」は、タイムサーバ200〜206が応答パケットを送信した時刻T3が示される領域である。   The “transmission time stamp” is an area in which time T3 when the time servers 200 to 206 transmit the response packet is indicated.

なお、「開始タイムスタンプ」、「受信タイムスタンプ」、及び「送信タイムスタンプ」では、時刻T1,T2,T3は、64ビットタイムスタンプ形式で表現される。時刻T1は、例えば通信端末100の計時部160が計時した時刻である。時刻T2,T3は、タイムサーバ200〜206の内部時計が計時した時刻である。   In the “start time stamp”, “reception time stamp”, and “transmission time stamp”, the times T1, T2, and T3 are expressed in a 64-bit time stamp format. The time T1 is, for example, the time measured by the time measuring unit 160 of the communication terminal 100. Times T2 and T3 are times measured by the internal clocks of the time servers 200 to 206.

図5は、時刻情報の取得先を選択するために用いられるデータを示す図である。(A)は、タイムサーバ203の応答パケットから取得されるデータを示す。(B)は、タイムサーバ201の応答パケットから取得されるデータを示す。(C)は、タイムサーバ202の応答パケットから取得されるデータを示す。(D)は、タイムサーバ200の応答パケットから取得されるデータを示す。   FIG. 5 is a diagram illustrating data used for selecting a time information acquisition source. (A) shows data acquired from the response packet of the time server 203. (B) shows data acquired from the response packet of the time server 201. (C) shows data acquired from the response packet of the time server 202. (D) shows data acquired from the response packet of the time server 200.

本実施の形態では、タイムサーバ200〜206の中から時刻情報の取得先を選択するために、応答パケットからデータが取得される。このデータとして、タイムサーバ200〜206のIPアドレスや、タイムサーバ200〜206が位置する階層の値(以下、階層値)がある。   In the present embodiment, data is acquired from the response packet in order to select a time information acquisition destination from the time servers 200 to 206. This data includes the IP address of the time servers 200 to 206 and the value of the hierarchy where the time servers 200 to 206 are located (hereinafter referred to as a hierarchy value).

(A)のデータには、階層値「2」が含まれる。階層値「2」は、タイムサーバ203が位置する第2層を示す。(B),(C),(D)のデータには、階層値「1」が含まれる。階層値「1」は、タイムサーバ201,202,200が位置する第1層を示す。階層値は、応答パケットの「階層」に示される8ビット整数から得られる。   The data (A) includes the hierarchy value “2”. The layer value “2” indicates the second layer in which the time server 203 is located. The data of (B), (C), (D) includes the hierarchy value “1”. The layer value “1” indicates the first layer in which the time servers 201, 202, and 200 are located. The layer value is obtained from an 8-bit integer indicated in the “layer” of the response packet.

また、応答パケットから取得されるデータには、タイムサーバ200〜206の時刻参照元を示す参照元識別子も含まれる。(A)のデータには、タイムサーバ203の時刻参照元(タイムサーバ200)を示す参照元識別子として、タイムサーバ200のIPアドレス「192.168.48.110」が含まれる。(B)のデータには、タイムサーバ201の時刻参照元(GPS401)を示す参照元識別子「GPS」が含まれる。(C)のデータには、タイムサーバ202の時刻参照元(テレホンJJY402)を示す参照元識別子「TJJY」が含まれる。(D)のデータには、タイムサーバ200の時刻参照元(原子時計400)を示す参照元識別子「PPS」が含まれる。これら参照元識別子は、応答パケットの「参照元識別子」に示される32ビット整数から得られる。   The data acquired from the response packet also includes a reference source identifier indicating the time reference source of the time servers 200 to 206. The data of (A) includes the IP address “192.168.48.110” of the time server 200 as a reference source identifier indicating the time reference source (time server 200) of the time server 203. The data (B) includes a reference source identifier “GPS” indicating the time reference source (GPS 401) of the time server 201. The data of (C) includes a reference source identifier “TJJY” indicating the time reference source (telephone JJY 402) of the time server 202. The data of (D) includes a reference source identifier “PPS” indicating the time reference source (atomic clock 400) of the time server 200. These reference source identifiers are obtained from a 32-bit integer indicated in the “reference source identifier” of the response packet.

また、応答パケットから取得されるデータには、通信端末100が応答要求パケットを送信した時刻T1や、タイムサーバ200〜206が応答要求パケットを受信した時刻T2や、タイムサーバ200〜206が応答パケットを送信した時刻T3も含まれる。時刻T1,T2,T3は、開始タイムスタンプ・受信タイムスタンプ・送信タイムスタンプに示される64ビット整数から得られる。   The data acquired from the response packet includes the time T1 when the communication terminal 100 transmits the response request packet, the time T2 when the time servers 200 to 206 receive the response request packet, and the time servers 200 to 206 include the response packet. The time T3 at which is transmitted is also included. Times T1, T2, and T3 are obtained from a 64-bit integer indicated by a start time stamp, a reception time stamp, and a transmission time stamp.

遅延時間計算部520(図3)は、応答パケット受信部510が応答パケットを受信するたびに、遅延時間Pを算出する。遅延時間Pは、応答パケットから取得される時刻T1,T2,T3と、通信端末100に応答パケットが受信された時刻T4とを用いて、式1により算出される。なお、時刻T4は、応答パケット受信の際に、通信端末100の計時部160から取得される。   The delay time calculator 520 (FIG. 3) calculates the delay time P every time the response packet receiver 510 receives a response packet. The delay time P is calculated by Equation 1 using times T1, T2, and T3 acquired from the response packet and time T4 when the response packet is received by the communication terminal 100. The time T4 is acquired from the time measuring unit 160 of the communication terminal 100 when the response packet is received.

遅延時間Pは、応答要求パケット送信部500が応答要求パケットを送信してから、応答パケット受信部510が応答パケットを受信するまでに要する時間(T4−T1)と、タイムサーバ200〜206が、応答要求パケットを受信してから、応答パケットを送信するまでに要する時間(T2−T3)との差分を示す時間である。   The delay time P is the time (T4-T1) required for the response packet receiving unit 510 to receive the response packet after the response request packet transmitting unit 500 transmits the response request packet, and the time servers 200 to 206 This is a time indicating a difference from the time (T2−T3) required to receive the response packet after receiving the response request packet.

Figure 2012113504
Figure 2012113504

内部処理時間計算部530は、応答パケット受信部510が応答パケットを受信するたびに、内部処理時間Pを算出する。内部処理時間Pは、応答パケットから取得される時刻T2,T3を用いて、式2により算出される。内部処理時間Pは、タイムサーバ200〜206が、応答要求パケットを受信してから、応答パケットを送信するまでに要する時間(T3−T2)である。   The internal processing time calculation unit 530 calculates the internal processing time P every time the response packet reception unit 510 receives a response packet. The internal processing time P is calculated by Equation 2 using times T2 and T3 acquired from the response packet. The internal processing time P is a time (T3-T2) required for the time servers 200 to 206 to transmit a response packet after receiving the response request packet.

Figure 2012113504
Figure 2012113504

応答パケットデータ格納部540は、応答パケット受信部510が応答パケットを受信するたびに、応答パケットからIPアドレス・階層値・参照元識別子(図5)を取得し、これらのデータに遅延時間dや内部処理時間Pを対応付けて、記憶部120に格納する。   The response packet data storage unit 540 acquires an IP address, a hierarchical value, and a reference source identifier (FIG. 5) from the response packet every time the response packet receiving unit 510 receives the response packet, and adds the delay time d and the data to these data. The internal processing time P is associated and stored in the storage unit 120.

図6は、応答パケットテーブルの例を示す図である。応答パケットテーブルは、応答パケットデータ格納部540が、応答パケットを受信するたびに、データを格納することで作成される。応答パケットテーブルでは、各応答パケットに含まれるデータ(IPアドレス・階層値・参照元識別子)が受信順に並べられて、これらデータの各々に、遅延時間dや内部処理時間Pが対応付けられている。   FIG. 6 is a diagram illustrating an example of a response packet table. The response packet table is created by storing data every time the response packet data storage unit 540 receives a response packet. In the response packet table, data (IP address / layer value / reference source identifier) included in each response packet is arranged in the order of reception, and each of these data is associated with a delay time d and an internal processing time P. .

サーバ選択部550は、応答パケットテーブルを用いて、タイムサーバ200〜206の中から、時刻情報の取得先となる候補を選択して、これら候補の優先順位を設定する。この処理は、後述の第1〜4の手順により行われる。以下、図6の応答パケットテーブルが作成された場合を例に説明する。   The server selection unit 550 uses the response packet table to select candidates from which the time information is acquired from the time servers 200 to 206, and sets the priorities of these candidates. This process is performed by the following first to fourth procedures. Hereinafter, a case where the response packet table of FIG. 6 is created will be described as an example.

第1〜3の手順では、応答パケットテーブルのデータが並び替えられる。第1の手順では、階層値の小さいデータが上位となるように、データが並べ替えられる。   In the first to third procedures, the response packet table data is rearranged. In the first procedure, the data is rearranged so that data with a small hierarchical value is higher.

図7は、サーバ選択部550の第1の手順により、図6に示すデータが並び替えられた応答パケットテーブルを示す。図7のテーブルでは、階層値が「1」であるタイムサーバ201,202,200のデータ(B,C,D)が上位に並び、その下位に階層値が「2」であるタイムサーバ203,205,204のデータ(A,E,G)が並んでいる。また、その下位に階層値が「3」であるタイムサーバ206のデータ(F)が並んでいる。   FIG. 7 shows a response packet table in which the data shown in FIG. 6 is rearranged by the first procedure of the server selection unit 550. In the table of FIG. 7, the data (B, C, D) of the time servers 201, 202, and 200 having the hierarchy value “1” are arranged at the upper level, and the time servers 203, Data 205, 204 (A, E, G) are arranged. In addition, data (F) of the time server 206 whose layer value is “3” are arranged below.

ついで、第2の手順では、参照元識別子に基づき、階層値が「1」であるデータ(B,C,D)が並び替えられる。   Next, in the second procedure, the data (B, C, D) whose layer value is “1” is rearranged based on the reference source identifier.

図8は、サーバ選択部550の第2の手順により、図7に示すデータが並び替えられた応答パケットテーブルを示す。第2の手順では、参照元識別子が「PPS」であるデータ(D)を最も上位にして、その下に参照元識別子が「GPS」であるデータ(B)が位置し、その下に参照元識別子が「TJJY」であるデータ(C)が位置するように、データが並び替えられる。   FIG. 8 shows a response packet table in which the data shown in FIG. 7 is rearranged by the second procedure of the server selection unit 550. In the second procedure, the data (D) whose reference source identifier is “PPS” is placed at the top, the data (B) whose reference source identifier is “GPS” is located below it, and the reference source is below it. The data is rearranged so that the data (C) whose identifier is “TJJY” is located.

ついで、第3の手順では、遅延時間dや内部処理時間Pに基づき、応答パケットテーブルのデータが並び替えられる。   Next, in the third procedure, the data in the response packet table is rearranged based on the delay time d and the internal processing time P.

図9は、サーバ選択部550の第3の手順により、図8に示すデータが並び替えられた応答パケットテーブルを示す。第3の手順は、階層値及び参照元識別子が同一であるデータを並び替えるものであり、遅延時間dが小さいデータが上位になるように、データが並び替えられる。図9のテーブルを、図8のテーブルと比較すると、データE,Gの順位が逆転している。これは、データE,Gは、いずれも階層値が「2」であり、且つ参照元識別子が「192.168.48.5」であるため並び替えの対象とされ、また、データEが、データGに比して、遅延時間dが長いことで、順位が逆転されたものである。また、遅延時間dによるデータの並び替えが行われた後、必要に応じて、内部処理時間Pが小さいデータが上位になるように、データの並べ替えが行われる。この並べ替えを要する場合は、データの順位を定めるために、内部処理時間Pを遅延時間dよりも重視する必要が生じた場合である。具体的には、応答要求パケットを受信したタイムサーバの処理能力に関連して、応答パケットテーブルの中に、内部処理時間Pが極端に長いデータが存在する場合や、階層値及び参照元識別子が同一である他のデータに比べて、内部処理時間Pが、μ秒単位で一桁以上異なるデータが存在する場合が該当する。このような場合、上記の内部処理時間Pによるデータの並べ替えを行うことで、内部処理時間Pが極端に長いデータの優先順位を下げること等が可能になる。例えば、応答パケットテーブルが図9の状態のときに、内部処理時間Pが小さいデータが上位となるよう、データを並べ替えると、応答パケットテーブルは、図8の状態に戻る。   FIG. 9 shows a response packet table in which the data shown in FIG. 8 is rearranged by the third procedure of the server selection unit 550. The third procedure rearranges data having the same layer value and reference source identifier, and rearranges data so that data with a short delay time d is higher. When the table of FIG. 9 is compared with the table of FIG. 8, the order of the data E and G is reversed. This is because data E and G are both subject to reordering because the hierarchical value is “2” and the reference source identifier is “192.168.48.5”. Compared to the data G, the delay time d is longer, and the order is reversed. In addition, after the data is rearranged according to the delay time d, the data is rearranged so that the data with the shorter internal processing time P is higher if necessary. This rearrangement is necessary when the internal processing time P needs to be more important than the delay time d in order to determine the order of data. Specifically, in relation to the processing capability of the time server that has received the response request packet, when there is data having an extremely long internal processing time P in the response packet table, or when the hierarchical value and the reference source identifier are This corresponds to the case where there is data in which the internal processing time P differs by one digit or more in units of μ seconds compared to other data that is the same. In such a case, by rearranging the data based on the internal processing time P, it becomes possible to lower the priority of data having an extremely long internal processing time P. For example, when the response packet table is in the state of FIG. 9, when the data is rearranged so that the data with the short internal processing time P is higher, the response packet table returns to the state of FIG.

また、図8のテーブルでは、遅延時間dが1900μ秒であるデータCが、遅延時間dが1800μ秒であるデータAよりも上に位置している。そして、図9のテーブルでは、図8のテーブルから順序が変更されることなく、データC,Aが並んでいる。これは、データCのように、階層値が「1」であり、且つ参照元識別子が「TJJY」である他のデータが存在しなかったため、データCは、第3の手順で並び替えの対象から除外されたことによる。   In the table of FIG. 8, data C with a delay time d of 1900 μs is positioned above data A with a delay time d of 1800 μs. In the table of FIG. 9, the data C and A are arranged without changing the order from the table of FIG. This is because, unlike data C, there is no other data having a hierarchical value of “1” and a reference source identifier of “TJJY”, so that data C is subject to sorting in the third procedure. Because it was excluded from.

ついで、第4の手順では、第1〜3の手順により並び替えが行われた応答パケットテーブルを用いて、サーバ選択テーブルが作成されて、記憶部120に記憶される。   Next, in the fourth procedure, a server selection table is created using the response packet table rearranged by the first to third procedures and stored in the storage unit 120.

図10は、サーバ選択テーブルの例を示す図である。サーバ選択テーブルには、応答パケットテーブルの上位n件のデータに含まれるIPアドレスが記される。図10の例では、図9の応答パケットテーブルで上位6件のデータに含まれるIPアドレスが記される。また、これらIPアドレスは、図9の応答パケットテーブルの順序に従って並んでいる。図10のサーバ選択テーブルは、時刻情報の取得先として、タイムサーバ200〜205が選択可能であることを示す。また、サーバ選択テーブルは、タイムサーバを選択する優先順位を、IPアドレスの並び順により示す。図10のテーブルでは、タイムサーバ205→タイムサーバ204→タイムサーバ203→タイムサーバ202→タイムサーバ201→タイムサーバ200の順に、優先順位が高くなることを示す。この優先順位は、第1〜3の手順によるデータの並び替えが行われた結果、設定されたものである。   FIG. 10 is a diagram illustrating an example of a server selection table. In the server selection table, IP addresses included in the top n data of the response packet table are described. In the example of FIG. 10, the IP addresses included in the top 6 data are described in the response packet table of FIG. These IP addresses are arranged in the order of the response packet table of FIG. The server selection table in FIG. 10 indicates that the time servers 200 to 205 can be selected as time information acquisition sources. Also, the server selection table indicates the priority order for selecting the time server by the order of arrangement of IP addresses. In the table of FIG. 10, the priority order increases in the order of time server 205 → time server 204 → time server 203 → time server 202 → time server 201 → time server 200. This priority order is set as a result of data rearrangement according to the first to third procedures.

つまり、サーバ選択テーブルでは、第2の手順が実行されたことで、タイムサーバの優先順位が、参照元識別子に基づき設定されている。図10の例は、第2の手順により、参照元識別子が「IPアドレス」である第2層のタイムサーバ203〜205→参照元識別子が「TJJY」であるタイムサーバ202→参照元識別子が「GPS」であるタイムサーバ201→参照元識別子が「PPS」であるタイムサーバ200の順に、優先順位が高くなるよう設定されている。   That is, in the server selection table, the priority order of the time servers is set based on the reference source identifier by executing the second procedure. In the example of FIG. 10, according to the second procedure, the time servers 203 to 205 in the second layer whose reference source identifier is “IP address” → the time server 202 whose reference source identifier is “TJJY” → the reference source identifier is “ The priority is set in the order of the time server 201 that is “GPS” → the time server 200 that has the reference source identifier “PPS”.

また、サーバ選択テーブルでは、第1の手順が実行されたことで、上層のタイムサーバが下層のタイムサーバよりも優先して選択されるように、階層値に基づき優先順位が設定されている。図10の例は、第1の手順により、第2層のタイムサーバ203〜205、→第1層のタイムサーバ200〜202の順に、優先順位が高くなるよう設定されている。   In the server selection table, the priority order is set based on the hierarchical value so that the upper time server is selected with priority over the lower time server by executing the first procedure. In the example of FIG. 10, the priority order is set to be higher in the order of the second layer time servers 203 to 205 and the first layer time servers 200 to 202 according to the first procedure.

また、サーバ選択テーブルでは、第3の手順が実行されたことで、遅延時間dや内部処理時間Pが短いタイムサーバが優先して選択されるように、優先順位が設定されている。図10の例は、第3の手順により、遅延時間dが4900μ秒(図9のG)であるタイムサーバ204が、遅延時間dが5000μ秒(図9のE)であるタイムサーバ205よりも、優先順位が高くなるよう設定されている。   In the server selection table, the priority order is set so that a time server having a short delay time d or internal processing time P is preferentially selected by executing the third procedure. In the example of FIG. 10, the time server 204 having a delay time d of 4900 μsec (G in FIG. 9) is more than the time server 205 having a delay time d of 5000 μsec (E in FIG. 9) by the third procedure. , The priority is set higher.

サーバ選択部550による処理の後では、NTPデーモンが起動して、計時部160やシステムクロックの時刻合わせが行われる。具体的には、図10のサーバ選択テーブルに示されるアドレス宛に、時刻要求パケットが送信される。この送信により、タイムサーバ200〜206から内部時計の時刻を示す時刻情報が返信されて、該時刻情報が示す時刻に、通信端末100の計時部160等の時刻が修正される。   After the processing by the server selection unit 550, the NTP daemon is activated and the time of the time measuring unit 160 and the system clock is adjusted. Specifically, the time request packet is transmitted to the address indicated in the server selection table of FIG. With this transmission, time information indicating the time of the internal clock is returned from the time servers 200 to 206, and the time of the time measuring unit 160 of the communication terminal 100 is corrected to the time indicated by the time information.

なお図10のように、サーバ選択テーブルに複数のIPアドレスが含まれる場合には、例えば、サーバ選択テーブルで最も上位に記されるIPアドレス宛に、時刻要求パケットが送信され、これに応じて返信される時刻情報に基づき、計時部160等の時刻が修正される。図10の例では、「192.168.48.110」宛に時刻要求パケットが送信されることで、タイムサーバ200から時刻情報が返信され、この時刻情報に基づき時刻が修正される。このようにすることで、最も時刻精度の高いタイムサーバ200から送信される時刻情報に基づき、通信端末100の時刻合わせが行われる。   As shown in FIG. 10, when the server selection table includes a plurality of IP addresses, for example, a time request packet is transmitted to the highest IP address in the server selection table. Based on the returned time information, the time of the time measuring unit 160 and the like is corrected. In the example of FIG. 10, when a time request packet is transmitted to “192.168.48.110”, the time information is returned from the time server 200, and the time is corrected based on this time information. By doing in this way, the time alignment of the communication terminal 100 is performed based on the time information transmitted from the time server 200 with the highest time accuracy.

あるいは、サーバ選択テーブルの全てのIPアドレス宛、又は上位n件のIPアドレス宛に、時刻要求パケットが送信されてもよい。この場合、複数のタイムサーバから時刻情報が返信されることになり、これら時刻情報の示す時刻の平均値が、RFC1305に詳述されるNTPに則った手順で算出されて、該平均値に計時部160等の時刻が修正される。図10の例で、全てのIPアドレス宛に時刻要求パケットが送信された場合、タイムサーバ200〜205から時刻情報が返信され、これら時刻情報から得られる平均値に、時刻が修正される。   Alternatively, the time request packet may be transmitted to all IP addresses in the server selection table or to the top n IP addresses. In this case, time information is returned from a plurality of time servers, and an average value of times indicated by these time information is calculated by a procedure according to NTP described in detail in RFC1305, and time is measured to the average value. The time of the part 160 etc. is corrected. In the example of FIG. 10, when time request packets are transmitted to all IP addresses, time information is returned from the time servers 200 to 205, and the time is corrected to an average value obtained from these time information.

図11は、通信端末100の動作の一例を示すフローチャートである。図11に示す処理は、例えば、ユーザが入力部130(図2)を操作することで開始される。なお、NTPデーモンが起動中である際には、上記ユーザの操作により、NTPデーモンは一旦停止される。   FIG. 11 is a flowchart illustrating an example of the operation of the communication terminal 100. The process shown in FIG. 11 is started, for example, when the user operates the input unit 130 (FIG. 2). When the NTP daemon is being activated, the NTP daemon is temporarily stopped by the user operation.

まず、応答要求パケット送信部500は、ネットワーク300に対して、ブロードキャスト送信で、応答要求パケットを送信する(ステップS101)。   First, the response request packet transmission unit 500 transmits a response request packet to the network 300 by broadcast transmission (step S101).

ついで、応答パケット受信部510は、タイムサーバ200〜206から応答パケットを受信したか否かを判断する(ステップS102)。   Next, the response packet receiving unit 510 determines whether a response packet has been received from the time servers 200 to 206 (step S102).

応答パケットを受信したと判断された場合には(ステップS102でYES)、応答パケットテーブル格納処理が実行される(ステップS103)。   If it is determined that a response packet has been received (YES in step S102), a response packet table storage process is executed (step S103).

図12は、応答パケットテーブル格納処理の一例を示すフローチャートである。   FIG. 12 is a flowchart illustrating an example of a response packet table storage process.

この処理では、まず、遅延時間計算部520が、上記式1により、時刻T1〜4を用いて遅延時間dを算出する(ステップS201)。   In this process, first, the delay time calculation unit 520 calculates the delay time d using the times T1 to T4 according to the above equation 1 (step S201).

ついで、内部処理時間計算部530が、上記式2により、時刻T2,T3を用いて内部処理時間Pを算出する(ステップS202)。   Next, the internal processing time calculation unit 530 calculates the internal processing time P using the times T2 and T3 according to the above equation 2 (step S202).

ついで、応答パケットデータ格納部540は、応答パケットのデータ(IPアドレス・階層値・参照元識別子)に、遅延時間dや内部処理時間Pを対応付けて(ステップS203)、記憶部120に記憶する(ステップS204)。   Next, the response packet data storage unit 540 associates the delay time d and the internal processing time P with the data (IP address / layer value / reference source identifier) of the response packet (step S203) and stores them in the storage unit 120. (Step S204).

図11に戻り、ステップS103が実行された後、或いは、ステップS102で応答パケットが受信されていないと判定された場合には(ステップS102でNO)、応答パケット受信部510は、ステップS101で応答要求パケットが送信されてから、所定の時間が経過したか否かを判断する(ステップS104)。   Returning to FIG. 11, after step S103 is executed, or when it is determined in step S102 that a response packet has not been received (NO in step S102), the response packet receiving unit 510 responds in step S101. It is determined whether or not a predetermined time has elapsed since the request packet was transmitted (step S104).

所定の時間が経過してないと判断された場合(ステップS104でNO)、応答パケット受信部510は、処理をステップS102に戻す。   If it is determined that the predetermined time has not elapsed (NO in step S104), response packet receiving section 510 returns the process to step S102.

この復帰により、タイムサーバ200〜206から応答パケットが受信されるたび、ステップS103が実行される。この結果、応答パケットのデータが受信順に記憶部120に記憶されることで、図6に示す応答パケットテーブルが作成される。   By this return, step S103 is executed every time a response packet is received from the time servers 200 to 206. As a result, the response packet data is stored in the storage unit 120 in the order of reception, whereby the response packet table shown in FIG. 6 is created.

ステップS104で、所定の時間が経過したと判断された場合には(ステップS104でYES)、応答パケットテーブルの並び替え処理が実行される(ステップS105)。   If it is determined in step S104 that the predetermined time has elapsed (YES in step S104), a response packet table rearrangement process is executed (step S105).

図13は、応答パケットテーブルの並び替え処理の一例を示すフローチャートである。このテーブル並び替え処理では、上述したサーバ選択部550による第1〜3の手順が実行される(ステップS301〜S305)。ステップS301〜S305により、応答パケットテーブルのデータが、階層値、参照元識別子、遅延時間d、及び内部処理時間Pに基づき並べ替えられる。   FIG. 13 is a flowchart illustrating an example of a response packet table rearrangement process. In this table rearrangement process, the first to third procedures by the server selection unit 550 described above are executed (steps S301 to S305). Through steps S301 to S305, the data in the response packet table is rearranged based on the layer value, the reference source identifier, the delay time d, and the internal processing time P.

図11に戻り、ステップS105の実行後では、サーバ選択テーブル格納処理が実行される(ステップS106)。   Returning to FIG. 11, after execution of step S105, server selection table storage processing is executed (step S106).

図14は、サーバ選択テーブル格納処理の一例を示すフローチャートである。サーバ選択テーブル格納処理では、上述したサーバ選択部550による第4〜5の手順が実行される。まず、第1〜3の手順でデータの並び替えが行われた応答パケットテーブルにおいて、上位n件のデータに含まれるIPアドレスが取得される(ステップS401)。ついで、ステップS401で取得されたIPアドレスが記憶部120に記憶されることで(ステップS402)、図10に示すサーバ選択テーブルが作成・記憶される。   FIG. 14 is a flowchart illustrating an example of the server selection table storage process. In the server selection table storage process, the fourth to fifth procedures by the server selection unit 550 described above are executed. First, in the response packet table in which the data is rearranged in the first to third procedures, IP addresses included in the top n data are acquired (step S401). Next, the IP address acquired in step S401 is stored in the storage unit 120 (step S402), and the server selection table shown in FIG. 10 is created and stored.

図11に戻り、ステップS106の後では、NTPデーモンが再起動される(ステップS107)。このNTPデーモンの起動により、サーバ選択テーブル(図10)に示されるアドレス宛に、時刻要求パケットが送信される。ついで、これに応じて返信された時刻情報に基づき、計時部160の時刻が修正される。   Returning to FIG. 11, after step S106, the NTP daemon is restarted (step S107). By starting the NTP daemon, a time request packet is transmitted to the address shown in the server selection table (FIG. 10). Next, the time of the time measuring unit 160 is corrected based on the time information returned in response thereto.

本実施の形態によれば、タイムサーバ200〜206の中から、時刻情報の取得先となる候補が、タイムサーバ200〜206の時刻参照元を示す識別子等に基づき選択される。このため、時刻情報の取得先として、原子時計400、GPS401、及びテレホンJJY402等を参照元とする時刻精度の高いタイムサーバを選択することが可能であり、これらタイムサーバが送信する時刻情報に基づき通信端末100の時刻合わせが行われることで、通信端末100が計時する時刻は、正確になる。   According to the present embodiment, a candidate that is a time information acquisition destination is selected from the time servers 200 to 206 based on an identifier or the like indicating the time reference source of the time servers 200 to 206. For this reason, it is possible to select a time server with high time accuracy based on the atomic clock 400, the GPS 401, the telephone JJY 402, or the like as the acquisition source of the time information, and based on the time information transmitted by these time servers. By adjusting the time of the communication terminal 100, the time measured by the communication terminal 100 becomes accurate.

また、時刻情報の取得先となる候補は、タイムサーバ200〜206から返信される応答パケットのデータが用いられて選択される。よって、時刻情報の取得先を選択する処理を行うために、通信端末100に予めデータを入力しておく必要がない。このため、ユーザに手間を要しない。   In addition, candidates for obtaining time information are selected using response packet data returned from the time servers 200 to 206. Therefore, it is not necessary to input data into the communication terminal 100 in advance in order to perform processing for selecting a time information acquisition destination. For this reason, a user's effort is not required.

応答要求パケットがブロードキャスト送信でネットワーク300に対して送信されることで、ネットワーク300に接続されたタイムサーバ200〜206の全てが、応答パケットを通信端末100に送信する。よって、時刻精度の高いタイムサーバが、応答パケットの未送信(応答要求パケットの未受信)により、時刻情報の取得先の候補から除外されることを防止できる。   When the response request packet is transmitted to the network 300 by broadcast transmission, all of the time servers 200 to 206 connected to the network 300 transmit the response packet to the communication terminal 100. Therefore, it is possible to prevent a time server with high time accuracy from being excluded from candidates for the time information acquisition destination due to a response packet not being transmitted (response request packet not being received).

また、時刻情報の取得先を選択するための優先順位が、参照元識別子等に基づき設定される。よって、この優先順位に従い時刻情報の取得先が選択されることで、確実に時刻精度の高いタイムサーバ200が参照されて、通信端末100の時刻合わせが行われる。このため、通信端末100が計時する時刻は、より一層正確になる。   Also, a priority order for selecting a time information acquisition destination is set based on a reference source identifier or the like. Therefore, by selecting the time information acquisition destination according to this priority, the time server 200 with high time accuracy is reliably referred to, and the time setting of the communication terminal 100 is performed. For this reason, the time measured by the communication terminal 100 becomes even more accurate.

また、上層のタイムサーバが下層のタイムサーバよりも優先して選択されるように、階層値に基づき優先順位が設定される。よって、時刻精度の高い上層のタイムサーバが参照されて、通信端末100の時刻合わせが行われる。   Further, the priority order is set based on the hierarchy value so that the upper time server is selected in preference to the lower time server. Therefore, the time of the communication terminal 100 is adjusted by referring to an upper time server with high time accuracy.

また、内部処理時間Pや遅延時間dが短いタイムサーバが優先して選択されるように、優先順位が設定される。これにより、時刻情報の取得先として応答の早いタイムサーバが選択されるため、通信端末100がタイムサーバを参照して時刻合わせを行う時間間隔は短くなる。よって、通信端末100の計時部160が計時する時刻は、時間経過による狂いが小さく抑えられたものになり、計時部160の時刻を、常時、正確にする上で有利になる。   In addition, the priority order is set so that a time server having a short internal processing time P or delay time d is selected with priority. As a result, a time server that responds quickly is selected as the time information acquisition destination, and therefore the time interval at which the communication terminal 100 refers to the time server to adjust the time is shortened. Therefore, the time measured by the time measuring unit 160 of the communication terminal 100 is such that the deviation due to the passage of time is suppressed to be small, which is advantageous in making the time of the time measuring unit 160 accurate at all times.

本発明は、上述の実施の形態に限定されず、特許請求の範囲において種々改変することができる。   The present invention is not limited to the above-described embodiment, and various modifications can be made within the scope of the claims.

例えば、通信端末100は、他の装置に時刻情報を提供するタイムサーバとして機能するように構成されてもよい。   For example, the communication terminal 100 may be configured to function as a time server that provides time information to other devices.

また、応答要求パケットは、初期設定時以外にも適当な時間間隔で定期的に、ネットワーク300に対してブロードキャスト送信で送信されるようにしてもよい。この場合、新たな応答パケットが受信されるたびに、サーバ選択テーブルのデータが更新される。   Further, the response request packet may be transmitted to the network 300 by broadcast transmission periodically at an appropriate time interval other than at the time of initial setting. In this case, each time a new response packet is received, the data in the server selection table is updated.

また、時刻情報の取得先となる候補や、時刻情報の取得先を選択するための優先順位は、参照元識別子のみに基づき設定されてもよい。この場合、遅延時間d及び内部処理時間Pは算出されず、応答パケットデータ格納部540により作成される応答パケットテーブルは、例えば図15に示すようになる。   In addition, the candidates for the time information acquisition destination and the priority order for selecting the time information acquisition destination may be set based only on the reference source identifier. In this case, the delay time d and the internal processing time P are not calculated, and the response packet table created by the response packet data storage unit 540 is as shown in FIG. 15, for example.

そして、サーバ選択部550により、応答パケットテーブルのデータが、参照元識別子に基づき並べ替えられる。この結果、応答パケットテーブルのデータは、例えば図16に示すようになる。図16では、データの順位が、参照元識別子が「IPアドレス」であるデータA,E,F,G→参照元識別子が「TJJY」であるデータC→参照元識別子が「GPS」であるデータB→参照元識別子が「PPS」であるデータDの順に高くなるよう、データが並べ替えられている。   Then, the server selection unit 550 rearranges the data in the response packet table based on the reference source identifier. As a result, the data in the response packet table is as shown in FIG. 16, for example. In FIG. 16, data A, E, F, G with reference source identifier “IP address” → data C with reference source identifier “TJJY” → data with reference source identifier “GPS”. Data is rearranged so as to increase in the order of B → data D whose reference source identifier is “PPS”.

そして、サーバ選択部550により、応答パケットテーブルの上位n件のIPアドレスが取得される。この結果、例えば図17に示すサーバ選択テーブルが作成される。図17のテーブルは、応答パケットテーブルの上位3件のIPアドレスが取得されたものである。図17のテーブルによれば、原子時計400・GPS401・テレホンJJY402を参照元とするタイムサーバ200〜202が、時刻情報の取得先として選択可能とされる。また、タイムサーバ200〜202の優先順位が、タイムサーバ202→タイムサーバ201→タイムサーバ200の順に高くなるように設定される。   Then, the server selection unit 550 acquires the top n IP addresses in the response packet table. As a result, for example, a server selection table shown in FIG. 17 is created. The table of FIG. 17 is obtained by acquiring the top three IP addresses of the response packet table. According to the table of FIG. 17, the time servers 200 to 202 having the atomic clock 400, the GPS 401, and the telephone JJY 402 as reference sources can be selected as time information acquisition sources. Further, the priority order of the time servers 200 to 202 is set so as to increase in the order of the time server 202 → the time server 201 → the time server 200.

また、サーバ選択テーブルのデータは、図18に示す形式に変形され得る。図18の例では、データがntp.confファイル形式で記されている。ntp.confファイルは、NTPデーモンの設定ファイルであり、参照するタイムサーバの指定やポーリング間隔、アクセス制御の設定などが記述され、minpoll,maxpoll,preferなどのオプションパラメータが付加される。   Further, the data in the server selection table can be transformed into the format shown in FIG. In the example of FIG. 18, data is written in the ntp.conf file format. The ntp.conf file is a setting file for the NTP daemon, which describes the specification of the time server to be referred to, the polling interval, the setting of access control, and the like, and optional parameters such as minpoll, maxpoll, and preference are added.

また、図19は、本発明の通信端末が適用される他の通信システム2を示すブロック図である。通信システム2は、図1の通信システム1とは、タイムサーバ200の時刻参照元が異なり、タイムサーバ200は、タイムサーバ201と同様に、GPS401を参照して定期的に時刻合わせを行う。   FIG. 19 is a block diagram showing another communication system 2 to which the communication terminal of the present invention is applied. The communication system 2 is different from the communication system 1 of FIG. 1 in that the time reference source of the time server 200 is different, and the time server 200 refers to the GPS 401 and performs time adjustment periodically like the time server 201.

図19の通信システム2のように、時刻参照元が共通する複数のタイムサーバ200,201が存在する場合には、応答パケットデータ格納部540により作成される応答パケットテーブルは、例えば図20に示すようになる。   When there are a plurality of time servers 200 and 201 having a common time reference source as in the communication system 2 of FIG. 19, the response packet table created by the response packet data storage unit 540 is shown in FIG. It becomes like this.

図20のテーブルでは、タイムサーバ200,201のデータD,Bに、参照元識別子「GPS」が示される。   In the table of FIG. 20, the reference source identifier “GPS” is shown in the data D and B of the time servers 200 and 201.

また、IPアドレス・参照元識別子には、同期識別子が対応付けられている。同期識別子は、応答パケットの「LI」(図4)の2ビット整数が取得されたものであり、タイムサーバ200〜206で、時刻の同期が行われているか否かを示す。   Further, a synchronization identifier is associated with the IP address / reference source identifier. The synchronization identifier is obtained by acquiring a 2-bit integer of “LI” (FIG. 4) of the response packet, and indicates whether or not time synchronization is performed in the time servers 200 to 206.

タイムサーバ201のデータBでは、同期識別子「11」が示される。これは、タイムサーバ201が、応答パケットを送信する際に、一時的に時刻の同期を行っていなかったことを意味する。   In the data B of the time server 201, the synchronization identifier “11” is indicated. This means that the time server 201 has not temporarily synchronized the time when transmitting the response packet.

一方、他のタイムサーバのデータ(B以外のデータ)では、同期識別子「00」が示される。これは、他のタイムサーバが、応答パケットを送信する際に、時刻の同期を行っていたことを意味する。   On the other hand, the synchronization identifier “00” is indicated in the data of other time servers (data other than B). This means that other time servers are performing time synchronization when transmitting the response packet.

応答パケットテーブルが作成された後では、サーバ選択部550により、以下の第1,2の手順により、応答パケットテーブルのデータが並べ替えられる。   After the response packet table is created, the server selection unit 550 rearranges the data in the response packet table according to the following first and second procedures.

まず、第1の手順では、応答パケットテーブルのデータが、参照元識別子に基づき並べ替えられる。この結果、応答パケットテーブルは、例えば、図21に示すようになる。図21では、データの順位が、参照元識別子が「IPアドレス」であるデータA,E,F,G→参照元識別子が「TJJY」であるデータC→参照元識別子が「GPS」であるデータD→参照元識別子が「GPS」であるデータBの順に高くなっている。   First, in the first procedure, the data in the response packet table is rearranged based on the reference source identifier. As a result, the response packet table is as shown in FIG. 21, for example. In FIG. 21, data A, E, F, G with reference source identifier “IP address” → data C with reference source identifier “TJJY” → data with reference source identifier “GPS”. D → Higher in the order of data B whose reference source identifier is “GPS”.

図21のテーブルは、上記データの並びにより、時刻合わせの参照元が異なるタイムサーバの優先順位が、設定されたものとなっている。つまり、タイムサーバ203〜205は、他のタイムサーバを時刻の参照元とし、タイムサーバ202、タイムサーバ201,200は、テレホンJJY402、GPS401,400を時刻の参照元にすることで、それぞれ時刻の参照元が異なるが、図21のテーブルでは、タイムサーバ203〜206→タイムサーバ202→タイムサーバ200,201の順に、優先順位が高くなるよう設定されている。   In the table of FIG. 21, the priority order of time servers with different reference sources for time adjustment is set based on the arrangement of the data. That is, the time servers 203 to 205 use other time servers as time reference sources, and the time server 202 and the time servers 201 and 200 use the telephone JJY 402 and the GPS 401 and 400 as time reference sources, respectively. Although the reference sources are different, in the table of FIG. 21, the priority is set in the order of time servers 203 to 206 → time server 202 → time servers 200 and 201.

なお、参照元識別子が「GPS」であるデータB,Dでは、図20の上下の位置関係が継承されて、図20と同様、データBが、データDよりも上位に並んでいる。   In the data B and D whose reference source identifier is “GPS”, the upper and lower positional relationships in FIG. 20 are inherited, and the data B is arranged higher than the data D as in FIG.

ついで、第2の手順では、サーバ選択部550は、同期識別子に基づきデータを並べ替える。この並べ替えは、参照元識別子が同一であるデータB,Dを対象とするものであり、同期識別子が「00」であるデータDが、同期識別子が「11」であるデータBよりも上位とされる。この結果、応答パケットテーブルのデータは、図22に示すようになる。   Next, in the second procedure, the server selection unit 550 rearranges the data based on the synchronization identifier. This rearrangement targets data B and D having the same reference source identifier, and data D having a synchronization identifier “00” is higher than data B having a synchronization identifier “11”. Is done. As a result, the response packet table data is as shown in FIG.

図22のテーブルは、データの並びにより、時刻合わせの参照元が同一であるタイムサーバの優先順位が設定されたものである。すなわち、時刻合わせの参照元がGPS401であるタイムサーバ200,201の優先順位が、タイムサーバ201→タイムサーバ200の順に高くなるよう設定されている。   The table of FIG. 22 is set with the priority order of time servers having the same reference source for time adjustment based on the arrangement of data. That is, the priority order of the time servers 200 and 201 whose reference source for time adjustment is GPS 401 is set to be higher in the order of time server 201 → time server 200.

ついで、サーバ選択部550は、応答パケットテーブルの上位n件のIPアドレスを取得する。この結果、例えば図23に示すサーバ選択テーブルが作成される。図23のテーブルは、応答パケットテーブルの上位3件のIPアドレスが取得されたものである。図23のテーブルによれば、GPS401やテレホンJJY402を参照元とするタイムサーバ200〜202が、時刻情報の取得先として選択可能とされる。また、タイムサーバ200〜202を選択する優先順位が、タイムサーバ202→タイムサーバ201→タイムサーバ200の順に、高くなるように設定される。   Next, the server selection unit 550 acquires the top n IP addresses in the response packet table. As a result, for example, a server selection table shown in FIG. 23 is created. The table of FIG. 23 is obtained by acquiring the top three IP addresses of the response packet table. According to the table in FIG. 23, the time servers 200 to 202 with the GPS 401 or the telephone JJY 402 as a reference source can be selected as the time information acquisition destination. Further, the priority order for selecting the time servers 200 to 202 is set so as to increase in the order of the time server 202 → the time server 201 → the time server 200.

以上の処理によれば、時刻合わせの参照元が同一であるタイムサーバの優先順位が、同期識別子に基づき設定される。このため、時刻同期を行っているタイムサーバが、時刻同期を行っていないタイムサーバよりも、優先して選択される。   According to the above processing, the priority order of the time servers having the same time synchronization reference source is set based on the synchronization identifier. For this reason, the time server performing time synchronization is selected with priority over the time server not performing time synchronization.

また、時刻合わせの参照元が同一であるタイムサーバの優先順位と、時刻合わせの参照元が異なるタイムサーバの優先順位とが合わせて設定されることで、時刻精度の高いタイムサーバの優先順位が、低く設定されることを回避できる。つまり図20〜図22の例では、第1の手順の並べ替えにより、図21に示すように、データA,E,F,G→データC→データB→データB,Dの順に、優先順位が高くなるよう設定される。そして、第2の手順では、参照元識別子が同一であるデータB,Dのみが並べ替えの対象とされて、同期識別子に基づき並べ替えられる。よって図22に示すように、参照元識別子が「GPS」であるデータB,Dは、参照元識別子が「TJJY」や「IPアドレス」であるデータC,A,E,F,Gよりも、下位にならない。以上により、時刻精度の高いタイムサーバが、時刻の同期を行っていないことで、時刻情報の取得先の候補から除外されることを防止できる。   Also, the priority order of time servers with the same time reference source and the priority order of time servers with different time reference sources are set together, so that the priority order of time servers with high time accuracy is set. , It can avoid being set low. That is, in the examples of FIGS. 20 to 22, the priority order is changed in the order of data A, E, F, G → data C → data B → data B, D as shown in FIG. Is set higher. In the second procedure, only the data B and D having the same reference source identifier are sorted and sorted based on the synchronization identifier. Therefore, as shown in FIG. 22, the data B and D whose reference source identifier is “GPS” are more than the data C, A, E, F, and G whose reference source identifier is “TJJY” and “IP address”. Don't be subordinate. As described above, it is possible to prevent the time server with high time accuracy from being excluded from the candidates for the time information acquisition destination because the time is not synchronized.

また、同期識別子によるデータの並び替え(図15〜図16に示すデータの並び替え)と、階層値、参照元識別子、及び遅延時間によるデータの並び替え(図6〜図9に示すデータの並び替え)とを組み合わせて実行することも可能である。この場合、応答パケットデータ格納部540により作成される応答パケットテーブルは、例えば、図24に示すようになる。図24の応答パケットテーブルでは、IPアドレス、階層値、同期識別子、参照元識別子、遅延時間d、及び内部処理時間Pが対応付けられている。   Further, data rearrangement by the synchronization identifier (data rearrangement shown in FIGS. 15 to 16) and data rearrangement by the hierarchy value, the reference source identifier, and the delay time (data rearrangement shown in FIGS. 6 to 9). It is also possible to execute in combination. In this case, the response packet table created by the response packet data storage unit 540 is as shown in FIG. 24, for example. In the response packet table of FIG. 24, an IP address, a hierarchy value, a synchronization identifier, a reference source identifier, a delay time d, and an internal processing time P are associated with each other.

まず、サーバ選択部550は、応答パケットテーブルのデータを、階層値に基づき並び替える。この結果、応答パケットテーブルは、図25に示すようになる。図25では、階層値2のデータA,E,Gが階層値1のデータB,C,Dの下位になり、階層値3のデータFが階層値2のデータA,E,Gの下位になるよう、データが並び替えられている。   First, the server selection unit 550 rearranges the response packet table data based on the hierarchy value. As a result, the response packet table is as shown in FIG. In FIG. 25, the data A, E, and G of the hierarchy value 2 are lower than the data B, C, and D of the hierarchy value 1, and the data F of the hierarchy value 3 is lower than the data A, E, and G of the hierarchy value 2. The data is rearranged so that

ついで、サーバ選択部550は、階層値が「1」であるデータを、参照元識別子に基づき並び替える。この結果、応答パケットテーブルは、図26に示す状態になる。図26では、参照元識別子が「TJJY」であるデータCが、参照元識別子が「GPS」であるデータDの下位に並び替えられている。   Next, the server selection unit 550 rearranges the data whose layer value is “1” based on the reference source identifier. As a result, the response packet table is in the state shown in FIG. In FIG. 26, the data C whose reference source identifier is “TJJY” is rearranged below the data D whose reference source identifier is “GPS”.

ついで、サーバ選択部550は、階層値及び参照元識別子が同一であるデータを、同期識別子に基づき並び替える。この結果、応答パケットテーブルは、図27に示す状態になる。図27では、同期識別子が「11」であるデータBが、同期識別子が「00」であるデータDの下位に並び替えられている。   Next, the server selection unit 550 rearranges data having the same hierarchy value and reference source identifier based on the synchronization identifier. As a result, the response packet table is in the state shown in FIG. In FIG. 27, the data B with the synchronization identifier “11” is rearranged below the data D with the synchronization identifier “00”.

ついで、サーバ選択部550は、応答パケットテーブルのデータを、遅延時間dに基づき並び替える。この結果、応答パケットテーブルは、図28に示す状態になる。図28では、遅延時間dが「5000μ秒」であるデータEが、遅延時間dが「4900μ秒」であるデータGの下位に並び替えられている。   Next, the server selection unit 550 rearranges the data in the response packet table based on the delay time d. As a result, the response packet table is in the state shown in FIG. In FIG. 28, the data E having the delay time d of “5000 μsec” is rearranged below the data G having the delay time d of “4900 μsec”.

この後、上述したように、データの順位を定めるために、内部処理時間Pを遅延時間dよりも重視する必要が生じている場合には、内部処理時間Pに基づき、データの並べ替えが行われる。   Thereafter, as described above, when it is necessary to place importance on the internal processing time P rather than the delay time d in order to determine the order of data, the data is rearranged based on the internal processing time P. Is called.

また、本実施の形態の通信端末100における各種処理を行う手段および方法は、専用のハードウェア回路、またはプログラムされたコンピュータのいずれによっても実現することが可能である。上記プログラムは、たとえばフレキシブルディスクやCD−ROMなどのコンピュータ読み取り可能な記録媒体によって提供されてもよいし、インターネット等のネットワークを介してオンラインで提供されてもよい。この場合、コンピュータ読み取り可能な記録媒体に記録されたプログラムは、通常、ハードディスク等の記憶部に伝送されて記憶される。また、上記プログラムは、単独のアプリケーションソフトとして提供されてもよいし、装置の一機能としてその装置のソフトウェアに組み込まれてもよい。   The means and method for performing various processes in the communication terminal 100 of the present embodiment can be realized by either a dedicated hardware circuit or a programmed computer. The program may be provided by a computer-readable recording medium such as a flexible disk or a CD-ROM, or may be provided online via a network such as the Internet. In this case, the program recorded on the computer-readable recording medium is normally transmitted to and stored in a storage unit such as a hard disk. The program may be provided as a single application software, or may be incorporated into the software of the device as one function of the device.

1,2 通信システム
100 通信端末
110 制御部
120 記憶部
130 入力部
140 出力部
150 通信制御部
160 計時部
200,201,202,203,
204,205,206 タイムサーバ
300 ネットワーク
400 原子時計(PPS)
401 GPS
402 テレホンJJY
500 応答要求パケット送信部
510 応答パケット受信部
520 遅延時間計算部
530 内部処理時間計算部
540 応答パケットデータ格納部
550 サーバ選択部
1, 2 Communication system
100 communication terminal
110 Control unit
120 storage unit
130 Input section
140 Output unit
150 Communication control unit
160 timers 200, 201, 202, 203,
204, 205, 206 Time server
300 network
400 Atomic clock (PPS)
401 GPS
402 Telephone JJY
500 Response request packet transmitter
510 Response packet receiver
520 Delay time calculator
530 Internal processing time calculator
540 Response packet data storage
550 server selector

Claims (9)

複数のサーバが接続されたネットワークに対して、応答要求パケットを送信する応答要求パケット送信部と、
前記応答要求パケットを受信した前記サーバから、前記ネットワークを通じて、応答パケットを受信する応答パケット受信部と、
前記応答パケット受信部が前記応答パケットを受信するたびに、該応答パケットから取得されるデータを格納する応答パケットデータ格納部と、
前記応答パケットデータ格納部が格納したデータを用いて、前記複数のサーバの中から、時刻情報の取得先となる候補を選択するサーバ選択部と、を有し、
前記応答パケットから取得されるデータとして、前記サーバの時刻合わせの参照元を示す参照元識別子があり、
前記サーバ選択部は、前記参照元識別子に基づき、前記時刻情報の取得先となる候補を選択することを特徴とする通信端末。
A response request packet transmitter for transmitting a response request packet to a network to which a plurality of servers are connected;
A response packet receiving unit that receives a response packet from the server that has received the response request packet through the network;
A response packet data storage unit that stores data acquired from the response packet each time the response packet reception unit receives the response packet;
Using the data stored in the response packet data storage unit, a server selection unit that selects a candidate to obtain time information from the plurality of servers, and
As the data acquired from the response packet, there is a reference source identifier indicating a reference source of time adjustment of the server,
The communication terminal characterized in that the server selection unit selects a candidate from which the time information is acquired based on the reference source identifier.
前記応答要求パケット送信部は、ブロードキャスト送信で、前記ネットワークに対して前記応答要求パケットを送信することを特徴とする請求項1に記載の通信端末。   The communication terminal according to claim 1, wherein the response request packet transmission unit transmits the response request packet to the network by broadcast transmission. 前記サーバ選択部は、前記参照元識別子に基づき、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする請求項1又は2に記載の通信端末。   3. The communication terminal according to claim 1, wherein the server selection unit sets priorities of candidates from which the time information is acquired based on the reference source identifier. 前記応答パケットから取得されるデータとして、前記サーバが時刻同期を行っているか否かを示す同期識別子があり、
前記サーバ選択部は、前記参照元識別子に基づき、前記時刻合わせの参照元が異なるサーバの優先順位を設定し、前記同期識別子に基づき、前記時刻合わせの参照元が同一であるサーバの優先順位を設定することを特徴とする請求項3に記載の通信端末。
As the data acquired from the response packet, there is a synchronization identifier indicating whether or not the server is performing time synchronization,
The server selection unit sets priority of servers having different reference sources for time adjustment based on the reference source identifier, and sets priority of servers having the same reference source for time adjustment based on the synchronization identifier. The communication terminal according to claim 3, wherein the communication terminal is set.
前記複数のサーバは、下層のサーバが上層のサーバを参照して時刻合わせを行うように、前記ネットワーク上で階層化され、
前記応答パケットから取得されるデータとして、前記サーバが位置する階層を示す階層値があり、
前記サーバ選択部は、前記階層値に基づき、前記時刻情報の取得先として前記上層のサーバが前記下層のサーバよりも優先して選択されるように、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする請求項1乃至4のいずれか1項に記載の通信端末。
The plurality of servers are hierarchized on the network such that a lower layer server refers to an upper layer server for time adjustment,
As data acquired from the response packet, there is a layer value indicating a layer where the server is located,
The server selection unit, based on the hierarchy value, prioritizes candidates as the time information acquisition destination so that the upper layer server is selected as a time information acquisition destination in preference to the lower layer server. The communication terminal according to any one of claims 1 to 4, wherein a rank is set.
前記応答要求パケット送信部が前記応答要求パケットを送信してから、前記応答パケット受信部が前記応答パケットを受信するまでに要する時間と、前記サーバが前記応答要求パケットを受信してから前記応答パケットを送信するまでに要する時間との差分を示す遅延時間を算出する遅延時間算出部をさらに有し、
前記サーバ選択部は、前記時刻情報の取得先として前記遅延時間が短いサーバが優先して選択されるように、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする請求項1乃至5のいずれか1項に記載の通信端末。
The time required for the response packet receiving unit to receive the response packet after the response request packet transmitting unit transmits the response request packet, and the response packet after the server receives the response request packet A delay time calculating unit that calculates a delay time indicating a difference from the time required to transmit
The server selection unit sets priorities of candidates as acquisition destinations of the time information so that a server with a short delay time is preferentially selected as an acquisition destination of the time information. Item 6. The communication terminal according to any one of Items 1 to 5.
前記サーバが、前記応答要求パケットを受信してから、前記応答パケットを送信するまでに要する内部処理時間を算出する内部処理時間算出部をさらに有し、
前記サーバ選択部は、前記時刻情報の取得先として前記内部処理時間が短いサーバが優先して選択されるように、前記時刻情報の取得先となる候補の優先順位を設定することを特徴とする請求項1乃至6のいずれか1項に記載の通信端末。
The server further includes an internal processing time calculation unit that calculates an internal processing time required from when the response request packet is received until the response packet is transmitted,
The server selection unit sets priorities of candidates for obtaining the time information so that the server with a short internal processing time is preferentially selected as the time information obtaining destination. The communication terminal according to any one of claims 1 to 6.
複数のサーバが接続されたネットワークに対して、応答要求パケットを送信する応答要求パケット送信ステップと、
前記応答要求パケットを受信した前記サーバから、前記ネットワークを通じて、応答パケットを受信する応答パケット受信ステップと、
前記応答パケット受信ステップで前記応答パケットが受信されるたびに、該応答パケットから取得されるデータを格納する応答パケットデータ格納ステップと、
前記応答パケットデータ格納ステップで格納されたデータを用いて、前記複数のサーバの中から、時刻情報の取得先となる候補を選択するサーバ選択ステップと、を有し、
前記応答パケットから取得されるデータとして、前記サーバの時刻合わせの参照元を示す参照元識別子があり、
前記サーバ選択ステップでは、前記参照元識別子に基づき、前記時刻情報の取得先となる候補を選択することを特徴とする通信端末の制御方法。
A response request packet transmission step of transmitting a response request packet to a network to which a plurality of servers are connected;
A response packet receiving step of receiving a response packet from the server that has received the response request packet through the network;
A response packet data storage step for storing data obtained from the response packet each time the response packet is received in the response packet reception step;
Using the data stored in the response packet data storage step, a server selection step of selecting a candidate to obtain time information from the plurality of servers, and
As the data acquired from the response packet, there is a reference source identifier indicating a reference source of time adjustment of the server,
In the server selection step, a candidate for obtaining the time information is selected based on the reference source identifier.
コンピュータを、
複数のサーバが接続されたネットワークに対して、応答要求パケットを送信する応答要求パケット送信手段、
前記応答要求パケットを受信した前記サーバから、前記ネットワークを通じて、応答パケットを受信する応答パケット受信手段、
前記応答パケット受信手段が前記応答パケットを受信するたびに、該応答パケットから取得されるデータを格納する応答パケットデータ格納手段、
前記応答パケットデータ格納手段が格納したデータを用いて、前記複数のサーバの中から、時刻情報の取得先となる候補を選択するサーバ選択手段として機能させ、
前記応答パケットから取得されるデータとして、前記サーバの時刻合わせの参照元を示す参照元識別子があり、
前記サーバ選択手段は、前記参照元識別子に基づき、前記時刻情報の取得先となる候補を選択することを特徴とするプログラム。
Computer
Response request packet transmitting means for transmitting a response request packet to a network to which a plurality of servers are connected;
Response packet receiving means for receiving a response packet from the server that has received the response request packet through the network;
Response packet data storage means for storing data acquired from the response packet each time the response packet receiving means receives the response packet;
Using the data stored in the response packet data storage means, function as server selection means for selecting a candidate to obtain time information from the plurality of servers,
As the data acquired from the response packet, there is a reference source identifier indicating a reference source of time adjustment of the server,
The server selecting means selects a candidate from which the time information is acquired based on the reference source identifier.
JP2010261795A 2010-11-24 2010-11-24 Communication terminal, control method and program thereof Pending JP2012113504A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010261795A JP2012113504A (en) 2010-11-24 2010-11-24 Communication terminal, control method and program thereof
PCT/JP2011/074068 WO2012070341A1 (en) 2010-11-24 2011-10-19 Communication terminal, method for controlling communication terminal, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010261795A JP2012113504A (en) 2010-11-24 2010-11-24 Communication terminal, control method and program thereof

Publications (1)

Publication Number Publication Date
JP2012113504A true JP2012113504A (en) 2012-06-14

Family

ID=46145698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010261795A Pending JP2012113504A (en) 2010-11-24 2010-11-24 Communication terminal, control method and program thereof

Country Status (2)

Country Link
JP (1) JP2012113504A (en)
WO (1) WO2012070341A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014235013A (en) * 2013-05-31 2014-12-15 三菱電機株式会社 Time synchronization device, system, and method
JP2020126317A (en) * 2019-02-01 2020-08-20 株式会社デンソー Device for vehicle and time synchronization method of device for vehicle

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10177979B2 (en) 2015-10-23 2019-01-08 International Business Machines Corporation Non-disruptively splitting a coordinated timing network
US10447532B2 (en) 2015-10-23 2019-10-15 International Business Machines Corporation Non-disruptively merging coordinated timing networks

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007101183A (en) * 2005-09-30 2007-04-19 Seiko Epson Corp Communication system and time synchronization method
JP2008079008A (en) * 2006-09-21 2008-04-03 Murata Mach Ltd Network terminal
JP2008080653A (en) * 2006-09-27 2008-04-10 Oki Data Corp Image processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007101183A (en) * 2005-09-30 2007-04-19 Seiko Epson Corp Communication system and time synchronization method
JP2008079008A (en) * 2006-09-21 2008-04-03 Murata Mach Ltd Network terminal
JP2008080653A (en) * 2006-09-27 2008-04-10 Oki Data Corp Image processor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSND200600515013; ASH Multimedia Lab.: 'システムダウン! そのときあなたは?' SoftwareDesign No.180 , (株)技術評論社 *
JPN6013035849; ASH Multimedia Lab.: 'システムダウン! そのときあなたは?' SoftwareDesign No.180 , (株)技術評論社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014235013A (en) * 2013-05-31 2014-12-15 三菱電機株式会社 Time synchronization device, system, and method
JP2020126317A (en) * 2019-02-01 2020-08-20 株式会社デンソー Device for vehicle and time synchronization method of device for vehicle
JP7135903B2 (en) 2019-02-01 2022-09-13 株式会社デンソー Vehicle device, time synchronization method for vehicle device

Also Published As

Publication number Publication date
WO2012070341A1 (en) 2012-05-31

Similar Documents

Publication Publication Date Title
US9671761B2 (en) Method, time consumer system, and computer program product for maintaining accurate time on an ideal clock
EP2169857B1 (en) Terminal device, time adjusting method of terminal device and communication system
JP3993508B2 (en) Wireless access network system, wireless communication method, synchronization server, and node device
US9756153B2 (en) Method for improving accuracy in computation of one-way transfer time for network time synchronization
JP6192995B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP2007078688A (en) System and method for calibrating tod clock
JP6343395B2 (en) Distribution of dynamic accuracy information in IEEE 1588 clock network
US20150207877A1 (en) Time synchronization client, a system and a non-transitory computer readable medium
US10901372B2 (en) Time synchronization device, time synchronization system, and time synchronization method
JP4472994B2 (en) Method for time synchronization of at least two measuring computers cooperating via a communication network such as the Internet, an intranet or the like
JP2012113504A (en) Communication terminal, control method and program thereof
JP6605863B2 (en) Electronic device, method, program, and protection system
JP2012530411A5 (en)
WO2019003320A1 (en) Communication system, master device and slave device
CN115765909A (en) Clock synchronization method, device and storage medium
US11336510B2 (en) Information processing system, information processing method, and non-transitory recording medium
JP2014165582A (en) Time synchronization system, time synchronization method, slave node and computer program
JP4734115B2 (en) Timekeeping system, time service providing apparatus, and time service providing system
WO2013082812A1 (en) Method and device for determining master clock device, and other method, device, and system
JP2010078506A (en) Apparatus and program for communication
JP2008079008A (en) Network terminal
JP2013074338A (en) Time server, terminal, time synchronization system, time synchronization method, and program
CN113259039A (en) Time synchronization method and device, computer equipment and storage medium
JP6085864B2 (en) Time synchronization system, time synchronization method, slave node, and computer program
JP5174778B2 (en) Wireless base station equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130723

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130920

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131112