JP2018085638A - Communication device, communication system, communication method, and communication program - Google Patents

Communication device, communication system, communication method, and communication program Download PDF

Info

Publication number
JP2018085638A
JP2018085638A JP2016227932A JP2016227932A JP2018085638A JP 2018085638 A JP2018085638 A JP 2018085638A JP 2016227932 A JP2016227932 A JP 2016227932A JP 2016227932 A JP2016227932 A JP 2016227932A JP 2018085638 A JP2018085638 A JP 2018085638A
Authority
JP
Japan
Prior art keywords
data
communication
communication device
data format
format
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
Application number
JP2016227932A
Other languages
Japanese (ja)
Other versions
JP6816469B2 (en
Inventor
恵美子 宮崎
Emiko Miyazaki
恵美子 宮崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2016227932A priority Critical patent/JP6816469B2/en
Publication of JP2018085638A publication Critical patent/JP2018085638A/en
Application granted granted Critical
Publication of JP6816469B2 publication Critical patent/JP6816469B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To restrain elongation of communication time including data conversion time when reception is temporarily disabled due to a reason for device flow control at a reception side in communication between devices employing different data formats.SOLUTION: A communication device includes: data conversion means for converting data into a data format of another communication device; and data communication means for transmitting, to another communication device, a) next data if receivable notice based on flow control is received from another communication device after transmitting the data to another communication device, or b) next data converted by the data conversion means when the receivable notice is not received.SELECTED DRAWING: Figure 1

Description

本発明は、通信装置、通信システム、通信方法、および、通信プログラム、特に、データ形式の異なる通信装置間の通信に関する。   The present invention relates to a communication device, a communication system, a communication method, and a communication program, and more particularly to communication between communication devices having different data formats.

特許文献1は、エンディアン形式が混在する複数の計算機による通信システムにおいて、1対1通信の場合、送信側の計算機が、受信側の計算機のエンディアンに合わせて送信データを変換する計算機を開示する。   Patent Document 1 discloses a computer in which a transmission-side computer converts transmission data according to an endian of a reception-side computer in a one-to-one communication in a communication system using a plurality of computers in which endian formats are mixed.

特許文献2は、エンディアン形式が混在する通信システムにおいて、受信側と送信側のデータ変換能力を比較し、変換能力の高い側の装置が相手装置のエンディアンに合わせて送信データを変換する伝送データ変換装置を開示する。   Patent Document 2 compares transmission data conversion capabilities of a receiving side and a transmission side in a communication system in which endian formats are mixed, and transmission data conversion in which a device having a higher conversion capability converts transmission data in accordance with the endian of the counterpart device. An apparatus is disclosed.

特許文献3は、エンディアン形式が混在するネットワークシステムで、同報通信に使用するエンディアン形式を、同報通信グループ内の各端末の重みづけに従って決定する端末を開示する。この重みは、各端末プロセッサ性能値(MIPS値)(Million Instruction Per Second)等であり、この端末は、同報グループ内の低い重みづけの端末のエンディアン形式を同報通信に用いる。   Patent Document 3 discloses a terminal that determines an endian format to be used for broadcast communication according to the weight of each terminal in the broadcast communication group in a network system in which endian formats are mixed. This weight is each terminal processor performance value (MIPS value) (Million Instruction Per Second) or the like, and this terminal uses the endian format of the low weight terminal in the broadcast group for broadcast communication.

特開平10-327210号公報JP-A-10-327210 特開2000-276424号公報JP 2000-276424 A 特開特開平11-328049号公報JP-A-11-328049

特許文献1に開示されているように、送信側装置で受信側装置のエンディアン形式に合わせて送信データを変換する場合、以下に説明する問題が発生する。   As disclosed in Patent Document 1, when the transmission data is converted in accordance with the endian format of the reception-side device at the transmission-side device, the problem described below occurs.

図8は、分散並列システムにおいて、ノード1が通信データを、ノード2、ノード3、ノード4にそれぞれ送信する例を示した図である。   FIG. 8 is a diagram illustrating an example in which the node 1 transmits communication data to the nodes 2, 3 and 4 in the distributed parallel system.

図9は、図8の分散並列システムで送受信される通信データの詳細を示した図である。ノード1は、a)ノード2には、図9のノード2用の通信データを送信し、b)ノード3には、図9のノード3用の通信データを送信し、というように個々のノードに対して別の通信データを送信する。   FIG. 9 is a diagram showing details of communication data transmitted and received in the distributed parallel system of FIG. The node 1 transmits the communication data for the node 2 in FIG. 9 to the node 2, b) transmits the communication data for the node 3 in FIG. 9 to the node 3, and so on. Send another communication data to

図8の分散並列システムで送信側であるノード1でのみデータ変換を行った場合(図8のa))、ノード1は、ノード2への通信データのデータ変換を行ってから、ノード2へのデータ転送を実施する。次にノード1は、ノード3への通信データのデータ変換を行ってから、ノード3へのデータ転送を実施する。   When data conversion is performed only in the node 1 on the transmission side in the distributed parallel system of FIG. 8 (a in FIG. 8), the node 1 performs data conversion of communication data to the node 2 and then proceeds to the node 2. Implement data transfer. Next, the node 1 performs data transfer of the communication data to the node 3 and then performs data transfer to the node 3.

このように、ノード1は、ノード2からノード4に対してデータ変換(図8a)の黒塗り部)とデータ通信(図8a)の白抜き部)を交互に繰り返す。この場合、受信側であるノード2からノード4において通信待ち時間(図8a)のハッチング部)が発生することになる。   In this way, the node 1 alternately repeats the data conversion (the black portion in FIG. 8a) and the data communication (the white portion in FIG. 8a) from the node 2 to the node 4. In this case, a communication waiting time (hatched portion of FIG. 8A) occurs from the node 2 to the node 4 on the receiving side.

その結果として、データ変換を送信側で実施した場合、データ変換、データ転送、待ち時間を含めたデータ通信時間が長くなる。   As a result, when data conversion is performed on the transmission side, data communication time including data conversion, data transfer, and waiting time becomes long.

一方、受信側のノード2からノード4がデータ変換を行った場合、ノード1は、データ通信のみを行う(図8のb))。受信側のノード2からノード4の各々が、データ変換を実施する(図8b)の黒塗り部)。   On the other hand, when the node 2 to the node 4 on the receiving side perform data conversion, the node 1 performs only data communication (b in FIG. 8). Each of the node 2 to the node 4 on the receiving side performs data conversion (blacked portion in FIG. 8B).

ノード1はデータ転送のみを行うため、受信側のノード2からノード4において、通信待ちはほとんど発生せず、各ノードのデータ変換が並列して実施可能である。   Since node 1 only performs data transfer, there is almost no communication waiting between nodes 2 to 4 on the receiving side, and data conversion of each node can be performed in parallel.

その結果として、データ変換を受信側で実施した場合のデータ変換、データ転送を含めたデータ通信時間は、送信側でデータ変換を実施する場合に比べて短くなる(図8のc)の矢印)。   As a result, the data communication time including data conversion and data transfer when data conversion is performed on the reception side is shorter than that when data conversion is performed on the transmission side (arrow c in FIG. 8). .

従って、データ変換を受信側で実施することが有利であるが、そうでない場合も発生することがある。以下は、この問題の説明である。   Therefore, it is advantageous to perform the data conversion at the receiving side, but it may occur otherwise. The following is an explanation of this problem.

図10は、送信側のノード1から受信側のノード2に対する1対1通信の例を示す。1対1通信の場合、理想的なパターン(図10のa))では、データ通信時間は、データ転送時間(図10a)白抜き部)とデータ変換にかかった時間(図10a)黒塗り部)の合計時間となる。   FIG. 10 shows an example of one-to-one communication from the node 1 on the transmission side to the node 2 on the reception side. In the case of one-to-one communication, in an ideal pattern (FIG. 10a)), the data communication time is the data transfer time (FIG. 10a) and the time required for data conversion (FIG. 10a) blackened portion. ) Total time.

しかし、受信側のノード2が、通信バッファ満杯等のフロー制御上の理由により一時的に受信可能でない場合(図10のb)の黒矢印)、送信側のノード1はデータ送信を待ち合わせる(図10b)のハッチング部)。   However, if the node 2 on the receiving side is temporarily unable to receive due to flow control reasons such as the communication buffer being full (black arrow in FIG. 10B), the node 1 on the transmitting side waits for data transmission (FIG. 10). 10b) hatched portion).

このようなケースにおいて、受信側のノード2がデータ変換を実施する(図10b)の黒塗り部)と、データ通信時間が増加してしまう(図10c))。データ通信時間が、データ転送時間(図10b)の白抜き部)とデータ変換(図10b)の黒塗り部)にかかった時間に、通信待ち合わせ時間(図10b)のハッチング部)が加わったものとなってしまうからである。   In such a case, if the node 2 on the receiving side performs data conversion (the black portion in FIG. 10b), the data communication time increases (FIG. 10c)). The data communication time is the time taken for the data transfer time (the white area in FIG. 10b) and the data conversion (the black area in FIG. 10b) plus the communication waiting time (the hatched area in FIG. 10b). Because it becomes.

本発明は上記課題を解決し、データ形式の異なる装置間の通信において、受信側の端末装置がフロー制御上の理由により一時的に受信可能でなくなった場合の、データ変換時間を含めた通信時間の長期化を抑制できる通信装置を提供することを目的とする。   The present invention solves the above-described problem, and communication time including data conversion time when a terminal device on the receiving side becomes temporarily unreceivable for reasons of flow control in communication between devices having different data formats. An object of the present invention is to provide a communication device that can suppress the lengthening of the communication.

本発明の1実施の形態の通信装置は、データを他の通信装置のデータ形式に変換するデータ変換手段と、前記他の通信装置にデータを送信した後、前記他の通信装置から、a)フロー制御に基づく受信可能通知を受信すると次データを、b)前記受信可能通知を受信しないと、前記データ変換手段により変換された前記次データを、前記他の通信装置に送信するデータ通信手段と、を備える。   A communication apparatus according to an embodiment of the present invention includes a data conversion unit that converts data into a data format of another communication apparatus, and after the data is transmitted to the other communication apparatus, from the other communication apparatus, a) Data communication means for transmitting the next data to the other communication device when receiving the reception enable notification based on flow control; b) transmitting the next data converted by the data conversion means if the reception enable notification is not received; .

