[go: up one dir, main page]

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 PDF

Info

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
Application number
JP2011209910A
Other languages
Japanese (ja)
Inventor
Tsutomu Nakamura
努 中村
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.)
NEC Saitama Ltd
Original Assignee
NEC Saitama Ltd
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 NEC Saitama Ltd filed Critical NEC Saitama Ltd
Priority to JP2011209910A priority Critical patent/JP2013074338A/en
Publication of JP2013074338A publication Critical patent/JP2013074338A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To synchronize the time of a terminal to a reference time with high accuracy by discriminating a degree of congestion of a relay device without inquiring the relay device.SOLUTION: A control section 108 transmits to a terminal a reference time acquired from a clock section 107 via a transmission section 109. A packet identification section 102 receives via a receiving section 101 a first packet and a second packet having different priorities which have been transmitted by the terminal at a predetermined packet transmission interval. A receiving interval measuring section 106 measures a packet receiving interval that indicates an interval from the first packet receiving to the second packet receiving. The control section 108 creates a response packet that is a response to the second packet, and transmits the created response packet to the terminal via a transmission section 109, on the basis of a packet transmission interval contained in the first packet or the second packet, and the measured packet receiving interval.

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). .

特開2010−081381号公報JP 2010-081381 A

特許文献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.

本発明の実施形態に係る時刻同期システムの構成を示すブロック図である。It is a block diagram which shows the structure of the time synchronization system which concerns on embodiment of this invention. 実施形態に係るタイムサーバ、端末、中継装置の間で送受信されるパケットを説明するための図である。It is a figure for demonstrating the packet transmitted / received between the time server which concerns on embodiment, a terminal, and a relay apparatus. 実施形態に係るタイムサーバの構成を示すブロック図である。It is a block diagram which shows the structure of the time server which concerns on embodiment. 実施形態に係る基準時刻パケット、応答パケット、第1パケット、第2パケットの構成を示す図である。It is a figure which shows the structure of the reference | standard time packet which concerns on embodiment, a response packet, a 1st packet, and a 2nd packet. 実施形態に係る、中継装置の混雑度を判別する処理を説明するための図である。It is a figure for demonstrating the process which discriminate | determines the congestion degree of the relay apparatus based on embodiment. 実施形態に係る、第1パケット及び第2パケットの伝送遅延を説明するための図である。It is a figure for demonstrating the transmission delay of the 1st packet and 2nd packet based on Embodiment. 実施形態に係る端末の構成を示すブロック図である。It is a block diagram which shows the structure of the terminal which concerns on embodiment. 実施形態に係るタイマサーバによる基準時刻送信処理のフローチャートである。It is a flowchart of the reference time transmission process by the timer server which concerns on embodiment. 実施形態に係る第1パケット受信処理のフローチャートである。It is a flowchart of the 1st packet reception process which concerns on embodiment. 実施形態に係る第2パケット受信処理のフローチャートであるIt is a flowchart of the 2nd packet reception process which concerns on embodiment. 実施形態に係る混雑度判定用パラメータ取得処理のフローチャートである。It is a flowchart of the parameter acquisition process for congestion degree determination which concerns on embodiment. 実施形態に係る応答パケット生成・送信処理のフローチャートである。6 is a flowchart of response packet generation / transmission processing according to the embodiment. 実施形態に係る端末による時刻同期処理のフローチャートである。It is a flowchart of the time synchronous process by the terminal which concerns on embodiment. 実施形態に係る基準時刻パケット受信処理のフローチャートである。It is a flowchart of the reference time packet reception processing according to the embodiment. 実施形態に係る混雑度判定用パケット送信処理のフローチャートである。It is a flowchart of the packet transmission process for congestion degree determination which concerns on embodiment. 実施形態に係る時刻補正処理のフローチャートである。It is a flowchart of the time correction process which concerns on embodiment. 実施形態に係るタイムサーバの簡略化された構成を示すブロック図である。It is a block diagram which shows the simplified structure of the time server which concerns on embodiment. 実施形態に係る端末の簡略化された構成を示すブロック図である。It is a block diagram which shows the simplified structure of the terminal which concerns on embodiment.

(実施形態)
以下、本発明の実施形態に係る時刻同期システム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(20、20、・・・、20)とで構成される。タイムサーバ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 time server 10 and a plurality of terminals 20 (20 1 , 20 2 ,..., 20 n ). The time server 10 transmits a reference time to the terminal 20, and the terminal 20 sets the time of a timer unit (specifically, an RTC) that is a timer provided in the terminal 20 so as to be synchronized with the reference time. The time server 10 and the terminal 20 transmit and receive information via the relay device 30.

具体的には、タイムサーバ10は、図2に示すように、基準時刻を含む基準時刻パケットを端末20に送信した後、中継装置30の混雑度を判別するためするために用いられる、互いに異なる送信優先度で端末20から送信された第1パケット及び第2パケットを受信し、受信した第1パケット及び第2パケットに基づいて中継装置30の混雑度が小さいと判別したときに、第2パケットに対する応答として、基準時刻を補正するために必要な情報を含む応答パケットを端末20に送信する。   Specifically, as shown in FIG. 2, the time servers 10 are different from each other, which are used to determine the degree of congestion of the relay device 30 after transmitting a reference time packet including a reference time to the terminal 20. When the first packet and the second packet transmitted from the terminal 20 with the transmission priority are received, and it is determined that the congestion degree of the relay device 30 is small based on the received first packet and second packet, the second packet As a response to, a response packet including information necessary for correcting the reference time is transmitted to the terminal 20.

一方、端末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 time server 10, the terminal 20 transmits the first packet and the second packet described above to the time server 10 at a predetermined packet transmission interval. 10 receives a response packet and synchronizes the time of the terminal 20 with the reference time based on the received reference time packet and response packet. Details of the reference time packet, the first packet, the second packet, and the response packet will be described later. In FIG. 2, T0 to T6 indicate the transmission or reception time of each packet. Note that the time with parentheses is not necessarily an acquisition target.

以下、タイムサーバ10と端末20の構成を説明するとともに、中継装置30についても説明する。   Hereinafter, the configuration of the time server 10 and the terminal 20 will be described, and the relay device 30 will also be described.

タイムサーバ10は、基準時刻を送信する装置であって、図3に示すように、受信部101と、パケット識別部102と、パケットバッファ103と、第2パケットバッファ104と、受信時刻取得部105と、受信間隔測定部106と、計時部107と、制御部108と、送信部109と、を備えている。   The time server 10 is a device that transmits a reference time. As illustrated in FIG. 3, the time server 10 includes a reception unit 101, a packet identification unit 102, a packet buffer 103, a second packet buffer 104, and a reception time acquisition unit 105. A reception interval measuring unit 106, a time measuring unit 107, a control unit 108, and a transmitting unit 109.

受信部101は、通信装置の一部で、通信インタフェース等から構成され、端末20等から送信されてきたパケットを含む各種情報信号を受信する。   The receiving unit 101 is a part of the communication device, is configured with a communication interface or the like, and receives various information signals including packets transmitted from the terminal 20 or the like.

パケット識別部102は、プロセッサ、メモリ、通信インタフェース等から構成され、メモリに記憶された所定のプログラムを実行することにより、受信したパケットの種類に応じた処理を行う。   The packet identification unit 102 includes a processor, a memory, a communication interface, and the like, and performs processing according to the type of received packet by executing a predetermined program stored in the memory.

具体的には、パケット識別部102は、受信したパケットの種類を識別する。パケット識別部102は、受信したパケットが第1パケットであると識別した場合、受信間隔測定部106に時間測定の開始を指示する測定開始信号を出力するとともに、受信したパケットをパケットバッファ103に記憶する。   Specifically, the packet identification unit 102 identifies the type of the received packet. When the packet identification unit 102 identifies that the received packet is the first packet, the packet identification unit 102 outputs a measurement start signal instructing the reception interval measurement unit 106 to start time measurement, and stores the received packet in the packet buffer 103. To do.

また、パケット識別部102は、受信したパケットが第2パケットであると判別した場合、受信間隔測定部106に対しては時間測定の終了を指示する測定終了信号を出力し、受信時刻取得部105に対しては受信時刻取得のタイミングを示すタイミング信号を出力するとともに、受信した第2パケットを第2パケットバッファ104に記憶する。なお、パケット識別部102は、受信したパケットが第1パケット又は第2パケットのいずれでもないと判別した場合も、受信したパケットをパケットバッファ103に記憶させる。   When the packet identification unit 102 determines that the received packet is the second packet, the packet identification unit 102 outputs a measurement end signal instructing the end of time measurement to the reception interval measurement unit 106, and receives the reception time acquisition unit 105. In response to this, a timing signal indicating the timing of reception time acquisition is output, and the received second packet is stored in the second packet buffer 104. Note that the packet identification unit 102 stores the received packet in the packet buffer 103 even when it is determined that the received packet is neither the first packet nor the second packet.

パケットバッファ103は、メモリ等から構成され、第2パケット以外のパケットを記憶する。   The packet buffer 103 is composed of a memory or the like, and stores packets other than the second packet.

第2パケットバッファ104は、メモリ等から構成され、パケット識別部102で識別された第2パケットを記憶する。   The second packet buffer 104 includes a memory or the like, and stores the second packet identified by the packet identification unit 102.

受信時刻取得部105は、例えばラッチメモリで構成され、パケット識別部102のタイミング信号を受けて、計時部107から、タイミング信号受信時の現在時刻、すなわち第2パケットを受信した時刻を示す第2パケット受信時刻を読み出して取得し、これを記憶する。   The reception time acquisition unit 105 is configured by, for example, a latch memory, receives a timing signal from the packet identification unit 102, and receives a timing signal from the time measuring unit 107, that is, a second time indicating the current time at which the timing signal is received, that is, the second packet is received The packet reception time is read and acquired and stored.

受信間隔測定部106は、タイマで構成され、パケット識別部102から供給された測定開始信号に応答して、タイマに残っているこれまでの測定結果を0クリアしたのち時間測定を開始し、パケット識別部102から供給された測定終了信号に応答して時間測定を終了する。タイマは、例えばカウンタで構成され、計時部107のクロック信号発生器から出力されるクロック信号をカウンタに入力し、測定開始信号でクロック信号の計数を開始し、測定終了信号で計数を停止することによりその間の経過時間を測定する。測定結果は第1パケット受信から第2パケット受信までの時間間隔を示すパケット受信間隔(RI)となる。このとき、受信間隔測定部106は、パケット受信間隔(RI)の測定を終了した旨を判定部1084に通知する。なお、パケット識別部102が2パケットを第1パケットより先に受信した場合には、パケット識別部102は測定開始指示信号をパケット受信間隔カウンタに供給しない。   The reception interval measurement unit 106 includes a timer, and in response to the measurement start signal supplied from the packet identification unit 102, clears the previous measurement results remaining in the timer to 0 and starts time measurement. In response to the measurement end signal supplied from the identification unit 102, the time measurement is ended. The timer is composed of, for example, a counter, and inputs a clock signal output from the clock signal generator of the time measuring unit 107 to the counter, starts counting the clock signal with the measurement start signal, and stops counting with the measurement end signal. Measure the elapsed time between. The measurement result is a packet reception interval (RI) indicating a time interval from the first packet reception to the second packet reception. At this time, the reception interval measurement unit 106 notifies the determination unit 1084 that the measurement of the packet reception interval (RI) is finished. When the packet identification unit 102 receives two packets before the first packet, the packet identification unit 102 does not supply a measurement start instruction signal to the packet reception interval counter.

計時部107は、時計である。計時部107は、クロック信号発生器を内蔵し、そこから供給されたクロック信号に基づいて、現在日時(基準時刻)を計時する。   The timer unit 107 is a clock. The clock unit 107 includes a clock signal generator, and clocks the current date and time (reference time) based on the clock signal supplied from the clock signal generator.

制御部108は、CPU(Central Processing Unit)、メモリ等から構成され、メモリに記憶された所定のプログラムをCPUが実行することにより、タイムサーバ10の全体の動作を制御する。制御部108は、機能構成要素として、パケット情報取得部1081と、基準時取得部1082と、パケット生成部1083と、判定部1084とを備えている。これらの機能も、メモリに記憶された所定のプログラムをCPUが実行することにより実現される。   The control unit 108 includes a CPU (Central Processing Unit), a memory, and the like, and controls the overall operation of the time server 10 when the CPU executes a predetermined program stored in the memory. The control unit 108 includes a packet information acquisition unit 1081, a reference time acquisition unit 1082, a packet generation unit 1083, and a determination unit 1084 as functional components. These functions are also realized by the CPU executing a predetermined program stored in the memory.

パケット情報取得部1081は、パケットバッファ103に記憶されている第1パケット、及び第2パケットバッファ104に記憶されている第2パケットのそれぞれに含まれる情報を取得する。この情報は、後述するように、第1パケット、第2パケットの送信元である端末のアドレス、連番、及び第1パケットに含まれるパケット送信間隔(TI)である。   The packet information acquisition unit 1081 acquires information included in each of the first packet stored in the packet buffer 103 and the second packet stored in the second packet buffer 104. As will be described later, this information includes the address of the terminal that is the transmission source of the first packet and the second packet, the serial number, and the packet transmission interval (TI) included in the first packet.

基準時取得部1082は、所定のタイミング(例えば、定期的、周期的な日時)になったときに、計時部107から現在時刻を基準時刻として取得する。   The reference time acquisition unit 1082 acquires the current time as the reference time from the time measuring unit 107 when a predetermined timing (for example, periodic or periodic date and time) comes.

パケット生成部1083は、取得された基準時刻から基準時刻パケットを生成し、生成した基準時刻パケットを送信部109に供給し送信を指示する。基準時刻パケットは、各種パケットの構成を示す図4の(a)に示すように、宛先のアドレスを示す宛先情報を格納する宛先フィールドと、送信元のアドレスを示す送信元情報を格納する送信元フィールドと、パケットの種類を示すパケット種別情報を格納するパケット種別フィールドと、基準時刻を格納する基準時刻フィールドと、を備えている。   The packet generation unit 1083 generates a reference time packet from the acquired reference time, supplies the generated reference time packet to the transmission unit 109, and instructs transmission. As shown in FIG. 4A showing the configuration of various packets, the reference time packet includes a destination field for storing destination information indicating a destination address, and a source for storing source information indicating a source address. A field, a packet type field that stores packet type information indicating the type of packet, and a reference time field that stores a reference time.

また、パケット生成部1083は、後述する判定部1084から中継装置30の混雑度が小さい旨の通知を受けたときに、第1及び第2パケットの送信元である端末20に第2パケットに対する応答である応答パケットを生成し、生成した応答パケットを送信部109に供給し送信を指示する。応答パケットは、図4(b)に示すように、宛先フィールドと、送信元フィールドと、パケットの種類を示す情報を格納するパケット種別フィールドと、第1パケット、第2パケット及び応答パケットが一連のパケットであることを示す連番情報を格納する連番フィールドと、第2パケットを受信してから応答パケットを送信するまでの期間を示す応答期間(RT)を格納する応答期間フィールドと、を備えている。   When the packet generation unit 1083 receives a notification from the determination unit 1084 described later that the degree of congestion of the relay device 30 is low, the packet generation unit 1083 responds to the terminal 20 that is the transmission source of the first and second packets with respect to the second packet. The response packet is generated, and the generated response packet is supplied to the transmission unit 109 to instruct transmission. As shown in FIG. 4B, the response packet includes a destination field, a transmission source field, a packet type field for storing information indicating the type of packet, a first packet, a second packet, and a response packet. A serial number field that stores serial number information indicating that the packet is a packet; and a response period field that stores a response period (RT) indicating a period from when the second packet is received until the response packet is transmitted. ing.

判定部1084は、受信間隔測定部106からパケット受信間隔(RI)の測定を終了した旨の通知を受けたときに、パケット情報取得部1081で取得した第1パケットに含まれるパケット送信間隔(TI)と受信間隔測定部106で測定されたパケット受信間隔(RI)とに基づいて、中継装置30の混雑度を判別する。   When the determination unit 1084 receives a notification from the reception interval measurement unit 106 that the measurement of the packet reception interval (RI) is completed, the determination unit 1084 receives the packet transmission interval (TI) included in the first packet acquired by the packet information acquisition unit 1081. ) And the packet reception interval (RI) measured by the reception interval measuring unit 106, the congestion degree of the relay device 30 is determined.

具体的には、判定部1084は、図5に示すように、受信間隔測定部106で測定されたパケット受信間隔(RI)とパケットバッファ103に記憶された第1パケットに含まれるパケット送信間隔(TI)との差分(D)の絶対値が、制御部108のメモリに記憶された所定の閾値δ(>0)以下であるとき、中継装置30の混雑度が小さいと判別し、差分Dの絶対値が閾値δを超えるときに、中継装置30の混雑度が大きいと判別する。   Specifically, as illustrated in FIG. 5, the determination unit 1084 includes a packet reception interval (RI) measured by the reception interval measurement unit 106 and a packet transmission interval (included in the first packet stored in the packet buffer 103). When the absolute value of the difference (D) from TI) is equal to or less than a predetermined threshold value δ (> 0) stored in the memory of the control unit 108, it is determined that the degree of congestion of the relay device 30 is small, and the difference D When the absolute value exceeds the threshold δ, it is determined that the degree of congestion of the relay device 30 is large.

すなわち、判定部1084は、パケット送信間隔(TI)−δ≦パケット受信間隔(RI)≦パケット送信間隔(TI)+δを満たすときに、中継装置30の混雑度が小さいと判別し、パケット受信間隔(RI)<パケット送信間隔(TI)−δ又はパケット受信間隔(RI)>パケット送信間隔(TI)+δを満たすときに、中継装置30の混雑度が大きいと判別する。   That is, the determination unit 1084 determines that the congestion degree of the relay device 30 is small when the packet transmission interval (TI) −δ ≦ packet reception interval (RI) ≦ packet transmission interval (TI) + δ is satisfied, and the packet reception interval When (RI) <packet transmission interval (TI) −δ or packet reception interval (RI)> packet transmission interval (TI) + δ is satisfied, it is determined that the degree of congestion of the relay device 30 is large.

混雑度の判定についてもう少し詳しく説明する。図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パケットの伝送遅延期間をα、第2パケットの伝送遅延期間をβとしたときαとβとはほぼ同じであることを示す。このときのパケット受信間隔(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 relay device 30. FIG. 6A shows a case where the first packet and the second packet are transmitted from the terminal 20 to the time server 10 at the packet transmission interval (TI) with the horizontal axis as the time axis. 6B to 6E show the timing of receiving the first packet and the second packet by the time server and the packet reception interval (RI) at that time, with the horizontal axis as the time axis, and the origin of the time axis as the time axis. 6 (a) is shown in accordance with the origin of the time axis. In this example, the priority of the second packet is set higher than the priority of the first packet. For example, the priority of the first packet is set to the normal priority, and the priority of the second packet is set to the highest priority. FIG. 6B shows that the congestion degree of the relay device 30 is small. When the transmission delay period of the first packet at this time is α 1 and the transmission delay period of the second packet is β 1 , α 1 and β 1 are almost the same. Indicates the same. The packet reception interval (RI) at this time is equal to the packet transmission interval (TI). Therefore, the difference D between the two is almost 0, and the absolute value thereof is not more than the predetermined threshold value δ. That is, FIG. 6B is a case where it is determined that the degree of congestion is small because the absolute value of the difference D is less than or equal to the threshold δ.

図6(c)は中継装置30の混雑度が図6(b)の場合に比べて大きくなった場合を示す。そのときの第1パケットの伝送遅延期間をαとしたとき、αは混雑度の増大によりαよりも大きくなる。一方、第2パケットの伝送遅延期間は、優先度を高く設定しているためβのままである。従って、パケット受信間隔(RI)はパケット送信間隔(TI)よりも小さな値となり、差分Dの絶対値は、混雑度が小さい図6(b)の場合に比べて増加する。混雑度が大きくなるほど、第1パケットの伝送遅延期間は、第2パケットの伝送遅延期間よりも大きくなり、パケット受信間隔(RI)は逆に小さくなる。そのため、混雑度の増加に伴って、差分Dの絶対値は大きくなる。応答パケット送信の判断基準を混雑度が所定のレベル以下である場合(これを混雑度が小さい場合と呼ぶ)としたとき、この所定のレベルを差分Dの絶対値に対するレベルに置き換えて閾値δを設定し、差分Dの絶対値が閾値δ以下のとき混雑度が小さいと判定する。 FIG. 6C shows a case where the degree of congestion of the relay device 30 is larger than that in the case of FIG. When the transmission delay time of the first packet at that time and α 2, α 2 is greater than alpha 1 by an increase in congestion. On the other hand, the transmission delay period of the second packet remains β 1 because the priority is set high. Therefore, the packet reception interval (RI) is smaller than the packet transmission interval (TI), and the absolute value of the difference D increases compared to the case of FIG. As the degree of congestion increases, the transmission delay period of the first packet becomes larger than the transmission delay period of the second packet, and the packet reception interval (RI) becomes smaller. Therefore, the absolute value of the difference D increases as the degree of congestion increases. When the criterion for determining the response packet transmission is a case where the degree of congestion is equal to or lower than a predetermined level (this is called a case where the degree of congestion is low), the predetermined level is replaced with a level relative to the absolute value of the difference D, and the threshold δ When the absolute value of the difference D is less than or equal to the threshold δ, it is determined that the degree of congestion is small.

図6(d)は混雑度が図6(c)よりも更に大きくなった場合を示す。このとき、第2パケットの伝送遅延期間は、優先度を高く設定しているためβのままであるが、第1パケットの伝送遅延期間はαよりも更に大きいαになり、第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 determination unit 1084 determines that the degree of congestion of the relay device 30 is small, the determination unit 1084 notifies the packet generation unit 1083 to that effect. If the determination unit 1084 determines that the degree of congestion of the relay device 30 is large, the determination unit 1084 does not notify the packet generation unit 1083 of the fact.

送信部109は、通信装置の一部で、通信インタフェース等から構成され、パケットを含む各種情報信号を端末20に送信する。例えば、パケット生成部1083から供給され、送信を指示されたパケットを端末20等に送信する。   The transmission unit 109 is a part of the communication device and is configured by a communication interface or the like, and transmits various information signals including packets to the terminal 20. For example, a packet supplied from the packet generation unit 1083 and instructed to transmit is transmitted to the terminal 20 or the like.

端末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 transmission unit 201, a reception unit 202, an operation unit 203, a display unit 204, a storage unit 205, and a control unit 206. And a time measuring unit 207.

送信部201と、受信部202とは、通信部として通信インタフェース等から構成され、中継装置30を介してタイムサーバ10等との間でパケットを含む各種信号の送受信を行う。   The transmission unit 201 and the reception unit 202 are configured by a communication interface or the like as a communication unit, and transmit and receive various signals including packets to and from the time server 10 and the like via the relay device 30.

操作部203は、キーボード、マウス等から構成され、ユーザの操作に応じた操作信号を制御部206に供給する。   The operation unit 203 includes a keyboard, a mouse, and the like, and supplies an operation signal corresponding to a user operation to the control unit 206.

表示部204は、LCD(Liquid Crystal Display)等から構成され、制御部206の制御下、様々な画像を表示する。   The display unit 204 includes an LCD (Liquid Crystal Display) or the like, and displays various images under the control of the control unit 206.

記憶部205は、メモリ等から構成され、後述する各種情報を記憶する。   The storage unit 205 includes a memory or the like, and stores various types of information that will be described later.

制御部206は、CPU、メモリ等から構成され、メモリに記憶された所定のプログラムをCPUが実行することにより、端末20の全体の動作を制御する。制御部206は、機能構成要素として、パケット情報取得部2061と、パケット生成部2062と、応答待ち期間取得部2063と、時刻設定部2064と、時刻補正部2065とを備える。後述するこれらの各機能もCPUがメモリに記憶された所定のプログラムを実行することにより実現される。   The control unit 206 includes a CPU, a memory, and the like, and controls the overall operation of the terminal 20 when the CPU executes a predetermined program stored in the memory. The control unit 206 includes a packet information acquisition unit 2061, a packet generation unit 2062, a response waiting period acquisition unit 2063, a time setting unit 2064, and a time correction unit 2065 as functional components. Each of these functions described later is also realized by the CPU executing a predetermined program stored in the memory.

パケット情報取得部2061は、受信部202を介して受信したパケットに含まれる情報を取得する。この情報は、受信したパケットが基準時刻パケットの場合、送信元アドレスと、パケットの種類と、基準時刻であり、受信したパケットが応答パケットの場合、送信元アドレスと、パケットの種類と、連番と、応答期間(RT)である。パケット情報取得部2061は、パケット種別フィールドの情報から、受信したパケットが基準時刻パケットであると判定した場合、時刻設定部2064に、そのパケットから取得した基準時刻を通知する。   The packet information acquisition unit 2061 acquires information included in the packet received via the reception unit 202. This information is the source address, packet type, and reference time if the received packet is a reference time packet. If the received packet is a response packet, this information is the source address, packet type, and serial number. And a response period (RT). When the packet information acquisition unit 2061 determines from the information in the packet type field that the received packet is a reference time packet, the packet information acquisition unit 2061 notifies the time setting unit 2064 of the reference time acquired from the packet.

また、パケット情報取得部2061は、パケット種別フィールドの情報から、受信したパケットが応答パケットであると判定した場合、計時部207から、その時点の現在時刻を応答パケットの受信時刻として取得し、記憶部205に記憶するとともに、応答パケットを受信した旨を応答待ち期間取得部2063に通知する。   When the packet information acquisition unit 2061 determines from the information in the packet type field that the received packet is a response packet, the packet information acquisition unit 2061 acquires the current time as the reception time of the response packet from the time measuring unit 207 and stores it. The information is stored in the unit 205 and the response waiting period acquisition unit 2063 is notified that the response packet has been received.

パケット生成部2062は、中継装置30の混雑度を判別するために用いられる第1パケット及び第2パケットを生成し、送信部201に対して、生成した第1パケットを、中継装置30での転送に係る優先度を所定の優先度Aに設定して、タイムサーバ10に送信するように指示を出すとともに、第1パケットの送信指示後、記憶部205に記憶されたパケット送信間隔(TI)の時間が経過した時点で、第2パケットを、中継装置30での転送に係る優先度を、優先度Aとは異なる優先度、例えば優先度Aよりも高い優先度である優先度Bに設定して、タイムサーバ10に送信するように指示を出す。また、送信の指示において、パケット生成部2062は、第2パケットの送信指示を出すときの現在の日時を計時部207から取得し、取得した日時を第2パケット送信時刻として記憶部205に記憶する。   The packet generation unit 2062 generates a first packet and a second packet that are used to determine the degree of congestion of the relay device 30, and transfers the generated first packet to the transmission unit 201 at the relay device 30. Is set to a predetermined priority A, and an instruction to transmit to the time server 10 is issued, and after the transmission instruction of the first packet, the packet transmission interval (TI) stored in the storage unit 205 is set. When the time elapses, the second packet is set to have a priority related to transfer in the relay device 30 at a priority different from the priority A, for example, a priority B that is higher than the priority A. To instruct the time server 10 to transmit. In addition, in the transmission instruction, the packet generation unit 2062 acquires the current date and time when issuing the second packet transmission instruction from the time measuring unit 207, and stores the acquired date and time in the storage unit 205 as the second packet transmission time. .

第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 relay device 30 relays the packet. , A serial number field, and a packet transmission interval field for storing a packet transmission interval (TI).

一方、第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 information acquisition unit 2061, the response waiting period acquisition unit 2063 reads the response packet reception time and the second packet transmission time from the storage unit 205, and calculates the difference between them as a response waiting period (RWT ) And notify the time correction unit 2065.

時刻設定部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 information acquisition unit 2061, the time setting unit 2064 sets the reference time in the time measuring unit 107. Further, when receiving a response waiting period (RWT) notification from the response waiting period acquisition unit 2063, the time setting unit 2064 performs time correction processing, and corrects the current time of the time measuring unit 207 based on the result. Specifically, the time setting unit 2064 calculates a transmission delay period (DT) indicating a period required for packet transmission between the time server 10 and the terminal 20 based on the following relational expression. Transmission delay period (DT) = (response waiting period (RWT) −response period (RT) included in response packet) / 2. The time setting unit 2064 corrects the current date and time counted by the time measuring unit 207 so as to advance by the calculated transmission delay period (DT).

計時部207は、時計であり、例えばRTCで構成され、現在日時を計時し、制御部206の要求に応答して、現在日時を供給する。   The timekeeping unit 207 is a clock, and is composed of, for example, an RTC.

図1に示す中継装置30は、スイッチングハブ等から構成され、タイムサーバ10から送信されたパケットをパケットに含まれる宛先に対応する端末20等に中継し、端末20から送信されたパケットをパケットに含まれる宛先に対応するタイムサーバ10等に中継する。中継装置30は、パケットに当該パケットを転送する優先度が含まれている場合、当該優先度に基づいてパケットを中継する。   The relay device 30 shown in FIG. 1 is configured by a switching hub or the like, relays a packet transmitted from the time server 10 to a terminal 20 or the like corresponding to a destination included in the packet, and converts the packet transmitted from the terminal 20 into a packet. Relay to the time server 10 corresponding to the destination included. When the packet includes a priority for transferring the packet, the relay device 30 relays the packet based on the priority.

なお、中継装置30が、パケットを転送する際の優先度は、IEEE802.1pで定義されるPCP(Priority Code Point)、RFC2474によって定義されるDSCP(DiffServ Code Point)等によって指定される。この優先度の指定方法は任意であるが、第1パケットと第2パケットで指定される優先度は、この中継装置30での優先度のことである。   The priority at which the relay apparatus 30 transfers a packet is specified by PCP (Priority Code Point) defined by IEEE802.1p, DSCP (DiffServ Code Point) defined by RFC2474, or the like. The priority designation method is arbitrary, but the priority designated by the first packet and the second packet is the priority at the relay device 30.

次に、時刻同期システム100を構成するタイムサーバ10及び端末20の動作について説明する。   Next, operations of the time server 10 and the terminal 20 constituting the time synchronization system 100 will be described.

タイムサーバ10は、一般的なタイムサーバとして基準時刻を端末20に送信するほか、中継装置30の混雑度を判別するために用いられる端末20から互いに異なる優先度が設定されて送信された第1パケット及び第2パケットを、中継装置30を介して受信し、受信した第1パケット及び第2パケットに基づいて中継装置30の混雑度が小さいと判別したときに、応答パケットを生成し、端末20に送信するという特徴的な動作を行う。   The time server 10 transmits the reference time to the terminal 20 as a general time server, and is transmitted with different priorities set from the terminal 20 used to determine the degree of congestion of the relay device 30. When the packet and the second packet are received via the relay device 30, and it is determined that the congestion degree of the relay device 30 is small based on the received first packet and second packet, a response packet is generated, and the terminal 20 It performs the characteristic operation of transmitting to.

一方、端末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 time server 10 and then transmits a first packet and a second packet having different priorities to a predetermined packet transmission interval (TI). When the time server 10 transmits a response packet to the time server 10 via the relay device 30, the terminal 20 receives the response packet and based on the received reference time packet and the response packet. A characteristic operation is performed in which the time is corrected and synchronized with the reference time measured by the time server 10.

以下、理解を容易にするため、1台の端末20がタイムサーバ10から基準時刻を受信して時刻を同期させる場合を例にしてタイムサーバ10及び端末20の特徴的な動作を中心に説明する。   Hereinafter, in order to facilitate understanding, the characteristic operation of the time server 10 and the terminal 20 will be mainly described with reference to an example in which one terminal 20 receives a reference time from the time server 10 and synchronizes the time. .

タイムサーバ10の制御部108は、所定のタイミング(例えば、定期的、周期的な日時)になったときに、図8に示す基準時刻送信処理を開始する。図8に示す各ステップ間の移行は制御部108により制御される。   The control unit 108 of the time server 10 starts the reference time transmission process shown in FIG. 8 when a predetermined timing (for example, periodic or periodic date and time) is reached. Transition between the steps shown in FIG. 8 is controlled by the control unit 108.

この処理では、まずパケット生成部1083は、図4(a)に示す基準時刻パケットを生成する(ステップS1)。基準時刻パケットに含まれる基準時刻は、基準時取得部1082により、計時部107から取得される。   In this process, first, the packet generator 1083 generates a reference time packet shown in FIG. 4A (step S1). The reference time included in the reference time packet is acquired from the time measuring unit 107 by the reference time acquisition unit 1082.

具体的には、パケット生成部1083は、制御部108のメモリに予め記憶されている端末20のIPアドレスを基準時刻パケットの宛先フィールドに設定し、制御部108のメモリに予め記憶されている自己のIPアドレスを基準時刻パケットの送信元フィールドに設定する。また、パケット生成部1083は、「基準時刻パケット」である旨のパケット種別情報をパケット種別フィールドに設定する。さらに、パケット生成部1083は、計時部107からその時点の現在時刻である基準時刻を取得し、取得した基準時刻を基準時刻パケットの基準時刻フィールドに設定する。このようにして、パケット生成部1083は、基準時刻パケットを生成する。   Specifically, the packet generation unit 1083 sets the IP address of the terminal 20 stored in advance in the memory of the control unit 108 in the destination field of the reference time packet, and the packet generation unit 1083 stores the IP address stored in advance in the memory of the control unit 108. Is set in the transmission source field of the reference time packet. Further, the packet generation unit 1083 sets the packet type information indicating the “reference time packet” in the packet type field. Further, the packet generator 1083 acquires the reference time that is the current time at that time from the timer 107, and sets the acquired reference time in the reference time field of the reference time packet. In this way, the packet generator 1083 generates a reference time packet.

パケット生成部1083は、生成した基準時刻パケットを、送信部109を介して送信する(ステップS2)。   The packet generator 1083 transmits the generated reference time packet via the transmitter 109 (step S2).

次に、タイムサーバ10は、基準時刻パケットを受信した端末20から、中継装置30の混雑度を判定するために送信される第1パケット及び第2パケットの受信処理を開始する。   Next, the time server 10 starts reception processing of the first packet and the second packet transmitted from the terminal 20 that has received the reference time packet to determine the congestion degree of the relay device 30.

タイムサーバ10の受信部101は、パケットの受信の有無を判定する(ステップS3)。パケットの受信がなければ(ステップS3;NO)、所定時間が経過したかどうかを判定し(ステップS6)、所定時間が経過していなければ(ステップS6;NO)ステップS3に戻りパケットの受信を待つ。所定時間が経過していれば(ステップS6;YES)、ステップS1に戻り、再度基準時刻パケットの生成と送信を行う。これは基準時間パケットを送信した後、あまり長い時間が経過すると、基準時間パケットを送信した時点と中継装置30の混雑度を判定する時点(すなわち第1パケット及び第2パケット受信の時点)とで中継装置30の混雑度の程度が変化してしまうため、再度基準時刻パケットの送信からやり直すためである。   The receiving unit 101 of the time server 10 determines whether or not a packet has been received (step S3). If no packet is received (step S3; NO), it is determined whether or not a predetermined time has passed (step S6). If the predetermined time has not passed (step S6; NO), the process returns to step S3 to receive the packet. wait. If the predetermined time has elapsed (step S6; YES), the process returns to step S1, and the reference time packet is generated and transmitted again. This is because when a very long time has elapsed after transmitting the reference time packet, it is determined when the reference time packet is transmitted and when the congestion degree of the relay device 30 is determined (that is, when the first packet and the second packet are received). This is because the degree of congestion of the relay device 30 changes, so that the reference time packet is transmitted again.

パケットを受信すれば(ステップS3;YES)、パケット識別部102が、パケットの種類を識別し、受信したパケットが第1パケットかどうかを判別する(ステップS4)。パケット識別部102が、受信したパケットを第1パケットと判別した場合(ステップS4;YES)、第1パケット受信処理が実行される(ステップS5)。第1パケット受信処理が終了すると、ステップS3に戻り、次のパケットの受信を待つ。   If a packet is received (step S3; YES), the packet identification unit 102 identifies the type of packet and determines whether the received packet is the first packet (step S4). When the packet identification unit 102 determines that the received packet is the first packet (step S4; YES), a first packet reception process is executed (step S5). When the first packet reception process ends, the process returns to step S3 and waits for reception of the next packet.

ステップ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 packet identification unit 102 identifies the type of the packet and determines whether or not the received packet is the first packet. (Step S4). Here, since the first packet has already been received, the received packet is not the first packet (step S4; NO). Therefore, the packet identification unit 102 determines whether or not the received packet is the second packet (step S7). If it is determined that the packet is not the second packet (step S7; NO), the process proceeds to step S6, and the processing described above is executed.

パケット識別部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 packet identification unit 102 determines whether the first packet having the same serial number has already been received (step S8). If the first packet has not been received (step S8; NO), the process returns to step S1. This is because when the reception order of the first packet and the second packet is different from the transmission order, it is difficult to evaluate the congestion level, and the reference time packet is retransmitted. Note that the case where the order is reversed in this way corresponds to a case where the degree of congestion is large as will be described later, and it can be said that returning to the retransmission of the reference time packet is a reasonable process.

第1パケットが受信されている場合は(ステップS8;YES)、制御部108は、第2パケット受信処理を実行し(ステップS9)、その結果を受けて混雑度判定用パラメータ取得処理を実行する(ステップS10)。制御部108の判定部1084は混雑度判定用パラメータ取得処理の結果を受けて中継装置30の混雑度を判定する(ステップS11)。   When the first packet is received (step S8; YES), the control unit 108 executes the second packet reception process (step S9), and executes the congestion degree determination parameter acquisition process in response to the result. (Step S10). The determination unit 1084 of the control unit 108 determines the congestion level of the relay device 30 in response to the result of the congestion level determination parameter acquisition process (step S11).

判定部1084が、混雑度が大きいと判定した場合(ステップS11;NO)、制御部108は、処理をステップS1に戻す。このような場合は、基準時刻パケットを送信した時点においても混雑度が大きいと判断することができ、混雑度が大きい時期に送信した基準時刻パケットの伝送遅延は大きく変動しやすいため、その見積もりが困難として、基準時刻パケットの再送信を行う。   When the determination unit 1084 determines that the degree of congestion is large (step S11; NO), the control unit 108 returns the process to step S1. In such a case, it can be determined that the congestion level is large even when the reference time packet is transmitted, and the transmission delay of the reference time packet transmitted at a time when the congestion level is large is likely to fluctuate greatly. As a difficulty, the reference time packet is retransmitted.

判定部1084が、混雑度が小さいと判定した場合(ステップS11;YES)、制御部108は応答パケット生成・送信処理を実行し(ステップS12)、端末20に中継装置30を介して応答パケットを送信する。   When the determination unit 1084 determines that the degree of congestion is small (step S11; YES), the control unit 108 executes response packet generation / transmission processing (step S12), and sends a response packet to the terminal 20 via the relay device 30. Send.

なお、図8において、パケット識別部102が、受信したパケットが第1パケット又は第2パケットのいずれでもないと判別した場合(図8のステップS7;NO)の受信したパケットについては、基準時間送信処理の対象ではないので図8からは除外しており、別途処理される。   In FIG. 8, when the packet identification unit 102 determines that the received packet is neither the first packet nor the second packet (step S7 in FIG. 8; NO), the received packet is transmitted as a reference time. Since it is not an object of processing, it is excluded from FIG. 8 and is processed separately.

次に、図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 packet identification unit 102 determines that the received packet is the first packet based on the packet type information set in the packet type field of the received packet (step S4 in FIG. 8; YES), measurement starts The signal is output to the reception interval measurement unit 106 (step S20). Further, the packet identification unit 102 stores the received first packet in the packet buffer 103 (step S21), and the control unit 108 ends the first packet reception process, returns to step S5 in FIG. The process proceeds to step S3.

受信間隔測定部106は、パケット識別部102から供給された測定開始信号に応答して、パケット受信間隔(RI)の測定を開始する。   The reception interval measurement unit 106 starts measuring the packet reception interval (RI) in response to the measurement start signal supplied from the packet identification unit 102.

図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 packet identification unit 102 determines that the received packet is the second packet and determines that the first packet has been received. In the case (step S7 in FIG. 8; YES, step S8; YES), a measurement end signal is output to the reception interval measurement unit 106 (step S30). At the same time, the packet identification unit 102 outputs a timing signal to the reception time acquisition unit 105. In response to the timing signal, the reception time acquisition unit 105 acquires and holds the current date and time (T4) as the second packet reception time (T4) from the time measuring unit 107 (step S31). Further, the received second packet is stored in the second packet buffer 104 (step S32), and the control unit 108 ends the second packet reception process, returns to S9 in FIG. 8, and proceeds to the next step S10. To do.

受信間隔測定部106は、パケット識別部102から供給された測定終了信号に応答して、パケット受信間隔(RI)の測定を終了しその測定結果を保持するとともに、測定を終了した旨を判定部1084に通知する。   In response to the measurement end signal supplied from the packet identification unit 102, the reception interval measurement unit 106 ends the measurement of the packet reception interval (RI), holds the measurement result, and determines that the measurement has ended. 1084 is notified.

図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 determination unit 1084 acquires the packet reception interval (RI) from the reception interval measurement unit 106 (step S40). Further, the determination unit 1084 acquires the packet transmission interval (TI) via the packet information acquisition unit 1081 (step S41). The determination unit 1084 calculates a difference (D) between the acquired packet reception interval (RI) and the acquired packet transmission interval (TI) (step S42), and the control unit 108 ends the congestion degree determination parameter acquisition processing. Then, the process returns to step S10 in FIG. 8, and the process proceeds to step S11.

図8のステップS11において、判定部1084は、混雑度が小さいかどうかを判定するが、具体的には、差分(D)の絶対値が判定部1084のメモリに記憶された所定の閾値δ以下であるか否かを判別する(ステップS11)。判定部1084は、差分Dの絶対値が閾値δを超えると判別した場合、すなわち混雑度が大きいと判別した場合(ステップS11;NO)、既に説明したとおり、制御部108は、処理をステップS1に戻す。   In step S11 of FIG. 8, the determination unit 1084 determines whether the degree of congestion is small. Specifically, the absolute value of the difference (D) is equal to or less than a predetermined threshold value δ stored in the memory of the determination unit 1084. It is discriminate | determined whether it is (step S11). When the determination unit 1084 determines that the absolute value of the difference D exceeds the threshold δ, that is, when the determination unit 1084 determines that the degree of congestion is large (step S11; NO), as described above, the control unit 108 performs the process in step S1. Return to.

一方、判定部1084が、差分Dの絶対値が閾値δ以下であると判別した場合(ステップS11;YES)、中継装置30の混雑度が小さい旨をパケット生成部1083に通知し既に説明したとおり、制御部108は応答パケット生成・送信処理を実行する(ステップS12)。   On the other hand, when the determination unit 1084 determines that the absolute value of the difference D is equal to or less than the threshold δ (step S11; YES), the packet generation unit 1083 is notified that the degree of congestion of the relay device 30 is small, as already described. The control unit 108 executes response packet generation / transmission processing (step S12).

図12に、応答パケット生成・送信処理のフローチャートを示す。パケット生成部1083は、判定部1084から中継装置30の混雑度が小さい旨の通知を受けたときに、図12に示す応答パケット生成・送信処理を開始する。   FIG. 12 shows a flowchart of response packet generation / transmission processing. When the packet generation unit 1083 receives a notification from the determination unit 1084 that the degree of congestion of the relay device 30 is small, the packet generation unit 1083 starts the response packet generation / transmission process illustrated in FIG.

パケット生成部1083は、応答パケットを生成する準備として、計時部107から現在日時(T5)を応答パケットの送信時刻(T5)として取得し、応答パケットの送信時刻(T5)と受信時刻取得部105で取得された第2パケット受信時刻(T4)との差をとることにより、第2パケットを受信してから応答パケットを送信するまでの期間を示す応答期間(RT)を算出し(ステップS50)、図4(b)に示す応答パケットを生成する(ステップS51)。   In preparation for generating a response packet, the packet generation unit 1083 acquires the current date and time (T5) as the response packet transmission time (T5) from the time measuring unit 107, and transmits the response packet transmission time (T5) and the reception time acquisition unit 105. By calculating the difference from the second packet reception time (T4) acquired in step 4, a response period (RT) indicating a period from when the second packet is received until the response packet is transmitted is calculated (step S50). Then, the response packet shown in FIG. 4B is generated (step S51).

具体的には、パケット生成部1083は、パケット情報取得部1081を介して取得した、第2パケットに含まれる送信元情報を応答パケットの宛先フィールドに設定し、第2パケットに含まれる宛先情報を応答パケットの送信元フィールドに設定する。続いて、パケット生成部1083は、「応答パケット」である旨のパケット種別情報を応答パケットのパケット種別フィールドに設定する。また、パケット生成部1083は、第2パケットに含まれる連番情報を応答パケットの連番フィールドに設定し、算出した応答期間(RT)を応答パケットの応答期間フィールドに設定する。このようにして、パケット生成部1083は、応答パケットを生成する。   Specifically, the packet generation unit 1083 sets the transmission source information included in the second packet acquired through the packet information acquisition unit 1081 in the destination field of the response packet, and sets the destination information included in the second packet. Set in the source field of the response packet. Subsequently, the packet generation unit 1083 sets the packet type information indicating “response packet” in the packet type field of the response packet. Further, the packet generation unit 1083 sets the serial number information included in the second packet in the serial number field of the response packet, and sets the calculated response period (RT) in the response period field of the response packet. In this way, the packet generator 1083 generates a response packet.

パケット生成部1083は、生成した応答パケットを、送信部109を介して送信する(ステップS52)。その後、図8のステップS12に戻り、制御部108は基準時刻送信処理を終了する。   The packet generation unit 1083 transmits the generated response packet via the transmission unit 109 (step S52). Thereafter, the process returns to step S12 in FIG. 8, and the control unit 108 ends the reference time transmission process.

次に、タイムサーバ10から基準時刻パケットを送信された端末20での時刻同期処理について説明する。図13に時刻同期処理のフローチャートを示す。   Next, time synchronization processing at the terminal 20 that has transmitted the reference time packet from the time server 10 will be described. FIG. 13 shows a flowchart of the time synchronization process.

端末20の制御部206は、パケット受信処理を開始し、受信部202を介してパケットの受信の有無を判定し(ステップS60)、パケットの受信がなければ(ステップS60;NO)ステップS60に戻り、受信を待つ。パケットの受信があれば(ステップS60;YES)、制御部206のパケット情報取得部2061は、受信部202を介して受信したパケットのパケット種別フィールドに設定されているパケット種別情報に基づいて、受信したパケットが基準時刻パケットであるかどうかを判別する(ステップS60)。   The control unit 206 of the terminal 20 starts packet reception processing, determines whether or not a packet is received via the reception unit 202 (step S60), and if no packet is received (step S60; NO), returns to step S60. Wait for reception. If there is a packet received (step S60; YES), the packet information acquisition unit 2061 of the control unit 206 receives the packet based on the packet type information set in the packet type field of the packet received via the reception unit 202. It is determined whether or not the received packet is a reference time packet (step S60).

受信したパケットが基準時刻パケットであれば(ステップS61;YES)、制御部206は、基準時刻パケット受信処理を実行し(ステップS62)、その後混雑度判定用パケット送信処理を実行する(ステップS63)。その後はステップS60に戻る。   If the received packet is a reference time packet (step S61; YES), the control unit 206 executes a reference time packet reception process (step S62), and then executes a congestion degree determination packet transmission process (step S63). . Thereafter, the process returns to step S60.

受信したパケットが基準時刻パケットでなければ(ステップS61;NO)、パケット情報取得部2061は、受信したパケットが応答パケットであるかどうかを判定し(ステップS64)、応答パケットでなければ(ステップS64;NO)、制御部206は処理をステップS60に戻す。   If the received packet is not a reference time packet (step S61; NO), the packet information acquisition unit 2061 determines whether or not the received packet is a response packet (step S64), and is not a response packet (step S64). NO), the control unit 206 returns the process to step S60.

なお、図13において、パケット情報取得部2061が、受信したパケットが基準時刻パケット又は応答パケットのいずれでもないと判別した場合(図13のステップS64;NO)の受信したパケットの処理については、時刻同期処理の対象ではないので図13からは除外しており、別途処理される。   In FIG. 13, when the packet information acquisition unit 2061 determines that the received packet is neither a reference time packet nor a response packet (step S64; NO in FIG. 13), Since it is not a target of the synchronization process, it is excluded from FIG. 13 and is processed separately.

受信したパケットが応答パケットであれば(ステップS64;YES)、制御部206は時刻補正処理を実行し(ステップS65)、時刻同期処理を終了する。   If the received packet is a response packet (step S64; YES), the control unit 206 executes time correction processing (step S65) and ends the time synchronization processing.

次に、基準時刻パケット受信処理(ステップ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 information acquisition unit 2061 stores the received reference time packet information in the storage unit 205 (step S70). Subsequently, the time setting unit 2064 sets the current date and time of the time measuring unit 207 so as to coincide with the stored reference time (step S71), ends the reference time packet reception process, and the control unit 206 performs the process. Is advanced to the congestion degree determination packet transmission process (step S63) of FIG.

この時点での時刻設定では、基準時刻パケットの伝送遅延が考慮されていないため、設定後の計時部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 time measuring unit 207 after the setting is compared with the reference time measured by the time measuring unit 107 of the time server 10. Delayed by the packet transmission delay.

図15に混雑度判定用パケット送信処理のフローチャートを示す。制御部206は、図15に示す混雑度判定用パケット送信処理を、パケット受信処理のプロセスからの呼び出しにより開始し、まず、図4(c)に示す第1パケットを生成する(ステップS80)。   FIG. 15 is a flowchart of the congestion degree determination packet transmission process. The control unit 206 starts the congestion degree determination packet transmission process shown in FIG. 15 by a call from the packet reception process, and first generates the first packet shown in FIG. 4C (step S80).

具体的には、パケット生成部2062は、記憶部205に記憶された基準時刻パケットに含まれる送信元情報を第1パケットの宛先フィールドに設定し、基準時刻パケットに含まれる宛先情報を第1パケットの送信元フィールドに設定する。このように設定することにより、第1パケットの宛先が基準時刻パケットを送信したタイムサーバ10に設定され、第1パケットの送信元が基準時刻パケットを受信した端末20に設定される。   Specifically, the packet generation unit 2062 sets the transmission source information included in the reference time packet stored in the storage unit 205 in the destination field of the first packet, and sets the destination information included in the reference time packet to the first packet. Set in the source field of. By setting in this way, the destination of the first packet is set to the time server 10 that has transmitted the reference time packet, and the transmission source of the first packet is set to the terminal 20 that has received the reference time packet.

続いて、パケット生成部2062は、「第1パケット」である旨のパケット種別情報を第1パケットのパケット種別フィールドに設定する。また、パケット生成部2062は、中継装置30が当該第1パケットを転送する優先度を第2パケットよりも低い優先度、例えば通常のパケットと同じ優先度にする旨の優先度情報(例えば優先度を示す数値)を第1パケットの優先度フィールドに設定する。   Subsequently, the packet generation unit 2062 sets the packet type information indicating “first packet” in the packet type field of the first packet. Further, the packet generation unit 2062 has priority information (for example, priority) indicating that the relay apparatus 30 sets the priority for transferring the first packet to a lower priority than the second packet, for example, the same priority as that of a normal packet. Is set in the priority field of the first packet.

パケット生成部2062は、任意の整数Nを第1パケットの連番フィールドに設定する。パケット生成部2062は、第1パケットを生成する度に整数Nをインクリメント(+1)する。続いて、パケット生成部2062は、記憶部205に記憶されたパケット送信間隔(TI)を第1パケットのパケット送信間隔フィールドに設定する。このようにして、パケット生成部2062は、第1パケットを生成する。   The packet generation unit 2062 sets an arbitrary integer N in the serial number field of the first packet. The packet generation unit 2062 increments (+1) the integer N every time the first packet is generated. Subsequently, the packet generation unit 2062 sets the packet transmission interval (TI) stored in the storage unit 205 in the packet transmission interval field of the first packet. In this way, the packet generation unit 2062 generates the first packet.

次に、パケット生成部2062は、図4(d)に示す第2パケットを生成する(ステップS81)。具体的には、パケット生成部2062は、第1パケットと同様にして、宛先情報及び送信元情報を第2パケットの宛先フィールド、送信元フィールドにそれぞれ設定する。続いて、パケット生成部2062は、「第2パケット」である旨のパケット種別情報を第2パケットのパケット種別フィールドに設定する。また、パケット生成部2062は、中継装置30が当該第2パケットを転送する優先度を第1パケットの優先度よりも高くする旨の優先度情報を第2パケットの優先度フィールドに設定する。   Next, the packet generator 2062 generates the second packet shown in FIG. 4D (step S81). Specifically, the packet generation unit 2062 sets destination information and transmission source information in the destination field and transmission source field of the second packet, respectively, in the same manner as the first packet. Subsequently, the packet generation unit 2062 sets the packet type information indicating “second packet” in the packet type field of the second packet. Further, the packet generation unit 2062 sets priority information indicating that the priority of the relay device 30 to transfer the second packet is higher than the priority of the first packet in the priority field of the second packet.

パケット生成部2062は、第1パケットに設定した整数Nを第2パケットの連番フィールドに設定する。連番フィールドの設定値が同じ第1パケットと第2パケットとは、一組のパケットを構成する。このようにして、パケット生成部2062は、第2パケットを生成する。   The packet generator 2062 sets the integer N set in the first packet in the serial number field of the second packet. The first packet and the second packet having the same setting value in the sequence number field constitute a set of packets. In this way, the packet generator 2062 generates the second packet.

パケット生成部2062は、生成した第1パケットを、送信部201を介してタイムサーバ10に送信し(ステップS82)、送信したときからパケット送信間隔(TI)が経過したかどうかを判定する(ステップS83)。経過していない場合は(ステップS83;NO)、ステップS83に戻りステップS83を繰り返して、経過するまで待つ。   The packet generation unit 2062 transmits the generated first packet to the time server 10 via the transmission unit 201 (step S82), and determines whether the packet transmission interval (TI) has elapsed since the transmission (step S82). S83). If it has not elapsed (step S83; NO), the process returns to step S83, repeats step S83, and waits until it elapses.

