JPH02288750A - Inter-node time matching system - Google Patents

Inter-node time matching system

Info

Publication number
JPH02288750A
JPH02288750A JP1111483A JP11148389A JPH02288750A JP H02288750 A JPH02288750 A JP H02288750A JP 1111483 A JP1111483 A JP 1111483A JP 11148389 A JP11148389 A JP 11148389A JP H02288750 A JPH02288750 A JP H02288750A
Authority
JP
Japan
Prior art keywords
time
node
packet
sum
value
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
JP1111483A
Other languages
Japanese (ja)
Inventor
Tsuneo Shidara
設楽 恒男
Kazunari Shinomiya
篠宮 一成
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 Corp
NEC Robotics Engineering Ltd
Original Assignee
NEC Corp
NEC Robotics Engineering 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 Corp, NEC Robotics Engineering Ltd filed Critical NEC Corp
Priority to JP1111483A priority Critical patent/JPH02288750A/en
Publication of JPH02288750A publication Critical patent/JPH02288750A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)
  • Multi Processors (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PURPOSE:To match the time of each node without being affected by an inter- node packet transmission time and an in-node packet resident time by giving a sum between a timer value just before the transmission and the absolute time in the reception packet into a time matching packet and relaying the result to a succeeding node. CONSTITUTION:Every time various data packets sent from a master node 1 are received, a frame head detection circuit 4 gives a command of starting the count of a time with an elapsed time counter circuit 5. The received data packet is fetched in an internal program 7 through a reception circuit 8. A value of the sum of a time value T0 in the time matching packet received by its own node clock 6 and the elapsed time (t1) up to now in the elapsed time counter circuit 5 is set as a present time and a sum of the elapsed time (t2) up to now in the elapsed time counter circuit 5 and the time T0 is set to a time field of the packet for a node 3 as the present time and the data is sent to a transmission circuit 9.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はパケット交換やメツセージ交換等の蓄積交換方
式による情報ネットワーク内の各ノードの時刻を正確に
同期させる方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for accurately synchronizing the time of each node in an information network using a store-and-forward method such as packet exchange or message exchange.

〔従来の技術〕[Conventional technology]

従来、この種の時刻合わせ方式は、予めパケットの中継
時の遅延時間を見込んでその時間遅れを加算して時刻を
合わせる方式があった。
Conventionally, in this type of time adjustment method, there has been a method in which the delay time during packet relay is estimated in advance and the time delay is added to adjust the time.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の時刻合わせ方式においては、データ通信
パケットのトラフィック増大による時刻合わせパケット
の中継時間の変動や、ノード間通信速度の違いによる伝
送時間の差により、正確な時刻合わせができないという
欠点がある。
The conventional time adjustment method described above has the disadvantage that accurate time adjustment cannot be performed due to fluctuations in the relay time of time adjustment packets due to increased traffic of data communication packets and differences in transmission time due to differences in communication speed between nodes. .

本発明の目的は前記課題を解決したノード間時刻合わせ
方式を提供することにある。
An object of the present invention is to provide an inter-node time adjustment method that solves the above problems.

〔課題を解決するための手段〕[Means to solve the problem]

前記目的を達成するため、本発明は蓄積交換方式により
データの通信を行う情報ネットワークにて、データ交換
又は処理機能を有するノード相互の時刻を、1つのマス
ターノードにより発せられた1つの時刻合わせパケット
の時刻に合わせる方式において1回線より1つのフレー
ムを受信開始したことを検知する手段と、検知した時点
からの経過時間を計数する計時手段とを有し。
In order to achieve the above object, the present invention uses one time adjustment packet issued by one master node to adjust the time between nodes having data exchange or processing functions in an information network that communicates data using a store-and-forward method. It has a means for detecting the start of reception of one frame from one line in a method synchronized to the time of , and a timer means for counting the elapsed time from the time of detection.

受信したフレームが時刻合わせパケットである場合、前
記計時手段が以降のフレーム受信により再起動されない
よう制御する第1のステップと、時刻パケット内のマス
ターノード時刻と現在の計時手段の値との加算値を現在
時刻として自ノードの時計にセットする第2のステップ
と1時刻合わせパケットを次ノードへ中継するために時
刻パケット内のマスターノード時刻と現在の計時手段の
値との加算値を現在時刻として時刻合わせパケットの時
刻値を更新し次ノードへ送信する第3のステップとを行
うものである。
If the received frame is a time adjustment packet, a first step of controlling the timer so that it is not restarted by subsequent frame reception, and an added value of the master node time in the time packet and the current value of the timer. The second step is to set the clock of the own node as the current time, and to relay the 1-time adjustment packet to the next node, the sum of the master node time in the time packet and the value of the current timer is set as the current time. The third step is to update the time value of the time adjustment packet and transmit it to the next node.

〔実施例〕〔Example〕

以下、本発明の一実施例を図により説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明に係る蓄積交換ノードの接続構成図であ
る0本発明は蓄積変換方式によりデータの通信を行う情
報ネットワークにて、データ交換又は処理機能を有する
ノード相互の時刻を、1つのマスターノードにより発せ
られた1つの時刻合わせパケットの時刻に合わせるノー
ド間時刻合わせ方式を対象とするものである。第1図に
おいて、マスターノード1が時刻合わせパケットをノー
ド2へ送信し、ノード2は自ノードの時計を合わせた後
、ノード3に時刻合わせパケットを送信する。
FIG. 1 is a connection configuration diagram of store-and-forward nodes according to the present invention. The present invention is an information network that communicates data using a store-and-convert method, and the time between nodes having data exchange or processing functions is shared by one node. The target is an inter-node time adjustment method that matches the time of one time adjustment packet issued by a master node. In FIG. 1, master node 1 transmits a time adjustment packet to node 2, and node 2, after synchronizing its own clock, transmits a time adjustment packet to node 3.

第2図は本発明におけるノード2の構成を示す構成図で
ある。第2図において、マスターノード1から送信され
る各種データパケットを受信する毎にフレーム先頭検出
回路4は経過時間計数回路(タイマー)5に時間の計数
を始めるよう指示する。
FIG. 2 is a configuration diagram showing the configuration of node 2 in the present invention. In FIG. 2, every time it receives various data packets transmitted from the master node 1, the frame head detection circuit 4 instructs the elapsed time counting circuit (timer) 5 to start counting time.

受信したデータパケットは受信回路8を通じて内部プロ
グラム7に取り込まれる。プログラム7は受信パケット
が時刻合わせパケットである場合、以降のデータ通信に
より経過時間計数回路5が再起動されないように制御し
く第3図における第1のステップ10)、自ノードの時
計6に対し受信した時刻合わせパケット内の時刻値T6
に経過時間計数回路5の現在までの経過時間(tl)を
加算した値を現在時刻としてセットしく第3図における
第2のステップ11)、さらに時刻合わせパケットをノ
ード3へ送信するために、経過時間計数回路5の現在ま
での経過時間(t2)をT、に加算した値を現在時刻と
してノード3向はパケットの時刻値フィールドヘセット
し、送信回路9ヘデータ送信する(第3図における第3
のステップ12)。
The received data packet is taken into the internal program 7 through the receiving circuit 8. When the received packet is a time adjustment packet, the program 7 performs control so that the elapsed time counting circuit 5 is not restarted by subsequent data communication. Time value T6 in the time adjustment packet
The value obtained by adding the elapsed time (tl) of the elapsed time counting circuit 5 up to the present time should be set as the current time. The node 3 sets the value obtained by adding the elapsed time (t2) of the time counting circuit 5 up to the present time to T as the current time in the time value field of the packet, and transmits the data to the transmitting circuit 9 (see 3 in FIG.
step 12).

