JP2012195783A - Communication system and address space sharing method - Google Patents

Communication system and address space sharing method Download PDF

Info

Publication number
JP2012195783A
JP2012195783A JP2011058476A JP2011058476A JP2012195783A JP 2012195783 A JP2012195783 A JP 2012195783A JP 2011058476 A JP2011058476 A JP 2011058476A JP 2011058476 A JP2011058476 A JP 2011058476A JP 2012195783 A JP2012195783 A JP 2012195783A
Authority
JP
Japan
Prior art keywords
address
packet
default gateway
space
destination
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.)
Withdrawn
Application number
JP2011058476A
Other languages
Japanese (ja)
Inventor
Masayuki Koshino
真行 越野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011058476A priority Critical patent/JP2012195783A/en
Publication of JP2012195783A publication Critical patent/JP2012195783A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a communication system capable of using multiple Internet protocol (IP) address spaces concerning the terminal of one transmission source.SOLUTION: A routing node 1 has two or more default gateway addresses being the addresses as a default gateway with respect to terminals 2-1, 2-2, and fixes the corresponding identifiers of IP address spaces 4-1, 4-2 for each default gateway address. The routing node 1 and the terminals 2-1, 2-2 hold correspondence between the default gateway addresses and the identifiers as an IP space ID determination table. The terminals 2-1, 2-2 store the default gateway addresses corresponding to the address spaces to be transmission destinations in packets to be transmitted. The routing node 1 transfers the packets to the IP address spaces which are determined based on the default gateway addresses stored in the received packets and the IP space ID determination table.

Description

本発明は、通信システムおよびアドレス空間共有方法に関する。   The present invention relates to a communication system and an address space sharing method.

従来のアドレス空間共有方法では、下記特許文献1に記載されているように、サーバや端末を収容するルーティングノードでは、サーバや端末からIP(Internet Protocol)パケットを受信すると、その発信元MAC(Media Access Control)アドレスやVLAN(Virtual Local Area Network) ID(Identifier)に基づき、送信元のサーバや端末が属するIPアドレス空間を特定するIP空間IDを決定する。そして、ルーティングノードでは、IP空間ID毎にルーティングテーブルを設定しておき、上記の決定したIP空間IDに対応するルーティングテーブルと受信IPパケットの宛先IPアドレスとを参照して受信IPパケットの転送ルーティングを実施する。これにより、IP空間IDに属する端末やVLAN毎に独立したIPアドレス空間を保持することができ、複数のIP空間IDで重複したIPアドレスを利用することができる。   In the conventional address space sharing method, as described in Patent Document 1 below, when a routing node that accommodates a server or terminal receives an IP (Internet Protocol) packet from the server or terminal, the source MAC (Media An IP space ID for specifying an IP address space to which a transmission source server or terminal belongs is determined on the basis of an Access Control) address or a VLAN (Virtual Local Area Network) ID (Identifier). The routing node sets a routing table for each IP space ID, and refers to the routing table corresponding to the determined IP space ID and the destination IP address of the received IP packet, and forwards routing of the received IP packet. To implement. Thus, an independent IP address space can be held for each terminal or VLAN belonging to the IP space ID, and duplicate IP addresses can be used in a plurality of IP space IDs.

特開2004−38922号公報JP 2004-38922 A

しかしながら、上記のように、従来のアドレス空間共有方法では、IPパケットの送信元の端末のMACアドレスや送信元の端末の収容回線ポートに割当てられるVLAN IDに基づいて使用可能なIPアドレス空間を決定する。このため、1つの端末は1つのIPアドレス空間しか使用することができない、という問題があった。このため、例えば、1つの端末において通信する際に適用されるアプリケーションによって複数のIPアドレス空間を使い分けるということができない、という問題があった。   However, as described above, in the conventional address space sharing method, the usable IP address space is determined based on the MAC address of the IP packet transmission source terminal or the VLAN ID assigned to the accommodating line port of the transmission source terminal. To do. For this reason, there is a problem that one terminal can use only one IP address space. For this reason, for example, there is a problem that a plurality of IP address spaces cannot be used properly depending on an application applied when communicating in one terminal.

本発明は、上記に鑑みてなされたものであって、1つの送信元の端末について複数のIPアドレス空間を使用することができる通信システムおよびアドレス空間共有方法を得ることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide a communication system and an address space sharing method that can use a plurality of IP address spaces for one transmission source terminal.

上述した課題を解決し、目的を達成するために、本発明は、パケットを送信する通信装置と前記パケットを2つ以上のアドレス空間のうちの選択したアドレス空間へ転送する中継装置とを備える通信システムであって、前記中継装置は、前記通信装置に対するデフォルトゲートウェイとしてのアドレスであるデフォルトゲートウェイアドレスを2つ以上有し、前記デフォルトゲートウェイアドレスごとに対応する前記アドレス空間の識別子を定め、前記中継装置および前記通信装置は、前記デフォルトゲートウェイアドレスと前記識別子との対応を空間判定情報として保持し、前記通信装置は、前記空間判定情報に基づいて、送信先とするアドレス空間に対応する前記デフォルトゲートウェイアドレスを決定し、決定した前記デフォルトゲートウェイアドレスを前記パケットに格納して送信し、前記中継装置は、受信した前記パケットに格納されたデフォルトゲートウェイアドレスと前記空間判定情報とに基づいて決定したアドレス空間へ当該パケットを転送する、ことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a communication device including a communication device that transmits a packet and a relay device that transfers the packet to a selected address space of two or more address spaces. The relay device has two or more default gateway addresses, which are addresses as default gateways for the communication device, defines an identifier of the address space corresponding to each default gateway address, and the relay device And the communication device holds a correspondence between the default gateway address and the identifier as space determination information, and the communication device, based on the space determination information, corresponds to the default gateway address corresponding to an address space as a transmission destination. And determine the default game The way address is stored in the packet and transmitted, and the relay device transfers the packet to the address space determined based on the default gateway address and the space determination information stored in the received packet. Features.

本発明によれば、1つの送信元の端末について複数のIPアドレス空間を使用することができる、という効果を奏する。   According to the present invention, there is an effect that a plurality of IP address spaces can be used for one transmission source terminal.

図1は、実施の形態1の通信システムのアドレス空間共有方法の概念を示す図である。FIG. 1 is a diagram illustrating a concept of an address space sharing method of the communication system according to the first embodiment. 図2は、従来のアドレス空間共有方法の一例を示す図である。FIG. 2 is a diagram illustrating an example of a conventional address space sharing method. 図3は、実施の形態1のIP空間ID判定テーブルの構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of the IP space ID determination table according to the first embodiment. 図4は、実施の形態1の空間ID#1に対応するルーティングテーブルの一例を示す図である。FIG. 4 is a diagram illustrating an example of a routing table corresponding to the space ID # 1 according to the first embodiment. 図5は、実施の形態の空間ID#2に対応するルーティングテーブルの一例を示す図である。FIG. 5 is a diagram illustrating an example of a routing table corresponding to the space ID # 2 according to the embodiment. 図6は、実施の形態2の通信システムのアドレス空間共有方法の概念を示す図である。FIG. 6 is a diagram illustrating a concept of the address space sharing method of the communication system according to the second embodiment. 図7は、実施の形態3の通信システムのアドレス空間共有方法の概念を示す図である。FIG. 7 is a diagram illustrating the concept of the address space sharing method of the communication system according to the third embodiment. 図8は、実施の形態4の通信システムのアドレス空間共有方法の概念を示す図である。FIG. 8 is a diagram illustrating the concept of the address space sharing method of the communication system according to the fourth embodiment. 図9は、実施の形態5の通信システムのアドレス空間共有方法の概念を示す図である。FIG. 9 is a diagram illustrating the concept of the address space sharing method of the communication system according to the fifth embodiment.

以下に、本発明にかかる通信システムおよびアドレス空間共有方法の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of a communication system and an address space sharing method according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態1.
図1は、本発明にかかる通信システムの実施の形態1のアドレス空間共有方法の概念を示す図である。本実施の形態の通信システムは、IPパケットのルーティングを行うルーティングノード1と、端末2−1,2−2と、L2SW(Layer 2 switch)3と、を備える。なお、図1では、端末を2台とし、L2SW3を1台としているが、ルーティングノード1が収容する(パケットの転送対象とする)端末の数や、端末とルーティングノード1との経路上に存在するL2SWの数は、これに限定されない。また、ルーティングノード1が収容する装置は、端末に限らず、サーバ等でもよく通信装置であればよい。
Embodiment 1 FIG.
FIG. 1 is a diagram showing a concept of an address space sharing method according to a first embodiment of a communication system according to the present invention. The communication system of the present embodiment includes a routing node 1 that performs routing of IP packets, terminals 2-1 and 2-2, and an L2SW (Layer 2 switch) 3. In FIG. 1, two terminals and one L2SW 3 are used. However, the number of terminals accommodated by the routing node 1 (targeted for packet transfer) and the route between the terminals and the routing node 1 exist. The number of L2SWs to be performed is not limited to this. The device accommodated by the routing node 1 is not limited to a terminal, and may be a server or the like as long as it is a communication device.

