JP2006093967A - Network system - Google Patents

Network system Download PDF

Info

Publication number
JP2006093967A
JP2006093967A JP2004275189A JP2004275189A JP2006093967A JP 2006093967 A JP2006093967 A JP 2006093967A JP 2004275189 A JP2004275189 A JP 2004275189A JP 2004275189 A JP2004275189 A JP 2004275189A JP 2006093967 A JP2006093967 A JP 2006093967A
Authority
JP
Japan
Prior art keywords
time
communication device
token
data
network system
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.)
Withdrawn
Application number
JP2004275189A
Other languages
Japanese (ja)
Inventor
Masato Sasazawa
匡人 笹澤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004275189A priority Critical patent/JP2006093967A/en
Publication of JP2006093967A publication Critical patent/JP2006093967A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a network system which sends/receives data at mutually synchronized timings of a plurality of communications apparatus network to the network, and can reduce the traffic using a simple constitution. <P>SOLUTION: The system comprises communications apparatuses 1, 2, 3 each being communicatingly connected to a bus 4, having an internal timer 8 for counting the time. Any one of the communication apparatus sends a token contained in time information to other communications apparatus, the receiver of the communications apparatus receiving the own-addressed token actuates the internal timer 8 to count the synchronization time shown by the time information contained in the received token, and adds a specified process time to the synchronous time to send a token, contained in the time information showing the added time, to other communications apparatus, when the internal timer 8 counts the lapse of the synchronization time. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、データを送受する複数の通信機器によって構成されるネットワークシステムに関する。   The present invention relates to a network system including a plurality of communication devices that transmit and receive data.

従来、複数の通信機器それぞれの間で同期処理を行うネットワークシステムとしては、内部タイマに基づく一定周期のブロードキャストにより同期基準パケットを送信する基準機器と、基準機器からの同期基準パケットの受信タイミングに基づき内部タイマをリセット処理して動作する機器とが、トークンパッシングを用いたLANに接続されるように構成されており、この同期基準パケットにより他の接続機器の内部タイマが基準機器の内部タイマに対して同期するものが知られている(例えば特許文献1参照。)。
特開2000−134241号公報
Conventionally, as a network system that performs synchronization processing between each of a plurality of communication devices, a reference device that transmits a synchronization reference packet by broadcast at a fixed period based on an internal timer, and a reception timing of the synchronization reference packet from the reference device A device that operates by resetting the internal timer is configured to be connected to a LAN that uses token passing, and the internal reference timer of another connected device is connected to the internal timer of the reference device by this synchronization reference packet. (For example, refer to Patent Document 1).
JP 2000-134241 A

しかしながら、上述のネットワークシステムでは、基準機器の内部タイマと他の接続機器の内部タイマとが同期するように、基準の機器が同期基準パケットを送信するため、基準の機器の設置が必要であり、また同期基準パケットを一定間隔でブロードキャストすることからネットワークのトラフィックが増加するという問題があった。   However, in the above network system, since the reference device transmits the synchronization reference packet so that the internal timer of the reference device and the internal timer of the other connected device are synchronized, it is necessary to install the reference device, Another problem is that network traffic increases because the synchronization reference packet is broadcast at regular intervals.

本発明は、従来の問題を解決するためになされたもので、ネットワークに接続された複数の通信機器が互いにタイミングを合わせてデータの送受信を行うと共に、単純な構成でかつトラフィックを低減させることができるネットワークシステムを提供することを目的とする。   The present invention has been made in order to solve the conventional problems. A plurality of communication devices connected to a network can transmit and receive data at the same timing, and can reduce traffic with a simple configuration. An object of the present invention is to provide a network system that can be used.

本発明のネットワークシステムは、ネットワークと通信可能に接続され、時刻を計時する計時手段を有する複数の通信機器を備え、前記複数の通信機器のうち何れか1つの通信機器が、時刻情報が含まれるトークンを他の通信機器に送信し、自己宛の前記トークンを受信した通信機器となる受信機器は、受信したトークンに含まれる時刻情報が示す同期時刻を前記計時手段に計時させ、前記計時手段は、前記同期時刻の経過を計時した場合、前記受信機器の所定の処理時間を前記同期時刻に加算し、加算した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信する構成を有している。   The network system of the present invention includes a plurality of communication devices that are connected to be communicable with a network and have time measuring means for measuring time, and any one of the plurality of communication devices includes time information. A receiving device that transmits a token to another communication device and receives the token addressed to itself receives the synchronization time indicated by the time information included in the received token by the receiving device, and the time measuring device When the elapsed time of the synchronization time is counted, the predetermined processing time of the receiving device is added to the synchronization time, and a token including time information indicating the added time is transmitted to another communication device. ing.

