JP2010263303A - System, method and program for address conversion - Google Patents

System, method and program for address conversion Download PDF

Info

Publication number
JP2010263303A
JP2010263303A JP2009110859A JP2009110859A JP2010263303A JP 2010263303 A JP2010263303 A JP 2010263303A JP 2009110859 A JP2009110859 A JP 2009110859A JP 2009110859 A JP2009110859 A JP 2009110859A JP 2010263303 A JP2010263303 A JP 2010263303A
Authority
JP
Japan
Prior art keywords
communication
address
line
communication data
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
JP2009110859A
Other languages
Japanese (ja)
Other versions
JP5391813B2 (en
Inventor
Hirobumi Yamagiwa
博文 山際
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2009110859A priority Critical patent/JP5391813B2/en
Publication of JP2010263303A publication Critical patent/JP2010263303A/en
Application granted granted Critical
Publication of JP5391813B2 publication Critical patent/JP5391813B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To designate a communication line to which communication data is to be transmitted and transmit the data. <P>SOLUTION: An address conversion system includes a communication relay means 31 connected to an external device via a plurality of different communication lines and a communication card C33 communicating with the external device. The communication relay means 31 has: a function of writing information showing a communication line via which communication data from the external device has been transmitted to the communication relay means 31, into the communication data; and a function of determining a communication line via which communication data from the communication card C33 should be transmitted to the external device, on the basis of route line identification information included in the communication data. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、インターネットなどのネットワーク上で送受信される通信データの宛先変換を行うアドレス変換システムに関する。   The present invention relates to an address conversion system that performs destination conversion of communication data transmitted and received on a network such as the Internet.

物理インタフェースとしてのイーサネット(Ethernet:登録商標)を介して接続された通信装置間におけるデータ通信(イーサネット通信)では、当該データ通信の中継を行う通信中継装置が、送受信される通信データに含まれる宛先アドレスの変換を行うことにより、データ通信を実現する。   In data communication (Ethernet communication) between communication devices connected via Ethernet (Ethernet: registered trademark) as a physical interface, a communication relay device that relays the data communication includes a destination included in communication data to be transmitted and received Data communication is realized by performing address conversion.

ここで、例えば、上位装置A、ネットワーク終端部、レイヤ2スイッチ、およびカードCが、図6に示すように、接続され、この上位装置AおよびカードCが、ネットワーク終端部およびレイヤ2スイッチを介してイーサネット通信を行うものとする。
このとき、ネットワーク終端部は、上位装置AおよびカードC間のイーサネット通信のデータ終端を行うと共に、上位装置Aから回線#1を介してカードCとイーサフレームの通信が行われる場合に、上位装置Aとの通信(外部通信)用のイーサネットアドレスと、レイヤ2スイッチを介してネットワーク終端部とカードCとの間で行われる内部通信用の
イーサネットアドレスとのアドレス変換を行うものとする。
Here, for example, the host device A, the network termination unit, the layer 2 switch, and the card C are connected as shown in FIG. 6, and the host device A and the card C are connected via the network termination unit and the layer 2 switch. Ethernet communication shall be performed.
At this time, the network terminating unit performs data termination of Ethernet communication between the host device A and the card C, and when the host device A performs communication of the Ethernet frame with the card C via the line # 1, It is assumed that address conversion is performed between an Ethernet address for communication with A (external communication) and an Ethernet address for internal communication performed between the network termination unit and the card C via a layer 2 switch.

これにより、インターネットプロトコル(IP:Internet Protocol)によって、IPデータグラムと呼ばれるデータパケットが、送信元ホスト(上位装置A)のネットワークインタフェースから送信先ホスト(カードC)のネットワークインタフェースまで配信される。   As a result, data packets called IP datagrams are distributed from the network interface of the transmission source host (higher level device A) to the network interface of the transmission destination host (card C) by the Internet Protocol (IP).

以下、上位装置AおよびカードCにおけるイーサネット通信(データ通信)の動作について、図6に基づき説明する。   The operation of Ethernet communication (data communication) in the host device A and card C will be described below with reference to FIG.

まず、カードCに対してイーサフレームを送信する上位装置Aに回線#1を介して接続され終端処理を行うネットワーク終端部と、レイヤ2スイッチと、カードCを備えた構成における、上位装置Aのイーサネットアドレス(EMACアドレス)を「#5」、上位装置Aに回線#1を介して接続された装置Bの回線#1側のイーサネットアドレスを「#7」、ネットワーク終端部の装置B内のネットワークに対するイーサネットアドレスを「#20」、カードCのイーサネットアドレスを「#30」とする。   First, the host device A in a configuration including a network termination unit that is connected to the host device A that transmits an Ethernet frame to the card C via the line # 1 and performs termination processing, a layer 2 switch, and the card C. The Ethernet address (EMAC address) is “# 5”, the Ethernet address on the line # 1 side of the apparatus B connected to the upper apparatus A via the line # 1 is “# 7”, and the network in the apparatus B at the network termination unit The Ethernet address for the card C is “# 20”, and the Ethernet address of the card C is “# 30”.

また、上位装置A、ネットワーク終端部、カードCはいずれも、上記イーサネットアドレス(EMACアドレス)と同じIPアドレスを有しているものとする。尚、IPアドレスは、イーサネットアドレス同様にIPのレイヤで各終端部を識別するために用意されているアドレスである。   Further, it is assumed that the host device A, the network termination unit, and the card C all have the same IP address as the Ethernet address (EMAC address). The IP address is an address prepared for identifying each terminal unit in the IP layer, like the Ethernet address.

ここでまず、上位装置Aを送信元、カードCを送信先としたイーサネット通信におけるイーサフレームのヘッダ情報は、図6のステータス1に示すように、送信元である上位装置Aのイーサネットアドレス及びIPアドレスは「#5」、送信先である装置Bの回線#1のアドレスは「#7」となっている。   Here, first, the header information of the Ethernet frame in the Ethernet communication with the higher-level device A as the transmission source and the card C as the transmission destination is the Ethernet address and IP of the higher-level device A as the transmission source, as shown in status 1 of FIG. The address is “# 5”, and the address of the line # 1 of the transmission destination apparatus B is “# 7”.

このイーサフレームは、ネットワーク終端部に送り込まれ(入力され)、ネットワーク終端部は内部に予め設定されたアドレス変換部において送信先イーサネットアドレス「#7」より自身(ネットワーク終端部)宛のイーサフレームであることを認識する。   This Ethernet frame is sent (inputted) to the network termination unit, and the network termination unit is an Ether frame addressed to itself (network termination unit) from the destination Ethernet address “# 7” in the address conversion unit set in advance inside. Recognize that there is.

ここで、アドレス変換部は、送信先IPアドレス「#7」を使い、予め設定された変換テーブルに基づき、このイーサフレームがカードC宛であることを認識し、アドレス変換部は、カードCのイーサネットアドレス及びIPアドレスは「#30」であるため送信先アドレスを「#30」に変換する(ステータス2:図6)。
また、このイーサフレームについては、送信元が上位装置Aからネットワーク終端部に変更されるため、アドレス変換部は、送信元イーサネットアドレスを上位装置A「#5」からネットワーク終端部「#20」に変換する(ステータス2:図6)。
Here, the address conversion unit uses the destination IP address “# 7” and recognizes that this Ethernet frame is addressed to the card C based on a preset conversion table. Since the Ethernet address and the IP address are “# 30”, the transmission destination address is converted to “# 30” (status 2: FIG. 6).
Further, for this Ether frame, since the transmission source is changed from the higher-level device A to the network termination unit, the address conversion unit changes the transmission source Ethernet address from the higher-level device A “# 5” to the network termination unit “# 20”. Convert (status 2: FIG. 6).

これにより、送信元および送信先のアドレスが変換されたイーサフレームはレイヤ2スイッチを介してカードCに送信される。
次いで、カードCは、当該カードCを送信元、上位装置Aを送信先としたイーサネット通信を行う。このときカードCは、図6のステータス3に示すように、イーサネットフレームのヘッダ情報として、送信元イーサネットアドレスにカードCのアドレスを示す「#30」と、送信先イーサネットアドレスには、レイヤ2スイッチ側のネットワーク終端部を示す「#20」をアサインする。
As a result, the Ether frame in which the addresses of the transmission source and the transmission destination are converted is transmitted to the card C via the layer 2 switch.
Next, the card C performs Ethernet communication using the card C as a transmission source and the host device A as a transmission destination. At this time, as shown in status 3 in FIG. 6, the card C has “# 30” indicating the address of the card C as the source Ethernet address as the header information of the Ethernet frame, and a layer 2 switch as the destination Ethernet address. "# 20" indicating the network termination part on the side is assigned.

ネットワーク終端部31は、レイヤ2スイッチを介してカードCからのイーサフレームを受信すると共に、予め設定されたアドレス逆変換部が、
送信元イーサネットアドレス及びIPアドレスから、当該イーサフレームがカードCからであることを検出し、予め設定されたアドレス逆変換テーブルに基づき送信先イーサネットアドレス、送信元イーサネットアドレス及びIPアドレスを決定し逆変換する処理を行う。
The network termination unit 31 receives an Ethernet frame from the card C via the layer 2 switch, and a preset address reverse conversion unit
From the source Ethernet address and the IP address, it is detected that the Ether frame is from the card C, and the destination Ethernet address, the source Ethernet address and the IP address are determined based on the preset address reverse conversion table and reversely converted. Perform the process.

このとき、ネットワーク終端部は、図6のステータス4に示すように、イーサネットフレームのヘッダ情報として、送信元イーサネットアドレスに上位装置Aのアドレスを示す「#5」と、送信先イーサネットアドレスにはネットネットワーク終端部を示す「#7」をアサインする。
これにより、送信元および送信先のアドレスが逆変換されたイーサフレームは回線#1を介して上位装置Aに送信される。
At this time, as shown in status 4 in FIG. 6, the network termination unit uses “# 5” indicating the address of the higher-level device A as the transmission source Ethernet address and the network address as the transmission destination Ethernet address as the header information of the Ethernet frame. Assign “# 7” indicating the network termination.
As a result, the Ethernet frame in which the addresses of the transmission source and the transmission destination are reversely converted is transmitted to the upper apparatus A via the line # 1.

次に、図7に示すように、上述の上位装置Aとネットワーク終端部とが異なる通信回線(回線#1、#2)により接続された構成の通信動作について考える。
このとき、ネットワーク終端部は、回線#1、#2それぞれに対応して設定された、独立したネットワークインタフェースを備えているものとする。
また、ネットワーク終端部における回線#2側のネットワークには、図7に示すように、IPアドレス、EMACアドレスとして#9が予め設定されている。
Next, as shown in FIG. 7, consider a communication operation in which the above-described host apparatus A and the network termination unit are connected by different communication lines (lines # 1, # 2).
At this time, it is assumed that the network termination unit includes independent network interfaces set corresponding to the lines # 1 and # 2, respectively.
Further, as shown in FIG. 7, # 9 is set in advance as an IP address and an EMAC address in the network on the line # 2 side in the network termination unit.

ここで、上位装置Aから回線#1または回線#2を経由して、カードCとイーサフレームによる通信を行う場合、回線#1を介して行われるイーサネット通信は、上述、および図6に示したように通信動作を行う。   Here, when communication is performed from the upper apparatus A via the line # 1 or the line # 2 with the card C using the Ethernet frame, the Ethernet communication performed via the line # 1 is described above and illustrated in FIG. The communication operation is performed as follows.

また、回線#2を介して上位装置AからカードCに対して行われるイーサネット通信では、図7のステータス10、ステータス11に示すように、上記回線#1を介して行われるイーサネット通信と同様の通信動作が行われる。   Further, the Ethernet communication performed from the upper apparatus A to the card C via the line # 2 is the same as the Ethernet communication performed via the line # 1 as shown in the status 10 and the status 11 in FIG. A communication operation is performed.

以下、カードCを送信元、上位装置Aを送信先として行われるイーサネット通信の動作について説明する。
ここでは、まず、カードCが、イーサネットフレームのヘッダ情報として、図7のステータス12に示すように、送信元アドレスに自カードアドレス「#30」を、送信先イーサネットアドレスにはネットネットワーク終端部を示す「#20」をアサインすると共に、このイーサネットフレームをレイヤ2スイッチを介してネットワーク終端部に送信する。
The operation of Ethernet communication performed using the card C as a transmission source and the higher-level device A as a transmission destination will be described below.
Here, first, as shown in the status 12 of FIG. 7, the card C has its own card address “# 30” as the transmission source address and the net network termination unit as the transmission destination Ethernet address, as the header information of the Ethernet frame. “# 20” is assigned, and the Ethernet frame is transmitted to the network termination unit via the layer 2 switch.

このイーサフレームが、レイヤ2スイッチを介してネットワーク終端部に送り込まれたとき、ネットワーク終端部(アドレス逆変換部)は、イーサフレームがカードCから送り込まれたものであることを検出し、予め設定されたアドレス逆変換テーブルに基づき送信先イーサネットアドレス、送信元イーサネットアドレス及びIPアドレスを決定する。   When this ether frame is sent to the network termination unit via the layer 2 switch, the network termination unit (address reverse conversion unit) detects that the ether frame is sent from the card C and sets it in advance. A destination Ethernet address, a source Ethernet address, and an IP address are determined based on the address reverse conversion table.

このとき、ネットワーク終端部は、図7のステータス13に示すように、イーサネットフレームのヘッダ情報として、送信元イーサネットアドレス(EMACアドレス)に上位装置Aのアドレスを示す「#5」をアサインすると共に、送信先イーサネットアドレスとして、回線#1側のネットワーク終端部を示す「#7」をアサインする。   At this time, the network termination unit assigns “# 5” indicating the address of the upper apparatus A to the source Ethernet address (EMAC address) as the header information of the Ethernet frame, as shown in the status 13 of FIG. As the destination Ethernet address, “# 7” indicating the network termination part on the line # 1 side is assigned.

このように、ネットワーク終端部は、アドレス変換時に、イーサネットフレームのヘッダ情報について、回線#2(アドレス#9)を送信先としてアサインすることができず、このため、回線#2に対してイーサフレームを送信することができなくなってしまう。   As described above, the network termination unit cannot assign the line # 2 (address # 9) as the transmission destination to the header information of the Ethernet frame at the time of address conversion. Can no longer be sent.

これに対する関連技術として、イーサネットフレームのヘッダ情報を読み取り、その送信先物理回線への接続を行う手法が開示されている(特許文献1)。
更に、これに対する関連技術として、イーサネット回線で受信したイーサネットフレームに対して、送信先の宛先をアドレス変換して付加する手法が開示されている(特許文献2)。
As a technique related to this, a method of reading header information of an Ethernet frame and connecting to the transmission destination physical line is disclosed (Patent Document 1).
Furthermore, as a related technique for this, a technique is disclosed in which a destination of a transmission destination is converted to an address and added to an Ethernet frame received through an Ethernet line (Patent Document 2).

特願平7−162456公報Japanese Patent Application No. 7-162456 特開2003−143236公報JP 2003-143236 A

しかしながら、上記関連技術では、上述のように、逆変換後のイーサフレームにおけるイーサネットアドレス及びIPアドレスが、回線#2(IPアドレス#9、EMACアドレス#9)を送信先として指定することができず、更には、回線#1と同じ送信先アドレスがアサインされてしまうことにより、回線#2に対してイーサフレームを送信することができないという不都合が生じる。   However, in the related technology, as described above, the Ethernet address and the IP address in the reversely converted Ether frame cannot specify the line # 2 (IP address # 9, EMAC address # 9) as the transmission destination. In addition, since the same transmission destination address as that of the line # 1 is assigned, there is a disadvantage that the Ethernet frame cannot be transmitted to the line # 2.

また、上記特許文献1および2の関連技術においても、並列接続された異なる複数の通信回線に対して並列接続された通信装置が通信データの送出を行う場合に、この通信回線の中から通信データの送出が行われる特定の通信回線を選択指定することができないという不都合がある。   In the related arts of Patent Documents 1 and 2 described above, when communication devices connected in parallel to a plurality of different communication lines connected in parallel transmit communication data, communication data is selected from the communication lines. There is an inconvenience that it is not possible to select and specify a specific communication line on which is transmitted.

[発明の目的]
本発明は、上記関連技術の有する不都合を改善し、通信データの送信時に通信データが送出される通信回線を有効に選択指定し得るアドレス変換システム、アドレス変換方法、およびアドレス変換プログラムを提供することを、その目的とする。
[Object of invention]
The present invention provides an address conversion system, an address conversion method, and an address conversion program capable of effectively selecting and specifying a communication line through which communication data is transmitted when communication data is transmitted, by improving the disadvantages of the related art. Is the purpose.

上記目的を達成するために、本発明に係るアドレス変換システムは、通信データの送受信を行う外部装置に異なる複数の通信回線を介して接続された通信中継手段と、当該通信中継手段を介して前記外部装置との間で相互通信を行う相互通信装置とを備えたアドレス変換システムであって、前記通信中継手段は、前記外部装置から送り込まれた通信データにおける通信アドレス変換を行うと共に、当該通信データに対して当該通信データが通信中継手段に送り込まれる際に経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込む回線情報書込機能と、前記相互通信装置から送り込まれた通信データを前記外部装置宛に送出する通信回線を前記通信データに含まれる経由回線識別情報に基づき決定する送出回線決定機能とを有し、前記相互通信装置が、前記通信中継手段からの通信データに対して通信データの返信を行う場合に、前記通信中系手段からの通信データに含まれた前記経由回線識別情報を付与した通信データを生成する経由回線指定機能を備えた構成をとっている。   In order to achieve the above object, an address translation system according to the present invention includes a communication relay unit connected to an external device that transmits and receives communication data via a plurality of different communication lines, and the communication relay unit through the communication relay unit. An address conversion system including an intercommunication device that performs mutual communication with an external device, wherein the communication relay unit performs communication address conversion in communication data sent from the external device, and the communication data The communication information sent from the intercommunication device and the line information writing function for writing in the communication data the route identification information indicating the communication line through which the communication data is sent to the communication relay means A transmission line determination function for determining a communication line to be transmitted to the external device based on the transit line identification information included in the communication data; When the mutual communication device replies communication data with respect to the communication data from the communication relay means, the communication to which the transit line identification information included in the communication data from the communication middle means is added It has a configuration with a transit line specification function that generates data.

又、本発明にかかるアドレス変換方法は、通信データの送受信を行う外部装置に異なる複数の通信回線を介して接続された通信中継手段と、当該通信中継手段を介して前記外部装置との間で相互通信を行う相互通信装置とを備えたアドレス変換システムにあって、前記相互通信のアドレス変換方法であって、前記通信中継手段は、前記外部装置から送り込まれた通信データにおける通信アドレス変換を行うと共に、前記通信データが前記通信中継手段に送り込まれたときに経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込むと共に、当該通信データを前記相互通信装置に送信し、前記通信データに対して返信する場合に、前記通信データに含まれる前記経由回線識別情報を付与した通信データを生成し、当該通信データを前記通信中継装置に送信し、前記相互通信装置からの通信データを前記外部装置宛に送出する通信回線を前記通信データに含まれる前記回線識別情報に基づき決定し、前記送信通信データを送信することを特徴としている。   The address conversion method according to the present invention includes a communication relay unit connected to an external device that transmits and receives communication data via a plurality of different communication lines, and the external device via the communication relay unit. An address conversion system including an intercommunication device that performs mutual communication, the intercommunication address conversion method, wherein the communication relay unit performs communication address conversion in communication data sent from the external device In addition, the communication line identification information indicating the communication line through which the communication data is sent to the communication relay means is written to the communication data, and the communication data is transmitted to the mutual communication device. When the communication data is replied to, the communication data with the transit line identification information included in the communication data is generated, and the communication data Is transmitted to the communication relay device, a communication line for sending communication data from the mutual communication device to the external device is determined based on the line identification information included in the communication data, and the transmission communication data is transmitted. It is characterized by that.

更に、本発明にかかるアドレス変換プログラムは、通信データの送受信を行う外部装置に異なる複数の通信回線を介して接続された通信中継手段と、当該通信中継手段を介して前記外部装置との間で相互通信を行う相互通信装置とを備えたアドレス変換システムにあって、前記通信データの送受信を行うアドレス変換プログラムであって、前記外部装置から送り込まれた通信データにおける通信アドレス変換を行うと共に、当該通信データに対して当該通信データが通信中継手段に送り込まれる際に経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込む回線情報書込機能、前記相互通信装置から送り込まれた通信データを前記外部装置宛に送出する通信回線を前記通信データ内に予め設定された回線識別情報に基づき決定する送出回線決定機能、を前記通信中継手段に予め設定されたコンピュータに実行させることを特徴とする。   Furthermore, an address conversion program according to the present invention is provided between a communication relay unit connected via a plurality of different communication lines to an external device that transmits and receives communication data, and the external device via the communication relay unit. An address conversion system including an intercommunication device that performs mutual communication, an address conversion program that transmits and receives the communication data, performs communication address conversion in communication data sent from the external device, and A line information writing function for writing in the communication data the line identification information indicating the communication line through which the communication data is sent to the communication relay means with respect to the communication data, the communication data sent from the mutual communication device Is determined based on the line identification information set in advance in the communication data. Delivery line determination function of, the characterized in that to execute a preset computer to the communication relay means.

本発明は、以上のように構成され機能するので、前記外部装置から送り込まれた通信データに対して当該通信データが通信中継手段に送り込まれる際に経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込む回線情報書込機能と、相互通信装置から送り込まれた通信データの送出先としての通信回線を前記通信データに含まれる経由回線識別情報に基づき決定する送出回線決定機能とを備えたことにより、通信データの送信時に通信データが送出される通信回線を指定することができ、有効に通信制御を行うことができる。   Since the present invention is configured and functions as described above, via-line identification information indicating the communication line through which the communication data is sent to the communication relay unit with respect to the communication data sent from the external device is provided. A line information writing function for writing to the communication data, and a transmission line determination function for determining a communication line as a transmission destination of the communication data sent from the mutual communication device based on the transit line identification information included in the communication data. As a result, it is possible to designate a communication line through which communication data is transmitted when communication data is transmitted, and to perform effective communication control.

本発明によるアドレス変換システムの一実施形態を示す概略構成図である。It is a schematic block diagram which shows one Embodiment of the address translation system by this invention. 図1に開示したアドレス変換システムにおけるネットワーク終端部の内部構成の一例を示す概略ブロック図である。It is a schematic block diagram which shows an example of an internal structure of the network termination | terminus part in the address translation system disclosed in FIG. 図1に開示したアドレス変換システムにおけるヘッダ変換処理の内容を示す説明図である。It is explanatory drawing which shows the content of the header conversion process in the address conversion system disclosed in FIG. 図1に開示したアドレス変換システムにおけるヘッダ変換処理の内容を示す説明図である。It is explanatory drawing which shows the content of the header conversion process in the address conversion system disclosed in FIG. 図1に開示したアドレス変換システムにおけるイーサネットフレームの一構成例を示す説明図である。It is explanatory drawing which shows the example of 1 structure of the Ethernet frame in the address translation system disclosed in FIG. 本発明によるアドレス変換システムの関連技術におけるヘッダ変換処理を示す説明図である。It is explanatory drawing which shows the header conversion process in the related technology of the address translation system by this invention. 本発明によるアドレス変換システムの関連技術におけるヘッダ変換処理を示す説明図である。It is explanatory drawing which shows the header conversion process in the related technology of the address translation system by this invention.

[実施形態]
図1に、本発明のアドレス変換システムの構成図を示す。
本実施形態のアドレス変換システムは、図1に示すように、イーサネット通信を行う上位装置A1と、この上位装置1に通信回線を介して接続されたネットワーク2と、上位装置A1との間でイーサネット通信を行うカードC33、およびD34を内部に有する装置B3が物理インタフェースとしてのイーサネット(Ethernet:登録商標)回線である回線#1および#2を介してネットワーク2に接続された構成となっている。
[Embodiment]
FIG. 1 shows a configuration diagram of an address translation system of the present invention.
As shown in FIG. 1, the address translation system according to the present embodiment includes an Ethernet between a host device A1 that performs Ethernet communication, a network 2 that is connected to the host device 1 via a communication line, and a host device A1. A device B3 having cards C33 and D34 for communicating therein is connected to the network 2 via lines # 1 and # 2 which are Ethernet (registered trademark) lines as physical interfaces.

装置B3は、上位装置A1と上記イーサネットを介して行われるイーサネット通信により送り込まれたデータ(以下「イーサネットフレーム」という)のデータ終端を行う
ネットワーク終端部31と、装置B内のネットワークにおけるイーサネットフレームのルーティング制御を行うレイヤ2スイッチを備えている。
The device B3 includes a network termination unit 31 that terminates data (hereinafter referred to as “Ethernet frame”) sent by the Ethernet communication performed with the host device A1 and the Ethernet, and an Ethernet frame in the network in the device B. A layer 2 switch that performs routing control is provided.

装置B3は、当該装置B3内にIPデータグラムと呼ばれるインターネットプロトコル(IP:Internet Protocol)のデータパケットの送信を行うカードC33及びカードD34と、を備えている。   The device B3 includes a card C33 and a card D34 that transmit an Internet Protocol (IP) data packet called an IP datagram in the device B3.

また、本実施形態では、装置B3内部におけるデータ通信もイーサネット通信により行われるものとする。これにより、上位装置Aおよび装置B間の通信(外部ネットワーク)との接続性を保たれる。
尚、イーサネット通信においては、各々の(接続された装置の)ネットワークインタフェースに固有の識別子が予め割り当てられ、信号(通信データ)の宛先として、この識別子を用いて指定する。
このため、各ネットワークインタフェースには「イーサネットアドレス」という、48ビットの識別子が用いられ、各イーサネットアドレスは、各ネットワークインタフェースのハードウェアに固定されているものとする。
In the present embodiment, data communication inside the device B3 is also performed by Ethernet communication. Thereby, connectivity with communication (external network) between the upper apparatus A and the apparatus B is maintained.
In Ethernet communication, a unique identifier is assigned in advance to each network interface (of a connected device), and is designated using this identifier as a destination of a signal (communication data).
For this reason, a 48-bit identifier called “Ethernet address” is used for each network interface, and each Ethernet address is fixed to the hardware of each network interface.

イーサネットフレームのデータ構成は、図5に示すように、プリアンブル(64ビット)と、送信先のイーサネットアドレスを示す送信先アドレス(48ビット)と、送信元自身のイーサネットアドレスを示す送信元アドレス(48ビット)と、上位プロトコルの識別番号を格納する領域であるフレームタイプ(16ビット)と、イーサフレームのデータ内容が格納されるデータ(1500バイト)と、CRC「Cyclic Redundancy Check」(32ビット)が含まれる。   As shown in FIG. 5, the data structure of the Ethernet frame includes a preamble (64 bits), a destination address (48 bits) indicating the destination Ethernet address, and a source address (48) indicating the Ethernet address of the source itself. Bit), a frame type (16 bits) that is an area for storing the identification number of the upper protocol, data (1500 bytes) in which the data content of the Ethernet frame is stored, and CRC “Cyclic Redundancy Check” (32 bits) included.

送信先(ここでは、ネットワーク終端部31)のネットワークインタフェースは、インターネットフレームのデータフィールド(データ領域)に格納されたデータが、どの様なプロトコルであるかを認識できるものとする。
これにより、例えば、送り込まれたインターネットフレームのフレームタイプが「0800(Hex)」である場合、ネットワークインタフェースは上位プロトコルがIPであることが識別することできる。(Hex)は16進法を示す。
It is assumed that the network interface of the transmission destination (here, the network termination unit 31) can recognize what protocol the data stored in the data field (data area) of the Internet frame is.
Thereby, for example, when the frame type of the sent Internet frame is “0800 (Hex)”, the network interface can identify that the upper layer protocol is IP. (Hex) indicates hexadecimal notation.

装置B3は、図1に示すように、ネットワーク2に対して2つの異なる回線(イーサネット回線:#1および#2)を介して接続されている。   As shown in FIG. 1, the device B3 is connected to the network 2 via two different lines (Ethernet lines: # 1 and # 2).

また、装置B3は、その内部にネットワークインタフェースとしてのネットワーク終端部31を備え、このネットワーク終端部31が上位装置A1とのイーサネット通信におけるイーサネットフレームの終端処理を行っている(イーサネット終端処理機能)。   In addition, the device B3 includes a network termination unit 31 as a network interface therein, and the network termination unit 31 performs an Ethernet frame termination process in Ethernet communication with the host device A1 (Ethernet termination processing function).

また、ネットワーク終端部31は、上記異なる各イーサネット回線(#1および#2)それぞれに対応したネットワークインタフェースを備え、この各ネットワークインタフェースには、固有のイーサネットアドレスが割当てられているものとする。
これにより、装置B3は、回線#1と回線#2それぞれに対して独立して設置された異なるネットワークインタフェースを介して上位装置A1に接続されていることになる。
The network termination unit 31 includes network interfaces corresponding to the different Ethernet lines (# 1 and # 2), and a unique Ethernet address is assigned to each network interface.
As a result, the device B3 is connected to the host device A1 via different network interfaces that are installed independently for the lines # 1 and # 2.

また、ネットワーク終端部31は、装置B3の内部に設定されたネットワーク(内部ネットワーク)30にもイーサネット回線を介して接続されている。
更に、ネットワーク終端部31は、ネットワーク2(外部ネットワーク)および内部ネットワーク30間におけるイーサネットアドレスの変換を行うネットワークアドレス変換機能を備えている。
The network termination unit 31 is also connected to a network (internal network) 30 set inside the device B3 via an Ethernet line.
Further, the network termination unit 31 has a network address conversion function for converting an Ethernet address between the network 2 (external network) and the internal network 30.

装置B3は、内部ネットワーク30におけるイーサネットフレームのルーティング制御を行うレイヤ2スイッチ32を備え、このレイヤ2スイッチ32を介してデータ(イーサフレーム)の送受信を行う。
又、装置B3は、上位プロトコルであるIPの終端処理を行うカードC33、およびカードD34を備えている。
更に、装置B3は、上記レイヤ2スイッチ32、カードC33、およびカードD34により、上記内部ネットワーク30で内部ネットワーク30を形成している。
The device B3 includes a layer 2 switch 32 that performs Ethernet frame routing control in the internal network 30, and transmits and receives data (ether frame) via the layer 2 switch 32.
In addition, the device B3 includes a card C33 and a card D34 that perform an IP termination process that is a higher-level protocol.
Further, the device B3 forms the internal network 30 with the internal network 30 by the layer 2 switch 32, the card C33, and the card D34.

ネットワーク終端部31は、図2に示すように、上位装置A1から送信され回線#1を介して送り込まれたイーサフレームを格納する受信バッファ311と、受信バッファ311に格納されたイーサフレームのイーサネットアドレスを装置B3の内部ネットワーク30用のイーサネットアドレス(内部アドレス)に変換するアドレス変換部313を有する。
また、ネットワーク終端部31は、イーサフレームが回線#1または#2の何れから入力されたかを特定し、回線を示す情報をフレームタイプに挿入するフレームタイプ変換部315と、フレームタイプ変換部315または316から渡されたイーサフレームをレイヤ2スイッチ32に送出する送信制御部317を備えている。
As shown in FIG. 2, the network termination unit 31 includes a reception buffer 311 that stores an Ethernet frame transmitted from the host apparatus A1 and sent via the line # 1, and an Ethernet address of the Ethernet frame stored in the reception buffer 311. Is converted to an Ethernet address (internal address) for the internal network 30 of the device B3.
In addition, the network termination unit 31 specifies whether the Ethernet frame is input from the line # 1 or # 2, and inserts information indicating the line into the frame type, the frame type conversion unit 315, A transmission control unit 317 is provided to send the Ethernet frame passed from 316 to the layer 2 switch 32.

更に、ネットワーク終端部31は、上位装置A1から送信され回線#2を介して送り込まれたイーサフレームを格納する受信バッファ312と、受信バッファ312に格納されたイーサフレームのイーサネットアドレスを装置B3の内部ネットワーク30用のイーサネットアドレス(内部アドレス)に変換するアドレス変換部314を有する。
また、ネットワーク終端部31は、アドレス変換部314から渡されたイーサフレームが回線#1または#2の何れから入力されたかを特定し、その回線を示す情報をフレームタイプに挿入するフレームタイプ変換部316を有する。
Furthermore, the network termination unit 31 stores the Ethernet frame transmitted from the host apparatus A1 and sent via the line # 2, and the Ethernet address of the Ethernet frame stored in the reception buffer 312 is stored in the apparatus B3. It has an address conversion unit 314 that converts it into an Ethernet address (internal address) for the network 30.
Further, the network termination unit 31 specifies whether the Ethernet frame passed from the address conversion unit 314 is input from the line # 1 or # 2, and inserts information indicating the line into the frame type. 316.

更に、ネットワーク終端部31は、レイヤ2スイッチ32から送り込まれたイーサフレームを受信する受信制御部318と、受信制御部318からのイーサフレームが回線#1または#2の何れから送出されるイーサフレームであるかを特定し、特定された回線用のアドレス逆変換部に渡すフレームタイプ逆変換部320を有する。
また、ネットワーク終端部31は、フレームタイプ逆変換部320からのイーサフレームのイーサネットアドレスを送信先(例えば、上位装置A1)に応じて変換する回線#1用のアドレス逆変換部321および回線#2用のアドレス逆変換部322と、アドレス逆変換部321から渡され回線#1に対して送出されるイーサフレームを取得し一時的に格納する送信バッファ323と、アドレス逆変換部322から渡され回線#2に対して送出されるイーサフレームを取得し一時的に格納する送信バッファ324を備えた構成となっている。
Further, the network termination unit 31 receives the Ethernet frame sent from the layer 2 switch 32, and the Ethernet frame from which the Ethernet frame from the reception control unit 318 is sent out from either the line # 1 or # 2. And a frame type reverse conversion unit 320 that passes to the address reverse conversion unit for the specified line.
Further, the network termination unit 31 converts the Ethernet address of the Ethernet frame from the frame type reverse conversion unit 320 according to the transmission destination (for example, the host device A1), and the line reverse address conversion unit 321 for the line # 1 and the line # 2. Address reverse conversion unit 322, a transmission buffer 323 that acquires and temporarily stores an Ether frame delivered from address reverse conversion unit 321 and sent to line # 1, and a line passed from address reverse conversion unit 322 The configuration includes a transmission buffer 324 that acquires and temporarily stores the Ethernet frame transmitted to # 2.

尚、ネットワーク終端部31をハードウェアで構成せず、ソフト処理で対応することも可能である。回線番号をイーサフレームのフィールドタイプにアサインせず、IP、アドレス、ポート番号、データ領域などに含め、より上位プロトコルで対応することも可能である。   The network termination unit 31 can be handled by software processing instead of hardware. The line number is not assigned to the Ethernet frame field type, but can be included in the IP, address, port number, data area, etc., and can be handled by a higher-level protocol.

[実施形態の動作説明]
次に、上記実施形態の動作について概説する。
まず、ネットワーク終端部31が、上位装置1から送り込まれた通信データにおける通信アドレス変換を行うと共に、通信データがネットワーク終端部31に送り込まれたときに経由した通信回線を示す経由回線識別情報を通信データに書き込み、この通信データをカードCに送信し、カードCが、この通信データに対して返信する場合に通信データに含まれる経由回線識別情報を付与した通信データを生成し、この通信データをネットワーク終端部31に送信し、ネットワーク終端部31は、この通信データを上位装置A1宛に送出する回線を、通信データに含まれる回線識別情報に基づき決定し、この通信データを送信する。
[Description of Operation of Embodiment]
Next, the operation of the above embodiment will be outlined.
First, the network termination unit 31 performs communication address conversion on the communication data sent from the higher-level device 1 and communicates via-line identification information indicating the communication line through which the communication data was sent to the network termination unit 31. Write to the data, transmit this communication data to the card C, and when the card C replies to this communication data, generate communication data with the transit line identification information included in the communication data, The network termination unit 31 determines a line for sending the communication data to the host apparatus A1 based on the line identification information included in the communication data, and transmits the communication data.

ここで、上記回線情報書込行程、および送出回線決定行程については、その実行内容をプログラム化し、コンピュータに実行させるように構成してもよい。   Here, regarding the line information writing process and the transmission line determination process, the execution contents may be programmed and executed by a computer.

次に、上記実施形態の動作について、図3、4に基づき詳説する。
まず、回線#1を介して接続された装置B3内のカードC33および上位装置A1におけるデータ通信(イーサネット通信)について、図3に基づき説明する。
尚、ここでは、カードC33および上位装置A1間のイーサネット通信について説明するが、カードC34および上位装置A1間のイーサネット通信も同様に実行可能であるものとする。
Next, the operation of the above embodiment will be described in detail with reference to FIGS.
First, data communication (Ethernet communication) in the card C33 in the device B3 and the host device A1 connected via the line # 1 will be described with reference to FIG.
Here, Ethernet communication between the card C33 and the host device A1 will be described, but it is assumed that Ethernet communication between the card C34 and the host device A1 can be executed in the same manner.

本実施形態では、図3に示すように、上位装置A1のEMACアドレス(イーサネットアドレス)を「#5」、装置B3の回線#1側のイーサネットアドレスを「#7」、ネットワーク終端部31の内部ネットワーク30に対するイーサネットアドレスを「#20」、カードCのイーサネットアドレスを「#30」とする。
また、上記上位装置A1、装置B3における回線#1、ネットワーク終端部31、およびカードC33は、各々イーサネットアドレス(EMACアドレス)と同じIPアドレスを有しているものとする。
In the present embodiment, as shown in FIG. 3, the EMAC address (Ethernet address) of the host device A1 is “# 5”, the Ethernet address on the line # 1 side of the device B3 is “# 7”, and the network termination unit 31 internal It is assumed that the Ethernet address for the network 30 is “# 20” and the Ethernet address of the card C is “# 30”.
Further, it is assumed that the line # 1, the network termination unit 31, and the card C33 in the host device A1 and the device B3 each have the same IP address as the Ethernet address (EMAC address).

尚、このIPアドレスは、イーサネットアドレス同様にIPのレイヤで各終端部を識別するためのアドレスである。
また、このイーサフレームのフレームタイプ(Typeフィールド)「0800(Hex)」で上位プロトコルがIPである事を示している。(Hex)は16進法を示す。
In addition, this IP address is an address for identifying each terminal unit in the IP layer like the Ethernet address.
The frame type (Type field) “0800 (Hex)” of this Ethernet frame indicates that the upper protocol is IP. (Hex) indicates hexadecimal notation.

まず、上位装置A1からカードC33に対して送信されたイーサフレームは、回線#1を介してネットワーク終端部31に送り込まれる。ここで、このイーサフレームは、回線#1を介して送信され、装置B3のネットワーク終端部31に入力される。
次いで、ネットワーク終端部31のアドレス変換部313が、当該イーサフレームに含まれる送信先アドレス「#7」より、当該イーサフレームが自身宛のイーサフレームであることを認識(検出)する。
次いで、アドレス変換部313は、送信先IPアドレス「#7」を使い予め設定されたアドレス変換テーブル(以下「変換テーブル」という)に基づき、このイーサフレームがカードC宛であることを検出し、装置B3内のイーサネット(内部ネットワーク30)に対するアドレス変換を行う。
First, the Ethernet frame transmitted from the upper apparatus A1 to the card C33 is sent to the network termination unit 31 via the line # 1. Here, the Ethernet frame is transmitted via the line # 1, and is input to the network termination unit 31 of the device B3.
Next, the address conversion unit 313 of the network termination unit 31 recognizes (detects) from the transmission destination address “# 7” included in the Ethernet frame that the Ethernet frame is an Ethernet frame addressed to itself.
Next, the address conversion unit 313 detects that this Ether frame is addressed to the card C based on a preset address conversion table (hereinafter referred to as “conversion table”) using the destination IP address “# 7”. Address conversion is performed for the Ethernet (internal network 30) in the device B3.

ここで、カードCのイーサネットアドレスおよびIPアドレスが「#30」であるため、アドレス変換部312は、イーサフレームの送信先アドレスを「#30」に変換する。
また、このイーサフレームについては、送信元が上位装置Aからネットワーク終端部31に変更されるため、送信元イーサネットアドレスである上位装置Aを示す「#5」を、ネットワーク終端部31における内部ネットワーク30側のイーサネットアドレスを示す「#20」に変換する。
Here, since the Ethernet address and IP address of the card C are “# 30”, the address conversion unit 312 converts the transmission destination address of the Ethernet frame to “# 30”.
For this Ethernet frame, since the transmission source is changed from the higher-level device A to the network termination unit 31, “# 5” indicating the higher-level device A as the transmission source Ethernet address is replaced with the internal network 30 in the network termination unit 31. Side is converted to “# 20” indicating the Ethernet address on the side.

次に、フレームタイプ変換部315が、アドレス変換が完了したイーサフレームのフィールドタイプエリアに上位装置A1で入力された回線番号「0001(Hex)」を加算する。(Hex)は16進法を示す。
これにより、装置B3内ネットワーク(内部ネットワーク)30に送信されるイーサフレームのフィールドタイプは「0801(Hex)」となる。図3のステータス2に、装置B3内の内部ネットワーク30におけるイーサフレーム構成を示す。(Hex)は16進法を示す。
Next, the frame type conversion unit 315 adds the line number “0001 (Hex)” input by the higher-level device A1 to the field type area of the ether frame for which address conversion has been completed. (Hex) indicates hexadecimal notation.
As a result, the field type of the Ether frame transmitted to the network (internal network) 30 in the device B3 is “0801 (Hex)”. Status 2 in FIG. 3 shows an Ethernet frame configuration in the internal network 30 in the device B3. (Hex) indicates hexadecimal notation.

次に、カードC33は、イーサフレーム中の送信先アドレスが「#30」であることから、自身(自カード)宛のイーサフレームであることを認識すると共に、フィールドタイプ「0801(Hex)」より、このイーサフレームが装置B3に接続された回線#1から入力されたフレームデータであることを認識(検出)する。(Hex)は16進法を示す。   Next, since the transmission destination address in the ether frame is “# 30”, the card C33 recognizes that it is an ether frame addressed to itself (self card), and from the field type “0801 (Hex)”. The Ethernet frame is recognized (detected) as frame data input from the line # 1 connected to the device B3. (Hex) indicates hexadecimal notation.

ここで、カードC33は、送信元アドレスとして自カードアドレス「#30」をアサインする。また、送信先イーサネットアドレスにはネットワーク終端部31を示す「#20」を、フィールドタイプには回線#1を示す「0801(Hex)」を入力する。(Hex)は16進法を示す。   Here, the card C33 assigns its own card address “# 30” as the source address. Further, “# 20” indicating the network termination unit 31 is input as the destination Ethernet address, and “0801 (Hex)” indicating the line # 1 is input as the field type. (Hex) indicates hexadecimal notation.

ネットワーク終端部31は、レイヤ2スイッチ32から受信したイーサフレームのフィールドタイプから、このイーサフレームがどの回線番号から送信される必要があるかを検出し、回線番号に基づくアドレス逆変換部(321または322)にイーサフレームを渡す。   The network termination unit 31 detects from which line number the Ethernet frame needs to be transmitted from the field type of the Ethernet frame received from the layer 2 switch 32, and an address reverse conversion unit (321 or 321 based on the line number). The Ethernet frame is passed to 322).

このとき、フィールドタイプを「0800(Hex)」に書き換える。(Hex)は16進法を示す。
アドレス逆変換部321は、イーサフレームがカードC33からであることを、送信元イーサネットアドレスおよびIPアドレスより検出し、予め設定されたアドレス逆変換テーブルに基づき、送信先アドレス、送信元アドレス、およびIPアドレスを決定する。図3のステータス4に逆変換後のイーサネットアドレス及びIPアドレス内容を示す。
At this time, the field type is rewritten to “0800 (Hex)”. (Hex) indicates hexadecimal notation.
The address reverse conversion unit 321 detects that the Ethernet frame is from the card C33 from the transmission source Ethernet address and the IP address, and based on a preset address reverse conversion table, the transmission destination address, the transmission source address, and the IP address Determine the address. Status 4 in FIG. 3 shows the Ethernet address and IP address contents after reverse conversion.

以上のように、上位装置A1および装置B3が、図3に示すように、回線#1を介して接続されている場合、ネットワーク終端部31がアドレス変換を行うことにより、相互にイーサネット通信を行うことができる。   As described above, when the host device A1 and the device B3 are connected via the line # 1 as shown in FIG. 3, the network termination unit 31 performs address conversion to perform Ethernet communication with each other. be able to.

次に、上位装置A1および装置B3が、図4に示すように、回線#1および回線#2を介して接続された場合に行われる、装置B3のカードC33と上位装置A1とのイーサネット通信動作について、図4の説明図に基づき説明する。
尚、ネットワーク終端部31における回線#2側のネットワークインタフェースのEMACアドレスおよびIPアドレスとして「#9」が予め割り当てられているものとする。
Next, the Ethernet communication operation between the card C33 of the device B3 and the host device A1 performed when the host device A1 and the device B3 are connected via the line # 1 and the line # 2, as shown in FIG. Will be described with reference to the explanatory diagram of FIG.
It is assumed that “# 9” is assigned in advance as the EMAC address and IP address of the network interface on the line # 2 side in the network termination unit 31.

ここで、本実施形態における、回線#1を介して行われるイーサネット通信は、上述のように動作するものとする(図3)。
以下、本実施形態における回線#2を介して行われるイーサネット通信の動作について説明する。
Here, it is assumed that the Ethernet communication performed via the line # 1 in this embodiment operates as described above (FIG. 3).
Hereinafter, an operation of Ethernet communication performed via the line # 2 in the present embodiment will be described.

まず、上位装置A1からカードC33に対して送信されたイーサフレームは、回線#2を介してネットワーク終端部31に送り込まれる。
次いで、ネットワーク終端部31のアドレス変換部313が、当該イーサネットフレーム(イーサフレーム)に含まれる送信先アドレス「#9」より、当該イーサフレームが自身宛のイーサフレームであることを認識(検出)する。
ここで、アドレス変換部313は、送信先IPアドレス「#9」を使い予め設定されたアドレス変換テーブル(以下「変換テーブル」という)に基づき、このイーサフレームがカードC宛であることを検出し、装置B3内のイーサネット(内部ネットワーク30)に対するアドレス変換を行う。
ここで、アドレス変換部313は、回線#2に入力されたカードC33宛イーサフレームに対して、装置B3内のイーサネット(内部ネットワーク30)に対応したアドレス変換を行う(ステータス10、11(図4))。
First, the Ethernet frame transmitted from the host device A1 to the card C33 is sent to the network termination unit 31 via the line # 2.
Next, the address conversion unit 313 of the network termination unit 31 recognizes (detects) that the Ethernet frame is an Ethernet frame addressed to itself from the transmission destination address “# 9” included in the Ethernet frame (Ethernet frame). .
Here, the address conversion unit 313 detects that this Ether frame is addressed to the card C based on a preset address conversion table (hereinafter referred to as “conversion table”) using the destination IP address “# 9”. Then, address conversion for the Ethernet (internal network 30) in the device B3 is performed.
Here, the address conversion unit 313 performs address conversion corresponding to the Ethernet (internal network 30) in the device B3 with respect to the ether frame addressed to the card C33 input to the line # 2 (statuses 10 and 11 (FIG. 4). )).

このとき、カードC33のEMACアドレスおよびIPアドレスは「#30」であるため、アドレス変換部314は、上記イーサフレームの送信先アドレスを「#30」に変換する。
また、このイーサフレームについては、送信元が上位装置Aからネットワーク終端部31に変更されるため、アドレス変換部314が、送信元イーサネットアドレスを上位装置A「#5」から内部ネットワーク30側のネットワーク終端部31を示すアドレス「#20」に変換する。
At this time, since the EMAC address and the IP address of the card C33 are “# 30”, the address conversion unit 314 converts the destination address of the Ethernet frame to “# 30”.
In addition, since the transmission source of the ether frame is changed from the higher-level device A to the network termination unit 31, the address conversion unit 314 changes the transmission-source Ethernet address from the higher-level device A “# 5” to the network on the internal network 30 side. The address is converted to an address “# 20” indicating the end portion 31.

次に、このアドレス変換が完了したイーサフレームのフィールドタイプエリア(Typeフィールド)の値「0800(Hex)」に対して、フレームタイプ変換部316が、上位装置A1により入力された回線#2を示す回線番号「0002(Hex)」を、に加算する処理を行う(回線識別番号付与機能)。(Hex)は16進法を示す。
これにより、内部ネットワーク30に送信されるイーサフレームのフィールドタイプは、ステータス11(図4)に示すように、「0802(Hex)」に設定される。(Hex)は16進法を示す。
Next, with respect to the value “0800 (Hex)” of the field type area (Type field) of the ether frame in which this address conversion is completed, the frame type conversion unit 316 indicates the line # 2 input by the host apparatus A1. A process of adding the line number “0002 (Hex)” to the line number (line identification number assigning function) is performed. (Hex) indicates hexadecimal notation.
Thereby, the field type of the Ethernet frame transmitted to the internal network 30 is set to “0802 (Hex)” as shown in the status 11 (FIG. 4). (Hex) indicates hexadecimal notation.

次いで、上記イーサフレームは、送信制御部317により内部ネットワーク30に送信され、レイヤ2スイッチ32を介してカードC33に送り込まれる。   Next, the Ethernet frame is transmitted to the internal network 30 by the transmission control unit 317 and sent to the card C33 via the layer 2 switch 32.

次に、カードC33を送信元、上位装置Aを送信先とした通信動作について説明する。   Next, a communication operation using the card C33 as a transmission source and the host device A as a transmission destination will be described.

まず、カードC33は、上位装置A1宛のイーサフレームを生成する。
ここで、カードC33は、上記ステータス3と同様に、送信元アドレスに自身のカードアドレス「#30」をアサインし、送信先イーサネットアドレスにはネットワーク終端部31を示す「#20」をアサインしているものとする。
また、カードC33は、このイーサフレームのフィールドタイプとして、上述のように設定された、回線#2を示す「0802(Hex)」を入力するものとする。(Hex)は16進法を示す。
First, the card C33 generates an Ethernet frame addressed to the higher-level device A1.
Here, similarly to the status 3, the card C33 assigns its own card address “# 30” to the source address, and assigns “# 20” indicating the network termination unit 31 to the destination Ethernet address. It shall be.
Also, the card C33 inputs “0802 (Hex)” indicating the line # 2 set as described above as the field type of the Ethernet frame. (Hex) indicates hexadecimal notation.

次いで、カードC33は、上記生成したイーサフレームを、レイヤ2スイッチ32を介してネットワーク終端部33に送信する。ネットワーク終端部31の受信制御部318は上記イーサフレームを受信し、フレームタイプ逆変換部320に渡す。   Next, the card C33 transmits the generated Ethernet frame to the network termination unit 33 via the layer 2 switch 32. The reception control unit 318 of the network termination unit 31 receives the Ethernet frame and passes it to the frame type inverse conversion unit 320.

次いで、フレームタイプ逆変換部320は、イーサフレームのフィールドタイプ(0802(H))から当該イーサフレームが回線#2から送出されるイーサフレームであることを検出し(送信先回線検出機能)、検出された回線番号(ここでは、回線#2を示す)に基づき、イーサフレームをアドレス逆変換部322に渡す。
尚、ここでフレームタイプ逆変換部320は、イーサフレームのフィールドタイプから当該イーサフレームが回線#1に送信されるイーサフレームであることを検出した場合、つまり、フィールドタイプに回線#1を示す「0801(Hex)」を入力されていた場合は、このイーサフレームをアドレス逆変換部321に渡すものとする。(Hex)は16進法を示す。
Next, the frame type inverse conversion unit 320 detects from the field type (0802 (H)) of the ether frame that the ether frame is an ether frame transmitted from the line # 2 (destination line detection function), and detects it. The Ethernet frame is transferred to the address reverse conversion unit 322 based on the line number (here, line # 2 is indicated).
Here, the frame type inverse conversion unit 320 detects that the Ether frame is an Ether frame transmitted to the line # 1 from the field type of the Ether frame, that is, indicates the line # 1 as the field type. If “0801 (Hex)” is input, this Ethernet frame is transferred to the address reverse conversion unit 321. (Hex) indicates hexadecimal notation.

次に、回線#2用のアドレス逆変換部322は、予め設定されたアドレス逆変換テーブルに基づき、フレームタイプ逆変換部320から渡されたイーサフレームにおける送信先イーサネットアドレス、送信元イーサネットアドレス、およびIPアドレスを逆変換する(アドレス逆変換機能)。
ここでは、ステータス12、13(図4)に示すように、送信元IPアドレス、および送信元EMACアドレスを「#9」に、送信先EMACアドレスを「#5」に変換する。
次いで、アドレス逆変換されたイーサフレームは、送信バッファ324に読み込まれ瑠と共に、回線#2を介して上位装置A1に送信される。
Next, the address reverse conversion unit 322 for the line # 2 is based on the preset address reverse conversion table, and the transmission destination Ethernet address, the transmission source Ethernet address in the Ethernet frame passed from the frame type reverse conversion unit 320, and Reverse translation of IP address (address reverse translation function).
Here, as shown in statuses 12 and 13 (FIG. 4), the transmission source IP address and the transmission source EMAC address are converted to “# 9”, and the transmission destination EMAC address is converted to “# 5”.
Next, the Ethernet frame whose address has been reversely converted is read into the transmission buffer 324 and transmitted to the upper apparatus A1 via the line # 2 together with the frame.

以上のように、本実施形態では、装置に接続される2つのイーサネット回線(#1、#2)を終端するネットワーク終端部31において、同一の外部装置(上位装置A1)から各々のイーサネット回線を介して送り込まれたイーサフレームを、装置B3内のカードC33用に転送するために行うアドレス変換時に、物理回線番号をイーサフレームのフレームタイプ領域に記すことによって、装置内カード(33、34)から上位装置A1に対して送信するイーサフレームの送信先物理回線を指定することができる。   As described above, in this embodiment, in the network termination unit 31 that terminates the two Ethernet lines (# 1, # 2) connected to the apparatus, each Ethernet line is connected from the same external apparatus (higher-level apparatus A1). From the in-device card (33, 34) by writing the physical line number in the frame type area of the ether frame at the time of address conversion to transfer the ether frame sent through the card to the card C33 in the device B3. The destination physical line of the Ethernet frame to be transmitted to the upper apparatus A1 can be designated.

また、異なる複数の回線を介して接続された上位装置A1および装置B3の間で、装置B3内に設定された通信カード(カードC,D:相互通信装置に相当)とイーサフレームの送受信を行う場合に、カードから上位装置Aに送信されるイーサフレームを、装置Bが上位装置からのイーサフレームを受信した回線と同じ回線を使って送信することできる。また、これにより、通信回線の独立性を保障することができる。   In addition, Ethernet frames are transmitted / received to / from communication cards (cards C and D: equivalent to mutual communication devices) set in the device B3 between the host device A1 and the device B3 connected via a plurality of different lines. In this case, the Ethernet frame transmitted from the card to the higher-level apparatus A can be transmitted using the same line as the line where the apparatus B receives the Ethernet frame from the higher-level apparatus. This also ensures independence of the communication line.

更に、上記送信先物理回線を示す情報をイーサフレームのフレームタイプ(領域)に書き込むことにより、イーサフレームの送信先物理回線を指定することができる。
これにより、装置B3内のネットワーク終端部31は物理レイヤのイーサネットフレームのみのサポートで対応することが可能となる。このため、IP以上の上位プロトコルを実装する必要がなく、基本実装である物理レイヤのみで容易にイーサネット通信を実現することが可能となる。
Further, by writing information indicating the transmission destination physical line in the frame type (area) of the Ethernet frame, it is possible to specify the transmission destination physical line of the Ethernet frame.
As a result, the network termination unit 31 in the device B3 can be supported by supporting only the Ethernet frame of the physical layer. For this reason, it is not necessary to implement an upper protocol higher than IP, and Ethernet communication can be easily realized only by the physical layer which is the basic implementation.

本発明は、異なる通信回線に対して並列接続を行う通信装置を含み構成される通信システムに適用することが可能である。   The present invention can be applied to a communication system including a communication device that performs parallel connection to different communication lines.

1 上位装置A
2 ネットワーク
3 装置B
30 内部ネットワーク
31 ネットワーク終端部
32 レイヤ2スイッチ32
33 カードC
34 カードD
311、312 受信バッファ
313、314 アドレス変換部
315、316 フレームタイプ変換部
317 送信制御部
318 受信制御部
320 フレームタイプ逆変換部
321、322 アドレス逆変換部
323、324 送信バッファ
1 Host device A
2 Network 3 Device B
30 Internal Network 31 Network Termination Unit 32 Layer 2 Switch 32
33 Card C
34 Card D
311 and 312 Reception buffer 313 and 314 Address conversion unit 315 and 316 Frame type conversion unit 317 Transmission control unit 318 Reception control unit 320 Frame type reverse conversion unit 321 and 322 Address reverse conversion unit 323 and 324 Transmission buffer

Claims (5)

通信データの送受信を行う外部装置に異なる複数の通信回線を介して接続された通信中継手段と、当該通信中継手段を介して前記外部装置との間で相互通信を行う相互通信装置とを備えたアドレス変換システムであって、
前記通信中継手段は、前記外部装置から送り込まれた通信データにおける通信アドレス変換を行うと共に、当該通信データに対して当該通信データが通信中継手段に送り込まれる際に経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込む回線情報書込機能と、
前記相互通信装置から送り込まれた通信データを前記外部装置宛に送出する通信回線を前記通信データに含まれる経由回線識別情報に基づき決定する送出回線決定機能とを有し、
前記相互通信装置が、前記通信中継手段からの通信データに対して通信データの返信を行う場合に、前記通信中系手段からの通信データに含まれた前記経由回線識別情報を付与した通信データを生成する経由回線指定機能を備えたことを特徴とするアドレス変換システム。
Communication relay means connected via a plurality of different communication lines to an external device that transmits and receives communication data, and a mutual communication device that performs mutual communication with the external device via the communication relay means An address translation system,
The communication relay means performs communication address conversion in communication data sent from the external device, and indicates a communication line through which the communication data is sent to the communication relay means with respect to the communication data A line information writing function for writing identification information to the communication data;
A transmission line determination function for determining a communication line for transmitting communication data sent from the mutual communication device to the external device based on transit line identification information included in the communication data;
When the mutual communication device returns communication data to the communication data from the communication relay means, the communication data to which the transit line identification information included in the communication data from the communication middle means is added An address conversion system characterized by having a function of specifying a transit line to be generated.
前記請求項1に記載のアドレス変換システムにおいて、
前記通信回線は、イーサネット(登録商標)により構成されることを特徴としたアドレス変換システム。
The address translation system according to claim 1,
The address conversion system, wherein the communication line is configured by Ethernet (registered trademark).
前記請求項1、2に記載のアドレス変換システムにおいて、
前記通信中継手段、および前記相互通信装置を備えた通信装置を備え、
当該通信装置は、前記通信中継手段および前記相互通信装置間の通信を中継すると共に前記通信中継手段および前記相互通信装置から送り込まれた通信データのルーティングを行う内部通信制御手段を備えたことを特徴とするアドレス変換システム。
In the address translation system according to claim 1 or 2,
A communication device comprising the communication relay means and the mutual communication device;
The communication device includes an internal communication control unit that relays communication between the communication relay unit and the intercommunication device and routes communication data sent from the communication relay unit and the intercommunication device. Address translation system.
通信データの送受信を行う外部装置に異なる複数の通信回線を介して接続された通信中継手段と、当該通信中継手段を介して前記外部装置との間で相互通信を行う相互通信装置とを備えたアドレス変換システムにあって、前記相互通信のアドレス変換方法であって、
前記通信中継手段は、前記外部装置から送り込まれた通信データにおける通信アドレス変換を行うと共に、前記通信データが前記通信中継手段に送り込まれたときに経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込むと共に、当該通信データを前記相互通信装置に送信し、
前記通信データに対して返信する場合に、前記通信データに含まれる前記経由回線識別情報を付与した通信データを生成し、当該通信データを前記通信中継装置に送信し、
前記相互通信装置からの通信データを前記外部装置宛に送出する通信回線を前記通信データに含まれる前記回線識別情報に基づき決定し、前記相互通信装置からの通信データを送信することを特徴とするアドレス変換方法。
Communication relay means connected via a plurality of different communication lines to an external device that transmits and receives communication data, and a mutual communication device that performs mutual communication with the external device via the communication relay means In the address translation system, the intercommunication address translation method,
The communication relay means performs communication address conversion in the communication data sent from the external device, and also includes routed line identification information indicating the communication line through which the communication data was sent to the communication relay means. Write to the communication data and send the communication data to the mutual communication device,
When replying to the communication data, generate communication data with the transit line identification information included in the communication data, and transmit the communication data to the communication relay device,
A communication line for sending communication data from the mutual communication device to the external device is determined based on the line identification information included in the communication data, and the communication data from the mutual communication device is transmitted. Address translation method.
通信データの送受信を行う外部装置に異なる複数の通信回線を介して接続された通信中継手段と、当該通信中継手段を介して前記外部装置との間で相互通信を行う相互通信装置とを備えたアドレス変換システムにあって、前記通信データの送受信を行うアドレス変換プログラムであって、
前記外部装置から送り込まれた通信データにおける通信アドレス変換を行うと共に、当該通信データに対して当該通信データが通信中継手段に送り込まれる際に経由した前記通信回線を示す経由回線識別情報を前記通信データに書き込む回線情報書込機能、
前記相互通信装置から送り込まれた通信データを前記外部装置宛に送出する通信回線を前記通信データ内に予め設定された回線識別情報に基づき決定する送出回線決定機能、を前記通信中継手段に予め設定されたコンピュータに実行させることを特徴としたアドレス変換プログラム。
Communication relay means connected via a plurality of different communication lines to an external device that transmits and receives communication data, and a mutual communication device that performs mutual communication with the external device via the communication relay means An address conversion system for transmitting and receiving the communication data, the address conversion program comprising:
In addition to performing communication address conversion on the communication data sent from the external device, the communication data is converted to the communication data indicating the communication line through which the communication data is sent to the communication relay means. Line information writing function to write to
A transmission line determination function for determining a communication line for transmitting communication data sent from the mutual communication device to the external device based on line identification information set in advance in the communication data is preset in the communication relay means. An address conversion program that is executed by a computer.
JP2009110859A 2009-04-30 2009-04-30 Address conversion system, address conversion method, and address conversion program Expired - Fee Related JP5391813B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009110859A JP5391813B2 (en) 2009-04-30 2009-04-30 Address conversion system, address conversion method, and address conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009110859A JP5391813B2 (en) 2009-04-30 2009-04-30 Address conversion system, address conversion method, and address conversion program

Publications (2)

Publication Number Publication Date
JP2010263303A true JP2010263303A (en) 2010-11-18
JP5391813B2 JP5391813B2 (en) 2014-01-15

Family

ID=43361066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009110859A Expired - Fee Related JP5391813B2 (en) 2009-04-30 2009-04-30 Address conversion system, address conversion method, and address conversion program

Country Status (1)

Country Link
JP (1) JP5391813B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5084972B1 (en) * 2011-10-27 2012-11-28 三菱電機株式会社 Programmable logic controller and network system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001186191A (en) * 1999-12-24 2001-07-06 Fujitsu Ltd Router and packet relay system using router

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001186191A (en) * 1999-12-24 2001-07-06 Fujitsu Ltd Router and packet relay system using router

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5084972B1 (en) * 2011-10-27 2012-11-28 三菱電機株式会社 Programmable logic controller and network system
KR101358527B1 (en) * 2011-10-27 2014-02-05 미쓰비시덴키 가부시키가이샤 Programmable logic controller

Also Published As

Publication number Publication date
JP5391813B2 (en) 2014-01-15

Similar Documents

Publication Publication Date Title
US11848859B2 (en) System and method for facilitating on-demand paging in a network interface controller (NIC)
CN105579987B (en) The port general PCI EXPRESS
JP5817299B2 (en) Address translation apparatus, communication system, and address translation method
CN110380970B (en) Self-adaptive data message forwarding method and device suitable for heterogeneous network
US9749222B2 (en) Parallel computer, node apparatus, and control method for the parallel computer
US7242689B2 (en) Mobile IP communication terminal, mobile IP communication method, and computer product
JP2009031954A (en) Data processing apparatus and data transfer method
JP4764737B2 (en) Network system, terminal and gateway device
US7269661B2 (en) Method using receive and transmit protocol aware logic modules for confirming checksum values stored in network packet
JP2009017429A (en) Network relay control program, network relay control apparatus, and network relay control method
CN107147655A (en) A kind of network dual stack parallel process model and its processing method
JP2021153348A5 (en) Network equipment, input / output devices, network systems, programs
CN104135548A (en) Static NAT realization method and device based on FPGA
CN111371666A (en) Method, device and system for processing message
CN109246016B (en) Cross-VXLAN message processing method and device
JP7104317B2 (en) Miller packet transfer program and mirror packet transfer method
JP5391813B2 (en) Address conversion system, address conversion method, and address conversion program
AU2010256230B2 (en) Method and system for realizing transmission of message between an extended processor and a switch chip
WO2011072549A1 (en) Method, apparatus and system for communication between non-lisp sites and lisp sites
US20080212587A1 (en) Relay apparatus and packet relay method
CN110650222B (en) Network access method and device
JP2017108247A (en) Communication system
JP4147495B2 (en) Communication device
JP6618330B2 (en) COMMUNICATION DEVICE AND METHOD, COMPUTER PROGRAM
JP7116255B2 (en) Network equipment and conversion equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120307

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130617

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130930

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees