JP2001045020A - Reply distribution type communication method and communication system - Google Patents
Reply distribution type communication method and communication systemInfo
- Publication number
- JP2001045020A JP2001045020A JP21786399A JP21786399A JP2001045020A JP 2001045020 A JP2001045020 A JP 2001045020A JP 21786399 A JP21786399 A JP 21786399A JP 21786399 A JP21786399 A JP 21786399A JP 2001045020 A JP2001045020 A JP 2001045020A
- Authority
- JP
- Japan
- Prior art keywords
- response
- node
- nodes
- transmission
- request
- 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.)
- Granted
Links
- 230000006854 communication Effects 0.000 title claims abstract description 179
- 238000004891 communication Methods 0.000 title claims abstract description 177
- 238000000034 method Methods 0.000 title claims abstract description 103
- 230000005540 biological transmission Effects 0.000 claims abstract description 140
- 230000003111 delayed effect Effects 0.000 claims abstract description 10
- 230000004044 response Effects 0.000 claims description 268
- 238000010586 diagram Methods 0.000 description 19
- 238000007726 management method Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 17
- 238000012545 processing Methods 0.000 description 6
- 230000001934 delay Effects 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 102100034871 C-C motif chemokine 8 Human genes 0.000 description 1
- 101000946794 Homo sapiens C-C motif chemokine 8 Proteins 0.000 description 1
- 101001094026 Synechocystis sp. (strain PCC 6803 / Kazusa) Phasin PhaP Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数のノードが相
互にデータの送受信を行う通信システム用であって、防
災システムなどに適用可能な応答分散式通信方法および
その通信システムに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed communication method for a communication system in which a plurality of nodes mutually transmit and receive data, and which is applicable to a disaster prevention system and the like, and a communication system thereof.
【0002】[0002]
【従来の技術】従来、様々な通信方法が提案されまた採
用されているが、例えば、特開平5−211503号公
報には、ネットワークに接続された複数の局を有し、発
呼局から送信された同報要求情報を受信した複数の着呼
局は発呼局に同報応答情報を送信する同報通信方式にお
いて、各着呼局は、他の着呼局と異なる遅延時間が経過
した後、同報応答情報を送信し、これにより、ネットワ
ーク上の局所的なトラヒックの増加を抑制する同報通信
方式が記載されている。2. Description of the Related Art Conventionally, various communication methods have been proposed and adopted. For example, Japanese Patent Laid-Open Publication No. Hei 5-212503 has a plurality of stations connected to a network and transmits a call from a calling station. In a broadcast communication system in which a plurality of called stations receiving the received broadcast request information transmit broadcast response information to the calling station, each called station has a different delay time from the other called stations. Thereafter, a broadcast communication method is described in which broadcast response information is transmitted, thereby suppressing an increase in local traffic on a network.
【0003】また、特開平10−79753号公報に
は、一斉同報伝文送信局は一斉同報伝文受信局が応答伝
文を送信するまでの待ち時間を指定するディレイ種別情
報を一斉同報伝文中に挿入または付加して送信し、一斉
同報伝文受信局は、その一斉同報伝文を受信して伝文中
のディレイ種別情報を読み取って自局のディレイタイム
を設定し、設定されたディレイタイム経過後に応答伝文
を送信し、これにより、短い一斉同報伝文で応答伝文が
返信されるタイミングを制御することができる一斉同報
通信制御方法が開示されている。Japanese Patent Laid-Open Publication No. Hei 10-79753 discloses that a broadcast message transmitting station broadcasts delay type information for designating a waiting time until a broadcast message receiving station transmits a response message. The broadcast message receiving station inserts or adds the message in the message and sends it. The broadcast message receiving station receives the broadcast message, reads the delay type information in the message, sets the delay time of its own station, and sets it. A broadcast communication control method is disclosed in which a response message is transmitted after the elapse of the delay time, whereby the timing at which the response message is returned in a short broadcast message can be controlled.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記公
報に記載の方法では、いずれも単独のノードが同報を行
った場合の動作が規定されているに止まり、それら方法
を複数のノードが相互にデータの送受信を行う通信シス
テムに適用することができない。However, according to the methods described in the above publications, the operation in the case where a single node broadcasts is limited, and a plurality of nodes are required to perform the method in a case where a single node broadcasts. It cannot be applied to a communication system for transmitting and receiving data.
【0005】ところで、このような通信システムには、
複数のノードが送信を行った場合にデータが消失するな
どの問題点が存在する。By the way, such a communication system includes:
There is a problem that data is lost when a plurality of nodes transmit.
【0006】図10はこの問題点の説明図で、この図の
例では、一のノードが時点t1で要求を送信した後、時
点t2で別のノードが要求を送信すると、その時点t2
以降の区間TM1では、単独のノードが要求を送信した
場合の2倍のトラヒックが発生することになるので、デ
ータの衝突や受信バッファ漏れなどに起因してデータが
消失する恐れがある。要求を送信するノード数がさらに
増加すると、トラヒック量がさらに増加することから、
データ消失の危険性が一層高くなる。特に、各ノードが
自律的に動作し、非同期にデータの送信を行う分散シス
テムでは、他のノードの送信タイミングを予測すること
が困難であり、このため、全ノードが一斉に要求を送信
する場合を想定して通信システムの設計を行う必要があ
る。ただし、図10において、時点t1,t2以外の送
信信号は応答の送信信号である。FIG. 10 is an explanatory diagram of this problem. In this example, when one node transmits a request at time t1 and another node transmits a request at time t2, the time t2
In the subsequent section TM1, twice as much traffic as when a single node transmits a request will occur, so that data may be lost due to data collision, reception buffer leakage, or the like. As the number of nodes sending requests further increases, the traffic volume further increases,
The risk of data loss is further increased. In particular, in a distributed system in which each node operates autonomously and transmits data asynchronously, it is difficult to predict the transmission timing of other nodes. For this reason, when all nodes transmit requests at the same time, It is necessary to design a communication system in consideration of the following. However, in FIG. 10, the transmission signal other than the time points t1 and t2 is a response transmission signal.
【0007】なお、複数のノードが相互にデータの送受
信を行う通信システムでは、要求の遅延を最小限に抑え
る通信方法も望まれる。また、応答の遅延を最小限に抑
える通信方法も望まれる。後者は、各ノードに並列処理
機能を具備させれば、ある要求に対する応答の収集が終
了する前に次の要求の送信が可能になるので、必ずしも
必要とは言えないが、並列処理機能を具備するにはより
複雑なトランザクション管理機能が必要になり、各ノー
ド、引いては通信システムの設計が勢い複雑になる。こ
のため、並列処理機能を具備しない方が設計が極めて容
易になり、この場合、応答の遅延を最小限に抑えること
が要求される。[0007] In a communication system in which a plurality of nodes transmit and receive data to and from each other, a communication method for minimizing the delay of a request is also desired. Also, a communication method that minimizes the response delay is desired. In the latter case, if each node is provided with a parallel processing function, transmission of the next request becomes possible before collection of a response to a certain request is completed. To do so, more complicated transaction management functions are required, and the design of each node, and thus the communication system, becomes more complex. For this reason, designing without a parallel processing function becomes much easier, and in this case, it is required to minimize the response delay.
【0008】本発明は、上記事情に鑑みてなされたもの
であり、複数のノードによる要求の送信に起因して、伝
送媒体の通信容量またはデータ受信能力を超えるトラヒ
ックが発生する場合などの通信システムの輻輳を回避し
得る応答分散式通信方法を提供することを目的とする。The present invention has been made in view of the above circumstances, and has been made in consideration of the above circumstances, and has been made in consideration of the case where traffic exceeding the communication capacity or data receiving capacity of a transmission medium occurs due to transmission of a request by a plurality of nodes. It is an object of the present invention to provide a response-distributed communication method capable of avoiding congestion.
【0009】[0009]
【課題を解決するための手段】上記課題を解決するため
に請求項1記載の発明の応答分散式通信方法は、複数の
ノードが相互にデータの送受信を行う通信システム用の
応答を分散させる通信方法であって、前記複数のノード
の各々は、割り当てられた固有の値を保持し、応答を送
信するとき、この応答の送信タイミングを前記固有の値
に応じて遅延させるのである。According to a first aspect of the present invention, there is provided a distributed response communication method for distributing a response for a communication system in which a plurality of nodes mutually transmit and receive data. In the method, each of the plurality of nodes holds an assigned unique value, and when transmitting a response, delays the transmission timing of the response according to the unique value.
【0010】この方法によれば、各ノードの応答の送信
タイミングが固有の値に応じて遅延するようになるの
で、伝送媒体の通信容量またはデータ受信能力を超える
トラヒックが発生する場合などの通信システムの輻輳を
回避することができる。According to this method, the transmission timing of the response from each node is delayed according to a unique value, so that the communication system in a case where traffic exceeding the communication capacity of the transmission medium or the data receiving capacity occurs. Can be avoided.
【0011】なお、請求項1記載の応答分散式通信方法
において、前記複数のノードの各々は、要求を送信する
とき、その要求を送信すべき少なくとも1つの送信先ノ
ードの指定情報をヘッダ情報に含め、このヘッダ情報と
ともに前記要求をデータとして送信し、データを受信し
たとき、このデータから得られるヘッダ情報をもとに、
受信したデータが自宛のデータであるか否かを判断し、
自宛のデータであれば応答を送信する方法でもよい(請
求項2)。この方法によれば、自宛のデータであれば応
答が送信されるので、冗長なトラヒックを抑制し、信号
の衝突や受信バッファ溢れなどによる要求のデータ消失
の確率を低く抑えることができる。[0011] In the distributed response communication method according to claim 1, each of the plurality of nodes, when transmitting a request, includes, in header information, designation information of at least one destination node to which the request is to be transmitted. The request is transmitted as data together with this header information, and when the data is received, based on the header information obtained from this data,
Determine whether the received data is addressed to itself,
If the data is addressed to itself, a method of transmitting a response may be used (claim 2). According to this method, since a response is transmitted if the data is addressed to itself, redundant traffic can be suppressed, and the probability of data loss of a request due to signal collision or reception buffer overflow can be suppressed.
【0012】また、請求項1記載の応答分散式通信方法
において、前記複数のノードの各々は、データの送信機
能として応答送信機能と要求送信機能とを個別に有し、
応答送信機能によって応答を送信するとき、その応答の
送信タイミングを前記固有の値に応じて遅延させ、要求
送信機能によって要求を送信するとき、その要求を、こ
の送信タイミングを遅延させることなく送信する方法で
もよい(請求項3)。この方法によれば、要求の送信タ
イミングは遅延されないので、要求の迅速な送信が可能
になる。Further, in the response-distributed communication method according to claim 1, each of the plurality of nodes individually has a response transmission function and a request transmission function as a data transmission function,
When transmitting a response by the response transmission function, the transmission timing of the response is delayed according to the unique value, and when transmitting a request by the request transmission function, the request is transmitted without delaying the transmission timing. It may be a method (claim 3). According to this method, since the transmission timing of the request is not delayed, the request can be transmitted quickly.
【0013】また、請求項1記載の応答分散式通信方法
において、前記複数のノードの各々は、前記応答を送信
するとき、前記伝送媒体の伝送速度と前記応答のデータ
長とからその応答の前記伝送媒体における滞在時間を算
出し、この滞在時間から通信システムの輻輳を回避する
ために必要な応答の送信時間間隔を算出し、当該ノード
が保持する前記固有の値から前記応答の送信順序を決定
し、この送信順序および前記送信時間間隔に応じて前記
応答を送信する方法でもよい(請求項4)。この方法に
よれば、伝送媒体の伝送速度および応答のデータ長をも
とに応答の送信時間間隔が算出されるので、遅延を最小
限に抑えて応答を返送することが可能となる。In the response-distributed communication method according to claim 1, each of the plurality of nodes, when transmitting the response, determines the response of the response from a transmission speed of the transmission medium and a data length of the response. Calculate the stay time in the transmission medium, calculate the transmission time interval of the response required to avoid congestion of the communication system from the stay time, and determine the transmission order of the response from the unique value held by the node. Then, the response may be transmitted according to the transmission order and the transmission time interval (claim 4). According to this method, the transmission time interval of the response is calculated based on the transmission speed of the transmission medium and the data length of the response, so that the response can be returned with a minimum delay.
【0014】また、請求項1または3記載の応答分散式
通信方法において、データの受信時刻から前記通信シス
テムの負荷を算出し、この負荷から前記通信システムの
負荷が増大しているか否かを判断し、前記通信システム
の負荷が増大していれば前記応答の送信時間間隔を長く
する方法でもよい(請求項5)。この方法によれば、通
信システムの負荷が増大していれば応答の送信時間間隔
が長くなるので、信号の衝突や受信バッファ溢れなどに
よる要求のデータ消失の確率を低く抑えることができ
る。Further, in the distributed response communication method according to claim 1 or 3, a load on the communication system is calculated from a data reception time, and it is determined whether the load on the communication system is increased based on the load. If the load on the communication system is increasing, a method of extending the transmission time interval of the response may be used (claim 5). According to this method, if the load on the communication system increases, the transmission time interval of the response becomes longer, so that the probability of data loss of the request due to signal collision, reception buffer overflow, etc. can be suppressed.
【0015】また、請求項2記載の応答分散式通信方法
において、前記複数のノードの各々は、タイマを有する
とともに応答の返送を期待するノードのリストを予め記
憶し、前記要求を送信するとき、前記タイマを起動し、
前記リストを利用して前記要求を送信すべき少なくとも
1つの送信先ノードの指定情報を前記ヘッダ情報に含
め、このヘッダ情報とともに前記要求を送信し、この
後、前記タイマの計時によりタイムアウトが発生する前
に、前記ヘッダ情報に含めた応答の返送を期待するノー
ドの全てから応答を受信した場合には、前記タイマを停
止する一方、前記応答の返送を期待するノードの全てか
ら応答を受信する前に、前記タイマの計時によりタイム
アウトが発生した場合には、前記応答の返送を期待する
ノードのうち応答を返送してこなかったノードに対して
のみ前記要求の再送を行う方法でもよい(請求項6)。
この方法によれば、応答の返送を期待するノードのうち
応答を返送してこなかったノードに対してのみ要求の再
送が行われるので、冗長なトラヒックを抑制し、信号の
衝突や受信バッファ溢れなどによる要求のデータ消失の
確率を低く抑えることができる。Further, in the distributed response communication method according to claim 2, each of the plurality of nodes has a timer and stores in advance a list of nodes which are expected to return a response, and when transmitting the request, Start the timer,
The header information includes at least one destination node designation information to which the request is to be transmitted using the list, and the request is transmitted together with the header information. After that, a timeout occurs due to timing of the timer. If the response is received from all of the nodes expecting to return the response included in the header information before, the timer is stopped, and the response is received from all of the nodes expecting to return the response. In the case where a time-out occurs due to the counting of the timer, a method may be employed in which the request is retransmitted only to a node which has not returned a response among the nodes which are expected to return the response (claim 6). ).
According to this method, a request is retransmitted only to a node that does not return a response among nodes that expect a response, so redundant traffic is suppressed, signal collision, reception buffer overflow, and the like. , The probability of data loss of the request due to the request can be reduced.
【0016】また、請求項6記載の応答分散式通信方法
において、前記複数のノードの各々は、前記要求の再送
を所定回数行ってもその再送の相手先から応答が返送さ
れてこない場合には、その相手先のノードを障害ノード
として取り扱い、この後、前記障害ノードに対する再送
の回数を、前記障害ノードとして取り扱わないノードに
対する再送の回数よりも少なくする方法でもよい(請求
項7)。この方法によれば、障害ノードに対する再送の
回数が少なくされるので、直ちに次の要求の送信が可能
になる。つまり、応答の期待できないノードへの再送の
繰り返しによる冗長な待ち時間を縮小することで、次の
要求の迅速な送信が可能になる。In the response-distributed communication method according to claim 6, each of the plurality of nodes is configured such that, even if the request is retransmitted a predetermined number of times, no response is returned from the retransmission partner. Alternatively, a method may be adopted in which the partner node is treated as a failed node, and thereafter, the number of retransmissions for the failed node is made smaller than the number of retransmissions for a node not treated as the failed node (claim 7). According to this method, the number of retransmissions to the failed node is reduced, so that the next request can be transmitted immediately. That is, by shortening redundant waiting time due to repetition of retransmission to a node that cannot expect a response, prompt transmission of the next request becomes possible.
【0017】また、請求項3記載の応答分散式通信方法
において、前記複数のノードのうち、データの送信に関
する要求が他のノードに比べて多い少なくとも1つのノ
ードを高優先度ノードとし、前記高優先度ノードからの
応答が前記他のノードからの応答よりも先に送信される
ように前記通信システムを設定し、前記他のノードに対
して、前記高優先度ノードから応答が返送されてこない
場合、応答の収集を中断させて前記高優先度ノードへの
要求の再送を行わせる方法でもよい(請求項8)。この
方法によれば、高優先度ノードに対する要求が優先的に
行われるので、高優先度ノードに対する要求の遅延を最
小限に抑えることができる。Further, in the response-distributed communication method according to claim 3, at least one of the plurality of nodes, which has a higher request for data transmission than other nodes, is set as a high-priority node. The communication system is set so that a response from the priority node is transmitted before a response from the other node, and no response is returned from the high-priority node to the other node. In this case, the method may be such that the collection of the response is interrupted and the request is retransmitted to the high priority node (claim 8). According to this method, the request to the high-priority node is given priority, so that the delay of the request to the high-priority node can be minimized.
【0018】また、請求項4記載の応答分散式通信方法
において、前記複数のノードの各々は、タイマを有し、
前記通信システムに接続されるノード数に応じて、前記
タイマによる計時時間の長さを前記通信システムの輻輳
を回避し得る値に設定する方法でもよい(請求項9)。
この方法によれば、通信システムに接続されるノード数
が変化しても通信システムの輻輳を回避することができ
る。また、通信システムに接続されるノード数に応じて
応答の遅延を最小限に抑えることができる。Further, in the distributed response communication method according to claim 4, each of the plurality of nodes has a timer,
A method may be used in which the length of time measured by the timer is set to a value that can avoid congestion in the communication system according to the number of nodes connected to the communication system (claim 9).
According to this method, even if the number of nodes connected to the communication system changes, congestion of the communication system can be avoided. Further, it is possible to minimize the response delay according to the number of nodes connected to the communication system.
【0019】さらに、請求項9記載の応答分散式通信方
法において、前記複数のノードの各々は前記障害ノード
の数に応じて応答収集のためのタイマ設定時間を設定す
る方法でもよい(請求項10)。この方法によれば、障
害ノードからの応答待ちによる冗長な遅延を抑制し、応
答の遅延を最小限に抑えることができる。Further, in the distributed response communication method according to the ninth aspect, each of the plurality of nodes may set a timer setting time for response collection according to the number of the failed nodes. ). According to this method, redundant delay due to waiting for a response from the failed node can be suppressed, and the delay of the response can be minimized.
【0020】請求項11記載の発明は、複数のノードが
相互にデータの送受信を行う通信システムであって、前
記複数のノードの各々は、割り当てられた固有の値を保
持し、応答を送信するとき、この応答の送信タイミング
を前記固有の値に応じて遅延させるものである。According to an eleventh aspect of the present invention, there is provided a communication system in which a plurality of nodes mutually transmit and receive data, wherein each of the plurality of nodes holds an assigned unique value and transmits a response. At this time, the transmission timing of this response is delayed according to the unique value.
【0021】この構成では、各ノードの応答の送信タイ
ミングが固有の値に応じて遅延するようになるので、伝
送媒体の通信容量またはデータ受信能力を超えるトラヒ
ックが発生する場合などの通信システムの輻輳を回避す
ることができる。In this configuration, since the transmission timing of the response of each node is delayed according to a unique value, congestion of the communication system occurs when traffic exceeding the communication capacity of the transmission medium or the data receiving capacity occurs. Can be avoided.
【0022】[0022]
【発明の実施の形態】図1は本発明の第1実施形態に係
る応答分散式通信方法の説明図で、この図を用いて以下
に第1実施形態の説明を行う。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an explanatory diagram of a distributed response communication method according to a first embodiment of the present invention, and the first embodiment will be described below with reference to this drawing.
【0023】まず、第1実施形態に係る応答分散式通信
方法が適用される通信システムの説明を本発明の通信シ
ステムに係る一実施形態とともに行う。First, a communication system to which the response-based communication method according to the first embodiment is applied will be described together with an embodiment according to the communication system of the present invention.
【0024】図2はその通信システムの構成例を示す
図、図3はその通信システムで送受信されるデータのフ
レームフォーマット例を示す図で、図2に示す通信シス
テム1は、リング型で媒体共有のネットワーク2と、こ
のネットワーク2に接続される複数台(図2の例では8
台)のノード3とにより構成されている。ただし、図2
に示す括弧“[]”内の数字はノード番号を示す(図1も
同様)。FIG. 2 is a diagram showing an example of the configuration of the communication system, and FIG. 3 is a diagram showing an example of a frame format of data transmitted and received by the communication system. The communication system 1 shown in FIG. Network 2 and a plurality of devices connected to the network 2 (8 in the example of FIG. 2).
) Nodes 3. However, FIG.
Indicate the node number (the same applies to FIG. 1).
【0025】この通信システム1で送受信されるデータ
のフレームFは、ヘッダ部F1およびデータ部F2によ
り成り、ヘッダ部F1には、送信元ノード番号F11、
送信先ノード/グループ番号F12、送信先相手指定F
13、要求/応答のメッセージ種別F14、およびトラ
ンザクション番号F15が含まれる。A frame F of data transmitted and received by the communication system 1 includes a header section F1 and a data section F2. The header section F1 includes a source node number F11,
Destination node / group number F12, destination destination designation F
13, a message type F14 of the request / response, and a transaction number F15.
【0026】図4は図2に示す各ノードのハードウェア
構成図、図5は図4に示すハードウェア、特に制御部上
に具備される機能ブロック図で、各ノード3は、図4に
示すように、ネットワーク2に接続され、このネットワ
ーク2にデータを送信するための送信部30と、受信バ
ッファメモリ(受信バッファ)31aを有し、ネットワ
ーク2に接続され、このネットワーク2からデータを受
信するための受信部31と、計時用のタイマ32と、種
々のデータ記憶用のメモリ33と、これら送信部30、
受信部31、タイマ32およびメモリ33などが接続さ
れ、当該ノード3用の種々の制御などの処理を行う制御
部(CPU)34とにより構成されている。FIG. 4 is a hardware configuration diagram of each node shown in FIG. 2, and FIG. 5 is a functional block diagram provided on the hardware, particularly on the control unit, and each node 3 is shown in FIG. Thus, it has a transmission unit 30 for transmitting data to the network 2 and a reception buffer memory (reception buffer) 31a, and is connected to the network 2 to receive data from the network 2. , A timer 32 for measuring time, a memory 33 for storing various data,
The receiving unit 31, the timer 32, the memory 33, and the like are connected to each other, and are configured by a control unit (CPU) 34 that performs various control processes for the node 3.
【0027】このように構成されるハードウェア上に
は、所定のソフトプラグラムに従って動作する制御部3
4の処理機能により、図5に示すように、送信部30お
よび受信部31用のドライバ300と、データ部F2用
の情報処理などを行うアプリケーションタスク部301
と、ヘッダ部F1の情報をもとに、送受信されるフレー
ムFの処理を行う通信プロトコル層部302とが具備さ
れる。A control unit 3 operating according to a predetermined software program is provided on the hardware configured as described above.
5, a driver 300 for the transmission unit 30 and the reception unit 31 and an application task unit 301 for performing information processing for the data unit F2 as shown in FIG.
And a communication protocol layer unit 302 for processing a frame F to be transmitted / received based on the information in the header F1.
【0028】この通信プロトコル層部302には、種々
の管理を行う機能として、後述するヘッダ解析部316
からの通知に応じてフレームの受信履歴を管理してアプ
リケーションタスク部301に通知するフレーム受信履
歴管理部303と、システム状態管理部304と、フレ
ームの送信に対する応答を管理する応答管理部305
と、ヘッダ部F1のトランザクション番号を指定するト
ランザクション管理部306とが具備されている。そし
て、応答管理部305およびトランザクション管理部3
06からの情報をアプリケーションタスク部301に通
知するためのキュー307が具備されているほか、イベ
ントフラグ用のキュー308が具備されている。The communication protocol layer unit 302 includes a header analysis unit 316 described later as a function for performing various managements.
, A frame reception history management unit 303 that manages the reception history of frames in response to the notification from the application task unit 301 and notifies the application task unit 301, a system state management unit 304, and a response management unit 305 that manages responses to frame transmission.
And a transaction management unit 306 for designating the transaction number of the header F1. Then, the response management unit 305 and the transaction management unit 3
In addition to a queue 307 for notifying the application task unit 301 of information from 06, an event flag queue 308 is provided.
【0029】また、通信プロトコル層部302には、要
求送信機能として、アプリケーションタスク部301か
らの送信すべき要求入力用のキュー309と、図3に示
すフォーマットに従って、トランザクション管理部30
6により指定されるトランザクション番号などをヘッダ
部F1に含めるとともにキュー309から得られる要求
の情報をデータ部F2に含めてフレームFを組み立てる
ほか、送信先に指定した少なくとも1つのノードのノー
ド番号を応答管理部305に通知し、キュー308に要
求イベントを登録する要求フレーム作成部310と、こ
の要求フレーム作成部310から得られるフレームを送
信のために取り込むキュー311とが具備されている。
また、通信プロトコル層部302には、応答送信機能と
して、応答のフレームFを組み立てる応答フレーム作成
部312と、この応答フレーム作成部312から得られ
るフレームを送信のために取り込むキュー313とが具
備されている。そして、キュー311,313の後段に
は、送信遅延部314aを有し、キュー311からのフ
レームを直ぐにドライバ300に渡す一方、キュー31
3からのフレームを送信遅延部314aに通してその送
信タイミングを遅延させた上でドライバ300に渡すフ
レーム送信部314が作成されている。The communication protocol layer section 302 has a request transmission function as a request input queue 309 to be transmitted from the application task section 301 and a transaction management section 30 according to the format shown in FIG.
In addition to assembling the frame F by including the transaction number and the like designated by No. 6 in the header section F1 and including the request information obtained from the queue 309 in the data section F2, it also responds with the node number of at least one node designated as the transmission destination. A request frame creation unit 310 for notifying the management unit 305 and registering a request event in the queue 308 is provided with a queue 311 for taking in a frame obtained from the request frame creation unit 310 for transmission.
In addition, the communication protocol layer unit 302 includes, as a response transmission function, a response frame creation unit 312 that assembles a response frame F, and a queue 313 that captures a frame obtained from the response frame creation unit 312 for transmission. ing. A transmission delay unit 314a is provided at a subsequent stage of the queues 311, 313, and the frame from the queue 311 is immediately passed to the driver 300, while the queue 311, 313
A frame transmission unit 314 that passes the frame from the third through the transmission delay unit 314a, delays the transmission timing, and passes the frame to the driver 300 is created.
【0030】さらに、通信プロトコル層部302には、
ドライバ300からの受信されたフレーム入力用のキュ
ー315と、このキュー315から得られるフレームに
おけるヘッダ部F1の解析を行うヘッダ解析部316と
が具備されている。Further, the communication protocol layer unit 302
A queue 315 for inputting a frame received from the driver 300 and a header analyzing unit 316 for analyzing a header F1 in a frame obtained from the queue 315 are provided.
【0031】このヘッダ解析部316の処理機能をさら
に詳述すると、例えばヘッダ部F1における送信先ノー
ド/グループ番号F12を参照してそれが自宛のもので
なければ、そのヘッダ部F1を持つフレームを破棄する
処理が行われる。The processing function of the header analyzer 316 will be described in more detail. For example, referring to the destination node / group number F12 in the header F1, if it is not addressed to itself, the frame having the header F1 Is discarded.
【0032】また、ヘッダ部F1におけるメッセージ種
別F14を参照してそれが要求であれば、さらに送信先
相手指定F13を参照して、それが自宛のものでない場
合にはフレームを破棄する処理が行われる。これに対し
て、自宛のものである場合にはフレームまたはそのヘッ
ダ部F1を応答フレーム作成部312に渡す処理が行わ
れる。これにより、応答用のフレームが応答フレーム作
成部312で作成されてキュー313にキューイングさ
れ、この後、フレーム送信部314を通じてドライバ3
00に渡されることになる。また、キュー308に応答
イベントの登録を行うとともに、トランザクション管理
部306に受信フレームを通知する処理が行われる。こ
のとき、トランザクション管理部306が2重受信でな
いと判断した場合、キュー307を介してアプリケーシ
ョンタスク部301に要求メッセージが通知される。If the request is made by referring to the message type F14 in the header part F1, if the request is not addressed to itself, a process of discarding the frame is performed by further referring to the destination designation F13. Done. On the other hand, when the frame is addressed to itself, a process of passing the frame or its header F1 to the response frame creating unit 312 is performed. As a result, a response frame is created by the response frame creation unit 312 and queued in the queue 313, and thereafter, the driver 3 is sent through the frame transmission unit 314.
00 will be passed. In addition, a process of registering a response event in the queue 308 and notifying the transaction management unit 306 of the received frame is performed. At this time, if the transaction management unit 306 determines that there is no double reception, a request message is notified to the application task unit 301 via the queue 307.
【0033】一方、上記メッセージ種別F14を参照し
てそれが応答であれば、応答管理部305にヘッダ部F
1の情報を通知する処理が行われる。この場合、応答管
理部305において、応答を得るべき全ノードから全て
の応答が返送されてきた時点で応答受信完了待ちタイマ
を停止し、アプリケーションタスク301に対して正常
終了を通知する処理が行われる。On the other hand, referring to the message type F14, if the response is a response, the response
A process of notifying the first information is performed. In this case, the response management unit 305 stops the response reception completion wait timer when all the responses have been returned from all the nodes that should receive the response, and performs a process of notifying the application task 301 of the normal termination. .
【0034】ここで、図4に示したタイマ32は、通信
イベント周期タイマ、上記応答受信完了待ちタイマ、お
よび応答送信待ちタイマとして使用される。Here, the timer 32 shown in FIG. 4 is used as a communication event period timer, a response reception completion waiting timer, and a response transmission waiting timer.
【0035】通信イベント周期タイマは、イベントフラ
グ用のキュー308にイベントが存在しない場合に要求
の送信、または自宛か否かに関わらず要求の受信があれ
ば、あるいは当該通信イベント周期タイマの計時終了時
にキュー308に少なくとも1つのイベントがキューイ
ングされていれば、起動し、停止条件を有さない。ま
た、タイムアウト時にはキュー308を参照する処理が
実行される。The communication event period timer transmits a request when an event does not exist in the event flag queue 308, or receives a request irrespective of whether it is addressed to itself, or counts the time of the communication event period timer. If at least one event is queued in the queue 308 at the time of termination, it is activated and has no stop condition. At the time of timeout, a process for referring to the queue 308 is executed.
【0036】応答受信完了待ちタイマは、キュー308
にイベントが存在しない場合に要求の送信があれば、あ
るいは通信イベント周期タイマの計時終了後にキュー3
08から得られるイベントが要求であれば、起動し、こ
の後、返送されるべき全ノードから応答が全て受信され
ると、応答管理部305によって停止される。また、タ
イムアウト時には、再送回数に満たない場合、応答を返
送してこなかったノードをヘッダ部F1の送信先相手指
定F13に設定して再送する処理が行われる。再送回数
分再送を行った場合、応答を返送してこなかったノード
のノード番号をシステム状態管理部304に通知すると
ともに、異常終了としてアプリケーションタスク部30
1に通知する処理が応答管理部305により行われる。The response reception completion wait timer is set in the queue 308
If there is no event in the queue, or if a request is sent, or
If the event obtained from 08 is a request, it is activated, and thereafter, when all responses are received from all nodes to be returned, the response management unit 305 stops. In addition, at the time of timeout, if the number of retransmissions is less than the number of times, a node that has not returned a response is set in the destination destination designation F13 of the header F1 and retransmitted. When retransmission has been performed for the number of retransmissions, the node number of the node that has not returned a response is notified to the system state management unit 304, and the application task unit 30
1 is performed by the response management unit 305.
【0037】応答送信待ちタイマは、キュー308にイ
ベントが存在しない場合に要求の送信があれば、あるい
は通信イベント周期タイマの計時終了後にキュー308
から得られるイベントが応答であれば、起動し、停止条
件を有さない。また、タイムアウト時には、応答を送信
する処理が行われる。The response transmission waiting timer is used to transmit a request when there is no event in the queue 308 or when the communication event period timer finishes counting.
If the event obtained from is a response, it is activated and has no stop condition. At the time of timeout, a process of transmitting a response is performed.
【0038】次に、上記構成の通信システム1に適用さ
れる第1実施形態に係る応答分散式通信方法を説明する
と、第1実施形態では、複数のノード3の各々に対し
て、固有の値として例えばノード番号を割り当ててそれ
を保持させ、フレーム送信部314から応答を送信する
とき、この応答の送信タイミングを送信遅延部314a
でその固有の値に応じて遅延させる方法が採られる。そ
の遅延時間は、ノード番号×10msにより得られる値
に設定される。なお、この遅延処理は図5に示す送信遅
延部314aで行われる。Next, a description will be given of a response distributed communication method according to the first embodiment applied to the communication system 1 having the above configuration. In the first embodiment, a unique value is assigned to each of a plurality of nodes 3. When a response is transmitted from the frame transmission unit 314, for example, a node number is allocated and held, and the transmission timing of this response is set to the transmission delay unit 314a.
A method of delaying according to the unique value is adopted. The delay time is set to a value obtained by a node number × 10 ms. This delay processing is performed by the transmission delay unit 314a shown in FIG.
【0039】図1を用いて上記方法による動作例を説明
する。ただし、伝送媒体における伝送遅延時間およびド
ライバ300でのデータ処理時間は、十分短く無視でき
るものとする。An operation example according to the above method will be described with reference to FIG. However, the transmission delay time in the transmission medium and the data processing time in the driver 300 are sufficiently short and can be ignored.
【0040】ノード3[2]が要求を例えばグループ通信
またはマルチキャストで他のノード3[1],3[3]〜3
[8]に送信すると(t10)、他のノードの各々から、
ノード番号×10msにより得られる値の遅延時間後に
順次応答が返送されてくる。すなわち、ノード3[1]か
らの応答はほぼ10ms遅延後の時点t11に受信さ
れ、続いてノード3[3]からの応答はほぼ30ms遅延
後の時点t13に受信され、最後にノード3[8]からの
応答はほぼ80ms遅延後の時点t18に受信される。
このように、通信イベント周期で各ノードの応答送信時
刻が一意に決定されるので、複数のノードによる要求の
送信に起因して、伝送媒体の通信容量またはデータ受信
能力を超えるトラヒックが発生する場合などの通信シス
テムの輻輳を回避することが可能になる。ただし、ノー
ド3[1]〜3[8]は同一のグループに属しているものと
する。The node 3 [2] sends a request to the other nodes 3 [1], 3 [3] to 3 by, for example, group communication or multicast.
When transmitted to [8] (t10), from each of the other nodes,
Responses are sequentially returned after a delay time of a value obtained by node number × 10 ms. That is, the response from the node 3 [1] is received at a time t11 after a delay of about 10 ms, the response from the node 3 [3] is received at a time t13 after a delay of about 30 ms, and finally, the node 3 [8] ] Is received at time t18, approximately 80 ms later.
As described above, since the response transmission time of each node is uniquely determined in the communication event period, a case where traffic exceeding the communication capacity of the transmission medium or the data receiving capacity occurs due to transmission of the request by a plurality of nodes. It is possible to avoid congestion in a communication system such as However, it is assumed that the nodes 3 [1] to 3 [8] belong to the same group.
【0041】また、図1に示すように、ノード3[3]が
時点t12と時点t13との間の時点t123に要求を
例えば他のノード全てに送信したとすると、その時点t
123を基準に、他のノードの各々から順次応答が返送
されてくるので、衝突による信号の消失を防止すること
ができるほか、上記同様に通信システムの輻輳を回避す
ることが可能になる。As shown in FIG. 1, if node 3 [3] sends a request to all other nodes at time t123 between time t12 and time t13, for example,
Since the response is sequentially returned from each of the other nodes based on 123, it is possible to prevent signal loss due to collision and also to avoid congestion in the communication system as described above.
【0042】図6は本発明の第2実施形態に係る応答分
散式通信方法の説明図で、この図を用いて以下に第2実
施形態の説明を行う。本応答分散式通信方法も第1実施
形態と同様に通信システム1に適用される。第2実施形
態では、複数のノード3の各々に対して、要求を送信す
るとき、その要求を送信すべき少なくとも1つの送信先
ノードの指定情報をヘッダ部F1の送信先相手指定F1
3に含めさせ、ヘッダ部F1とともに要求(データ部F
2)をデータとして送信させ、データを受信したとき、
このデータから得られるヘッダ部F1の情報をもとに、
受信したデータが自宛のデータであるか否かを判断さ
せ、自宛のデータであれば応答を送信させる方法が採ら
れる。FIG. 6 is an explanatory diagram of a distributed response communication method according to a second embodiment of the present invention, and the second embodiment will be described below with reference to FIG. This response-distributed communication method is also applied to the communication system 1 as in the first embodiment. In the second embodiment, when transmitting a request to each of the plurality of nodes 3, the specification information of at least one transmission destination node to which the request is to be transmitted is transmitted to the transmission destination partner specification F1 of the header F1.
3 together with the header part F1 and the request (data part F
When 2) is transmitted as data and data is received,
Based on the information in the header section F1 obtained from this data,
A method is adopted in which it is determined whether the received data is data addressed to itself, and if the data is addressed to itself, a response is transmitted.
【0043】図6を用いて上記方法による動作例を説明
する。ノード3[2]が要求を例えばノード3[1],3
[8]に送信したとすると(t20)、ノード3[1],3
[8]では、ノード3[2]から受信したデータが自宛のデ
ータであるので、ほぼ10ms遅延後の時点t21およ
びほぼ80ms遅延後の時点t28にそれぞれ応答を送
信する処理が実行され、また、ノード3[3]〜3[7]の
各々では、ノード3[2]から受信したデータが自宛のデ
ータではないので、応答を送信する処理は実行されな
い。これにより、ノード3[2]は、時点t21でノード
3[1]から応答を受信し、時点t28でノード3[8]か
ら応答を受信することになる。このように、要求を送信
する必要のないノードからの応答を排除することによ
り、冗長なトラヒックの抑制が可能になり、信号の衝突
や受信バッファ溢れなどによる要求データの消失の確率
を低く抑えることができる。An operation example according to the above method will be described with reference to FIG. Node 3 [2] sends a request to nodes 3 [1], 3
If it is transmitted to [8] (t20), nodes 3 [1] and 3
In [8], since the data received from the node 3 [2] is the data addressed to itself, a process of transmitting a response is performed at time t21 after a delay of approximately 10 ms and at time t28 after a delay of approximately 80 ms, respectively. In each of the nodes 3 [3] to 3 [7], since the data received from the node 3 [2] is not the data addressed to itself, the process of transmitting the response is not executed. Accordingly, the node 3 [2] receives the response from the node 3 [1] at the time point t21, and receives the response from the node 3 [8] at the time point t28. In this way, by eliminating a response from a node that does not need to transmit a request, redundant traffic can be suppressed, and the probability of losing requested data due to signal collision or reception buffer overflow can be reduced. Can be.
【0044】また、図6に示すように、ノード3[3]が
時点t22と時点t23との間の時点t223に要求を
例えばノード3[1],3[2]に送信したとすると、その
時点t223を基準に、ノード3[1],3[2]のみから
順次応答が返送されてくるので、衝突による信号の消失
を防止することができる。As shown in FIG. 6, if node 3 [3] transmits a request to nodes 3 [1] and 3 [2] at time t223 between time t22 and time t23, for example, Since the responses are sequentially returned only from the nodes 3 [1] and 3 [2] based on the time point t223, the loss of the signal due to the collision can be prevented.
【0045】上記第1および第2実施形態では、動作例
として、ノード3[2]の応答の収集中にノード3[3]が
要求を送信すると、そのノード3[3]に対する応答の収
集がノード3[2]の応答の収集と平行して行われるが、
これに限らず、ノード3[2]の応答の収集が終了した後
に、ノード3[3]に対する応答の収集が開始されるよう
にしてもよい。この場合、ノード3[2]の要求送信時に
起動された通信イベント周期タイマが終了したら、ノー
ド3[3]に対する応答が開始し、この後、ノード番号×
10msに従って順次応答が返送されるようにすればよ
い。この場合の動作例を図7に示す。図7において、ノ
ード3[2]が要求を例えば他のノード全てに送信すると
(t300)、他のノード3[1],3[3]〜3[8]の各
々から順次応答が返送されてくる(t301,t30
3,…,t308)。この後、ノード3[2]の要求送信
時に起動された通信イベント周期タイマが終了すると
(t309)、ノード3[3]に対して他のノード3
[1],3[2],3[4]〜3[8]の各々から順次応答が返
送されてくる(t310,t311,…,t317)。
これにより、通信システムの輻輳を回避することが可能
になる。In the first and second embodiments, as an operation example, when the node 3 [3] transmits a request during the collection of the response of the node 3 [2], the collection of the response to the node 3 [3] is performed. This is done in parallel with the collection of responses from node 3 [2],
However, the present invention is not limited thereto, and the collection of the response to the node 3 [3] may be started after the collection of the response of the node 3 [2] is completed. In this case, when the communication event period timer started at the time of transmitting the request from the node 3 [2] expires, a response to the node 3 [3] starts, and thereafter, the node number ×
Responses may be sequentially returned in accordance with 10 ms. FIG. 7 shows an operation example in this case. In FIG. 7, when the node 3 [2] transmits a request to, for example, all other nodes (t300), responses are sequentially returned from the other nodes 3 [1], 3 [3] to 3 [8]. Come (t301, t30
3,..., T308). Thereafter, when the communication event period timer started at the time of transmission of the request from the node 3 [2] expires (t309), the node 3 [3] receives the other node 3 [3].
Responses are sequentially returned from each of [1], 3 [2], 3 [4] to 3 [8] (t310, t311,..., T317).
This makes it possible to avoid congestion in the communication system.
【0046】次に、本発明の第3実施形態に係る応答分
散式通信方法の説明を行う。本応答分散式通信方法も第
1実施形態と同様に通信システム1に適用される。第1
および第2実施形態では、応答の送信時間間隔は一定値
の10msになっているが、第3実施形態では、応答の
送信時間間隔を通信システム1に適応した値に設定する
方法が採られる。すなわち、複数のノード3の各々に対
して、応答を送信するとき、伝送媒体の伝送速度と応答
のフレームのデータ長とからその応答の伝送媒体におけ
る滞在時間を算出させ、この滞在時間から通信システム
1の輻輳を回避するために必要な応答の送信時間間隔を
算出させ、当該ノード3が保持する固有の値から応答の
送信順序を決定させ、この送信順序および上記送信時間
間隔に応じて応答を送信させる方法が採られるのであ
る。Next, a description will be given of a distributed response communication method according to a third embodiment of the present invention. This response-distributed communication method is also applied to the communication system 1 as in the first embodiment. First
In the second embodiment, the response transmission time interval is a fixed value of 10 ms. However, in the third embodiment, a method of setting the response transmission time interval to a value suitable for the communication system 1 is adopted. That is, when transmitting a response to each of the plurality of nodes 3, a response time of the response in the transmission medium is calculated from the transmission speed of the transmission medium and the data length of the response frame. 1 to calculate the response transmission time interval necessary to avoid congestion, determine the transmission order of the response from the unique value held by the node 3, and determine the response according to the transmission order and the transmission time interval. The transmission method is adopted.
【0047】この方法による応答の送信時間間隔の算出
例を説明すると、例えば、伝送媒体の伝送速度を80k
ボーとし、各ノード3が送信する要求および応答のフレ
ームの平均データ長を200バイトとすれば、応答の伝
送媒体における滞在時間として2.5ms(=200by
te/80kbps)が算出される。続いて、この滞在時間に
所定値(≧0)を加えたり所定倍(≧1)するなどして
送信時間間隔が算出される。例えば所定値をゼロとすれ
ば、応答の送信時間間隔は2.5msになる。これによ
り、通信システムの輻輳を回避することが可能になると
ともに、遅延を最小限に抑えて応答を返送することが可
能となる。An example of calculating the response transmission time interval by this method will be described. For example, the transmission speed of the transmission medium is set to 80 k.
If the average data length of the request and response frames transmitted by each node 3 is 200 bytes, the response time in the transmission medium is 2.5 ms (= 200 by).
te / 80 kbps) is calculated. Subsequently, a transmission time interval is calculated by adding a predetermined value (≧ 0) to the stay time or multiplying the predetermined value (≧ 1). For example, if the predetermined value is zero, the response transmission time interval is 2.5 ms. As a result, congestion in the communication system can be avoided, and a response can be returned with a minimum delay.
【0048】次に、本発明の第4実施形態に係る応答分
散式通信方法の説明を行う。本応答分散式通信方法も第
1実施形態と同様に通信システム1に適用される。第4
実施形態では、データの受信時刻から通信システム1の
負荷を算出し、この負荷から通信システム1の負荷が増
大しているか否かを判断し、通信システム1の負荷が増
大していれば応答の送信時間を長くする方法が採られ
る。Next, a distributed response communication method according to a fourth embodiment of the present invention will be described. This response-distributed communication method is also applied to the communication system 1 as in the first embodiment. 4th
In the embodiment, the load on the communication system 1 is calculated from the data reception time, and it is determined whether or not the load on the communication system 1 is increasing based on the load. A method of increasing the transmission time is adopted.
【0049】具体例としては、通信システム1における
複数のノード3のうち、応答の送信時間を決定するマス
タとなるノード3を選定する。図2において、例えばノ
ード3[1]をマスタとすると、このノード3[1]に対し
て、ドライバ300からデータを受信した場合、自宛か
否かに関係なくヘッダ解析部316からフレーム受信履
歴管理部303に受信イベントを通知させ(図5参
照)、第3実施形態と同様にして応答の送信時間間隔
(例えば2.5ms)を算出させる。As a specific example, of the plurality of nodes 3 in the communication system 1, the node 3 serving as a master for determining the response transmission time is selected. In FIG. 2, for example, when node 3 [1] is a master, when data is received from driver 300 for node 3 [1], frame reception history is transmitted from header analysis unit 316 regardless of whether the data is addressed to itself. The management unit 303 is notified of the reception event (see FIG. 5), and calculates the response transmission time interval (for example, 2.5 ms) in the same manner as in the third embodiment.
【0050】ここで、例えば1秒毎に通信システム1の
負荷状態のモニタ結果を検証させるとすると、400フ
レーム(=1s/2.5ms)を、通信システム1の負
荷が増大しているか否かを判断するための基準値として
得ることができる。400に所定値を加えるなどして得
た値を使用するようにしてもよいが、ここでは簡単のた
め400をそのまま基準値として使用するものとする。Here, for example, if the monitoring result of the load state of the communication system 1 is to be verified every second, 400 frames (= 1 s / 2.5 ms) are sent to determine whether the load of the communication system 1 is increasing. Can be obtained as a reference value for determining. A value obtained by adding a predetermined value to 400 may be used, but here, for simplicity, 400 is used as it is as a reference value.
【0051】この場合、ノード3[1]に対して、1秒毎
にその1秒間におけるデータの受信時刻から受信したフ
レーム数を通信システム1の負荷として算出させ、この
算出したフレーム数が上記基準値400以上であると通
信システム1の負荷が増大していると判断させる一方、
400未満であると通信システム1の負荷は増大してい
ないと判断させる。さらに、ノード3[1]に対して、通
信システム1の負荷が増大していると判断したとき、一
時的に応答の送信時間間隔を5msに長くするように他
のノードの全てに通知させ、この後、通信システム1の
負荷は増大していないと判断すれば、応答の送信時間間
隔を2.5msに戻すように他のノードの全てに通知さ
せる。一方、これらの通知を受ける他のノードの全てに
対して、ノード3[1]からの上記通知に応じて、送信時
間間隔を5msまたは2.5msに変更させる。In this case, the node 3 [1] is made to calculate the number of frames received every second from the data reception time during the second as the load of the communication system 1, and the calculated number of frames is calculated based on the above-mentioned reference value. When the value is 400 or more, it is determined that the load on the communication system 1 is increasing.
If it is less than 400, it is determined that the load on the communication system 1 has not increased. Further, when the node 3 [1] determines that the load of the communication system 1 is increasing, the node 3 [1] is notified to all the other nodes so as to temporarily increase the response transmission time interval to 5 ms, Thereafter, if it is determined that the load on the communication system 1 has not increased, all the other nodes are notified to return the response transmission time interval to 2.5 ms. On the other hand, the transmission time interval is changed to 5 ms or 2.5 ms for all of the other nodes receiving these notifications in accordance with the notification from node 3 [1].
【0052】この具体例によれば、通信システム1の負
荷が増大すれば、応答の送信時間が長くなるので、信号
の衝突や受信バッファ溢れなどによる要求データの消失
の確率を低く抑えることができる。According to this specific example, if the load on the communication system 1 increases, the transmission time of the response becomes longer, so that the probability of losing the required data due to collision of signals or overflow of the receiving buffer can be suppressed. .
【0053】図8は本発明の第5実施形態に係る応答分
散式通信方法の説明図で、この図を用いて以下に第5実
施形態の説明を行う。本応答分散式通信方法も第1実施
形態と同様に通信システム1に適用される。第5実施形
態では、複数のノード3の各々に対して、応答の返送を
期待するノード3のリストを予め記憶させ、要求を送信
するとき、応答受信完了待ちタイマを起動させ、上記リ
ストを利用して要求を送信すべき少なくとも1つの送信
先ノードの指定情報をヘッダ部F1に含めさせ、このヘ
ッダ部F1とともに要求を送信させ、この後、応答受信
完了待ちタイマの計時によりタイムアウトが発生する前
に、ヘッダ部F1に含めた応答の返送を期待するノード
の全てから応答を受信した場合には、応答受信完了待ち
タイマを停止させる一方、応答の返送を期待するノード
の全てから応答を受信する前に、応答受信完了待ちタイ
マの計時によりタイムアウトが発生した場合には、応答
の返送を期待するノードのうち応答を返送してこなかっ
たノードに対してのみ上記要求の再送を行わせる方法が
採られる。FIG. 8 is an explanatory diagram of a distributed response communication method according to a fifth embodiment of the present invention. The fifth embodiment will be described below with reference to FIG. This response-distributed communication method is also applied to the communication system 1 as in the first embodiment. In the fifth embodiment, for each of the plurality of nodes 3, a list of the nodes 3 that are expected to return a response is stored in advance, and when transmitting a request, a response reception completion wait timer is started and the list is used. In the header part F1, the request information is transmitted and the request is transmitted together with the header part F1. After that, before the time-out occurs due to the time measurement of the response reception completion wait timer. When the response is received from all of the nodes expecting the return of the response included in the header F1, the response reception completion wait timer is stopped, and the response is received from all of the nodes expecting the return of the response. Previously, if a timeout occurred due to the time measurement of the response reception completion wait timer, a node that did not return a response among nodes that are expected to return a response. How to perform a retransmission of the request is taken only for.
【0054】次に、上記方法による動作例を説明する。
ノード3[2]が要求を例えば他のノード全てに送信する
と(t400)、他のノードの各々から順次応答が返送
されてくるが、図8の例では、何等かの原因によってノ
ード3[3]からは応答が返送されてこず、ノード3[3]
を除く他のノード3[1],3[4]〜3[8]の各々から順
次応答が返送されてくる(t401,…,t408)。Next, an example of the operation according to the above method will be described.
When the node 3 [2] transmits a request to, for example, all the other nodes (t400), a response is sequentially returned from each of the other nodes. In the example of FIG. 8, the node 3 [3] is transmitted for some reason. ] Does not return a response, and node 3 [3]
Responses are sequentially returned from each of the other nodes 3 [1], 3 [4] to 3 [8] except for (t401,..., T408).
【0055】この場合、応答の返送を期待するノードの
全てから応答を受信する前に、応答受信完了待ちタイマ
の計時によりタイムアウトが発生し(t409)、この
時点で、ノード3[2]は送信先相手指定F13をノード
3[3]のみにして上記要求を再送する。このとき、送信
先ノード/グループ番号F12およびトランザクション
番号F15は変更しない。この後、30msの経過後の
時点t412にノード3[3]からノード3[2]に応答が
返送される。In this case, before receiving a response from all of the nodes that are expected to return the response, a timeout occurs due to the timing of the response reception completion wait timer (t409). At this time, the node 3 [2] transmits. The request is retransmitted with the destination designation F13 set to only the node 3 [3]. At this time, the destination node / group number F12 and the transaction number F15 are not changed. Thereafter, a response is returned from the node 3 [3] to the node 3 [2] at a time t412 after a lapse of 30 ms.
【0056】このように、応答を送信してこなかったノ
ードに対してのみに再送を行うことで、再送する必要の
ないノードからの応答が排除されるので、冗長なトラヒ
ックの抑制が可能になり、信号の衝突や受信バッファ溢
れなどによる要求データの消失の確率を低く抑えること
ができる。また、要求の受信は正常に行われ、その要求
に対する応答が信号の衝突によって消失した場合に、異
なる送信先ノード/グループ番号F12およびトランザ
クション番号F15で再送すると、二重受信となってア
プリケーションが暴走する危険性があるが、送信先ノー
ド/グループ番号F12およびトランザクション番号F
15を変更せずに再送を行うことで、そのような危険性
を伴わない通信が可能になる。As described above, by performing retransmission only to a node that has not transmitted a response, a response from a node that does not need to be retransmitted is eliminated, so that redundant traffic can be suppressed. In addition, it is possible to suppress the probability of the loss of the requested data due to the collision of the signal or the overflow of the receiving buffer. In addition, when a request is received normally and a response to the request is lost due to a signal collision, if the request is retransmitted with a different destination node / group number F12 and transaction number F15, double reception occurs and the application runs away. Although there is a danger that the destination node / group number F12 and the transaction number F
By performing retransmission without changing No. 15, communication without such danger becomes possible.
【0057】なお、上記第5実施形態において、複数の
ノード3の各々が、要求の再送を所定回数行ってもその
再送の相手先から応答が返送されてこない場合には、そ
の相手先のノードを障害ノードとして取り扱い、この
後、障害ノードに対する再送の回数を、障害ノードとし
て取り扱わないノードに対する再送の回数よりも少なく
するようにしてもよい。例えば、所定回数を3回に設定
し、障害ノードに対する再送の回数を1回に設定すれ
ば、図8の動作と同様に、ノード3[2]がノード3[3]
に対して3回再送を行ってもノード3[3]から応答が返
送されてこないと、ノード3[2]において、応答管理部
305がシステム状態管理部304に対してノード3
[3]が障害ノードであると通知して、これ以降のノード
3[3]に対する再送回数を1回にする処理が行われる。
続いて、異常終了したことをアプリケーションタスク部
301に通知する処理が行われ、これにより、通信処理
が完了する。この後、ノード3[2]がノード3[3]に要
求を送信して、その要求に対する応答が返送されてこな
ければ、ノード3[3]に対する再送が1回だけ行われ
る。この後、その再送に対して応答がないと、通信処理
が完了する。これにより、応答が期待できないノードへ
の再送の繰り返しによる冗長な待ち時間を短縮でき、こ
の短縮した時間だけ次の送信を迅速に行うことができ
る。In the fifth embodiment, if each of the plurality of nodes 3 does not return a response from the retransmission destination after performing the retransmission of the request a predetermined number of times, the destination node 3 May be treated as a failed node, and thereafter, the number of retransmissions for the failed node may be made smaller than the number of retransmissions for the node not treated as the failed node. For example, if the predetermined number is set to three times and the number of retransmissions to the failed node is set to one, the node 3 [2] becomes the node 3 [3] as in the operation of FIG.
If the response is not returned from the node 3 [3] even if retransmission is performed three times, the response management unit 305 in the node 3 [2]
A process of notifying that [3] is the failed node and reducing the number of retransmissions to node 3 [3] to one after this is performed.
Subsequently, a process of notifying the application task unit 301 of the abnormal termination is performed, whereby the communication process is completed. Thereafter, if the node 3 [2] transmits a request to the node 3 [3] and a response to the request is not returned, retransmission to the node 3 [3] is performed only once. Thereafter, if there is no response to the retransmission, the communication process is completed. As a result, redundant waiting time due to repetition of retransmission to a node for which no response can be expected can be reduced, and the next transmission can be quickly performed by the reduced time.
【0058】図9は本発明の第6実施形態に係る応答分
散式通信方法の説明図で、この図を用いて以下に第6実
施形態の説明を行う。本応答分散式通信方法も第1実施
形態と同様に通信システム1に適用される。第6実施形
態では、複数のノード3のうち、データの送信に関する
要求が他のノードに比べて多い少なくとも1つのノード
を高優先度ノードとし、この高優先度ノードからの応答
が上記他のノードからの応答よりも先に送信されるよう
に通信システム1を設定し、上記他のノードに対して、
高優先度ノードから応答が返送されてこない場合、応答
の収集を中断させて高優先度ノードへの要求の再送を行
わせる方法が採られる。FIG. 9 is an explanatory diagram of a distributed response communication method according to a sixth embodiment of the present invention. The sixth embodiment will be described below with reference to FIG. This response-distributed communication method is also applied to the communication system 1 as in the first embodiment. In the sixth embodiment, at least one of the plurality of nodes 3 that has a higher request for data transmission than other nodes is set as a high-priority node, and a response from this high-priority node is the other node. The communication system 1 is set to be transmitted before the response from
If no response is returned from the high-priority node, a method is adopted in which the collection of the response is interrupted and the request is retransmitted to the high-priority node.
【0059】次に、上記方法による動作例を説明する。
ただし、図9では、ノード3[1]がデータの送信に関す
る要求が他のノードに比べて多く、高優先度ノードに設
定されているものとする。Next, an operation example according to the above method will be described.
However, in FIG. 9, it is assumed that the node 3 [1] has more requests for data transmission than the other nodes and is set as the high priority node.
【0060】ノード3[2]が要求を例えば他のノード全
てに送信すると(t50)、高優先度ノードに設定され
たノード3[1]からの応答が他のノード3[3]〜3[8]
からの応答よりも先に返送されるように順次応答が返送
されてくるのであるが、図9の例では、何等かの原因で
高優先度ノードに設定されたノード3[1]から応答が受
信されるべき時点t51に返送されてこない。この場
合、ノード3[2]は、応答の収集を中断して、例えば次
のノード3[3]から応答が返送されるべき時点までに、
ノード3[1]への要求の再送を行うとともに他のノード
3[3]〜3[8]へも同一の要求を再送する(時点t5
2)。このとき、送信先ノード/グループ番号F12お
よびトランザクション番号F15は変更しない。これに
より、二重受信によるアプリケーションの暴走の防止が
可能になる。When the node 3 [2] transmits the request to, for example, all the other nodes (t50), the response from the node 3 [1] set as the high-priority node is transmitted to the other nodes 3 [3] to 3 [ 8]
Responses are sequentially returned so as to be returned earlier than the response from. However, in the example of FIG. 9, the response is sent from the node 3 [1] set as the high priority node for some reason. It is not returned at time t51 when it should be received. In this case, the node 3 [2] suspends the collection of the response and, for example, by the time when the response is to be returned from the next node 3 [3],
The request is retransmitted to the node 3 [1] and the same request is retransmitted to the other nodes 3 [3] to 3 [8] (time t5).
2). At this time, the destination node / group number F12 and the transaction number F15 are not changed. As a result, runaway of the application due to double reception can be prevented.
【0061】この後、図9の例では、高優先度ノードに
設定されたノード3[1]からの応答が他のノード3[3]
〜3[8]からの応答よりも先に返送されるように順次応
答が返送されてくる(t53,t55〜t60)。これ
により、高優先度ノードからの応答の遅延を最小限に抑
えることができる。Thereafter, in the example of FIG. 9, the response from the node 3 [1] set as the high-priority node is transmitted to another node 3 [3].
Responses are sequentially returned so as to be returned before the response from 3 [8] (t53, t55 to t60). As a result, it is possible to minimize the delay of the response from the high priority node.
【0062】次に、本発明の第7実施形態に係る応答分
散式通信方法の説明を行う。本応答分散式通信方法も第
1実施形態と同様に通信システム1に適用される。第7
実施形態では、複数のノード3の各々に対して、通信シ
ステム1に接続されるノード数に応じて、通信イベント
周期タイマおよび応答受信完了待ちタイマによる各計時
時間の長さを通信システム1の輻輳を回避し得る値に設
定させる方法が採られる。Next, a distributed response communication method according to the seventh embodiment of the present invention will be described. This response-distributed communication method is also applied to the communication system 1 as in the first embodiment. Seventh
In the embodiment, the length of each time measured by the communication event period timer and the response reception completion waiting timer is determined for each of the plurality of nodes 3 in accordance with the number of nodes connected to the communication system 1. Is set to a value that can avoid the above.
【0063】具体的には、初期設定時に、自ノードのノ
ード番号と通信システム1のノード数およびノード番号
の一覧(接続リスト)とをアプリケーションタスク部3
01が通信プロトコル層部302に通知するように各ノ
ード3を設定する。また、自ノードのノード番号と接続
リスト中のノード番号とを比較し、自ノードの応答送信
順序を算出するように各ノード3を設定する。Specifically, at the time of initial setting, the application task unit 3 stores the node number of its own node and the list (connection list) of the number of nodes and the node number of the communication system 1.
01 sets each node 3 so as to notify the communication protocol layer unit 302. Further, each node 3 is set so as to compare the node number of the own node with the node number in the connection list and calculate the response transmission order of the own node.
【0064】例えば、自ノードのノード番号が7であ
り、接続リスト中のノード番号が1,3,4,6,9,
10,13,16,19であるとすれば、自ノードの応
答送信順序は1,3,4,6の次であることから5番目
になる。このように、ノード番号と応答送信順序とが必
ずしも一致しないことに鑑みて、第7実施形態では、通
信システム1に接続されるノード数に応じて、通信イベ
ント周期タイマおよび応答受信完了待ちタイマによる各
計時時間の長さを適応的に設定するのである。この場
合、ノード数が10で、図2のノード数8に対してノー
ド数が2個増えるから、通信システムの輻輳を回避すべ
く、通信イベント周期タイマおよび応答受信完了待ちタ
イマによる各計時時間の長さはノード数が8の場合の
1.25(=10/8)倍に変更される。これにより、
通信システムに接続されたノード数に応じて応答の遅延
時間を最小に設定することができる。For example, the node number of the own node is 7, and the node numbers in the connection list are 1, 3, 4, 6, 9,
If the numbers are 10, 13, 16, and 19, the response transmission order of the own node is next to 1, 3, 4, and 6, which is the fifth. As described above, in view of the fact that the node number and the response transmission order do not always match, in the seventh embodiment, the communication event period timer and the response reception completion wait timer are used in accordance with the number of nodes connected to the communication system 1. The length of each time period is set adaptively. In this case, the number of nodes is 10, and the number of nodes is increased by two compared to the number of nodes 8 in FIG. 2. Therefore, in order to avoid congestion in the communication system, each time counted by the communication event period timer and the response reception completion timer is measured. The length is changed to 1.25 (= 10/8) times when the number of nodes is eight. This allows
The response delay time can be set to a minimum according to the number of nodes connected to the communication system.
【0065】なお、第7実施形態において、既述の障害
モードを検出した場合、検出した障害ノードの数を上記
各計時時間の長さの設定に加味するようにしてもよい。
すなわち、通信システム1に接続されるノード数および
障害ノードの数に応じて、通信イベント周期タイマおよ
び応答受信完了待ちタイマによる各計時時間の長さを通
信システム1の輻輳を回避し得る値に設定するようにし
てもよい。例えば、通信システム1に接続されるノード
数が10で障害ノードの数が1の場合には、通信イベン
ト周期タイマおよび応答受信完了待ちタイマによる各計
時時間の長さをノード数が10の場合の0.9倍に変更
すればよい。なお、自ノードのノード番号が7であり、
接続リスト中のノード番号が1,3,4,6,9,1
0,13,16,19であるとき、障害ノードのノード
番号が13であれば自ノードの応答送信順序は5番目の
ままで、障害ノードのノード番号が4であれば自ノード
の応答送信順序が4番目に変わるから、ノード番号×1
0msにより得られる遅延時間が変わるのは言うまでも
ない。In the seventh embodiment, when the above-described failure mode is detected, the number of detected failure nodes may be added to the setting of the length of each of the clock times.
In other words, according to the number of nodes connected to the communication system 1 and the number of failed nodes, the length of each time measured by the communication event period timer and the response reception completion wait timer is set to a value that can avoid congestion in the communication system 1. You may make it. For example, when the number of nodes connected to the communication system 1 is 10 and the number of failed nodes is 1, the length of each time counted by the communication event period timer and the response reception completion wait timer is set to the case where the number of nodes is 10. It may be changed to 0.9 times. Note that the node number of the own node is 7,
Node numbers in the connection list are 1, 3, 4, 6, 9, 1
When the node number of the failed node is 13, when the node number of the failed node is 13, the response transmission order of the own node remains at 5, and when the node number of the failed node is 4, the response transmission order of the own node. Changes to the fourth, so node number x 1
Needless to say, the delay time obtained by 0 ms changes.
【0066】[0066]
【発明の効果】以上のことから明らかなように、請求項
1記載の発明によれば、複数のノードが相互にデータの
送受信を行う通信システム用の応答を分散させる通信方
法であって、前記複数のノードの各々は、割り当てられ
た固有の値を保持し、応答を送信するとき、この応答の
送信タイミングを前記固有の値に応じて遅延させるの
で、伝送媒体の通信容量またはデータ受信能力を超える
トラヒックが発生する場合などの通信システムの輻輳を
回避することができる。As is apparent from the above, according to the first aspect of the present invention, there is provided a communication method for distributing a response for a communication system in which a plurality of nodes mutually transmit and receive data. Each of the plurality of nodes holds the assigned unique value and, when transmitting a response, delays the transmission timing of the response according to the unique value, so that the communication capacity or the data reception capability of the transmission medium is reduced. It is possible to avoid congestion in the communication system such as when excessive traffic occurs.
【0067】請求項2記載の発明によれば、請求項1記
載の応答分散式通信方法において、前記複数のノードの
各々は、要求を送信するとき、その要求を送信すべき少
なくとも1つの送信先ノードの指定情報をヘッダ情報に
含め、このヘッダ情報とともに前記要求をデータとして
送信し、データを受信したとき、このデータから得られ
るヘッダ情報をもとに、受信したデータが自宛のデータ
であるか否かを判断し、自宛のデータであれば応答を送
信する方法でもよい(請求項2)。この方法によれば、
自宛のデータであれば応答が送信されるので、冗長なト
ラヒックを抑制し、信号の衝突や受信バッファ溢れなど
による要求のデータ消失の確率を低く抑えることができ
る。According to a second aspect of the present invention, in the distributed response communication method according to the first aspect, when each of the plurality of nodes transmits a request, at least one destination to which the request is to be transmitted is provided. The node specification information is included in the header information, the request is transmitted together with the header information as data, and when the data is received, the received data is data addressed to itself based on the header information obtained from the data. It is also possible to determine whether the data is addressed to itself or to send a response (claim 2). According to this method,
If the data is addressed to itself, a response is transmitted, so that redundant traffic can be suppressed, and the probability of data loss of the request due to signal collision or reception buffer overflow can be suppressed.
【0068】請求項3記載の発明によれば、請求項1記
載の応答分散式通信方法において、前記複数のノードの
各々は、データの送信機能として応答送信機能と要求送
信機能とを個別に有し、応答送信機能によって応答を送
信するとき、その応答の送信タイミングを前記固有の値
に応じて遅延させ、要求送信機能によって要求を送信す
るとき、その要求を、この送信タイミングを遅延させる
ことなく送信するので、要求の迅速な送信が可能にな
る。According to the third aspect of the present invention, in the response-distributed communication method according to the first aspect, each of the plurality of nodes individually has a response transmission function and a request transmission function as a data transmission function. When transmitting a response by the response transmission function, the transmission timing of the response is delayed according to the unique value, and when transmitting the request by the request transmission function, the request is transmitted without delaying the transmission timing. Sending enables quick sending of requests.
【0069】請求項4記載の発明によれば、請求項1記
載の応答分散式通信方法において、前記複数のノードの
各々は、前記応答を送信するとき、前記伝送媒体の伝送
速度と前記応答のデータ長とからその応答の前記伝送媒
体における滞在時間を算出し、この滞在時間から通信シ
ステムの輻輳を回避するために必要な応答の送信時間間
隔を算出し、当該ノードが保持する前記固有の値から前
記応答の送信順序を決定し、この送信順序および前記送
信時間間隔に応じて前記応答を送信するので、遅延を最
小限に抑えて応答を返送することが可能となる。According to a fourth aspect of the present invention, in the response-distributed communication method according to the first aspect, each of the plurality of nodes, when transmitting the response, transmits the transmission speed of the transmission medium and the response speed of the response. Calculate the residence time of the response in the transmission medium from the data length, calculate the transmission time interval of the response required to avoid congestion in the communication system from the residence time, and calculate the unique value held by the node. , The transmission order of the response is determined, and the response is transmitted according to the transmission order and the transmission time interval. Therefore, it is possible to return the response with a minimum delay.
【0070】請求項5記載の発明によれば、請求項1ま
たは3記載の応答分散式通信方法において、データの受
信時刻から前記通信システムの負荷を算出し、この負荷
から前記通信システムの負荷が増大しているか否かを判
断し、前記通信システムの負荷が増大していれば前記応
答の送信時間間隔を長くするので、信号の衝突や受信バ
ッファ溢れなどによる要求のデータ消失の確率を低く抑
えることができる。According to a fifth aspect of the present invention, in the response-distributed communication method according to the first or third aspect, a load on the communication system is calculated from a data reception time, and the load on the communication system is calculated from the load. It is determined whether or not the request has been increased, and if the load on the communication system is increased, the transmission time interval of the response is lengthened, so that the probability of data loss of the request due to signal collision or reception buffer overflow is suppressed. be able to.
【0071】請求項6記載の発明によれば、請求項2記
載の応答分散式通信方法において、前記複数のノードの
各々は、タイマを有するとともに応答の返送を期待する
ノードのリストを予め記憶し、前記要求を送信すると
き、前記タイマを起動し、前記リストを利用して前記要
求を送信すべき少なくとも1つの送信先ノードの指定情
報を前記ヘッダ情報に含め、このヘッダ情報とともに前
記要求を送信し、この後、前記タイマの計時によりタイ
ムアウトが発生する前に、前記ヘッダ情報に含めた応答
の返送を期待するノードの全てから応答を受信した場合
には、前記タイマを停止する一方、前記応答の返送を期
待するノードの全てから応答を受信する前に、前記タイ
マの計時によりタイムアウトが発生した場合には、前記
応答の返送を期待するノードのうち応答を返送してこな
かったノードに対してのみ前記要求の再送を行うので、
冗長なトラヒックを抑制し、信号の衝突や受信バッファ
溢れなどによる要求のデータ消失の確率を低く抑えるこ
とができる。According to a sixth aspect of the present invention, in the response-distributed communication method according to the second aspect, each of the plurality of nodes has a timer and stores in advance a list of nodes that are expected to return a response. When transmitting the request, the timer is started, and the header information includes designation information of at least one destination node to which the request is to be transmitted using the list, and the request is transmitted together with the header information. Thereafter, before receiving a response from all of the nodes expecting the return of the response included in the header information before the timeout occurs due to the counting of the timer, while stopping the timer, If a time-out occurs due to the time measurement of the timer before receiving responses from all the nodes that are expected to return the Since the retransmission of the request only to the nodes that have not returned the response of the nodes,
Redundant traffic can be suppressed, and the probability of data loss of a request due to signal collision, reception buffer overflow, or the like can be suppressed.
【0072】請求項7記載の発明によれば、請求項6記
載の応答分散式通信方法において、前記複数のノードの
各々は、前記要求の再送を所定回数行ってもその再送の
相手先から応答が返送されてこない場合には、その相手
先のノードを障害ノードとして取り扱い、この後、前記
障害ノードに対する再送の回数を、前記障害ノードとし
て取り扱わないノードに対する再送の回数よりも少なく
するので、次の要求の迅速な送信が可能になる。According to a seventh aspect of the present invention, in the response-distributed communication method according to the sixth aspect, each of the plurality of nodes receives a response from the retransmission destination even if the request is retransmitted a predetermined number of times. Is not returned, the partner node is treated as a failed node, and the number of retransmissions for the failed node is made smaller than the number of retransmissions for the node not treated as the failed node. Request can be sent quickly.
【0073】請求項8記載の発明によれば、請求項3記
載の応答分散式通信方法において、前記複数のノードの
うち、データの送信に関する要求が他のノードに比べて
多い少なくとも1つのノードを高優先度ノードとし、前
記高優先度ノードからの応答が前記他のノードからの応
答よりも先に送信されるように前記通信システムを設定
し、前記他のノードに対して、前記高優先度ノードから
応答が返送されてこない場合、応答の収集を中断させて
前記高優先度ノードへの要求の再送を行わせるので、高
優先度ノードに対する要求の遅延を最小限に抑えること
ができる。According to an eighth aspect of the present invention, in the response-distributed communication method according to the third aspect, at least one of the plurality of nodes, which has a request for data transmission larger than other nodes, A high-priority node, the communication system is set such that a response from the high-priority node is transmitted before a response from the other node, and the high-priority If no response is returned from the node, the collection of the response is interrupted and the request to the high priority node is retransmitted, so that the delay of the request to the high priority node can be minimized.
【0074】請求項9記載の発明によれば、請求項4記
載の応答分散式通信方法において、前記複数のノードの
各々は、タイマを有し、前記通信システムに接続される
ノード数に応じて、前記タイマによる計時時間の長さを
前記通信システムの輻輳を回避し得る値に設定するの
で、通信システムに接続されるノード数が変化しても通
信システムの輻輳を回避することができる。また、通信
システムに接続されるノード数に応じて応答の遅延を最
小限に抑えることができる。According to a ninth aspect of the present invention, in the response-distributed communication method according to the fourth aspect, each of the plurality of nodes has a timer, and each of the nodes has a timer according to the number of nodes connected to the communication system. Since the length of time measured by the timer is set to a value that can avoid congestion in the communication system, congestion in the communication system can be avoided even if the number of nodes connected to the communication system changes. Further, it is possible to minimize the response delay according to the number of nodes connected to the communication system.
【0075】請求項10記載の発明によれば、請求項9
記載の応答分散式通信方法において、前記複数のノード
の各々は前記障害ノードの数に応じて応答収集のための
タイマ設定時間を設定するので、障害ノードからの応答
待ちによる冗長な遅延を抑制し、応答の遅延を最小限に
抑えることができる。According to the tenth aspect, the ninth aspect is provided.
In the distributed response communication method described above, each of the plurality of nodes sets a timer setting time for response collection according to the number of the failed nodes, thereby suppressing redundant delay due to waiting for a response from the failed node. In addition, the response delay can be minimized.
【0076】請求項11記載の発明によれば、複数のノ
ードが相互にデータの送受信を行う通信システムであっ
て、前記複数のノードの各々は、割り当てられた固有の
値を保持し、応答を送信するとき、この応答の送信タイ
ミングを前記固有の値に応じて遅延させるので、伝送媒
体の通信容量またはデータ受信能力を超えるトラヒック
が発生する場合などの通信システムの輻輳を回避するこ
とができる。According to the eleventh aspect of the present invention, there is provided a communication system in which a plurality of nodes mutually transmit and receive data, wherein each of the plurality of nodes holds an assigned unique value and transmits a response. When transmitting, the transmission timing of this response is delayed according to the unique value, so that it is possible to avoid congestion of the communication system such as when traffic exceeding the communication capacity or data receiving capacity of the transmission medium occurs.
【図1】本発明の第1実施形態に係る応答分散式通信方
法の説明図である。FIG. 1 is an explanatory diagram of a distributed response communication method according to a first embodiment of the present invention.
【図2】通信システムの構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a communication system.
【図3】通信システムで送受信されるデータのフレーム
フォーマット例を示す図である。FIG. 3 is a diagram illustrating an example of a frame format of data transmitted and received in a communication system.
【図4】図2に示す各ノードのハードウェア構成図であ
る。FIG. 4 is a hardware configuration diagram of each node shown in FIG. 2;
【図5】図4に示すハードウェア、特に制御部上に具備
される機能ブロック図である。FIG. 5 is a functional block diagram provided on the hardware shown in FIG. 4, particularly on a control unit.
【図6】本発明の第2実施形態に係る応答分散式通信方
法の説明図である。FIG. 6 is an explanatory diagram of a distributed response communication method according to a second embodiment of the present invention.
【図7】応答の収集の別例を示す図である。FIG. 7 is a diagram illustrating another example of response collection.
【図8】本発明の第5実施形態に係る応答分散式通信方
法の説明図である。FIG. 8 is an explanatory diagram of a distributed response communication method according to a fifth embodiment of the present invention.
【図9】第6実施形態に係る応答分散式通信方法の説明
図である。FIG. 9 is an explanatory diagram of a distributed response communication method according to a sixth embodiment.
【図10】複数のノードが送信を行った場合にデータが
消失するなどの問題点の説明図である。FIG. 10 is an explanatory diagram of a problem such as loss of data when a plurality of nodes perform transmission.
1 通信システム 2 ネットワーク 3 ノード 30 送信部 31 受信部 32 タイマ 33 メモリ 34 制御部 DESCRIPTION OF SYMBOLS 1 Communication system 2 Network 3 Node 30 Transmitting unit 31 Receiving unit 32 Timer 33 Memory 34 Control unit
───────────────────────────────────────────────────── フロントページの続き (72)発明者 中尾 豊 大阪府門真市大字門真1048番地松下電工株 式会社内 Fターム(参考) 5K030 GA13 HC01 HC14 LA19 LD02 LD18 LE01 MB06 5K033 AA05 CB06 CB13 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Yutaka Nakao 1048 Kadoma Kadoma, Osaka Prefecture Matsushita Electric Works Co., Ltd. F-term (reference) 5K030 GA13 HC01 HC14 LA19 LD02 LD18 LE01 MB06 5K033 AA05 CB06 CB13
Claims (11)
行う通信システム用の応答を分散させる通信方法であっ
て、 前記複数のノードの各々は、 割り当てられた固有の値を保持し、 応答を送信するとき、この応答の送信タイミングを前記
固有の値に応じて遅延させることを特徴とする応答分散
式通信方法。1. A communication method for distributing a response for a communication system in which a plurality of nodes mutually transmit and receive data, wherein each of the plurality of nodes holds an assigned unique value, and When transmitting, a response-distributed communication method characterized in that the transmission timing of the response is delayed according to the unique value.
1つの送信先ノードの指定情報をヘッダ情報に含め、こ
のヘッダ情報とともに前記要求をデータとして送信し、 データを受信したとき、このデータから得られるヘッダ
情報をもとに、受信したデータが自宛のデータであるか
否かを判断し、自宛のデータであれば応答を送信するこ
とを特徴とする請求項1記載の応答分散式通信方法。2. When transmitting a request, each of the plurality of nodes includes, in header information, designation information of at least one destination node to which the request is to be transmitted, and transmits the request as data together with the header information. When data is received, it is determined based on the header information obtained from the data whether or not the received data is data addressed to itself, and if it is data addressed to itself, a response is transmitted. 2. The response-distributed communication method according to claim 1, wherein:
を個別に有し、 応答送信機能によって応答を送信するとき、その応答の
送信タイミングを前記固有の値に応じて遅延させ、 要求送信機能によって要求を送信するとき、その要求
を、この送信タイミングを遅延させることなく送信する
ことを特徴とする請求項1記載の応答分散式通信方法。3. Each of the plurality of nodes individually has a response transmission function and a request transmission function as a data transmission function, and when transmitting a response by the response transmission function, sets the transmission timing of the response to the unique transmission timing. 2. The distributed response communication method according to claim 1, wherein when the request is transmitted by the request transmitting function, the request is transmitted without delaying the transmission timing.
送信するとき、 前記伝送媒体の伝送速度と前記応答のデータ長とからそ
の応答の前記伝送媒体における滞在時間を算出し、 この滞在時間から通信システムの輻輳を回避するために
必要な応答の送信時間間隔を算出し、 当該ノードが保持する前記固有の値から前記応答の送信
順序を決定し、 この送信順序および前記送信時間間隔に応じて前記応答
を送信することを特徴とする請求項1記載の応答分散式
通信方法。4. Each of the plurality of nodes, when transmitting the response, calculates a residence time of the response in the transmission medium from a transmission speed of the transmission medium and a data length of the response, The transmission time interval of the response required to avoid congestion of the communication system is calculated from the above, the transmission order of the response is determined from the unique value held by the node, and the transmission order of the response is determined according to the transmission order and the transmission time interval The response-distributed communication method according to claim 1, wherein the response is transmitted by using a response.
の負荷を算出し、 この負荷から前記通信システムの負荷が増大しているか
否かを判断し、 前記通信システムの負荷が増大していれば前記応答の送
信時間間隔を長くすることを特徴とする請求項1または
3記載の応答分散式通信方法。5. A load of the communication system is calculated from a data reception time, and it is determined whether or not the load of the communication system is increasing based on the load. 4. The response-distributed communication method according to claim 1, wherein a response transmission time interval is lengthened.
リストを予め記憶し、 前記要求を送信するとき、前記タイマを起動し、前記リ
ストを利用して前記要求を送信すべき少なくとも1つの
送信先ノードの指定情報を前記ヘッダ情報に含め、この
ヘッダ情報とともに前記要求を送信し、この後、前記タ
イマの計時によりタイムアウトが発生する前に、前記ヘ
ッダ情報に含めた応答の返送を期待するノードの全てか
ら応答を受信した場合には、前記タイマを停止する一
方、前記応答の返送を期待するノードの全てから応答を
受信する前に、前記タイマの計時によりタイムアウトが
発生した場合には、前記応答の返送を期待するノードの
うち応答を返送してこなかったノードに対してのみ前記
要求の再送を行うことを特徴とする請求項2記載の応答
分散式通信方法。6. Each of the plurality of nodes has a timer and stores in advance a list of nodes that are expected to return a response. When transmitting the request, the node activates the timer and utilizes the list. The header information includes at least one designation information of the destination node to which the request is to be transmitted, and transmits the request together with the header information. If the response is received from all of the nodes expecting the return of the response included in, the timer is stopped, and before the response is received from all of the nodes expecting the return of the response, the timer is stopped. When a time-out occurs due to the above, the request is re-sent only to the nodes that did not return a response among the nodes that are expected to return the response. Response distributed type communication method according to claim 2, wherein the performing.
ら応答が返送されてこない場合には、その相手先のノー
ドを障害ノードとして取り扱い、この後、前記障害ノー
ドに対する再送の回数を、前記障害ノードとして取り扱
わないノードに対する再送の回数よりも少なくすること
を特徴とする請求項6記載の応答分散式通信方法。7. When each of the plurality of nodes does not return a response from a retransmission partner even after performing the retransmission of the request a predetermined number of times, treats the destination node as a failed node, 7. The response-distributed communication method according to claim 6, wherein the number of retransmissions for the failed node is made smaller than the number of retransmissions for a node not treated as the failed node.
に関する要求が他のノードに比べて多い少なくとも1つ
のノードを高優先度ノードとし、 前記高優先度ノードからの応答が前記他のノードからの
応答よりも先に送信されるように前記通信システムを設
定し、 前記他のノードに対して、前記高優先度ノードから応答
が返送されてこない場合、応答の収集を中断させて前記
高優先度ノードへの要求の再送を行わせることを特徴と
する請求項3記載の応答分散式通信方法。8. A high-priority node at least one of which requests for data transmission are higher than other nodes, wherein a response from the high-priority node is received from the other node. The communication system is set so as to be transmitted before the response to the other node, if a response is not returned from the high priority node to the other node, the collection of the response is interrupted and the high priority 4. The distributed response communication method according to claim 3, wherein the request is retransmitted to the first node.
タイマによる計時時間の長さを前記通信システムの輻輳
を回避し得る値に設定することを特徴とする請求項4記
載の応答分散式通信方法。9. Each of the plurality of nodes has a timer, and according to the number of nodes connected to the communication system, a length of time measured by the timer is set to a value capable of avoiding congestion of the communication system. 5. The response-distributed communication method according to claim 4, wherein:
ードの数に応じて応答収集のためのタイマ設定時間を設
定することを特徴とする請求項9記載の応答分散式通信
方法。10. The response-distributed communication method according to claim 9, wherein each of said plurality of nodes sets a timer set time for response collection according to the number of said failed nodes.
を行う通信システムであって、 前記複数のノードの各々は、割り当てられた固有の値を
保持し、応答を送信するとき、この応答の送信タイミン
グを前記固有の値に応じて遅延させることを特徴とする
通信システム。11. A communication system in which a plurality of nodes mutually transmit and receive data, wherein each of the plurality of nodes holds an assigned unique value and transmits a response when transmitting the response. A communication system, wherein timing is delayed according to the unique value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21786399A JP3587092B2 (en) | 1999-07-30 | 1999-07-30 | Response distributed communication method and communication system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21786399A JP3587092B2 (en) | 1999-07-30 | 1999-07-30 | Response distributed communication method and communication system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001045020A true JP2001045020A (en) | 2001-02-16 |
| JP3587092B2 JP3587092B2 (en) | 2004-11-10 |
Family
ID=16710958
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21786399A Expired - Lifetime JP3587092B2 (en) | 1999-07-30 | 1999-07-30 | Response distributed communication method and communication system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3587092B2 (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2386500A (en) * | 2002-03-07 | 2003-09-17 | Chello Broadband N V | Interactive Television system with variable delayed user response |
| JP2007522750A (en) * | 2004-02-18 | 2007-08-09 | ノキア コーポレイション | Data recovery method in a system capable of handling multicast and broadcast transmissions |
| US7652565B2 (en) | 2005-09-16 | 2010-01-26 | Nec Corporation | Sensor network system, sensor node, sensor information collector, method of observing event, and program thereof |
| JP2011182308A (en) * | 2010-03-03 | 2011-09-15 | Sony Corp | Radio communication apparatus, radio communication system and radio communication method |
| US8335265B2 (en) | 2004-02-13 | 2012-12-18 | Nokia Corporation | Picture decoding method |
| US8532194B2 (en) | 2003-02-18 | 2013-09-10 | Nokia Corporation | Picture decoding method |
| US8670486B2 (en) | 2003-02-18 | 2014-03-11 | Nokia Corporation | Parameter for receiving and buffering pictures |
| US9124907B2 (en) | 2004-10-04 | 2015-09-01 | Nokia Technologies Oy | Picture buffering method |
| CN113393235A (en) * | 2020-03-13 | 2021-09-14 | 富士通株式会社 | Information processing apparatus for processing write request and transmission control method |
-
1999
- 1999-07-30 JP JP21786399A patent/JP3587092B2/en not_active Expired - Lifetime
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2386500A (en) * | 2002-03-07 | 2003-09-17 | Chello Broadband N V | Interactive Television system with variable delayed user response |
| GB2386500B (en) * | 2002-03-07 | 2005-07-20 | Chello Broadband N V | Message transmission in an interactive television system |
| US8532194B2 (en) | 2003-02-18 | 2013-09-10 | Nokia Corporation | Picture decoding method |
| US8670486B2 (en) | 2003-02-18 | 2014-03-11 | Nokia Corporation | Parameter for receiving and buffering pictures |
| US8335265B2 (en) | 2004-02-13 | 2012-12-18 | Nokia Corporation | Picture decoding method |
| JP2007522750A (en) * | 2004-02-18 | 2007-08-09 | ノキア コーポレイション | Data recovery method in a system capable of handling multicast and broadcast transmissions |
| US8108747B2 (en) | 2004-02-18 | 2012-01-31 | Nokia Corporation | Data repair |
| US9124907B2 (en) | 2004-10-04 | 2015-09-01 | Nokia Technologies Oy | Picture buffering method |
| US7652565B2 (en) | 2005-09-16 | 2010-01-26 | Nec Corporation | Sensor network system, sensor node, sensor information collector, method of observing event, and program thereof |
| JP2011182308A (en) * | 2010-03-03 | 2011-09-15 | Sony Corp | Radio communication apparatus, radio communication system and radio communication method |
| CN113393235A (en) * | 2020-03-13 | 2021-09-14 | 富士通株式会社 | Information processing apparatus for processing write request and transmission control method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3587092B2 (en) | 2004-11-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7921215B2 (en) | Method and apparatus for optimizing and prioritizing the creation of a large number of VPN tunnels | |
| CN109639546B (en) | Redundancy system based on CAN bus | |
| US20050175027A1 (en) | System and method for requesting and granting access to a network channel | |
| JP2007089174A (en) | Method and device for improving signal transmission rate in wireless communication system | |
| US20020141454A1 (en) | Method for multiplexing two data flows on a radio communication channel and corresponding transmitter | |
| US20060251105A1 (en) | Method and apparatus for requesting/transmitting status report of a mobile communication system | |
| US9197373B2 (en) | Method, apparatus, and system for retransmitting data packet in quick path interconnect system | |
| CN114222271A (en) | Secondary link monitoring method, device, medium and electronic device for vehicle communication | |
| JP5738324B2 (en) | Transmission device, communication device, communication system, and transmission method | |
| JP2001045020A (en) | Reply distribution type communication method and communication system | |
| US9942165B2 (en) | Method for transmitting data in a packet-oriented communications network and correspondingly configured user terminal in said communications network | |
| JPH1155314A (en) | Data transfer control method | |
| CN115086365B (en) | Time-sensitive network vehicle communication method for data distribution service | |
| JPH10164131A (en) | Method for controlling congestion | |
| US20100135194A1 (en) | Mobile communication system, network apparatus, and packet sequence control method | |
| WO2023226878A1 (en) | Bandwidth adjustment method and device, and storage medium | |
| JPH09247192A (en) | Real-time communication method | |
| JP2004260562A (en) | Method and device for transmitting and receiving packet | |
| WO1991009366A1 (en) | Method and apparatus for dispersed end-entity flow control in computer networks | |
| CN112217739B (en) | Code stream transmitting device, code stream transmitting method and code stream transmitting system | |
| JP3034406B2 (en) | Local area network device | |
| CN113596002A (en) | Service providing method and device | |
| CN119815406A (en) | Method, device and system for obtaining network status | |
| JPH07281975A (en) | Data transmission / reception buffer busy retry method | |
| WO2024190421A1 (en) | In-vehicle relay device, relay method, and relay program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040720 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040802 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 3587092 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070820 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080820 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090820 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090820 Year of fee payment: 5 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090820 Year of fee payment: 5 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090820 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100820 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110820 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120820 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130820 Year of fee payment: 9 |
|
| EXPY | Cancellation because of completion of term |