パケット送信間隔(TI)が経過したとき(ステップS83;YES)、パケット生成部2062は、生成した第2パケットを、送信部201を介してタイムサーバ10に送信する(ステップS84)。   When the packet transmission interval (TI) has elapsed (step S83; YES), the packet generation unit 2062 transmits the generated second packet to the time server 10 via the transmission unit 201 (step S84).

パケット生成部2062は、送信部201に第2パケットの送信指示を出した時点の時刻T3を、計時部207から取得し、取得した時刻(T3)を第2パケット送信時刻(T3)として記憶部205に記憶する(ステップS85)。そして、制御部206は、混雑度判定用パケット送信処理を終了し、処理を図13のステップS63からステップS60に戻す。   The packet generation unit 2062 acquires the time T3 when the transmission instruction of the second packet is issued to the transmission unit 201 from the time measuring unit 207, and stores the acquired time (T3) as the second packet transmission time (T3). The data is stored in 205 (step S85). Then, the control unit 206 ends the congestion degree determination packet transmission process, and returns the process from step S63 to step S60 in FIG.

図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 control unit 206 calls and executes a time correction process.

パケット情報取得部2061は、応答パケットを受信したと判定した時点で、計時部207から現在日時(T6)を応答パケット受信時刻(T6)として取得する(ステップS90)。また、パケット情報取得部2061は、受信した応答パケットの応答期間を含む情報を取得する(ステップS91)。   When it is determined that the response packet has been received, the packet information acquisition unit 2061 acquires the current date and time (T6) as the response packet reception time (T6) from the time measuring unit 207 (step S90). Further, the packet information acquisition unit 2061 acquires information including the response period of the received response packet (step S91).

次に、応答待ち期間取得部2063は、取得した応答パケット受信時刻(T6)と第2パケット送信時刻(T3)との差をとることにより、応答待ち期間(RWT)を算出する(ステップS92)。   Next, the response waiting period acquisition unit 2063 calculates the response waiting period (RWT) by taking the difference between the acquired response packet reception time (T6) and the second packet transmission time (T3) (step S92). .

続いて、時刻設定部2064は、伝送遅延期間(DT)を、例えば、次の関係式に基づいて算出する(ステップS93)。伝送遅延期間(DT)=(算出した応答待ち期間(RWT)−応答パケットに含まれる応答期間(RT))/2。時刻設定部2064は、計時部207が計時する現在日時を、算出した伝送遅延期間(DT)だけ進めるように補正し(ステップS94)、時刻補正処理を終了し、制御部206は、図13に示す時刻同期処理を終了する。   Subsequently, the time setting unit 2064 calculates a transmission delay period (DT) based on, for example, the following relational expression (step S93). Transmission delay period (DT) = (calculated response waiting period (RWT) −response period (RT) included in response packet) / 2. The time setting unit 2064 corrects the current date and time measured by the time measuring unit 207 so as to advance by the calculated transmission delay period (DT) (step S94), ends the time correction process, and the control unit 206 performs the process shown in FIG. The time synchronization process shown is terminated.

