JP2014039113A - Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program - Google Patents

Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program Download PDF

Info

Publication number
JP2014039113A
JP2014039113A JP2012179499A JP2012179499A JP2014039113A JP 2014039113 A JP2014039113 A JP 2014039113A JP 2012179499 A JP2012179499 A JP 2012179499A JP 2012179499 A JP2012179499 A JP 2012179499A JP 2014039113 A JP2014039113 A JP 2014039113A
Authority
JP
Japan
Prior art keywords
packet
data amount
protocol
header
data
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
JP2012179499A
Other languages
Japanese (ja)
Other versions
JP5964692B2 (en
Inventor
Tetsuji Kawazu
哲司 川津
Hirotoshi Shigematsu
宏敏 重松
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 Communication Systems Ltd
Original Assignee
NEC Communication Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP2012179499A priority Critical patent/JP5964692B2/en
Publication of JP2014039113A publication Critical patent/JP2014039113A/en
Application granted granted Critical
Publication of JP5964692B2 publication Critical patent/JP5964692B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a protocol conversion support apparatus for supporting an efficient protocol conversion even in an information processing apparatus having low processing performance.SOLUTION: A protocol conversion support apparatus 1 has a calculation section 2 for calculating a third data amount in accordance with a difference between a first data amount included in a header of a packet 4 which is described according to a first communication protocol and a second data amount included in the header of the packet 4 which is described according to a second communication protocol and the number of IP addresses which exist in a payload in the packet 4; and a conversion section 3, in the packet 4, for converting the header and the IP address in accordance with the second communication protocol and determining the result as a conversion packet.

Description

本発明は、効率的なプロトコルの変換を支援する情報処理装置等に関する。   The present invention relates to an information processing apparatus and the like that support efficient protocol conversion.

図11を参照しながら、インターネットプロトコルバージョン4(Internet Protocol version 4、以降、「IPV4」と略記する)からインターネットプロトコルバージョン6(Internet Protocol version 6、以降、「IPV6」と略記する)へ、パケットを変換する一般的な方法について説明する。図11は、本発明に関連する一般的なプロトコル変換装置38の構成を示すブロック図である。図11を参照すると、プロトコル変換装置38は、通信ドライバ処理部34と、IPV4処理部35と、アプリケーションレベルゲートウェイ(以降、「ALG」と表す)処理部36と、IPV6処理部37とを有する。パケットは、レイヤ2(データリンク層とも表す、以降、「L2」と表す)ヘッダと、レイヤ3(ネットワーク層とも表す、以降、「L3」と表す)ヘッダと、レイヤ4(トランスポート層とも表す、以降、「L4」と表す)ヘッダと、L4ペイロードとを有する。   Referring to FIG. 11, a packet is transferred from Internet Protocol version 4 (Internet Protocol version 4, hereinafter abbreviated as “IPV4”) to Internet Protocol version 6 (Internet Protocol version 6, hereinafter abbreviated as “IPV6”). A general method for conversion will be described. FIG. 11 is a block diagram showing a configuration of a general protocol converter 38 related to the present invention. Referring to FIG. 11, the protocol conversion device 38 includes a communication driver processing unit 34, an IPV4 processing unit 35, an application level gateway (hereinafter referred to as “ALG”) processing unit 36, and an IPV6 processing unit 37. The packet includes a layer 2 (also referred to as data link layer, hereinafter referred to as “L2”) header, a layer 3 (also referred to as network layer, hereinafter referred to as “L3”) header, and a layer 4 (also referred to as transport layer). , Hereinafter referred to as “L4”) and an L4 payload.

通信ドライバ処理部34は、IPV4に従い記述されたパケット(以降、「IPV4のパケット」と略記する)を、通信コントローラーを介して受信し、受信したパケットにおいてL2ヘッダを特定する。次に、通信ドライバ処理部34は、特定したL2ヘッダを基に、受信したパケットにおいてL3ヘッダを特定し、特定した先頭アドレスをIPV4処理部35に送信する。   The communication driver processing unit 34 receives a packet described in accordance with IPV4 (hereinafter abbreviated as “IPV4 packet”) via the communication controller, and specifies the L2 header in the received packet. Next, the communication driver processing unit 34 specifies the L3 header in the received packet based on the specified L2 header, and transmits the specified start address to the IPV4 processing unit 35.

次に、IPV4処理部35は、通信ドライバ処理部34が送信した先頭アドレスを受信し、該パケットのL3ヘッダに存在するIPV4のパケットに存在するインターネットプロトコル(以降、「IP」と表す)アドレスを読み取り、読み取ったIPアドレスをIPV6に変換する。次に、IPV4処理部35は、情報処理装置(計算処理装置、コンピュータなどとも表す)における主記憶装置(メインメモリ、以降、単に、「メモリ」と表す)に、変換後のIPアドレスを記憶するバッファを確保し、確保したバッファにIPV6に従い記述されたIPアドレス(以降、「IPV6のパケット」と略記する)を記憶する。次に、IPV4処理部35は、受信したパケットにおいてL4ペイロードの先頭アドレスを特定し、その先頭アドレスをALG処理部36に送信する。   Next, the IPV4 processing unit 35 receives the head address transmitted by the communication driver processing unit 34, and uses the Internet protocol (hereinafter referred to as “IP”) address present in the IPV4 packet present in the L3 header of the packet. The read IP address is converted to IPV6. Next, the IPV4 processing unit 35 stores the converted IP address in a main storage device (main memory, hereinafter simply referred to as “memory”) in the information processing device (also referred to as a calculation processing device, a computer, etc.). A buffer is secured, and an IP address described in accordance with IPV6 (hereinafter, abbreviated as “IPV6 packet”) is stored in the secured buffer. Next, the IPV4 processing unit 35 specifies the leading address of the L4 payload in the received packet and transmits the leading address to the ALG processing unit 36.

ALG処理部36は、IPV4処理部35が送信した先頭アドレスを受信し、その後、L4ペイロードにおけるIPV4に従い記述されたIPアドレスを探し、該IPアドレスをIPV6に変換する。ALG処理部36は、変換したIPV6のIPアドレスを記憶するバッファ領域をメモリに確保し、確保したバッファ領域にIPV6のIPアドレスを記憶する。次に、ALG処理部36は、受信したパケットにおいてL3ヘッダの先頭アドレスをIPV6処理部37に送信する。   The ALG processing unit 36 receives the head address transmitted by the IPV4 processing unit 35, then searches for the IP address described in accordance with IPV4 in the L4 payload, and converts the IP address to IPV6. The ALG processing unit 36 secures in the memory a buffer area for storing the converted IPV6 IP address, and stores the IPV6 IP address in the secured buffer area. Next, the ALG processing unit 36 transmits the leading address of the L3 header to the IPV6 processing unit 37 in the received packet.

IPV6処理部37は、ALG処理部36が送信したL3ヘッダの先頭アドレスを受信し、その後、IPV6におけるルーティング処理に従い、IPV6のパケットを、通信コントローラーを介して送信する。   The IPV6 processing unit 37 receives the leading address of the L3 header transmitted by the ALG processing unit 36, and then transmits the IPV6 packet via the communication controller according to the routing processing in IPV6.

例えば、上述したプロトコル変換装置には、特許文献1乃至特許文献3が開示するような装置等が存在する。   For example, the above-described protocol conversion devices include devices disclosed in Patent Documents 1 to 3.

特許文献1が開示するアドレス変換プログラムは、パケットを受信すると、受信したパケットを解析し、その後、あらかじめ設定された複数のアドレス変換部に振り分ける。例えば、特許文献1が開示するアドレス変換プログラムにおいて、該複数のアドレス変換部は、アプリケーション層とネットワーク層とに存在する。該アドレス変換プログラムは、パケット単位でアプリケーションデータ内に変換が必要なIPアドレスが含まれるか否かを判定する。次に、該アドレス変換プログラムは、アプリケーション層において変換が必要なパケットのみを、アプリケーション層にて変換する。該アドレス変換プログラムは、アプリケーション層において変換が必要でないパケットを、高速なネットワーク層にて変換する。特許文献1が開示するアドレス変換プログラムは、上述のように処理することで、変換の高速化と、通信の高速化とを両立する。   When receiving a packet, the address conversion program disclosed in Patent Document 1 analyzes the received packet, and then distributes it to a plurality of preset address conversion units. For example, in the address translation program disclosed in Patent Document 1, the plurality of address translation units exist in the application layer and the network layer. The address conversion program determines whether or not an IP address that needs to be converted is included in application data on a packet basis. Next, the address conversion program converts only packets that need to be converted in the application layer in the application layer. The address translation program translates packets that do not require translation in the application layer in a high-speed network layer. The address conversion program disclosed in Patent Document 1 is processed as described above, thereby achieving both high-speed conversion and high-speed communication.