本実施の形態では、本発明にかかる中継装置としてルーティングノード1を例に挙げて説明する。ルーティングノード1は、送信ポート11,12を備える。また、ルーティングノード1は、使用可能な全IPアドレス空間を複数に分割して管理する。図1では、分割したIPアドレス空間の例としてIPアドレス空間4−1,4−2の2つを示している。   In the present embodiment, a routing node 1 will be described as an example of a relay device according to the present invention. The routing node 1 includes transmission ports 11 and 12. Further, the routing node 1 manages all available IP address spaces by dividing them into a plurality. In FIG. 1, two IP address spaces 4-1 and 4-2 are shown as examples of the divided IP address spaces.

ルーティングノード1では、分割したIPアドレス空間に各々ID(IP空間ID)を付与しており、以下の説明では、IPアドレス空間4−1,4−2のIP空間IDをそれぞれ#1,#2とする。   In the routing node 1, IDs (IP space IDs) are assigned to the divided IP address spaces, and in the following description, the IP space IDs of the IP address spaces 4-1 and 4-2 are # 1, # 2, respectively. And

ここで、従来のアドレス空間共有方法について説明する。図2は、従来のアドレス空間共有方法の一例を示す図である。図2では、ルーティングノード101が、端末102,103を収容する例を示しており、端末103はL2SW104を経由してルーティングノード101に接続されている。   Here, a conventional address space sharing method will be described. FIG. 2 is a diagram illustrating an example of a conventional address space sharing method. FIG. 2 shows an example in which the routing node 101 accommodates the terminals 102 and 103, and the terminal 103 is connected to the routing node 101 via the L2SW 104.

従来のアドレス空間共有方法を適用するルーティングノード101は、使用可能な全IPアドレス空間を複数に分割して管理しているとする。図2では、分割したIPアドレス空間201,202を示しており、それぞれのIP空間IDを#11,#12とする。   It is assumed that the routing node 101 to which the conventional address space sharing method is applied manages all available IP address spaces by dividing it into a plurality. FIG. 2 shows the divided IP address spaces 201 and 202, and the IP space IDs are # 11 and # 12, respectively.

ルーティングノード101は、送信ポート111,112を有している。また、ルーティングノード101は、IP空間ID毎に対応するルーティングテーブルを保持しており、ルーティングテーブルには、宛先のサブネットアドレスと送信ポートとの対応が格納されている。ルーティングノード101は、送信元のMACアドレスおよびVLAN IDとIP空間IDとの対応を保持し、IPパケットを受信すると、当該パケットの送信元のMACアドレス、VLAN IDと保持している対応に基づいてIP空間IDを決定する。   The routing node 101 has transmission ports 111 and 112. The routing node 101 holds a routing table corresponding to each IP space ID, and the correspondence between the destination subnet address and the transmission port is stored in the routing table. The routing node 101 holds the correspondence between the MAC address and VLAN ID of the transmission source and the IP space ID. Upon receiving the IP packet, the routing node 101, based on the correspondence between the MAC address and VLAN ID of the transmission source of the packet. An IP space ID is determined.

端末102のMACアドレスがMAC#Bであり、端末103がL2SW104で送信するパケットのVLAN IDがVLAN ID#Aであったとする。この場合、上述の送信元のMACアドレスおよびVLAN IDとIP空間IDとの対応に基づいて、MAC#BについてはIP空間ID#11として決定され、VLAN ID#AについてはIP空間ID#12として決定されたとする。また、ここでは、IP空間ID#11に対応するルーティングテーブルでは転送先として送信ポート111が格納され、IP空間ID#12に対応するルーティングテーブルでは転送先として送信ポート112が格納されているとする。   Assume that the MAC address of the terminal 102 is MAC # B, and the VLAN ID of the packet transmitted by the terminal 103 via the L2SW 104 is VLAN ID # A. In this case, based on the correspondence between the MAC address of the transmission source and the VLAN ID and the IP space ID, the MAC #B is determined as the IP space ID # 11, and the VLAN ID #A is determined as the IP space ID # 12. Suppose that it was decided. Here, it is assumed that the transmission port 111 is stored as a transfer destination in the routing table corresponding to the IP space ID # 11, and the transmission port 112 is stored as the transfer destination in the routing table corresponding to the IP space ID # 12. .

この場合、ルーティングノード101は、端末102から送信されたパケットは経路301に示すように、IP空間ID#11に対応するルーティングテーブルに基づいて転送が実施され、端末103から送信されたパケットについては経路302に示すように、IP空間ID#12に対応するルーティングテーブルに基づいて転送が実施される。   In this case, the routing node 101 transfers the packet transmitted from the terminal 102 based on the routing table corresponding to the IP space ID # 11 as indicated by the path 301, and the packet transmitted from the terminal 103 is As indicated by the path 302, the transfer is performed based on the routing table corresponding to the IP space ID # 12.

一方、経路303のような端末102から送信されたパケットがIP空間ID#12にIPアドレス空間を用いた転送や、経路304のような端末103から送信されたパケットがIP空間ID#11にIPアドレス空間を用いた転送は、実施されない。このように、従来のアドレス空間共有方法では、1つの端末は1つのIPアドレス空間しか使用することができない。このため、例えば、1つの端末において通信する際に適用されるアプリケーションによって複数のIPアドレス空間を使い分けるということができない、という問題があった。   On the other hand, a packet transmitted from the terminal 102 such as the path 303 is transferred using the IP address space for the IP space ID # 12, and a packet transmitted from the terminal 103 such as the path 304 is transferred to the IP space ID # 11. Transfers using the address space are not performed. As described above, in the conventional address space sharing method, one terminal can use only one IP address space. For this reason, for example, there is a problem that a plurality of IP address spaces cannot be used properly depending on an application applied when communicating in one terminal.

