[go: up one dir, main page]

JP2022119367A - Data processing device - Google Patents

Data processing device Download PDF

Info

Publication number
JP2022119367A
JP2022119367A JP2021016439A JP2021016439A JP2022119367A JP 2022119367 A JP2022119367 A JP 2022119367A JP 2021016439 A JP2021016439 A JP 2021016439A JP 2021016439 A JP2021016439 A JP 2021016439A JP 2022119367 A JP2022119367 A JP 2022119367A
Authority
JP
Japan
Prior art keywords
data
conversion
unit
packet data
post
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021016439A
Other languages
Japanese (ja)
Inventor
滋 竹岸
Shigeru Takegishi
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.)
Nihon Dempa Kogyo Co Ltd
Original Assignee
Nihon Dempa Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nihon Dempa Kogyo Co Ltd filed Critical Nihon Dempa Kogyo Co Ltd
Priority to JP2021016439A priority Critical patent/JP2022119367A/en
Publication of JP2022119367A publication Critical patent/JP2022119367A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

Figure 2022119367000001

【課題】外部装置がデータ長を誤認識することを抑制する。
【解決手段】外部装置から受信した受信パケットデータに含まれる内容データを抽出し、抽出した内容データを変換装置へ送信する通信制御部181と、内容データが変換装置により変換された後の変換後データを取得する取得部182と、取得部182が取得した変換後データのデータ長を計数する計数部183と、変換後データを含む返送パケットデータであって、返送パケットデータのデータ長を示すデータ長情報を含む返送パケットデータを生成する生成部184と、生成部184が生成した返送パケットデータを外部装置に出力する出力部185と、を備える。
【選択図】図2

Figure 2022119367000001

An object of the present invention is to prevent an external device from erroneously recognizing a data length.
A communication control unit (181) for extracting content data contained in received packet data received from an external device and transmitting the extracted content data to a conversion device; An acquisition unit 182 that acquires data, a counting unit 183 that counts the data length of the post-conversion data acquired by the acquisition unit 182, and return packet data including the post-conversion data, which indicates the data length of the return packet data. A generation unit 184 that generates return packet data including length information, and an output unit 185 that outputs the return packet data generated by the generation unit 184 to an external device.
[Selection drawing] Fig. 2

Description

本発明は、パケットデータを送受信するデータ処理装置に関する。 The present invention relates to a data processing device that transmits and receives packet data.

従来、データ長を示すデータ長識別子を含むデータを伝送装置からクライアント装置に転送する技術が知られている(例えば、特許文献1を参照)。 Conventionally, there is known a technique of transferring data including a data length identifier indicating data length from a transmission device to a client device (for example, see Patent Document 1).

特開2001-144778号公報JP-A-2001-144778

外部装置から受信したデータを変換装置に転送することによりデータを変換し、変換後のデータを外部装置に転送するデータ処理装置においても、データ長を示すヘッダが設けられている。 A data processing device that converts data received from an external device by transferring it to a conversion device and transfers the converted data to the external device also has a header that indicates the data length.

ところが、変換装置においてデータを変換する際にデータ長が変化した場合に、外部装置から受信したデータに含まれているヘッダをそのまま用いてしまうと、外部装置が、データ長を誤認識してしまうという問題があった。 However, if the data length changes when the conversion device converts the data, if the header included in the data received from the external device is used as it is, the external device misidentifies the data length. There was a problem.

本発明は、上記の問題に鑑みてなされたものであり、外部装置がデータ長を誤認識することを抑制することができるデータ処理装置を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a data processing apparatus that can prevent an external device from erroneously recognizing the data length.

本発明の第1の態様のデータ処理装置は、外部装置から受信した受信パケットデータに含まれる内容データを抽出し、抽出した当該内容データを変換装置へ送信する通信制御部と、前記内容データが前記変換装置により変換された後の変換後データを取得する取得部と、前記取得部が取得した前記変換後データのデータ長を計数する計数部と、前記変換後データを含む返送パケットデータであって、当該返送パケットデータのデータ長を示すデータ長情報を含む返送パケットデータを生成する生成部と、前記生成部が生成した前記返送パケットデータを前記外部装置に出力する出力部と、を備える。 A data processing apparatus according to a first aspect of the present invention includes a communication control unit for extracting content data contained in received packet data received from an external device and transmitting the extracted content data to a conversion device; an acquisition unit for acquiring post-conversion data after being converted by the conversion device; a counting unit for counting the data length of the post-conversion data acquired by the acquisition unit; and return packet data containing the post-conversion data. a generation unit for generating return packet data including data length information indicating the data length of the return packet data; and an output unit for outputting the return packet data generated by the generation unit to the external device.