特許文献2が開示するプロトコル変換制御装置は、IPV4のパケットを受信する。次に該プロトコル変換制御装置は、受信したパケットにおけるヘッダ内の送信先IPアドレスがプロトコル変換制御装置におけるアドレス変換テーブルにする場合に、該送信先IPアドレスに関連付けされたIPV6のIPアドレスに変換し、その後、IPV6のヘッダを作成する。次に、該プロトコル変換制御装置は、作成したパケットを、LAN上に送信する。   The protocol conversion control device disclosed in Patent Document 2 receives an IPV4 packet. Next, when the transmission destination IP address in the header of the received packet is used as the address conversion table in the protocol conversion control device, the protocol conversion control device converts the IPV6 IP address associated with the transmission destination IP address. Then, an IPV6 header is created. Next, the protocol conversion control device transmits the created packet on the LAN.

特許文献3が開示するプロトコル変換装置は、受信したフレームにおける特定の部分を抜き出し、抜き出した部分と予め登録されたデータとを比較すると共に、抜き出したデータから、ヘッダの変換処理に必要なデータを算出する。次に、該プロトコル変換装置は、その比較結果に応じて、上述のように算出した結果と、変換データテーブルに存在するデータとを基に、フレームにおけるヘッダを変換し、変換後のヘッダをメモリに格納する。次に、該プロトコル変換装置は、ステータスの監視結果を基に、当該フレームを送信する。   The protocol conversion device disclosed in Patent Document 3 extracts a specific portion in a received frame, compares the extracted portion with previously registered data, and extracts data necessary for header conversion processing from the extracted data. calculate. Next, the protocol conversion device converts the header in the frame based on the result calculated as described above and the data present in the conversion data table according to the comparison result, and stores the converted header in the memory. To store. Next, the protocol conversion device transmits the frame based on the status monitoring result.

特開2005−117503号公報JP 2005-117503 A 特開2009−207182号公報JP 2009-207182 A 特開2010−147617号公報JP 2010-147617 A

トランスミッションコントロールプロトコル/インターネットプロトコル(Transmission Control Protocol/Internet Protocol、以降「TCP/IP」と表す)を利用するアプリケーションプロトコルにおいて、セッション記述プロトコル(以下、Session Description Protocol、以降、「SDP」と表す)は異なる。SDPには、IPV4のIPアドレスやIPV6のIPアドレスが存在する。そのため、IPV4とIPV6とのIPアドレスを変換するためには、アプリケーションプロトコルごとに、SDPにおける記述を変換するためのALG処理を行う必要がある。   In an application protocol that uses a transmission control protocol / Internet protocol (Transmission Control Protocol / Internet Protocol, hereinafter referred to as “TCP / IP”), the session description protocol (hereinafter referred to as “Session Description Protocol”, hereinafter referred to as “SDP”) is different. . The SDP has an IP address of IPV4 and an IP address of IPV6. Therefore, in order to convert the IP addresses of IPV4 and IPV6, it is necessary to perform ALG processing for converting the description in SDP for each application protocol.

そのため、変換対象のアプリケーションプロトコルが多くなるほど、ALG処理を行うプログラムを記憶するリードオンリーメモリー(Read Only Memory、ROMとも表す)の記憶領域は増加する。また、変換前と変換後とにおいて、二つのバッファを準備してコピーすることは、ランダムアクセスメモリー(Random Access Memory、RAMとも表す)の記憶領域を増加させ、さらに、通信性能を劣化させる。特に、送受信を行うデータ量が小さく、リアルタイム性を要するシステムにおいて、必要なRAMの記憶領域が増加することと、通信性能が劣化することとは、課題である。   Therefore, as the number of application protocols to be converted increases, the storage area of a read-only memory (also referred to as Read Only Memory, ROM) that stores a program that performs ALG processing increases. Also, preparing and copying two buffers before and after conversion increases the storage area of a random access memory (also referred to as random access memory, RAM), and further degrades communication performance. In particular, in a system that requires a small amount of data to be transmitted and received and requires real-time performance, an increase in a required RAM storage area and a deterioration in communication performance are problems.

そこで、本発明の主たる目的は、処理性能が低い情報処理装置においても、プロトコル変換を効率よく支援するプロトコル変換支援装置等を提供することである。   Therefore, a main object of the present invention is to provide a protocol conversion support apparatus and the like that efficiently support protocol conversion even in an information processing apparatus with low processing performance.

前述の目的を達成するために、本発明に係るプロトコル変換支援装置は、以下の構成を備えることを特徴とする。   In order to achieve the above object, a protocol conversion support apparatus according to the present invention is characterized by having the following configuration.

即ち、本発明に係るプロトコル変換支援装置は、
第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出する算出部と、
前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとする変換部とを備え、
前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下である
ことを特徴とする。
That is, the protocol conversion support apparatus according to the present invention is
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet A calculation unit that calculates a third data amount according to the number of
A conversion unit that converts the header and the IP address according to the second communication protocol in the packet, and converts the result into a converted packet;
The data amount of the converted packet is less than or equal to a fourth data amount that is the sum of the data amount of the packet and the third data amount.

また、本発明の他の見地として、本発明に係るプロトコル変換支援方法は、
第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出すると共に、前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとし、前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下である
ことを特徴とする。
Further, as another aspect of the present invention, a protocol conversion support method according to the present invention includes:
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet And calculating the third data amount according to the number of the packets, converting the header and the IP address in the packet according to the second communication protocol, and converting the result into a converted packet. The packet data amount is equal to or less than a fourth data amount that is the sum of the data amount of the packet and the third data amount.

本発明に係るプロトコル変換支援装置等によれば、処理性能が低い情報処理装置においても、効率的にプロトコルを変換する支援を行うことができる。   According to the protocol conversion support apparatus and the like according to the present invention, it is possible to perform efficient protocol conversion support even in an information processing apparatus with low processing performance.

次に、発明を実施するための最良の形態について図面を参照して詳細に説明する。   Next, the best mode for carrying out the invention will be described in detail with reference to the drawings.

<第1の実施形態>
本発明の第1の実施形態に係るプロトコル変換支援装置が有する構成と、そのプロトコル変換支援装置が行う処理とについて、図1と図2とを参照しながら詳細に説明を行う。図1は、本発明の第1の実施形態に係るプロトコル変換支援装置1の構成を示すブロック図である。図2は、本発明の第1の実施形態に係るプロトコル変換支援装置1における処理の流れを示すフローチャートである。
<First Embodiment>
The configuration of the protocol conversion support apparatus according to the first embodiment of the present invention and the processing performed by the protocol conversion support apparatus will be described in detail with reference to FIG. 1 and FIG. FIG. 1 is a block diagram showing a configuration of a protocol conversion support apparatus 1 according to the first embodiment of the present invention. FIG. 2 is a flowchart showing the flow of processing in the protocol conversion support apparatus 1 according to the first embodiment of the present invention.

図1を参照すると、本発明の第1の実施形態に係るプロトコル変換支援装置1は、算出部2と、変換部3とを有する。プロトコル変換支援装置1は、通信コントローラー(図1には不図示)を介して第1通信プロトコルのパケット4を受信する。パケット4は、ヘッダとペイロードとから構成される。   Referring to FIG. 1, the protocol conversion support apparatus 1 according to the first embodiment of the present invention includes a calculation unit 2 and a conversion unit 3. The protocol conversion support device 1 receives the packet 4 of the first communication protocol via a communication controller (not shown in FIG. 1). The packet 4 is composed of a header and a payload.