本発明の1実施の形態の通信方法は、通信装置にデータを送信した後、前記通信装置から、a)フロー制御に基づく受信可能通知を受信すると次データを、b)前記受信可能通知を受信しないとデータを前記通信装置のデータ形式に変換して、変換された前記次データを、前記通信装置に送信する。   In the communication method according to the embodiment of the present invention, after data is transmitted to the communication device, a) a receivable notification based on flow control is received from the communication device, and b) the receivable notification is received. Otherwise, the data is converted into the data format of the communication device, and the converted next data is transmitted to the communication device.

本発明の1実施の形態の通信プログラムは、データを、通信相手となる通信装置のデータ形式に変換するデータ変換処理と、前記通信装置にデータを送信した後、前記通信装置から、a)フロー制御に基づく受信可能通知を受信すると次データを、b)前記受信可能通知を受信しないと前記データ変換処理により変換された前記次データを、前記通信装置に送信するデータ通信処理と、をコンピュータに実行させる。   A communication program according to an embodiment of the present invention includes: a data conversion process for converting data into a data format of a communication device serving as a communication partner; and after transmitting data to the communication device, a) flow from the communication device A data communication process for transmitting to the communication device, the next data when receiving a receivable notification based on control, and b) transmitting the next data converted by the data conversion process when not receiving the receivable notification to the computer. Let it run.

本発明にかかる通信装置は、データ形式の異なる装置間の通信において、受信側の通信装置がフロー制御上の理由により一時的に受信可能でなくなった場合の、データ変換時間を含めた通信時間の長期化を抑制できる。   The communication device according to the present invention has a communication time including a data conversion time when the communication device on the receiving side becomes temporarily unable to receive for communication reasons between devices of different data formats. Prolongation can be suppressed.

図1は、本発明の第1の実施の形態にかかる通信システム300の構成図である。FIG. 1 is a configuration diagram of a communication system 300 according to the first embodiment of the present invention. 図2は、データ形式記憶部130に格納されるデータ形式情報131の構成図である。FIG. 2 is a configuration diagram of the data format information 131 stored in the data format storage unit 130. 図3は、通信データ111の構成図である。FIG. 3 is a configuration diagram of the communication data 111. 図4は、通信装置100における送信処理の動作を示すフローチャートである。FIG. 4 is a flowchart showing an operation of transmission processing in the communication apparatus 100. 図5は、通信装置100における受信処理の動作を示すフローチャートである。FIG. 5 is a flowchart showing an operation of reception processing in the communication apparatus 100. 図6は、コンピュータ装置600の構成図である。FIG. 6 is a configuration diagram of the computer apparatus 600. 図7は、本発明の第2の実施の形態にかかる通信装置100の構成図である。FIG. 7 is a configuration diagram of the communication apparatus 100 according to the second embodiment of the present invention. 図8は、分散並列システムにおいて、ノード1が通信データを、ノード2、ノード3、ノード4にそれぞれ送信する例を示した図である。FIG. 8 is a diagram illustrating an example in which the node 1 transmits communication data to the nodes 2, 3 and 4 in the distributed parallel system. 図9は、図8の分散並列システムで送受信される通信データの詳細を示した図である。FIG. 9 is a diagram showing details of communication data transmitted and received in the distributed parallel system of FIG. 図10は、送信側のノード1から受信側のノード2に対する1対1通信の例を示す。FIG. 10 shows an example of one-to-one communication from the node 1 on the transmission side to the node 2 on the reception side.

<第1の実施の形態>
<構成>
次に、本発明の第1の実施の形態の構成について図面を参照して詳細に説明する。図1は、本発明の第1の実施の形態にかかる通信システム300の構成図である。
<First Embodiment>
<Configuration>
Next, the configuration of the first exemplary embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a configuration diagram of a communication system 300 according to the first embodiment of the present invention.

通信システム300は、ネットワーク240に接続された複数の通信装置100を包含する。通信システム300内において、複数の通信装置100のデータ形式は、統一されていない。すなわち、通信システム300内には、データ形式が異なる通信装置100が混在する。   The communication system 300 includes a plurality of communication devices 100 connected to a network 240. In the communication system 300, the data formats of the plurality of communication devices 100 are not unified. That is, communication apparatuses 100 having different data formats are mixed in the communication system 300.

ここで、データ形式は、例えば、エンディアン形式、文字コード体系である。エンディアン形式は、ビックエンディアンかリトルエンディアンである。   Here, the data format is, for example, an endian format or a character code system. The endian format is big endian or little endian.

各通信装置100は、データ形式採取部120と、データ形式記憶部130と、データ変換判断部140と、データ変換部150と、データ通信部160とを備える。   Each communication device 100 includes a data format collection unit 120, a data format storage unit 130, a data conversion determination unit 140, a data conversion unit 150, and a data communication unit 160.