第4図は各ノードの時刻合わせパケットの流れを示す1
本図において、マスターノード1からノード2に送信さ
れた時刻値はT6であり、ノード2はT、+t、時刻を
自ノードの時計にセットし、ノード3に対してはノード
2内のパケット滞留時間t3を加算した値T、+t2を
現在値とした時刻合わせパケットを送信する。
Figure 4 shows the flow of time adjustment packets for each node.
In this figure, the time value sent from master node 1 to node 2 is T6, node 2 sets the time T, +t, to its own clock, and for node 3, the packet retention in node 2 A time adjustment packet is sent with the current value being T, +t2, which is the sum of time t3.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は時刻合わせパケットの受信
開始時刻から起動されるタイマーを設け、時刻セットす
るタイミングのタイマー値と受信パケット内の絶対時刻
値の加算値より時計をセットし、同様に次ノードへ時刻
合わせパケットを中継する際においても、送信直前のタ
イマー値と受信パケット内の絶対時刻値の加算値を時刻
合わせパケット内に入れて次ノードへ中継することによ
り、ノード間パケット伝送時間及びノード内パケット滞
留時間に影響されず各ノードの時刻を合わせることがで
きる。従って本方法によって通常のパケット通信回線を
利用して5全ノードの時刻を全て同一時刻に設定するこ
とができるという効果がある。
As explained above, the present invention provides a timer that is started from the reception start time of the time adjustment packet, sets the clock based on the sum of the timer value at the timing to set the time and the absolute time value in the received packet, and similarly When relaying a time adjustment packet to a node, the inter-node packet transmission time and It is possible to synchronize the time of each node without being affected by the intra-node packet residence time. Therefore, this method has the advantage that the times of all five nodes can be set to the same time using a normal packet communication line.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明に係る蓄積交換ノードの接続構成図、第
2図は本発明のノード間時刻合わせ方式を示す構成図、
第3図は第2図のプログラムの流れを示す図、第4図は
ノード間時刻合わせバケツトの流れを示す図である。 1・・・時刻合わせのマスターノード 2.3・・・ノード     4・・・フレーム受信検
出回路5・・・経過時間計数回路(タイマー)6・・・
ノード内時計 7・・・時刻合わせ処理プログラム
FIG. 1 is a connection configuration diagram of store-and-forward nodes according to the present invention, and FIG. 2 is a configuration diagram showing the inter-node time adjustment method of the present invention.
FIG. 3 is a diagram showing the flow of the program shown in FIG. 2, and FIG. 4 is a diagram showing the flow of the inter-node time adjustment bucket. 1... Master node for time adjustment 2. 3... Node 4... Frame reception detection circuit 5... Elapsed time counting circuit (timer) 6...
Node internal clock 7...Time adjustment processing program

