WO2002101998A1 - Routing software, communication program, communication method, and routing device - Google Patents

Routing software, communication program, communication method, and routing device Download PDF

Info

Publication number
WO2002101998A1
WO2002101998A1 PCT/JP2001/004795 JP0104795W WO02101998A1 WO 2002101998 A1 WO2002101998 A1 WO 2002101998A1 JP 0104795 W JP0104795 W JP 0104795W WO 02101998 A1 WO02101998 A1 WO 02101998A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
routing
host
sub
network
Prior art date
Application number
PCT/JP2001/004795
Other languages
French (fr)
Japanese (ja)
Inventor
Kuniaki Kondo
Original Assignee
Kuniaki Kondo
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 Kuniaki Kondo filed Critical Kuniaki Kondo
Priority to JP2003504609A priority Critical patent/JPWO2002101998A1/en
Priority to PCT/JP2001/004795 priority patent/WO2002101998A1/en
Publication of WO2002101998A1 publication Critical patent/WO2002101998A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present invention relates to a method for causing a computer to execute routing of a packet used for communication by the Internet protocol, software, an apparatus for performing the routing, and an Internet protocol.
  • the present invention relates to a program for causing a computer to execute communication. Background art
  • a computer that performs communication (hereinafter referred to as “host”) is assigned a number represented by a 4-byte IP address.
  • the host obtains the IP address of the other host and transmits the data to be sent.
  • the packet is divided into packets, and the IP address of the other host is set as the destination IP address in the header of the packet, and the IP address of the host is set as the source IP address in the packet. Send packets to the network.
  • the remote host may be connected to the same network as its own host, or may be connected to a different network.
  • packet transfer In order to communicate with a host connected to a different network, packet transfer must be controlled at the boundary of different networks. Controlling the transfer of buckets between these different networks is called “routing. Ning ".
  • the Internet When two different networks are connected, one may be called the “internal network” and the other as the “external network”. In general, the smaller of the two different networks is called the internal network, and the larger one is called the external network.
  • the home network when a home network is connected to a network called the Internet, the home network is called an internal network, and a network called the Internet is called an internal network. It will be called an external network.
  • the internal network and the external network are not always connected.
  • the internal network that is a home network and the external network such as the Internet are always connected. It is not connected.
  • assigning a different IP address to a host connected to the internal network than any host connected to the external network makes the IP address useless.
  • Hosts connected to the internal network are assigned IP addresses that are classified as “private addressless” because they are wasteful and wasteful.
  • a private address can uniquely identify a host only within the internal network, but uniquely identifies the host throughout the network, including the internal and external networks. Can not.
  • an IP address whose host is uniquely identified throughout the network is called a “global address”.
  • a host assigned a private address cannot be directly identified with a host connected to an external network because it is not uniquely identified throughout the network. Therefore, a method called “network address conversion (network address translation)” or “network address and port translation (network address translation)” is used. Used. This These methods assign a global address to the network interface on the external network side of the computer or device that routes packets between the internal network and the external network.
  • network address conversion network address translation
  • network address and port translation network address translation
  • the present invention enables a host connected to an external network to identify a host connected to an internal network and start communication, and provides a communication protocol. The purpose is to ensure that all application programs are connected to the internal network and that private addresses can be used on the assigned host. Also, a host connected to the internal network may identify a host connected to another internal network via the external network and start communication. It is also an object of the present invention to be able to do so. Disclosure of the invention
  • a sub address is allocated to a host connected to the internal network, separately from the IP address.
  • the packet header contains the subaddress assigned to that specific host. Set as destination subaddress.
  • the IP address of the host to which the destination subaddress is assigned Overwrites the destination IP address of the packet with the packet and sends the packet to the internal network.
  • the IP address of a specific host connected to the internal network is used. Overwrite the destination IP address of the bucket and send the packet to the internal network.
  • the host connected to the internal network can be identified by a sub address in the internal network, the internal network Hosts connected to the network do not need to be assigned different IP addresses. Therefore, the same IP address is temporarily assigned to the host connected to the internal network, and the internal network is used to route the bucket between the internal network and the external network.
  • the global IP address may be assigned as an official IP address to a host connected to the internal network.
  • FIG. 1 shows that the external network and the internal network are connected by a routing computer.
  • Fig. 2 shows the structure of the first part of the packet used for communication.
  • Fig. 3 shows the situation where the sub-address is assigned to the host connected to the internal network.
  • Fig. 4 shows the IP address assigned to the host connected to the internal network.
  • FIG. 5 is a diagram showing an example in which the source subaddress and the destination address are set in the packet in order to set them in the optional portion of the bucket.
  • Fig. 6 is a flowchart of a program that causes a computer to execute routing.
  • FIG. 1 shows that the external network and the internal network are connected by a routing computer.
  • FIG. 2 shows the structure of the first part of the packet used for communication.
  • Fig. 3 shows the situation where the sub-address is assigned to the host connected to the internal network.
  • Fig. 4 shows the IP address assigned to the host connected to the internal network.
  • FIG. 7 is a flowchart of a program for executing communication with a host to which a sub-address is assigned.
  • Fig. 8 shows a state where the same temporary IP address is assigned to a host connected to the internal network.
  • Fig. 9 shows an example of a table showing the correspondence between the MAC address and the subaddress of the host connected to the internal network.
  • Figure 10 shows a state where a formal IP address is assigned to a host connected to the internal network.
  • Fig. 11 shows that the same IP address is assigned to the host connected to the internal network and routing is performed with the external host. This is a flowchart of the processing to be performed.
  • Fig. 8 shows a state where the same temporary IP address is assigned to a host connected to the internal network.
  • Fig. 9 shows an example of a table showing the correspondence between the MAC address and the subaddress of the host connected to the internal network.
  • Figure 10 shows a state where a formal IP address is assigned to a host connected to
  • FIG. 12 shows the configuration of a device that assigns different IP addresses and different sub-addresses to hosts connected to the internal network and performs packet routing.
  • FIG. 13 shows the configuration of a device that assigns the same IP address to a host connected to the internal network and performs packet routing.
  • Fig. 1 shows that the routing computer 101 is connected to the external network 103 connected to the Internet 102 and the internal network 104, and to the internal network. This shows a state in which the hosts 105, 106, and 107 are connected, and the host 108 is connected to the external network.
  • the internal network hosts 105, 106, and 107 have 192.16.80.0.2, 192.1.168.0.0.3, and 192, respectively.
  • a private address of 16.8.0.4 is assigned, and the internal interface of the computer 101 that performs routing is connected to the network interface on the side of 104.
  • the private address is assigned to 68.1.1, and the network interface on the external network 103 side is connected to the network interface on the 3rd side.
  • a global address is assigned.
  • Figure 2 shows the structure of a packet used by a host connected to the network to communicate.
  • the first part of the bucket (called the “header”) contains 32 bits. It is divided as one unit, and the source IP address is set in the part of 201 and the destination IP address is set in the part of 202.
  • the portion of 203 is called an option, and In the invention, it is used to store the source subaddress and the destination subaddress.
  • Fig. 3 shows the assignment of subaddresses 1, 2, and 3 to hosts 105, 106, and 107 connected to the internal network 104 in Fig. 1, respectively.
  • FIG. When the sub-address is allocated in this way, the computer 101 performing the routing is allocated to the host connected to the internal network as shown in Table 401 shown in FIG. This will hold a table showing the correspondence between the given IP address and the subaddress.
  • the packet sent or received by the host to which the subaddress is assigned is set to the subaddress assigned to that host.
  • One of the methods of setting is, for example, a method of setting in an optional part of a packet. Based on this method, FIG. 5 shows that the subaddress is set in the optional part 203 of the packet in order to set the subaddress to the packet transmitted or received by the host to which the subaddress is assigned. This shows a state where the data is stored. Assuming that the subaddress is represented by 16 bits, the first 16 bits of the optional part contain the source subaddress, which is the subaddress assigned to the host that sent the bucket. The next 16 bits are set to the destination subaddress, which is the subaddress assigned to the host to which the packet is going.
  • FIG. 6 is a flowchart for explaining the operation of a program that causes the computer 101 that performs the routing to execute the routing.
  • step S601 the computer 1 1 is made to wait until a bucket is received. If a packet is received, control is transferred to the computer 101 in step S602, and the packet received from the external network 103 is received from the internal network 104. To determine whether If it is received from the network, the control is shifted to step S603, and if it is received from the internal network, the control is shifted to step S607.
  • the calculator 101 determines whether the destination subaddress is set in the optional part of the packet, and if the destination subaddress is set, step S Transfer control to 604, if not set, step S 6
  • Step 604 is a step of causing the computer 101 to acquire the IP address of the host that should receive the bucket 1 from the destination subaddress with reference to Table 401. In other words, this step is based on the correspondence between the IP address and the subaddress assigned to the host on the internal network and the packet received from the external network 103.
  • This is a destination IP address resolution step for obtaining an IP address from a destination subaddress using the correspondence table.
  • step S605 the IP address obtained in step S604 is overwritten by the computer 101 as the destination IP address of the packet, and the bucket is routed. That is, in this step, the destination IP address in the header of the packet is overwritten with the IP end address obtained in the destination IP address resolution step, and the internal network 104 is executed. This is an inward routing step that routes packets.
  • This destination IP address resolution step for obtaining an IP address from a destination subaddress using the correspondence table.
  • Destination address sub-address is assigned by the address resolution step and the inward routing step when the destination sub-address receives the specified packet from the external network.
  • the bucket can reach the host connected to the specified internal network.
  • step S603 the destination supplement is added to the packet. If it is determined that the IP address of the packet has not been set, control is transferred to step S606, and the IP address of the predetermined default host is changed to the destination IP address of the packet. Causes computer 101 to execute the default routing step that overwrites the address and routes to the internal network. Due to this default routing step, even if a bucket without a destination sub address is received from the external network, the default host that processes the bucket is sent to the default host. The ket can be reached.
  • step S602 when a packet is received from the internal network 104, control is transferred to step S607, and the source IP address is changed to the IP address.
  • the sub-address obtained by referring to the correspondence table of sub-addresses 401 is used as a source suapure and a bucket! , And causes the computer 101 to execute an external routing step for routing to the external network. Due to this external routing step, the packet sent from the host connected to the internal network 104 to the external network 103 always has the source subaddress set. Therefore, when a host connected to the external network receives the bucket, the host can know the sub-address of the host of the communication partner, and can use the sub-address. The response packet can be sent to the host.
  • the host 108 connected to the external network 103 is replaced with the host 108 connected to the internal network.
  • the sub address assigned to the host is set as the destination address in the packet, and the packet can be sent to a specific host connected to the internal network.
  • a computer connected to the internal network is connected to the computer 101 that performs routing. By sending the packet sent from the host to the external network with the subaddress assigned to the host connected to the internal network as the source subaddress. Then, the host connected to the external network can know the subaddress assigned to the host that sent the packet.
  • Fig. 7 shows that the host 108 connected to the external network 103 identifies the host connected to the internal network 104 and transmits first.
  • step S701 the IP address and subaddress of the host to be communicated with are calculated by the host 108 as a computer. That is, step S701 is an address resolution step. If a private address is set for a host connected to the internal network, the host that can be specified by the private address cannot be uniquely identified. In this case, the global address assigned to the network interface connected to the external network 103 of the server is requested. To request this global address, there is a method such as referring to the A record of the domain name server.
  • the host of the communication partner can be specified from the IP address and subaddress set in the packet that received the data. Further, the subaddress assigned to the host connected to the internal network may be obtained by referring to the subaddress recorded in a specific record of the domain name server.
  • the HINFO record is an example of a specific record.
  • step S702 it is determined whether or not to transmit data. If data is to be transmitted, control is transferred to step S703, and if data is to be received, step S706 is performed. Transfer control.
  • step S703 The transmission data is generated, and in step S704, the transmission data is divided into packets, and the packet is obtained in step S701. The IP address and the subaddress are destined.
  • step S705 Execute the destination IP address and destination sub address setting steps to set the destination IP address and destination sub address. Then, in step S705, a packet is transmitted, and in step S708, it is determined whether or not the communication has been completed. If the communication has been completed, the process is terminated. Step S702 Control is shifted. In step SO 2, if data is to be received, the control is shifted to step S 706 to execute the receiving process.In step S 707, the received data is processed. 8 Transfer control.
  • the program that causes the computer to execute the processing in FIG. 7 is not only the host 108 connected to the external network 103 but also the host connected to the internal network 104. It can also be used when communicating with a host connected to a network and to which a subaddress is assigned.
  • step S704 not only the destination IP address and the destination subaddress are set in the packet, but also if the sub-address is set in the own host, the sub-address is set.
  • a source subaddress setting step may be performed in which a packet is set as a source subaddress in a packet.
  • a different IP address is assigned to a host connected to the internal network, but the same IP address is assigned to a host connected to the internal network. May be used.
  • Fig. 8 shows a state where the same IP address is assigned to the internal network, i.e., to the computer 801, which performs routing, to the Internet 8002.
  • the connected external network 803 and the internal network 804 are connected, and the hosts 805, 806, 807 are connected to the internal network.
  • the same IP address as the network interface on the internal network side of the computer 801 that performs routing with the host 805, 806, 807 19.2.168.0 1 is assigned to the network interface on the internal network side of the computer 801, which performs routing, and to the hosts 800, 806, and 807, respectively.
  • 0, 1, 2, and 3 are assigned as addresses.
  • the network interface on the internal network side of the computer 801 that performs the routing is shown.
  • the IP address 0.0.0.0 is assigned, which indicates that the computer 801 that performs routing and the external network 803 are not connected. I have.
  • the destination host is specified by the address in the physical layer.
  • the host is specified by the MAC address. Therefore, as shown in Fig. 9, Table 901 correlating the MAC address with the sub-address is shown in Table 9 You will have it. In the following, it is assumed that the internal network is built on Ethernet, but the same applies to other physical networks.
  • Figure 10 shows a network interface on the external network side of the computer 801 that performs routing, where the computer 801 that performs routing and the external network 803 are connected.
  • 1 3 9 .2 1 3 .9 4 A global address is assigned to the host 805, 806, 807 connected to the internal network. It is a diagram to which a global address of 94 is assigned. Even if the global address is assigned to the host connected to the internal network in this way, the sub address does not change.
  • Fig. 11 shows the routing to the computer 81 that performs routing when the same IP address is assigned to the host connected to the internal network in this way.
  • step S111 a subaddress is assigned to the computer 801 for a host connected to the internal network. That is, step S111 is a sub-address assignment step.
  • this step is executed by the computer 801, it is possible to know which sub address is assigned to the host having which MAC address, and the MAC address as shown in Table 901 is obtained.
  • a correspondence table between addresses and sub-addresses can be created.
  • the same IP address is assigned to the host connected to the internal network.
  • step S1103 the computer 801 causes the computer 81 to wait until a packet is received.
  • step S111 it is determined whether the received packet is received from the internal network 804. If the received packet is received from the internal network 804, Control is transferred to step S111, otherwise control is transferred to step S108.
  • step S1105 it is determined whether or not the IP address assigned in the subaddress assignment step in step S111 is a "temporary IP address". Execute the IP address determination step.
  • a temporary IP address is an IP address that is not a “official IP address”, and a formal IP address is a computer that performs a notifying process.
  • step S1105 The IP address assigned to the network interface on the 3rd side becomes a temporary IP address. If it is determined in step S1105 that the temporary IP address has not been assigned, the control is transferred to step S1107, and the temporary IP address is assigned. If it is determined that the IP address is present, the control is transferred to step S1106, and the formal IP address is assigned to all the hosts connected to the internal network, and step S111 is performed. Transfer control to. In step S1107, an external routing step of overwriting the source IP address of the packet with the formal address assigned in the formal IP address allocation step is executed. This ensures that when a bucket is sent from the internal network 804 to the external network 803, the formal IP address is sourced.
  • a bucket with 1 P address is sent.
  • step SI104 when a packet is received from an external network, an internal routine that sends the packet to the host to which the destination subaddress written in the packet is assigned. Perform the step. Thus, if a host connected to the external network 803 sets a destination subaddress in a packet, the packet reaches the host to which the destination subaddress is assigned. It can be done.
  • step S107 the packets 0 and 0 are connected to the external network 8
  • the host card with which MAC address It is also possible to check whether the packet has been transmitted, obtain the support address of the host from Table 901, and execute a source sub-address setting step of setting the source sub-address of the bucket.
  • the host connected to the external network 803 that has received the packet transmitted from the host connected to the internal network 804 can assign any sub-address to the host connected to the external network 803.
  • FIG. 3 is a block diagram of a routing device 1200.
  • the routing device 12000 includes a destination IP address resolution unit 1203, an inward routing unit 1204, a default routing unit 1205, and an external routing unit. It consists of a directional routing section 1206 and a force.
  • the destination IP address resolution unit 1203 determines the IP address and subaddress assigned to the host connected to the internal network as shown in Table 401 of Figure 4. Refer to the table showing the correspondence, and Obtain the IP address of the host to which the destination subaddress is assigned from the destination subaddress of the bucket received from the work.
  • the internal routing unit overwrites the destination IP address of the bucket header with the IP address obtained by the destination IP address resolution unit 123 and routes it to the internal network.
  • the destination IP address resolution bucket 122 and the inbound routing unit receive a bucket with a destination subaddress from the external network 1221
  • the destination Packets can be routed to hosts connected to the internal network to which the naming subaddress is assigned. If the destination subaddress is not written in the bucket received from the external network 1221, the default hosting section 125 will use the IP address of the predetermined default host. Overwrite the address to the packet's destination IP address for internal network health protection.
  • the packet is routed to the host that processes the packet. Can be.
  • the external routing unit 1206 receives the bucket from the internal network 122 and receives the bucket's source IP address from the internal network as shown in Table 401.
  • the sub address obtained by referring to the table showing the correspondence between the IP address and the sub address assigned to the host connected to the work is set in the packet as the source sub address and externally set. Net ⁇ —Kerting.
  • the source IP address of the packet is transferred to the network interface on the external network 1221 side of the routing device. You may overwrite the IP address assigned to one face.
  • the source routing address is always set for the packets that are protected from the internal network 122 to the external network 122 by this external routing unit 126.
  • the host connected to the external network 1221 that has received such a bucket will be sent from any host connected to the internal network 122. It is possible to know whether the packet is sent or not, and it is possible to send a reply packet to the host.
  • routing device having such a configuration, it is possible to perform communication by specifying a host of the internal network from the external network.
  • FIG. 13 is a block diagram of a routing device that routes buckets between the internal network and the external network to which hosts to which the same IP address is assigned are connected.
  • the routing device 1300 has a sub-address allocating section 1301, an IP address allocating section 1302, an IP address deciding section 133, and a formal IP address allocating section. It consists of an abutting section 13 04, an external routing section 13 05, a source subaddress setting means 13 06, and an internal routing section 13 07.
  • the sub-address allocating unit 1301 allocates a subaddress to a host connected to the internal network 1308.
  • the IP address allocating unit 1302 allocates the same IP address to the host connected to the internal network 1308.
  • the IP address determining unit 133 determines whether the IP address assigned to the host connected to the internal network 1308 is “temporary”. The fact that an IP address is tentative is defined by not being an IP address force S “official”. An IP address is official if the IP address is a routing device. Is connected to the external network 1310, and is assigned to the network interface on the external network 1309 side of the routing device 130.0. It is defined by the condition that it is equal to the assigned IP address. Therefore, unless the routing device 1300 and the external network 1309 are connected, the network device on the external network 1309 side of the routing device 1300 is not connected. The IP address assigned to the interface will not be formal.
  • the formal IP address assignment unit 1304 performs assignment of the formal IP address to all the hosts connected to the network.
  • the official IP address is assigned to all hosts connected to the network.
  • the “host connected to the network” is a host connected to the internal network 1308.
  • the formal IP address assigning unit 1344 routes the formal IP address to the network. Assigned to the host connected to the network, set the source IP address of the received packet to the formal IP address assigned by the formal IP address assigning unit 134, and configure the external network. Work 1 3 9 9Healing.
  • the source IP address of the packet becomes an official IP address and becomes
  • a host connected to the external network 1309 receives a packet, it can send a reply packet.
  • the external routing section 135 is connected to the internal network 130. 8 may have a source sub address setting means 1306 for setting a sub address assigned to the host to a source sub address of a packet when receiving from a host connected to the host 8 . This ensures that packets routed to the external network 1309 have the source subaddress set, and packets sent from hosts connected to the internal network 1308.
  • the host connected to the external network 1309 that received the packet can know from which host connected to the internal network 1308 the packet was sent. .
  • the sub address allocation unit 1301 sends the subaddress to the subroutine. Sends a packet to the host to which the address is assigned.
  • This allows the host connected to the external network 1309 to specify the sub-address of the host connected to the internal network 1308, thereby making the internal network 1 3 0 Ri by 8 to the connected packet to a particular host in the routing device 1 3 0 0 c with this Yo I
  • the internal network 1 Even if the same IP address is assigned to the host connected to 310, the host connected to the external network 1309 can specify the sub-address by specifying the sub-address.
  • the host connected to the internal network 1308 can be identified, and communication with that host can be performed.
  • a host connected to an internal network and assigned a private address is provided. Can be identified by the host connected to the external network, Regardless of the communication protocol, all application programs can be used on the host assigned the private address. Also, even if the same IP address is assigned to a host connected to the internal network, a different subaddress is assigned, so that a host connected to an external network such as the Internet can be assigned. From this point, it becomes possible to specify the sub-address and specify the host connected to the internal network to perform communication. Also, from a host connected to the internal network, a host connected to another internal network can be specified via the external network and communication can be started.