データ形式採取部120は、通信システム300内に存在する他の通信装置100のデータ形式を採取して、後述するデータ形式情報131を作成して、データ形式記憶部130に格納する。   The data format collection unit 120 collects data formats of other communication devices 100 existing in the communication system 300, creates data format information 131 described later, and stores the data format information 131 in the data format storage unit 130.

データ変換判断部140は、指定された通信装置100との通信において通信データ111のデータ形式変換が必要か否かを判断する。データ変換判断部140は、この判断を、データ形式情報131を参照して、両通信装置100のデータ形式が一致するか否かを判断することにより行う。一致すれば、データ形式変換は不要である。   The data conversion determination unit 140 determines whether or not the data format conversion of the communication data 111 is necessary for communication with the designated communication device 100. The data conversion determination unit 140 makes this determination by referring to the data format information 131 and determining whether or not the data formats of both communication apparatuses 100 match. If they match, data format conversion is not necessary.

データ変換部150は、入力された通信データ111のデータ形式変換を行う。データ通信部160は、相手の通信装置100との間で、通信データ111の送受信を行う。   The data conversion unit 150 performs data format conversion of the input communication data 111. The data communication unit 160 transmits / receives the communication data 111 to / from the other communication device 100.

通信データ111のデータ形式の変換は、送信時に行われる場合と、受信時に行われる場合が有る。送信時に行われる場合、データ変換部150は、通信装置100内で業務処理を実行するプロセス110から通信データ111を受領し、データ形式を変換した後、データ通信部160に出力する。受信時に行われる場合、データ変換部150は、データ通信部160から通信データ111を受領し、データ形式を変換した後、プロセス110に出力する。   The data format conversion of the communication data 111 may be performed at the time of transmission or at the time of reception. When it is performed at the time of transmission, the data conversion unit 150 receives the communication data 111 from the process 110 that executes business processing in the communication apparatus 100, converts the data format, and outputs the data to the data communication unit 160. When it is performed at the time of reception, the data conversion unit 150 receives the communication data 111 from the data communication unit 160, converts the data format, and outputs it to the process 110.

なお、各通信装置100は、通信システム300内で一意の識別子を付与されている。識別子は、例えば、ノード1、ノード2….ノードN(Nは、通信システム300内の通信装置100の台数)である。   Each communication device 100 is given a unique identifier within the communication system 300. The identifier is, for example, node 1, node 2... Node N (N is the number of communication devices 100 in the communication system 300).

図2は、データ形式記憶部130に格納されるデータ形式情報131の構成図である。データ形式情報131は、通信装置100の識別子に関連付けて、当該通信装置100のデータ形式を格納する。図2の例は、データ形式は、L(リトルエンディアン)またはB(ビッグエンディアン)である。   FIG. 2 is a configuration diagram of the data format information 131 stored in the data format storage unit 130. The data format information 131 stores the data format of the communication device 100 in association with the identifier of the communication device 100. In the example of FIG. 2, the data format is L (little endian) or B (big endian).

データ形式採取部120は、分散並列プログラムを実行する他の通信装置100内のプロセス110から、実行環境である各通信装置100のデータ形式を採取し、データ形式情報131を作成する。   The data format collection unit 120 collects the data format of each communication device 100 as an execution environment from the process 110 in the other communication device 100 that executes the distributed parallel program, and creates data format information 131.

図3は、通信データ111の構成図である。通信データ111は、データの中身であるペイロード114と、ヘッダ情報112を持つ。ヘッダ情報112は、ペイロード114のデータ変換が行われたかどうかを示すデータ変換ビット113を有する。なお、ペイロード114のデータ形式を変換することを、通信データ111のデータ形式を変換するということが有る。   FIG. 3 is a configuration diagram of the communication data 111. The communication data 111 has a payload 114 that is the contents of the data and header information 112. The header information 112 has a data conversion bit 113 indicating whether or not the data conversion of the payload 114 has been performed. Note that converting the data format of the payload 114 may refer to converting the data format of the communication data 111.

ここで、通信装置100のデータ形式採取部120と、データ変換判断部140と、データ変換部150と、データ通信部160とは、論理回路で構成される。データ形式記憶部130は、ディスク装置、または、半導体記憶装置等の記憶装置である。   Here, the data format collection unit 120, the data conversion determination unit 140, the data conversion unit 150, and the data communication unit 160 of the communication device 100 are configured by logic circuits. The data format storage unit 130 is a storage device such as a disk device or a semiconductor storage device.

通信装置100は、コンピュータ装置600により実現されても良い。図6は、コンピュータ装置600の構成図である。コンピュータ装置600は、バス640で相互に接続された、プロセッサ610、主記憶部630、および、外部記憶装置620を備える。プロセッサ610は、バス640を経由して、主記憶部630、および、外部記憶装置620に対してデータの読み書きを行う。また、プロセッサ610は、主記憶部630に格納されているプログラム650を実行する。なお、プログラム650は、当初外部記憶装置620に格納されており、コンピュータ装置600の初期設定時に、プロセッサ610が外部記憶装置620から主記憶部630にロードしても良い。   The communication device 100 may be realized by the computer device 600. FIG. 6 is a configuration diagram of the computer apparatus 600. The computer device 600 includes a processor 610, a main storage unit 630, and an external storage device 620 that are connected to each other via a bus 640. The processor 610 reads / writes data from / to the main storage unit 630 and the external storage device 620 via the bus 640. Further, the processor 610 executes a program 650 stored in the main storage unit 630. Note that the program 650 is initially stored in the external storage device 620, and the processor 610 may load the external storage device 620 from the external storage device 620 to the main storage unit 630 when the computer device 600 is initially set.