算出部2は、パケット4のデータ量を測定すると共に、パケット4におけるヘッダの位置を特定する。ヘッダは、通信プロトコルごとに所定のフォーマットが定義されている。例えば、プロトコルには、IPV4やIPV6の他、インターネットプロトコルバージョン5、インターネットプロトコルバージョン7、インターネットプロトコルバージョン8、インターネットプロトコルバージョン9、インターネットプロトコルバージョン10、インターネットプロトコルバージョン11、インターネットプロトコルバージョン12、インターネットプロトコルバージョン13、インターネットプロトコルバージョン14、インターネットプロトコルバージョン15、モバイルIPV4、モバイルIPV6等が存在する。通信プロトコルは、上述した例には限定されない。所定のフォーマットについては、様々な文献に記述されているため、ここでは説明を省略する。   The calculation unit 2 measures the data amount of the packet 4 and specifies the position of the header in the packet 4. The header defines a predetermined format for each communication protocol. For example, in addition to IPV4 and IPV6, the protocol includes Internet protocol version 5, Internet protocol version 7, Internet protocol version 8, Internet protocol version 9, Internet protocol version 10, Internet protocol version 11, Internet protocol version 12, Internet protocol version 13, Internet protocol version 14, Internet protocol version 15, mobile IPV4, mobile IPV6, and the like. The communication protocol is not limited to the example described above. Since the predetermined format is described in various documents, description thereof is omitted here.

第1通信プロトコルから第2通信プロトコルに変換するのに要するデータ量は、第1通信プロトコルに従い記述されたパケットのデータ量と、当該2つの通信プロトコルにおけるヘッダのデータ量の差との和である。即ち、そのヘッダのデータ量の差は、第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と、第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差である。算出部2は、必ずしもヘッダが有するデータ量の差を算出する必要はなく、ヘッダのデータ量の差を所定のヘッダのデータ量の差として算出しておくこともできる。あるいは、算出部2は、ヘッダのデータ量の差よりも大きな値を算出することもできる。   The amount of data required to convert from the first communication protocol to the second communication protocol is the sum of the data amount of the packet described according to the first communication protocol and the difference in the data amount of the header in the two communication protocols. . That is, the difference in the data amount of the header is the difference between the first data amount of the packet header described in accordance with the first communication protocol and the second data amount of the packet header described in accordance with the second communication protocol. It is a difference. The calculation unit 2 does not necessarily have to calculate the difference in the data amount of the header, and can calculate the difference in the data amount of the header as the difference in the data amount of the predetermined header. Alternatively, the calculation unit 2 can calculate a value larger than the difference in the data amount of the header.

次に、算出部2は、例えば、ペイロードに存在する第1通信プロトコルにて記述されたIPアドレスの数と、測定したパケットのデータ量と、上述した所定のヘッダにおけるデータ量の差とに応じて、第1通信プロトコルから第2通信プロトコルへプロトコル変換する際の第4データ量を算出する(ステップS1)。   Next, the calculation unit 2 responds to, for example, the number of IP addresses described in the first communication protocol existing in the payload, the data amount of the measured packet, and the difference in the data amount in the predetermined header described above. Thus, the fourth data amount when converting the protocol from the first communication protocol to the second communication protocol is calculated (step S1).

例えば、算出部2は、第4データ量を、式1に従い算出することができる。   For example, the calculation unit 2 can calculate the fourth data amount according to Equation 1.

B+R・・・(式1)
ただし
R=H+(D―E)×A、即ち、第3データ量、
Bは、パケットのデータ量、
Hは、第1データ量―第2データ量であり、算出値が0以下のときは、0とする、
Dは、第1通信プロトコルにて記述するときのIPアドレスの長さ、
Eは、第2通信プロトコルにて記述するときのIPアドレスの長さ、
D−Eの値が0以下のときは、D−Eの値を0とする、
Aは、ペイロードに存在する第1通信プロトコルにて記述されたIPアドレス数である。
B + R (Formula 1)
Where R = H + (DE) × A, that is, the third data amount,
B is the data amount of the packet,
H is the first data amount−the second data amount, and is 0 when the calculated value is 0 or less.
D is the length of the IP address as described in the first communication protocol,
E is the length of the IP address as described in the second communication protocol,
When the value of DE is 0 or less, the value of DE is set to 0.
A is the number of IP addresses described in the first communication protocol existing in the payload.

算出部2は、必ずしも、上述した方法で第4データ量を算出する必要はなく、例えば、上述した値に正の値を加えたり、あるいは、1以上の値を掛けたりしても良い。算出する方法は、上述した方法に限定されない。   The calculating unit 2 is not necessarily required to calculate the fourth data amount by the above-described method. For example, a positive value may be added to the above-described value, or one or more values may be multiplied. The calculation method is not limited to the method described above.

次に、変換部3は、受信したパケット4におけるヘッダを、第1通信プロトコルから第2通信プロトコルに変換する(ステップS2)。次に、変換部3は、受信したパケット4におけるペイロードに存在するIPアドレスを、第1通信プロトコルから第2通信プロトコルに変換する(ステップS3)。   Next, the conversion unit 3 converts the header in the received packet 4 from the first communication protocol to the second communication protocol (step S2). Next, the conversion unit 3 converts the IP address present in the payload of the received packet 4 from the first communication protocol to the second communication protocol (step S3).

プロトコル変換支援装置1は、ステップS1にて算出した第4データ量のバッファを、外部記憶装置(図1には不図示)に確保し、確保したバッファに、変換後のパケットを記憶させることもできる。あるいは、プロトコル変換支援装置1がメモリを有する場合には、プロトコル変換支援装置1は、自装置におけるメモリにおいて、ステップS1にて算出した第4データ量のバッファを確保し、確保したバッファに変換後のパケットを記憶させることもできる。あるいは、プロトコル変換支援装置1は、算出した第4データ量と変換後のパケットとを外部に送信することもできる。その場合、外部の処理装置(図1には不図示)は、算出した第4データ量と変換パケットとを受信し、上述したような処理を行うこともできる。背景技術にて説明したALG処理は、上述したようなバッファを参照することで実施される。   The protocol conversion support apparatus 1 may reserve a buffer having the fourth data amount calculated in step S1 in an external storage device (not shown in FIG. 1), and store the converted packet in the reserved buffer. it can. Alternatively, when the protocol conversion support device 1 has a memory, the protocol conversion support device 1 secures a buffer of the fourth data amount calculated in step S1 in the memory of the device itself, and after conversion to the secured buffer Can also be stored. Alternatively, the protocol conversion support device 1 can also transmit the calculated fourth data amount and the converted packet to the outside. In this case, an external processing device (not shown in FIG. 1) can receive the calculated fourth data amount and the converted packet and perform the above-described processing. The ALG process described in the background art is implemented by referring to the buffer as described above.

図3に示すように、プロトコル変換支援装置1は、例えば、通信機能におけるデータリンク層に設置することもできる。図3は、本発明の第1の実施形態に係るプロトコル変換支援装置1を有する情報処理装置11における通信機能を概念的に表す図である。図3を参照すると、情報処理装置11における通信機能は、物理層9(「レイヤ1」、「L1」とも表す)と、データリンク層8(「レイヤ2」、「L2」とも表す)と、ネットワーク層7(「レイヤ3」、「L3」とも表す)と、トランスポート層6(「レイヤ4」、「L4」とも表す)とを概念的に有する。この概念は、オープンシステムインターコネクション(Open Systems Interconnection、以降、「OSI」と表す)参照モデルとして知られており、一般の情報処理装置における通信機能を、階層構造により概念的に表したモデルである。プロトコル変換支援装置1は、例えば、データリンク層8に位置しており、受信したパケット4において、ヘッダとペイロードに関するプロトコル変換を行う。   As shown in FIG. 3, the protocol conversion support apparatus 1 can be installed in a data link layer in a communication function, for example. FIG. 3 is a diagram conceptually illustrating a communication function in the information processing apparatus 11 including the protocol conversion support apparatus 1 according to the first embodiment of the present invention. Referring to FIG. 3, the communication function in the information processing apparatus 11 includes a physical layer 9 (also referred to as “Layer 1” and “L1”), a data link layer 8 (also referred to as “Layer 2” and “L2”), It conceptually includes a network layer 7 (also referred to as “layer 3” and “L3”) and a transport layer 6 (also referred to as “layer 4” and “L4”). This concept is known as an open system interconnection (hereinafter referred to as “OSI”) reference model, and is a model that conceptually represents a communication function in a general information processing apparatus by a hierarchical structure. . For example, the protocol conversion support apparatus 1 is located in the data link layer 8 and performs protocol conversion on the header and payload in the received packet 4.