Abstract

A subaddress is assigned to a host connected to an internal network. In sending a packet to the host, the subaddress is set as a destination subaddress for the packet. To route such a packet to the internal network, a table of correspondence between sub-addresses and IP addresses is referenced to determine the IP address of the host to which the destination subaddress set to the packet has been assigned. The destination IP address of a packet is overwritten with the determined IP address.

Description

明細書 ルーティ ングソフ ト ウェア、 通信プロ グラム、 通信方法、 および、 ルー ティ ング装置 技術分野  Description Routing software, communication program, communication method, and routing device
この発明は、 イ ンターネッ トプロ ト コルによって通信のために使われ るパケッ トのルーティ ングを計算機に実行させる方法、 ソフ ト ウェア、 及び、 ルーティ ングを行う装置、 並びに、 イ ンターネッ トプロ ト コルに よる通信を計算機に実行させるプログラムに関する。 背景技術  The present invention relates to a method for causing a computer to execute routing of a packet used for communication by the Internet protocol, software, an apparatus for performing the routing, and an Internet protocol. The present invention relates to a program for causing a computer to execute communication. Background art
従来から、 イ ンターネッ トプロ ト コルを用いた通信が広く用いられて いる。 このイ ンターネッ トプロ ト コルを用いた通信においては、 通信を 行う計算機 (以下では 「ホス ト」 と呼ぶ) に I Pア ド レス という 4バイ トで表される番号を割り 当てておく 。 あるホス トが別のホス ト (以下で は 「相手ホス ト」 と呼ぶ) へ通信によ りデータを送信するには、 相手ホ ス トの I P ア ド レスを得て、 送信されるデータ をパケッ トに分割し、 パ ケッ ト のヘッダに相手ホス トの I p ァ ド レスをデスティネーショ ン I P ア ドレス、 自 ホス ト の I P ア ドレスをソース I P ア ド レス と して設定し てネッ ト ワークへパケッ トを送信する。  Conventionally, communication using the Internet protocol has been widely used. In communication using the Internet protocol, a computer that performs communication (hereinafter referred to as “host”) is assigned a number represented by a 4-byte IP address. In order for one host to send data to another host (hereinafter referred to as “the other host”) by communication, the host obtains the IP address of the other host and transmits the data to be sent. The packet is divided into packets, and the IP address of the other host is set as the destination IP address in the header of the packet, and the IP address of the host is set as the source IP address in the packet. Send packets to the network.
相手ホス トは、 自ホス ト と同じネッ ト ワーク に接続されている場合も あれば、 異なるネッ ト ワークに接続されている場合もある。 異なるネッ ト ワーク に接続されているホス ト と通信が行えるためには、 異なるネッ ト ワークの境界においてパケッ トの転送が制御される必要がある。 この よ う な異なるネッ ト ワークの間でのバケツ トの転送の制御は 「ルーティ ング」 と呼ばれる。 The remote host may be connected to the same network as its own host, or may be connected to a different network. In order to communicate with a host connected to a different network, packet transfer must be controlled at the boundary of different networks. Controlling the transfer of buckets between these different networks is called "routing. Ning ".
2つの異なるネッ ト ワークが接続されている場合に、 どちらか一方を 「内部ネッ ト ワーク」、 他方を 「外部ネッ ト ワーク」 と呼び区別する こ と がある。 一般に、 2 つの異なるネッ ト ワークの う ち、 小さい方を内部ネ ッ ト ワーク と呼び、 大きい方を外部ネッ トワーク と呼ぶ。 例えば、 家庭 内のネ ッ ト ワーク とイ ンターネッ ト とい うネッ ト ワーク とが接続されて いる場合、 家庭内のネッ ト ワーク を内部ネッ ト ワーク と呼び、 イ ンタ一 ネッ ト というネッ ト ワーク を外部ネッ トワーク と呼ぶこ と になる。  When two different networks are connected, one may be called the "internal network" and the other as the "external network". In general, the smaller of the two different networks is called the internal network, and the larger one is called the external network. For example, when a home network is connected to a network called the Internet, the home network is called an internal network, and a network called the Internet is called an internal network. It will be called an external network.
内部ネッ ト ワーク と外部ネ ッ ト ワーク とは常に接続されているこ とは なく 、 例えば、 家庭内でのネ ッ トワークである内部ネッ ト ワーク とイ ン ターネッ ト という外部ネッ ト ワーク とは常に接続されているわけではな い。 このよ う な場合に、 内部ネッ トワークに接続されたホス トには、 外 部ネッ ト ワークに接続されている どのホス ト と も異なる I Pア ド レスを 割り 当てるのは I P ア ドレスを無用に消費し無駄であるので、 内部ネッ ト ワークに接続されたホス トには 「プライベー トァ ド レス」 に分類され る I P ア ドレスが割 り 当て られる。 プライベー トア ド レスは、 内部ネ ッ ト ワークの中に限ってホス ト を一意に識別できるが、 内部ネッ ト ワーク と外部ネッ ト ワーク と を含めたネッ ト ワーク全体では一意にホス トが識 別できない。 これに対し、 ネッ ト ワーク全体で一意にホス トが識別され る I Pァ ドレスは 「グローバルア ドレス」 と呼ばれる。  The internal network and the external network are not always connected.For example, the internal network that is a home network and the external network such as the Internet are always connected. It is not connected. In such a case, assigning a different IP address to a host connected to the internal network than any host connected to the external network makes the IP address useless. Hosts connected to the internal network are assigned IP addresses that are classified as “private addressless” because they are wasteful and wasteful. A private address can uniquely identify a host only within the internal network, but uniquely identifies the host throughout the network, including the internal and external networks. Can not. In contrast, an IP address whose host is uniquely identified throughout the network is called a “global address”.
プライべ一 トァ ド レスが割 り 当てられたホス トはネッ ト ワーク全体で —意に識別されないため外部ネッ ト ワークに接続されたホス 卜 とは直接 通信する こ とができないこ と になる。そこで、 rネ ッ ト ワークア ド レス変 換 (N e t w o r k A d d r e s s T r a n s l a t or) や 「ネッ ト ワーク ア ド レス及ぴポー ト変換 (N e t w o r k A d d r e s s P o r t T r a n s 1 a t i o n )」 と呼ばれる手法が用いられる。 こ れらの手法は、 内部ネッ トワーク と外部ネッ ト ワーク とのパケッ トのル 一ティ ングを行う計算機あるいは装置の外部ネッ ト ワーク側のネッ ト ヮ ークイ ンタ一フェースに、 グローバルア ド レスを割 り 当て、 ルーティ ン グを行う装置が内部ネッ ト ワークから外部ネッ ト ヮ一クへバケツ トを転 送する際にはバケツ トのヘッダのソース I Pァ ドレスを、 ルーティ ング を行う計算機あるいは装置に割 り 当てられたグローバルァ ドレスによつ て上書き してルーティ ングを行い、 また反対に、 イ ンタ一ネッ トからプ ライべ一トァ ドレスが割り 当てられたホス トが接続されたネッ トワーク へバケツ ト を転送する場合には、 デスティネーショ ン I P ア ド レスをプ ライべ一トァ ドレスによって上害き してルーティ ングを行う。 これによ り 、 プライべ一 トァ ドレスが割り 当てられたホス ト とイ ンターネッ トに 接続されたホス ト とが通信できる よ う になる。 A host assigned a private address cannot be directly identified with a host connected to an external network because it is not uniquely identified throughout the network. Therefore, a method called “network address conversion (network address translation)” or “network address and port translation (network address translation)” is used. Used. This These methods assign a global address to the network interface on the external network side of the computer or device that routes packets between the internal network and the external network. When a device performing routing and routing transfers a bucket from an internal network to an external network, the source IP address of the bucket header is transferred to the routing computer or device. Routing is performed by overwriting with the assigned global address, and conversely, from the Internet to the network to which the host to which the private address is assigned is connected. When forwarding the bucket, the destination IP address is routed by harming the private address. . This enables communication between the host to which the private address is assigned and the host connected to the Internet.
しかし、 ネッ ト ヮ一クァ ドレス変換ゃネッ トワークァ ドレス及びポー ト変換を用いたと しても、 通信の開始は内部ネッ ト ワークに接続された ホス トから行われ'る必要があ り 、 外部ネッ トワークに接続されたホス ト が、 プライべ一トァ ドレスが割り 当てられた任意のホス トを特定して通 信を開始する こ とができないとい う問題がある。 このため、 通信プロ ト コルによ っては、 プライベー トァ ドレスが割り 当てられたホス トでは使 用できないアプリ ケーショ ンが存在するこ とになり 、 好ま しく ない。 従って、 本発明は、 外部ネッ ト ワーク に接続されたホス トから、 内部 ネッ ト ワーク に接続されたホス トを特定して通信を開始する こ とができ る よ う にし、 通信プロ トコルによ らず、 全てのアプリ ケーシ ョ ンプロ グ ラムが内部ネ ッ ト ワークに接続され、 プライべ一トァ ドレスが割り 当て られたホス ト で使用できるよ う にする こ と を目的とする。 また、 内部ネ ッ ト ワークに接続されたホス トから、 外部ネッ ト ワークを経由 して別の 内部ネ ッ ト ワークに接続されたホス トを特定して通信を開始するこ とが できるよ う にするこ と も本発明の目的である。 発明の開示 However, even if the network-to-uniform-address translation, the network address and the port translation are used, communication must be started from a host connected to the internal network. The problem is that the host connected to the network cannot identify any host to which the private address is assigned and start communication. For this reason, depending on the communication protocol, some applications cannot be used on the host to which the private address is assigned, which is not preferable. Therefore, the present invention enables a host connected to an external network to identify a host connected to an internal network and start communication, and provides a communication protocol. The purpose is to ensure that all application programs are connected to the internal network and that private addresses can be used on the assigned host. Also, a host connected to the internal network may identify a host connected to another internal network via the external network and start communication. It is also an object of the present invention to be able to do so. Disclosure of the invention
本発明においては、 内部ネッ ト ワークに接続されたホス トに、 I Pァ ドレス と は別にサブア ドレスを割り 当てておく 。 外部ネッ トワークに接 続されだホス トが内部ネッ ト ワークに接続された特定のホス トにバケツ トを送る と きは、 パケッ トのヘッダにその特定のホス トに割り 当てられ たサブァ ドレスをデスティネーショ ンサブァ ドレス と して設定する。  In the present invention, a sub address is allocated to a host connected to the internal network, separately from the IP address. When a host connected to the external network sends a bucket to a specific host connected to the internal network, the packet header contains the subaddress assigned to that specific host. Set as destination subaddress.
また、 ヘッダにデスティネーショ ンサプア ド レスが設定されたバケツ トを外部ネッ ト ワークから内部ネッ ト ワークへルーティ ングするために は、 デスティネーショ ンサブア ドレスが割り 当てられたホス ト の I P ァ ドレス をパケッ ト のデスティネーショ ン I Pァ ドレスに上書き して内部 ネッ ト ワークへパケッ トを送信する。 また、 デスティネーショ ンサブァ ドレスが設定されていないバケツ トを外部ネッ ト ワークから内部ネッ ト ワークヘル一ティ ングするためには、 内部ネッ ト ワークに接続された特 定のホス ト の I P ア ドレスをバケツ ト のデスティ ネーショ ン I Pァ ド レ スに上書き して内部ネッ トワークへパケッ トを送信する。 内部ネッ ト ヮ ークから外部ネッ ト ワークへバケツ トをルーティ ングするには、 ソ一ス Also, in order to route a bucket with the destination subaddress set in the header from the external network to the internal network, the IP address of the host to which the destination subaddress is assigned Overwrites the destination IP address of the packet with the packet and sends the packet to the internal network. In addition, in order for the internal network to be protected from the external network to the bucket where the destination subaddress is not set, the IP address of a specific host connected to the internal network is used. Overwrite the destination IP address of the bucket and send the packet to the internal network. To route buckets from the internal network to the external network,
I Pァ ド レスが割り 当てられたホス トのサプア ドレスを求めて、 それを ヘッダのソースサプア ドレス と して設定して外部へパケ ッ トを送信する, サブァ ドレスが割 り 当てられたホス ト と通信するためには、 そのホス トに割り 当てられたサブァ ド レスを知る必要があるが、 サブァ ド レスを ドメイ ンネームサーバの特定レコー ドに記録しておく こ とによ り 、 ホス トのサプア ドレスを知るこ とができるよ う にする。 Determines the host address of the host to which the IP address is assigned, sets it as the source address of the header and sends the packet to the outside, and the host with the sub address assigned. In order to communicate, it is necessary to know the subaddress assigned to the host, but by recording the subaddress on a specific record of the domain name server, the host Get to know the dress.
また、 内部ネ ッ ト ワークに接続されたホス トは、 内部ネ ッ ト ワーク内 ではサブア ド レスによって特定するこ とができ るので、 内部ネッ ト ヮー ク に接続されたホス トには、 異なる I Pア ドレスを割り 当てる必要がな い。 そこで、'内部ネッ トワーク に接続されたホス トには、 同じ I Pア ド レスを仮に割り 当てておき、 内部ネッ ト ワーク と外部ネッ ト ワーク とで バケツ トをルーティ ングするために内部ネッ ト ワークにグローバル I p ア ド レスが割り 当て られた時に、 そのグローバル I P ア ド レス を正式な I Pア ドレス と して内部ネッ ト ワークに接続されたホス 卜に割り 当てて もよい。 図面の簡単な説明 In addition, since the host connected to the internal network can be identified by a sub address in the internal network, the internal network Hosts connected to the network do not need to be assigned different IP addresses. Therefore, the same IP address is temporarily assigned to the host connected to the internal network, and the internal network is used to route the bucket between the internal network and the external network. When a global IP address is assigned to a host, the global IP address may be assigned as an official IP address to a host connected to the internal network. BRIEF DESCRIPTION OF THE FIGURES
第 1 図は、 外部ネッ トワーク と内部ネッ トワークがルーティ ングを行 う計算機によって接続されているこ と を示す。 第 2図は、 通信で用いら れるパケッ トの最初の部分の構造を示している。 第 3図は、 内部ネ ッ ト ワーク に接続されたホス トにサブァ ドレスが割り 当て られた状況を示す, 第 4図は、 内部ネッ ト ワーク に接続されたホス トに割り 当てられた I P ア ドレス とサブア ド レス と の対応を示す表の一例を示す。 第 5 図は、 パ ケッ トにソースサブア ドレス とデスティネーショ ンア ド レスを設定する ために、 バケツ トのォプショ ン部分にそれらを設定した例について示し た図である。 第 6 図は、 ルーティ ングを計算機に実行させるプロ グラム のフローチャー トである。 第 7図は、 サブア ド レスが割り 当てられたホ ス ト との通信を実行させるプロ グラムのフローチャー トである。 第 8図 は、 内部ネッ ト ワークに接続されたホス トに同一の仮の I Pァ ド レスを 割り 当てた状態を示す。 第 9 図は、 内部ネ ッ ト ワーク に接続されたホス トの M A Cァ ドレス とサプア ドレス との対応を示す表の一例を示す。 第 1 0図は、 内部ネッ ト ワーク に接続されたホス トに正式な I Pァ ドレス を割り 当てた状態を示す。 第 1 1 図は、 內部ネ ッ ト ワークに接続された ホス トに同一の I pア ドレスを割り 当てて外部ホス ト とルーティ ングを 行う処理のフローチャー トである。 第 1 2図は、 内部ネッ ト ワーク に接 続されたホス トに異なる I Pァ ドレス と異なるサブァ ドレスを割り 当て てパケッ トのルーティ ングを行う装置の構成を示す。 第 1 3図は、 内部 ネッ ト ワークに接続されたホス トに同一の I Pァ ドレスを割り 当ててパ ケッ トのルーティ ングを行う装置の構成を示す。 発明を実施するための最良の形態 Figure 1 shows that the external network and the internal network are connected by a routing computer. Fig. 2 shows the structure of the first part of the packet used for communication. Fig. 3 shows the situation where the sub-address is assigned to the host connected to the internal network. Fig. 4 shows the IP address assigned to the host connected to the internal network. An example of a table showing the correspondence between dresses and sub-addresses is shown. FIG. 5 is a diagram showing an example in which the source subaddress and the destination address are set in the packet in order to set them in the optional portion of the bucket. Fig. 6 is a flowchart of a program that causes a computer to execute routing. FIG. 7 is a flowchart of a program for executing communication with a host to which a sub-address is assigned. Fig. 8 shows a state where the same temporary IP address is assigned to a host connected to the internal network. Fig. 9 shows an example of a table showing the correspondence between the MAC address and the subaddress of the host connected to the internal network. Figure 10 shows a state where a formal IP address is assigned to a host connected to the internal network. Fig. 11 shows that the same IP address is assigned to the host connected to the internal network and routing is performed with the external host. This is a flowchart of the processing to be performed. Fig. 12 shows the configuration of a device that assigns different IP addresses and different sub-addresses to hosts connected to the internal network and performs packet routing. FIG. 13 shows the configuration of a device that assigns the same IP address to a host connected to the internal network and performs packet routing. BEST MODE FOR CARRYING OUT THE INVENTION
本発明をよ り詳細に説述するために、 添付の図面を用いてこれを説明 する。  The present invention will be described in more detail with reference to the accompanying drawings.
第 1 図は、 ルーティ ングを行う計算機 1 0 1 がイ ンターネ ッ ト 1 0 2 に接続された外部ネッ トワーク 1 0 3 と内部ネッ ト ワーク 1 0 4 に接続 されてお り 、 内部ネッ トワーク にホス ト 1 0 5 、 1 0 6、 1 0 7が接続 され、外部ネッ トワーク にはホス ト 1 0 8 が接続されている状態を示す。 内部ネ ッ ト ワーク のホス ト 1 0 5、 1 0 6、 1 0 7 には、 それぞれ 1 9 2 . 1 6 8 . 0 . 2、 1 9 2 . 1 6 8 . 0. 3 、 1 9 2. 1 6 8. 0 . 4 とい う プライベー トァ ド レスが割 り 当てられており 、 ルーティ ングを 行う計算機 1 0 1 の内部ネッ トワーク 1 0 4側のネッ ト ワークインター フェースに 1 9 2. 1 6 8 . 0 . 1 とレ、 うプライベー トア ドレスが割り 当てられ、 外部ネ ッ ト ワーク 1 0 3側のネッ ト ヮ一クイ ンターフェース には 1 3 3. 1 3 9. 2 1 0. 4 とレヽ ぅ グローバルア ド レスが割り 当て られている とする。  Fig. 1 shows that the routing computer 101 is connected to the external network 103 connected to the Internet 102 and the internal network 104, and to the internal network. This shows a state in which the hosts 105, 106, and 107 are connected, and the host 108 is connected to the external network. The internal network hosts 105, 106, and 107 have 192.16.80.0.2, 192.1.168.0.0.3, and 192, respectively. A private address of 16.8.0.4 is assigned, and the internal interface of the computer 101 that performs routing is connected to the network interface on the side of 104. The private address is assigned to 68.1.1, and the network interface on the external network 103 side is connected to the network interface on the 3rd side. Suppose that a global address is assigned.
第 2 図は、 ネッ ト ワーク に接続されたホス トが通信を行うために用い られるパケッ トの構造を示しており 、 バケツ トの最初の部分 (「ヘッダ」 と呼ばれる) は 3 2 ビッ トを一つの単位と して分割され、 2 0 1 の部分 にソース I Pア ドレス、 2 0 2 の部分にデスティネーショ ン I Pァ ド レ スが設定される。 2 0 3の部分はォプショ ンと呼ばれる部分であ り 、 本 発明においては、 ソースサブァ ドレス とデスティネーショ ンサプア ドレ スを格納するのに用いられる。 Figure 2 shows the structure of a packet used by a host connected to the network to communicate. The first part of the bucket (called the “header”) contains 32 bits. It is divided as one unit, and the source IP address is set in the part of 201 and the destination IP address is set in the part of 202. The portion of 203 is called an option, and In the invention, it is used to store the source subaddress and the destination subaddress.
第 3図は、 第 1 図の内部ネッ ト ワーク 1 0 4 に接続されたホス ト 1 0 5 、 1 0 6 、 1 0 7 にそれぞれサブァ ドレス と して 1 、 2、 3 が割 り 当 てられた状態を示している。 このよ う にサブア ド レスを割り 当てる と、 ルーティ ングを行う計算機 1 0 1 は、 第 4図に示す表 4 0 1 のよ う な内 部ネッ ト ワーク に接続されたホス トに割 り 当て られた I P ア ドレス とサ ブア ド レス と の対応関係を表す表を保持するこ と になる。  Fig. 3 shows the assignment of subaddresses 1, 2, and 3 to hosts 105, 106, and 107 connected to the internal network 104 in Fig. 1, respectively. FIG. When the sub-address is allocated in this way, the computer 101 performing the routing is allocated to the host connected to the internal network as shown in Table 401 shown in FIG. This will hold a table showing the correspondence between the given IP address and the subaddress.
サブァ ド レスが割り 当てられたホス トが送信あるいは受信するパケッ トには、 そのホス トに割り 当てられたサブア ド レスが設定される。 その 設定の一つの方法と しては、 例えば、 パケッ トのオプショ ンの部分に設 定する方法が挙げられる。 この方法に基づき、 第 5 図は、 サブア ド レス が割り 当てられたホス トが送信あるいは受信するパケッ トにサブァ ドレ スを設定するために、 パケッ トのォプショ ンの部分 2 0 3 にサプア ドレ スが格納されている状態を示している。 サブァ ドレスが 1 6 ビッ トで表 される とすれば、 オプショ ン部分の最初の 1 6 ビッ ト部分に、 バケツ ト を送信したホス トに割り 当てられたサブァ ドレスである ソースサブァ ド レスが格納され、 次の 1 6 ビッ ト部分に、 パケッ トの行き先であるホス トに割 り 当てられたサブァ ドレスであるデスティネーショ ンサブァ ドレ スが設定される。  The packet sent or received by the host to which the subaddress is assigned is set to the subaddress assigned to that host. One of the methods of setting is, for example, a method of setting in an optional part of a packet. Based on this method, FIG. 5 shows that the subaddress is set in the optional part 203 of the packet in order to set the subaddress to the packet transmitted or received by the host to which the subaddress is assigned. This shows a state where the data is stored. Assuming that the subaddress is represented by 16 bits, the first 16 bits of the optional part contain the source subaddress, which is the subaddress assigned to the host that sent the bucket. The next 16 bits are set to the destination subaddress, which is the subaddress assigned to the host to which the packet is going.
第 6 図は、 ルーティ ングを行う計算機 1 0 1 にルーティ ングを実行さ せるプロ グラムの動作を説明するフローチャー トである。 まず、 ステ ツ プ S 6 0 1 において、 バケツ トを受信するまで計算機 1 ◦ 1 を待機させ る。 パケッ トを受信した場合、 ステップ S 6 0 2 に制御を計算機 1 0 1 に移行させ、 ノ ケッ トが外部ネッ ト ワーク 1 0 3 から受信したものカ 内部ネ ッ ト ワーク 1 0 4から受信したものかど うかを判断させ、 外部ネ ッ ト ワークから受信した場合にはステップ S 6 0 3 へ制御を移行させ、 内部ネッ ト ワークから受信した場合にはステップ S 6 0 7 へ制御を移行 させる。 ステップ S 6 ◦ 3 においては、 パケッ トのオプショ ン部分にデ スティネーショ ンサプア ド レスが設定されているかどう かを計算機 1 0 1 に判断させ、 デスティネーショ ンサブア ドレスが設定されていればス テツプ S 6 0 4へ制御を移行させ、 設定されていなければステップ S 6FIG. 6 is a flowchart for explaining the operation of a program that causes the computer 101 that performs the routing to execute the routing. First, in step S601, the computer 1 1 is made to wait until a bucket is received. If a packet is received, control is transferred to the computer 101 in step S602, and the packet received from the external network 103 is received from the internal network 104. To determine whether If it is received from the network, the control is shifted to step S603, and if it is received from the internal network, the control is shifted to step S607. In step S6◦3, the calculator 101 determines whether the destination subaddress is set in the optional part of the packet, and if the destination subaddress is set, step S Transfer control to 604, if not set, step S 6
0 6 へ制御を移行させる。 ステップ 6 0 4は、 表 4 0 1 を参照してデス ティネーショ ンサブァ ドレス よ りバケツ 1、を受け取るべきホス トの I P ア ドレスを計算機 1 0 1 に獲得させるステップである。 すなわち、 この ステップは、 内部ネッ ト ワーク のホス トに割り 当てられた I P ア ド レス とサブア ドレスの対応表 4 0 1 を参照して、 外部ネッ ト ワーク 1 0 3か ら受信したバケツ ト のデスティ ネーショ ンサブァ ド レスから前記対応表 を用いて I Pァ ド レスを求めるデスティネーシ ョ ン I Pァ ドレス解決ス テツプである。 ステップ S 6 0 5 においては、 ステップ S 6 0 4で得ら れた I Pア ドレスをパケッ トのデスティネーシ ョ ン I Pア ドレス と して 計算機 1 0 1 に上書き させバケツ トをルーティ ングさせる。 すなわち、 このステップは、 ノ ケッ トのヘッダのデスティネーショ ン I Pァ ドレス を前記デスティネーショ ン I Pァ ドレス解決ステップで求められた I P 了 ドレスに上書き して内部ネ ッ ト ワーク 1 0 4へパケッ トをノレ一ティ ン グする内部方向ルーティ ングステップである。 このデスティネーショ ンTransfer control to 06. Step 604 is a step of causing the computer 101 to acquire the IP address of the host that should receive the bucket 1 from the destination subaddress with reference to Table 401. In other words, this step is based on the correspondence between the IP address and the subaddress assigned to the host on the internal network and the packet received from the external network 103. This is a destination IP address resolution step for obtaining an IP address from a destination subaddress using the correspondence table. In step S605, the IP address obtained in step S604 is overwritten by the computer 101 as the destination IP address of the packet, and the bucket is routed. That is, in this step, the destination IP address in the header of the packet is overwritten with the IP end address obtained in the destination IP address resolution step, and the internal network 104 is executed. This is an inward routing step that routes packets. This destination
1 Pァ ドレス解決ステップと内部方向ルーティ ングステ ップと によ り 、 デスティネーショ ンサブァ ドレスが指定されたパケッ ト を外部ネッ ト ヮ ークから受信した場合に、 デスティネ一ショ ンサプア ドレスが割り 当て られた内部ネッ ト ワークに接続されたホス トへバケツ トを到達させるこ とができる。 1 Destination address sub-address is assigned by the address resolution step and the inward routing step when the destination sub-address receives the specified packet from the external network. The bucket can reach the host connected to the specified internal network.
ステップ S 6 0 3 において、 パケッ トにデスティネーショ ンサプア ド レスが設定されていないと判断された場合には、 ステ ップ S 6 0 6 へ制 御を移行させ、 あらかじめ定められたデフォル トホス トの I Pァ ド レス をパケッ トのデスティネーショ ン I P ア ドレスに上書き して内部ネッ ト ワーク へルーティ ングするデフォル トルーティ ンダステ ップを計算機 1 0 1 に実行させる。 このデフォル トルーティ ングステップによ り 、 デス ティネーシヨ ンサブア ドレスが設定されていないバケツ トが外部ネッ ト ワーク から受信されても、 そのバケツ トを処理するデフォル トホス トへ ノ、。ケッ トを到達させるこ とができる。 In step S603, the destination supplement is added to the packet. If it is determined that the IP address of the packet has not been set, control is transferred to step S606, and the IP address of the predetermined default host is changed to the destination IP address of the packet. Causes computer 101 to execute the default routing step that overwrites the address and routes to the internal network. Due to this default routing step, even if a bucket without a destination sub address is received from the external network, the default host that processes the bucket is sent to the default host. The ket can be reached.
ステ ップ S 6 0 2 において、 内部ネ ッ ト ワーク 1 0 4 力 らパケッ トが 受信された場合には、 ステップ S 6 0 7へ制御を移行させ、 ソース I P 了 ド レスから I Pァ ドレス とサブァ ドレスの対応表 4 0 1 を参照して得 られるサブァ ドレスをソースサプア ドレス と してバケツ !、に設定して外 部ネッ ト ワークへルーティ ングする外部方向ルーティ ングステ ップを計 算機 1 0 1 に実行させる。 この外部方向ルーティ ングステップによ り 、 内部ネ ッ ト ワーク 1 0 4 に接続されたホス トから外部ネ ッ ト ワーク 1 0 3 へ送信されるバケツ トには、 ソースサブァ ドレスが必ず設定されるの で、 外部ネッ トワーク に接続されたホス トがそのバケツ トを受信した場 合、 通信の相手先のホス トのサブア ド レスを知るこ とができ、 そのサブ ア ドレスを用いるこ とによ り応答のパケッ トをそのホス トへ送信する こ とが可能となる。  In step S602, when a packet is received from the internal network 104, control is transferred to step S607, and the source IP address is changed to the IP address. The sub-address obtained by referring to the correspondence table of sub-addresses 401 is used as a source suapure and a bucket! , And causes the computer 101 to execute an external routing step for routing to the external network. Due to this external routing step, the packet sent from the host connected to the internal network 104 to the external network 103 always has the source subaddress set. Therefore, when a host connected to the external network receives the bucket, the host can know the sub-address of the host of the communication partner, and can use the sub-address. The response packet can be sent to the host.
このよ う なステップからなるプロ グラムを計算機 1 0 1 に実行させる こ と によ り 、 外部ネッ ト ワーク 1 0 3 に接続されたホス ト 1 0 8 が内部 ネッ ト ワーク に接続されたホス トに割り 当てられたサブア ド レスをパケ ッ トにデスティネーショ ンサプア ドレス と して設定し、 内部ネッ ト ヮ一 クに接続された特定のホス トにパケッ トを送信できるよ う になる。また、 ルーティ ングを行う計算機 1 0 1 に、 内部ネッ ト ワークに接続されたホ ス トから外部ネッ ト ワーク に送信されたパケ ッ トに、 その内部ネッ トヮ —クに接続されたホス トに割り 当てられたサブァ ド レスをソースサブァ ドレス と して設定させるこ とによ り 、 外部ネッ ト ワークに接続されたホ ス トは、 パケッ トを送信したホス トに割り 当てられたサブァ ドレスを知 るこ とができるよ うになる。 By causing the computer 101 to execute a program consisting of such steps, the host 108 connected to the external network 103 is replaced with the host 108 connected to the internal network. The sub address assigned to the host is set as the destination address in the packet, and the packet can be sent to a specific host connected to the internal network. In addition, a computer connected to the internal network is connected to the computer 101 that performs routing. By sending the packet sent from the host to the external network with the subaddress assigned to the host connected to the internal network as the source subaddress. Then, the host connected to the external network can know the subaddress assigned to the host that sent the packet.
第 7 図は、 外部ネ ッ ト ワーク 1 0 3 に接続されたホス ト 1 0 8 が、 内 部ネッ ト ワーク 1 0 4 に接続されたホス トを特定してまず送信を行う こ とによ り通信を開始して処理を行う こ と を説明するフローチヤ一 トであ る。 まず、 ステップ S 7 0 1 において、 通信の相手となるホス ト の I P ア ド レス とサブァ ド レスを計算機であるホス ト 1 0 8 に求めさせる。 す なわち、 ステ ップ S 7 0 1 はア ドレス解決ステ ップである。 内部ネッ ト ワーク に接続されたホス トにプライべ一 トァ ドレスが設定されている場 合には、 プライべ一 トア ドレスでは一意にホス トが特定できないため、 ルーテ ィ ングを行う計算機 1 0 1 の外部ネッ ト ワーク 1 0 3 に接続され たネッ ト ヮ一クイ ンターフェースに割 り 当て られたグローバルァ ドレス を求めさせる こ と になる。 このグローバルァ ド レスを求めさせるには、 ドメイ ンネームサーバの Aレコ一 ドを参照させるなどの方法がある。 な お、 まず受信を行って通信を開始する場合には、 受信を行ったパケッ ト に設定された I Pァ ドレス とサブァ ドレスから通信相手のホス トを特定 するこ とができ る。 また、 内部ネッ ト ワーク に接続されたホス トに割り 当てられたサブァ ドレスは、 ドメイ ンネームサーバの特定レコー ドに記 録されているサプア ドレスを参照させるこ と によ り得させてもよい。 特 定レコー ドの例と しては、 H I N F O レコー ドが挙げられる。 ステップ S 7 0 2 において、 データ送信させるかどう かを判断し、 データ送信さ せるな らばステ ップ S 7 0 3へ制御を移行させ、 データ受信させるなら ばステ ップ S 7 0 6へ制御を移行させる。ステップ S 7 0 3 においては、 送信データの生成を実行させ、 ステップ S 7 0 4 においては、 送信デー タをパケッ ト に分割させ、 パケッ トにステップ S 7 0 1 で求められた. I P ァ ドレス とサブァ ド レス と をデスティ ネーシ ョ ン I Pァ ドレス とデス ティネーショ ンサブァ ドレス と して設定するデスティネ一ショ ンサブァ ドレス設定ステップを実行させる。 そ してステップ S 7 0 5 において、 パケッ トを送信させ、 ステップ S 7 0 8 において通信が終了したかどう かを判断させ、 通信が終了すれば処理を終了させ、 そ う でなければステ ップ S 7 0 2 制御を移行させる。 ステップ S O 2 において、 デ一タ受 信させるならばステップ S 7 0 6 制御を移行させ、 受信の処理を実行 させ、 ステップ S 7 0 7 において、 受信したデータの処理を実行させ、 ステップ S 7 0 8 制御を移行させる。 Fig. 7 shows that the host 108 connected to the external network 103 identifies the host connected to the internal network 104 and transmits first. This is a flowchart for explaining that the communication is started and the processing is performed. First, in step S701, the IP address and subaddress of the host to be communicated with are calculated by the host 108 as a computer. That is, step S701 is an address resolution step. If a private address is set for a host connected to the internal network, the host that can be specified by the private address cannot be uniquely identified. In this case, the global address assigned to the network interface connected to the external network 103 of the server is requested. To request this global address, there is a method such as referring to the A record of the domain name server. When receiving and starting communication, the host of the communication partner can be specified from the IP address and subaddress set in the packet that received the data. Further, the subaddress assigned to the host connected to the internal network may be obtained by referring to the subaddress recorded in a specific record of the domain name server. The HINFO record is an example of a specific record. In step S702, it is determined whether or not to transmit data. If data is to be transmitted, control is transferred to step S703, and if data is to be received, step S706 is performed. Transfer control. In step S703, The transmission data is generated, and in step S704, the transmission data is divided into packets, and the packet is obtained in step S701. The IP address and the subaddress are destined. Execute the destination IP address and destination sub address setting steps to set the destination IP address and destination sub address. Then, in step S705, a packet is transmitted, and in step S708, it is determined whether or not the communication has been completed. If the communication has been completed, the process is terminated. Step S702 Control is shifted. In step SO 2, if data is to be received, the control is shifted to step S 706 to execute the receiving process.In step S 707, the received data is processed. 8 Transfer control.
第 7図の処理を計算機に実行させるプロ グラムは、 外部ネッ ト ワーク 1 0 3 に接続されたホス ト 1 0 8だけではなく 、 内部ネッ ト ワーク 1 0 4 に接続されたホス トが外部ネッ ト ワークに接続されたホス トであって サブァ ドレスが割 り 当てられたホス ト と通信を行う際にも用いるこ とが できる。  The program that causes the computer to execute the processing in FIG. 7 is not only the host 108 connected to the external network 103 but also the host connected to the internal network 104. It can also be used when communicating with a host connected to a network and to which a subaddress is assigned.
また、 ステップ S 7 0 4 において、 デスティネーショ ン I Pァ ドレス とデスティネーショ ンサプア ドレスをパケッ トに設定させるのみならず 自 ホス ト にサブァ ド レスが設定されている場合には、 そのサブァ ド レス をソースサブァ ドレス と してパケッ トに設定させる ソースサプア ド レス 設定ステップを実行させるよ う にしてもよい。  In step S704, not only the destination IP address and the destination subaddress are set in the packet, but also if the sub-address is set in the own host, the sub-address is set. Alternatively, a source subaddress setting step may be performed in which a packet is set as a source subaddress in a packet.
以上においては、 内部ネ ッ ト ワークに接続されたホス トには異なる I P 了 ドレスを割 り 当てる よ う にしたが 内部ネッ ト ワークに接続された ホス トに同じ I Pァ ドレスを割り 当てるよ う に しても よい。 第 8 図は、 内部ネッ ト ワークに同じ I P ア ドレスが割り 当てられている状態を示す, すなわち、 ルーティ ングを行う計算機 8 0 1 にイ ンターネ ッ ト 8 0 2 に 接続された外部ネッ ト ワーク 8 0 3 と内部ネッ トワーク 8 0 4 とが接続 されており 、 内部ネッ ト ワーク にホス ト 8 0 5、 8 0 6、 8 0 7が接続 されており 、 これらのホス ト 8 0 5、 8 0 6、 8 0 7 とルーティ ングを 行う計算機 8 0 1 の内部ネッ ト ワーク側のネッ ト ワークイ ンターフエ一 スに同 じ I Pア ドレス 1 9 2. 1 6 8 . 0. 1 が割り 当てられてお り 、 ルーティ ングを行う計算機 8 0 1 の内部ネッ ト ワーク側のネッ ト ワーク イ ンターフェース と 、 ホス ト 8 0 5、 8 0 6、 8 0 7 と にそれぞれサブ ア ドレス と して、 0、 1、 2、 3 が割り 当てられている。 第 8 図では、 ルーティ ングを行う計算機 8 0 1 の内部ネッ ト ワーク側のネッ ト ワーク イ ンターフェースに 。 . 0 . 0. 0 とい う I Pア ドレスが割り 当てられ ているが、 これは、 ルーティ ングを行う計算機 8 0 1 と外部ネ ッ ト ヮー ク 8 0 3が接続されていないこ と を表している。 In the above, a different IP address is assigned to a host connected to the internal network, but the same IP address is assigned to a host connected to the internal network. May be used. Fig. 8 shows a state where the same IP address is assigned to the internal network, i.e., to the computer 801, which performs routing, to the Internet 8002. The connected external network 803 and the internal network 804 are connected, and the hosts 805, 806, 807 are connected to the internal network. The same IP address as the network interface on the internal network side of the computer 801 that performs routing with the host 805, 806, 807 19.2.168.0 1 is assigned to the network interface on the internal network side of the computer 801, which performs routing, and to the hosts 800, 806, and 807, respectively. 0, 1, 2, and 3 are assigned as addresses. In FIG. 8, the network interface on the internal network side of the computer 801 that performs the routing is shown. The IP address 0.0.0.0 is assigned, which indicates that the computer 801 that performs routing and the external network 803 are not connected. I have.
このよ う に内部ネッ ト ワークに接続されたホス トおよびルーティ ング を行う計算機 8 0 1 の内部ネ ッ ト ワーク側のネ ッ ト ワークインターフエ ースに同じ I Pア ドレスが割り 当てられた場合、 内部ネッ ト ワーク内で 通信を行う ためには、 物理層におけるァ ドレスによって通信先のホス ト を特定するこ とになる。 例えば、 内部ネッ ト ワーク 8 0 4がイーサーネ ッ トを用いて構築されている場合には、 MA Cア ド レスによってホス ト を特定するこ とになる。 このため、 第 9図に示すよ う に MA Cア ドレス とサブア ドレス と を対応付ける表 9 0 1 を、 ルーティ ングを行う計算機 8 0 1 、 ホス ト 8 0 5、 8 0 6、 8 0 7 が持つこ と になる。 以下では、 内部ネッ ト ワークがイーサーネッ トで構築されている と仮定するが、 他 の物理的なネ ッ ト ワークの構築についても同様である。  When the same IP address is assigned to the network interface on the internal network side of the host computer connected to the internal network and the computer that performs routing in this way In order to communicate within the internal network, the destination host is specified by the address in the physical layer. For example, when the internal network 804 is constructed using Ethernet, the host is specified by the MAC address. Therefore, as shown in Fig. 9, Table 901 correlating the MAC address with the sub-address is shown in Table 9 You will have it. In the following, it is assumed that the internal network is built on Ethernet, but the same applies to other physical networks.
第 1 0図はルーティ ングを行う計算機 8 0 1 と外部ネ ッ ト ワーク 8 0 3 が接続され、 ルーティ ングを行う計算機 8 0 1 の外部ネッ ト ワーク側 のネッ ト ワークインターフェースに 1 3 3 . 1 3 9 . 2 1 3 . 9 4 とい う グローバルア ドレスが割り 当てられ、 これに伴って、 内部ネ ッ ト ヮー ク に接続されたホス ト 8 0 5、 8 0 6、 8 0 7 に 1 3 3 . 1 3 9 . 2 1 3 . 9 4 という グローバルア ドレスが割 り 当てられた図である。 このよ う にグローバルァ ドレスが内部ネッ ト ワークに接続されたホス トに割 り 当てられても、 サブア ドレスは変わらない。 Figure 10 shows a network interface on the external network side of the computer 801 that performs routing, where the computer 801 that performs routing and the external network 803 are connected. 1 3 9 .2 1 3 .9 4 A global address is assigned to the host 805, 806, 807 connected to the internal network. It is a diagram to which a global address of 94 is assigned. Even if the global address is assigned to the host connected to the internal network in this way, the sub address does not change.
第 1 1 図は、 このよ う に内部ネ ッ ト ワークに接続されたホス ト に同 じ I Pア ド レスを割 り 当てる場合のルーテイ ングを行う計算機 8 0 1 にル 一ティ ングをその計算機に実行させるプロ グラムの動作を説明するフロ 一チャー トである。 まず、 ステップ S 1 1 0 1 において、 内部ネッ ト ヮ ークに接続されたホス トに対してサブァ ドレスを計算機 8 0 1 に割り 当 てさせる。 すなわち、 ステップ S 1 1 0 1 はサブア ド レス割り 当てステ ップである。 このステップを計算機 8 0 1 に実行させると、 どの MA C 了 ドレスを持つホス トにどのサブ了 ド レスが割 り 当てられたかを知る こ とができ、 表 9 0 1 のよ う な MA Cア ドレス とサブア ドレスの対応表を 作るこ とができる。 ステ ップ S 1 1 0 2 において、 内部ネッ ト ワーク に 接続されたホス トに対して同一の I Pァ ドレスを割り 当てさせる。 ステ ップ S 1 1 0 3 において、 パケッ トを受信するまで待機するこ と を計算 機 8 0 1 に行わせる。 ステ ップ S 1 1 0 4 において、 受信したバケツ ト が内部ネッ ト ワーク 8 0 4から受信されたものであるかどう か判断させ. 内部ネッ ト ワーク 8 0 4から受信されたものであればステップ S 1 1 0 4 に制御を移行させ、 そう でなければステ ップ S 1 1 0 8へ制御を移行 させる。 ステップ S 1 1 0 5 において、 ステ ップ S 1 1 0 1 のサブア ド レス割 り 当てステ ップで割り 当てられた I Pア ドレスが 「仮の I Pア ド レス」 であるかどう かを判断する I Pァ ドレス判断ステップを実行させ る。 仮の I Pア ドレス と は、 「正式な I Pア ド レス」 ではない I Pァ ド レ スであ り 、 正式な I Pア ドレス と は、 ノレ一ティ ングを行う計算機 8 0 1 と外部ネッ ト ワーク 8 0 3が接続されている状態下でのルーティ ングを 行う計算機 8 0 1 の外部ネッ トワーク 8 0 3側のネッ ト ワークイ ンター フェースに割 り 当て られている I Pァ ド レスのこ とである。したがって、 ルーティ ングを行う計算機 8 0 1 と外部ネッ ト ワーク 8 0 3が接続され ていなければ、 ルーティ ングを行う計算機 8 0 1 の外部ネッ ト ワーク 8Fig. 11 shows the routing to the computer 81 that performs routing when the same IP address is assigned to the host connected to the internal network in this way. This is a flowchart for explaining the operation of a program to be executed by a user. First, in step S111, a subaddress is assigned to the computer 801 for a host connected to the internal network. That is, step S111 is a sub-address assignment step. When this step is executed by the computer 801, it is possible to know which sub address is assigned to the host having which MAC address, and the MAC address as shown in Table 901 is obtained. A correspondence table between addresses and sub-addresses can be created. In step S111, the same IP address is assigned to the host connected to the internal network. In step S1103, the computer 801 causes the computer 81 to wait until a packet is received. In step S111, it is determined whether the received packet is received from the internal network 804. If the received packet is received from the internal network 804, Control is transferred to step S111, otherwise control is transferred to step S108. In step S1105, it is determined whether or not the IP address assigned in the subaddress assignment step in step S111 is a "temporary IP address". Execute the IP address determination step. A temporary IP address is an IP address that is not a “official IP address”, and a formal IP address is a computer that performs a notifying process. IP address assigned to the network interface on the external network 803 side of the computer 801 that performs routing when the external network 803 is connected to the external network 803 It is. Therefore, if the computer 801 performing the routing is not connected to the external network 803, the external network 8 of the computer 801 performing the routing is not connected.
0 3側のネッ ト ワークイ ンタ一フェースに割り 当てられている I Pァ ド レスは仮の I Pア ドレス となる。 ステップ S 1 1 0 5 において、 仮の I Pァ ドレスが割り 当てられていないと判断された場合には、 ステップ S 1 1 0 7 へ制御を移行させ、 仮の I P ア ド レスが割り 当てられている と 判断された場合にはステップ S 1 1 0 6 へ制御を移行させ、 正式の I P ァ ドレスを内部ネ ッ ト ワークに接続されたホス ト全てに割り 当ててステ ップ S 1 1 0 7へ制御を移行させる。 ステップ S 1 1 0 7 においては、 パケッ トのソース I Pア ドレスを正式 I Pア ドレス割り 当てステップに おいて割 り 当てた正式ァ ドレスに上書きする外部ルーティ ングステップ を実行させる。 これによ り 、 内部ネッ ト ワーク 8 0 4力 ら外部ネッ ト ヮ ーク 8 0 3へバケツ トが送信される場合、 正式な I Pァ ドレスがソース0 The IP address assigned to the network interface on the 3rd side becomes a temporary IP address. If it is determined in step S1105 that the temporary IP address has not been assigned, the control is transferred to step S1107, and the temporary IP address is assigned. If it is determined that the IP address is present, the control is transferred to step S1106, and the formal IP address is assigned to all the hosts connected to the internal network, and step S111 is performed. Transfer control to. In step S1107, an external routing step of overwriting the source IP address of the packet with the formal address assigned in the formal IP address allocation step is executed. This ensures that when a bucket is sent from the internal network 804 to the external network 803, the formal IP address is sourced.
1 Pァ ドレスになったバケツ トが送信される。 A bucket with 1 P address is sent.
ステ ップ S I 1 0 4 において、 外部ネ ッ ト ワークからパケッ トを受信 した場合には、 パケッ トに書かれたデスティネーシ ョ ンサブア ドレスが 割り 当てられたホス トへパケッ トを送信する内部ルーティ ングステップ を実行させる。 これによ り 、 外部ネッ ト ワーク 8 0 3 に接続されたホス トがデスティネーショ ンサブア ドレスをパケッ トに設定すれば、 そのデ スティネーショ ンサブァ ドレスが割り 当てられたホス トへバケツ ト を到 達させるこ とができる。  In step SI104, when a packet is received from an external network, an internal routine that sends the packet to the host to which the destination subaddress written in the packet is assigned. Perform the step. Thus, if a host connected to the external network 803 sets a destination subaddress in a packet, the packet reaches the host to which the destination subaddress is assigned. It can be done.
なお、 ステップ S 1 1 0 7において、 ノ、0ケッ トを外部ネッ ト ワーク 8Note that, in step S107, the packets 0 and 0 are connected to the external network 8
0 3ヘルーティ ングする際には、 どの M A Cァ ドレスを持つホス トカ ら パケッ トが送信されたかを調べ、 表 9 0 1 からそのホス トのサプア ドレ スを得て、 バケツ ト のソースサブア ドレスに設定する ソースサブア ドレ ス設定ステップを実行させてもよい。 これによ り 、 内部ネ ッ ト ワーク 8 0 4 の接続されたホス トから送信されたパケッ トを受信した外部ネッ ト ワーク 8 0 3 に接続されたホス トが、 どのサブア ドレスが割り 当てられ たホス トからのパケッ トであるかを知るこ とが確実にできるよ う になる , また、 内部ネッ ト ワーク 8 0 4 に接続されたホス トにおいては、 通信 を行う ために、 自 ホス トのサブァ ドレスを獲得する自サブァ ドレス解決 ステ ップと 、 送信するパケ ッ トの ソースサブア ドレスに、 自サブア ドレ ス解決ステ ップによって獲得された自ホス トのサブァ ド レスを設定する 自サプア ドレス設定ステップと を計算機であるホス トに実行させるプロ グラムを動作させるこ とによ り 、 内部ネ ッ ト ワーク 8 0 4 に接続された ホス ト と外部ネッ ト ワーク 8 0 3 に接続されたホス トが通信できる よ う になる。 0 3 When hosting, the host card with which MAC address It is also possible to check whether the packet has been transmitted, obtain the support address of the host from Table 901, and execute a source sub-address setting step of setting the source sub-address of the bucket. As a result, the host connected to the external network 803 that has received the packet transmitted from the host connected to the internal network 804 can assign any sub-address to the host connected to the external network 803. It is possible to know whether the packet is from a host connected to the internal network 804.In the case of a host connected to the internal network 804, its own host Own sub-address resolution step to acquire the sub-address of the local host, and the sub-address of the local host obtained by the local sub-address resolution step to the source sub-address of the packet to be transmitted. By running a program that causes a host, which is a computer, to execute the setting steps and, the host connected to the internal network 804 and the external network Connected host to 8 0 3 becomes cormorants I can communicate.
このよ う な構成によ り 、 サブア ドレスが割り 当てられたホス トへ向け て外部ネッ ト ワークに接続されたホス ト よ り通信を行う こ とが可能とな る。  With such a configuration, it is possible to perform communication from a host connected to an external network to a host to which a subaddress is assigned.
第 1 2図は、 外部ネッ ト ワーク 1 2 0 1 とサブァ ド レスが割 り 当てら れたホス トが接続された内部ネッ ト ワーク 1 2 0 2 との間でバケツ トの ルーティ ングを行 うルーティ ング装置 1 2 0 0 のプロ ッ ク図である。 ル 一ティ ング装置 1 2 0 0 は、 デスティネーショ ン I Pァ ド レス解決部 1 2 0 3 と、 内部方向ルーティ ング部 1 2 0 4 と、 デフォル トルーティ ン グ部 1 2 0 5 と、 外部方向ルーティ ング部 1 2 0 6 と力、ら構成される。 デスティ ネーシ ョ ン I P ア ドレス解決部 1 2 0 3 は、 第 4図の表 4 0 1 のよ う に内部ネッ トワークに接続されたホス トに割 り 当てられた I P ァ ドレス とサブァ ドレス との対応関係を示す表を参照して、 外部ネッ ト ワークから受信したバケツ トのデスティネーショ ンサプア ドレスからそ のデスティネーショ ンサブァ ドレスが割り 当てられたホス 卜の I Pァ ド レスを求める。 Figure 12 shows the routing of buckets between the external network 1201 and the internal network 122 to which the host with the assigned subaddress is connected. FIG. 3 is a block diagram of a routing device 1200. The routing device 12000 includes a destination IP address resolution unit 1203, an inward routing unit 1204, a default routing unit 1205, and an external routing unit. It consists of a directional routing section 1206 and a force. The destination IP address resolution unit 1203 determines the IP address and subaddress assigned to the host connected to the internal network as shown in Table 401 of Figure 4. Refer to the table showing the correspondence, and Obtain the IP address of the host to which the destination subaddress is assigned from the destination subaddress of the bucket received from the work.
内部方向ルーティ ング部は、 バケツ 卜のヘッダのデスティネーショ ン I P ア ドレスをデスティ ネーショ ン I Pア ドレス解決部 1 2 0 3 で求め られた I P ァ ドレスに上書き して内部ネ ッ ト ワークへルーティ ングする, デスティネーショ ン I P ァ ドレス解決部 1 2 0 3 と内部方向ルーティ ング部によって、 デスティネーショ ンサブァ ドレスが設定されたバケツ ト を外部ネッ トワーク 1 2 0 1 から受信した場合、 そのデスティネーシ ョ ンサブァ ドレスが割り 当てられた内部ネッ ト ワーク に接続されたホス トへパケッ トをルーティ ングするこ とが可能となる。 デフオノレ トル一ティ ング部 1 2 0 5 は、 外部ネッ ト ワーク 1 2 0 1 力 ら受信したバケツ トにデスティネーショ ンサブァ ドレスが書かれていな い場合に、 あらかじめ定められたデフォル トホス トの I Pア ド レスをパ ケッ トのデスティネーショ ン I Pア ドレスに上書き して内部ネッ ト ヮー クヘルーティ ングする。 これによ り 、 デスティネーショ ンサブア ド レス が設定されていないバケツ トを外部ネッ ト ワーク 1 2 0 1 から受信した 場合、 そのバケツ トを処理するホス トへパケッ トをル一ティ ングする こ とができる。  The internal routing unit overwrites the destination IP address of the bucket header with the IP address obtained by the destination IP address resolution unit 123 and routes it to the internal network. When the destination IP address resolution bucket 122 and the inbound routing unit receive a bucket with a destination subaddress from the external network 1221, the destination Packets can be routed to hosts connected to the internal network to which the naming subaddress is assigned. If the destination subaddress is not written in the bucket received from the external network 1221, the default hosting section 125 will use the IP address of the predetermined default host. Overwrite the address to the packet's destination IP address for internal network health protection. Thus, when a packet for which the destination subaddress is not set is received from the external network 1221, the packet is routed to the host that processes the packet. Can be.
外部方向ルーティ ング部 1 2 0 6 は、 内部ネッ トワーク 1 2 0 2 力 ら バケツ トを受信し、 ノ ケッ トのソース I Pア ド レス力 ら表 4 0 1 に示さ れる よ う な内部ネッ ト ワークに接続されたホス 卜に割 り 当てられた I P ァ ド レス とサブァ ドレス と の対応関係を示す表を参照 して得られるサブ ァ ドレスをソースサブァ ド レス と してパケッ ト に設定して外部ネ ッ ト ヮ —クヘルーティ ングする。 このと き、 パケッ トのソース I P了 ド レスを ルーティ ング装置の外部ネッ ト ワーク 1 2 0 1側のネッ ト ワークイ ンタ 一フェース に割り 当てられた I P ア ドレスに上書き してもよい。 この外 部方向ル一ティ ング部 1 2 0 6 によ り 、 内部ネッ ト ワーク 1 2 0 2 力 ら 外部ネッ ト ワーク 1 2 0 1ヘルーティ ングされるパケッ 卜には、 ソース サブア ドレスが必ず設定されるこ とにな り 、 そのよ う なバケツ トを受信 した外部ネッ ト ワーク 1 2 0 1 に接続されたホス トは、 内部ネッ ト ヮー ク 1 2 0 2 に接続されたどのホス トから送信されたパケッ トであるかを 知るこ とができ、 返信のバケツ ト をそのホス ト宛に送信するこ とが可能 となる。 The external routing unit 1206 receives the bucket from the internal network 122 and receives the bucket's source IP address from the internal network as shown in Table 401. The sub address obtained by referring to the table showing the correspondence between the IP address and the sub address assigned to the host connected to the work is set in the packet as the source sub address and externally set. Net ヮ —Kerting. At this time, the source IP address of the packet is transferred to the network interface on the external network 1221 side of the routing device. You may overwrite the IP address assigned to one face. The source routing address is always set for the packets that are protected from the internal network 122 to the external network 122 by this external routing unit 126. The host connected to the external network 1221 that has received such a bucket will be sent from any host connected to the internal network 122. It is possible to know whether the packet is sent or not, and it is possible to send a reply packet to the host.
このよ う な構成のルーティ ング装置によ り 、 外部ネッ ト ワークから内 部ネッ ト ワークのホス トを特定して通信を行う こ とが可能となる。  With the routing device having such a configuration, it is possible to perform communication by specifying a host of the internal network from the external network.
第 1 3図は、 同 じ I Pア ドレスが割り 当てられるホス トが接続される 内部ネッ ト ワーク と外部ネッ ト ワーク とのバケツ トのルーティ ングを行 うルーティ ング装置のブロ ック図である。ルーティ ング装置 1 3 0 0 は、 サブア ド レス割り 当て部 1 3 0 1 と、 I Pア ドレス割り 当て部 1 3 0 2 と、 I Pア ド レス判定部 1 3 0 3 と、 正式 I P ア ドレス割り 当て部 1 3 0 4 と、 外部ルーティ ング部 1 3 0 5 と、 ソースサブア ドレス設定手段 1 3 0 6 と、 内部ルーティ ング部 1 3 0 7力 らなる。  Figure 13 is a block diagram of a routing device that routes buckets between the internal network and the external network to which hosts to which the same IP address is assigned are connected. . The routing device 1300 has a sub-address allocating section 1301, an IP address allocating section 1302, an IP address deciding section 133, and a formal IP address allocating section. It consists of an abutting section 13 04, an external routing section 13 05, a source subaddress setting means 13 06, and an internal routing section 13 07.
サブァ ド レス割り 当て部 1 3 0 1 は、 内部ネ ッ ト ワーク 1 3 0 8 に接 続されたホス トにサプア ドレスを割り 当てる。  The sub-address allocating unit 1301 allocates a subaddress to a host connected to the internal network 1308.
I P ア ドレス割り 当て部 1 3 0 2 は、 内部ネ ッ ト ワーク 1 3 0 8 に接 続されたホス トに同じ I Pア ド レスを割り 当てる。  The IP address allocating unit 1302 allocates the same IP address to the host connected to the internal network 1308.
I P ア ドレス判定部 1 3 0 3 は、 内部ネッ ト ワーク 1 3 0 8 に接続さ れたホス トに割り 当てられている I Pア ドレスが 「仮のものである」 か どう かを判定する。 I Pア ドレスが仮のものである とレ、う こ とは、 I P ア ド レス力 S 「正式なもの」 ではないとい う こ とで定義される。 I Pア ド レスが正式なものである と は、 I Pア ドレスが、 ルーティ ング装置 1 3 0 0 と外部ネッ ト ワーク 1 3 0 9が接続されて られており 、 かつ、 ルー ティ ング装置 1 3 0 0 の外部ネ ッ ト ワーク 1 3 0 9側のネ ッ ト ワークィ ンタ一フェースに割 り 当てられている I P ア ド レス と等しいという条件 が成り 立つこ と によって定義される。 したがって、 ルーティ ング装置 1 3 0 0 と外部ネッ ト ワーク 1 3 0 9 とが接続されていなければ、 ルーテ イ ング装置 1 3 0 0 の外部ネ ッ ト ワーク 1 3 0 9側のネ ッ ト ワークイ ン ターフェースに割 り 当てられている I Pァ ドレスは正式なものではない こ と になる。 The IP address determining unit 133 determines whether the IP address assigned to the host connected to the internal network 1308 is “temporary”. The fact that an IP address is tentative is defined by not being an IP address force S “official”. An IP address is official if the IP address is a routing device. Is connected to the external network 1310, and is assigned to the network interface on the external network 1309 side of the routing device 130.0. It is defined by the condition that it is equal to the assigned IP address. Therefore, unless the routing device 1300 and the external network 1309 are connected, the network device on the external network 1309 side of the routing device 1300 is not connected. The IP address assigned to the interface will not be formal.
正式 I P ア ド レス割り 当て部 1 3 0 4 は、 正式な I Pァ ド レスをネッ ト ワークに接続されているホス ト全てに割り 当てる こ と を行う。 すなわ ち、 正式なものである I P ア ド レスをネッ ト ワークに接続されているホ ス ト全てに割 り 当てるこ と を行う。ここに、 「ネッ ト ワークに接続されて いるホス ト」 とは、 内部ネッ ト ワーク 1 3 0 8 に接続されているホス ト のこ とである。  The formal IP address assignment unit 1304 performs assignment of the formal IP address to all the hosts connected to the network. In other words, the official IP address is assigned to all hosts connected to the network. Here, the “host connected to the network” is a host connected to the internal network 1308.
外部ルーティ ング部 1 3 0 5 は、 内部ネッ ト ワーク 1 3 0 8力 らパケ ッ ト を受信した場合、 正式 I Pア ドレス割り 当て部 1 3 0 4 によって正 式な I Pァ ド レスをネッ ト ワークに接続されたホス トに割り 当て、 受信 したパケッ 卜のソース I P ア ド レスを正式 I P ア ド レス割り 当て部 1 3 0 4 によって割り 当てられた正式な I P ア ドレスに設定して外部ネッ ト ワーク 1 3 0 9ヘル一ティ ングする。  When the external routing unit 135 receives a packet from the internal network 1308, the formal IP address assigning unit 1344 routes the formal IP address to the network. Assigned to the host connected to the network, set the source IP address of the received packet to the formal IP address assigned by the formal IP address assigning unit 134, and configure the external network. Work 1 3 9 9Healing.
以上の構成によ り 、 内部ネッ トワーク 1 3 0 8 から外部ネッ トワーク 1 3 0 9 へパケッ トがルーティ ングされる と き、 パケッ トのソース I P ア ドレスが正式な I P ア ドレス となってルーティ ングされ、 外部ネッ ト ワーク 1 3 0 9 に接続されたホス トがパケッ ト を受信した場合に、 返信 のバケツ トを送信するこ とができるよ う になる。  With the above configuration, when a packet is routed from the internal network 1308 to the external network 1309, the source IP address of the packet becomes an official IP address and becomes When a host connected to the external network 1309 receives a packet, it can send a reply packet.
また、 この外部ルーティ ング部 1 3 0 5 は、 内部ネッ ト ワーク 1 3 0 8 に接続されたホス トから受信した場合に、 そのホス トに割り 当てられ たサブァ ドレスをパケッ ト のソースサブァ ド レスに設定する ソースサブ ア ドレス設定手段 1 3 0 6 を有していてもよい。 これによ り 、 外部ネッ トワーク 1 3 0 9 にルーティ ングされるバケツ トにはソースサブァ ドレ スが確実に設定され、 内部ネッ ト ワーク 1 3 0 8 に接続されたホス トか ら送信されたパケッ ト を受信した外部ネッ ト ワーク 1 3 0 9 に接続され たホス トは、 内部ネッ トワーク 1 3 0 8 に接続されたどのホス トから送 信されたバケツ トであるかを知るこ とができる。 The external routing section 135 is connected to the internal network 130. 8 may have a source sub address setting means 1306 for setting a sub address assigned to the host to a source sub address of a packet when receiving from a host connected to the host 8 . This ensures that packets routed to the external network 1309 have the source subaddress set, and packets sent from hosts connected to the internal network 1308. The host connected to the external network 1309 that received the packet can know from which host connected to the internal network 1308 the packet was sent. .
内部ルーティ ング部 1 3 0 7 は、 外部ネ ッ ト ワーク 1 3 0 9力 らデス ティネーショ ンサプア ドレスが指定されたパケッ トを受信した場合、 サ ブア ド レス割り 当て部 1 3 0 1 によってそのサブァ ド レスが割り 当てら れたホス トへパケッ トを送信する。 これによ り 、 外部ネッ ト ワーク 1 3 0 9 に接続されたホス トが内部ネッ トワーク 1 3 0 8 に接続されたホス トのサブア ド レスを指定するこ とによ り、 内部ネッ ト ワーク 1 3 0 8 に 接続された特定のホス トへパケッ トを送信するこ とができるよ う になる c このよ う な構成を持つルーティ ング装置 1 3 0 0 によ り 、 内部ネッ ト ワーク 1 3 0 8 に接続されたホス トに同一の I Pァ ド レスを割り 当てて も、 外部ネ ッ ト ワーク 1 3 0 9 に接続されたホス トは、 サブア ドレスを 指定するこ と によ り 、 内部ネッ ト ワーク 1 3 0 8 に接続されたホス トを 特定でき、 そのホス ト と通信を行う こ とができる。 産業上の利用可能性 When the internal routing unit 1307 receives a packet with a designated destination address from the external network 1309, the sub address allocation unit 1301 sends the subaddress to the subroutine. Sends a packet to the host to which the address is assigned. This allows the host connected to the external network 1309 to specify the sub-address of the host connected to the internal network 1308, thereby making the internal network 1 3 0 Ri by 8 to the connected packet to a particular host in the routing device 1 3 0 0 c with this Yo I Do arrangement consisting cormorants I can and child transmission, the internal network 1 Even if the same IP address is assigned to the host connected to 310, the host connected to the external network 1309 can specify the sub-address by specifying the sub-address. The host connected to the internal network 1308 can be identified, and communication with that host can be performed. Industrial applicability
以上のよ う に、 本発明にかかわるルーティ ングソフ ト ウェア、 通信プ ログラム、 通信方法、 および、 ルーティ ング装置によれば、 内部ネッ ト ワークに接続されプライべ一トァ ドレスが割り 当てられたホス トを、 外 部ネッ トワークに接続されたホス トよ り特定するこ とが可能であり 、 通 信プロ トコルによ らず、 全てのアプリ ケーショ ンプロ グラムがプライべ ー トァ ドレスの割り 当てられたホス トで使用できるよ う になる。 また、 内部ネッ ト ワークに接続されたホス トに同一の I Pァ ドレスを割り 当て ても、 異なるサブア ドレスを割り 当てるこ とによ り 、 イ ンターネッ トな どの外部ネッ ト ワーク に接続されたホス トからは、 サブァ ドレスを指定 して内部ネッ ト ワークに接続されたホス トを特定して通信を行う こ とが できる よ う になる。 また、 内部ネッ トワークに接続されたホス トから、 外部ネッ トワークを経由 して別の内部ネッ ト ワークに接続されたホス ト を特定して通信を開始するこ とができる。 As described above, according to the routing software, the communication program, the communication method, and the routing device according to the present invention, a host connected to an internal network and assigned a private address is provided. Can be identified by the host connected to the external network, Regardless of the communication protocol, all application programs can be used on the host assigned the private address. Also, even if the same IP address is assigned to a host connected to the internal network, a different subaddress is assigned, so that a host connected to an external network such as the Internet can be assigned. From this point, it becomes possible to specify the sub-address and specify the host connected to the internal network to perform communication. Also, from a host connected to the internal network, a host connected to another internal network can be specified via the external network and communication can be started.

Claims

請求の範囲 l . 内部ネッ ト ワーク と外部ネッ トワーク と のパケ ッ トのルーティ ング を計算機に実行させるルーティ ングプロ グラムであって、 内部ネッ ト ヮ ーク のホス トに割り 当てられた I Pァ ド レス とサブァ ド レス の対応表を 参照して、 外部ネッ ト ワークから受信したパケッ 1、のデスティネーショ ンサブァ ドレスから前記対応表を用いて I Pァ ドレスを求めるデスティ ネーシ ヨ ン I P ア ド レス解決ステ ップと 、 パケ ッ トのヘッダのデスティ ネーシ ヨ ン I P ア ド レスを前記デスティネーシ ョ ン I P ア ド レス解決ス テツプで求め られた I Pア ドレスに上書き して内部ネ ッ トワークへパケ ッ トをルーティ ングする内部方向ルーティ ングステップと を計算機に実 行させるルーティ ングプログラム。 Claims l. A routing program that causes a computer to route packets between the internal network and the external network, and is an IP address assigned to a host on the internal network. Destination address of the packet 1 received from the external network by referring to the correspondence table between the address and the sub address, and obtaining the IP address using the correspondence table from the destination sub address. Step and overwrite the destination IP address in the packet header with the IP address determined in the destination IP address resolution step and packet to the internal network. A routing program that causes the computer to execute an in-direction routing step and a routing routine.
2 . 外部ネッ ト ワークから受信したパケッ トに、 デスティネーシ ョ ンサ プア ド レス が書かれていない場合には、 あらかじめ定められたデフオル トホス トの I P ア ド レスをパケッ トのデスティ ネーシ ョ ン I P ア ドレス に上書き して内部ネッ トワークへルーティ ングするデフオル トル一ティ ングステップを計算機に実行させる請求の範囲第 1 項記載のルーティ ン グプログラム。  2. If the destination received address is not written in the packet received from the external network, the IP address of the predetermined default host is changed to the destination IP address of the packet. The routing program according to claim 1, wherein the routing program causes a computer to execute a default routing step of overwriting an address and routing to an internal network.
3 . 内部ネ ッ ト ワークからパケッ トを受信した場合に、 ソース I Pア ド レスから前記対応表を参照して得られるサブァ ドレス をソースサプア ド レス と してバケツ トに設定して外部ネッ ト ワークへルーティ ングする外 部方向ルーティ ングステップを計算機に実行させる請求の範囲第 1項記 載のル一ティ ングプログラム。  3. When a packet is received from the internal network, the sub address obtained by referring to the above correspondence table from the source IP address is set in the bucket as the source address, and the packet is received from the external network. The routing program according to claim 1, which causes the computer to execute an external routing step for routing.
4 . 通信の相手となるホス トの I Pア ドレス とサブア ドレス と を求める ア ドレス解決ステ ップと、 前記ア ド レス解決ステップで求められた I P 7 ド レスをデスティ ネーショ ン I Pァ ド レス と してノヽ。ケ ッ ト に設定 し、 前記ァ ドレス解決ステップで求められたサプア ドレスをデスティネーシ ョ ンサプア ド レス と してパケッ ト に設定するデスティ ネーショ ンァ ド レ ス設定ステ ップを計算機に実行させる通信プロ グラム。 4. An address resolution step for obtaining the IP address and subaddress of the host to be communicated with, and the IP address obtained in the address resolution step is referred to as a destination IP address. And no. Set in the A communication program for causing a computer to execute a destination address setting step of setting a supplement address obtained in the address resolution step as a destination address in a packet.
5 . 前記ア ド レス解決ステ ップにおいて、 ドメ イ ンネームサーバの特定 のレコー ドに記録されているサブァ ドレスによって通信の相手となるホ ス ト のサブァ ド レスを求める請求の範囲第 4項記載の通信プログラム。  5. The method according to claim 4, wherein, in the address resolution step, a subaddress of a host to be communicated with is determined by a subaddress recorded in a specific record of the domain name server. Communication program.
6 . 自 ホス ト のサプア ド レスをパケッ トのソースサプア ドレス と して設 定する ソースサブア ド レス設定ステ ッ プを計算機に実行させる請求項 4 に記載の通信プログラム。 6. The communication program according to claim 4, further comprising causing the computer to execute a source sub-address setting step of setting a sub-address of the host as a source address of the packet.
7 . I Pバケツ ト に、ソースサブア ドレス とサブア ドレス と を設定して、 I Pァ ド レス とサブァ ド レス とで決定されるホ ス ト間で通信を行う通信 方法。 7. A communication method in which a source sub-address and a sub-address are set in an IP bucket, and communication is performed between hosts determined by the IP address and the sub-address.
8 . 前記ソースサブア ドレス と前記サブア ド レスは、 I Pパケッ トのへ ッダのオプショ ン部分に設定される請求の範囲第 7項記載の通信方法。 9 . サブア ド レスを ドメ イ ンネームサーバの特定の レコー ドに記録して サブア ド レスを解決する請求の範囲第 7項または請求の範囲第 8項記載 の通信方法。  8. The communication method according to claim 7, wherein the source sub-address and the sub-address are set in an optional part of a header of an IP packet. 9. The communication method according to claim 7, wherein the sub-address is recorded in a specific record of a domain name server to resolve the sub-address.
1 0 . 内部ネ ッ ト ワーク に接続されたホス 卜にサブァ ド レスを割り 当て るサブア ド レス割り 当てステップと、 内部ネ ッ ト ワークに接続されたホ ス ト全てに同一の I P ア ド レスを割り 当てる I P ア ド レス割り 当てステ ップと、 内部ネッ ト ワーク に接続されたホス トに割 り 当てられた I Pァ ドレスが仮の I Pァ ド レスかど う かを判定する I P ァ ドレス判定ステ ツ プと、 前記 I P ア ド レス割り 当てステ ッ プで割 り 当て られた I Pァ ド レ スが前記 I P ァ ド レス判定ステ ッ プによって仮の I P ァ ド レス である と 判定された場合には、 正式の I P ア ド レスをネッ ト ワークに接続された ホス ト全てに割り 当てる正式 I P ア ド レス割り 当てステップと、 内部ネ ッ 1、 ワークからバケツ トを受信した場合、 正式 I Pァ ド レス割り 当てス テ ツプと と もに、 パケッ ト の ソース I P ァ ド レスを前記正式 I P ァ ド レ ス割り 当てステップにおいて割り 当てた正式 I Pァ ド レス に上書きする 外部ル一ティ ングステップとを計算機に実行させるルーティ ングプログ ラム。 10. The sub-address assignment step to assign a sub-address to a host connected to the internal network, and the same IP address to all hosts connected to the internal network IP address assignment step to assign IP addresses and IP address judgment to determine whether the IP address assigned to the host connected to the internal network is a temporary IP address When the step and the IP address assigned in the IP address assignment step are determined to be a temporary IP address by the IP address determination step Includes a formal IP address assignment step that assigns an official IP address to all hosts connected to the network, and an internal network address. 1.When a bucket is received from the work, the source IP address of the packet is assigned in the formal IP address assignment step together with the formal IP address assignment step. A routing program that causes the computer to execute an external routing step that overwrites the official IP address that was set.
1 1 . 内部ネッ ト ワーク に接続されたホス トからバケツ トを受信した場 合、 前記サブア ド レス割り 当てステ ップにおいて、 そのホス トに割り 当 てられたサブァ ド レスをバケツ 卜のソースサブァ ド レス に設定する ソ一 スサブァ ド レス設定ステ ップを計算機に実行させる請求の範囲第 1 0項 記載のルーティ ングプロ グラム。  1 1. When a bucket is received from a host connected to the internal network, the subaddress assigned to the host is changed to the source subaddress of the bucket in the subaddress assignment step. 10. The routing program according to claim 10, wherein the source sub-address setting step for setting a dress is executed by a computer.
1 2 . 外部ネ ッ ト ワーク からデスティ ネーショ ンサブァ ド レスが指定さ れたバケツ トを受信した場合、 前記サブア ド レス割り 当てステップによ つてそのデスティ ネーショ ンサプア ドレスが割 り 当てられたホス トへパ ケ ッ ト を送信する内部ルーティ ングステップを計算機に実行させる請求 の範囲第 1 0項記載のルーティ ングプロ グラム。  1 2. When a destination subaddress is received from the external network, the destination subaddress is assigned to the destination subaddress by the above-mentioned subaddress allocation step. 10. The routing program according to claim 10, wherein said routing program causes a computer to execute an internal routing step of transmitting a packet.
1 3 . 自 ホス トのサブァ ドレスを獲得する 自サブァ ド レス解決ステ ップ と、 送信するパケッ ト の ソースサブア ド レス に前記自サブア ド レス解決 ステップにおいて獲得されたサブァ ドレスを設定する 自サブァ ドレス設 定ステップと を計算機に実行させる通信プロダラム。  1 3. Self-address resolution step for acquiring the sub-address of the own host, and self-address for setting the sub-address acquired in the self-address resolution step to the source sub-address of the packet to be transmitted. A communication program that causes a computer to execute the setting steps and.
1 4 . 内部ネ ッ ト ワーク と外部ネ ッ ト ワーク と のバケ ツ ト のルーティ ン グを行うルーティ ング装置であって、 内部ネッ ト ワークのホス トに割り 当てられた I P ア ド レス とサブア ドレス との対応表を参照して、 外部ネ ッ ト ワークから受信したパケッ トのデスティネーショ ンサプア ド レスか ら前記対応表を用いて I Pァ ド レスを求めるデスティネーショ ン I Pァ ド レス解決部と、 バケツ ト のヘッダのデスティネーシ ョ ン I P ァ ド レス を前記デスティネーショ ン I Pァ ド レス解決ステ ップで求められた I P 了 ド レスに上書き して内部ネッ ト ワークへバケツ トをルーティ ングする 內部方向ルーティ ング部とからなるルーティ ング装置。 14 4. A routing device that routes the bucket between the internal network and the external network, and the IP address and subaddress assigned to the host on the internal network. Refers to the correspondence table with the address and obtains the IP address from the destination supplement address of the packet received from the external network using the correspondence table.Destination IP address resolution And the destination IP address of the bucket's header as the IP address determined in the destination IP address resolution step. Routing device that overwrites the address and routes the bucket to the internal network.
1 5 . 外部ネッ ト ワークから受信したパケッ トに、 デスティネーショ ン サブァ ド レスが書かれていない場合には、 あらかじめ定められたデフォ ル トホス トの I P ア ド レスをパケッ ト のデスティ ネーショ ン I P ァ ドレ ス に上書き して内部ネ ッ ト ワークへルーティ ングするデフオル トルーテ ィ ング部を備えた請求の範囲第 1 4項記載のルーティ ング装置。  15 5. If the destination sub address is not written in the packet received from the external network, the IP address of the predetermined default host is changed to the destination of the packet. 15. The routing device according to claim 14, further comprising a default routing unit that overwrites an IP address and routes to an internal network.
1 6 . 内部ネッ ト ワーク力 らパケッ トを受信した場合に、 ソース I Pァ ド レスから前記対応表を参照して得られるサブア ドレスをソースサブァ ド レス と してバケツ トに設定して外部ネッ ト ワークヘル一ティ ングする 外部方向ルーティ ング部を備えた請求の範囲第 1 4項記載のルーティ ン グ装置。  16 6. When a packet is received from the internal network, the sub address obtained by referring to the above correspondence table from the source IP address is set in the bucket as the source sub address, and the packet is received from the external network. 15. The routing device according to claim 14, further comprising an external routing portion for performing work-healing.
1 7 . 内部ネッ ト ワークに接続されたホス トにサブァ ドレスを割り 当て るサブァ ドレス割 り 当て部と、 内部ネッ ト ワークに接続されたホス ト全 てに同一の I P ア ド レスを割り 当てる I Pア ド レス割 り 当て部と、 内部 ネッ ト ワーク に接続されたホス ト全てに割り 当てられた I Pァ ドレスが 仮の I Pア ドレスかどう かを判定する I Pァ ド レス判定部と、 内部ネ ッ ト ワークに接続されたホス ト全てに割り 当てられた I P ア ドレスが前記 I Pア ドレス判定ステップによって仮の I Pァ ドレスである と判定され た場合には、 正式の I P ァ ドレスをネッ ト ワークに接続されたホス ト全 てに割り 当てる正式 I P ア ド レス割り 当て部と、 内部ネッ ト ワークから バケツ トを受信した場合、 正式 I Pア ドレス割 り 当て部によって正式 I P ア ドレスを割 り 当てる と と もに、 ノ ケッ トの ソース I P ア ドレスを前 記正式 I Pア ド レス割り 当て部によって割り 当てたられた正式 I Pア ド レスに上書き してルーティ ングする外部ルーティ ング部.と を備えたル一 ティ ング装置。 1 7. Assign the same IP address to the sub-address allocating unit that allocates sub-addresses to the hosts connected to the internal network, and all the hosts connected to the internal network. An IP address assignment unit, an IP address determination unit that determines whether the IP addresses assigned to all the hosts connected to the internal network are temporary IP addresses, and an internal If the IP addresses assigned to all the hosts connected to the network are determined to be temporary IP addresses in the IP address determination step, a formal IP address is assigned to the network. Formal IP address assignment unit assigned to all hosts connected to the network, and when a bucket is received from the internal network, the official IP address assignment unit assigns the official IP address. External routing that allocates the address and overwrites the source IP address of the socket with the formal IP address assigned by the formal IP address assignment unit. A routing device with a part and a part.
1 8 . 前記外部ルーティ ング部は、 内部ネッ ト ワークに接続されたホス 卜からバケツ トを受信した場合、 そのホス トに割り 当てられたサブァ ド レスをパケッ ト の ソースサブァ ド レス に設定する ソースサプア ド レス設 定手段を有する請求の範囲第 1 7項記載のルーティ ング装置。 18. When the external routing unit receives a bucket from a host connected to the internal network, the external routing unit sets the sub address assigned to the host to the source sub address of the packet. The routing device according to claim 17, further comprising a dress setting means.
1 9 . 外部ネッ ト ワークからデスティネーショ ンサブァ ド レス が指定さ れたバケツ トを受信した場合、 前記サブア ド レス割り 当て部によって、 そのデスティネーショ ンサプア ドレスが割り 当てられたホス トへバケツ トを送信する内部ル一ティ ング部を有する請求の範囲第 1 7項記載のル 一ティ ング装置。 19. When receiving a bucket with a destination sub-address specified from an external network, the sub-address allocating unit sends a bucket to the host to which the destination sub-address is allocated. The routing device according to claim 17, further comprising an internal routing unit for transmitting a route.
PCT/JP2001/004795 2001-06-07 2001-06-07 Routing software, communication program, communication method, and routing device WO2002101998A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2003504609A JPWO2002101998A1 (en) 2001-06-07 2001-06-07 Routing software, communication program, communication method, and routing device
PCT/JP2001/004795 WO2002101998A1 (en) 2001-06-07 2001-06-07 Routing software, communication program, communication method, and routing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2001/004795 WO2002101998A1 (en) 2001-06-07 2001-06-07 Routing software, communication program, communication method, and routing device