ここで、主記憶部630は半導体メモリ装置である。外部記憶装置620はディスク装置、または、半導体記憶装置等の記憶装置である。   Here, the main storage unit 630 is a semiconductor memory device. The external storage device 620 is a storage device such as a disk device or a semiconductor storage device.

プロセッサ610は、プログラム650を実行することにより、データ形式採取部120、データ変換判断部140、データ変換部150、および、データ通信部160として機能する。すなわち、プロセッサ610は、プログラム650を実行することにより、データ形式採取部120、データ変換判断部140、データ変換部150、および、データ通信部160が行う処理を実行する。   The processor 610 functions as the data format collection unit 120, the data conversion determination unit 140, the data conversion unit 150, and the data communication unit 160 by executing the program 650. That is, the processor 610 executes the program 650 to execute processing performed by the data format collection unit 120, the data conversion determination unit 140, the data conversion unit 150, and the data communication unit 160.

主記憶部630、または、外部記憶装置620は、データ形式記憶部130として使用されても良い。   The main storage unit 630 or the external storage device 620 may be used as the data format storage unit 130.

<動作>
通信装置100の動作について図面を参照して詳細に説明する。図4は、通信装置100における送信処理の動作を示すフローチャートである。
<Operation>
The operation of the communication device 100 will be described in detail with reference to the drawings. FIG. 4 is a flowchart showing an operation of transmission processing in the communication apparatus 100.

まず、データ変換判断部140は、データ形式情報131を参照し、送信側である自装置と受信側の通信装置100のデータ形式が同じかどうかチェックを行う(ステップ410)。データ形式が同じ場合は(ステップ410でY)、データ通信部160が、通信データ111をデータ形式変換せずに送信する(ステップ460)。   First, the data conversion determination unit 140 refers to the data format information 131 and checks whether the data format of the transmitting apparatus 100 and the receiving communication apparatus 100 is the same (step 410). If the data formats are the same (Y in step 410), the data communication unit 160 transmits the communication data 111 without converting the data format (step 460).

データ形式が異なる場合は(ステップ410でN)、データ変換判断部140は、受信側の通信装置100のデータ形式を出力する。   If the data formats are different (N in Step 410), the data conversion determination unit 140 outputs the data format of the communication device 100 on the receiving side.

次に、データ通信部160は、受信側通信装置100のデータ通信部160のフロー制御におけるAck(受信可能)通知のチェック(ステップ420)に移る。データ通信部160は、例えば、スライディングウインドウによるフロー制御を行っている。スライディングウインドウによるフロー制御では、データ通信部160は、通信データ111を送信し、その後受信側からAck通知を受け取ると、次の通信データ111を送信する。通信データ111を送信後、所定時間経過してもAck信号を受け取らない場合であっても、データ通信部160は、ウインドウで定められた個数までの通信データ111を送り続ける。   Next, the data communication unit 160 proceeds to check of Ack (receivable) notification in the flow control of the data communication unit 160 of the reception side communication device 100 (step 420). For example, the data communication unit 160 performs flow control using a sliding window. In the flow control by the sliding window, the data communication unit 160 transmits the communication data 111, and then receives the Ack notification from the receiving side, and then transmits the next communication data 111. Even if the Ack signal is not received even after a predetermined time has elapsed after transmitting the communication data 111, the data communication unit 160 continues to send the communication data 111 up to the number determined by the window.

データ形式が異なった場合(ステップ410でN)、データ通信部160は、通信データ111の送信後、所定時間内にAckを受信したかをチェックし、受信した場合は(ステップ420でY)、次の通信データ111をデータ形式変換せずに送信する(ステップ460)。   If the data formats are different (N in Step 410), the data communication unit 160 checks whether or not Ack has been received within a predetermined time after transmission of the communication data 111, and if received (Y in Step 420), The next communication data 111 is transmitted without converting the data format (step 460).

通信データ111送信後、所定時間内にAckを受信しない場合(ステップ420でN)、データ変換部150は、次の通信データ111を受信側通信装置100のデータ形式に変換して、データ変換ビット113をオンする(ステップ440、および、450)。データ変換部150は、受信側通信装置100のデータ形式を、データ変換判断部140の出力値から判別する。   If Ack is not received within a predetermined time after transmission of the communication data 111 (N in Step 420), the data conversion unit 150 converts the next communication data 111 into the data format of the receiving-side communication device 100, and converts the data conversion bit. 113 is turned on (steps 440 and 450). The data conversion unit 150 determines the data format of the receiving communication device 100 from the output value of the data conversion determination unit 140.