この構成により、受信機器が所定の処理時間を加算した時刻を表す時刻情報が含まれるトークンを送信することにより、それぞれの通信機器が互いにタイミングを合わせてデータの送受信を行うため、基準の機器の設置を不要とし、ネットワークシステムを単純な構成にすることができる。また、一定間隔でトークンをブロードキャストしないため、トラフィックを低減させることができる。   With this configuration, each communication device transmits and receives data at the same time by transmitting a token including time information indicating the time when the receiving device adds a predetermined processing time. Installation is unnecessary, and the network system can be configured simply. Further, since the token is not broadcast at regular intervals, traffic can be reduced.

また、本発明のネットワークシステムは、前記計時手段が前記時刻の経過を計時し、かつ、前記受信機器がデータを送信する場合、前記受信機器は、前記データを送信するときの送信処理時間および所定の処理時間を前記同期時刻に加算し、加算した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信する構成を有している。   Further, in the network system of the present invention, when the time measuring unit measures the lapse of time and the receiving device transmits data, the receiving device transmits a transmission processing time and a predetermined time when transmitting the data. Is added to the synchronization time, and a token including time information representing the added time is transmitted to another communication device.

この構成により、受信機器がデータを送信する場合でも、所定の処理時間に加えて送信処理時間も同期時刻に加算してトークンを他の通信機器に送信するため、それぞれの通信機器における同期のタイミングを損なうことなくデータの送受信を行うことができる。   With this configuration, even when the receiving device transmits data, the transmission processing time is added to the synchronization time in addition to the predetermined processing time, and the token is transmitted to other communication devices. Data can be transmitted and received without impairing data.

また、本発明のネットワークシステムにおいて、それぞれの前記計時手段が計時する時刻は、所定の周期毎に初期化され、前記加算した時刻が前記周期を経過したとき、前記受信機器は、前記加算した時刻を補正し、補正した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信する構成を有している。   Further, in the network system of the present invention, the time measured by each of the time measuring means is initialized every predetermined cycle, and when the added time has passed the cycle, the receiving device And a token including time information indicating the corrected time is transmitted to another communication device.

この構成により、計時する時刻が所定の周期毎に初期化される場合において、加算した時刻が周期を経過したとき、受信機器が加算した時刻を補正し、補正した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信するため、それぞれの通信機器における同期のタイミングを損なうことなくデータの送受信を行うことができる。   With this configuration, when the time to be timed is initialized for each predetermined cycle, when the added time has passed the cycle, the time added by the receiving device is corrected, and time information indicating the corrected time is included. Since the token is transmitted to another communication device, data can be transmitted / received without losing the synchronization timing in each communication device.

また、本発明のネットワークシステムにおいて、前記送信処理時間は、前記データを送信するときのデータ量およびデータの転送速度に基づいて算出される構成を有している。   In the network system according to the present invention, the transmission processing time is calculated based on a data amount and a data transfer rate when the data is transmitted.

この構成により、送信処理時間がデータ量およびデータの転送速度に基づいて算出されるため、他の通信機器に送信するためのデータ量が可変量となるときでも対応可能である。   With this configuration, since the transmission processing time is calculated based on the data amount and the data transfer rate, it is possible to cope with the case where the data amount to be transmitted to other communication devices is variable.

本発明は、ネットワークに接続された複数の通信機器が互いにタイミングを合わせてデータの送受信を行うと共に、単純な構成でかつトラフィックを低減させることのできるネットワークシステムを提供することを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to provide a network system in which a plurality of communication devices connected to a network can transmit and receive data at the same timing, and can reduce traffic with a simple configuration.

以下、本発明の実施の形態に係るネットワークシステムについて、図面を用いて説明する。   Hereinafter, a network system according to an embodiment of the present invention will be described with reference to the drawings.

(第1の実施の形態)
本発明の第1の実施の形態に係るネットワークシステムのブロック構成図を図1に示す。本発明の第1の実施の形態に係るネットワークシステム10は、通信機器1、通信機器2、および通信機器3がバス4と通信可能に接続された構成を有している。なお、ネットワークシステム10は、改良型トークンパッシング型LANのARCNET(Attached Resource Computer NETwork)に適用された場合のネットワーク構成である。また、図1に示したネットワークシステム10においては、通信機器を3つ図示しているが、3つに限定されず、多数の通信機器を備えるようにしてもよい。
(First embodiment)
FIG. 1 shows a block diagram of a network system according to the first embodiment of the present invention. The network system 10 according to the first embodiment of the present invention has a configuration in which a communication device 1, a communication device 2, and a communication device 3 are connected to a bus 4 so as to be communicable. The network system 10 has a network configuration when applied to an ARCNET (Attached Resource Computer NETwork) of an improved token passing LAN. In the network system 10 shown in FIG. 1, three communication devices are illustrated, but the number is not limited to three, and a large number of communication devices may be provided.