これに対して、本実施の形態では、端末2−1,2−2が自身の属するサブネットの外にIPパケットを送信する際のパケット送信先となるデフォルトゲートウェイIPアドレス(以降、図中では、DGWと略す)として、ルーティングノード1のIPアドレスを複数用意する。ルーティングノード1は、これらのIPアドレス毎にIPアドレス空間を割当てておき、デフォルトゲートウェイIPアドレス(DGW)と対応するIPアドレス空間のIP空間IDとの対応をIP空間ID判定テーブルとして保持しておく。また、ルーティングノード1は、IP空間ID毎にルーティングテーブルを保持する。   On the other hand, in the present embodiment, the default gateway IP address (hereinafter, in the figure, the terminal 2-1 and 2-2 serve as a packet transmission destination when transmitting IP packets outside the subnet to which the terminals 2-1 and 2-2 belong. A plurality of IP addresses of the routing node 1 are prepared. The routing node 1 allocates an IP address space for each of these IP addresses, and holds the correspondence between the default gateway IP address (DGW) and the IP space ID of the corresponding IP address space as an IP space ID determination table. . Further, the routing node 1 holds a routing table for each IP space ID.

これにより、本実施の形態では、端末2−1,2−2は、複数のデフォルトゲートウェイアドレスを保持しておき、IPパケットを送信する際に、送信先のデフォルトゲートウェイアドレスを切り替えることで、複数のIPアドレス空間を使い分けることができる。   As a result, in the present embodiment, the terminals 2-1 and 2-2 hold a plurality of default gateway addresses, and when transmitting an IP packet, the terminals 2-1 and 2-2 switch the destination default gateway addresses. IP address spaces can be used properly.

図3は、本実施の形態のIP空間ID判定テーブルの構成例を示す図である。図4は、本実施の形態の空間ID#1に対応するルーティングテーブルの一例を示す図である。図5は、本実施の形態の空間ID#2に対応するルーティングテーブルの一例を示す図である。   FIG. 3 is a diagram illustrating a configuration example of the IP space ID determination table according to the present embodiment. FIG. 4 is a diagram illustrating an example of a routing table corresponding to the space ID # 1 of the present embodiment. FIG. 5 is a diagram illustrating an example of a routing table corresponding to the space ID # 2 of the present embodiment.

以下、図1および図3〜5を用いて、本実施の形態の動作を説明する。ここでは、デフォルトゲートウェイIPアドレスAはIP空間ID#1に紐付けられており、デフォルトゲートウェイIPアドレスBはIP空間ID#2に紐付けられているとし、図1の端末2−1、端末2−2、ルーティングノード1では、これらの紐付けの情報(空間判定情報)を保持しているとする。また、端末2−1、端末2−2、ルーティングノード1では、IP空間IDとIPアドレス空間との対応を把握しているとする。   Hereinafter, the operation of the present embodiment will be described with reference to FIGS. 1 and 3 to 5. Here, it is assumed that default gateway IP address A is associated with IP space ID # 1, and default gateway IP address B is associated with IP space ID # 2, and terminal 2-1 and terminal 2 in FIG. -2, It is assumed that the routing node 1 holds information (space determination information) of these associations. Further, it is assumed that the terminal 2-1, the terminal 2-2, and the routing node 1 know the correspondence between the IP space ID and the IP address space.

その状況で端末2−1が、IP空間ID#1のIPアドレス空間に向けたパケットを送信するとする。この場合、IP空間ID#1に紐付けられたデフォルトゲートウェイIPアドレスはAであるため、端末2−1は、デフォルトゲートウェイIPアドレスAに相当するルーティングノード1のMACアドレスであるAmacを宛先MACアドレスに設定したパケット5−1を送信する。なお、パケット5−1の送信元については従来と同様のアドレスを設定し、パケット5−1の宛先のIPアドレスには、従来と同様の宛先IPアドレスを設定する。ルーティングノード1は、ルーティングノード1のデフォルトゲートウェイIPアドレスとMACアドレスとの対応を把握しているとし、また各端末2−1,2−2も例えばアドレス解決手順等によりこの対応を把握しているとする。   In this situation, it is assumed that the terminal 2-1 transmits a packet directed to the IP address space of the IP space ID # 1. In this case, since the default gateway IP address associated with the IP space ID # 1 is A, the terminal 2-1 uses Amac, which is the MAC address of the routing node 1 corresponding to the default gateway IP address A, as the destination MAC address. The packet 5-1 set in (2) is transmitted. Note that the same address as the conventional address is set for the transmission source of the packet 5-1, and the same destination IP address as the conventional address is set as the destination IP address of the packet 5-1. The routing node 1 knows the correspondence between the default gateway IP address of the routing node 1 and the MAC address, and each of the terminals 2-1 and 2-2 knows this correspondence by, for example, an address resolution procedure. And

ルーティングノード1では、パケット5−1を受信すると、図3に示すIP空間ID判定テーブルを参照し、パケット5−1の宛先MACアドレスがAmacであることから当該パケットに対応するIP空間IDが#1であると決定する。なお、ルーティングノード1では、IP空間ID判定テーブルを、空間判定情報(デフォルトゲートウェイIPアドレスとIP空間IDの対応情報)と、デフォルトゲートウェイIPアドレスとMACアドレスとの対応と、に基づいて生成しておく。次に決定したIP空間IDに対応するルーティングテーブル(図4に示したルーティングテーブル)を参照し、パケット5−1を送信ポート11に送信することにより、IP空間ID#1に対応するIPアドレス空間4−1へ転送する。   When receiving the packet 5-1, the routing node 1 refers to the IP space ID determination table shown in FIG. 3. Since the destination MAC address of the packet 5-1 is Amac, the IP space ID corresponding to the packet is # 1 is determined. In the routing node 1, an IP space ID determination table is generated based on the space determination information (correspondence information between the default gateway IP address and the IP space ID) and the correspondence between the default gateway IP address and the MAC address. deep. Next, by referring to the routing table (routing table shown in FIG. 4) corresponding to the determined IP space ID and transmitting the packet 5-1 to the transmission port 11, the IP address space corresponding to the IP space ID # 1 4-1.

端末2−1からIP空間ID#2のIPアドレス空間に向けたパケット5−2を送信する場合は、IP空間ID#2に紐付けられたデフォルトゲートウェイIPアドレスはBであるため、デフォルトゲートウェイIPアドレスBに対応するルーティングノード1のMACアドレスであるBmacを宛先AMCアドレスに設定する。   When transmitting the packet 5-2 from the terminal 2-1 to the IP address space of the IP space ID # 2, the default gateway IP address associated with the IP space ID # 2 is B. Bmac, which is the MAC address of routing node 1 corresponding to address B, is set as the destination AMC address.

ルーティングノード1は、パケット5−2を受信すると、図3に示す空間ID判定テーブルを参照し、受信パケットの宛先MACアドレスがBmacであることから当該パケットに対応するIP空間IDが#2であると決定する。次にルーティングノード1は、決定したIP空間IDに対応するルーティングテーブル(図5のルーティングテーブル)を参照し、パケット5−2を送信ポート12に送信することにより、IP空間ID#2に対応するIPアドレス空間4−2へ転送する。   When receiving the packet 5-2, the routing node 1 refers to the space ID determination table shown in FIG. 3, and since the destination MAC address of the received packet is Bmac, the IP space ID corresponding to the packet is # 2. And decide. Next, the routing node 1 refers to the routing table (routing table in FIG. 5) corresponding to the determined IP space ID, and transmits the packet 5-2 to the transmission port 12, thereby corresponding to the IP space ID # 2. Transfer to IP address space 4-2.

以上のように、本実施の形態では、ルーティングノード1の端末2−1,2−2のデフォルトゲートウェイとしてのIPアドレス(デフォルトゲートウェイIPアドレス)を複数設定しておき、端末2−1,2−2およびルーティングノード1は、デフォルトゲートウェイIPアドレスとIP空間IDとの対応を保持する。端末2−1,2−2は、パケットを送信する際に、所望の宛先のIP空間IDに対応するデフォルトゲートウェイIPアドレスに対応するMACアドレスを宛先MACアドレスとして設定する。そして、ルーティングノード1は、宛先MACアドレスに基づいてIP空間IDを決定する。これにより、本実施の形態の通信システムでは、1つの送信元の端末について複数のIPアドレス空間を使用することができ、端末2−1,2−2は、複数のIPアドレス空間を宛先MACアドレスの切替により使い分けることができる。   As described above, in this embodiment, a plurality of IP addresses (default gateway IP addresses) as default gateways of the terminals 2-1 and 2-2 of the routing node 1 are set, and the terminals 2-1 and 2- 2 and the routing node 1 hold the correspondence between the default gateway IP address and the IP space ID. When transmitting a packet, the terminals 2-1 and 2-2 set a MAC address corresponding to a default gateway IP address corresponding to a desired destination IP space ID as a destination MAC address. Then, the routing node 1 determines the IP space ID based on the destination MAC address. Thereby, in the communication system of the present embodiment, a plurality of IP address spaces can be used for one transmission source terminal, and the terminals 2-1 and 2-2 use the plurality of IP address spaces as destination MAC addresses. It can be used properly by switching.

実施の形態2.
図6は、本発明にかかる通信システムの実施の形態2のアドレス空間共有方法の概念を示す図である。本実施の形態の通信システムは、実施の形態1と同様のルーティングノード1と、端末6−1,6−2と、実施の形態1と同様のL2SW3と、を備える。なお、図6では、端末を2台とし、L2SW3を1台としているが、ルーティングノード1が収容する端末の数や、端末とルーティングノード1との経路上に存在するL2SWの数は、これに限定されない。また、ルーティングノード1が収容する装置は、端末に限らず、サーバ等どのような装置であってもよい。
Embodiment 2. FIG.
FIG. 6 is a diagram showing the concept of the address space sharing method according to the second embodiment of the communication system according to the present invention. The communication system of the present embodiment includes a routing node 1 similar to that of the first embodiment, terminals 6-1 and 6-2, and L2SW3 similar to that of the first embodiment. In FIG. 6, there are two terminals and one L2SW3. However, the number of terminals accommodated by the routing node 1 and the number of L2SWs existing on the route between the terminals and the routing node 1 are as follows. It is not limited. The device accommodated by the routing node 1 is not limited to a terminal, and may be any device such as a server.

本実施の形態では、実施の形態1と同様に、端末6−1,6−2が自身の属するサブネットの外にIPパケットを送信する際のパケット送信先となるデフォルトゲートウェイIPアドレスとして、ルーティングノード1のIPアドレスを複数用意する。ルーティングノード1は、これらのIPアドレス毎にIPアドレス空間を割当てておき、デフォルトゲートウェイIPアドレスと対応するIPアドレス空間のIP空間IDとの対応をIP空間ID判定テーブルとして保持しておく。また、ルーティングノード1は、IP空間ID毎にルーティングテーブルを保持する。ルーティングノード1の動作は実施の形態1と同様である。   In the present embodiment, as in the first embodiment, as a default gateway IP address serving as a packet transmission destination when the terminals 6-1 and 6-2 transmit an IP packet outside the subnet to which the terminals 6-1 and 6-2 belong, the routing node A plurality of one IP address is prepared. The routing node 1 allocates an IP address space for each of these IP addresses, and holds the correspondence between the default gateway IP address and the IP space ID of the corresponding IP address space as an IP space ID determination table. Further, the routing node 1 holds a routing table for each IP space ID. The operation of the routing node 1 is the same as that of the first embodiment.

本実施の形態の端末6−1は、適用アプリケーション毎にデフォルトゲートウェイIPアドレスを登録しておき、適用アプリケーションとデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブル(デフォルトゲートウェイ判定情報)として保持する。例えば、勘定系アプリケーション(アプリ)には、デフォルトゲートウェイIPアドレスAが対応し、社内情報系アプリケーション(アプリ)には、デフォルトゲートウェイIPアドレスBが対応し、VoIP(Voice over Internet Protocol)には、デフォルトゲートウェイIPアドレスCが対応すると定めておく。なお、端末6−1,6−2は、実施の形態1と同様に、ルーティングノード1の複数のデフォルトゲートウェイIPアドレスとMACアドレスとの対応を把握しているとする。   The terminal 6-1 according to the present embodiment registers a default gateway IP address for each application, and holds a correspondence between the application and the default gateway IP address as a default gateway determination table (default gateway determination information). For example, a default gateway IP address A corresponds to an accounting application (application), a default gateway IP address B corresponds to an in-house information system application (application), and a default for VoIP (Voice over Internet Protocol). It is determined that the gateway IP address C corresponds. It is assumed that the terminals 6-1 and 6-2 know the correspondence between the plurality of default gateway IP addresses and the MAC address of the routing node 1 as in the first embodiment.

端末6−1,6−2は、パケットを送信する際、当該パケットのデータ部を生成したアプリケーションのセッション種別(勘定系アプリケーション、社内情報系アプリケーション、VoIP等)などを確認する。そして、このセッション種別に基づいてデフォルトゲートウェイ判定テーブルを参照して該当するデフォルトゲートウェイIPアドレスを決定する。   When transmitting a packet, the terminals 6-1 and 6-2 confirm the session type (account system application, in-house information system application, VoIP, etc.) of the application that generated the data portion of the packet. Based on the session type, the default gateway IP address is determined by referring to the default gateway determination table.

例えば、端末6−1が、勘定系アプリケーションにより生成されたデータを搭載したパケット5−3を送信する場合、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイIPアドレスAに対応するMACアドレスAmacを宛先MACアドレスとして格納して送信する。ルーティングノード1は、実施の形態1と同様の動作により、パケット5−3をIP空間ID#1に対応するIPアドレス空間4−1へ転送する。なお、図6では、デフォルトゲートウェイ判定テーブルをセッション種別とデフォルトゲートウェイIPアドレスとの対応としているが、セッション種別とデフォルトゲートウェイIPアドレスに対応するMACアドレスとの対応として保持してもよい。   For example, when the terminal 6-1 transmits a packet 5-3 loaded with data generated by the accounting application, the destination MAC is set to the MAC address Amac corresponding to the default gateway IP address A with reference to the default gateway determination table. Store as address and send. The routing node 1 transfers the packet 5-3 to the IP address space 4-1 corresponding to the IP space ID # 1 by the same operation as in the first embodiment. In FIG. 6, the default gateway determination table is a correspondence between the session type and the default gateway IP address, but may be held as a correspondence between the session type and the MAC address corresponding to the default gateway IP address.

また、端末6−1が、社内情報系アプリケーションにより生成されたデータを搭載したパケット5−4を送信する場合、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイIPアドレスBに対応するMACアドレスBmacを宛先MACアドレスとして格納して送信する。ルーティングノード1は、実施の形態1と同様の動作により、パケット5−4をIP空間ID#2に対応するIPアドレス空間4−2へ転送する。以上述べた以外の本実施の形態の動作は実施の形態1と同様である。   In addition, when the terminal 6-1 transmits a packet 5-4 loaded with data generated by the in-house information system application, the destination is the MAC address Bmac corresponding to the default gateway IP address B with reference to the default gateway determination table Store as MAC address and send. The routing node 1 transfers the packet 5-4 to the IP address space 4-2 corresponding to the IP space ID # 2 by the same operation as in the first embodiment. The operations of the present embodiment other than those described above are the same as those of the first embodiment.

以上のように、本実施の形態では、端末6−1,6−2が、セッション種別とデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持し、送信パケットのセッション種別に基づいてデフォルトゲートウェイIPアドレスを決定して対応するMACアドレスを宛先MACアドレスとして送信パケットに格納するようにした。そのため、端末6−1,6−2は、複数のIPアドレス空間をアプリケーション毎に使い分けることができる。   As described above, in the present embodiment, the terminals 6-1 and 6-2 hold the correspondence between the session type and the default gateway IP address as the default gateway determination table, and the default gateway is based on the session type of the transmission packet. The IP address is determined and the corresponding MAC address is stored in the transmission packet as the destination MAC address. Therefore, the terminals 6-1 and 6-2 can use a plurality of IP address spaces for each application.

実施の形態3.
図7は、本発明にかかる通信システムの実施の形態3のアドレス空間共有方法の概念を示す図である。本実施の形態の通信システムは、実施の形態1と同様のルーティングノード1と、端末7−1,7−2と、実施の形態1と同様のL2SW3と、を備える。なお、図7では、端末を2台とし、L2SW3を1台としているが、ルーティングノード1が収容する端末の数や、端末とルーティングノード1との経路上に存在するL2SWの数は、これに限定されない。また、ルーティングノード1が収容する装置は、端末に限らず、サーバ等どのような装置であってもよい。
Embodiment 3 FIG.
FIG. 7 is a diagram showing the concept of the address space sharing method according to the third embodiment of the communication system according to the present invention. The communication system of the present embodiment includes a routing node 1 similar to that of the first embodiment, terminals 7-1 and 7-2, and L2SW3 similar to that of the first embodiment. In FIG. 7, there are two terminals and one L2SW3. However, the number of terminals accommodated by the routing node 1 and the number of L2SWs existing on the route between the terminals and the routing node 1 are as follows. It is not limited. The device accommodated by the routing node 1 is not limited to a terminal, and may be any device such as a server.

本実施の形態では、実施の形態1と同様に、端末7−1,7−2が自身の属するサブネットの外にIPパケットを送信する際のパケット送信先となるデフォルトゲートウェイIPアドレスとして、ルーティングノード1のIPアドレスを複数用意する。ルーティングノード1は、これらのIPアドレス毎にIPアドレス空間を割当てておき、デフォルトゲートウェイIPアドレスと対応するIPアドレス空間のIP空間IDとの対応をIP空間ID判定テーブルとして保持しておく。また、ルーティングノード1は、IP空間ID毎にルーティングテーブルを保持する。ルーティングノード1の動作は実施の形態1と同様である。   In the present embodiment, as in the first embodiment, as a default gateway IP address serving as a packet transmission destination when the terminals 7-1 and 7-2 transmit an IP packet outside the subnet to which the terminals 7-1 and 7-2 belong, the routing node A plurality of one IP address is prepared. The routing node 1 allocates an IP address space for each of these IP addresses, and holds the correspondence between the default gateway IP address and the IP space ID of the corresponding IP address space as an IP space ID determination table. Further, the routing node 1 holds a routing table for each IP space ID. The operation of the routing node 1 is the same as that of the first embodiment.

本実施の形態では、端末7−1,7−2において、適用されるトランスポート層プロトコルPort番号毎にデフォルトゲートウェイIPアドレスを登録しておき、送信するパケットに対応するトランスポート層プロトコル(telnet、ftp、httpなど)に基づいてデフォルトゲートIPウェイアドレスを決定する。これにより、端末7−1,7−2は、トランスポート層プロトコル毎に複数のIPアドレス空間を使い分けることができる。   In the present embodiment, the terminals 7-1 and 7-2 register a default gateway IP address for each applied transport layer protocol Port number, and transport layer protocols (telnet, The default gateway IP way address is determined based on (http, http, etc.). Thereby, the terminals 7-1 and 7-2 can use a plurality of IP address spaces for each transport layer protocol.

本実施の形態の端末7−1,7−2は、トランスポート層プロトコルPort番号毎にデフォルトゲートウェイIPアドレスを定めておき、トランスポート層プロトコルPort番号(図7では、Port番号と略す)とデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持する。   Terminals 7-1 and 7-2 of this embodiment define a default gateway IP address for each transport layer protocol Port number, and transport layer protocol Port number (abbreviated as Port number in FIG. 7) and default. The correspondence with the gateway IP address is held as a default gateway determination table.

端末7−1,7−2は、パケットを送信する際、当該パケットの宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照して該当のデフォルトゲートウェイIPアドレスを決定する。ここでは、例えば、トランスポート層プロトコルPort番号がftpに対応する番号であった場合はデフォルトゲートウェイIPアドレスA、トランスポート層プロトコルPort番号がtelnetに対応する番号であった場合はデフォルトゲートウェイIPアドレスBと定めておく。   When the terminals 7-1 and 7-2 transmit a packet, the terminals 7-1 and 7-2 confirm the destination port number of the packet and refer to the default gateway determination table to determine the corresponding default gateway IP address. Here, for example, when the transport layer protocol Port number is a number corresponding to ftp, the default gateway IP address A, and when the transport layer protocol Port number is a number corresponding to telnet, the default gateway IP address B It is prescribed.

端末7−1は、例えば、ftpのパケット5−5を送信する場合は、そのパケット宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイIPアドレスAと決定し、デフォルトゲートウェイIPアドレスAに対応するMACアドレスAmacを宛先MACアドレスとして設定して送信する。   For example, when transmitting the ftp packet 5-5, the terminal 7-1 confirms the packet destination port number, determines the default gateway IP address A by referring to the default gateway determination table, and determines the default gateway IP address. The MAC address Amac corresponding to A is set as the destination MAC address and transmitted.

端末7−1は、例えば、telnetのパケット5−6を送信する場合は、そのパケット宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイIPアドレスBと決定し、デフォルトゲートウェイIPアドレスBに対応するMACアドレスBmacを宛先MACアドレスとして設定して送信する。   For example, when transmitting a telnet packet 5-6, the terminal 7-1 confirms the packet destination port number, determines the default gateway IP address B by referring to the default gateway determination table, and determines the default gateway IP address. The MAC address Bmac corresponding to B is set as the destination MAC address and transmitted.

ルーティングノード1は、実施の形態1と同様の動作により、パケット5−5をIP空間ID#1に対応するIPアドレス空間4−1へ、パケット5−6をIP空間ID#2に対応するIPアドレス空間4−2へそれぞれ転送する。なお、図7では、デフォルトゲートウェイ判定テーブルをトランスポート層プロトコルPort番号とデフォルトゲートウェイIPアドレスとの対応としているが、トランスポート層プロトコルPort番号とデフォルトゲートウェイIPアドレスに対応するMACアドレスとの対応として保持してもよい。以上述べた以外の本実施の形態の動作は実施の形態1と同様である。   The routing node 1 performs the same operation as that of the first embodiment, the packet 5-5 to the IP address space 4-1 corresponding to the IP space ID # 1, and the packet 5-6 to the IP corresponding to the IP space ID # 2. Transfer to address space 4-2. In FIG. 7, the default gateway determination table is associated with the transport layer protocol Port number and the default gateway IP address, but is retained as the correspondence between the transport layer protocol Port number and the MAC address corresponding to the default gateway IP address. May be. The operations of the present embodiment other than those described above are the same as those of the first embodiment.

なお、実施の形態2では、セッション種別を用いてパケットの種別を判定し、本実施の形態では、トランスポート層プロトコルPort番号に基づいてパケットの種別を判定しているが、これら以外のパラメータによりパケットの種別を判定することとし、パケットの種別ごとにデフォルトゲートウェイIPアドレスを定めておくようにしてもよい。   In the second embodiment, the packet type is determined using the session type, and in this embodiment, the packet type is determined based on the transport layer protocol Port number. The packet type may be determined, and a default gateway IP address may be determined for each packet type.

以上のように、本実施の形態では、端末7−1,7−2が、トランスポート層プロトコルPort番号とデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持し、送信パケットの宛先ポート番号に基づいてデフォルトゲートウェイIPアドレスを決定して対応するMACアドレスを宛先MACアドレスとして送信パケットに格納するようにした。そのため、端末7−1,7−2は、複数のIPアドレス空間をトランスポート層プロトコル毎に使い分けることができる。   As described above, in the present embodiment, the terminals 7-1 and 7-2 hold the correspondence between the transport layer protocol Port number and the default gateway IP address as the default gateway determination table, and the destination port number of the transmission packet The default gateway IP address is determined based on the MAC address, and the corresponding MAC address is stored in the transmission packet as the destination MAC address. Therefore, the terminals 7-1 and 7-2 can use a plurality of IP address spaces for each transport layer protocol.

実施の形態4.
図8は、本発明にかかる通信システムの実施の形態4のアドレス空間共有方法の概念を示す図である。本実施の形態の通信システムは、実施の形態1と同様のルーティングノード1と、端末8−1,8−2と、実施の形態1と同様のL2SW3と、を備える。なお、図8では、端末を2台とし、L2SW3を1台としているが、ルーティングノード1が収容する端末の数や、端末とルーティングノード1との経路上に存在するL2SWの数は、これに限定されない。また、ルーティングノード1が収容する装置は、端末に限らず、サーバ等どのような装置であってもよい。
Embodiment 4 FIG.
FIG. 8 is a diagram showing the concept of the address space sharing method according to the fourth embodiment of the communication system according to the present invention. The communication system of the present embodiment includes a routing node 1 similar to that of the first embodiment, terminals 8-1 and 8-2, and L2SW 3 similar to that of the first embodiment. In FIG. 8, there are two terminals and one L2SW3. However, the number of terminals accommodated by the routing node 1 and the number of L2SWs existing on the route between the terminals and the routing node 1 are as follows. It is not limited. The device accommodated by the routing node 1 is not limited to a terminal, and may be any device such as a server.

本実施の形態では、実施の形態1と同様に、端末8−1,8−2が自身の属するサブネットの外にIPパケットを送信する際のパケット送信先となるデフォルトゲートウェイIPアドレスとして、ルーティングノード1のIPアドレスを複数用意する。ルーティングノード1は、これらのIPアドレス毎にIPアドレス空間を割当てておき、デフォルトゲートウェイIPアドレスと対応するIPアドレス空間のIP空間IDとの対応をIP空間ID判定テーブルとして保持しておく。また、ルーティングノード1は、IP空間ID毎にルーティングテーブルを保持する。ルーティングノード1の動作は実施の形態1と同様である。   In the present embodiment, as in the first embodiment, as a default gateway IP address serving as a packet transmission destination when the terminals 8-1 and 8-2 transmit an IP packet outside the subnet to which the terminals 8-1 and 8-2 belong, the routing node A plurality of one IP address is prepared. The routing node 1 allocates an IP address space for each of these IP addresses, and holds the correspondence between the default gateway IP address and the IP space ID of the corresponding IP address space as an IP space ID determination table. Further, the routing node 1 holds a routing table for each IP space ID. The operation of the routing node 1 is the same as that of the first embodiment.

本実施の形態では、セッション種別(勘定系アプリケーション、社内情報系アプリケーション、VoIPなど)毎に、サブネットマスクの範囲を決定するサブネットマスクとデフォルトゲートウェイIPアドレスとを定めて登録しておく。端末8−1,8−2では、セッション種別とサブネットマスクとデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持する。   In this embodiment, a subnet mask and a default gateway IP address for determining a subnet mask range are determined and registered for each session type (accounting application, in-house information application, VoIP, etc.). The terminals 8-1 and 8-2 hold the correspondence between the session type, subnet mask, and default gateway IP address as a default gateway determination table.

端末8−1,8−2は、パケットを送信する際、当該パケットのセッション種別を確認し、デフォルトゲートウェイ判定テーブルを参照して該当のデフォルトゲートウェイIPアドレスとサブネットマスクを決定する。そして、端末8−1,8−2は、当該パケットの宛先MACアドレスとサブネットマスクとに基づいてサブネット外への送信パケットであるか否かを判定する。サブネット外への送信パケットであると判定した場合、端末8−1,8−2は、決定したデフォルトゲートウェイIPアドレスに対応するMACアドレスを宛先MACアドレスとして設定してルーティングノード1へパケットを転送する。一方、サブネット外への送信パケットでないと判定した場合は、宛先MACアドレスを、決定したデフォルトゲートウェイIPアドレスに対応するMACアドレスに変更せずそのまま(サブネット内のアドレス)としてサブネット内に転送する。   When transmitting a packet, the terminals 8-1 and 8-2 confirm the session type of the packet and refer to the default gateway determination table to determine the corresponding default gateway IP address and subnet mask. Then, the terminals 8-1 and 8-2 determine whether the packet is a transmission packet outside the subnet based on the destination MAC address and the subnet mask of the packet. If it is determined that the packet is a transmission packet outside the subnet, the terminals 8-1 and 8-2 set the MAC address corresponding to the determined default gateway IP address as the destination MAC address and transfer the packet to the routing node 1. . On the other hand, if it is determined that the packet is not a transmission packet outside the subnet, the destination MAC address is transferred to the subnet as it is (address within the subnet) without changing to the MAC address corresponding to the determined default gateway IP address.

ここでは、例えば、勘定系アプリケーションについては、デフォルトゲートウェイIPアドレスA、サブネットマスク(Net mask)255.255.255.255とし、VoIPについては、デフォルトゲートウェイIPアドレスC、サブネットマスク(Net mask)0.0.0.0とし、社内情報系アプリケーションについてはデフォルトゲートウェイIPアドレスB、サブネットマスク(Net mask)255.0.0.0と定めておくとする。   Here, for example, the default gateway IP address A and subnet mask (Net mask) 255.255.255.255 are set for the accounting application, and the default gateway IP address C and subnet mask (Net mask) 0. It is assumed that the internal information system application is defined as default gateway IP address B and subnet mask (Net mask) 255.0.0.0.

例えば、端末8−1は、勘定系アプリケーションのパケット5−7を送信する場合、パケット5−7のセッション種別とデフォルトゲートウェイ判定テーブルとに基づいて、デフォルトゲートウェイIPアドレスA、Net mask 255.255.255.255と決定する。Net maskは255.255.255.255であるため、あらゆる宛先の送信パケットはすべてサブネット外の宛先への送信パケットと判定され、デフォルトゲートウェイIPアドレスAに対応するMACアドレスAmacを宛先MACアドレスに設定してパケット5−7を送信する。   For example, when the terminal 8-1 transmits the packet 5-7 of the accounting application, based on the session type and the default gateway determination table of the packet 5-7, the default gateway IP address A, Net mask 255.255. It is determined to be 255.255. Since Net mask is 255.255.255.255, all transmission packets of all destinations are determined to be transmission packets to destinations outside the subnet, and MAC address Amac corresponding to default gateway IP address A is set as the destination MAC address. Then, packet 5-7 is transmitted.

また、端末8−1は、社内情報系アプリケーションのパケット5−8を送信する場合、パケット5−8のセッション種別とデフォルトゲートウェイ判定テーブルとに基づいて、デフォルトゲートウェイIPアドレスB、Net mask 255.0.0.0と決定する。Net maskは255.0.0.0であるため、宛先IPアドレスの最上位桁がxとなるアドレス(x.*.*.*:*はいくつでも可)以外であるパケットを、サブネット外の宛先への送信パケットと判定され、デフォルトゲートウェイIPアドレスBに対応するMACアドレスBmacを宛先MACアドレスに設定してパケット5−8を送信する。宛先IPアドレスが、最上位桁がxとなるアドレス(x.*.*.*)の場合は、サブネット内に転送される。図8では、パケット5−8の宛先IPアドレスの最上位桁がxとなるアドレス以外であった場合を示している。   Further, when the terminal 8-1 transmits the packet 5-8 of the in-house information system application, based on the session type and the default gateway determination table of the packet 5-8, the default gateway IP address B, Net mask 255.0 0.0. Since Net mask is 255.0.0.0, a packet other than an address (x. *. *. *: * Can be any number) other than the address where the most significant digit of the destination IP address is x The packet is determined to be a transmission packet to the destination, the MAC address Bmac corresponding to the default gateway IP address B is set as the destination MAC address, and the packet 5-8 is transmitted. When the destination IP address is an address (x. *. *. *) Whose most significant digit is x, it is transferred within the subnet. FIG. 8 shows a case where the most significant digit of the destination IP address of the packet 5-8 is other than an address with x.

また、端末8−1は、VoIPのパケット5−9を送信する場合、パケット5−9のセッション種別とデフォルトゲートウェイ判定テーブルとに基づいて、デフォルトゲートウェイIPアドレスC、Net mask 0.0.0.0と決定する。Net maskは0.0.0.0であるため、あらゆる宛先の送信パケットはすべてサブネット内の宛先への送信パケットと判定されパケット5−9はサブネット内に転送される。   Further, when the terminal 8-1 transmits the VoIP packet 5-9, based on the session type of the packet 5-9 and the default gateway determination table, the terminal 8-1 has the default gateway IP address C, Net mask 0.0. 0 is determined. Since the Net mask is 0.0.0.0, all transmission packets of any destination are determined to be transmission packets to the destination in the subnet, and the packet 5-9 is transferred into the subnet.

ルーティングノード1は、実施の形態1と同様の動作により、パケット5−8をIP空間ID#1のIPアドレス空間4−1へ、パケット5−9をIP空間ID#2のIPアドレス空間4−2へそれぞれ転送する。なお、図8では、デフォルトゲートウェイ判定テーブルをセッション種別とサブネットマスクとデフォルトゲートウェイIPアドレスとの対応としているが、セッション種別とサブネットマスクとデフォルトゲートウェイIPアドレスに対応するMACアドレスとの対応として保持してもよい。以上述べた以外の本実施の形態の動作は実施の形態1と同様である。   Routing node 1 operates in the same manner as in the first embodiment, packet 5-8 to IP address space 4-1 of IP space ID # 1, and packet 5-9 to IP address space 4- of IP space ID # 2. 2 respectively. In FIG. 8, the default gateway determination table is associated with the session type, subnet mask, and default gateway IP address, but is retained as the correspondence between the session type, subnet mask, and MAC address corresponding to the default gateway IP address. Also good. The operations of the present embodiment other than those described above are the same as those of the first embodiment.

以上のように、本実施の形態では、端末8−1,8−2が、セッション種別とサブネットマスクとデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持し、送信パケットのセッション種別に基づいてサブネットマスクを選択し、宛先IPアドレスとサブネットマスクに基づいてサブネット外の宛先への送信パケットか否かを判定し、サブネット外の宛先の場合に、デフォルトゲートウェイIPアドレスに対応するMACアドレスを宛先MACアドレスとして送信パケットに格納するようにした。そのため、セッション種別毎にサブネット範囲の大きさを設定することができ、セッション種別毎にルーティングノードに送信されるIPパケットトラヒック量を増減できる。これにより、ルーティングノード1の負荷軽減とセッション種別に応じた適切なパケット転送ルートを適用することができる。   As described above, in the present embodiment, the terminals 8-1 and 8-2 hold the correspondence between the session type, the subnet mask, and the default gateway IP address as the default gateway determination table, and are based on the session type of the transmission packet. Select a subnet mask, determine whether the packet is a transmission packet to a destination outside the subnet based on the destination IP address and the subnet mask, and if the destination is outside the subnet, specify the MAC address corresponding to the default gateway IP address as the destination. The MAC address is stored in the transmission packet. Therefore, the size of the subnet range can be set for each session type, and the amount of IP packet traffic transmitted to the routing node can be increased or decreased for each session type. Thereby, it is possible to apply an appropriate packet transfer route corresponding to the load reduction of the routing node 1 and the session type.

実施の形態5.
図9は、本発明にかかる通信システムの実施の形態5のアドレス空間共有方法の概念を示す図である。本実施の形態の通信システムは、実施の形態1と同様のルーティングノード1と、端末9−1,9−2と、実施の形態1と同様のL2SW3と、を備える。なお、図9では、端末を2台とし、L2SW3を1台としているが、ルーティングノード1が収容する端末の数や、端末とルーティングノード1との経路上に存在するL2SWの数は、これに限定されない。また、ルーティングノード1が収容する装置は、端末に限らず、サーバ等どのような装置であってもよい。
Embodiment 5 FIG.
FIG. 9 is a diagram showing the concept of the address space sharing method according to the fifth embodiment of the communication system according to the present invention. The communication system of the present embodiment includes a routing node 1 similar to that of the first embodiment, terminals 9-1 and 9-2, and L2SW3 similar to that of the first embodiment. In FIG. 9, two terminals and one L2SW 3 are used. However, the number of terminals accommodated by the routing node 1 and the number of L2SWs existing on the route between the terminals and the routing node 1 are as follows. It is not limited. The device accommodated by the routing node 1 is not limited to a terminal, and may be any device such as a server.

本実施の形態では、実施の形態1と同様に、端末8−1,8−2が自身の属するサブネットの外にIPパケットを送信する際のパケット送信先となるデフォルトゲートウェイIPアドレスとして、ルーティングノード1のIPアドレスを複数用意する。ルーティングノード1は、これらのIPアドレス毎にIPアドレス空間を割当てておき、デフォルトゲートウェイIPアドレスと対応するIPアドレス空間のIP空間IDとの対応をIP空間ID判定テーブルとして保持しておく。また、ルーティングノード1は、IP空間ID毎にルーティングテーブルを保持する。ルーティングノード1の動作は実施の形態1と同様である。   In the present embodiment, as in the first embodiment, as a default gateway IP address serving as a packet transmission destination when the terminals 8-1 and 8-2 transmit an IP packet outside the subnet to which the terminals 8-1 and 8-2 belong, the routing node A plurality of one IP address is prepared. The routing node 1 allocates an IP address space for each of these IP addresses, and holds the correspondence between the default gateway IP address and the IP space ID of the corresponding IP address space as an IP space ID determination table. Further, the routing node 1 holds a routing table for each IP space ID. The operation of the routing node 1 is the same as that of the first embodiment.

本実施の形態では、トランスポート層プロトコルPort番号毎に、サブネットマスクの範囲を決定するサブネットマスクとデフォルトゲートウェイIPアドレスとを定めて登録しておく。端末9−1,9−2では、トランスポート層プロトコルPort番号とサブネットマスクとデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持する。ここでは、例えば、ftpについては、デフォルトゲートウェイIPアドレスA、サブネットマスク(Net mask)255.255.255.255とし、telnetについては、デフォルトゲートウェイIPアドレスC、サブネットマスク(Net mask)0.0.0.0とし、httpについてはデフォルトゲートウェイIPアドレスB、サブネットマスク(Net mask)255.0.0.0と定めておくとする。   In the present embodiment, for each transport layer protocol Port number, a subnet mask for determining a subnet mask range and a default gateway IP address are determined and registered. The terminals 9-1 and 9-2 hold the correspondence between the transport layer protocol Port number, the subnet mask, and the default gateway IP address as a default gateway determination table. Here, for example, for ftp, default gateway IP address A and subnet mask (Net mask) 255.255.255.255 are used, and for telnet, default gateway IP address C, subnet mask (Net mask) 0.0. It is assumed that 0.0 is set as default gateway IP address B and subnet mask (Net mask) 255.0.0.0.

端末9−1は、パケットを送信する際、そのパケットの宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照して該当するデフォルトゲートウェイIPアドレスとサブネットマスクを決定する。そして、実施の形態4と同様に、パケットの宛先IPアドレスとサブネットマスクに基づいて、サブネット外へ転送するか否かを判定し、サブネット外へ転送する場合には、決定したデフォルトゲートウェイIPアドレスに対応するMACアドレスを宛先MACアドレスとして設定してルーティングノード1へ転送する。   When transmitting a packet, the terminal 9-1 confirms the destination port number of the packet, and refers to the default gateway determination table to determine the corresponding default gateway IP address and subnet mask. Then, as in the fourth embodiment, it is determined whether or not to transfer outside the subnet based on the destination IP address and subnet mask of the packet, and when transferring outside the subnet, the determined default gateway IP address is set. The corresponding MAC address is set as the destination MAC address and transferred to the routing node 1.

例えば、端末9−1は、ftpのパケット5−10を送信する場合、そのパケットの宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイIPアドレスA、Net mask 255.255.255.255と決定する。Net mask 255.255.255.255であるため、あらゆる宛先の送信パケットはすべてサブネット外の宛先への送信パケットと判定され、デフォルトゲートウェイIPアドレスAに対応するMACアドレスAmacを宛先MACアドレスとして設定してルーティングノード1へ転送される。   For example, when transmitting the ftp packet 5-10, the terminal 9-1 confirms the destination port number of the packet, refers to the default gateway determination table, and default gateway IP address A, Net mask 255.255.255. .255. Since the net mask is 255.255.255.255, all destination transmission packets are determined as transmission packets to destinations outside the subnet, and the MAC address Amac corresponding to the default gateway IP address A is set as the destination MAC address. To the routing node 1.

また、端末9−1は、httpのパケット5−11を送信する場合、そのパケットの宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイIPアドレスB、Net mask 255.0.0.0と決定する。従って、宛先IPアドレスがアドレスの最上位桁がx以外である宛先の送信パケットはサブネット外の宛先への送信パケットと判定され、最上位桁がxである宛先の送信パケットはサブネット内への送信パケットと判定される。宛先IPアドレスがアドレスの最上位桁がx以外である場合、パケット5−11は、デフォルトゲートウェイIPアドレスBに対応するMACアドレスBmacを宛先MACアドレスとして設定してルーティングノード1へ転送される。   Further, when the terminal 9-1 transmits the http packet 5-11, the terminal 9-1 checks the destination port number of the packet, refers to the default gateway determination table, and receives the default gateway IP address B, Net mask 255.0.0. .0 is determined. Therefore, a destination transmission packet whose destination IP address has the highest digit of the address other than x is determined as a transmission packet to a destination outside the subnet, and a destination transmission packet whose highest digit is x is transmitted to the subnet. It is determined as a packet. When the destination IP address is other than x, the packet 5-11 is transferred to the routing node 1 with the MAC address Bmac corresponding to the default gateway IP address B set as the destination MAC address.

また、端末9−1は、telnetのパケット5−12を送信する場合、そのパケット宛先Port番号を確認し、デフォルトゲートウェイ判定テーブルを参照してデフォルトゲートウェイアドレスC、Net mask 0.0.0.0と決定する。Net mask 0.0.0.0なので、あらゆる宛先のパケット5−12はすべてサブネット内の宛先への送信パケットと判定され、ルーティングノード1に送信されずにサブネット内に送信される。   Further, when transmitting the telnet packet 5-12, the terminal 9-1 confirms the packet destination port number, refers to the default gateway determination table, and determines the default gateway address C and Net mask 0.0.0.0. And decide. Since Net mask 0.0.0.0, all destination packets 5-12 are determined to be transmission packets to destinations within the subnet, and are not transmitted to the routing node 1 but are transmitted within the subnet.

ルーティングノード1は、実施の形態1と同様の動作により、パケット5−10をIP空間ID#1のIPアドレス空間4−1へ、パケット5−11をIP空間ID#2のIPアドレス空間4−2へそれぞれ転送する。なお、図9では、デフォルトゲートウェイ判定テーブルをセッション種別とサブネットマスクとデフォルトゲートウェイIPアドレスとの対応としているが、セッション種別とサブネットマスクとデフォルトゲートウェイIPアドレスに対応するMACアドレスとの対応として保持してもよい。以上述べた以外の本実施の形態の動作は実施の形態1と同様である。   The routing node 1 performs the same operation as that of the first embodiment, the packet 5-10 to the IP address space 4-1 of the IP space ID # 1, and the packet 5-11 to the IP address space 4- of the IP space ID # 2. 2 respectively. In FIG. 9, the default gateway determination table is associated with the session type, subnet mask, and default gateway IP address, but is retained as the correspondence between the session type, subnet mask, and MAC address corresponding to the default gateway IP address. Also good. The operations of the present embodiment other than those described above are the same as those of the first embodiment.

以上のように、本実施の形態では、端末9−1,9−2が、トランスポート層プロトコルPort番号とサブネットマスクとデフォルトゲートウェイIPアドレスとの対応をデフォルトゲートウェイ判定テーブルとして保持し、送信パケットの宛先Port番号に基づいてサブネットマスクを選択し、宛先IPアドレスとサブネットマスクに基づいてサブネット外の宛先への送信パケットか否かを判定し、サブネット外の宛先の場合に、デフォルトゲートウェイIPアドレスに対応するMACアドレスを宛先MACアドレスとして送信パケットに格納するようにした。そのため、トランスポート層プロトコル毎にサブネット範囲の大きさを設定することができ、トランスポート層プロトコル毎にルーティングノードに送信されるIPパケットトラヒック量を増減できる。これにより、ルーティングノード1の負荷軽減とトランスポート層プロトコルに応じた適切なパケット転送ルートを適用することができる。   As described above, in the present embodiment, the terminals 9-1 and 9-2 hold the correspondence between the transport layer protocol Port number, the subnet mask, and the default gateway IP address as the default gateway determination table, and Select a subnet mask based on the destination port number, determine whether the packet is a transmission packet to a destination outside the subnet based on the destination IP address and subnet mask, and correspond to the default gateway IP address if the destination is outside the subnet The MAC address to be stored is stored in the transmission packet as the destination MAC address. Therefore, the size of the subnet range can be set for each transport layer protocol, and the amount of IP packet traffic transmitted to the routing node can be increased or decreased for each transport layer protocol. Thereby, it is possible to apply an appropriate packet transfer route according to the load reduction of the routing node 1 and the transport layer protocol.

1,101 ルーティングノード
2−1,2−2,6−1,6−2,7−1,7−2,8−1,8−2,9−1,9−2,102,103 端末
3,104 L2SW
4−1,4−2,201,202 IPアドレス空間
5−1〜5−12 パケット
11,12,111,112 送信ポート
301〜304 経路
1,101 Routing node 2-1,2-2,6-1,6-2,7-1,7-2,8-1,8-2,9-1,9-2,102,103 Terminal 3 , 104 L2SW
4-1, 4-2, 201, 202 IP address space 5-1 to 5-12 Packet 11, 12, 111, 112 Transmission port 301 to 304 Route

Claims (6)

パケットを送信する通信装置と前記パケットを2つ以上のアドレス空間のうちの選択したアドレス空間へ転送する中継装置とを備える通信システムであって、
前記中継装置は、前記通信装置に対するデフォルトゲートウェイとしてのアドレスであるデフォルトゲートウェイアドレスを2つ以上有し、前記デフォルトゲートウェイアドレスごとに対応する前記アドレス空間の識別子を定め、
前記中継装置および前記通信装置は、前記デフォルトゲートウェイアドレスと前記識別子との対応を空間判定情報として保持し、
前記通信装置は、前記空間判定情報に基づいて、送信先とするアドレス空間に対応する前記デフォルトゲートウェイアドレスを決定し、決定した前記デフォルトゲートウェイアドレスを前記パケットに格納して送信し、
前記中継装置は、受信した前記パケットに格納されたデフォルトゲートウェイアドレスと前記空間判定情報とに基づいて選択したアドレス空間へ当該パケットを転送する、
ことを特徴とする通信システム。
A communication system comprising a communication device that transmits a packet and a relay device that transfers the packet to a selected address space of two or more address spaces,
The relay device has two or more default gateway addresses that are addresses as a default gateway for the communication device, and determines an identifier of the address space corresponding to each default gateway address,
The relay device and the communication device hold a correspondence between the default gateway address and the identifier as space determination information,
The communication device determines the default gateway address corresponding to an address space as a transmission destination based on the space determination information, stores the determined default gateway address in the packet, and transmits the packet.
The relay device transfers the packet to an address space selected based on a default gateway address and the space determination information stored in the received packet;
A communication system characterized by the above.
前記通信装置は、アプリケーションと前記デフォルトゲートウェイアドレスとの対応をデフォルトゲートウェイ判定情報として保持し、前記デフォルトゲートウェイ判定情報と前記パケットに適用されたアプリケーションとに基づいて、当該パケットに格納するデフォルトゲートウェイアドレスを決定する、ことを特徴とする請求項1に記載の通信システム。   The communication apparatus holds a correspondence between an application and the default gateway address as default gateway determination information, and sets a default gateway address to be stored in the packet based on the default gateway determination information and the application applied to the packet. The communication system according to claim 1, wherein the communication system is determined. 前記通信装置は、トランスポート層プロトコルPort番号と前記デフォルトゲートウェイアドレスとの対応をデフォルトゲートウェイ判定情報として保持し、前記デフォルトゲートウェイ判定情報と前記パケットの宛先Port番号とに基づいて、当該パケットに格納するデフォルトゲートウェイアドレスを決定する、ことを特徴とする請求項1に記載の通信システム。   The communication apparatus retains the correspondence between the transport layer protocol Port number and the default gateway address as default gateway determination information, and stores it in the packet based on the default gateway determination information and the destination Port number of the packet The communication system according to claim 1, wherein a default gateway address is determined. 前記通信装置は、アプリケーションごとにサブネット範囲を定めておき、前記パケットの宛先アドレスが当該パケットに適用されたアプリケーションに対応するサブネット範囲内である場合には当該パケットをサブネット内に転送し、前記パケットの宛先アドレスが当該パケットに適用されたアプリケーションに対応するサブネット範囲外である場合に当該パケットに前記デフォルトゲートウェイアドレスを格納して前記中継装置へ送信する、ことを特徴とする請求項2に記載の通信システム。   The communication device defines a subnet range for each application, and when the destination address of the packet is within the subnet range corresponding to the application applied to the packet, transfers the packet into the subnet, The destination address of a packet is outside the subnet range corresponding to the application applied to the packet, and the default gateway address is stored in the packet and transmitted to the relay device. Communications system. 前記通信装置は、トランスポート層プロトコルPort番号ごとにサブネット範囲を定めておき、前記パケットの宛先アドレスが当該パケットの宛先Port番号に対応するサブネット範囲内である場合には当該パケットをサブネット内に転送し、前記パケットの宛先アドレスが当該パケットの宛先Port番号に対応するサブネット範囲外である場合に当該パケットに前記デフォルトゲートウェイアドレスを格納して前記中継装置へ送信する、ことを特徴とする請求項3に記載の通信システム。   The communication apparatus determines a subnet range for each transport layer protocol Port number, and forwards the packet into the subnet when the destination address of the packet is within the subnet range corresponding to the destination Port number of the packet. 4. When the destination address of the packet is outside the subnet range corresponding to the destination port number of the packet, the default gateway address is stored in the packet and transmitted to the relay device. The communication system according to 1. パケットを送信する通信装置と前記パケットを2つ以上のアドレス空間のうちの選択したアドレス空間へ転送する中継装置とを備える通信システムにおけるアドレス空間共有方法であって、
前記通信装置に対するデフォルトゲートウェイとしてのアドレスであるデフォルトゲートウェイアドレスを2つ以上設定し、前記デフォルトゲートウェイアドレスごとに対応する前記アドレス空間の識別子を定める設定ステップと、
前記中継装置および前記通信装置は、前記デフォルトゲートウェイアドレスと前記識別子との対応を空間判定情報として保持する判定情報保持ステップと、
前記通信装置が、前記空間判定情報に基づいて、送信先とするアドレス空間に対応する前記デフォルトゲートウェイアドレスを決定し、決定した前記デフォルトゲートウェイアドレスを前記パケットに格納して送信するパケット送信ステップと、
前記中継装置が、受信した前記パケットに格納されたデフォルトゲートウェイアドレスと前記空間判定情報とに基づいて選択したアドレス空間へ当該パケットを転送する転送ステップと、
を含むことを特徴とアドレス空間共有方法。
An address space sharing method in a communication system comprising a communication device that transmits a packet and a relay device that transfers the packet to a selected address space of two or more address spaces,
Setting two or more default gateway addresses, which are addresses as default gateways for the communication device, and setting an identifier of the address space corresponding to each default gateway address;
The relay device and the communication device have a determination information holding step for holding a correspondence between the default gateway address and the identifier as space determination information,
A packet transmission step in which the communication device determines the default gateway address corresponding to an address space as a transmission destination based on the space determination information, and stores and transmits the determined default gateway address in the packet;
A forwarding step in which the relay device forwards the packet to an address space selected based on a default gateway address stored in the received packet and the space determination information;
And address space sharing method.
JP2011058476A 2011-03-16 2011-03-16 Communication system and address space sharing method Withdrawn JP2012195783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011058476A JP2012195783A (en) 2011-03-16 2011-03-16 Communication system and address space sharing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011058476A JP2012195783A (en) 2011-03-16 2011-03-16 Communication system and address space sharing method

Publications (1)

Publication Number Publication Date
JP2012195783A true JP2012195783A (en) 2012-10-11

Family

ID=47087286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011058476A Withdrawn JP2012195783A (en) 2011-03-16 2011-03-16 Communication system and address space sharing method

Country Status (1)

Country Link
JP (1) JP2012195783A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015049543A (en) * 2013-08-29 2015-03-16 ヤフー株式会社 Information processing device and information processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015049543A (en) * 2013-08-29 2015-03-16 ヤフー株式会社 Information processing device and information processing method
US9197620B2 (en) 2013-08-29 2015-11-24 Yahoo Japan Corporation Information processing device and information processing method

Similar Documents

Publication Publication Date Title
US10116556B2 (en) Techniques for routing and forwarding between multiple virtual routers implemented by a single device
US8995444B2 (en) Method and system for extending routing domain to non-routing end stations
US7636360B2 (en) Dynamic VLAN ID assignment and packet transfer apparatus
JP4692258B2 (en) Router device and communication system
JP5132059B2 (en) Packet relay method and packet relay system
EP1693996B1 (en) Automatic discovery of psuedo-wire peer addresses in ethernet-based networks
WO2007006195A1 (en) An access device routing decive and method thereof supporting stateless address configuration in communication network
CN110061915B (en) Method and system for virtual link aggregation across multiple fabric switches
CN101043430B (en) Method for converting network address between equipments
WO2011032447A1 (en) Method, system and communication terminal for implementing inter-communication between new network and internet
CN102291305B (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
WO2013141191A1 (en) Control apparatus, communication system, node control method and program
CN112822097A (en) Message forwarding method, first network device and first device group
KR100728292B1 (en) Apparatus for Control of Virtual LAN and Method thereof
JP4777998B2 (en) Method and apparatus for implementing signaling proxy
JP2005057693A (en) Network virtualizing system
JP2012195783A (en) Communication system and address space sharing method
CN102801628A (en) Data forwarding method and system in GRE (General Routing Encapsulation) tunnels
JP2006514496A (en) Virtual private network interconnection method in disconnected mode
KR102211282B1 (en) Methods of data routing and a switch thereof
JP3808471B2 (en) Network and router apparatus and address notification method used therefor
JP2010141919A (en) Packet transfer device
JP5219967B2 (en) Internetwork equipment
KR100772182B1 (en) ROUTER AND METHOD FOR PROCESSING IPv4 PACKET EGREGATING BETWEEN OUTER TRAFFIC AND INNER TRAFFIC THEREOF
JP2003134153A (en) Intra-ip-vpn access control system and method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140603