最後に、データ通信部160は、受信側のデータ形式に変換された次の通信データ111を、受信側通信装置100に送信する(ステップ460)。   Finally, the data communication unit 160 transmits the next communication data 111 converted into the data format on the reception side to the reception side communication device 100 (step 460).

通信データ111の送信後、所定時間内にAckを受信しない場合(ステップ420でN)であっても、1対多通信の場合(ステップ430でY)、データ通信部160は、次の通信データ111をデータ形式変換せずに送信する(ステップ460)。   Even if the Ack is not received within a predetermined time after the transmission of the communication data 111 (N in Step 420), in the case of one-to-many communication (Y in Step 430), the data communication unit 160 determines that the next communication data 111 is transmitted without converting the data format (step 460).

図5は、通信装置100における受信処理の動作を示すフローチャートである。受信側の通信装置100においてデータ変換部150は、受信した通信データ111のデータ変換ビット113がオンでない場合(ステップ510でN)、通信データ111を自装置のデータ形式に変換し(ステップ520)、変換後の通信データ111をプロセス110に渡す。   FIG. 5 is a flowchart showing an operation of reception processing in the communication apparatus 100. In the communication device 100 on the receiving side, if the data conversion bit 113 of the received communication data 111 is not on (N in Step 510), the data conversion unit 150 converts the communication data 111 into the data format of the own device (Step 520). The converted communication data 111 is passed to the process 110.

受信した通信データ111のデータ変換ビット113がオンである場合(ステップ510でY)、データ通信部160は、受信した通信データ111をデータ変換しないでプロセス110に出力する。データ変換ビット113がオンである場合(ステップ510でY)、通信データ111は、既に送信側の通信装置100により自装置のデータ形式に変換されているからである。   If the data conversion bit 113 of the received communication data 111 is on (Y in step 510), the data communication unit 160 outputs the received communication data 111 to the process 110 without performing data conversion. This is because if the data conversion bit 113 is ON (Y in Step 510), the communication data 111 has already been converted into the data format of the own device by the communication device 100 on the transmission side.

<効果>
本実施の形態にかかる通信装置100は、データ形式の異なる通信装置100間の通信において、受信側の通信装置100がフロー制御上の理由により一時的に受信可能でなくなった場合の、データ変換時間を含めた通信時間の長期化を抑制できる。
<Effect>
The communication device 100 according to the present embodiment has a data conversion time when the communication device 100 on the receiving side temporarily becomes unable to receive for communication reasons between the communication devices 100 having different data formats. It is possible to suppress the lengthening of communication time including

その理由は、フロー制御の受信可能通知を受け取れない場合、データ変換部150が次の通信データ111を受信側のデータ形式に変換して、データ通信部160が変換後の次の通信データ111を送信するからである。   The reason is that if the flow control receivable notification is not received, the data conversion unit 150 converts the next communication data 111 into the data format on the receiving side, and the data communication unit 160 converts the next communication data 111 after conversion. It is because it transmits.

すなわち、図10のb)のようなケースにおいては、送信側が、通信待ち合わせ時間にデータ変換を実施することにより、全体としてのデータ変換を含めた通信時間を短縮する(図10のc))。   That is, in the case as shown in FIG. 10 b), the transmission side performs data conversion during the communication waiting time, thereby shortening the communication time including the data conversion as a whole (FIG. 10 c)).

<第2の実施形態>
図7は、本発明の第2の実施の形態にかかる通信装置100の構成図である。
<Second Embodiment>
FIG. 7 is a configuration diagram of the communication apparatus 100 according to the second embodiment of the present invention.

通信装置100は、データ変換部150と、データ通信部160を備えている。データ変換部150は、データを他の通信装置100のデータ形式に変換する。   The communication device 100 includes a data conversion unit 150 and a data communication unit 160. The data conversion unit 150 converts the data into the data format of the other communication device 100.

データ通信部160は、他の通信装置100にデータを送信した後、当該他の通信装置100からフロー制御に基づく受信可能通知を受信すると、次データを当該他の通信装置100に送信する。一方、データ通信部160は、受信可能通知を受信しないと、データ変換部150により変換された次データを当該他の通信装置100に送信する。   After transmitting data to another communication device 100, the data communication unit 160 receives next reception notification based on flow control from the other communication device 100, and then transmits the next data to the other communication device 100. On the other hand, if the data communication unit 160 does not receive the reception enable notification, the data communication unit 160 transmits the next data converted by the data conversion unit 150 to the other communication device 100.

このような通信装置100は、例えば、送信相手の通信装置100のデータ形式が自装置と異なることが、予め分かっているときに有効である。このような場合、データ形式採取部120や、データ変換判断部140は不要となる。   Such a communication device 100 is effective, for example, when it is known in advance that the data format of the communication device 100 of the transmission partner is different from that of the own device. In such a case, the data format collection unit 120 and the data conversion determination unit 140 are not necessary.

