JP2013074338A - Time server, terminal, time synchronization system, time synchronization method, and program - Google Patents
Time server, terminal, time synchronization system, time synchronization method, and program Download PDFInfo
- Publication number
- JP2013074338A JP2013074338A JP2011209910A JP2011209910A JP2013074338A JP 2013074338 A JP2013074338 A JP 2013074338A JP 2011209910 A JP2011209910 A JP 2011209910A JP 2011209910 A JP2011209910 A JP 2011209910A JP 2013074338 A JP2013074338 A JP 2013074338A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- time
- response
- unit
- transmission
- 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
Links
- 238000000034 method Methods 0.000 title claims description 104
- 230000004044 response Effects 0.000 claims abstract description 272
- 230000005540 biological transmission Effects 0.000 claims abstract description 255
- 238000005259 measurement Methods 0.000 claims description 60
- 230000008569 process Effects 0.000 claims description 57
- 238000012546 transfer Methods 0.000 claims description 22
- 230000001360 synchronised effect Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 description 20
- 238000004891 communication Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 12
- 238000012937 correction Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000000737 periodic effect Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Electric Clocks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
本発明は、タイムサーバ、端末、時刻同期システム、時刻同期方法、及びプログラムに関する。 The present invention relates to a time server, a terminal, a time synchronization system, a time synchronization method, and a program.
NTP(Network Time Protocol)では、ネットワークを介してタイムサーバに接続する端末は、タイムサーバから取得した基準時刻と、タイムサーバと端末との間において通信パケットが伝送されるのに要する時間とに基づいて、自装置に組み込まれたRTC(Real Time Clock)の日時を基準時刻に同期する。しかし、通信ネットワークのトラフィック混雑度(以下、混雑度と呼ぶ)が増大すると、タイムサーバと端末との間で通信パケットを中継する中継装置において情報転送時の伝送遅延が生じ、端末に組み込まれたRTCの日時をタイムサーバから取得した基準時刻に高精度で同期することが困難となる。 In NTP (Network Time Protocol), a terminal connected to a time server via a network is based on a reference time acquired from the time server and a time required for transmission of a communication packet between the time server and the terminal. Thus, the RTC (Real Time Clock) date and time incorporated in the device is synchronized with the reference time. However, when the traffic congestion degree of the communication network (hereinafter referred to as the congestion degree) increases, a transmission delay occurs at the time of information transfer in the relay device that relays communication packets between the time server and the terminal, and is incorporated in the terminal It becomes difficult to synchronize the RTC date and time with the reference time acquired from the time server with high accuracy.
このような不都合を解消するため、中継装置から取得した通信ネットワークの混雑度が所定の閾値以上の場合、基準時刻に同期する処理をやりなおす技術が提案されている(例えば、特許文献1を参照)。 In order to eliminate such inconvenience, a technique has been proposed in which the process of synchronizing with the reference time is performed again when the congestion degree of the communication network acquired from the relay device is equal to or greater than a predetermined threshold (see, for example, Patent Document 1). .
特許文献1で開示された技術では、中継装置への問い合わせが集中したときに、中継装置における伝送遅延が更に大きくなる。このため、中継装置に問い合わせずに通信ネットワークの混雑度を判別したいという要請があった。 With the technique disclosed in Patent Document 1, when inquiries to the relay device are concentrated, the transmission delay in the relay device is further increased. For this reason, there has been a request to determine the degree of congestion of the communication network without making an inquiry to the relay device.
本発明は、上記実情に鑑みてなされたものであり、中継装置に問い合わせずに通信ネットワークの混雑度を判別し、端末の時刻を基準時刻に高精度で同期させるためのタイムサーバ、端末、時刻同期システム、時刻同期方法、及びプログラムを提供することを目的とする。 The present invention has been made in view of the above circumstances, and it is possible to determine a congestion degree of a communication network without inquiring a relay device, and to synchronize the time of the terminal with a reference time with high accuracy, a time server, a terminal, and a time It is an object to provide a synchronization system, a time synchronization method, and a program.
上記目的を達成するため、本発明の第1の観点に係るタイムサーバは、
基準時刻を計時する計時部と、
前記計時部から基準時刻を取得する基準時刻取得部と、
中継装置を介して端末から送信された各種パケットを受信する受信部と、
他の各種パケットを、前記中継装置を介して前記端末に送信する送信部と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む前記受信部により受信された第1パケット及び第2パケットを識別するパケット識別部と、
受信した前記第1パケット及び前記第2パケットに含まれる情報を取得するパケット情報取得部と、
前記パケット識別部で識別された前記第1パケット及び前記第2パケットの受信タイミングに基づき、前記第2パケットの受信時刻である第2パケット受信時刻を取得するとともに、前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を取得する受信時間情報取得部と、
前記パケット情報取得部で取得された前記パケット送信間隔と前記受信時間情報取得部で取得された前記受信間隔との差が、所定の範囲内にあるかどうかを判定する判定部と、
前記基準時刻取得部で取得された前記基準時刻を含む基準時刻パケットを生成し、前記送信部に送信の指示を出し、前記判定部で前記差が前記所定の範囲内にあるとの判定がなされたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信時刻から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成し、前記送信部に送信の指示を出すパケット生成部と、を備える、
ことを特徴とする。
In order to achieve the above object, a time server according to the first aspect of the present invention provides:
A timekeeping section for measuring the reference time;
A reference time acquisition unit for acquiring a reference time from the time measuring unit;
A receiving unit for receiving various packets transmitted from the terminal via the relay device;
A transmission unit that transmits other various packets to the terminal via the relay device;
Packets transmitted from the terminal at a predetermined transmission interval, received by the receiving unit that is set to have different transfer priorities in the relay device and includes the transmission interval as a packet transmission interval. A packet identification unit for identifying the first packet and the second packet,
A packet information acquisition unit for acquiring information included in the received first packet and the second packet;
Based on the reception timing of the first packet and the second packet identified by the packet identification unit, the second packet reception time that is the reception time of the second packet is acquired, and the first packet is received. A reception time information acquisition unit for acquiring a reception interval indicating an interval from when the second packet is received;
A determination unit that determines whether a difference between the packet transmission interval acquired by the packet information acquisition unit and the reception interval acquired by the reception time information acquisition unit is within a predetermined range;
A reference time packet including the reference time acquired by the reference time acquisition unit is generated, a transmission instruction is issued to the transmission unit, and the determination unit determines that the difference is within the predetermined range. A response packet that is a response packet to the second packet, and includes a response period that is a period from the second packet reception time to the transmission of the response packet, and sends a transmission instruction to the transmission unit. A packet generation unit for outputting,
It is characterized by that.
上記目的を達成するため、本発明の第2の観点に係る端末は、
時刻を計時する計時部と、
中継装置を介してタイムサーバに各種パケットを送信する送信部と、
前記中継装置を介して前記タイムサーバから他の各種パケットを受信する受信部と、
前記タイムサーバを送信先とするパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成し、前記送信部に、前記第1及び前記第2パケットを、その番号順に、前記送信間隔で送信する指示を出すパケット生成部と、
前記受信部で受信したパケットから、パケットの種類を識別し、基準時刻の情報を含む基準時刻パケットである場合、該基準時刻パケットに含まれる前記基準時刻の情報を取得し、前記第2パケットに対する応答のパケットである応答パケットである場合、該応答パケットに含まれる、前記タイムサーバでの前記第2パケット受信から前記応答パケット送信までの期間である応答期間の情報を取得するパケット情報取得部と、
前記パケット生成部で前記第2パケットを送信する指示を出したときから前記パケット情報取得部で識別された前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定部と、
前記パケット情報取得部が取得した前記基準時刻、前記応答期間、及び前記応答待ち期間測定部が測定した前記応答待ち期間に基づいて前記計時部の時刻を設定する時刻設定部と、を備える、
ことを特徴とする。
In order to achieve the above object, a terminal according to the second aspect of the present invention provides:
A timekeeping section that keeps time,
A transmission unit that transmits various packets to the time server via the relay device;
A receiving unit for receiving various other packets from the time server via the relay device;
A packet having the time server as a transmission destination, a first packet including a packet transmission interval indicating a mutual transmission interval in either one of the packets, wherein the transfer priority in the relay device is set to a different priority. A packet generation unit that generates two packets and issues an instruction to the transmission unit to transmit the first and second packets in the order of their numbers;
From the packet received by the receiving unit, if the packet is a reference time packet that includes the reference time information, the type of the packet is identified, the reference time information included in the reference time packet is acquired, and the second packet A packet information acquisition unit that acquires information on a response period that is a period from reception of the second packet at the time server to transmission of the response packet included in the response packet when the response packet is a response packet; ,
A response waiting period measurement unit that measures a response waiting period that indicates a period from when the packet generation unit issues an instruction to transmit the second packet to when the packet information acquisition unit identifies the response packet; ,
A time setting unit that sets the time of the time measuring unit based on the reference time acquired by the packet information acquisition unit, the response period, and the response waiting period measured by the response waiting period measurement unit,
It is characterized by that.
上記目的を達成するため、本発明の第3の観点に係る時刻同期システムは、
上記第1の観点に係るタイムサーバと上記第2の観点に係る端末とで構成されることを特徴とする。
In order to achieve the above object, a time synchronization system according to the third aspect of the present invention provides:
It is comprised by the time server which concerns on the said 1st viewpoint, and the terminal which concerns on the said 2nd viewpoint.
上記目的を達成するため、本発明の第4の観点に係る時刻同期方法は、
タイムサーバで基準時刻を計時する計時部から基準時刻を取得し、取得した基準時刻を、中継装置を介して端末に送信し、該端末で受信する基準時刻送受信工程と、
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成する、前記端末におけるパケット生成工程と、
前記第1パケット及び前記第2パケットを前記端末から送信し、前記タイムサーバで受信するパケット送受信工程と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する、前記タイムサーバにおける受信間隔測定工程と、
受信された前記第1パケット又は前記第2パケットのいずれかに含まれる前記パケット送信間隔と測定された前記受信間隔との差が所定の範囲内にあるかどうかを判定する、前記タイムサーバにおける判定工程と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信の準備が完了するまでの期間である応答期間を含む応答パケットを生成し、前記中継装置を介して前記端末に送信する指示をする、前記タイムサーバにおける応答パケット生成工程と、
前記応答パケット生成工程での指示に従って、生成された前記応答パケットを前記タイムサーバから送信し、前記端末で受信する応答パケット送受信工程と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する、前記端末における応答待ち期間測定工程と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、端末側で時刻を計時する計時部の時刻を前記タイムサーバが計時する前記基準時刻に同期するように設定する、前記端末における時刻設定工程と、を備える、
ことを特徴とする。
In order to achieve the above object, a time synchronization method according to a fourth aspect of the present invention includes:
A reference time is acquired from a timekeeping unit that measures a reference time with a time server, and the acquired reference time is transmitted to the terminal via the relay device, and received at the terminal,
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval Generating a packet in the terminal, and
A packet transmitting / receiving step of transmitting the first packet and the second packet from the terminal and receiving the packet by the time server;
A reception interval measurement step in the time server for measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination in the time server that determines whether a difference between the packet transmission interval included in either the received first packet or the second packet and the measured reception interval is within a predetermined range Process,
A response period that is a response packet to the second packet when the difference is determined to be within a predetermined range, and is a period from when the second packet is received until preparation for transmission of the response packet is completed Generating a response packet, and instructing to transmit to the terminal via the relay device, a response packet generating step in the time server,
In response to the instruction in the response packet generating step, the generated response packet is transmitted from the time server, and the response packet is transmitted and received at the terminal.
A response waiting period measuring step in the terminal for measuring a response waiting period indicating a period from when the second packet is transmitted until the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time server measures the time of the time measuring unit that measures time on the terminal side A time setting step in the terminal that is set to synchronize with a reference time,
It is characterized by that.
上記目的を達成するため、本発明の第5の観点に係るプログラムは、
コンピュータに、
基準時刻を計時する計時部から基準時刻を取得し、取得した基準時刻を、中継装置を介して端末に送信する基準時刻送信手順と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む第1パケット及び第2パケットを、前記中継装置を介して受信するパケット受信手順と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する受信間隔測定手順と、
前記パケット送信間隔と前記受信間隔との差が所定の範囲内にあるかどうかを判定する判定手順と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成する応答パケット生成手順と、
生成した前記応答パケットを、前記中継装置を介して前記端末に送信する応答パケット送信手順と、を実行させる、
ことを特徴とする。
In order to achieve the above object, a program according to the fifth aspect of the present invention provides:
On the computer,
A reference time transmission procedure for acquiring a reference time from a timer unit that measures the reference time, and transmitting the acquired reference time to the terminal via the relay device;
A packet transmitted from the terminal at a predetermined transmission interval, and a first packet including a first packet including the transmission interval as a packet transmission interval, the transfer priority of the relay device being set to different priorities A packet receiving procedure for receiving two packets via the relay device;
A reception interval measurement procedure for measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination procedure for determining whether a difference between the packet transmission interval and the reception interval is within a predetermined range;
When it is determined that the difference is within a predetermined range, a response packet that is a response packet to the second packet and includes a response period that is a period from reception of the second packet to transmission of the response packet. A response packet generation procedure to be generated;
A response packet transmission procedure for transmitting the generated response packet to the terminal via the relay device;
It is characterized by that.
上記目的を達成するため、本発明の第6の観点に係るプログラムは、
コンピュータに、
基準時刻を送信するタイムサーバから、中継装置を介して前記基準時刻を受信する基準時刻受信手順と、
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成するパケット生成手順と、
前記第1パケット及び前記第2パケットを前記送信間隔で、その番号順に、前記中継装置を介して前記タイムサーバに送信する送信手順と、
前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットを送信するまでの期間である応答期間を含む応答パケットを前記タイムサーバから前記中継装置を介して受信する応答パケット受信手順と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定手順と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、時刻を計時する計時部の時刻を前記タイムサーバが計時する基準時刻に同期するように設定する時刻設定手順と、を実行させる、
ことを特徴とする。
In order to achieve the above object, a program according to the sixth aspect of the present invention provides:
On the computer,
A reference time receiving procedure for receiving the reference time via a relay device from a time server that transmits the reference time;
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval A packet generation procedure for generating
A transmission procedure for transmitting the first packet and the second packet to the time server via the relay device in the transmission interval in the order of the numbers;
A response packet that is a response packet to the second packet and that receives a response packet including a response period that is a period from when the second packet is received until the response packet is transmitted from the time server via the relay device Receiving procedure,
A response waiting period measurement procedure for measuring a response waiting period indicating a period from when the second packet is transmitted to when the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time of the time measuring unit that measures time is synchronized with the reference time measured by the time server. And a time setting procedure for setting to
It is characterized by that.
本発明によれば、中継装置に問い合わせずに通信ネットワークの混雑度を判別し、端末の時刻を基準時刻に高精度で同期させることができる。 ADVANTAGE OF THE INVENTION According to this invention, the congestion degree of a communication network can be discriminate | determined without inquiring a relay apparatus, and the time of a terminal can be synchronized with reference | standard time with high precision.
(実施形態)
以下、本発明の実施形態に係る時刻同期システム100を、図面を参照して説明する。
(Embodiment)
Hereinafter, a time synchronization system 100 according to an embodiment of the present invention will be described with reference to the drawings.
本実施形態に係る時刻同期システム100は、図1に示すように、タイムサーバ10と、複数の端末20(201、202、・・・、20n)とで構成される。タイムサーバ10は端末20に対して基準時刻を送信し、端末20はこの基準時刻に同期するように端末20が備えるタイマである計時部(具体的にはRTC)の時刻設定を行う。タイムサーバ10と端末20とは中継装置30を介して情報の送受信を行っている。
As shown in FIG. 1, the time synchronization system 100 according to the present embodiment includes a
具体的には、タイムサーバ10は、図2に示すように、基準時刻を含む基準時刻パケットを端末20に送信した後、中継装置30の混雑度を判別するためするために用いられる、互いに異なる送信優先度で端末20から送信された第1パケット及び第2パケットを受信し、受信した第1パケット及び第2パケットに基づいて中継装置30の混雑度が小さいと判別したときに、第2パケットに対する応答として、基準時刻を補正するために必要な情報を含む応答パケットを端末20に送信する。
Specifically, as shown in FIG. 2, the
一方、端末20は、図2に示すように、タイムサーバ10から基準時刻パケットを受信した後、前述した第1パケット及び第2パケットを所定のパケット送信間隔でタイムサーバ10に送信し、タイムサーバ10から応答パケットを受信するとともに、受信した基準時刻パケット及び応答パケットに基づいて、端末20の時刻を基準時刻に同期する。基準時刻パケット、第1パケット、第2パケット及び応答パケットの詳細については後述する。図2において、T0〜T6は各パケットの送信又は受信の時刻を示す。なお、かっこを付した時刻については、必ずしも取得対象とはしていない。
On the other hand, as shown in FIG. 2, after receiving the reference time packet from the
以下、タイムサーバ10と端末20の構成を説明するとともに、中継装置30についても説明する。
Hereinafter, the configuration of the
タイムサーバ10は、基準時刻を送信する装置であって、図3に示すように、受信部101と、パケット識別部102と、パケットバッファ103と、第2パケットバッファ104と、受信時刻取得部105と、受信間隔測定部106と、計時部107と、制御部108と、送信部109と、を備えている。
The
受信部101は、通信装置の一部で、通信インタフェース等から構成され、端末20等から送信されてきたパケットを含む各種情報信号を受信する。
The receiving
パケット識別部102は、プロセッサ、メモリ、通信インタフェース等から構成され、メモリに記憶された所定のプログラムを実行することにより、受信したパケットの種類に応じた処理を行う。
The
具体的には、パケット識別部102は、受信したパケットの種類を識別する。パケット識別部102は、受信したパケットが第1パケットであると識別した場合、受信間隔測定部106に時間測定の開始を指示する測定開始信号を出力するとともに、受信したパケットをパケットバッファ103に記憶する。
Specifically, the
また、パケット識別部102は、受信したパケットが第2パケットであると判別した場合、受信間隔測定部106に対しては時間測定の終了を指示する測定終了信号を出力し、受信時刻取得部105に対しては受信時刻取得のタイミングを示すタイミング信号を出力するとともに、受信した第2パケットを第2パケットバッファ104に記憶する。なお、パケット識別部102は、受信したパケットが第1パケット又は第2パケットのいずれでもないと判別した場合も、受信したパケットをパケットバッファ103に記憶させる。
When the
パケットバッファ103は、メモリ等から構成され、第2パケット以外のパケットを記憶する。
The
第2パケットバッファ104は、メモリ等から構成され、パケット識別部102で識別された第2パケットを記憶する。
The
受信時刻取得部105は、例えばラッチメモリで構成され、パケット識別部102のタイミング信号を受けて、計時部107から、タイミング信号受信時の現在時刻、すなわち第2パケットを受信した時刻を示す第2パケット受信時刻を読み出して取得し、これを記憶する。
The reception
受信間隔測定部106は、タイマで構成され、パケット識別部102から供給された測定開始信号に応答して、タイマに残っているこれまでの測定結果を0クリアしたのち時間測定を開始し、パケット識別部102から供給された測定終了信号に応答して時間測定を終了する。タイマは、例えばカウンタで構成され、計時部107のクロック信号発生器から出力されるクロック信号をカウンタに入力し、測定開始信号でクロック信号の計数を開始し、測定終了信号で計数を停止することによりその間の経過時間を測定する。測定結果は第1パケット受信から第2パケット受信までの時間間隔を示すパケット受信間隔(RI)となる。このとき、受信間隔測定部106は、パケット受信間隔(RI)の測定を終了した旨を判定部1084に通知する。なお、パケット識別部102が2パケットを第1パケットより先に受信した場合には、パケット識別部102は測定開始指示信号をパケット受信間隔カウンタに供給しない。
The reception
計時部107は、時計である。計時部107は、クロック信号発生器を内蔵し、そこから供給されたクロック信号に基づいて、現在日時(基準時刻)を計時する。
The
制御部108は、CPU(Central Processing Unit)、メモリ等から構成され、メモリに記憶された所定のプログラムをCPUが実行することにより、タイムサーバ10の全体の動作を制御する。制御部108は、機能構成要素として、パケット情報取得部1081と、基準時取得部1082と、パケット生成部1083と、判定部1084とを備えている。これらの機能も、メモリに記憶された所定のプログラムをCPUが実行することにより実現される。
The
パケット情報取得部1081は、パケットバッファ103に記憶されている第1パケット、及び第2パケットバッファ104に記憶されている第2パケットのそれぞれに含まれる情報を取得する。この情報は、後述するように、第1パケット、第2パケットの送信元である端末のアドレス、連番、及び第1パケットに含まれるパケット送信間隔(TI)である。
The packet
基準時取得部1082は、所定のタイミング(例えば、定期的、周期的な日時)になったときに、計時部107から現在時刻を基準時刻として取得する。
The reference
パケット生成部1083は、取得された基準時刻から基準時刻パケットを生成し、生成した基準時刻パケットを送信部109に供給し送信を指示する。基準時刻パケットは、各種パケットの構成を示す図4の(a)に示すように、宛先のアドレスを示す宛先情報を格納する宛先フィールドと、送信元のアドレスを示す送信元情報を格納する送信元フィールドと、パケットの種類を示すパケット種別情報を格納するパケット種別フィールドと、基準時刻を格納する基準時刻フィールドと、を備えている。
The
また、パケット生成部1083は、後述する判定部1084から中継装置30の混雑度が小さい旨の通知を受けたときに、第1及び第2パケットの送信元である端末20に第2パケットに対する応答である応答パケットを生成し、生成した応答パケットを送信部109に供給し送信を指示する。応答パケットは、図4(b)に示すように、宛先フィールドと、送信元フィールドと、パケットの種類を示す情報を格納するパケット種別フィールドと、第1パケット、第2パケット及び応答パケットが一連のパケットであることを示す連番情報を格納する連番フィールドと、第2パケットを受信してから応答パケットを送信するまでの期間を示す応答期間(RT)を格納する応答期間フィールドと、を備えている。
When the
判定部1084は、受信間隔測定部106からパケット受信間隔(RI)の測定を終了した旨の通知を受けたときに、パケット情報取得部1081で取得した第1パケットに含まれるパケット送信間隔(TI)と受信間隔測定部106で測定されたパケット受信間隔(RI)とに基づいて、中継装置30の混雑度を判別する。
When the
具体的には、判定部1084は、図5に示すように、受信間隔測定部106で測定されたパケット受信間隔(RI)とパケットバッファ103に記憶された第1パケットに含まれるパケット送信間隔(TI)との差分(D)の絶対値が、制御部108のメモリに記憶された所定の閾値δ(>0)以下であるとき、中継装置30の混雑度が小さいと判別し、差分Dの絶対値が閾値δを超えるときに、中継装置30の混雑度が大きいと判別する。
Specifically, as illustrated in FIG. 5, the
すなわち、判定部1084は、パケット送信間隔(TI)−δ≦パケット受信間隔(RI)≦パケット送信間隔(TI)+δを満たすときに、中継装置30の混雑度が小さいと判別し、パケット受信間隔(RI)<パケット送信間隔(TI)−δ又はパケット受信間隔(RI)>パケット送信間隔(TI)+δを満たすときに、中継装置30の混雑度が大きいと判別する。
That is, the
混雑度の判定についてもう少し詳しく説明する。図6にパケット送信間隔(TI)と、中継装置30の混雑度に応じてパケット受信間隔(RI)がどの様に変化するかの例を示す。図6(a)は、横軸を時間軸として、第1パケットと第2パケットをパケット送信間隔(TI)で端末20からタイムサーバ10に送信した場合を示す。図6(b)〜(e)は、横軸を時間軸として、タイムサーバで第1パケットと第2パケットを受信するタイミングとそのときのパケット受信間隔(RI)を、時間軸の原点を図6(a)の時間軸の原点に合わせて示す。この例では第2パケットの優先度を第1パケットの優先度をよりも高く設定している。例えば第1パケットの優先度を通常の優先度、第2パケットの優先度を最も高い優先度に設定する。図6(b)は中継装置30の混雑度が小さく、このときの第1パケットの伝送遅延期間をα1、第2パケットの伝送遅延期間をβ1としたときα1とβ1とはほぼ同じであることを示す。このときのパケット受信間隔(RI)はパケット送信間隔(TI)に等しくなる。従って両者の差分Dはほぼ0となり、その絶対値は所定の閾値δ以下となる。すなわち、図6(b)は、差分Dの絶対値が閾値δ以下なので混雑度は小さいと判定されるケースである。
The determination of the degree of congestion will be described in a little more detail. FIG. 6 shows an example of how the packet reception interval (RI) changes according to the packet transmission interval (TI) and the congestion degree of the
図6(c)は中継装置30の混雑度が図6(b)の場合に比べて大きくなった場合を示す。そのときの第1パケットの伝送遅延期間をα2としたとき、α2は混雑度の増大によりα1よりも大きくなる。一方、第2パケットの伝送遅延期間は、優先度を高く設定しているためβ1のままである。従って、パケット受信間隔(RI)はパケット送信間隔(TI)よりも小さな値となり、差分Dの絶対値は、混雑度が小さい図6(b)の場合に比べて増加する。混雑度が大きくなるほど、第1パケットの伝送遅延期間は、第2パケットの伝送遅延期間よりも大きくなり、パケット受信間隔(RI)は逆に小さくなる。そのため、混雑度の増加に伴って、差分Dの絶対値は大きくなる。応答パケット送信の判断基準を混雑度が所定のレベル以下である場合(これを混雑度が小さい場合と呼ぶ)としたとき、この所定のレベルを差分Dの絶対値に対するレベルに置き換えて閾値δを設定し、差分Dの絶対値が閾値δ以下のとき混雑度が小さいと判定する。
FIG. 6C shows a case where the degree of congestion of the
図6(d)は混雑度が図6(c)よりも更に大きくなった場合を示す。このとき、第2パケットの伝送遅延期間は、優先度を高く設定しているためβ1のままであるが、第1パケットの伝送遅延期間はα2よりも更に大きいα3になり、第1パケットが第2パケットよりも遅れて受信される。このような場合は差分Dの絶対値による判定は意味をなさなくなるため、受信順序の逆転を持って混雑度大と判断し、応答パケット送信をしないこととする。 FIG. 6 (d) shows a case where the degree of congestion is greater than that in FIG. 6 (c). At this time, the transmission delay period of the second packet remains β 1 because the priority is set high, but the transmission delay period of the first packet becomes α 3 which is larger than α 2 , The packet is received later than the second packet. In such a case, the determination based on the absolute value of the difference D is meaningless. Therefore, it is determined that the degree of congestion is high with the reverse of the reception order, and the response packet is not transmitted.
図6(b)〜(d)に示す例では、第2パケットの伝送遅延期間は混雑度により変化しないとしたが、優先度の高いパケットが競合した場合等には、図6(e)に示すように、第2パケットの伝送遅延期間が図6(b)〜(d)の場合と比較して大きくなることもある。しかし、そのような場合であっても、第1パケットの伝送遅延期間に比べると第2パケットの伝送遅延期間は小さいため、通常、パケット受信間隔(RI)はパケット送信間隔(TI)よりも小さくなり、これまでの説明はそのまま成立する。 In the example shown in FIGS. 6B to 6D, the transmission delay period of the second packet is not changed depending on the degree of congestion. However, when a packet with a high priority competes, the transmission delay period shown in FIG. As shown, the transmission delay period of the second packet may be longer than in the case of FIGS. However, even in such a case, since the transmission delay period of the second packet is smaller than the transmission delay period of the first packet, the packet reception interval (RI) is usually smaller than the packet transmission interval (TI). Thus, the explanation so far is valid as it is.
判定部1084は、中継装置30の混雑度が小さいと判別した場合、パケット生成部1083にその旨を通知する。なお、判定部1084は、中継装置30の混雑度が大きいと判別した場合、パケット生成部1083にその旨を通知しない。
If the
送信部109は、通信装置の一部で、通信インタフェース等から構成され、パケットを含む各種情報信号を端末20に送信する。例えば、パケット生成部1083から供給され、送信を指示されたパケットを端末20等に送信する。
The
端末20は、基準時刻に同期するコンピュータであって、図7に示すように、送信部201と、受信部202と、操作部203と、表示部204と、記憶部205と、制御部206と、計時部207と、を備えている。
The terminal 20 is a computer that synchronizes with a reference time. As illustrated in FIG. 7, the terminal 20 includes a
送信部201と、受信部202とは、通信部として通信インタフェース等から構成され、中継装置30を介してタイムサーバ10等との間でパケットを含む各種信号の送受信を行う。
The
操作部203は、キーボード、マウス等から構成され、ユーザの操作に応じた操作信号を制御部206に供給する。
The
表示部204は、LCD(Liquid Crystal Display)等から構成され、制御部206の制御下、様々な画像を表示する。
The
記憶部205は、メモリ等から構成され、後述する各種情報を記憶する。
The
制御部206は、CPU、メモリ等から構成され、メモリに記憶された所定のプログラムをCPUが実行することにより、端末20の全体の動作を制御する。制御部206は、機能構成要素として、パケット情報取得部2061と、パケット生成部2062と、応答待ち期間取得部2063と、時刻設定部2064と、時刻補正部2065とを備える。後述するこれらの各機能もCPUがメモリに記憶された所定のプログラムを実行することにより実現される。
The
パケット情報取得部2061は、受信部202を介して受信したパケットに含まれる情報を取得する。この情報は、受信したパケットが基準時刻パケットの場合、送信元アドレスと、パケットの種類と、基準時刻であり、受信したパケットが応答パケットの場合、送信元アドレスと、パケットの種類と、連番と、応答期間(RT)である。パケット情報取得部2061は、パケット種別フィールドの情報から、受信したパケットが基準時刻パケットであると判定した場合、時刻設定部2064に、そのパケットから取得した基準時刻を通知する。
The packet
また、パケット情報取得部2061は、パケット種別フィールドの情報から、受信したパケットが応答パケットであると判定した場合、計時部207から、その時点の現在時刻を応答パケットの受信時刻として取得し、記憶部205に記憶するとともに、応答パケットを受信した旨を応答待ち期間取得部2063に通知する。
When the packet
パケット生成部2062は、中継装置30の混雑度を判別するために用いられる第1パケット及び第2パケットを生成し、送信部201に対して、生成した第1パケットを、中継装置30での転送に係る優先度を所定の優先度Aに設定して、タイムサーバ10に送信するように指示を出すとともに、第1パケットの送信指示後、記憶部205に記憶されたパケット送信間隔(TI)の時間が経過した時点で、第2パケットを、中継装置30での転送に係る優先度を、優先度Aとは異なる優先度、例えば優先度Aよりも高い優先度である優先度Bに設定して、タイムサーバ10に送信するように指示を出す。また、送信の指示において、パケット生成部2062は、第2パケットの送信指示を出すときの現在の日時を計時部207から取得し、取得した日時を第2パケット送信時刻として記憶部205に記憶する。
The
第1パケットは、図4(c)に示すように、宛先フィールドと、送信元フィールドと、パケット種別フィールドと、中継装置30がパケットを中継する際の優先度の情報を格納する優先度フィールドと、連番フィールドと、パケット送信間隔(TI)を格納するパケット送信間隔フィールドと、を備えている。
As shown in FIG. 4C, the first packet includes a destination field, a transmission source field, a packet type field, and a priority field for storing priority information when the
一方、第2パケットは、図4(d)に示すように、宛先フィールドと、送信元フィールドと、パケット種別フィールドと、優先度フィールドと、連番フィールドと、を備えている。 On the other hand, as shown in FIG. 4D, the second packet includes a destination field, a transmission source field, a packet type field, a priority field, and a serial number field.
応答待ち期間取得部2063は、パケット情報取得部2061から応答パケットの受信の通知を受けると、記憶部205から応答パケット受信時刻と第2パケット送信時刻とを読み出し、その差を応答待ち期間(RWT)として取得し、時刻補正部2065に通知する。
When receiving a response packet reception notification from the packet
時刻設定部2064は、パケット情報取得部2061から基準時刻の通知を受けたときは、その基準時刻を計時部107に設定する。また、時刻設定部2064は、応答待ち期間取得部2063から応答待ち期間(RWT)の通知を受けたとき、時刻補正処理を行い、その結果に基づいて計時部207の現在時刻を補正する。具体的には、時刻設定部2064は、タイムサーバ10と端末20との間のパケット伝送に要する期間を示す伝送遅延期間(DT)を次の関係式に基づいて算出する。伝送遅延期間(DT)=(応答待ち期間(RWT)−応答パケットに含まれる応答期間(RT))/2。時刻設定部2064は、計時部207が計時する現在日時を、算出した伝送遅延期間(DT)だけ進めるように補正する。
When receiving the notification of the reference time from the packet
計時部207は、時計であり、例えばRTCで構成され、現在日時を計時し、制御部206の要求に応答して、現在日時を供給する。
The
図1に示す中継装置30は、スイッチングハブ等から構成され、タイムサーバ10から送信されたパケットをパケットに含まれる宛先に対応する端末20等に中継し、端末20から送信されたパケットをパケットに含まれる宛先に対応するタイムサーバ10等に中継する。中継装置30は、パケットに当該パケットを転送する優先度が含まれている場合、当該優先度に基づいてパケットを中継する。
The
なお、中継装置30が、パケットを転送する際の優先度は、IEEE802.1pで定義されるPCP(Priority Code Point)、RFC2474によって定義されるDSCP(DiffServ Code Point)等によって指定される。この優先度の指定方法は任意であるが、第1パケットと第2パケットで指定される優先度は、この中継装置30での優先度のことである。
The priority at which the
次に、時刻同期システム100を構成するタイムサーバ10及び端末20の動作について説明する。
Next, operations of the
タイムサーバ10は、一般的なタイムサーバとして基準時刻を端末20に送信するほか、中継装置30の混雑度を判別するために用いられる端末20から互いに異なる優先度が設定されて送信された第1パケット及び第2パケットを、中継装置30を介して受信し、受信した第1パケット及び第2パケットに基づいて中継装置30の混雑度が小さいと判別したときに、応答パケットを生成し、端末20に送信するという特徴的な動作を行う。
The
一方、端末20は、一般的なコンピュータとして動作するほか、タイムサーバ10から基準時刻パケットを受信した後、互いに異なる優先度を設定した第1パケット及び第2パケットを所定のパケット送信間隔(TI)で、中継装置30を介してタイムサーバ10に送信し、タイムサーバ10が応答パケットを送信した場合には、この応答パケットを受信するとともに、受信した基準時刻パケット及び応答パケットに基づいて、端末20の時刻を補正し、タイムサーバ10で計時される基準時刻に同期させるという特徴的な動作を行う。
On the other hand, in addition to operating as a general computer, the terminal 20 receives a reference time packet from the
以下、理解を容易にするため、1台の端末20がタイムサーバ10から基準時刻を受信して時刻を同期させる場合を例にしてタイムサーバ10及び端末20の特徴的な動作を中心に説明する。
Hereinafter, in order to facilitate understanding, the characteristic operation of the
タイムサーバ10の制御部108は、所定のタイミング(例えば、定期的、周期的な日時)になったときに、図8に示す基準時刻送信処理を開始する。図8に示す各ステップ間の移行は制御部108により制御される。
The
この処理では、まずパケット生成部1083は、図4(a)に示す基準時刻パケットを生成する(ステップS1)。基準時刻パケットに含まれる基準時刻は、基準時取得部1082により、計時部107から取得される。
In this process, first, the
具体的には、パケット生成部1083は、制御部108のメモリに予め記憶されている端末20のIPアドレスを基準時刻パケットの宛先フィールドに設定し、制御部108のメモリに予め記憶されている自己のIPアドレスを基準時刻パケットの送信元フィールドに設定する。また、パケット生成部1083は、「基準時刻パケット」である旨のパケット種別情報をパケット種別フィールドに設定する。さらに、パケット生成部1083は、計時部107からその時点の現在時刻である基準時刻を取得し、取得した基準時刻を基準時刻パケットの基準時刻フィールドに設定する。このようにして、パケット生成部1083は、基準時刻パケットを生成する。
Specifically, the
パケット生成部1083は、生成した基準時刻パケットを、送信部109を介して送信する(ステップS2)。
The
次に、タイムサーバ10は、基準時刻パケットを受信した端末20から、中継装置30の混雑度を判定するために送信される第1パケット及び第2パケットの受信処理を開始する。
Next, the
タイムサーバ10の受信部101は、パケットの受信の有無を判定する(ステップS3)。パケットの受信がなければ(ステップS3;NO)、所定時間が経過したかどうかを判定し(ステップS6)、所定時間が経過していなければ(ステップS6;NO)ステップS3に戻りパケットの受信を待つ。所定時間が経過していれば(ステップS6;YES)、ステップS1に戻り、再度基準時刻パケットの生成と送信を行う。これは基準時間パケットを送信した後、あまり長い時間が経過すると、基準時間パケットを送信した時点と中継装置30の混雑度を判定する時点(すなわち第1パケット及び第2パケット受信の時点)とで中継装置30の混雑度の程度が変化してしまうため、再度基準時刻パケットの送信からやり直すためである。
The receiving
パケットを受信すれば(ステップS3;YES)、パケット識別部102が、パケットの種類を識別し、受信したパケットが第1パケットかどうかを判別する(ステップS4)。パケット識別部102が、受信したパケットを第1パケットと判別した場合(ステップS4;YES)、第1パケット受信処理が実行される(ステップS5)。第1パケット受信処理が終了すると、ステップS3に戻り、次のパケットの受信を待つ。
If a packet is received (step S3; YES), the
ステップS3では再度パケットの受信の有無を判定し、パケットを受信すれば(ステップS3;YES)、パケット識別部102は、パケットの種類を識別し、受信したパケットが第1パケットかどうかを判別する(ステップS4)。ここでは既に第1パケットは受信済みなので受信パケットは第1パケットではない(ステップS4;NO)ため、パケット識別部102は、受信パケットが第2パケットであるかどうかを判別する(ステップS7)。第2パケットではないと判別すると(ステップS7;NO)、ステップS6に移行し、既に述べたような処理が実行される。
In step S3, it is determined again whether or not a packet has been received. If a packet is received (step S3; YES), the
パケット識別部102は、受信パケットが第2パケットであると判別すると(ステップS7;YES)、同じ連番の第1パケットが既に受信されているかどうかを判別する(ステップS8)。第1パケットが受信されていない場合は(ステップS8;NO)、ステップS1に戻る。これは第1パケットと第2パケットの受信順序が送信順序と異なっている場合は、混雑度の評価が困難として、基準時刻パケットの再送信を行うためである。なお、このように順序が逆転する場合は、後述するように、混雑度が大きい場合に該当するので、基準時刻パケットの再送信に戻ることは妥当な処理と言える。
When determining that the received packet is the second packet (step S7; YES), the
第1パケットが受信されている場合は(ステップS8;YES)、制御部108は、第2パケット受信処理を実行し(ステップS9)、その結果を受けて混雑度判定用パラメータ取得処理を実行する(ステップS10)。制御部108の判定部1084は混雑度判定用パラメータ取得処理の結果を受けて中継装置30の混雑度を判定する(ステップS11)。
When the first packet is received (step S8; YES), the
判定部1084が、混雑度が大きいと判定した場合(ステップS11;NO)、制御部108は、処理をステップS1に戻す。このような場合は、基準時刻パケットを送信した時点においても混雑度が大きいと判断することができ、混雑度が大きい時期に送信した基準時刻パケットの伝送遅延は大きく変動しやすいため、その見積もりが困難として、基準時刻パケットの再送信を行う。
When the
判定部1084が、混雑度が小さいと判定した場合(ステップS11;YES)、制御部108は応答パケット生成・送信処理を実行し(ステップS12)、端末20に中継装置30を介して応答パケットを送信する。
When the
なお、図8において、パケット識別部102が、受信したパケットが第1パケット又は第2パケットのいずれでもないと判別した場合(図8のステップS7;NO)の受信したパケットについては、基準時間送信処理の対象ではないので図8からは除外しており、別途処理される。
In FIG. 8, when the
次に、図8の第1パケット受信処理(ステップS5)、第2パケット受信処理(ステップS9)、混雑度判定用パラメータ取得処理(ステップS10)、混雑度の判定処理(ステップS11)、及び応答パケット生成・送信処理(ステップS12)の詳細について説明する。 Next, the first packet reception process (step S5), the second packet reception process (step S9), the congestion degree determination parameter acquisition process (step S10), the congestion degree determination process (step S11), and the response shown in FIG. Details of the packet generation / transmission process (step S12) will be described.
図9に第1パケット受信処理のフローチャートを示す。パケット識別部102は、受信したパケットのパケット種別フィールドに設定されているパケット種別情報に基づいて、受信したパケットが第1パケットであると判別した場合(図8のステップS4;YES)、測定開始信号を受信間隔測定部106に出力する(ステップS20)。更に、パケット識別部102は、受信した第1パケットをパケットバッファ103に記憶し(ステップS21)、制御部108は、第1パケット受信処理を終了して、図8のステップS5に戻るとともに次のステップS3に移行する。
FIG. 9 shows a flowchart of the first packet reception process. When the
受信間隔測定部106は、パケット識別部102から供給された測定開始信号に応答して、パケット受信間隔(RI)の測定を開始する。
The reception
図10に第2パケット受信処理のフローチャートを示す。パケット識別部102は、受信したパケットのパケット種別フィールドに設定されているパケットの種別情報に基づいて、受信したパケットが第2パケットであると判別し、第1パケットが受信済みであると判別した場合(図8のステップS7;YES、ステップS8;YES)、受信間隔測定部106に測定終了信号を出力する(ステップS30)。また、同時に、パケット識別部102は受信時刻取得部105にタイミング信号を出力する。受信時刻取得部105は、タイミング信号を受けて、計時部107から現在日時(T4)を、第2パケット受信時刻(T4)として取得し保持する(ステップS31)。更に、受信した第2パケットを第2パケットバッファ104に記憶し(ステップS32)、制御部108は、第2パケット受信処理を終了して図8のS9に戻るとともに次のステップS10の処理に移行する。
FIG. 10 shows a flowchart of the second packet reception process. Based on the packet type information set in the packet type field of the received packet, the
受信間隔測定部106は、パケット識別部102から供給された測定終了信号に応答して、パケット受信間隔(RI)の測定を終了しその測定結果を保持するとともに、測定を終了した旨を判定部1084に通知する。
In response to the measurement end signal supplied from the
図11に混雑度判定用パラメータ取得処理のフローチャートを示す。混雑度判定用パラメータとは混雑度の判定に使用されるパケット受信間隔(RI)とパケット送信間隔(TI)との差分(D)のことである。 FIG. 11 is a flowchart of the congestion degree determination parameter acquisition process. The congestion degree determination parameter is a difference (D) between a packet reception interval (RI) and a packet transmission interval (TI) used for determination of the congestion degree.
判定部1084は、パケット受信間隔(RI)の測定を終了した旨の通知を受けると、パケット受信間隔(RI)を受信間隔測定部106から取得する(ステップS40)。また、判定部1084は、パケット情報取得部1081を介してパケット送信間隔(TI)を取得する(ステップS41)。判定部1084は、取得したパケット受信間隔(RI)と取得したパケット送信間隔(TI)との差分(D)を算出し(ステップS42)、制御部108は、混雑度判定用パラメータ取得処理を終了して図8のステップS10に戻るとともに、ステップS11の処理に移る。
Upon receiving a notification that the measurement of the packet reception interval (RI) has ended, the
図8のステップS11において、判定部1084は、混雑度が小さいかどうかを判定するが、具体的には、差分(D)の絶対値が判定部1084のメモリに記憶された所定の閾値δ以下であるか否かを判別する(ステップS11)。判定部1084は、差分Dの絶対値が閾値δを超えると判別した場合、すなわち混雑度が大きいと判別した場合(ステップS11;NO)、既に説明したとおり、制御部108は、処理をステップS1に戻す。
In step S11 of FIG. 8, the
一方、判定部1084が、差分Dの絶対値が閾値δ以下であると判別した場合(ステップS11;YES)、中継装置30の混雑度が小さい旨をパケット生成部1083に通知し既に説明したとおり、制御部108は応答パケット生成・送信処理を実行する(ステップS12)。
On the other hand, when the
図12に、応答パケット生成・送信処理のフローチャートを示す。パケット生成部1083は、判定部1084から中継装置30の混雑度が小さい旨の通知を受けたときに、図12に示す応答パケット生成・送信処理を開始する。
FIG. 12 shows a flowchart of response packet generation / transmission processing. When the
パケット生成部1083は、応答パケットを生成する準備として、計時部107から現在日時(T5)を応答パケットの送信時刻(T5)として取得し、応答パケットの送信時刻(T5)と受信時刻取得部105で取得された第2パケット受信時刻(T4)との差をとることにより、第2パケットを受信してから応答パケットを送信するまでの期間を示す応答期間(RT)を算出し(ステップS50)、図4(b)に示す応答パケットを生成する(ステップS51)。
In preparation for generating a response packet, the
具体的には、パケット生成部1083は、パケット情報取得部1081を介して取得した、第2パケットに含まれる送信元情報を応答パケットの宛先フィールドに設定し、第2パケットに含まれる宛先情報を応答パケットの送信元フィールドに設定する。続いて、パケット生成部1083は、「応答パケット」である旨のパケット種別情報を応答パケットのパケット種別フィールドに設定する。また、パケット生成部1083は、第2パケットに含まれる連番情報を応答パケットの連番フィールドに設定し、算出した応答期間(RT)を応答パケットの応答期間フィールドに設定する。このようにして、パケット生成部1083は、応答パケットを生成する。
Specifically, the
パケット生成部1083は、生成した応答パケットを、送信部109を介して送信する(ステップS52)。その後、図8のステップS12に戻り、制御部108は基準時刻送信処理を終了する。
The
次に、タイムサーバ10から基準時刻パケットを送信された端末20での時刻同期処理について説明する。図13に時刻同期処理のフローチャートを示す。
Next, time synchronization processing at the terminal 20 that has transmitted the reference time packet from the
端末20の制御部206は、パケット受信処理を開始し、受信部202を介してパケットの受信の有無を判定し(ステップS60)、パケットの受信がなければ(ステップS60;NO)ステップS60に戻り、受信を待つ。パケットの受信があれば(ステップS60;YES)、制御部206のパケット情報取得部2061は、受信部202を介して受信したパケットのパケット種別フィールドに設定されているパケット種別情報に基づいて、受信したパケットが基準時刻パケットであるかどうかを判別する(ステップS60)。
The
受信したパケットが基準時刻パケットであれば(ステップS61;YES)、制御部206は、基準時刻パケット受信処理を実行し(ステップS62)、その後混雑度判定用パケット送信処理を実行する(ステップS63)。その後はステップS60に戻る。
If the received packet is a reference time packet (step S61; YES), the
受信したパケットが基準時刻パケットでなければ(ステップS61;NO)、パケット情報取得部2061は、受信したパケットが応答パケットであるかどうかを判定し(ステップS64)、応答パケットでなければ(ステップS64;NO)、制御部206は処理をステップS60に戻す。
If the received packet is not a reference time packet (step S61; NO), the packet
なお、図13において、パケット情報取得部2061が、受信したパケットが基準時刻パケット又は応答パケットのいずれでもないと判別した場合(図13のステップS64;NO)の受信したパケットの処理については、時刻同期処理の対象ではないので図13からは除外しており、別途処理される。
In FIG. 13, when the packet
受信したパケットが応答パケットであれば(ステップS64;YES)、制御部206は時刻補正処理を実行し(ステップS65)、時刻同期処理を終了する。
If the received packet is a response packet (step S64; YES), the
次に、基準時刻パケット受信処理(ステップS62)、混雑度判定用パケット送信処理(ステップS63)、及び時刻補正処理(ステップS65)について詳細に説明する。 Next, the reference time packet reception process (step S62), the congestion degree determination packet transmission process (step S63), and the time correction process (step S65) will be described in detail.
図14に基準時刻パケット受信処理のフローチャートを示す。パケット情報取得部2061は受信した基準時刻パケットの情報を記憶部205に記憶する(ステップS70)。続いて、時刻設定部2064は、は、計時部207の現在日時を、記憶された基準時刻に一致するように設定して(ステップS71)基準時刻パケット受信処理を終了し、制御部206は処理を図13の混雑度判定用パケット送信処理(ステップS63)に進める。
FIG. 14 shows a flowchart of the reference time packet reception process. The packet
この時点での時刻設定では、基準時刻パケットの伝送遅延が考慮されていないため、設定後の計時部207の現在日時はタイムサーバ10の計時部107が計時する基準時刻に比較して、基準時刻パケットの伝送遅延の分だけ遅れている。
Since the transmission delay of the reference time packet is not considered in the time setting at this time, the current date and time of the
図15に混雑度判定用パケット送信処理のフローチャートを示す。制御部206は、図15に示す混雑度判定用パケット送信処理を、パケット受信処理のプロセスからの呼び出しにより開始し、まず、図4(c)に示す第1パケットを生成する(ステップS80)。
FIG. 15 is a flowchart of the congestion degree determination packet transmission process. The
具体的には、パケット生成部2062は、記憶部205に記憶された基準時刻パケットに含まれる送信元情報を第1パケットの宛先フィールドに設定し、基準時刻パケットに含まれる宛先情報を第1パケットの送信元フィールドに設定する。このように設定することにより、第1パケットの宛先が基準時刻パケットを送信したタイムサーバ10に設定され、第1パケットの送信元が基準時刻パケットを受信した端末20に設定される。
Specifically, the
続いて、パケット生成部2062は、「第1パケット」である旨のパケット種別情報を第1パケットのパケット種別フィールドに設定する。また、パケット生成部2062は、中継装置30が当該第1パケットを転送する優先度を第2パケットよりも低い優先度、例えば通常のパケットと同じ優先度にする旨の優先度情報(例えば優先度を示す数値)を第1パケットの優先度フィールドに設定する。
Subsequently, the
パケット生成部2062は、任意の整数Nを第1パケットの連番フィールドに設定する。パケット生成部2062は、第1パケットを生成する度に整数Nをインクリメント(+1)する。続いて、パケット生成部2062は、記憶部205に記憶されたパケット送信間隔(TI)を第1パケットのパケット送信間隔フィールドに設定する。このようにして、パケット生成部2062は、第1パケットを生成する。
The
次に、パケット生成部2062は、図4(d)に示す第2パケットを生成する(ステップS81)。具体的には、パケット生成部2062は、第1パケットと同様にして、宛先情報及び送信元情報を第2パケットの宛先フィールド、送信元フィールドにそれぞれ設定する。続いて、パケット生成部2062は、「第2パケット」である旨のパケット種別情報を第2パケットのパケット種別フィールドに設定する。また、パケット生成部2062は、中継装置30が当該第2パケットを転送する優先度を第1パケットの優先度よりも高くする旨の優先度情報を第2パケットの優先度フィールドに設定する。
Next, the
パケット生成部2062は、第1パケットに設定した整数Nを第2パケットの連番フィールドに設定する。連番フィールドの設定値が同じ第1パケットと第2パケットとは、一組のパケットを構成する。このようにして、パケット生成部2062は、第2パケットを生成する。
The
パケット生成部2062は、生成した第1パケットを、送信部201を介してタイムサーバ10に送信し(ステップS82)、送信したときからパケット送信間隔(TI)が経過したかどうかを判定する(ステップS83)。経過していない場合は(ステップS83;NO)、ステップS83に戻りステップS83を繰り返して、経過するまで待つ。
The
パケット送信間隔(TI)が経過したとき(ステップS83;YES)、パケット生成部2062は、生成した第2パケットを、送信部201を介してタイムサーバ10に送信する(ステップS84)。
When the packet transmission interval (TI) has elapsed (step S83; YES), the
パケット生成部2062は、送信部201に第2パケットの送信指示を出した時点の時刻T3を、計時部207から取得し、取得した時刻(T3)を第2パケット送信時刻(T3)として記憶部205に記憶する(ステップS85)。そして、制御部206は、混雑度判定用パケット送信処理を終了し、処理を図13のステップS63からステップS60に戻す。
The
図16に時刻補正処理のフローチャートを示す。図13のステップS64で応答パケットが受信されたと判定されたとき(図13のステップS64;YES)、制御部206は時刻補正処理を呼び出して実行する。
FIG. 16 shows a flowchart of time correction processing. When it is determined in step S64 in FIG. 13 that a response packet has been received (step S64 in FIG. 13; YES), the
パケット情報取得部2061は、応答パケットを受信したと判定した時点で、計時部207から現在日時(T6)を応答パケット受信時刻(T6)として取得する(ステップS90)。また、パケット情報取得部2061は、受信した応答パケットの応答期間を含む情報を取得する(ステップS91)。
When it is determined that the response packet has been received, the packet
次に、応答待ち期間取得部2063は、取得した応答パケット受信時刻(T6)と第2パケット送信時刻(T3)との差をとることにより、応答待ち期間(RWT)を算出する(ステップS92)。
Next, the response waiting
続いて、時刻設定部2064は、伝送遅延期間(DT)を、例えば、次の関係式に基づいて算出する(ステップS93)。伝送遅延期間(DT)=(算出した応答待ち期間(RWT)−応答パケットに含まれる応答期間(RT))/2。時刻設定部2064は、計時部207が計時する現在日時を、算出した伝送遅延期間(DT)だけ進めるように補正し(ステップS94)、時刻補正処理を終了し、制御部206は、図13に示す時刻同期処理を終了する。
Subsequently, the
以上、説明したように、タイムサーバ10は、基準時刻を含む基準時刻パケットを端末20に送信した後、中継装置30の混雑度を判別するため用いられる互いに送信優先度の異なる第1パケット及び第2パケットを端末20から受信し、受信した第1パケット及び第2パケットに基づいて中継装置30の混雑度が小さいと判別したときに、応答パケットを端末20に送信する。このため、タイムサーバ10は中継装置30に問い合わせずに中継装置の混雑度を判別することができる。タイムサーバ10は、中継装置30の混雑度が小さいときに応答パケットを送信するので、応答パケットを送信したときの伝送遅延は小さく、従って、この応答パケットを送信した時期に近い時期に送信した基準時刻パケットの伝送遅延も小さいことが期待できる。そのため、端末20は、この応答パケットに従って時刻設定と補正を行うことにより、その時刻を基準時刻に高精度で同期させることができる。
As described above, after transmitting the reference time packet including the reference time to the terminal 20, the
この発明は上記の実施形態に限定されず、発明の範囲内において種々の変形が可能である。例えば、上記説明において示したハードウェアの構成及び動作は一例でありこれらに限定されるものではなく、下記に例示するように、発明の範囲内において適宜変更及び応用が可能である。 The present invention is not limited to the above-described embodiment, and various modifications can be made within the scope of the invention. For example, the configuration and operation of the hardware shown in the above description are merely examples, and the present invention is not limited thereto, and can be appropriately changed and applied within the scope of the invention as illustrated below.
上記実施形態では、制御部206は第1パケットにパケット送信間隔(TI)を含めているが、第2パケットにパケット送信間隔(TI)を含めてもよい。タイムサーバ10が第2パケットを受信した時点でパケット送信間隔(TI)の情報をタイムサーバ10が取得できればその後の処理は同様に実施できるため、この場合も上記発明の効果と同様の効果を奏することができる。
In the above embodiment, the
上記実施形態では、パケット送信間隔(TI)は固定値であるが、制御部206は送信間隔調整部を備え、送信間隔調整部は、応答パケットを受信することができた場合、次回の基準時刻送信に伴う第1パケット及び第2パケットの送信の際のパケット送信間隔(TI)を所定時間だけ縮小し、応答パケットを受信することができない場合、パケット送信間隔(TI)を所定時間だけ拡大するようにしてもよい。
In the above embodiment, the packet transmission interval (TI) is a fixed value, but the
これまでは、基準時刻パケット送信から第1、第2パケット送信が完了するまでの中継装置30の混雑度は変化しないことを前提としている。しかし、パケット送信間隔(TI)が大きいと、その間に混雑度が変化してしまう恐れがあるため、パケット送信間隔(TI)はできるだけ小さい方が好ましい。一方、パケット送信間隔(TI)を小さくすると、混雑度がそれほど大きくない場合であっても、端末20での第1パケットと第2パケットの受信順序が逆転してしまい、応答パケットを受信できなくなる恐れがある。そのため、応答パケット受信状況に応じてパケット送信間隔(TI)を調節する。この措置により、混雑度の評価が可能な状況下でパケット送信間隔(TI)を小さくすることができ、時刻同期の信頼性が高くなる。
Until now, it is assumed that the degree of congestion of the
また、上記実施形態では、中継装置30での第1パケットを転送する際の優先度を、第2パケットを転送する際の優先度よりも低く設定しているが、これに限定されず、例えば、第1パケットを転送する際の優先度を、第2パケットを転送する際の優先度よりも高く設定してもよい。この場合は、差分Dは上記実施形態の場合と逆符号となるが、差分Dの絶対値と所定の閾値とを比較して中継装置30の混雑度を判定するので、これまでと同様に混雑度の判定が可能である。従って、この場合においても、上記発明の効果と同様の効果を奏することができる。
Moreover, in the said embodiment, although the priority at the time of transferring the 1st packet in the
更に、このように優先度を設定すると、混雑度が高くなった場合、パケット受信間隔(RI)は増加することになり、第1パケットと第2パケットの受信時期の逆転は生じない。そのため、このような逆転による応答パケットが送信されないという事態を避けることができ、従って、パケット送信間隔(TI)を可能な限り低減することが可能となる。 Further, when the priority is set in this way, when the congestion level becomes high, the packet reception interval (RI) is increased, and the reception timing of the first packet and the second packet is not reversed. Therefore, it is possible to avoid a situation in which the response packet due to such reverse rotation is not transmitted, and therefore it is possible to reduce the packet transmission interval (TI) as much as possible.
受信間隔測定部106を、既に説明したようにカウンタとクロック信号発生器で構成し、測定開始信号に応答してアップカウントし、測定終了信号に応答してカウントを停止することによりパケット受信間隔を測定することができるが、これに限定されず、パケット送信間隔(TI)+δ+1をカウント値としてプリセットし、測定開始信号に応答してダウンカウントし、測定終了信号でダウンカウントを停止するようにしてもよい。この場合、判定部1084は、このカウンタのカウント値が「1」以上かつ「2×δ+1」以下のときに、中継装置30のトラフィック混雑度が小さいと判別するようにすればよい。なお、途中でカウント値が0になったときは、自動でカウントを停止する。自動でカウント停止となったときは、カウント値は0となっているので中継装置30の混雑度は大きいと判別される。
As described above, the reception
なお、受信間隔測定部106はカウンタで構成されたものに限らない。受信間隔測定部106は第1パケット及び第2パケットのそれぞれの受信時刻を測定し、その差をパケット受信間隔とするように構成されたものであっても良い。具体的には、パケット識別部102は第1パケット受信のタイミング、及び第2パケット受信のタイミングに第1パケット用、及び第2パケット用のタイミング信号を受信間隔測定部106に出力する。このタイミング信号はこれまでの測定開始信号と測定終了信号とに該当する。受信間隔測定部106は、それぞれのタイミング信号入力時点で計時部107から現在時刻を取得し、第1パケット受信時刻と第2パケット受信時刻として、その差をパケット受信間隔(RI)とする。第1パケット受信時刻が第2パケット受信時刻より後の場合は、差は負数となるので、応答パケットは生成されない。受信間隔測定部106がこのように構成されている場合も、上記同様の発明の効果を奏することができる。
Note that the reception
上記、変形例を含めた場合の受信間隔測定部106は、パケット識別部102で識別された第1パケット及び第2パケットのそれぞれの受信タイミングに基づき、第1パケットを受信してから第2パケットを受信するまでの間隔を示す両パケットの受信間隔を取得することができる。
The reception
判定部1084は、制御部108に含めた構成としたが、制御部108から独立した構成としても良い。
Although the
図17は本実施形態のタイムサーバ10に係る簡略化された構成を示す。図に示す番号は図3に記載した番号と同じものは同じ機能を有する。図3に記載されていない構成要素は、受信時間情報取得部111であり、パケット情報取得部110の番号も図3と異なる。また、図3では矢印の記載がないところに矢印を付してある。このうち、パケット情報取得部110については、図3のパケット情報取得部1081にパケットバッファ103、第2パケットバッファ104を加えたものに対応している。ただし、パケット情報が取得できる機能を有すればよいのでパケットバッファ103、第2パケットバッファ104を含まなくても良い。従って、機能は図3のパケット情報取得部1081と共通なので名称は共通にしたが番号を変えた。また、受信時間情報取得部111は図3の受信時刻取得部105と受信間隔測定部106の機能を合わせた機能を有する。受信間隔測定部106の機能については、カウンタで構成されたものに限らず、上記変形例であってもよい。受信時刻取得部105と受信間隔測定部106とは具体化によっては共通の機能を含んで構成されうることから両機能を合わせたものとした。矢印については、動作の説明の内容に従って付してあり、図17に示すタイムサーバ10の動作はこれまでフローチャートで説明したとおりである。
FIG. 17 shows a simplified configuration according to the
図18は本実施形態の端末20に係る簡略化された構成を示す。図に示す番号は図7に記載した番号と同じものは同じ機能を有する。図7に記載されていない構成要素はないが、図7では矢印の記載がない部分にも矢印を付してある。矢印については、動作の説明の内容に従って付してあり、図18に示す端末20の動作はこれまでフローチャートで説明したとおりである。
FIG. 18 shows a simplified configuration according to the
これまでの説明では、まずタイムサーバ10での基準時刻パケットの生成と端末20へのその送信があり、その後に第1パケット及び第2パケットが端末20からタイムサーバ10に送信されるとしたが、この順序に限定される必要はない。応答パケット送信時に基準時刻パケットを送信しても良い。このとき基準時刻パケットと応答パケットの送信順序、どちらが先であっても良い。更に、基準時刻パケットの送信を省き、応答パケットに基準時刻を含めては送信しても良い。この場合、まず、タイムサーバ10が基準時刻を送信する旨の準備信号を端末20に送信し、端末20はこの準備信号を受信した後、第1パケットと第2パケットをこれまでの説明と同様に、タイムサーバ10に送信する。タイムサーバ10は第1パケットと第2パケットを受信した後、これまでの説明と同様に中継装置30の混雑度を評価し、混雑度が小さいと判定した場合に応答パケットを生成し、端末20に送信する。ここで述べる変形例ではタイムサーバ10のパケット生成部1083は、応答期間(RT)とともに基準時間を含めて応答パケットを生成する。端末20は、この基準時間を端末の計時部207に設定するとともに、これまでの説明と同様に時刻補正処理を実行する。
In the description so far, there is first the generation of the reference time packet in the
いずれの場合も、タイムサーバ10は、応答パケットを送信するとき、すなわち、中継装置30の混雑度が小さいときにのみ端末20に基準時刻を送信するので、端末20の時刻はより高精度にタイムサーバ10の基準時刻に同期したものとなる。
In either case, the
また、端末20は、上記実施形態で例示したコンピュータの他、PDA(Personal Digital Assistants)、携帯電話、ゲーム機等であってもよい。 Further, the terminal 20 may be a PDA (Personal Digital Assistants), a mobile phone, a game machine or the like in addition to the computer exemplified in the above embodiment.
また、本実施形態に係る時刻同期システム100は、専用のシステムによらず、通常のコンピュータシステムを用いて実現可能である。たとえば、上述の動作を実行するためのプログラムを、コンピュータが読み取り可能な記録媒体(フレキシブルディスク、CD−ROM、DVD−ROM等)に格納して配布し、このプログラムをコンピュータにインストールすることにより、上述の処理を実行する時刻同期システム100を構成してもよい。また、インターネット等の通信ネットワーク上のファイル特定装置が有する記憶装置にこのプログラムを格納しておき、通常のコンピュータシステムがダウンロード等することで時刻同期システム100を構成してもよい。 In addition, the time synchronization system 100 according to the present embodiment can be realized using a normal computer system, not a dedicated system. For example, by storing a program for executing the above-described operation in a computer-readable recording medium (flexible disk, CD-ROM, DVD-ROM, etc.) and installing the program in the computer, You may comprise the time synchronization system 100 which performs the above-mentioned process. Alternatively, the time synchronization system 100 may be configured by storing the program in a storage device included in a file identification device on a communication network such as the Internet and downloading the program by a normal computer system.
また、時刻同期システム100の機能を、OS(オペレーティングシステム)とアプリケーションプログラムの分担、またはOSとアプリケーションプログラムとの協働により実現する場合などには、アプリケーションプログラム部分のみを記録媒体や記憶装置に格納してもよい。 When the functions of the time synchronization system 100 are realized by sharing of an OS (operating system) and an application program, or by cooperation between the OS and the application program, only the application program portion is stored in a recording medium or a storage device. May be.
また、搬送波にプログラムを重畳し、通信ネットワークを介して配信することも可能である。たとえば、通信ネットワーク上の掲示板(BBS:Bulletin Board System)にこのプログラムを掲示し、ネットワークを介してプログラムを配信してもよい。そして、このプログラムを起動し、OSの制御下で、他のアプリケーションプログラムと同様に実行することにより、上述の処理を実行できるように構成してもよい。 It is also possible to superimpose a program on a carrier wave and distribute it via a communication network. For example, this program may be posted on a bulletin board (BBS: Bulletin Board System) on a communication network, and the program may be distributed via the network. The program may be started and executed in the same manner as other application programs under the control of the OS, so that the above-described processing can be executed.
上記の実施形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。 A part or all of the above-described embodiment can be described as in the following supplementary notes, but is not limited thereto.
(付記1)
基準時刻を計時する計時部と、
前記計時部から基準時刻を取得する基準時刻取得部と、
中継装置を介して端末から送信された各種パケットを受信する受信部と、
他の各種パケットを、前記中継装置を介して前記端末に送信する送信部と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む前記受信部により受信された第1パケット及び第2パケットを識別するパケット識別部と、
受信した前記第1パケット及び前記第2パケットに含まれる情報を取得するパケット情報取得部と、
前記パケット識別部で識別された前記第1パケット及び前記第2パケットの受信タイミングに基づき、前記第2パケットの受信時刻である第2パケット受信時刻を取得するとともに、前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を取得する受信時間情報取得部と、
前記パケット情報取得部で取得された前記パケット送信間隔と前記受信時間情報取得部で取得された前記受信間隔との差が、所定の範囲内にあるかどうかを判定する判定部と、
前記基準時刻取得部で取得された前記基準時刻を含む基準時刻パケットを生成し、前記送信部に送信の指示を出し、前記判定部で前記差が前記所定の範囲内にあるとの判定がなされたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信時刻から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成し、前記送信部に送信の指示を出すパケット生成部と、を備える、
ことを特徴とするタイムサーバ。
(Appendix 1)
A timekeeping section for measuring the reference time;
A reference time acquisition unit for acquiring a reference time from the time measuring unit;
A receiving unit for receiving various packets transmitted from the terminal via the relay device;
A transmission unit that transmits other various packets to the terminal via the relay device;
Packets transmitted from the terminal at a predetermined transmission interval, received by the receiving unit that is set to have different transfer priorities in the relay device and includes the transmission interval as a packet transmission interval. A packet identification unit for identifying the first packet and the second packet,
A packet information acquisition unit for acquiring information included in the received first packet and the second packet;
Based on the reception timing of the first packet and the second packet identified by the packet identification unit, the second packet reception time that is the reception time of the second packet is acquired, and the first packet is received. A reception time information acquisition unit for acquiring a reception interval indicating an interval from when the second packet is received;
A determination unit that determines whether a difference between the packet transmission interval acquired by the packet information acquisition unit and the reception interval acquired by the reception time information acquisition unit is within a predetermined range;
A reference time packet including the reference time acquired by the reference time acquisition unit is generated, a transmission instruction is issued to the transmission unit, and the determination unit determines that the difference is within the predetermined range. A response packet that is a response packet to the second packet, and includes a response period that is a period from the second packet reception time to the transmission of the response packet, and sends a transmission instruction to the transmission unit. A packet generation unit for outputting,
A time server characterized by this.
(付記2)
前記パケット生成部は、前記判定部で前記差が前記所定の範囲内にあるとの判定がなされたとき、前記基準時刻パケットを生成し、前記送信部に前記端末への送信の指示を出す、
ことを特徴とする付記1に記載のタイムサーバ。
(Appendix 2)
The packet generation unit generates the reference time packet when the determination unit determines that the difference is within the predetermined range, and issues a transmission instruction to the terminal to the transmission unit.
The time server according to appendix 1, wherein
(付記3)
前記パケット生成部は、前記基準時刻を含めて前記応答パケットを生成することにより、前記基準時刻パケットの生成に代える、
ことを特徴とする付記2に記載のタイムサーバ。
(Appendix 3)
The packet generation unit replaces the generation of the reference time packet by generating the response packet including the reference time.
The time server according to
(付記4)
時刻を計時する計時部と、
中継装置を介してタイムサーバに各種パケットを送信する送信部と、
前記中継装置を介して前記タイムサーバから他の各種パケットを受信する受信部と、
前記タイムサーバを送信先とするパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成し、前記送信部に、前記第1及び前記第2パケットを、その番号順に、前記送信間隔で送信する指示を出すパケット生成部と、
前記受信部で受信したパケットから、パケットの種類を識別し、基準時刻の情報を含む基準時刻パケットである場合、該基準時刻パケットに含まれる前記基準時刻の情報を取得し、前記第2パケットに対する応答のパケットである応答パケットである場合、該応答パケットに含まれる、前記タイムサーバでの前記第2パケット受信から前記応答パケット送信までの期間である応答期間の情報を取得するパケット情報取得部と、
前記パケット生成部で前記第2パケットを送信する指示を出したときから前記パケット情報取得部で識別された前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定部と、
前記パケット情報取得部が取得した前記基準時刻、前記応答期間、及び前記応答待ち期間測定部が測定した前記応答待ち期間に基づいて前記計時部の時刻を設定する時刻設定部と、を備える、
ことを特徴とする端末。
(Appendix 4)
A timekeeping section that keeps time,
A transmission unit that transmits various packets to the time server via the relay device;
A receiving unit for receiving various other packets from the time server via the relay device;
A packet having the time server as a transmission destination, a first packet including a packet transmission interval indicating a mutual transmission interval in either one of the packets, wherein the transfer priority in the relay device is set to a different priority. A packet generation unit that generates two packets and issues an instruction to the transmission unit to transmit the first and second packets in the order of their numbers;
From the packet received by the receiving unit, if the packet is a reference time packet that includes the reference time information, the type of the packet is identified, the reference time information included in the reference time packet is acquired, and the second packet A packet information acquisition unit that acquires information on a response period that is a period from reception of the second packet at the time server to transmission of the response packet included in the response packet when the response packet is a response packet; ,
A response waiting period measurement unit that measures a response waiting period that indicates a period from when the packet generation unit issues an instruction to transmit the second packet to when the packet information acquisition unit identifies the response packet; ,
A time setting unit that sets the time of the time measuring unit based on the reference time acquired by the packet information acquisition unit, the response period, and the response waiting period measured by the response waiting period measurement unit,
A terminal characterized by that.
(付記5)
前記受信部が前記応答パケットを受信することができたか否かによって、前記送信間隔を調整する送信間隔調整部をさらに備え、
前記パケット生成部は、前記第1パケット及び前記第2パケットのいずれかに含まれる前記パケット送信間隔を、前記送信間隔調整部により調整された送信間隔に等しく設定し、
前記送信部は、前記調整された送信間隔で前記第1パケット及び前記第2パケットを送信する、
ことを特徴とする付記4に記載の端末。
(Appendix 5)
A transmission interval adjustment unit that adjusts the transmission interval according to whether the reception unit has received the response packet;
The packet generation unit sets the packet transmission interval included in either the first packet or the second packet equal to the transmission interval adjusted by the transmission interval adjustment unit;
The transmitter transmits the first packet and the second packet at the adjusted transmission interval;
The terminal according to
(付記6)
付記1乃至3のいずれか1つに係るタイムサーバと付記4又は5に係る端末とで構成される
ことを特徴とする時刻同期システム。
(Appendix 6)
A time synchronization system comprising a time server according to any one of Supplementary Notes 1 to 3 and a terminal according to
(付記7)
基準時刻を計時する計時部から基準時刻を取得し、取得した基準時刻を、中継装置を介して端末に送信する基準時刻送信工程と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む第1パケット及び第2パケットを、前記中継装置を介して受信するパケット受信工程と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する受信間隔測定工程と、
前記パケット送信間隔と前記受信間隔との差が所定の範囲内にあるかどうかを判定する判定工程と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成する応答パケット生成工程と、
生成した前記応答パケットを、前記中継装置を介して前記端末に送信する応答パケット送信工程と、を備える、
ことを特徴とする基準時刻送信方法。
(Appendix 7)
A reference time transmission step of acquiring a reference time from a timer unit that measures the reference time, and transmitting the acquired reference time to the terminal via the relay device;
A packet transmitted from the terminal at a predetermined transmission interval, and a first packet including a first packet including the transmission interval as a packet transmission interval, the transfer priority of the relay device being set to different priorities A packet receiving step of receiving two packets via the relay device;
A reception interval measuring step of measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination step of determining whether a difference between the packet transmission interval and the reception interval is within a predetermined range;
When it is determined that the difference is within a predetermined range, a response packet that is a response packet to the second packet and includes a response period that is a period from reception of the second packet to transmission of the response packet. A response packet generation step to generate,
A response packet transmission step of transmitting the generated response packet to the terminal via the relay device,
And a reference time transmission method.
(付記8)
基準時刻を送信するタイムサーバから、中継装置を介して前記基準時刻を受信する基準時刻受信工程と、
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成するパケット生成工程と、
前記第1パケット及び前記第2パケットを前記送信間隔で、その番号順に、前記中継装置を介して前記タイムサーバに送信する送信工程と、
前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットを送信するまでの期間である応答期間を含む応答パケットを前記タイムサーバから前記中継装置を介して受信する応答パケット受信工程と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定工程と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、時刻を計時する計時部の時刻を前記タイムサーバが計時する基準時刻に同期するように設定する時刻設定工程と、を備える、
ことを特徴とする基準時刻設定方法。
(Appendix 8)
A reference time receiving step of receiving the reference time via a relay device from a time server that transmits the reference time;
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval A packet generation process for generating
A transmission step of transmitting the first packet and the second packet to the time server via the relay device in the order of their numbers at the transmission interval;
A response packet that is a response packet to the second packet and that receives a response packet including a response period that is a period from when the second packet is received until the response packet is transmitted from the time server via the relay device Receiving process;
A response waiting period measuring step of measuring a response waiting period indicating a period from when the second packet is transmitted to when the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time of the time measuring unit that measures time is synchronized with the reference time measured by the time server. A time setting step for setting to do,
A reference time setting method.
(付記9)
タイムサーバで基準時刻を計時する計時部から基準時刻を取得し、取得した基準時刻を、中継装置を介して端末に送信し、該端末で受信する基準時刻送受信工程と、
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成する、前記端末におけるパケット生成工程と、
前記第1パケット及び前記第2パケットを前記端末から送信し、前記タイムサーバで受信するパケット送受信工程と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する、前記タイムサーバにおける受信間隔測定工程と、
受信された前記第1パケット又は前記第2パケットのいずれかに含まれる前記パケット送信間隔と測定された前記受信間隔との差が所定の範囲内にあるかどうかを判定する、前記タイムサーバにおける判定工程と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信の準備が完了するまでの期間である応答期間を含む応答パケットを生成し、前記中継装置を介して前記端末に送信する指示をする、前記タイムサーバにおける応答パケット生成工程と、
前記応答パケット生成工程での指示に従って、生成された前記応答パケットを前記タイムサーバから送信し、前記端末で受信する応答パケット送受信工程と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する、前記端末における応答待ち期間測定工程と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、端末側で時刻を計時する計時部の時刻を前記タイムサーバが計時する前記基準時刻に同期するように設定する、前記端末における時刻設定工程と、を備える、
ことを特徴とする時刻同期方法。
(Appendix 9)
A reference time is acquired from a timekeeping unit that measures a reference time with a time server, and the acquired reference time is transmitted to the terminal via the relay device, and received at the terminal,
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval Generating a packet in the terminal, and
A packet transmitting / receiving step of transmitting the first packet and the second packet from the terminal and receiving the packet by the time server;
A reception interval measurement step in the time server for measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination in the time server that determines whether a difference between the packet transmission interval included in either the received first packet or the second packet and the measured reception interval is within a predetermined range Process,
A response period that is a response packet to the second packet when the difference is determined to be within a predetermined range, and is a period from when the second packet is received until preparation for transmission of the response packet is completed Generating a response packet, and instructing to transmit to the terminal via the relay device, a response packet generating step in the time server,
In response to the instruction in the response packet generating step, the generated response packet is transmitted from the time server, and the response packet is transmitted and received at the terminal.
A response waiting period measuring step in the terminal for measuring a response waiting period indicating a period from when the second packet is transmitted until the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time server measures the time of the time measuring unit that measures time on the terminal side A time setting step in the terminal that is set to synchronize with a reference time,
A time synchronization method characterized by the above.
(付記10)
コンピュータに、
基準時刻を計時する計時部から基準時刻を取得し、取得した基準時刻を、中継装置を介して端末に送信する基準時刻送信手順と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む第1パケット及び第2パケットを、前記中継装置を介して受信するパケット受信手順と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する受信間隔測定手順と、
前記パケット送信間隔と前記受信間隔との差が所定の範囲内にあるかどうかを判定する判定手順と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成する応答パケット生成手順と、
生成した前記応答パケットを、前記中継装置を介して前記端末に送信する応答パケット送信手順と、を実行させる、
ことを特徴とするプログラム。
(Appendix 10)
On the computer,
A reference time transmission procedure for acquiring a reference time from a timer unit that measures the reference time, and transmitting the acquired reference time to the terminal via the relay device;
A packet transmitted from the terminal at a predetermined transmission interval, and a first packet including a first packet including the transmission interval as a packet transmission interval, the transfer priority of the relay device being set to different priorities A packet receiving procedure for receiving two packets via the relay device;
A reception interval measurement procedure for measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination procedure for determining whether a difference between the packet transmission interval and the reception interval is within a predetermined range;
When it is determined that the difference is within a predetermined range, a response packet that is a response packet to the second packet and includes a response period that is a period from reception of the second packet to transmission of the response packet. A response packet generation procedure to be generated;
A response packet transmission procedure for transmitting the generated response packet to the terminal via the relay device;
A program characterized by that.
(付記11)
コンピュータに、
基準時刻を送信するタイムサーバから、中継装置を介して前記基準時刻を受信する基準時刻受信手順と、
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成するパケット生成手順と、
前記第1パケット及び前記第2パケットを前記送信間隔で、その番号順に、前記中継装置を介して前記タイムサーバに送信する送信手順と、
前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットを送信するまでの期間である応答期間を含む応答パケットを前記タイムサーバから前記中継装置を介して受信する応答パケット受信手順と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定手順と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、時刻を計時する計時部の時刻を前記タイムサーバが計時する基準時刻に同期するように設定する時刻設定手順と、を実行させる、
ことを特徴とするプログラム。
(Appendix 11)
On the computer,
A reference time receiving procedure for receiving the reference time via a relay device from a time server that transmits the reference time;
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval A packet generation procedure for generating
A transmission procedure for transmitting the first packet and the second packet to the time server via the relay device in the transmission interval in the order of the numbers;
A response packet that is a response packet to the second packet and that receives a response packet including a response period that is a period from when the second packet is received until the response packet is transmitted from the time server via the relay device Receiving procedure,
A response waiting period measurement procedure for measuring a response waiting period indicating a period from when the second packet is transmitted to when the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time of the time measuring unit that measures time is synchronized with the reference time measured by the time server. And a time setting procedure for setting to
A program characterized by that.
10 タイムサーバ
20 端末
30 中継装置
101 受信部
102 パケット識別部
103 パケットバッファ
104 第2パケットバッファ
105 受信時刻取得部
106 受信間隔測定部
107 計時部
108 制御部
109 送信部
110 パケット情報取得部
111 受信時間情報取得部
201 送信部
202 受信部
203 操作部
204 表示部
205 記憶部
206 制御部
207 計時部
2061 パケット情報取得部
2062 パケット生成部
2063 応答待ち期間取得部
2064 時刻設定部
10
Claims (9)
前記計時部から基準時刻を取得する基準時刻取得部と、
中継装置を介して端末から送信された各種パケットを受信する受信部と、
他の各種パケットを、前記中継装置を介して前記端末に送信する送信部と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む前記受信部により受信された第1パケット及び第2パケットを識別するパケット識別部と、
受信した前記第1パケット及び前記第2パケットに含まれる情報を取得するパケット情報取得部と、
前記パケット識別部で識別された前記第1パケット及び前記第2パケットの受信タイミングに基づき、前記第2パケットの受信時刻である第2パケット受信時刻を取得するとともに、前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を取得する受信時間情報取得部と、
前記パケット情報取得部で取得された前記パケット送信間隔と前記受信時間情報取得部で取得された前記受信間隔との差が、所定の範囲内にあるかどうかを判定する判定部と、
前記基準時刻取得部で取得された前記基準時刻を含む基準時刻パケットを生成し、前記送信部に送信の指示を出し、前記判定部で前記差が前記所定の範囲内にあるとの判定がなされたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信時刻から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成し、前記送信部に送信の指示を出すパケット生成部と、を備える、
ことを特徴とするタイムサーバ。 A timekeeping section for measuring the reference time;
A reference time acquisition unit for acquiring a reference time from the time measuring unit;
A receiving unit for receiving various packets transmitted from the terminal via the relay device;
A transmission unit that transmits other various packets to the terminal via the relay device;
Packets transmitted from the terminal at a predetermined transmission interval, received by the receiving unit that is set to have different transfer priorities in the relay device and includes the transmission interval as a packet transmission interval. A packet identification unit for identifying the first packet and the second packet,
A packet information acquisition unit for acquiring information included in the received first packet and the second packet;
Based on the reception timing of the first packet and the second packet identified by the packet identification unit, the second packet reception time that is the reception time of the second packet is acquired, and the first packet is received. A reception time information acquisition unit for acquiring a reception interval indicating an interval from when the second packet is received;
A determination unit that determines whether a difference between the packet transmission interval acquired by the packet information acquisition unit and the reception interval acquired by the reception time information acquisition unit is within a predetermined range;
A reference time packet including the reference time acquired by the reference time acquisition unit is generated, a transmission instruction is issued to the transmission unit, and the determination unit determines that the difference is within the predetermined range. A response packet that is a response packet to the second packet, and includes a response period that is a period from the second packet reception time to the transmission of the response packet, and sends a transmission instruction to the transmission unit. A packet generation unit for outputting,
A time server characterized by this.
ことを特徴とする請求項1に記載のタイムサーバ。 The packet generation unit generates the reference time packet when the determination unit determines that the difference is within the predetermined range, and issues a transmission instruction to the terminal to the transmission unit.
The time server according to claim 1.
ことを特徴とする請求項2に記載のタイムサーバ。 The packet generation unit replaces the generation of the reference time packet by generating the response packet including the reference time.
The time server according to claim 2.
中継装置を介してタイムサーバに各種パケットを送信する送信部と、
前記中継装置を介して前記タイムサーバから他の各種パケットを受信する受信部と、
前記タイムサーバを送信先とするパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成し、前記送信部に、前記第1及び前記第2パケットを、その番号順に、前記送信間隔で送信する指示を出すパケット生成部と、
前記受信部で受信したパケットから、パケットの種類を識別し、基準時刻の情報を含む基準時刻パケットである場合、該基準時刻パケットに含まれる前記基準時刻の情報を取得し、前記第2パケットに対する応答のパケットである応答パケットである場合、該応答パケットに含まれる、前記タイムサーバでの前記第2パケット受信から前記応答パケット送信までの期間である応答期間の情報を取得するパケット情報取得部と、
前記パケット生成部で前記第2パケットを送信する指示を出したときから前記パケット情報取得部で識別された前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定部と、
前記パケット情報取得部が取得した前記基準時刻、前記応答期間、及び前記応答待ち期間測定部が測定した前記応答待ち期間に基づいて前記計時部の時刻を設定する時刻設定部と、を備える、
ことを特徴とする端末。 A timekeeping section that keeps time,
A transmission unit that transmits various packets to the time server via the relay device;
A receiving unit for receiving various other packets from the time server via the relay device;
A packet having the time server as a transmission destination, a first packet including a packet transmission interval indicating a mutual transmission interval in either one of the packets, wherein the transfer priority in the relay device is set to a different priority. A packet generation unit that generates two packets and issues an instruction to the transmission unit to transmit the first and second packets in the order of their numbers;
From the packet received by the receiving unit, if the packet is a reference time packet that includes the reference time information, the type of the packet is identified, the reference time information included in the reference time packet is acquired, and the second packet A packet information acquisition unit that acquires information on a response period that is a period from reception of the second packet at the time server to transmission of the response packet included in the response packet when the response packet is a response packet; ,
A response waiting period measurement unit that measures a response waiting period that indicates a period from when the packet generation unit issues an instruction to transmit the second packet to when the packet information acquisition unit identifies the response packet; ,
A time setting unit that sets the time of the time measuring unit based on the reference time acquired by the packet information acquisition unit, the response period, and the response waiting period measured by the response waiting period measurement unit,
A terminal characterized by that.
前記パケット生成部は、前記第1パケット及び前記第2パケットのいずれかに含まれる前記パケット送信間隔を、前記送信間隔調整部により調整された送信間隔に等しく設定し、
前記送信部は、前記調整された送信間隔で前記第1パケット及び前記第2パケットを送信する、
ことを特徴とする請求項4に記載の端末。 A transmission interval adjustment unit that adjusts the transmission interval according to whether the reception unit has received the response packet;
The packet generation unit sets the packet transmission interval included in either the first packet or the second packet equal to the transmission interval adjusted by the transmission interval adjustment unit;
The transmitter transmits the first packet and the second packet at the adjusted transmission interval;
The terminal according to claim 4.
ことを特徴とする時刻同期システム。 It is comprised with the time server which concerns on any one of Claims 1 thru | or 3, and the terminal which concerns on Claim 4 or 5.
A time synchronization system characterized by that.
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成する、前記端末におけるパケット生成工程と、
前記第1パケット及び前記第2パケットを前記端末から送信し、前記タイムサーバで受信するパケット送受信工程と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する、前記タイムサーバにおける受信間隔測定工程と、
受信された前記第1パケット又は前記第2パケットのいずれかに含まれる前記パケット送信間隔と測定された前記受信間隔との差が所定の範囲内にあるかどうかを判定する、前記タイムサーバにおける判定工程と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信の準備が完了するまでの期間である応答期間を含む応答パケットを生成し、前記中継装置を介して前記端末に送信する指示をする、前記タイムサーバにおける応答パケット生成工程と、
前記応答パケット生成工程での指示に従って、生成された前記応答パケットを前記タイムサーバから送信し、前記端末で受信する応答パケット送受信工程と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する、前記端末における応答待ち期間測定工程と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、端末側で時刻を計時する計時部の時刻を前記タイムサーバが計時する前記基準時刻に同期するように設定する、前記端末における時刻設定工程と、を備える、
ことを特徴とする時刻同期方法。 A reference time is acquired from a timekeeping unit that measures a reference time with a time server, and the acquired reference time is transmitted to the terminal via the relay device, and received at the terminal,
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval Generating a packet in the terminal, and
A packet transmitting / receiving step of transmitting the first packet and the second packet from the terminal and receiving the packet by the time server;
A reception interval measurement step in the time server for measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination in the time server that determines whether a difference between the packet transmission interval included in either the received first packet or the second packet and the measured reception interval is within a predetermined range Process,
A response period that is a response packet to the second packet when the difference is determined to be within a predetermined range, and is a period from when the second packet is received until preparation for transmission of the response packet is completed Generating a response packet, and instructing to transmit to the terminal via the relay device, a response packet generating step in the time server,
In response to the instruction in the response packet generating step, the generated response packet is transmitted from the time server, and the response packet is transmitted and received at the terminal.
A response waiting period measuring step in the terminal for measuring a response waiting period indicating a period from when the second packet is transmitted until the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time server measures the time of the time measuring unit that measures time on the terminal side A time setting step in the terminal that is set to synchronize with a reference time,
A time synchronization method characterized by the above.
基準時刻を計時する計時部から基準時刻を取得し、取得した基準時刻を、中継装置を介して端末に送信する基準時刻送信手順と、
前記端末から所定の送信間隔で送信されたパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定され、前記送信間隔をパケット送信間隔としていずれかに含む第1パケット及び第2パケットを、前記中継装置を介して受信するパケット受信手順と、
前記第1パケットを受信してから前記第2パケットを受信するまでの間隔を示す受信間隔を測定する受信間隔測定手順と、
前記パケット送信間隔と前記受信間隔との差が所定の範囲内にあるかどうかを判定する判定手順と、
前記差が所定の範囲内にあると判定されたとき、前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットの送信までの期間である応答期間を含む応答パケットを生成する応答パケット生成手順と、
生成した前記応答パケットを、前記中継装置を介して前記端末に送信する応答パケット送信手順と、を実行させる、
ことを特徴とするプログラム。 On the computer,
A reference time transmission procedure for acquiring a reference time from a timer unit that measures the reference time, and transmitting the acquired reference time to the terminal via the relay device;
A packet transmitted from the terminal at a predetermined transmission interval, and a first packet including a first packet including the transmission interval as a packet transmission interval, the transfer priority of the relay device being set to different priorities A packet receiving procedure for receiving two packets via the relay device;
A reception interval measurement procedure for measuring a reception interval indicating an interval from reception of the first packet to reception of the second packet;
A determination procedure for determining whether a difference between the packet transmission interval and the reception interval is within a predetermined range;
When it is determined that the difference is within a predetermined range, a response packet that is a response packet to the second packet and includes a response period that is a period from reception of the second packet to transmission of the response packet. A response packet generation procedure to be generated;
A response packet transmission procedure for transmitting the generated response packet to the terminal via the relay device;
A program characterized by that.
基準時刻を送信するタイムサーバから、中継装置を介して前記基準時刻を受信する基準時刻受信手順と、
前記タイムサーバに送信するパケットであり、前記中継装置での転送の優先度を互いに異なる優先度に設定し、いずれか一方に相互の送信間隔を示すパケット送信間隔を含む第1パケット及び第2パケットを生成するパケット生成手順と、
前記第1パケット及び前記第2パケットを前記送信間隔で、その番号順に、前記中継装置を介して前記タイムサーバに送信する送信手順と、
前記第2パケットに対する応答のパケットであり、前記第2パケット受信から前記応答のパケットを送信するまでの期間である応答期間を含む応答パケットを前記タイムサーバから前記中継装置を介して受信する応答パケット受信手順と、
前記第2パケットを送信してから前記応答パケットを受信するまでの期間を示す応答待ち期間を測定する応答待ち期間測定手順と、
前記タイムサーバから受信した前記基準時刻、測定した前記応答待ち期間、及び前記応答パケットから取得した前記応答時間に基づいて、時刻を計時する計時部の時刻を前記タイムサーバが計時する基準時刻に同期するように設定する時刻設定手順と、を実行させる、
ことを特徴とするプログラム。 On the computer,
A reference time receiving procedure for receiving the reference time via a relay device from a time server that transmits the reference time;
A first packet and a second packet, which are packets to be transmitted to the time server, wherein the priority of transfer in the relay device is set to a different priority, and one of the packets includes a packet transmission interval indicating a mutual transmission interval A packet generation procedure for generating
A transmission procedure for transmitting the first packet and the second packet to the time server via the relay device in the transmission interval in the order of the numbers;
A response packet that is a response packet to the second packet and that receives a response packet including a response period that is a period from when the second packet is received until the response packet is transmitted from the time server via the relay device Receiving procedure,
A response waiting period measurement procedure for measuring a response waiting period indicating a period from when the second packet is transmitted to when the response packet is received;
Based on the reference time received from the time server, the measured response waiting period, and the response time acquired from the response packet, the time of the time measuring unit that measures time is synchronized with the reference time measured by the time server. And a time setting procedure for setting to
A program characterized by that.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011209910A JP2013074338A (en) | 2011-09-26 | 2011-09-26 | Time server, terminal, time synchronization system, time synchronization method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011209910A JP2013074338A (en) | 2011-09-26 | 2011-09-26 | Time server, terminal, time synchronization system, time synchronization method, and program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2013074338A true JP2013074338A (en) | 2013-04-22 |
Family
ID=48478513
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011209910A Pending JP2013074338A (en) | 2011-09-26 | 2011-09-26 | Time server, terminal, time synchronization system, time synchronization method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2013074338A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101836837B1 (en) * | 2017-09-25 | 2018-03-09 | 주식회사 엔토소프트 | METHOD FOR Time difference compensation in positioning system and positioning system therefor |
| EP3185461A4 (en) * | 2014-08-18 | 2018-07-18 | Hitachi, Ltd. | Communication control apparatus and network relay apparatus |
| WO2019059478A1 (en) * | 2017-09-25 | 2019-03-28 | 주식회사 엔토소프트 | Method and communication system for simultaneously setting coordinates of anchor and tag by using wireless transmission and reception, method for compensating for time difference in positioning system, and positioning system |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0779253A (en) * | 1993-09-08 | 1995-03-20 | Toshiba Corp | Packet switch |
| US7088677B1 (en) * | 2002-03-01 | 2006-08-08 | Bellsouth Intellectual Property Corporation | System and method for delay-based congestion detection and connection admission control |
| US20070097865A1 (en) * | 2005-11-03 | 2007-05-03 | Song Jong T | Method for measuring end-to-end delay in asynchronous packet transfer network, and asynchronous packet transmitter and receiver |
| JP2007174676A (en) * | 2005-12-23 | 2007-07-05 | Agilent Technol Inc | Eliminating delay variation in network time synchronization |
| US20100040090A1 (en) * | 2008-08-14 | 2010-02-18 | Electronics and Telectcommunicatios Research Institte | Synchronization method for allowing fixed time delay and bridge employing the same |
| JP2010074600A (en) * | 2008-09-19 | 2010-04-02 | Kddi Corp | Network load estimation method of deducing network queue delay and network circuit usage ratio |
| JP2010081381A (en) * | 2008-09-26 | 2010-04-08 | Brother Ind Ltd | Communication apparatus, and communication program |
| JP2010213101A (en) * | 2009-03-11 | 2010-09-24 | Toshiba Corp | Relay apparatus and program of relaying message |
| JP2011135482A (en) * | 2009-12-25 | 2011-07-07 | Nec Corp | Time synchronizing system, master node, slave node, repeater, time synchronizing method, and program for time synchronization |
-
2011
- 2011-09-26 JP JP2011209910A patent/JP2013074338A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0779253A (en) * | 1993-09-08 | 1995-03-20 | Toshiba Corp | Packet switch |
| US7088677B1 (en) * | 2002-03-01 | 2006-08-08 | Bellsouth Intellectual Property Corporation | System and method for delay-based congestion detection and connection admission control |
| US20070097865A1 (en) * | 2005-11-03 | 2007-05-03 | Song Jong T | Method for measuring end-to-end delay in asynchronous packet transfer network, and asynchronous packet transmitter and receiver |
| JP2007174676A (en) * | 2005-12-23 | 2007-07-05 | Agilent Technol Inc | Eliminating delay variation in network time synchronization |
| US20100040090A1 (en) * | 2008-08-14 | 2010-02-18 | Electronics and Telectcommunicatios Research Institte | Synchronization method for allowing fixed time delay and bridge employing the same |
| JP2010074600A (en) * | 2008-09-19 | 2010-04-02 | Kddi Corp | Network load estimation method of deducing network queue delay and network circuit usage ratio |
| JP2010081381A (en) * | 2008-09-26 | 2010-04-08 | Brother Ind Ltd | Communication apparatus, and communication program |
| JP2010213101A (en) * | 2009-03-11 | 2010-09-24 | Toshiba Corp | Relay apparatus and program of relaying message |
| JP2011135482A (en) * | 2009-12-25 | 2011-07-07 | Nec Corp | Time synchronizing system, master node, slave node, repeater, time synchronizing method, and program for time synchronization |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3185461A4 (en) * | 2014-08-18 | 2018-07-18 | Hitachi, Ltd. | Communication control apparatus and network relay apparatus |
| KR101836837B1 (en) * | 2017-09-25 | 2018-03-09 | 주식회사 엔토소프트 | METHOD FOR Time difference compensation in positioning system and positioning system therefor |
| WO2019059478A1 (en) * | 2017-09-25 | 2019-03-28 | 주식회사 엔토소프트 | Method and communication system for simultaneously setting coordinates of anchor and tag by using wireless transmission and reception, method for compensating for time difference in positioning system, and positioning system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU2022252735B2 (en) | Method and apparatus for synchronizing applications' consumption of remote data | |
| US8755785B2 (en) | Collaborative image control | |
| US8081663B2 (en) | Time synchronization method and relay apparatus | |
| US10673551B2 (en) | Time synchronization method and apparatus | |
| US9118977B2 (en) | Content synchronization system, content-synchronization control device, and content playback device | |
| US20190064873A1 (en) | Device, System, and Method for Synchronizing Time Partition Windows | |
| CN109996325B (en) | A clock synchronization system and method for wireless sensor network | |
| CN112787742A (en) | Clock synchronization method and device, wireless earphone and readable storage medium | |
| JP6707209B1 (en) | Time synchronization system, master device, slave device and program | |
| US8976818B2 (en) | Communication device, a control device, and a non-transitory computer readable medium | |
| JP2013074338A (en) | Time server, terminal, time synchronization system, time synchronization method, and program | |
| JP2013029319A (en) | Slave device, electronic apparatus system, master device, time synchronization method, and program | |
| WO2012070341A1 (en) | Communication terminal, method for controlling communication terminal, and program | |
| JP2013175852A (en) | Time synchronization system, master unit, slave unit, time synchronization method and time synchronization program | |
| JP2012175567A (en) | Synchronization system, and synchronization method of synchronization system | |
| CN117856961A (en) | Clock synchronization method and related device | |
| CN111769895A (en) | Multi-device timing method and system and device timing method and device | |
| CN114546928B (en) | Method and device for synchronizing core cluster, control method and device, core and medium | |
| US20250392813A1 (en) | Time distribution apparatus | |
| US9405719B2 (en) | Circuitry to generate and/or use at least one transmission time in at least one descriptor | |
| JP2013168884A (en) | Time synchronization system, time transmission apparatus, time reception apparatus, time synchronization method and program | |
| JP2012120029A (en) | Control system, communication device and communication method | |
| US11627546B2 (en) | Delaying rendering time for audio computing systems | |
| JP2015115915A (en) | Data transmission control device and data transmission control method | |
| US11240060B1 (en) | Apparatus, system, and method for providing simultaneous delivery of output communications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140806 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150515 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150526 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20151006 |