前記計数部は、前記取得部が前記変換装置から1バイトごとに取得した前記変換後データのデータ長を計数してもよい。前記取得部は、前記変換装置が前記内容データを暗号化することにより変換した後の前記変換後データを取得してもよい。 The counting unit may count the data length of the post-conversion data acquired by the acquiring unit from the conversion device for each byte. The acquisition unit may acquire the post-conversion data after the content data is converted by the conversion device by encrypting the content data.

本発明によれば、外部装置が、データ長を誤認識することを抑制するという効果を奏する。 ADVANTAGE OF THE INVENTION According to this invention, it is effective in suppressing erroneous recognition of data length by an external device.

実施形態のデータ変換システムの概要を示す図である。It is a figure which shows the outline|summary of the data conversion system of embodiment. データ処理装置の構成を示す図である。It is a figure which shows the structure of a data processor. 通信制御部によるデータの送受信の様子を示す。4 shows how data is transmitted and received by a communication control unit. データ変換システムによるデータ変換の処理手順を示すシーケンス図である。FIG. 10 is a sequence diagram showing a procedure of data conversion processing by the data conversion system;

<第1の実施形態>
[データ変換システムの概要]
図1は、本実施形態のデータ変換システムSの概要を示す図である。データ変換システムSは、データ処理装置100、外部装置200及び変換装置300を備える。データ処理装置100は、例えば、コンピュータである。データ処理装置100は、外部装置200及び変換装置300に接続されている。データ処理装置100は、外部装置200と変換装置300との間のデータの送受信を中継する。
<First Embodiment>
[Overview of data conversion system]
FIG. 1 is a diagram showing an overview of a data conversion system S of this embodiment. A data conversion system S includes a data processing device 100 , an external device 200 and a conversion device 300 . The data processing device 100 is, for example, a computer. The data processing device 100 is connected to an external device 200 and a conversion device 300 . The data processing device 100 relays data transmission/reception between the external device 200 and the conversion device 300 .

外部装置200及び変換装置300は、例えば、コンピュータである。変換装置300は、外部装置200からデータ処理装置100を経由して受信したデータを所定の方法により変換する。例えば、変換装置300は、受信したデータを暗号化する。 The external device 200 and conversion device 300 are, for example, computers. The conversion device 300 converts data received from the external device 200 via the data processing device 100 using a predetermined method. For example, conversion device 300 encrypts the received data.

データ処理装置100は、外部装置200から受信パケットデータを受信する(図1中の(1))。データ処理装置100は、受信した受信パケットデータに含まれる内容データを抽出する。データ処理装置100は、抽出した内容データを変換装置300へ送信する(図1中の(2))。変換装置300は、受信した内容データを変換することにより、変換後データを生成する。データ処理装置100は、変換装置300から変換後データを取得する(図1中の(3))。データ処理装置100は、取得した変換後データのデータ長を計数する。データ処理装置100は、変換後データを含む返送パケットデータを生成する。データ処理装置100は、計数した変換後データのデータ長に基づいて、返送パケットデータのデータ長を算出する。 The data processing device 100 receives received packet data from the external device 200 ((1) in FIG. 1). The data processing device 100 extracts content data included in the received packet data. The data processing device 100 transmits the extracted content data to the conversion device 300 ((2) in FIG. 1). The conversion device 300 converts the received content data to generate post-conversion data. The data processing device 100 acquires post-conversion data from the conversion device 300 ((3) in FIG. 1). The data processing device 100 counts the data length of the acquired post-conversion data. The data processing device 100 generates return packet data including post-conversion data. The data processing device 100 calculates the data length of the return packet data based on the counted data length of the post-conversion data.

データ処理装置100は、返送パケットデータのデータ長を示すデータ長情報を返送パケットデータのヘッダに含める。データ処理装置100は、生成した返送パケットデータを外部装置200へ出力する(図1中の(4))。このようにして、データ処理装置100は、返送パケットデータのデータ長が元の受信パケットデータのデータ長と異なる場合に、元の受信パケットデータのデータ長を返送パケットデータのデータ長として外部装置200が誤認識することを抑制することができる。 The data processing device 100 includes data length information indicating the data length of the return packet data in the header of the return packet data. The data processing device 100 outputs the generated return packet data to the external device 200 ((4) in FIG. 1). In this way, when the data length of the return packet data is different from the data length of the original received packet data, the data processing device 100 sets the data length of the original received packet data to the data length of the return packet data. erroneous recognition can be suppressed.