本実施の形態にかかる通信装置100は、データ形式の異なる通信装置100間の通信において、受信側の通信装置100がフロー制御上の理由により一時的に受信可能でなくなった場合の、データ変換時間を含めた通信時間の長期化を抑制できる。   The communication device 100 according to the present embodiment has a data conversion time when the communication device 100 on the receiving side temporarily becomes unable to receive for communication reasons between the communication devices 100 having different data formats. It is possible to suppress the lengthening of communication time including

その理由は、フロー制御の受信可能通知を受け取れない場合、データ変換部150が次のデータを受信側のデータ形式に変換して、データ通信部160が変換後の次のデータを送信するからである。   The reason is that if the flow control receivable notification is not received, the data conversion unit 150 converts the next data into the data format on the receiving side, and the data communication unit 160 transmits the converted next data. is there.

以上、実施形態を参照して本願発明を説明したが、本願発明は上記実施形態に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。   While the present invention has been described with reference to the embodiments, the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

100 通信装置
110 プロセス
111 通信データ
112 ヘッダ情報
113 データ変換ビット
114 ペイロード
120 データ形式採取部
130 データ形式記憶部
131 データ形式情報
140 データ変換判断部
150 データ変換部
160 データ通信部
240 ネットワーク
300 通信システム
600 コンピュータ装置
610 プロセッサ
620 外部記憶装置
630 主記憶部
640 バス
650 プログラム
DESCRIPTION OF SYMBOLS 100 Communication apparatus 110 Process 111 Communication data 112 Header information 113 Data conversion bit 114 Payload 120 Data format collection part 130 Data format memory | storage part 131 Data format information 140 Data conversion judgment part 150 Data conversion part 160 Data communication part 240 Network 300 Communication system 600 Computer device 610 Processor 620 External storage device 630 Main storage unit 640 Bus 650 Program

Claims (10)

データを他の通信装置のデータ形式に変換するデータ変換手段と、
前記他の通信装置にデータを送信した後、前記他の通信装置から、a)フロー制御に基づく受信可能通知を受信すると次データを、b)前記受信可能通知を受信しないと、前記データ変換手段により変換された前記次データを、前記他の通信装置に送信するデータ通信手段と、を備える通信装置
Data conversion means for converting data into the data format of another communication device;
After the data is transmitted to the other communication device, a) the next data is received from the other communication device upon receipt of the flow control notification, and b) the data conversion means when the reception notification is not received. A data communication means for transmitting the next data converted by the communication device to the other communication device.
前記他の通信装置の前記データ形式を格納するデータ形式記憶手段と、
前記データ形式記憶手段を参照して、自装置と前記他の通信装置の前記データ形式が一致するか判定し、一致しないと前記他の通信装置の前記データ形式を出力するデータ変換判断手段と、をさらに備え、
前記データ変換手段は、前記次データを、前記データ変換判断手段が出力した前記データ形式に変換し、
前記データ通信手段は、前記受信可能通知を受信せず、かつ、前記データ変換判断手段が、前記データ形式が一致しないと判断すると、前記データ変換手段により変換された前記次データを送信する、請求項1の通信装置。
Data format storage means for storing the data format of the other communication device;
Refer to the data format storage means, determine whether the data format of its own device and the other communication device match, if not, data conversion determination means to output the data format of the other communication device; Further comprising
The data conversion means converts the next data into the data format output by the data conversion determination means,
The data communication means transmits the next data converted by the data conversion means when it does not receive the receivability notification and the data conversion determination means determines that the data format does not match. Item 1. The communication device according to Item 1.
前記他の通信装置からデータ形式情報を取得し、前記データ形式記憶手段に格納するデータ形式採取手段を、さらに備える、請求項2の通信装置。   The communication apparatus according to claim 2, further comprising a data format collection unit that acquires data format information from the other communication apparatus and stores the data format information in the data format storage unit. 前記データ形式が前記通信装置と異なる前記他の通信装置と、
請求項1乃至3の何れか一項の通信装置を、を包含する通信システム。
The other communication device having a different data format from the communication device;
A communication system including the communication device according to claim 1.
通信装置にデータを送信した後、前記通信装置から、a)フロー制御に基づく受信可能通知を受信すると次データを、b)前記受信可能通知を受信しないとデータを前記通信装置のデータ形式に変換して、変換された前記次データを、前記通信装置に送信するデータ通信方法。   After the data is transmitted to the communication device, a) the next data is received from the communication device when receiving a receivable notification based on flow control, and b) the data is converted into the data format of the communication device when the receivable notification is not received. A data communication method for transmitting the converted next data to the communication device. 前記通信装置の前記データ形式を予め記憶し、
記憶した前記データ形式を参照して、前記データ通信方法を実行した装置と前記通信装置の前記データ形式が一致するか判定し、一致しないと前記通信装置の前記データ形式を出力し、
前記受信可能通知を受信せず、かつ、前記データ形式が一致しないとき、前記次データを出力された前記データ形式に変換し、変換された前記次データを送信する、請求項5の通信方法。
Pre-store the data format of the communication device;
Referring to the stored data format, determine whether the data format of the communication device and the device that executed the data communication method match, and if not match, output the data format of the communication device,
6. The communication method according to claim 5, wherein when the reception enable notification is not received and the data format does not match, the next data is converted into the output data format, and the converted next data is transmitted.
前記通信装置から前記データ形式を取得して予め記憶する、請求項6の通信方法。   The communication method according to claim 6, wherein the data format is acquired from the communication device and stored in advance. データを、通信相手となる通信装置のデータ形式に変換するデータ変換処理と、
前記通信装置にデータを送信した後、前記通信装置から、a)フロー制御に基づく受信可能通知を受信すると次データを、b)前記受信可能通知を受信しないと前記データ変換処理により変換された前記次データを、前記通信装置に送信するデータ通信処理と、をコンピュータに実行させる通信プログラム
A data conversion process for converting data into a data format of a communication device as a communication partner;
After the data is transmitted to the communication device, a) the next data is received when the communication device receives a receivable notification based on the flow control, and b) the data converted by the data conversion process when the receivable notification is not received. A communication program for causing a computer to execute data communication processing for transmitting next data to the communication device
前記通信装置の前記データ形式を予め記憶するデータ形式記憶処理と、
記憶した前記データ形式を参照して、自装置と前記通信装置の前記データ形式が一致するかを判定し、一致しないと前記通信装置の前記データ形式を出力するデータ変換判断処理と、をさらにコンピュータに実行させ、
前記データ変換処理において、前記次データを、前記データ変換判断処理で出力した前記データ形式に変換し、
前記データ通信処理において、前記受信可能通知を受信せず、かつ、前記データ形式が一致しないと判断すると、前記データ変換処理により変換された前記次データを送信する処理をコンピュータに実行させる、請求項8の通信プログラム。
A data format storage process for storing in advance the data format of the communication device;
A computer for referring to the stored data format to determine whether the data format of the device and the communication device match, and to output the data format of the communication device if they do not match; To run
In the data conversion process, the next data is converted into the data format output in the data conversion determination process,
The computer is configured to execute a process of transmitting the next data converted by the data conversion process when the data communication process does not receive the receivability notification and determines that the data format does not match. 8 communication programs.
前記通信装置からデータ形式情報を取得して記憶するデータ形式採取処理をコンピュータに実行させる、請求項9の通信プログラム。   The communication program of Claim 9 which makes a computer perform the data format collection process which acquires and memorize | stores data format information from the said communication apparatus.
JP2016227932A 2016-11-24 2016-11-24 Communication devices, communication systems, communication methods, and communication programs Active JP6816469B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016227932A JP6816469B2 (en) 2016-11-24 2016-11-24 Communication devices, communication systems, communication methods, and communication programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016227932A JP6816469B2 (en) 2016-11-24 2016-11-24 Communication devices, communication systems, communication methods, and communication programs

Publications (2)

Publication Number Publication Date
JP2018085638A true JP2018085638A (en) 2018-05-31
JP6816469B2 JP6816469B2 (en) 2021-01-20

Family

ID=62238607

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016227932A Active JP6816469B2 (en) 2016-11-24 2016-11-24 Communication devices, communication systems, communication methods, and communication programs

Country Status (1)

Country Link
JP (1) JP6816469B2 (en)

Also Published As

Publication number Publication date
JP6816469B2 (en) 2021-01-20

Similar Documents

Publication Publication Date Title
EP3379754A1 (en) Method, apparatus and device for retransmitting code blocks
JP5460143B2 (en) Data processing apparatus, data processing method and program
US9197373B2 (en) Method, apparatus, and system for retransmitting data packet in quick path interconnect system
CN107017911B (en) Wireless communication device and control method thereof
US10609125B2 (en) Method and system for transmitting communication data
US20080070523A1 (en) Passive and active scanning in wireless network
CN103650401A (en) Internal communication method for mobile terminal
US8588234B2 (en) Data processing apparatus, method, and computer-readable storage medium for dynamically controlling a transmission interval
CN112204934A (en) Communication device, communication method, and communication program
CN112585913A (en) Communication device, communication method, and communication program
CN115150383A (en) File transmission method, device and computer readable storage medium
US20150120826A1 (en) Node control in a distributed peer-to-peer network
US8521943B2 (en) Data transmission system and method of reading data
US10149139B2 (en) Connection control method by communication terminal
JP2018085638A (en) Communication device, communication system, communication method, and communication program
JP2015106796A (en) Communication device, communication control method, and program
JP2000276424A (en) Transmission data conversion device and computer readable storage medium with program stored
US20180359727A1 (en) Wireless communication apparatus, wireless communication method, and computer readable medium
CN107800639B (en) Switching device, switching device group, data transmission method and computer system
US20100238926A1 (en) Network interface control apparatus and control method
CN115379400B (en) Method and device for group short message receipt
CN103561105A (en) Image transmitting method, sending end and receiving end
CN113645646B (en) Communication optimization method, device, equipment, server and communication system for low-power-consumption equipment
WO2023279802A1 (en) Protocol data transmission method and apparatus, and network node and storage medium
JP2019528608A (en) Transmission resource instruction method, apparatus, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191015

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200910

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200915

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201110

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: 20201124

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201207

R150 Certificate of patent or registration of utility model

Ref document number: 6816469

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150