通信機器1、通信機器2、および通信機器3は、時刻を計時する内部タイマ8を備えている。通信機器1、通信機器2、および通信機器3の内部タイマ8を、それぞれ内部タイマ8a、内部タイマ8b、内部タイマ8cとして示す。その他、それぞれの通信機器は、ネットワーク上に接続された機器と通信するためのネットワークインタフェースやプログラムを実行するCPU(Central Processing Unit)などを備えている。なお、内部タイマ8に関わる処理や通信機器が行う処理は、プログラムとして機能させるようにしてもよい。   The communication device 1, the communication device 2, and the communication device 3 are provided with an internal timer 8 that measures time. The internal timers 8 of the communication device 1, the communication device 2, and the communication device 3 are shown as an internal timer 8a, an internal timer 8b, and an internal timer 8c, respectively. In addition, each communication device includes a network interface for communicating with a device connected on the network, a CPU (Central Processing Unit) for executing a program, and the like. Note that the processing related to the internal timer 8 and the processing performed by the communication device may function as a program.

図1に示したように、例えば通信機器1が、時刻情報が含まれるトークン12を他の通信機器それぞれに送信するようになっている。なお、通信機器1が送信したときのトークン12には、通信機器2のアドレスを示す情報が付加され、時刻情報には、時刻t2が設定されている。また、トークンは、データ送信のための権利を表す信号であり、トークンを受信した通信機器が、バス4を介して他の通信機器にデータを送信することができる権利を有する。また、トークンに含まれる時刻情報が示す時刻を同期時刻という。   As illustrated in FIG. 1, for example, the communication device 1 transmits a token 12 including time information to each of the other communication devices. Information indicating the address of the communication device 2 is added to the token 12 when the communication device 1 transmits, and time t2 is set in the time information. The token is a signal representing the right for data transmission, and the communication device that has received the token has the right to transmit data to other communication devices via the bus 4. The time indicated by the time information included in the token is referred to as a synchronization time.

トークン12を受信した通信機器のうち、自己宛のトークン12を受信した通信機器2は、同期時刻t2を内部タイマ8bに計時させるようになっている。その後、通信機器2がデータを送信せずに内部タイマ8bが、同期時刻t2の経過を計時した場合、通信機器2は、同期時刻t2に所定の処理時間を加算した時刻を表す時刻情報が含まれるトークン22を他の通信機器に送信するようになっている。なお、通信機器2が送信したときのトークン22には、通信機器3のアドレスを示す情報が付加される。   Of the communication devices that have received the token 12, the communication device 2 that has received the token 12 addressed to itself causes the internal timer 8b to count the synchronization time t2. Thereafter, when the communication device 2 does not transmit data and the internal timer 8b times the synchronization time t2, the communication device 2 includes time information indicating a time obtained by adding a predetermined processing time to the synchronization time t2. The token 22 to be transmitted is transmitted to another communication device. Information indicating the address of the communication device 3 is added to the token 22 when the communication device 2 transmits.

以下、本発明の第1の実施の形態に係るネットワークシステムの処理について、図面を参照して説明する。   Hereinafter, processing of the network system according to the first embodiment of the present invention will be described with reference to the drawings.

図2は、各通信機器におけるデータ送受信のタイミングの関係を示したタイムチャートである。なお、図2には、通信機器1および通信機器2が送信するデータを持っておらず、通信機器3だけが通信機器1に送信するためのデータを持っており、通信機器3が通信機器1にデータを送信する様子が示されている。また、周期Tは、内部タイマ8a、内部タイマ8b、および内部タイマ8cそれぞれを同期させるための周期であり、それぞれの内部タイマ8が計時する時刻は、周期T毎に初期化される。   FIG. 2 is a time chart showing the relationship of data transmission / reception timing in each communication device. In FIG. 2, the communication device 1 and the communication device 2 do not have data to be transmitted, only the communication device 3 has data to be transmitted to the communication device 1, and the communication device 3 has the communication device 1. A state of transmitting data is shown. The period T is a period for synchronizing the internal timer 8a, the internal timer 8b, and the internal timer 8c, and the time measured by each internal timer 8 is initialized every period T.

まず、通信機器1は、トークン12の送信タイミングである時刻t1と、トークン12を送信してから通信機器2が応答を開始するまでの処理時間Ttと、を加算した時刻t2を表す時刻情報が含まれるトークン12を他の通信機器に送信する。なお、トークン12には通信機器2のアドレスを示す情報が付加される。   First, the communication device 1 has time information indicating time t2 obtained by adding the time t1 that is the transmission timing of the token 12 and the processing time Tt from when the token 12 is transmitted until the communication device 2 starts a response. The included token 12 is transmitted to another communication device. Note that information indicating the address of the communication device 2 is added to the token 12.

次に、トークン12を受信した通信機器2および通信機器3は、受信したトークン12に含まれる同期時刻t2を内部タイマ8に計時させる。このとき、通信機器2は、トークン12が自己宛であり、他の通信機器に送信するためのデータがない、と判定する。その後、内部タイマ8bが同期時刻t2の経過を計時した場合、通信機器2は、同期時刻t2に処理時間Ttを加算した時刻t3を表す時刻情報が含まれるトークン22を他の通信機器に送信する。なお、トークン22には通信機器3のアドレスを示す情報が付加される。   Next, the communication device 2 and the communication device 3 that have received the token 12 cause the internal timer 8 to count the synchronization time t2 included in the received token 12. At this time, the communication device 2 determines that the token 12 is addressed to itself and there is no data to be transmitted to another communication device. Thereafter, when the internal timer 8b measures the elapse of the synchronization time t2, the communication device 2 transmits a token 22 including time information representing the time t3 obtained by adding the processing time Tt to the synchronization time t2 to another communication device. . Note that information indicating the address of the communication device 3 is added to the token 22.