[変換装置の構成]
図2は、データ処理装置100の構成を示す図である。データ処理装置100は、通信部11、ネットワークアダプタ12、信号変換回路13、信号変換回路14、コネクタ15、コネクタ16、記憶部17及び制御部18を備える。
[Configuration of conversion device]
FIG. 2 is a diagram showing the configuration of the data processing device 100. As shown in FIG. The data processing device 100 includes a communication section 11 , a network adapter 12 , a signal conversion circuit 13 , a signal conversion circuit 14 , a connector 15 , a connector 16 , a storage section 17 and a control section 18 .

通信部11は、LAN(Local Area Network)等のネットワークを介して、外部装置200と通信する通信インターフェースである。通信部11は、複数の外部装置200と通信してもよい。図2の例では、通信部11は、ネットワークアダプタ12を介して、外部装置200と通信する。ネットワークアダプタ12は、例えば、LANアダプタである。 The communication unit 11 is a communication interface that communicates with the external device 200 via a network such as a LAN (Local Area Network). The communication unit 11 may communicate with a plurality of external devices 200 . In the example of FIG. 2 , the communication section 11 communicates with the external device 200 via the network adapter 12 . The network adapter 12 is, for example, a LAN adapter.

信号変換回路13は、シングルエンド信号を差動信号に変換する。シングルエンド信号は、信号の電圧レベルでハイレベルとローレベルとが定まる信号である。差動信号は、二つの信号の電位差でハイレベルとローレベルとが定まる信号である。信号変換回路13は、制御部18が送信バッファ(不図示)に入力したデータをFIFO(First In, First Out)方式で取り出し、取り出したデータに対応するシングルエンド信号を差動信号に変換する。信号変換回路13は、コネクタ15を介して、変換した差動信号を変換装置300へ送信する。 A signal conversion circuit 13 converts a single-ended signal into a differential signal. A single-ended signal is a signal whose high level and low level are determined by the voltage level of the signal. A differential signal is a signal whose high level and low level are determined by the potential difference between two signals. The signal conversion circuit 13 extracts data input to a transmission buffer (not shown) by the control unit 18 by a FIFO (First In, First Out) method, and converts a single-ended signal corresponding to the extracted data into a differential signal. The signal conversion circuit 13 transmits the converted differential signal to the conversion device 300 via the connector 15 .

信号変換回路14は、変換装置300からコネクタ16を介して差動信号を受信する。例えば、信号変換回路14は、変換装置300から差動信号を1バイトごとに受信する。信号変換回路14は、差動信号を1バイト受信するごとに制御部18に割り込み信号を入力する。信号変換回路14は、受信した差動信号をシングルエンド信号に変換する。信号変換回路14は、変換したシングルエンド信号が示すデータを受信バッファ(不図示)に入力する。コネクタ15及びコネクタ16には、信号ケーブルが接続される。例えば、コネクタ15及びコネクタ16には、差動信号方式の信号ケーブルが接続される。 Signal conversion circuit 14 receives differential signals from conversion device 300 via connector 16 . For example, the signal conversion circuit 14 receives the differential signal from the conversion device 300 byte by byte. The signal conversion circuit 14 inputs an interrupt signal to the control unit 18 each time it receives one byte of the differential signal. The signal conversion circuit 14 converts the received differential signal into a single-ended signal. The signal conversion circuit 14 inputs data indicated by the converted single-ended signal to a reception buffer (not shown). Signal cables are connected to the connectors 15 and 16 . For example, the connectors 15 and 16 are connected with signal cables of a differential signaling system.

記憶部17は、ROM(Read Only Memory)及びRAM(Random Access Memory)等の記憶媒体である。記憶部17は、制御部18が実行するプログラムを記憶している。制御部18は、例えばCPU(Central Processing Unit)である。また、制御部18は、FPGA(field-programmable gate array)であってもよい。制御部18は、記憶部17に記憶されたプログラムを実行することにより、通信制御部181、取得部182、計数部183、生成部184及び出力部185として機能する。 The storage unit 17 is a storage medium such as ROM (Read Only Memory) and RAM (Random Access Memory). The storage unit 17 stores programs executed by the control unit 18 . The control unit 18 is, for example, a CPU (Central Processing Unit). Also, the control unit 18 may be an FPGA (field-programmable gate array). The control unit 18 functions as a communication control unit 181 , an acquisition unit 182 , a counting unit 183 , a generation unit 184 and an output unit 185 by executing programs stored in the storage unit 17 .