以上、説明したように、タイムサーバ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 time server 10 uses the first packet and the first packet having different transmission priorities used to determine the congestion degree of the relay device 30. Two packets are received from the terminal 20, and when it is determined that the degree of congestion of the relay device 30 is small based on the received first packet and second packet, a response packet is transmitted to the terminal 20. For this reason, the time server 10 can determine the congestion degree of the relay device without inquiring of the relay device 30. Since the time server 10 transmits the response packet when the degree of congestion of the relay device 30 is small, the transmission delay when the response packet is transmitted is small. Therefore, the reference transmitted at a time close to the time when the response packet is transmitted. It can be expected that the transmission delay of the time packet is also small. Therefore, the terminal 20 can synchronize the time with the reference time with high accuracy by performing time setting and correction according to the response packet.

この発明は上記の実施形態に限定されず、発明の範囲内において種々の変形が可能である。例えば、上記説明において示したハードウェアの構成及び動作は一例でありこれらに限定されるものではなく、下記に例示するように、発明の範囲内において適宜変更及び応用が可能である。   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 control unit 206 includes the packet transmission interval (TI) in the first packet, but may include the packet transmission interval (TI) in the second packet. If the time server 10 can acquire the information of the packet transmission interval (TI) when the time server 10 receives the second packet, the subsequent processing can be performed in the same manner. In this case, the same effect as that of the above-described invention can be obtained. be able to.

上記実施形態では、パケット送信間隔(TI)は固定値であるが、制御部206は送信間隔調整部を備え、送信間隔調整部は、応答パケットを受信することができた場合、次回の基準時刻送信に伴う第1パケット及び第2パケットの送信の際のパケット送信間隔(TI)を所定時間だけ縮小し、応答パケットを受信することができない場合、パケット送信間隔(TI)を所定時間だけ拡大するようにしてもよい。   In the above embodiment, the packet transmission interval (TI) is a fixed value, but the control unit 206 includes a transmission interval adjustment unit, and when the transmission interval adjustment unit can receive a response packet, the next reference time The packet transmission interval (TI) during transmission of the first packet and the second packet accompanying transmission is reduced by a predetermined time, and when a response packet cannot be received, the packet transmission interval (TI) is increased by a predetermined time. You may do it.

これまでは、基準時刻パケット送信から第1、第2パケット送信が完了するまでの中継装置30の混雑度は変化しないことを前提としている。しかし、パケット送信間隔(TI)が大きいと、その間に混雑度が変化してしまう恐れがあるため、パケット送信間隔(TI)はできるだけ小さい方が好ましい。一方、パケット送信間隔(TI)を小さくすると、混雑度がそれほど大きくない場合であっても、端末20での第1パケットと第2パケットの受信順序が逆転してしまい、応答パケットを受信できなくなる恐れがある。そのため、応答パケット受信状況に応じてパケット送信間隔(TI)を調節する。この措置により、混雑度の評価が可能な状況下でパケット送信間隔(TI)を小さくすることができ、時刻同期の信頼性が高くなる。   Until now, it is assumed that the degree of congestion of the relay device 30 from the reference time packet transmission to the completion of the first and second packet transmissions does not change. However, if the packet transmission interval (TI) is large, the degree of congestion may change during that time, so the packet transmission interval (TI) is preferably as small as possible. On the other hand, if the packet transmission interval (TI) is decreased, the reception order of the first packet and the second packet at the terminal 20 is reversed even when the congestion degree is not so large, and the response packet cannot be received. There is a fear. Therefore, the packet transmission interval (TI) is adjusted according to the response packet reception status. This measure makes it possible to reduce the packet transmission interval (TI) in a situation where the degree of congestion can be evaluated, and to improve the reliability of time synchronization.