次に、トークン22を受信した通信機器1および通信機器3は、同期時刻t3をそれぞれの内部タイマ8に計時させる。このとき、通信機器3は、トークン22が自己宛であり、通信機器1に送信するためのデータを有していると判定するため、データを通信機器1に送信する。   Next, the communication device 1 and the communication device 3 that have received the token 22 cause the respective internal timers 8 to count the synchronization time t3. At this time, the communication device 3 transmits data to the communication device 1 in order to determine that the token 22 is addressed to itself and has data to be transmitted to the communication device 1.

ところで、データを送受信するためには、ARCNETのような通信規格に従って一連の手順を踏む必要となる場合がある。一連の手順としては、図2に示すように、送信先の通信機器のバッファが空きか否かを問い合わせるための信号FBEが、送信元の通信機器から送信先の通信機器に送信され、信号FBEに対する応答信号ACKが、送信先の通信機器から送信元の通信機器に送信され、データを送信するための信号PACが、送信元の通信機器から送信先の通信機器に送信され、信号PACに対する応答信号ACKが、送信先の通信機器から送信元の通信機器に送信される。   By the way, in order to transmit and receive data, it may be necessary to follow a series of procedures in accordance with a communication standard such as ARCNET. As a series of procedures, as shown in FIG. 2, a signal FBE for inquiring whether or not the buffer of the destination communication device is empty is transmitted from the source communication device to the destination communication device, and the signal FBE is transmitted. Is transmitted from the transmission destination communication device to the transmission source communication device, a signal PAC for transmitting data is transmitted from the transmission source communication device to the transmission destination communication device, and a response to the signal PAC. The signal ACK is transmitted from the transmission destination communication device to the transmission source communication device.

また、通信機器3は、データの送信に要した送信処理時間Tdおよび処理時間Ttを同期時刻t3に加算した時刻である時刻t4を算出する。ところが、時刻t4は周期T以上になるため、通信機器3は、時刻t4を(1)式で求め、時刻t4を補正し、補正した時刻t4を表す時刻情報が含まれるトークン32を他の通信機器に送信する。   Further, the communication device 3 calculates a time t4 that is a time obtained by adding the transmission processing time Td and the processing time Tt required for data transmission to the synchronization time t3. However, since the time t4 is equal to or greater than the period T, the communication device 3 obtains the time t4 by the equation (1), corrects the time t4, and transmits the token 32 including the time information indicating the corrected time t4 to other communication. Send to device.

(数1)
t4=t3+Td+Tt−T ・・・(1)
なお、通信機器3が送信するトークン32には、通信機器1のアドレスを示す情報が付加される。各通信機器間でトークンを巡回させることにより、ネットワークシステム10におけるデータの送信タイミングを同期させる。また、第1の実施の形態においては、送信するデータの量が一定であり、それぞれの通信機器は、送信処理時間Tdの値を定数として予め用意していてもよい。なお、それぞれの通信機器は、処理時間Ttの値を定数として予め用意していてもよい。
(Equation 1)
t4 = t3 + Td + Tt−T (1)
Information indicating the address of the communication device 1 is added to the token 32 transmitted by the communication device 3. The data transmission timing in the network system 10 is synchronized by circulating the token between the communication devices. In the first embodiment, the amount of data to be transmitted is constant, and each communication device may prepare in advance the value of the transmission processing time Td as a constant. Each communication device may prepare in advance the value of the processing time Tt as a constant.

図3は、本発明の第1の実施の形態に係る各通信機器が行う処理を示すフローチャートである。   FIG. 3 is a flowchart showing processing performed by each communication device according to the first embodiment of the present invention.

まず、トークンが通信機器によって受信されたとき(S1)、同期時刻が、内部タイマ8によって計時され(S2)、受信されたトークンが自己宛であるか否かを判定する(S3)。自己宛でないと判定した場合には、再度トークンの受信を待ち合わせ、自己宛であると判定した場合には、他の通信機器に送信するためのデータがあるか否かを判定する(S4)。   First, when a token is received by the communication device (S1), the synchronization time is measured by the internal timer 8 (S2), and it is determined whether the received token is addressed to itself (S3). If it is determined that it is not addressed to itself, it waits for the reception of the token again. If it is determined that it is addressed to itself, it is determined whether there is data to be transmitted to another communication device (S4).