通信制御部181は、通信部11及びネットワークアダプタ12を介して、外部装置200と通信する。通信制御部181は、信号変換回路13及びコネクタ15を介して、変換装置300と通信する。 The communication control unit 181 communicates with the external device 200 via the communication unit 11 and network adapter 12 . The communication control unit 181 communicates with the conversion device 300 via the signal conversion circuit 13 and connector 15 .

通信制御部181は、外部装置200から受信パケットデータを受信する。受信パケットデータは、例えば、TCP/IP通信のためのIPパケットデータである。通信制御部181は、受信した受信パケットデータに含まれる内容データを抽出する。通信制御部181は、抽出した内容データを変換装置300へ送信する。図2の例では、通信制御部181は、変換装置300へ送信するデータを格納する送信バッファに内容データを入力することにより、内容データを変換装置300へ送信する。 The communication control unit 181 receives received packet data from the external device 200 . The received packet data is IP packet data for TCP/IP communication, for example. The communication control unit 181 extracts content data included in the received packet data. The communication control unit 181 transmits the extracted content data to the conversion device 300 . In the example of FIG. 2 , the communication control unit 181 transmits the content data to the conversion device 300 by inputting the content data into the transmission buffer that stores the data to be transmitted to the conversion device 300 .

図3(a)及び図3(b)は、データ処理装置100によるデータの送受信の様子を示す。図3(a)は、受信パケットデータに含まれる内容データを通信制御部181が変換装置300へ送信する様子を示す。図3(b)は、生成部184が返送パケットデータを生成する様子を示す。 3A and 3B show how data is transmitted and received by the data processing device 100. FIG. 3A shows how the communication control unit 181 transmits the content data included in the received packet data to the conversion device 300. FIG. FIG. 3B shows how the generator 184 generates return packet data.

図3(a)の左側は、通信制御部181が外部装置200から受信した受信パケットデータを示す。受信パケットデータは、ヘッダ部、データ部及び終了部を含む。ヘッダ部は、例えば、受信パケットデータのデータ長を示すデータ長情報を含む。終了部は、データ部の終了位置を示す終了コードを含む。通信制御部181は、図3(a)の中央に示すように、受信パケットデータのデータ部に含まれる内容データを抽出する。通信制御部181は、抽出した内容データを変換装置300へ送信する。通信制御部181が変換装置300へ送信した内容データは、変換装置300により変換される(図3(a)の右側)。 The left side of FIG. 3A shows received packet data received by the communication control unit 181 from the external device 200 . The received packet data includes a header portion, a data portion and an end portion. The header portion includes, for example, data length information indicating the data length of received packet data. The end portion contains an end code indicating where the data portion ends. The communication control unit 181 extracts content data contained in the data portion of the received packet data, as shown in the center of FIG. 3(a). The communication control unit 181 transmits the extracted content data to the conversion device 300 . The content data transmitted from the communication control unit 181 to the conversion device 300 is converted by the conversion device 300 (right side of FIG. 3(a)).

取得部182は、内容データが変換装置300により変換された後の変換後データを取得する。取得部182は、変換後データを1バイトごとに取得する。本明細書の例では、取得部182は、変換装置300が内容データを暗号化することにより変換した後の変換後データを取得する。取得部182は、信号変換回路14が受信バッファに入力した変換後データを取得するものとする。取得部182は、取得した変換後データを計数部183及び生成部184へ出力する。 The acquisition unit 182 acquires post-conversion data after the content data has been converted by the conversion device 300 . The acquisition unit 182 acquires post-conversion data for each byte. In the example of this specification, the acquisition unit 182 acquires post-conversion data after conversion by the conversion device 300 by encrypting the content data. It is assumed that the acquisition unit 182 acquires post-conversion data that the signal conversion circuit 14 has input to the reception buffer. The acquiring unit 182 outputs the acquired post-conversion data to the counting unit 183 and the generating unit 184 .