Claims (1)

【特許請求の範囲】[Claims] (1)蓄積交換方式によりデータの通信を行う情報ネッ
トワークにて、データ交換又は処理機能を有するノード
相互の時刻を、1つのマスターノードにより発せられた
1つの時刻合わせパケットの時刻に合わせる方式におい
て、回線より1つのフレームを受信開始したことを検知
する手段と、検知した時点からの経過時間を計数する計
時手段とを有し、 受信したフレームが時刻合わせパケットである場合、前
記計時手段が以降のフレーム受信により再起動されない
よう制御する第1のステップと、時刻パケット内のマス
ターノード時刻と現在の計時手段の値との加算値を現在
時刻として自ノードの時計にセットする第2のステップ
と、時刻合わせパケットを次ノードへ中継するために時
刻パケット内のマスターノード時刻と現在の計時手段の
値との加算値を現在時刻として時刻合わせパケットの時
刻値を更新し次ノードへ送信する第3のステップとを行
うことを特徴とするノード間時刻合わせ方式。
(1) In an information network that communicates data using the store-and-forward method, in a method in which the time between nodes having data exchange or processing functions is adjusted to the time of one time adjustment packet issued by one master node, It has a means for detecting the start of reception of one frame from the line, and a timer for counting the elapsed time from the time of detection, and when the received frame is a time adjustment packet, the timer means is used for the subsequent time adjustment packet. a first step of controlling to prevent rebooting due to frame reception; a second step of setting the sum of the master node time in the time packet and the current value of the timer as the current time in the own node's clock; In order to relay the time adjustment packet to the next node, the third node updates the time value of the time adjustment packet by setting the sum of the master node time in the time packet and the current value of the timer as the current time, and sends it to the next node. An inter-node time adjustment method characterized by performing steps.
JP1111483A 1989-04-28 1989-04-28 Inter-node time matching system Pending JPH02288750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1111483A JPH02288750A (en) 1989-04-28 1989-04-28 Inter-node time matching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1111483A JPH02288750A (en) 1989-04-28 1989-04-28 Inter-node time matching system

Publications (1)

Publication Number Publication Date
JPH02288750A true JPH02288750A (en) 1990-11-28

Family

ID=14562405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1111483A Pending JPH02288750A (en) 1989-04-28 1989-04-28 Inter-node time matching system

Country Status (1)

Country Link
JP (1) JPH02288750A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6925062B2 (en) 1999-12-17 2005-08-02 Nec Corporation ATM test equipment operable as source and responder for conducting multiple tests
JP2015126275A (en) * 2013-12-25 2015-07-06 一般財団法人電力中央研究所 Counter synchronization method for sensor terminal, synchronization device, and synchronization program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6925062B2 (en) 1999-12-17 2005-08-02 Nec Corporation ATM test equipment operable as source and responder for conducting multiple tests
JP2015126275A (en) * 2013-12-25 2015-07-06 一般財団法人電力中央研究所 Counter synchronization method for sensor terminal, synchronization device, and synchronization program

Similar Documents

Publication Publication Date Title
US7200158B2 (en) Clock synchronizing method over fault-tolerant Ethernet
US6975653B2 (en) Synchronizing clocks across sub-nets
CN103988453B (en) Method for synchronizing clocks in nodes of a vehicle network and node designed to perform the method
US7898987B2 (en) Method and device for the exchange of data between at least two users connected to a bus system
JP3339786B2 (en) Timer synchronization device and initialization method in ring communication path
US8204035B2 (en) Network node
JPH10509294A (en) System with predetermined timing relationship between data input and output, and transmitter and receiver of such system
WO2020136487A2 (en) A tsn enabled controller
US6975654B1 (en) Network synchronization system and network synchronization method
CN106231669A (en) The method of Time Synchronization for Wireless Sensor Networks
JPH02288750A (en) Inter-node time matching system
US11831403B2 (en) Network interface card structure and clock synchronization method to precisely acquire heterogeneous PTP synchronization information for PTP synchronization network extension
JP2775791B2 (en) Random access control method for wireless channel
WO2024131470A1 (en) Clock synchronization method and device, chip, chip module, system, and storage medium
JP3584561B2 (en) Intermittent communication system
JPS60253350A (en) Control system for communication of information
JPH01116862A (en) Clock synchronizing system for multiprocessor system
JPS5923502B2 (en) loop transmission system
JP2000258568A (en) Reference time control station, control system, and time synchronization method
JPH04115733A (en) Synchronizing communication system
JPH02114360A (en) Clock synchronizing method for multiprocessor system
WO2024054912A1 (en) System and methods for network data processing
JP2023061877A (en) Time-division schedule adjustment method, communication device, and time-division schedule adjustment method
JPH01114964A (en) Clock synchronizing system in multiprocessor system
CN117811692A (en) Time synchronization method for computer network certainty