送信するためのデータがない場合には、同期時刻に処理時間Ttを加算した値が周期Tの値以上か否かを判定する(S6)。周期Tの値を超えない場合には、同期時刻に処理時間Ttを加算し、加算して得られた時刻を示す時刻情報をトークンに設定する(S9)。周期Tの値以上の場合には、同期時刻に処理時間Ttを加算し、加算して得られた時刻に周期Tを減算し、減算して得られた時刻を示す時刻情報をトークンに設定する(S10)。このとき、時刻情報が設定されたトークンは、他の通信機器に送信される(S12)。   If there is no data to be transmitted, it is determined whether or not the value obtained by adding the processing time Tt to the synchronization time is equal to or greater than the value of the cycle T (S6). If the value does not exceed the value of the period T, the processing time Tt is added to the synchronization time, and time information indicating the time obtained by the addition is set in the token (S9). When the value is equal to or greater than the value of the period T, the processing time Tt is added to the synchronization time, the period T is subtracted from the time obtained by the addition, and time information indicating the time obtained by the subtraction is set in the token. (S10). At this time, the token for which the time information is set is transmitted to another communication device (S12).

また、送信するためのデータがある場合には、同期時刻に処理時間Ttおよび送信処理時間Tdを加算した値が周期Tの値以上か否かを判定する(S5)。周期Tの値を超えない場合には、同期時刻に処理時間Ttおよび送信処理時間Tdを加算し、加算して得られた時刻を示す時刻情報をトークンに設定する(S7)。周期Tの値以上の場合には、同期時刻に処理時間Ttおよび送信処理時間Tdを加算し、加算して得られた時刻に周期Tを減算し、減算して得られた時刻を示す時刻情報をトークンに設定する(S8)。このとき、データが特定の通信機器に送信される(S11)。データの送信後、時刻情報が設定されたトークンは、他の通信機器に送信される(S12)。   If there is data to be transmitted, it is determined whether or not the value obtained by adding the processing time Tt and the transmission processing time Td to the synchronization time is equal to or greater than the value of the cycle T (S5). If the value of the period T is not exceeded, the processing time Tt and the transmission processing time Td are added to the synchronization time, and time information indicating the time obtained by the addition is set in the token (S7). Time information indicating the time obtained by adding the processing time Tt and the transmission processing time Td to the synchronization time, subtracting the period T from the time obtained by the addition, and subtracting when the value is equal to or greater than the value of the period T Is set as a token (S8). At this time, data is transmitted to a specific communication device (S11). After the data transmission, the token in which the time information is set is transmitted to another communication device (S12).

以上説明したように、本発明の第1の実施の形態に係るネットワークシステムは、トークンを受信した通信機器(以下、受信機器という。)が、所定の処理時間を加算した時刻を表す時刻情報が含まれるトークンを送信することにより、それぞれの通信機器が互いにタイミングを合わせてデータの送受信を行うため、基準の機器の設置を不要とし、ネットワークシステムを単純な構成にすることができる。また、一定間隔でトークンをブロードキャストしないため、トラフィックを低減させることができる。   As described above, in the network system according to the first embodiment of the present invention, the time information indicating the time when the communication device that has received the token (hereinafter referred to as a receiving device) adds a predetermined processing time is provided. By transmitting the included token, each communication device transmits and receives data at the same timing, so that it is not necessary to install a reference device, and the network system can be simplified. Further, since the token is not broadcast at regular intervals, traffic can be reduced.

また、受信機器がデータを送信する場合でも、所定の処理時間に加えて送信処理時間をも同期時刻に加算してトークンを他の通信機器に送信するため、それぞれの通信機器における同期のタイミングを損なうことなくデータの送受信を行うことができる。   Even when the receiving device transmits data, the transmission processing time is added to the synchronization time in addition to the predetermined processing time, and the token is transmitted to other communication devices. Data can be transmitted and received without loss.

また、計時する時刻が所定の周期毎に初期化される場合において、加算した時刻が周期を経過したとき、受信機器が加算した時刻を補正し、補正した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信するため、それぞれの通信機器における同期のタイミングを損なうことなくデータの送受信を行うことができる。   In addition, when the time to be timed is initialized every predetermined cycle, when the added time has passed the cycle, the time added by the receiving device is corrected, and a token including time information indicating the corrected time is included. Since data is transmitted to other communication devices, data can be transmitted / received without losing the synchronization timing of each communication device.

(第2の実施の形態)
本発明の第2の実施の形態に係るネットワークシステムのブロック構成図を図4に示す。また、第1の実施の形態においては、送信するデータの量が一定であったが、第2の実施の形態においては、任意のデータ量を送受信可能にしたネットワークシステムについて説明する。
(Second Embodiment)
FIG. 4 shows a block configuration diagram of a network system according to the second embodiment of the present invention. In the first embodiment, the amount of data to be transmitted is constant, but in the second embodiment, a network system that enables transmission and reception of an arbitrary amount of data will be described.