Publications (1)

Publication Number Publication Date
WO2002101998A1 true WO2002101998A1 (en) 2002-12-19

Family

ID=11737406

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2001/004795 WO2002101998A1 (en) 2001-06-07 2001-06-07 Routing software, communication program, communication method, and routing device

Country Status (2)

Country Link
JP (1) JPWO2002101998A1 (en)
WO (1) WO2002101998A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011160451A (en) * 2011-03-22 2011-08-18 Advanced Network Technology Lab Pte Ltd Computer network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1013471A (en) * 1996-06-25 1998-01-16 Nippon Telegr & Teleph Corp <Ntt> Inter-network connection system and domain name managing method
JP2000059430A (en) * 1998-08-07 2000-02-25 Matsushita Electric Works Ltd Network address conversion method and its system
JP2000059416A (en) * 1998-08-07 2000-02-25 Matsushita Electric Ind Co Ltd Gateway
JP2001007835A (en) * 1999-06-23 2001-01-12 Sony Corp Data transmission device and method, data repeater and method, data receiver and method, data communication system and data communication method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001086160A (en) * 1999-09-14 2001-03-30 Aiwa Co Ltd Data communication method and communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1013471A (en) * 1996-06-25 1998-01-16 Nippon Telegr & Teleph Corp <Ntt> Inter-network connection system and domain name managing method
JP2000059430A (en) * 1998-08-07 2000-02-25 Matsushita Electric Works Ltd Network address conversion method and its system
JP2000059416A (en) * 1998-08-07 2000-02-25 Matsushita Electric Ind Co Ltd Gateway
JP2001007835A (en) * 1999-06-23 2001-01-12 Sony Corp Data transmission device and method, data repeater and method, data receiver and method, data communication system and data communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011160451A (en) * 2011-03-22 2011-08-18 Advanced Network Technology Lab Pte Ltd Computer network