特許文献1乃至特許文献3が開示する装置は、アプリケーションプロトコルごとにIPアドレスを変換する。そのため、それらの装置によれば、アプリケーションプロトコルが多くなるほど、変換等を処理するプログラムを記憶する記憶領域や、変換後のパケットを記憶するバッファを確保する処理が冗長に行われる。   The devices disclosed in Patent Documents 1 to 3 convert IP addresses for each application protocol. Therefore, according to these devices, the more application protocols, the more redundantly the process of securing a storage area for storing a program for processing conversion and a buffer for storing a packet after conversion is performed.

一方、本発明における第1の実施形態に係るプロトコル変換支援装置1によれば、変換後のパケットに関する情報を保存する。そのため、本発明における第1の実施形態に係るプロトコル変換支援装置1によれば、アプリケーションプロトコルごとにアドレス変換等の処理を行う必要がなくなる。即ち、本発明における第1の実施形態に係るプロトコル変換支援装置1は、アドレス変換等に付随する冗長な処理を削減する。冗長な処理は、情報処理装置の処理性能が低いほど、より多くの時間を必要とする。そのため、本発明における第1の実施形態に係るプロトコル変換支援装置1は、処理性能が低い情報処理装置ほど、効率的に通信プロトコルを変換する支援を行う。   On the other hand, according to the protocol conversion support apparatus 1 according to the first embodiment of the present invention, information regarding the converted packet is stored. Therefore, according to the protocol conversion support apparatus 1 according to the first embodiment of the present invention, it is not necessary to perform processing such as address conversion for each application protocol. That is, the protocol conversion support apparatus 1 according to the first embodiment of the present invention reduces redundant processing associated with address conversion and the like. The redundant processing requires more time as the processing performance of the information processing apparatus is lower. Therefore, the protocol conversion support device 1 according to the first embodiment of the present invention provides support for efficiently converting the communication protocol as the information processing device has a lower processing performance.

即ち、本発明における第1の実施形態に係るプロトコル変換支援装置によれば、処理性能が低い情報処理装置においても効率的にプロトコルを変換する支援を行うことができる。   That is, according to the protocol conversion support apparatus according to the first embodiment of the present invention, it is possible to efficiently support protocol conversion even in an information processing apparatus with low processing performance.

<第2の実施形態>
次に、上述した第1の実施形態を基本とする第2の実施形態について説明する。
<Second Embodiment>
Next, a second embodiment based on the above-described first embodiment will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第1の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same components as those in the first embodiment described above will be denoted by the same reference numerals, and redundant description will be omitted. To do.

図4と図5とを参照しながら、本発明の第2の実施形態に係るプロトコル変換支援装置12が有する構成と、プロトコル変換支援装置12が行う処理とについて説明を行う。図4は、本発明の第2の実施形態に係るプロトコル変換支援装置12の構成を示すブロック図である。図5は、本発明の第2の実施形態に係るプロトコル変換支援装置12における処理の流れを示すフローチャートである。   The configuration of the protocol conversion support apparatus 12 according to the second embodiment of the present invention and the processing performed by the protocol conversion support apparatus 12 will be described with reference to FIGS. FIG. 4 is a block diagram showing the configuration of the protocol conversion support apparatus 12 according to the second embodiment of the present invention. FIG. 5 is a flowchart showing the flow of processing in the protocol conversion support apparatus 12 according to the second embodiment of the present invention.

図4を参照すると、プロトコル変換支援装置12は、算出部13と、変換部14と、確保部15とを有する。情報処理装置16は、プロトコル変換支援装置12と、メモリ17とを有する。プロトコル変換支援装置12は、パケット4を受け取る。次に、算出部13は、プロトコル変換支援装置12が受け取ったパケット4のデータ量に関する情報を得る(ステップS4)。次に、算出部13は、本発明の第1の実施形態に示したような方法に従い、データ量を算出する。次に、算出部13は、算出したデータ量に関する情報を確保部15に送信する。   Referring to FIG. 4, the protocol conversion support device 12 includes a calculation unit 13, a conversion unit 14, and a securing unit 15. The information processing device 16 includes a protocol conversion support device 12 and a memory 17. The protocol conversion support device 12 receives the packet 4. Next, the calculation unit 13 obtains information regarding the data amount of the packet 4 received by the protocol conversion support device 12 (step S4). Next, the calculation unit 13 calculates the data amount according to the method as described in the first embodiment of the present invention. Next, the calculation unit 13 transmits information related to the calculated data amount to the securing unit 15.

確保部15は、メモリ17に、算出部13が送信したデータ量のバッファを確保する(ステップS5)。   The securing unit 15 secures a buffer for the amount of data transmitted by the calculating unit 13 in the memory 17 (step S5).

次に、変換部14は、受信したパケット4におけるヘッダを、第1通信プロトコルから第2通信プロトコルに変換し、変換後のヘッダを確保部15が確保したバッファに記憶する(ステップS6)。次に、変換部14は、受信したパケット4におけるペイロードを、第1通信プロトコルから第2通信プロトコルに変換し、変換後のペイロードを確保部15が確保したバッファに記憶する(ステップS7)。   Next, the converting unit 14 converts the header in the received packet 4 from the first communication protocol to the second communication protocol, and stores the converted header in the buffer secured by the securing unit 15 (step S6). Next, the conversion unit 14 converts the payload in the received packet 4 from the first communication protocol to the second communication protocol, and stores the converted payload in the buffer secured by the securing unit 15 (step S7).

本発明における第2の実施形態に係るプロトコル変換支援装置12は、上述したように、確保部15がメモリ17にバッファを確保し、変換後のパケットを確保したバッファに記憶させる。アプリケーションプロトコルは、そのバッファに存在するパケットを参照する。そのため、本発明における第2の実施形態に係るプロトコル変換支援装置12によれば、異なるアプリケーションプロトコルにおける冗長な処理を減らすことができる。   In the protocol conversion support apparatus 12 according to the second embodiment of the present invention, as described above, the securing unit 15 secures a buffer in the memory 17 and stores the converted packet in the secured buffer. The application protocol refers to the packet present in the buffer. Therefore, according to the protocol conversion support apparatus 12 according to the second embodiment of the present invention, redundant processing in different application protocols can be reduced.

即ち、本発明における第2の実施形態に係るプロトコル変換支援装置によれば、処理性能が低い情報処理装置においても効率的にプロトコルを変換する支援を行うことができる。   That is, according to the protocol conversion support apparatus according to the second embodiment of the present invention, it is possible to efficiently support protocol conversion even in an information processing apparatus with low processing performance.

<第3の実施形態>
次に、上述した第1の実施形態を基本とする第3の実施形態について説明する。
<Third Embodiment>
Next, a third embodiment based on the above-described first embodiment will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第1の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same components as those in the first embodiment described above will be denoted by the same reference numerals, and redundant description will be omitted. To do.

図6と図7とを参照しながら、本発明の第3の実施形態に係るプロトコル変換支援装置18が有する構成と、プロトコル変換支援装置18が行う処理とについて説明を行う。図6は、本発明の第3の実施形態に係るプロトコル変換支援装置18の構成を示すブロック図である。図7は、本発明の第3の実施形態に係るプロトコル変換支援装置18における処理の流れを示すフローチャートである。   The configuration of the protocol conversion support device 18 according to the third embodiment of the present invention and the processing performed by the protocol conversion support device 18 will be described with reference to FIGS. FIG. 6 is a block diagram showing the configuration of the protocol conversion support device 18 according to the third embodiment of the present invention. FIG. 7 is a flowchart showing the flow of processing in the protocol conversion support device 18 according to the third embodiment of the present invention.

図6を参照すると、プロトコル変換支援装置18は、算出部19と、変換部3とを有する。算出部19は、上述した式1に従い値を算出する(ステップS8)。算出部19が算出した値に応じてバッファ(図6には不図示)が確保され、確保されたバッファに変換部3が変換したパケットが記憶される。   Referring to FIG. 6, the protocol conversion support device 18 includes a calculation unit 19 and a conversion unit 3. The calculation unit 19 calculates a value according to the above-described equation 1 (step S8). A buffer (not shown in FIG. 6) is secured according to the value calculated by the calculation unit 19, and the packet converted by the conversion unit 3 is stored in the secured buffer.