本発明の第2の実施の形態に係るネットワークシステム20は、通信機器5、通信機器6、および通信機器7がバス4と通信可能に接続された構成を有している。なお、ネットワークシステム20は、改良型トークンパッシング型LANのARCNET(Attached Resource Computer NETwork)に適用された場合のネットワーク構成である。また、図4に示したネットワークシステム20においては、通信機器を3つ図示しているが、3つに限定されず、多数の通信機器を備えるようにしてもよい。   The network system 20 according to the second embodiment of the present invention has a configuration in which the communication device 5, the communication device 6, and the communication device 7 are communicably connected to the bus 4. The network system 20 has a network configuration when applied to an improved token-passing LAN ARCNET (Attached Resource Computer NETwork). In the network system 20 shown in FIG. 4, three communication devices are illustrated, but the number is not limited to three, and a large number of communication devices may be provided.

なお、本発明の第2の実施の形態に係るネットワークシステムを構成する構成要素のうち、本発明の第1の実施の形態に係るネットワークシステムを構成する構成要素と同一の構成要素には同一の符号を付し、それぞれの説明を省略する。また、通信機器5、通信機器6、および通信機器7は、時刻を計時する内部タイマ8を備えている。通信機器5、通信機器6、および通信機器7の内部タイマ8を、それぞれ内部タイマ8d、内部タイマ8e、内部タイマ8fとして示す。   Of the components constituting the network system according to the second embodiment of the present invention, the same components as those constituting the network system according to the first embodiment of the present invention are the same. Reference numerals are assigned and explanations thereof are omitted. In addition, the communication device 5, the communication device 6, and the communication device 7 include an internal timer 8 that measures time. The internal timers 8 of the communication device 5, the communication device 6, and the communication device 7 are shown as an internal timer 8d, an internal timer 8e, and an internal timer 8f, respectively.

図4に示したように、例えば通信機器5は、内部タイマ8dが同期時刻t5の経過を計時し、時刻情報が含まれるトークン42を他の通信機器それぞれに送信するようになっている。なお、通信機器5が送信したときのトークン42には、通信機器6のアドレスを示す情報および時刻情報が付加されている。   As shown in FIG. 4, for example, the communication device 5 is configured such that the internal timer 8d measures the elapse of the synchronization time t5 and transmits the token 42 including the time information to each of the other communication devices. Information indicating the address of the communication device 6 and time information are added to the token 42 when the communication device 5 transmits.

以下、本発明の第2の実施の形態に係るネットワークシステムの処理について、図面を参照して説明する。   Hereinafter, processing of the network system according to the second embodiment of the present invention will be described with reference to the drawings.

図5は、各通信機器におけるデータ送受信のタイミングの関係を示したタイムチャートである。なお、図5には、通信機器6および通信機器7が送信するデータを持っておらず、通信機器5だけが通信機器7に送信するためのデータを持っており、通信機器5が通信機器7にデータを送信する様子が示されている。   FIG. 5 is a time chart showing the relationship of data transmission / reception timing in each communication device. In FIG. 5, the communication device 6 and the communication device 7 do not have data to be transmitted, only the communication device 5 has data to be transmitted to the communication device 7, and the communication device 5 has the communication device 7. A state of transmitting data is shown.

まず、通信機器5は、自己宛のトークンを受信し、通信機器7に送信するためのデータを有していると判定したとき、送信処理時間Tdを算出する。ここで、信号FBEの送信に係る時間Tfbe、応答信号ACKの送信に係る時間Tack、信号PACの送信に係る時間td、データ送信の完了から応答信号ACKを受信するまでの時間tpとすれば、送信処理時間Tdは、(2)式で表される。なお、時間Tfbe、時間Tack、および時間tpはネットワーク固有の定数である。   First, when the communication device 5 receives the token addressed to itself and determines that it has data to be transmitted to the communication device 7, it calculates a transmission processing time Td. Here, a time Tfbe related to the transmission of the signal FBE, a time Tack related to the transmission of the response signal ACK, a time td related to the transmission of the signal PAC, and a time tp from the completion of the data transmission to the reception of the response signal ACK, The transmission processing time Td is expressed by equation (2). The time Tfbe, the time Tack, and the time tp are constants specific to the network.

(数2)
Td=Tfbe+Tack+td+tp+Tack ・・・(2)
また、ネットワーク固有の定数である転送速度S、送信するときのデータ量nとすると、時間tdは、(3)式で表される。なお、本実施の形態では、転送速度Sの単位をbps、データ量nの単位をbitとする。
(Equation 2)
Td = Tfbe + Tack + td + tp + Tack (2)
Further, assuming that the transfer rate S, which is a network-specific constant, and the data amount n at the time of transmission, time td is expressed by equation (3). In this embodiment, the unit of the transfer rate S is bps, and the unit of the data amount n is bit.

(数3)
td=n/S ・・・(3)
また、通信機器5は、算出した送信処理時間Tdおよび処理時間Ttを時刻t5に加算した時刻である時刻t6を算出する。ところが、時刻t6は周期Tよりも大きいため、通信機器5は、時刻t6を(4)式で求め、時刻t6を補正し、補正した時刻t6を表す時刻情報が含まれるトークン42を他の通信機器に送信する。
(Equation 3)
td = n / S (3)
In addition, the communication device 5 calculates a time t6 that is a time obtained by adding the calculated transmission processing time Td and the processing time Tt to the time t5. However, since the time t6 is larger than the period T, the communication device 5 obtains the time t6 by the equation (4), corrects the time t6, and transfers the token 42 including the time information indicating the corrected time t6 to other communication. Send to device.

(数4)
t6=t5+Td+Tt−T ・・・(4)
図6は、本発明の第2の実施の形態に係る各通信機器が行う処理を示すフローチャートである。なお、本発明の第2の実施の形態に係る各通信機器が行う処理のうち、本発明の第1の実施の形態に係る各通信機器が行う処理と同一のものには同一の符号を付し、それぞれの説明を省略する。
(Equation 4)
t6 = t5 + Td + Tt−T (4)
FIG. 6 is a flowchart showing processing performed by each communication device according to the second embodiment of the present invention. Of the processing performed by each communication device according to the second embodiment of the present invention, the same processing as that performed by each communication device according to the first embodiment of the present invention is denoted by the same reference numeral. Each description is omitted.

受信されたトークンが自己宛であると判定した場合には、他の通信機器に送信するためのデータがあるか否かを判定する(S4)。送信するためのデータがある場合には、送信処理時間Tdがデータを送信するときのデータ量およびデータの転送速度に基づいて算出され(S20)、算出された送信処理時間Tdおよび同期時刻に処理時間Ttを加算した値が周期Tの値以上か否かを判定する(S5)。   If it is determined that the received token is addressed to itself, it is determined whether there is data to be transmitted to another communication device (S4). When there is data to be transmitted, the transmission processing time Td is calculated based on the data amount and the data transfer speed when transmitting the data (S20), and processed at the calculated transmission processing time Td and the synchronization time. It is determined whether the value obtained by adding the time Tt is equal to or greater than the value of the period T (S5).

以上説明したように、本発明の第2の実施の形態に係るネットワークシステムは、送信処理時間がデータ量およびデータの転送速度に基づいて算出されるため、他の通信機器に送信するためのデータ量が可変量となるときでも対応可能である。   As described above, since the network processing system according to the second embodiment of the present invention calculates the transmission processing time based on the data amount and the data transfer rate, the data to be transmitted to other communication devices. Even when the amount is variable, it can be handled.

以上のように、本発明に係るネットワークシステムは、ネットワークに接続された複数の通信機器が互いにタイミングを合わせてデータの送受信を行うと共に、単純な構成でかつトラフィックを低減させることができるという効果を有し、データを送受する複数の通信機器によって構成されるネットワークシステム等として有用である。   As described above, the network system according to the present invention has an effect that a plurality of communication devices connected to the network can transmit and receive data at the same timing, and can reduce traffic with a simple configuration. It is useful as a network system that includes a plurality of communication devices that transmit and receive data.

本発明の第1の実施の形態に係るネットワークシステムのブロック構成図The block block diagram of the network system which concerns on the 1st Embodiment of this invention 本発明の第1の実施の形態に係る各通信機器におけるデータ送受信のタイミングの関係を示したタイムチャートThe time chart which showed the relationship of the timing of the data transmission / reception in each communication apparatus which concerns on the 1st Embodiment of this invention 本発明の第1の実施の形態に係る各通信機器が行う処理を示すフローチャートThe flowchart which shows the process which each communication apparatus which concerns on the 1st Embodiment of this invention performs. 本発明の第2の実施の形態に係るネットワークシステムのブロック構成図The block block diagram of the network system which concerns on the 2nd Embodiment of this invention 本発明の第2の実施の形態に係る各通信機器におけるデータ送受信のタイミングの関係を示したタイムチャートThe time chart which showed the relationship of the timing of the data transmission / reception in each communication apparatus which concerns on the 2nd Embodiment of this invention 本発明の第2の実施の形態に係る各通信機器が行う処理を示すフローチャートThe flowchart which shows the process which each communication apparatus which concerns on the 2nd Embodiment of this invention performs.

符号の説明Explanation of symbols

1、2、3、5、6、7 通信機器
4 バス
8、8a、8b、8c、8d、8e、8f 内部タイマ(計時手段)
10、20 ネットワークシステム
12、22、32、42 トークン
1, 2, 3, 5, 6, 7 Communication device 4 Bus 8, 8a, 8b, 8c, 8d, 8e, 8f Internal timer (time measuring means)
10, 20 Network system 12, 22, 32, 42 tokens

Claims (4)