計数部183は、取得部182が取得した変換後データのデータ長を計数する。より詳しくは、計数部183は、取得部182が1バイトごとに取得した変換後データのデータ長を計数する。より詳しくは、計数部183は、受信バッファに格納されている変換後データのバイト数を計数することにより、変換後データのデータ長を計数する。また、信号変換回路14において差動信号からシングルエンド信号に変換された変換後データを取得部182が1バイト取得する度に、信号変換回路14から計数部183に割り込み信号が入力されてもよい。計数部183は、割り込み信号の入力回数を計数することにより、変換後データのデータ長を計数してもよい。計数部183は、計数した変換後データのデータ長を生成部184に通知する。 The counting unit 183 counts the data length of the post-conversion data acquired by the acquiring unit 182 . More specifically, the counting unit 183 counts the data length of the post-conversion data acquired by the acquiring unit 182 for each byte. More specifically, the counting unit 183 counts the data length of the post-conversion data by counting the number of bytes of the post-conversion data stored in the reception buffer. An interrupt signal may be input from the signal conversion circuit 14 to the counting unit 183 each time the obtaining unit 182 obtains 1 byte of post-conversion data converted from a differential signal to a single-ended signal in the signal conversion circuit 14 . . The counting unit 183 may count the data length of the post-conversion data by counting the number of times the interrupt signal is input. The counting unit 183 notifies the generation unit 184 of the counted data length of the post-conversion data.

[返送パケットデータの生成]
生成部184は、変換後データを含む返送パケットデータを生成する。返送パケットデータは、例えば、TCP/IP通信のためのIPパケットデータである。生成部184は、返送パケットデータのデータ長を示すデータ長情報を返送パケットデータに含める。
[Generation of return packet data]
The generation unit 184 generates return packet data including post-conversion data. The returned packet data is, for example, IP packet data for TCP/IP communication. The generation unit 184 includes data length information indicating the data length of the return packet data in the return packet data.

図3(b)の左側には、生成部184が生成する返送パケットデータの例を示す。返送パケットデータは、ヘッダ部、データ部及び終了部を含む。生成部184は、計数部183が計数した変換後データのデータ長に基づいて、返送パケットデータのデータ長を算出する。生成部184は、取得部182が取得した受信パケットデータのヘッダ部を複製することにより、返送パケットデータのヘッダ部を生成する。生成部184は、受信パケットデータのデータ長を示す元のデータ長情報を返送パケットデータから削除し、算出した返送パケットデータのデータ長を示す新たなデータ長情報をヘッダ部に含める。 The left side of FIG. 3B shows an example of return packet data generated by the generator 184 . Return packet data includes a header portion, a data portion and an end portion. The generating unit 184 calculates the data length of the return packet data based on the data length of the post-conversion data counted by the counting unit 183 . The generation unit 184 generates the header portion of the return packet data by duplicating the header portion of the received packet data acquired by the acquisition unit 182 . The generation unit 184 deletes the original data length information indicating the data length of the received packet data from the returned packet data, and includes new data length information indicating the calculated data length of the returned packet data in the header portion.

生成部184は、取得部182が取得した変換後データ(図3(b)の中央)を返送パケットデータのデータ部に格納する。生成部184は、受信パケットデータの終了部を複製することにより、返送パケットデータの終了部を生成する。 The generation unit 184 stores the post-conversion data acquired by the acquisition unit 182 (the center of FIG. 3B) in the data portion of the return packet data. The generation unit 184 generates the end portion of the return packet data by duplicating the end portion of the received packet data.

出力部185は、通信部11及びネットワークアダプタ12を介して、外部装置200と通信する。出力部185は、生成部が生成した返送パケットデータを外部装置200へ出力する。 The output unit 185 communicates with the external device 200 via the communication unit 11 and network adapter 12 . The output unit 185 outputs the return packet data generated by the generation unit to the external device 200 .

[データ変換システムによるデータ変換の処理手順]
図4は、データ変換システムSによるデータ変換の処理手順を示すシーケンス図である。図4の処理手順は、例えば、外部装置200がデータ処理装置100へパケットデータを送信することを指示する管理者の操作を受け付けたときに開始する。
[Data Conversion Processing Procedure by Data Conversion System]
FIG. 4 is a sequence diagram showing the procedure of data conversion by the data conversion system S. As shown in FIG. The processing procedure in FIG. 4 starts, for example, when the external device 200 receives an administrator's operation instructing transmission of packet data to the data processing device 100 .

まず、データ処理装置100の通信制御部181は、受信パケットデータを外部装置200から受信する。通信制御部181は、受信した受信パケットデータのデータ部から内容データを抽出する。通信制御部181は、抽出した内容データを変換装置300へ送信する。変換装置300は、受信した内容データを変換することにより、変換後データを生成する(S11)。データ処理装置100の取得部182は、変換装置300から変換後データを取得する。計数部183は、取得部182が取得した変換後データのデータ長を計数する(S12)。 First, the communication control unit 181 of the data processing device 100 receives received packet data from the external device 200 . The communication control unit 181 extracts content data from the data portion of the received packet data. The communication control unit 181 transmits the extracted content data to the conversion device 300 . The conversion device 300 converts the received content data to generate post-conversion data (S11). The acquisition unit 182 of the data processing device 100 acquires post-conversion data from the conversion device 300 . The counting unit 183 counts the data length of the converted data acquired by the acquiring unit 182 (S12).

生成部184は、変換後データを含む返送パケットデータを生成する(S13)。生成部184は、返送パケットデータのデータ長を示すデータ長情報を返送パケットデータに含める。出力部185は、生成部184が生成した返送パケットデータを外部装置200へ出力する。 The generator 184 generates return packet data including the post-conversion data (S13). The generation unit 184 includes data length information indicating the data length of the return packet data in the return packet data. The output unit 185 outputs the return packet data generated by the generation unit 184 to the external device 200 .

[第1の実施形態のデータ処理装置による効果]
生成部184は、返送パケットデータのデータ長を示すデータ長情報を返送パケットデータに含める。このようにして、生成部184は、変換装置300が内容データを変換する際にデータ長が変化した場合に、受信パケットデータのデータ長が返送パケットデータのデータ長であると外部装置200が誤認識することを抑制することができる。
[Effects of the data processing device of the first embodiment]
The generation unit 184 includes data length information indicating the data length of the return packet data in the return packet data. In this way, the generator 184 prevents the external device 200 from mistaking the data length of the received packet data as the data length of the returned packet data when the data length changes when the conversion device 300 converts the content data. Recognition can be restrained.

第1の実施形態によるデータ処理装置100が返送パケットデータのデータ長情報を正しく作成するか否かを管理者がテストする場合、受信パケットデータのデータ長の減少量が最大値となるケースと、受信パケットデータのデータ長の増加量が最大値となるケースと、受信パケットデータのデータ長の増加量又は減少量が最大値より小さな値となるケースとの3つのケースをテストすればよい。このため、データ処理装置100は、データ処理装置100をテストする管理者の作業負荷を比較的小さくすることができる。 When the administrator tests whether the data processing apparatus 100 according to the first embodiment correctly creates the data length information of the return packet data, the case where the amount of decrease in the data length of the received packet data is the maximum value, It suffices to test three cases: a case in which the amount of increase in the data length of the received packet data is the maximum value, and a case in which the amount of increase or decrease in the data length of the received packet data is smaller than the maximum value. Therefore, the data processor 100 can make the workload of the administrator who tests the data processor 100 relatively small.

<第2の実施形態>
第1の実施形態では、データ処理装置100の計数部183が、変換後データのデータ長を計数する場合の例について説明した。これに対し、第2の実施形態では、外部装置200が変換後データのデータ長を変換前に推定する場合の例について説明する。
<Second embodiment>
In the first embodiment, an example in which the counting unit 183 of the data processing device 100 counts the data length of post-conversion data has been described. On the other hand, in the second embodiment, an example in which the external device 200 estimates the data length of post-conversion data before conversion will be described.

変換装置300によるデータ変換の際のデータ長の増加量又は減少量は、受信パケットデータのデータ部に含まれる各種コマンドの種類や数によって定まる。外部装置200の記憶部(不図示)には、受信パケットデータの内容データとして含まれる可能性がある複数のコマンドの組み合わせと、これらの組み合わせを含む内容データのそれぞれを変換装置300によりデータ変換した際に内容データのデータ長が変化する増加量又は減少量とを関連付けた増減テーブルが記憶されている。 The amount of increase or decrease in data length during data conversion by the conversion device 300 is determined by the types and number of various commands included in the data portion of the received packet data. In the storage unit (not shown) of the external device 200, the conversion device 300 converts a combination of a plurality of commands that may be included as the content data of the received packet data, and the content data including these combinations. An increase/decrease table is stored that associates the amount of increase or decrease with which the data length of the content data changes.

外部装置200は、データ処理装置100へ送信する前の受信パケットデータの内容データに含まれるコマンドを全て特定する。外部装置200は、記憶部に記憶されている増減テーブルを参照して、特定したコマンドの組み合わせと一致するコマンドの組み合わせに増減テーブルにおいて関連付けられたデータ長の増加量又は減少量を特定する。 The external device 200 identifies all commands included in the content data of the received packet data before transmission to the data processing device 100 . The external device 200 refers to the increase/decrease table stored in the storage unit, and specifies the amount of increase or decrease in the data length associated with the combination of commands matching the specified combination of commands in the increase/decrease table.

外部装置200は、特定したデータ長の増加量又は減少量を示す変換後データ長情報を生成する。外部装置200は、受信パケットデータのデータ長を示す変換前データ長情報と、生成した変換後データ長情報とを受信パケットデータのヘッダ部に含める。 The external device 200 generates post-conversion data length information indicating the amount of increase or decrease in the identified data length. The external device 200 includes the pre-conversion data length information indicating the data length of the reception packet data and the generated post-conversion data length information in the header portion of the reception packet data.

変換装置300がこの受信パケットデータの内容データを変換した後、データ処理装置100の生成部184は、変換前データ長情報及び変換後データ長情報を含むヘッダ部を複製することにより、返送パケットデータのヘッダ部を生成する。このようにして、外部装置200は、返送パケットデータのヘッダ部に含まれる変換前データ長情報及び変換後データ長情報の両方を参照することにより、返送パケットデータのデータ長を把握することができる。 After the conversion device 300 converts the content data of the received packet data, the generation unit 184 of the data processing device 100 duplicates the header section including the pre-conversion data length information and the post-conversion data length information to generate the return packet data. Generate the header part of In this way, the external device 200 can grasp the data length of the return packet data by referring to both the pre-conversion data length information and the post-conversion data length information included in the header of the return packet data. .

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の全部又は一部は、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を併せ持つ。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes are possible within the scope of the gist thereof. be. For example, all or part of the device can be functionally or physically distributed and integrated in arbitrary units. In addition, new embodiments resulting from arbitrary combinations of multiple embodiments are also included in the embodiments of the present invention. The effect of the new embodiment caused by the combination has the effect of the original embodiment.

11 通信部
12 ネットワークアダプタ
13 信号変換回路
14 信号変換回路
15 コネクタ
16 コネクタ
17 記憶部
18 制御部
100 データ処理装置
181 通信制御部
182 取得部
183 計数部
184 生成部
185 出力部
200 外部装置
300 変換装置
11 communication unit 12 network adapter 13 signal conversion circuit 14 signal conversion circuit 15 connector 16 connector 17 storage unit 18 control unit 100 data processing device 181 communication control unit 182 acquisition unit 183 counting unit 184 generation unit 185 output unit 200 external device 300 conversion device

Claims (3)

外部装置から受信した受信パケットデータに含まれる内容データを抽出し、抽出した当該内容データを変換装置へ送信する通信制御部と、
前記内容データが前記変換装置により変換された後の変換後データを取得する取得部と、
前記取得部が取得した前記変換後データのデータ長を計数する計数部と、
前記変換後データを含む返送パケットデータであって、当該返送パケットデータのデータ長を示すデータ長情報を含む返送パケットデータを生成する生成部と、
前記生成部が生成した前記返送パケットデータを前記外部装置に出力する出力部と、
を備える、データ処理装置。
a communication control unit for extracting content data contained in received packet data received from an external device and transmitting the extracted content data to the conversion device;
an acquisition unit that acquires post-conversion data after the content data has been converted by the conversion device;
a counting unit that counts the data length of the post-conversion data acquired by the acquiring unit;
a generator for generating return packet data including the post-conversion data, the return packet data including data length information indicating the data length of the return packet data;
an output unit that outputs the return packet data generated by the generation unit to the external device;
A data processing device comprising:
前記計数部は、前記取得部が前記変換装置から1バイトごとに取得した前記変換後データのデータ長を計数する、
請求項1に記載のデータ処理装置。
The counting unit counts the data length of the post-conversion data acquired by the acquisition unit from the conversion device for each byte,
2. A data processing apparatus according to claim 1.
前記取得部は、前記変換装置が前記内容データを暗号化することにより変換した後の前記変換後データを取得する、
請求項1又は2に記載のデータ処理装置。
The acquisition unit acquires the post-conversion data after the content data is converted by the conversion device by encrypting it.
3. A data processing apparatus according to claim 1 or 2.
JP2021016439A 2021-02-04 2021-02-04 Data processing device Pending JP2022119367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021016439A JP2022119367A (en) 2021-02-04 2021-02-04 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021016439A JP2022119367A (en) 2021-02-04 2021-02-04 Data processing device

Publications (1)

Publication Number Publication Date
JP2022119367A true JP2022119367A (en) 2022-08-17

Family

ID=82848362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021016439A Pending JP2022119367A (en) 2021-02-04 2021-02-04 Data processing device

Country Status (1)