本発明における第3の実施形態に係る算出部19は、変換後のパケットを記憶するために必要なバッファ領域の大きさを算出する。そのため、本発明における第3の実施形態に係るプロトコル変換支援装置は、本発明における第1の実施形態に係るプロトコル変換支援装置が持つ効果を有する。   The calculation unit 19 according to the third embodiment of the present invention calculates the size of the buffer area necessary for storing the converted packet. Therefore, the protocol conversion support device according to the third embodiment of the present invention has the effect of the protocol conversion support device according to the first embodiment of the present invention.

即ち、本発明における第3の実施形態に係るプロトコル変換支援装置によれば、処理性能が低い情報処理装置においても効率的にプロトコルを変換する支援を行うことができる。   That is, according to the protocol conversion support apparatus according to the third embodiment of the present invention, it is possible to efficiently support protocol conversion even in an information processing apparatus with low processing performance.

<第4の実施形態>
次に、上述した第1の実施形態を基本とする第4の実施形態について説明する。
<Fourth Embodiment>
Next, a fourth embodiment based on the first embodiment described above will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第1の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same components as those in the first embodiment described above will be denoted by the same reference numerals, and redundant description will be omitted. To do.

図8と図9とを参照しながら、本発明の第4の実施形態に係るプロトコル変換支援装置10が有する構成と、プロトコル変換支援装置10が行う処理とについて説明を行う。図8は、本発明の第4の実施形態に係るプロトコル変換支援装置10の構成を示すブロック図である。図9は、本発明の第4の実施形態に係るプロトコル変換支援装置10における処理の流れを示すフローチャートである。   The configuration of the protocol conversion support apparatus 10 according to the fourth embodiment of the present invention and the processing performed by the protocol conversion support apparatus 10 will be described with reference to FIGS. 8 and 9. FIG. 8 is a block diagram showing the configuration of the protocol conversion support apparatus 10 according to the fourth embodiment of the present invention. FIG. 9 is a flowchart showing the flow of processing in the protocol conversion support apparatus 10 according to the fourth embodiment of the present invention.

図8を参照すると、プロトコル変換支援装置10は、確保部15、算出部19、変換部21とを有する。変換部21は、第1処理部22と、第2処理部23と、第3処理部24と、第4処理部25とを有する。情報処理装置20は、プロトコル変換支援装置10と、メモリ17とを有する。受信するパケット26は、L2ヘッダ、L3ヘッダ、L4ヘッダ、L4ペイロードに関する情報を有する。   Referring to FIG. 8, the protocol conversion support device 10 includes a securing unit 15, a calculation unit 19, and a conversion unit 21. The conversion unit 21 includes a first processing unit 22, a second processing unit 23, a third processing unit 24, and a fourth processing unit 25. The information processing apparatus 20 includes a protocol conversion support apparatus 10 and a memory 17. The received packet 26 has information regarding the L2 header, L3 header, L4 header, and L4 payload.

まず、算出部19は、本発明における第3の実施形態における方法に従い、データ量を算出し、その算出した値を確保部15に送信する。次に、確保部15は、算出部19が算出したデータ量の大きさを持つバッファを、メモリ17に確保する。次に、第1処理部22は、受信したパケット26を、バッファにおけるアドレスがR(式1にて定義)以降のバッファ領域にコピーする(ステップS9)。その後、第1処理部22は、L2ヘッダに対応するバッファ領域の先頭アドレスを第2処理部23に送信する。   First, the calculation unit 19 calculates a data amount according to the method in the third embodiment of the present invention, and transmits the calculated value to the securing unit 15. Next, the securing unit 15 secures a buffer having the amount of data calculated by the calculating unit 19 in the memory 17. Next, the first processing unit 22 copies the received packet 26 to a buffer area whose address in the buffer is R (defined by Equation 1) and thereafter (step S9). Thereafter, the first processing unit 22 transmits the start address of the buffer area corresponding to the L2 header to the second processing unit 23.

次に、第2処理部23は、第1処理部22が送信した先頭アドレスを受信し、L2ヘッダに対応するバッファ領域を見つけ、そのバッファ領域をバッファの先頭アドレスに移動する(ステップS10)。その後、第2処理部23は、L3ヘッダに対応するバッファ領域の先頭アドレスを第3処理部24に送信する。   Next, the second processing unit 23 receives the head address transmitted by the first processing unit 22, finds a buffer area corresponding to the L2 header, and moves the buffer area to the head address of the buffer (step S10). Thereafter, the second processing unit 23 transmits the start address of the buffer area corresponding to the L3 header to the third processing unit 24.

次に、第3処理部24は、第2処理部23が送信した先頭アドレスを受信し、L3ヘッダとL4ヘッダとに対応するバッファ領域を見つける。   Next, the third processing unit 24 receives the head address transmitted by the second processing unit 23 and finds a buffer area corresponding to the L3 header and the L4 header.

次に、第3処理部24は、見つけたバッファ領域のデータ、即ち、L3ヘッダとL4ヘッダとを第2通信プロトコルに変換し、変換したデータをバッファのL2ヘッダの後ろに存在するバッファ領域に記憶させる(ステップS11)。その後、第2処理部23は、L4ペイロードに対応するバッファ領域の先頭アドレスを第4処理部25に送信する。   Next, the third processing unit 24 converts the data in the found buffer area, that is, the L3 header and the L4 header into the second communication protocol, and converts the converted data into the buffer area existing behind the L2 header of the buffer. Store (step S11). Thereafter, the second processing unit 23 transmits the start address of the buffer area corresponding to the L4 payload to the fourth processing unit 25.

次に、第4処理部25は、第3処理部24が送信した先頭アドレスを受信し、L4ペイロードに対応するバッファ領域を見つける。   Next, the fourth processing unit 25 receives the head address transmitted by the third processing unit 24, and finds a buffer area corresponding to the L4 payload.

次に、第4処理部25は、見つけたバッファ領域のデータがIPアドレスであると判定する場合には、そのIPアドレスを第2通信プロトコルに変換した変換データを作成する。第4処理部25は、見つけたバッファ領域のデータがIPアドレスでないと判定する場合には、そのデータを変換データとする。   Next, if the fourth processing unit 25 determines that the data in the found buffer area is an IP address, the fourth processing unit 25 creates conversion data obtained by converting the IP address into the second communication protocol. If the fourth processing unit 25 determines that the data in the found buffer area is not an IP address, the fourth processing unit 25 uses the data as converted data.

次に、第4処理部25は、変換データをバッファのL4ヘッダの後ろに記憶させる(ステップS12)。   Next, the fourth processing unit 25 stores the converted data behind the L4 header of the buffer (step S12).

本発明における第4の実施形態に係るプロトコル変換支援装置10は、複数のアプリケーションプロトコルの変換処理を実施する前に、データリンク層で変換する処理を行う。本発明における第4の実施形態に係るプロトコル変換支援装置10は、変換後のパケットを記憶するバッファ領域の大きさをあらかじめ計算し、当該大きさのバッファを確保する。複数のアプリケーションプロトコルにおける変換処理は、確保したバッファだけを使用する。さらに、本発明における第4の実施形態に係るプロトコル変換支援装置10によれば、変換対象のパケットを変換しやすいように、上述したような処理を行う。   The protocol conversion support apparatus 10 according to the fourth embodiment of the present invention performs processing for conversion in the data link layer before performing conversion processing for a plurality of application protocols. The protocol conversion support apparatus 10 according to the fourth embodiment of the present invention calculates in advance the size of the buffer area for storing the converted packet, and secures a buffer of that size. Conversion processing in multiple application protocols uses only reserved buffers. Furthermore, according to the protocol conversion support apparatus 10 according to the fourth embodiment of the present invention, the above-described processing is performed so that the conversion target packet can be easily converted.

即ち、本発明における第4の実施形態に係るプロトコル変換支援装置によれば、処理性能が低い情報処理装置においても効率的にプロトコルを変換する支援を行うことができる。   That is, according to the protocol conversion support apparatus according to the fourth embodiment of the present invention, it is possible to efficiently support conversion of a protocol even in an information processing apparatus with low processing performance.

(ハードウェア構成例)
図10は、本発明の各実施形態に係るプロトコル変換支援装置を実現可能な情報処理装置のハードウェア構成を、概略的に示すブロック図である。
(Hardware configuration example)
FIG. 10 is a block diagram schematically showing a hardware configuration of an information processing apparatus capable of realizing the protocol conversion support apparatus according to each embodiment of the present invention.