ネットワークと通信可能に接続され、時刻を計時する計時手段を有する複数の通信機器を備え、
前記複数の通信機器のうち何れか1つの通信機器が、時刻情報が含まれるトークンを他の通信機器に送信し、
自己宛の前記トークンを受信した通信機器となる受信機器の受信したトークンに含まれる時刻情報が示す同期時刻を前記計時手段に計時させ、
前記計時手段は、前記同期時刻の経過を計時した場合、前記受信機器の所定の処理時間を前記同期時刻に加算し、加算した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信することを特徴とするネットワークシステム。
A plurality of communication devices connected to a network so as to be communicable and having time measuring means for measuring time;
Any one of the plurality of communication devices transmits a token including time information to another communication device,
Causing the time measuring means to count the synchronization time indicated by the time information included in the received token of the receiving device that is the communication device that has received the token addressed to itself,
When the time of the synchronization time has elapsed, the time measuring unit adds a predetermined processing time of the receiving device to the synchronization time, and transmits a token including time information indicating the added time to another communication device. A network system characterized by this.
前記計時手段が前記時刻の経過を計時し、かつ、前記受信機器がデータを送信する場合、
前記受信機器は、前記データを送信するときの送信処理時間および所定の処理時間を前記同期時刻に加算し、加算した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信することを特徴とする請求項1に記載のネットワークシステム。
When the time measuring means time elapses and the receiving device transmits data,
The receiving device adds a transmission processing time and a predetermined processing time when transmitting the data to the synchronization time, and transmits a token including time information indicating the added time to another communication device. The network system according to claim 1.
それぞれの前記計時手段が計時する時刻は、所定の周期毎に初期化され、前記加算した時刻が前記周期を経過したとき、
前記受信機器は、前記加算した時刻を補正し、補正した時刻を表す時刻情報が含まれるトークンを他の通信機器に送信することを特徴とする請求項1または請求項2に記載のネットワークシステム。
The time measured by each of the time measuring means is initialized every predetermined cycle, and when the added time has passed the cycle,
The network system according to claim 1, wherein the receiving device corrects the added time and transmits a token including time information indicating the corrected time to another communication device.
前記送信処理時間は、前記データを送信するときのデータ量およびデータの転送速度に基づいて算出されることを特徴とする請求項1から請求項3までの何れかに記載のネットワークシステム。 The network system according to any one of claims 1 to 3, wherein the transmission processing time is calculated based on a data amount and a data transfer speed when the data is transmitted.
JP2004275189A 2004-09-22 2004-09-22 Network system Withdrawn JP2006093967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004275189A JP2006093967A (en) 2004-09-22 2004-09-22 Network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004275189A JP2006093967A (en) 2004-09-22 2004-09-22 Network system

Publications (1)

Publication Number Publication Date
JP2006093967A true JP2006093967A (en) 2006-04-06

Family

ID=36234536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004275189A Withdrawn JP2006093967A (en) 2004-09-22 2004-09-22 Network system

Country Status (1)

Country Link
JP (1) JP2006093967A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891716B2 (en) 2011-12-28 2014-11-18 Fujitsu Limited Node device and method for synchronizing clock times

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891716B2 (en) 2011-12-28 2014-11-18 Fujitsu Limited Node device and method for synchronizing clock times
JPWO2013099026A1 (en) * 2011-12-28 2015-04-30 富士通株式会社 Node device and time synchronization method

Similar Documents

Publication Publication Date Title
RU2670605C9 (en) System and method for indicating type of response frame
US20210351882A1 (en) Transmitting and Receiving Packets Wirelessly
JP2008306648A (en) Data relaying apparatus, data relaying method and communication network system
JP3802408B2 (en) Network system synchronization method
JP2009141565A (en) Reception terminal apparatus
JP2006093967A (en) Network system
JP2009239449A (en) Precise synchronization type network device, network system, and frame transfer method
JP4192627B2 (en) Packet transmission / reception method and apparatus
JP2008236477A (en) Communication delay time estimating method, communication delay time estimating program, and onboard communication equipment
WO2017068663A1 (en) Communication device, communication method, and communication program
JP2008544623A (en) Method and apparatus for data transmission using clock domain
JP2007074086A (en) Data communication device, communication control method, and communication control program
US20020065973A1 (en) Method and a apparatus for transmitting data on a can data link
KR101379925B1 (en) Apparatas and method for minimization routing delay time of gateway module
US9473597B2 (en) Implementing multiple MAC protocols using a single wireless communication unit
KR100518000B1 (en) Method for transmitting a delayed ack
WO2004032437A8 (en) Method and apparatus for processing superframes using an arbitration system
JP3816833B2 (en) Network bandwidth controller
JP2009021790A (en) Radio communication method and equipment
KR100649714B1 (en) Media access control unit for processing data and method for transmitting and receiving data using as the same
JP2006033490A (en) Data communication device, and communication system
WO2014203449A1 (en) Communication system, method for controlling communication system, transmission device, and reception device
WO2014203485A1 (en) Communication system, method for controlling communication system, transmission device, and reception device
JP3816834B2 (en) Network bandwidth controller
US10749781B2 (en) Setting device, setting method, recording medium to which setting program is recorded, communication system, client device, and server device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061212

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20080611