Also Published As

Publication number Publication date
JPWO2002101998A1 (en) 2004-09-30

Similar Documents

Publication Publication Date Title
US7339895B2 (en) Gateway device and control method for communication with IP and IPV6 protocols
US5812819A (en) Remote access apparatus and method which allow dynamic internet protocol (IP) address management
JP3792188B2 (en) Method for assigning a plurality of IP addresses to one NIC and apparatus suitable for the method
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
JPH1093597A (en) Communication control method and electronic equipment
KR100689034B1 (en) Network address translation system and method being capable of accessing to node having private IP address from external network and computer-readable medium recording the method
JP2003348116A (en) Address automatic setting system for in-home network
JP4345565B2 (en) Mobile router, location management server, mobile network management system, and mobile network management method
JP4337232B2 (en) Network device and computer network
JP2009529257A (en) IPv6 address acquisition apparatus, method, and system
JP4925130B2 (en) Communication control method and system
JP4019666B2 (en) Gateway device and information device
CN100479457C (en) Implementation method for transferring data in virtual private network
WO2002101998A1 (en) Routing software, communication program, communication method, and routing device
KR101074063B1 (en) Home gateway and dynamic channel generation method thereof
JPH1013471A (en) Inter-network connection system and domain name managing method
KR20110088347A (en) Identifier and locator structure and communication method based on the structure
JP3892235B2 (en) Automatic address assignment method
JP2005033317A (en) Radio access point apparatus and control method
CN112261165B (en) Communication method, system, device, computer equipment and storage medium
US6934764B2 (en) Method of converting a network address
JP7472919B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JP4815181B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JPH08223169A (en) Method for automatically setting tcp/ip host address and device therefor
JP2003087337A (en) Gateway device and its control method

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2003504609

Country of ref document: JP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 69(1) EPC OF 170304

122 Ep: pct application non-entry in european phase