次に、上述した本発明の各実施形態におけるプロトコル変換支援装置を、1つの情報処理装置(計算処理装置、コンピュータ)を用いて実現するハードウェア資源の構成例について説明する。但し、係るプロトコル変換支援装置は、物理的または機能的に少なくとも2つの情報処理装置を用いて実現してもよい。また、係るプロトコル変換支援装置は、専用の装置として実現してもよい。   Next, a configuration example of hardware resources for realizing the above-described protocol conversion support device in each embodiment of the present invention using one information processing device (calculation processing device, computer) will be described. However, the protocol conversion support device may be realized using at least two information processing devices physically or functionally. Further, the protocol conversion support device may be realized as a dedicated device.

図10は、本発明の第1の実施形態乃至本発明の第4の実施形態に係るプロトコル変換支援装置を実現可能な情報処理装置のハードウェア構成を概略的に示す図である。情報処理装置33は、中央処理演算装置(Central Processing Unit、以降「CPU」と表す)27、メモリ28、ディスク29、不揮発性記録媒体30、出力装置31、および、入力装置32を有する。   FIG. 10 is a diagram schematically showing a hardware configuration of an information processing apparatus capable of realizing the protocol conversion support apparatus according to the first embodiment to the fourth embodiment of the present invention. The information processing device 33 includes a central processing unit (Central Processing Unit, hereinafter referred to as “CPU”) 27, a memory 28, a disk 29, a nonvolatile recording medium 30, an output device 31, and an input device 32.

不揮発性記録媒体30は、例えば、コンパクトディスク(Compact Disc)、デジタルバーサタイルディスク(Digital Versatile Disc)、ブルーレイディスク(Blu−ray Disc)、ユニバーサルシリアルバスメモリ(USBメモリ)などを指しており、電源を供給しなくても係るプログラムを保持し、持ち運びを可能にする。不揮発性記録媒体30は、上述した媒体に限定されない。また、不揮発性記録媒体30の代わりに、通信ネットワークを介して係るプログラムを持ち運びしても良い。   The non-volatile recording medium 30 indicates, for example, a compact disc, a digital versatile disc, a Blu-ray Disc, a universal serial bus memory (USB memory), and the like. Even if it is not supplied, the program is retained and can be carried. The nonvolatile recording medium 30 is not limited to the above-described medium. Further, the program may be carried via a communication network instead of the nonvolatile recording medium 30.

即ち、CPU27は、ディスク29が記憶するソフトウェア・プログラム(コンピュータ・プログラム:以下、単に「プログラム」と称する)を、実行時にメモリ28にコピーし、演算処理を実行する。CPU27は、プログラム実行に必要なデータをメモリ28から読み込む。表示が必要な場合には、CPU27は、出力装置31に出力結果を表示する。外部からプログラムを入力する場合、CPU27は、入力装置32からプログラムを読み取る。CPU27は、メモリ28にあるプロトコル変換プログラム(図2、図5、図7、図9)を解釈し実行を行う。CPU27は、上述した本発明の各実施形態において説明した処理を順次行う。   That is, the CPU 27 copies a software program (computer program: hereinafter simply referred to as “program”) stored in the disk 29 to the memory 28 at the time of execution, and executes arithmetic processing. The CPU 27 reads data necessary for program execution from the memory 28. When the display is necessary, the CPU 27 displays the output result on the output device 31. When inputting a program from the outside, the CPU 27 reads the program from the input device 32. The CPU 27 interprets and executes the protocol conversion program (FIGS. 2, 5, 7, and 9) in the memory 28. The CPU 27 sequentially performs the processes described in the above embodiments of the present invention.

即ち、このような場合、本発明は、係るプロトコル変換プログラムによっても成し得ると捉えることができる。更に、係るプロトコル変換プログラムが記録されたコンピュータ読み取り可能な記録媒体によっても、本発明は成し得ると捕らえることができる。   That is, in such a case, it can be understood that the present invention can also be realized by such a protocol conversion program. Furthermore, it can be understood that the present invention can also be realized by a computer-readable recording medium on which such a protocol conversion program is recorded.

尚、上述した各実施形態の一部又は全部は、以下の付記のようにも記載されうる。しかしながら、上述した各実施形態により例示的に説明した本発明は、以下には限られない。即ち、
(付記1)
第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出する算出部と、
前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとする変換部とを備え、
前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下である
プロトコル変換支援装置。
In addition, a part or all of each embodiment mentioned above can be described also as the following additional remarks. However, the present invention described by way of example with the above-described embodiments is not limited to the following. That is,
(Appendix 1)
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet A calculation unit that calculates a third data amount according to the number of
A conversion unit that converts the header and the IP address according to the second communication protocol in the packet, and converts the result into a converted packet;
The protocol conversion support device, wherein the data amount of the conversion packet is equal to or less than a fourth data amount that is a sum of the data amount of the packet and the third data amount.

(付記2)
前記算出部と前記変換部とは、情報処理装置の通信機能におけるデータリンク層に存在する
付記1に記載のプロトコル変換支援装置。
(Appendix 2)
The protocol conversion support device according to attachment 1, wherein the calculation unit and the conversion unit exist in a data link layer in a communication function of an information processing device.

(付記3)
前記第1通信プロトコルは、インターネットプロトコルバージョン4であり、
前記第2通信プロトコルは、インターネットプロトコルバージョン6である
付記1あるいは付記2に記載のプロトコル変換支援装置。
(Appendix 3)
The first communication protocol is Internet Protocol version 4;
The protocol conversion support apparatus according to Appendix 1 or 2, wherein the second communication protocol is Internet Protocol version 6.

(付記4)
前記第1通信プロトコルは、インターネットプロトコルバージョン6であり、
前記第2通信プロトコルは、インターネットプロトコルバージョン4である
付記1あるいは付記2に記載のプロトコル変換支援装置。
(Appendix 4)
The first communication protocol is Internet Protocol version 6;
3. The protocol conversion support apparatus according to appendix 1 or appendix 2, wherein the second communication protocol is Internet protocol version 4.

(付記5)
前記情報処理装置はメモリを有し、
前記第4データ量を前記メモリにバッファとして確保する確保部を更に備え、
前記変換部は、前記変換パケットを前記確保部に記憶させる
付記1乃至付記4のいずれか1項に記載のプロトコル変換支援装置。
(Appendix 5)
The information processing apparatus has a memory,
A securing unit for securing the fourth data amount as a buffer in the memory;
The protocol conversion support apparatus according to any one of Supplementary Note 1 to Supplementary Note 4, wherein the conversion unit stores the conversion packet in the securing unit.

(付記6)
前記算出部は、
B+R、
(ただし、
R=H+(D―E)×A、即ち、前記第3データ量、
Bは、前記パケットのデータ量、
Hは、前記第1データ量―前記第2データ量であり、算出値が0以下のときは、0とする、
Dは、前記第1通信プロトコルにて記述するときのIPアドレスの長さ、
Eは、前記第2通信プロトコルにて記述するときのIPアドレスの長さ、
D―Eの算出値が0以下のときは、D―Eの値を0とする、
Aは、前記IPアドレスの数である)、
を前記第4データ量とする
付記1乃至付記5のいずれか1項に記載のプロトコル変換支援装置。
(Appendix 6)
The calculation unit includes:
B + R,
(However,
R = H + (DE) × A, that is, the third data amount,
B is the data amount of the packet,
H is the first data amount−the second data amount, and is 0 when the calculated value is 0 or less.
D is the length of the IP address as described in the first communication protocol,
E is the length of the IP address as described in the second communication protocol,
When the calculated value of DE is 0 or less, the value of DE is set to 0.
A is the number of the IP addresses),
The protocol conversion support device according to any one of appendix 1 to appendix 5, in which the fourth data amount is used.