Country Link
JP (1) JP2022119367A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06303239A (en) * 1993-04-12 1994-10-28 Japan Radio Co Ltd Wire lan and radio lan compatible interface device
US5850526A (en) * 1996-02-07 1998-12-15 Kingston Technology Co. LAN station for determining the destination LAN station is capable of decompressing by comparing destination address to block of addresses assigned by a LAN manufacturer
JP2001320419A (en) * 1999-08-06 2001-11-16 Matsushita Electric Ind Co Ltd Data transmission system, data transmission device, and data reception device
JP2004158981A (en) * 2002-11-05 2004-06-03 Toshiba Corp Communication device and communication method
JP2005167816A (en) * 2003-12-04 2005-06-23 Matsushita Electric Ind Co Ltd Relay device, relay system, relay method, and relay program
JP2010011122A (en) * 2008-06-27 2010-01-14 Fujitsu Ltd Encrypted packet processing system
JP2011193055A (en) * 2010-03-11 2011-09-29 Fujitsu Ltd Communication device and communication method
WO2014207930A1 (en) * 2013-06-28 2014-12-31 富士通株式会社 Base-station device, mobile-station device, service-quality control device, and communication method
JP2015511434A (en) * 2012-02-21 2015-04-16 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Network node with network-attached stateless security offload device
JP2016152552A (en) * 2015-02-18 2016-08-22 株式会社日立製作所 Communication system and communication method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06303239A (en) * 1993-04-12 1994-10-28 Japan Radio Co Ltd Wire lan and radio lan compatible interface device
US5850526A (en) * 1996-02-07 1998-12-15 Kingston Technology Co. LAN station for determining the destination LAN station is capable of decompressing by comparing destination address to block of addresses assigned by a LAN manufacturer
JP2001320419A (en) * 1999-08-06 2001-11-16 Matsushita Electric Ind Co Ltd Data transmission system, data transmission device, and data reception device
JP2004158981A (en) * 2002-11-05 2004-06-03 Toshiba Corp Communication device and communication method
JP2005167816A (en) * 2003-12-04 2005-06-23 Matsushita Electric Ind Co Ltd Relay device, relay system, relay method, and relay program
JP2010011122A (en) * 2008-06-27 2010-01-14 Fujitsu Ltd Encrypted packet processing system
JP2011193055A (en) * 2010-03-11 2011-09-29 Fujitsu Ltd Communication device and communication method
JP2015511434A (en) * 2012-02-21 2015-04-16 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Network node with network-attached stateless security offload device
WO2014207930A1 (en) * 2013-06-28 2014-12-31 富士通株式会社 Base-station device, mobile-station device, service-quality control device, and communication method
JP2016152552A (en) * 2015-02-18 2016-08-22 株式会社日立製作所 Communication system and communication method

Similar Documents

Publication Publication Date Title
US20190191015A1 (en) Multi-protocol gateway for connecting sensor devices to cloud
EP1155370B1 (en) Method and apparatus for extending the range of the universal serial bus protocol
CN110505161A (en) A kind of message processing method and equipment
JP2015115832A (en) Relay device, relay control method, and relay control program
CN109561395A (en) A kind of blue-tooth transmission method and device
WO2018019009A1 (en) Data processing method and system, peripheral component interconnect express device and host
CN113312284A (en) Data transmission method, device, system, storage medium and electronic device
US10649947B2 (en) Stack timing adjustment for serial communications
CN104991883A (en) Sending and receiving apparatuses with chip interconnection and sending and receiving method and system
CN109756401B (en) Test method, test device, electronic equipment and storage medium
CN103229486B (en) Batch file transmission method and equipment
CN112565036B (en) Data transmission method, device, storage medium and communication system
CN113010381A (en) Method and equipment for managing components
JP2022119367A (en) Data processing device
US20150326661A1 (en) Apparatus and method for performing infiniband communication between user programs in different apparatuses
US9485189B2 (en) Transfer device, and transfer method
CN103947158B (en) Packet data extraction element, the control method of packet data extraction element
CN114443400B (en) Signal testing method and device, system on chip, electronic equipment and storage medium
US20240394215A1 (en) Intermediate apparatus, communication method, and program
WO2014156020A1 (en) Initiator terminal, target terminal, method of interrupting access of initiator terminal, and method of interrupting access of target terminal
US11882015B2 (en) Estimation system, addition apparatus, estimation method, addition method, estimation program and addition program
CN113238982B (en) Data communication method, device, computer equipment and storage medium
CN115934593A (en) Transfer USB data in data stream
JP2019022174A (en) Communication message conversion device
KR101566004B1 (en) A semiconductor device capable of dividing the endpoint into a plurality of units

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230818

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20231012

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240611

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20241105