また、上記実施形態では、中継装置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 relay apparatus 30 is set lower than the priority at the time of transferring the 2nd packet, it is not limited to this, For example, The priority for transferring the first packet may be set higher than the priority for transferring the second packet. In this case, the difference D has the opposite sign as in the above embodiment, but the congestion value of the relay device 30 is determined by comparing the absolute value of the difference D with a predetermined threshold, so that the congestion is the same as before. The degree can be determined. Therefore, also in this case, the same effect as that of the above invention can be obtained.

更に、このように優先度を設定すると、混雑度が高くなった場合、パケット受信間隔(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 interval measuring unit 106 includes a counter and a clock signal generator, and counts up the packet reception interval by up-counting in response to the measurement start signal and stopping the count in response to the measurement end signal. However, the present invention is not limited to this, and packet transmission interval (TI) + δ + 1 is preset as a count value, down-counts in response to a measurement start signal, and down-count is stopped by a measurement end signal. Also good. In this case, the determination unit 1084 may determine that the traffic congestion degree of the relay device 30 is small when the count value of the counter is “1” or more and “2 × δ + 1” or less. When the count value becomes 0 in the middle, the count is automatically stopped. When the count is automatically stopped, since the count value is 0, it is determined that the degree of congestion of the relay device 30 is large.

なお、受信間隔測定部106はカウンタで構成されたものに限らない。受信間隔測定部106は第1パケット及び第2パケットのそれぞれの受信時刻を測定し、その差をパケット受信間隔とするように構成されたものであっても良い。具体的には、パケット識別部102は第1パケット受信のタイミング、及び第2パケット受信のタイミングに第1パケット用、及び第2パケット用のタイミング信号を受信間隔測定部106に出力する。このタイミング信号はこれまでの測定開始信号と測定終了信号とに該当する。受信間隔測定部106は、それぞれのタイミング信号入力時点で計時部107から現在時刻を取得し、第1パケット受信時刻と第2パケット受信時刻として、その差をパケット受信間隔(RI)とする。第1パケット受信時刻が第2パケット受信時刻より後の場合は、差は負数となるので、応答パケットは生成されない。受信間隔測定部106がこのように構成されている場合も、上記同様の発明の効果を奏することができる。   Note that the reception interval measuring unit 106 is not limited to a counter. The reception interval measuring unit 106 may be configured to measure the reception times of the first packet and the second packet and use the difference as the packet reception interval. Specifically, the packet identification unit 102 outputs timing signals for the first packet and the second packet to the reception interval measurement unit 106 at the timing of receiving the first packet and the timing of receiving the second packet. This timing signal corresponds to the previous measurement start signal and measurement end signal. The reception interval measuring unit 106 obtains the current time from the time measuring unit 107 at the time of each timing signal input, and uses the difference as the packet reception interval (RI) as the first packet reception time and the second packet reception time. When the first packet reception time is later than the second packet reception time, the difference is a negative number, so that no response packet is generated. Even when the reception interval measuring unit 106 is configured as described above, the same effects as those described above can be obtained.

上記、変形例を含めた場合の受信間隔測定部106は、パケット識別部102で識別された第1パケット及び第2パケットのそれぞれの受信タイミングに基づき、第1パケットを受信してから第2パケットを受信するまでの間隔を示す両パケットの受信間隔を取得することができる。   The reception interval measurement unit 106 in the case of including the above-described modification receives the first packet after receiving the first packet based on the reception timings of the first packet and the second packet identified by the packet identification unit 102. It is possible to obtain the reception interval of both packets indicating the interval until reception of.

判定部1084は、制御部108に含めた構成としたが、制御部108から独立した構成としても良い。   Although the determination unit 1084 is included in the control unit 108, the determination unit 1084 may be configured independent of the control unit 108.

図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 time server 10 of the present embodiment. The same numbers as those shown in FIG. 3 have the same functions. The component not described in FIG. 3 is the reception time information acquisition unit 111, and the number of the packet information acquisition unit 110 is also different from that in FIG. Further, in FIG. 3, an arrow is added where there is no arrow. Among these, the packet information acquisition unit 110 corresponds to the packet information acquisition unit 1081 of FIG. 3 with the packet buffer 103 and the second packet buffer 104 added. However, the packet buffer 103 and the second packet buffer 104 may not be included as long as it has a function of acquiring packet information. Accordingly, the function is the same as that of the packet information acquisition unit 1081 in FIG. 3, so the name is shared but the number is changed. The reception time information acquisition unit 111 has a function that combines the functions of the reception time acquisition unit 105 and the reception interval measurement unit 106 of FIG. The function of the reception interval measurement unit 106 is not limited to that configured with a counter, and may be the above-described modification. Since the reception time acquisition unit 105 and the reception interval measurement unit 106 can be configured to include a common function depending on the specific embodiment, both functions are combined. The arrows are attached according to the contents of the description of the operation, and the operation of the time server 10 shown in FIG. 17 is as described in the flowchart so far.

図18は本実施形態の端末20に係る簡略化された構成を示す。図に示す番号は図7に記載した番号と同じものは同じ機能を有する。図7に記載されていない構成要素はないが、図7では矢印の記載がない部分にも矢印を付してある。矢印については、動作の説明の内容に従って付してあり、図18に示す端末20の動作はこれまでフローチャートで説明したとおりである。   FIG. 18 shows a simplified configuration according to the terminal 20 of the present embodiment. The same numbers as those shown in FIG. 7 have the same functions. Although there are no components not shown in FIG. 7, in FIG. 7, the parts not indicated by arrows are also provided with arrows. The arrows are attached according to the contents of the description of the operation, and the operation of the terminal 20 shown in FIG. 18 is as described in the flowchart so far.

これまでの説明では、まずタイムサーバ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 time server 10 and the transmission to the terminal 20, and then the first packet and the second packet are transmitted from the terminal 20 to the time server 10. It is not necessary to be limited to this order. The reference time packet may be transmitted when the response packet is transmitted. At this time, either the reference time packet or the response packet may be transmitted first. Furthermore, the transmission of the reference time packet may be omitted, and the response packet may be transmitted including the reference time. In this case, first, the time server 10 transmits a preparation signal indicating that the reference time is to be transmitted to the terminal 20, and after receiving the preparation signal, the terminal 20 transmits the first packet and the second packet as described above. To the time server 10. After receiving the first packet and the second packet, the time server 10 evaluates the degree of congestion of the relay device 30 in the same manner as described above, and generates a response packet when it is determined that the degree of congestion is low. Send to. In the modified example described here, the packet generation unit 1083 of the time server 10 generates a response packet including the reference period together with the response period (RT). The terminal 20 sets the reference time in the time measuring unit 207 of the terminal and executes time correction processing as described above.

いずれの場合も、タイムサーバ10は、応答パケットを送信するとき、すなわち、中継装置30の混雑度が小さいときにのみ端末20に基準時刻を送信するので、端末20の時刻はより高精度にタイムサーバ10の基準時刻に同期したものとなる。   In either case, the time server 10 transmits the reference time to the terminal 20 only when the response packet is transmitted, that is, when the congestion degree of the relay device 30 is small, so that the time of the terminal 20 is timed with higher accuracy. This is synchronized with the reference time of the server 10.

また、端末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 Supplementary Note 2, wherein

(付記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 supplementary note 4, characterized by:

(付記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 Supplementary Notes 4 or 5.

(付記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 time server 20 terminal 30 relay device 101 receiving unit 102 packet identifying unit 103 packet buffer 104 second packet buffer 105 reception time acquiring unit 106 reception interval measuring unit 107 timing unit 108 control unit 109 transmitting unit 110 packet information acquiring unit 111 reception time Information acquisition unit 201 Transmission unit 202 Reception unit 203 Operation unit 204 Display unit 205 Storage unit 206 Control unit 207 Timing unit 2061 Packet information acquisition unit 2062 Packet generation unit 2063 Response wait period acquisition unit 2064 Time setting unit

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.
請求項1乃至3のいずれか1項に係るタイムサーバと請求項4又は5に係る端末とで構成される、
ことを特徴とする時刻同期システム。
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.
JP2011209910A 2011-09-26 2011-09-26 Time server, terminal, time synchronization system, time synchronization method, and program Pending JP2013074338A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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&#39; 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