(付記7)
前記パケットには、データリンク層ヘッダと、ネットワーク層ヘッダと、トランスポート層ヘッダと、トランスポート層ペイロードとが順に存在し、
前記変換部は、
前記バッファにおける前記R以降の領域に、前記パケットをコピーする第1処理部と、
前記バッファにおいて前記データリンク層ヘッダに対応する部分を、前記バッファの先頭部分に移動させる第2処理部と、
前記バッファにおいて前記ネットワーク層ヘッダに対応する部分を、前記第2通信プロトコルに変換し、該変換した結果と、前記バッファにおいて前記トランスポート層ヘッダに対応する部分とを、前記第2処理部が書き込んだ前記バッファ以降の領域に書き込む第3処理部と、
前記バッファにおいて前記トランスポート層ペイロードに対応するデータを読み、
前記データが、前記第1通信プロトコルに従って記述されたIPアドレスである場合には、前記データを前記第2通信プロトコルに変換し、変換後のデータを書き込みデータとし、
前記データが、前記第1通信プロトコルに従って記述されたIPアドレスでない場合には、前記データを前記書き込みデータとし、
前記書き込みデータを、前記第3処理部が書き込んだ前記バッファ以降の領域に書き込む第4処理部とを
備える付記6に記載のプロトコル変換支援装置。
(Appendix 7)
The packet includes a data link layer header, a network layer header, a transport layer header, and a transport layer payload in this order.
The converter is
A first processing unit that copies the packet to the area after the R in the buffer;
A second processing unit that moves a portion corresponding to the data link layer header in the buffer to a head portion of the buffer;
The portion corresponding to the network layer header in the buffer is converted into the second communication protocol, and the second processing unit writes the converted result and the portion corresponding to the transport layer header in the buffer. A third processing unit for writing to the area after the buffer;
Read data corresponding to the transport layer payload in the buffer;
When the data is an IP address described according to the first communication protocol, the data is converted into the second communication protocol, the converted data is used as write data,
If the data is not an IP address described according to the first communication protocol, the data is the write data,
The protocol conversion support device according to appendix 6, further comprising a fourth processing unit that writes the write data in an area after the buffer written by the third processing unit.

(付記8)
付記1乃至付記7に記載のプロトコル変換支援装置を有し、
前記プロトコル変換支援装置が出力した結果を参照する
プロトコル変換装置。
(Appendix 8)
Having the protocol conversion support device according to appendix 1 to appendix 7,
A protocol conversion apparatus that refers to a result output by the protocol conversion support apparatus.

(付記9)
付記8に記載の前記プロトコル変換装置を有する情報処理装置。
(Appendix 9)
An information processing apparatus having the protocol conversion apparatus according to appendix 8.

(付記10)
第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出すると共に、前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとし、前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下であるプロトコル変換支援方法。
(Appendix 10)
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet And calculating the third data amount according to the number of the packets, converting the header and the IP address in the packet according to the second communication protocol, and converting the result into a converted packet. A protocol conversion support method that is equal to or smaller than a fourth data amount that is a sum of the data amount of the packet and the third data amount.

(付記11)
第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出する算出機能と、
前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとする変換機能とを、
コンピュータに実現させ、
前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下である
プロトコル変換支援プログラム。
(Appendix 11)
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet A calculation function for calculating the third data amount according to the number of
In the packet, a conversion function that converts the header and the IP address according to the second communication protocol and sets the result as a converted packet;
Computer
The protocol conversion support program, wherein the data amount of the conversion packet is equal to or less than a fourth data amount that is a sum of the data amount of the packet and the third data amount.

本発明の第1の実施形態に係るプロトコル変換支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the protocol conversion assistance apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るプロトコル変換支援装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the protocol conversion assistance apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係るプロトコル変換支援装置を有する情報処理装置における通信機能を概念的に表す図である。It is a figure which represents notionally the communication function in the information processing apparatus which has the protocol conversion assistance apparatus which concerns on the 1st Embodiment of this invention. 本発明の第2の実施形態に係るプロトコル変換支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the protocol conversion assistance apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施形態に係るプロトコル変換支援装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the protocol conversion assistance apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施形態に係るプロトコル変換支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the protocol conversion assistance apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施形態に係るプロトコル変換支援装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the protocol conversion assistance apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第4の実施形態に係るプロトコル変換支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the protocol conversion assistance apparatus which concerns on the 4th Embodiment of this invention. 本発明の第4の実施形態に係るプロトコル変換支援装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the protocol conversion assistance apparatus which concerns on the 4th Embodiment of this invention. 本発明の各実施形態に係るプロトコル変換支援装置を実現可能な計算処理装置のハードウェア構成を、概略的に示すブロック図である。It is a block diagram which shows roughly the hardware constitutions of the calculation processing apparatus which can implement | achieve the protocol conversion assistance apparatus which concerns on each embodiment of this invention. 本発明に関連するプロトコル変換支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the protocol conversion assistance apparatus relevant to this invention.

1 プロトコル変換支援装置
2 算出部
3 変換部
4 パケット
6 トランスポート層
7 ネットワーク層
8 データリンク層
9 物理層
11 情報処理装置
12 プロトコル変換支援装置
13 算出部
14 変換部
15 確保部
16 情報処理装置
17 メモリ
18 プロトコル変換支援装置
19 算出部
20 情報処理装置
21 変換部
22 第1処理部
23 第2処理部
24 第3処理部
25 第4処理部
10 プロトコル変換支援装置
26 パケット
27 CPU
28 メモリ
29 ディスク
30 不揮発性記録媒体
31 出力装置
32 入力装置
33 情報処理装置
34 通信ドライバ処理部
35 IPV4処理部
36 ALG処理部
37 IPV6処理部
38 プロトコル変換装置
DESCRIPTION OF SYMBOLS 1 Protocol conversion assistance apparatus 2 Calculation part 3 Conversion part 4 Packet 6 Transport layer 7 Network layer 8 Data link layer 9 Physical layer 11 Information processing apparatus 12 Protocol conversion assistance apparatus 13 Calculation part 14 Conversion part 15 Securement part 16 Information processing apparatus 17 Memory 18 Protocol conversion support device 19 Calculation unit 20 Information processing device 21 Conversion unit 22 First processing unit 23 Second processing unit 24 Third processing unit 25 Fourth processing unit 10 Protocol conversion support device 26 Packet 27 CPU
28 Memory 29 Disk 30 Non-volatile recording medium 31 Output device 32 Input device 33 Information processing device 34 Communication driver processing unit 35 IPV4 processing unit 36 ALG processing unit 37 IPV6 processing unit 38 Protocol conversion device

Claims (10)

第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出する算出部と、
前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとする変換部とを備え、
前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下である
プロトコル変換支援装置。
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet A calculation unit that calculates a third data amount according to the number of
A conversion unit that converts the header and the IP address according to the second communication protocol in the packet, and converts the result into a converted packet;
The protocol conversion support device, wherein the data amount of the conversion packet is equal to or less than a fourth data amount that is a sum of the data amount of the packet and the third data amount.
前記算出部と前記変換部とは、情報処理装置の通信機能におけるデータリンク層に存在する
請求項1に記載のプロトコル変換支援装置。
The protocol conversion support apparatus according to claim 1, wherein the calculation unit and the conversion unit exist in a data link layer in a communication function of an information processing apparatus.
前記第1通信プロトコルは、インターネットプロトコルバージョン4であり、
前記第2通信プロトコルは、インターネットプロトコルバージョン6である
請求項1あるいは請求項2に記載のプロトコル変換支援装置。
The first communication protocol is Internet Protocol version 4;
The protocol conversion support apparatus according to claim 1, wherein the second communication protocol is Internet protocol version 6.
前記情報処理装置はメモリを有し、
前記第4データ量を前記メモリにバッファとして確保する確保部を更に備え、
前記変換部は、前記変換パケットを前記確保部に記憶させる
請求項1乃至請求項3のいずれか1項に記載のプロトコル変換支援装置。
The information processing apparatus has a memory,
A securing unit for securing the fourth data amount as a buffer in the memory;
The protocol conversion support apparatus according to any one of claims 1 to 3, wherein the conversion unit stores the conversion packet in the securing unit.
前記算出部は、
B+R、
(ただし、
R=H+(D―E)×A、即ち、前記第3データ量、
Bは、前記パケットのデータ量、
Hは、前記第1データ量―前記第2データ量であり、算出値が0以下のときは、0とする、
Dは、前記第1通信プロトコルにて記述するときのIPアドレスの長さ、
Eは、前記第2通信プロトコルにて記述するときのIPアドレスの長さ、
D―Eの算出値が0以下のときは、D―Eの値を0とする、
Aは、前記IPアドレスの数である)、
を前記第4データ量とする
請求項1乃至請求項4のいずれか1項に記載のプロトコル変換支援装置。
The calculation unit includes:
B + R,
(However,
R = H + (DE) × A, that is, the third data amount,
B is the data amount of the packet,
H is the first data amount−the second data amount, and is 0 when the calculated value is 0 or less.
D is the length of the IP address as described in the first communication protocol,
E is the length of the IP address as described in the second communication protocol,
When the calculated value of DE is 0 or less, the value of DE is set to 0.
A is the number of the IP addresses),
The protocol conversion support apparatus according to any one of claims 1 to 4, wherein the fourth data amount is defined as the fourth data amount.
前記パケットには、データリンク層ヘッダと、ネットワーク層ヘッダと、トランスポート層ヘッダと、トランスポート層ペイロードとが順に存在し、
前記変換部は、
前記バッファにおける前記R以降の領域に、前記パケットをコピーする第1処理部と、
前記バッファにおいて前記データリンク層ヘッダに対応する部分を、前記バッファの先頭部分に移動させる第2処理部と、
前記バッファにおいて前記ネットワーク層ヘッダに対応する部分を、前記第2通信プロトコルに変換し、該変換した結果と、前記バッファにおいて前記トランスポート層ヘッダに対応する部分とを、前記第2処理部が書き込んだ前記バッファ以降の領域に書き込む第3処理部と、
前記バッファにおいて前記トランスポート層ペイロードに対応するデータを読み、
前記データが、前記第1通信プロトコルに従って記述されたIPアドレスである場合には、前記データを前記第2通信プロトコルに変換し、変換後のデータを書き込みデータとし、
前記データが、前記第1通信プロトコルに従って記述されたIPアドレスでない場合には、前記データを前記書き込みデータとし、
前記書き込みデータを、前記第3処理部が書き込んだ前記バッファ以降の領域に書き込む第4処理部とを
備える請求項5に記載のプロトコル変換支援装置。
The packet includes a data link layer header, a network layer header, a transport layer header, and a transport layer payload in this order.
The converter is
A first processing unit that copies the packet to the area after the R in the buffer;
A second processing unit that moves a portion corresponding to the data link layer header in the buffer to a head portion of the buffer;
The portion corresponding to the network layer header in the buffer is converted into the second communication protocol, and the second processing unit writes the converted result and the portion corresponding to the transport layer header in the buffer. A third processing unit for writing to the area after the buffer;
Read data corresponding to the transport layer payload in the buffer;
When the data is an IP address described according to the first communication protocol, the data is converted into the second communication protocol, the converted data is used as write data,
If the data is not an IP address described according to the first communication protocol, the data is the write data,
The protocol conversion support apparatus according to claim 5, further comprising: a fourth processing unit that writes the write data in an area after the buffer written by the third processing unit.
請求項1乃至請求項6に記載のプロトコル変換支援装置を有し、
前記プロトコル変換支援装置が出力した結果を参照する
プロトコル変換装置。
The protocol conversion support device according to any one of claims 1 to 6,
A protocol conversion apparatus that refers to a result output by the protocol conversion support apparatus.
請求項7に記載の前記プロトコル変換装置を有する情報処理装置。   An information processing apparatus comprising the protocol conversion apparatus according to claim 7. 第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出すると共に、前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとし、前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下であるプロトコル変換支援方法。   The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet And calculating the third data amount according to the number of the packets, converting the header and the IP address in the packet according to the second communication protocol, and converting the result into a converted packet. A protocol conversion support method that is equal to or smaller than a fourth data amount that is a sum of the data amount of the packet and the third data amount. 第1通信プロトコルに従い記述されたパケットのヘッダが持つ第1データ量と第2通信プロトコルに従い記述された前記パケットのヘッダが持つ第2データ量との差と、前記パケットにおけるペイロードに存在するIPアドレスの数とに応じて第3データ量を算出する算出機能と、
前記パケットにおいて、前記ヘッダと前記IPアドレスとを前記第2通信プロトコルに従い変換し、その結果を変換パケットとする変換機能とを、
コンピュータに実現させ、
前記変換パケットのデータ量は、前記パケットのデータ量と前記第3データ量との和である第4データ量以下である
プロトコル変換支援プログラム。
The difference between the first data amount of the header of the packet described according to the first communication protocol and the second data amount of the header of the packet described according to the second communication protocol, and the IP address existing in the payload of the packet A calculation function for calculating the third data amount according to the number of
In the packet, a conversion function that converts the header and the IP address according to the second communication protocol and sets the result as a converted packet;
Computer
The protocol conversion support program, wherein the data amount of the conversion packet is equal to or less than a fourth data amount that is a sum of the data amount of the packet and the third data amount.
JP2012179499A 2012-08-13 2012-08-13 Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program Active JP5964692B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012179499A JP5964692B2 (en) 2012-08-13 2012-08-13 Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012179499A JP5964692B2 (en) 2012-08-13 2012-08-13 Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program

Publications (2)

Publication Number Publication Date
JP2014039113A true JP2014039113A (en) 2014-02-27
JP5964692B2 JP5964692B2 (en) 2016-08-03

Family

ID=50286932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012179499A Active JP5964692B2 (en) 2012-08-13 2012-08-13 Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program

Country Status (1)

Country Link
JP (1) JP5964692B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0629972A (en) * 1992-07-06 1994-02-04 Nec Corp Buffer memory management system for data link protocol controller
JP2005117503A (en) * 2003-10-09 2005-04-28 Fujitsu Ltd Address conversion program, and conversion apparatus
JP2009207182A (en) * 2009-06-11 2009-09-10 Hitachi Ltd Packet generating method, information processing apparatus with function thereof, and recording medium with packet generation program recorded thereon

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0629972A (en) * 1992-07-06 1994-02-04 Nec Corp Buffer memory management system for data link protocol controller
JP2005117503A (en) * 2003-10-09 2005-04-28 Fujitsu Ltd Address conversion program, and conversion apparatus
JP2009207182A (en) * 2009-06-11 2009-09-10 Hitachi Ltd Packet generating method, information processing apparatus with function thereof, and recording medium with packet generation program recorded thereon

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JPN6016014467; Fiuczynski, Marc E., et al.: 'The Design and Implementation of an IPv6/IPv4 Network Address and Protocol Translator' USENIX Annual Technical Conference , 1998 *
JPN6016014468; Singh, Abhinav, et al.: 'Internet Protocol Version 6 (IPv6)-Internet Protocol Version 4 (IPv4) Network Address, Port & Protoc' Proceedings of the Asia-Pacific Advanced Network 31 , 2011, pp. 12-22 *

Also Published As

Publication number Publication date
JP5964692B2 (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US9584398B2 (en) Methods and apparatus to utilize route parameter sets for exchanging routes in a communication network
JP4974078B2 (en) Data processing device
EP3014852B1 (en) Methods for dynamically binding header field identifiers in a network control protocol
JP4344576B2 (en) Packet communication device
US11337211B2 (en) Operation request generating method, device, and system
CN107770072B (en) Method and equipment for sending and receiving message
EP3179679A1 (en) Method and device for link state information announcement
EP4037267A1 (en) Method, apparatus and system for sending message
US8121151B2 (en) Reception apparatus and method and program
JP4704350B2 (en) A system that provides a tunnel service that allows data communication between different networks
JP2007508761A (en) Method and apparatus for translating data packets from one network protocol to another
JP2008252393A (en) Communication terminal device, distribution device, error notifying method, and error notification program
JP4619943B2 (en) Packet communication method and packet communication system
JP2007259365A (en) Routing processing apparatus and method
JP2006303765A (en) Tcp/ip transmission processing circuit and semiconductor integrated circuit provided with the same
JP5964692B2 (en) Protocol conversion support apparatus, protocol conversion support method, and protocol conversion support program
CN108234325B (en) System based on IP anycast and message forwarding method
JP2000270004A (en) Router
JP5543278B2 (en) Discarded packet monitoring device, discarded packet monitoring method, and discarded packet monitoring program
JP4766344B2 (en) Information processing apparatus and frame relay method
JP4746672B2 (en) Route confirmation device, route confirmation system, route confirmation method and program thereof
JP4480605B2 (en) Network, router apparatus, private address communication method used therefor, and program thereof
JP2012049883A (en) Communication device and packet processing method
JP6976786B2 (en) Communication device and control method of communication device
JP2011239299A (en) Packet transfer device and packet transfer method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160428

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160630

R150 Certificate of patent or registration of utility model

Ref document number: 5964692

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150