WO2001063854A1 - Terminal, relay device, communication method, and communication program therefor - Google Patents

Terminal, relay device, communication method, and communication program therefor Download PDF

Info

Publication number
WO2001063854A1
WO2001063854A1 PCT/JP2001/001284 JP0101284W WO0163854A1 WO 2001063854 A1 WO2001063854 A1 WO 2001063854A1 JP 0101284 W JP0101284 W JP 0101284W WO 0163854 A1 WO0163854 A1 WO 0163854A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
address
service identifier
terminal device
entry
Prior art date
Application number
PCT/JP2001/001284
Other languages
French (fr)
Japanese (ja)
Inventor
Kenji Takeda
Kazuhiro Okanoue
Masahiro Ono
Koichi Ebata
Shuichi Shibata
Masahiko Tsukue
Original Assignee
Nec Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nec Corporation filed Critical Nec Corporation
Priority to AU2001234115A priority Critical patent/AU2001234115A1/en
Publication of WO2001063854A1 publication Critical patent/WO2001063854A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/663Transport layer addresses, e.g. aspects of transmission control protocol [TCP] or user datagram protocol [UDP] ports

Definitions

  • Terminal device Terminal device, relay device, communication method and communication program therefor
  • the present invention relates to a terminal device, a relay device, a communication method, and a communication program thereof, and more particularly, to data communication between a plurality of networks configured by different address systems.
  • IP address assigned to a terminal device that communicates on the Internet must be unique on the Internet. For this reason, with the spread of the Internet and the accompanying increase in the number of terminal devices, the shortage of addresses assigned to terminal devices has become a problem.
  • IP address assignment It is managed globally by (Internet As Signe d Numbers Au- tority), and users cannot basically assign and use it without permission.
  • these technologies convert addresses between one connected network and the other network between two connected networks having different address systems, and transfer an IP address as a global address.
  • the private address is defined in RFC 1918, "Address Allocate on for Private Internet,” and is used irrespective of the above-mentioned IANA management in the United States.
  • the second condition uses an addressing system based on the fact that each of the network Na and the network Nb assigns an identifier uniquely identifiable in the network to the connected terminal device as an address. That is.
  • the third condition is as follows for any terminal device connected to the network Na.
  • One partial condition 3-1 is that “the value A of the address of the terminal device T does not make sense as an identifier representing an address in the address system of the network Nb (eg, is not used as an identifier representing an address)”.
  • the other part of condition 3-2 is that “the value A of this address is meaningful as an identifier that represents an address in the address system of network Nb (used as an identifier that represents an address), but the value A of this address is used in network Nb. Is not assigned to the terminal device connected to the network Na. "
  • the Internet 1010 includes a meta network in which a first network 1011, a second network 1012, a third network 1013, and a fourth network 1014 are connected.
  • the address system of each network shown in the figure is as follows. That is, the Internet 1010 uses a global address excluding this number in operation so that “133.xx.x.x” can be used in the first network 1011.
  • the first network 1011 uses the global address “133.X.X.x”.
  • the second network 1012 uses the private address “10.X.X.x”.
  • the third network 1013 uses the private address “10.0-254.X.x”.
  • the fourth network 1014 uses the private address “10.255.X.x”.
  • the third network 1013 and the fourth network 1014 are configured such that “10.0.X.X x: L 0.254.X.X” of one private address “10.XXx” The remaining “10. 255. ⁇ . ⁇ ” is It is a subnet of 4 networks 104.
  • any two networks in FIG. 1 satisfy the partial condition 1 and the partial condition 2 among the above conditions.
  • Both the global address system and the private address system use a part of the value in the 32-bit space as the address value.However, the global address system does not use the address value used in the private address system. I'm sorry. Therefore, the network using the global address system and the network using the private address system satisfy the above partial condition 3_1, and the above condition is satisfied. Therefore, the address system is different. That is, the address system for the Internet 110 and the first network 101 is composed of the second network 1102, the third network 101, and the fourth network 101. 4 The address system for each is different.
  • the addressing system is not different.
  • the second network 1 0 1 2 has the address system since the condition 3-1 does not hold but the condition 3-2 holds with respect to the third network 1 0 1 3 and the fourth network 1 0 1 4.
  • the address systems do not differ between the third network 101 and the fourth network 104 because Condition 3 does not hold.
  • a conventional communication system to which the NAPT technology is applied includes a terminal device 111, a NAPT relay device 112, a server device 113, and a private network 111. It consists of 40, and a global network of 1,150.
  • the terminal device 110 is accessed from the terminal device 110 via the NAPT relay device 112.
  • the terminal device 1 1 1 0 and the NAPT relay device 1 1 2 0 are connected via a private network 1 1 4 0.
  • the NAPT relay device 1120 and the server device 1130 are connected via a global network 1150.
  • Different address systems are applied to the global network 1150 and the private network 1140, respectively. Terminal devices connected to the global network 1 150 are assigned a global address, and The terminal connected to the work 1140 is assigned a private address.
  • the server device 1130 also includes communication means using TCPZIP, and uses this communication means to wait for a connection from the client program of the terminal device 1110 and to provide information processing equipment equipped with a server program that communicates with the connected client program to the global.
  • One global address (referred to as Ag-s) of one val network 1150 is assigned.
  • the super program is waiting for a connection from the client program at the port identified by the port number "P-s".
  • the client program needs to know the port number "P-s" of this port, and when connecting to the server program, the communication means uses this port number "P_s" as the port number of the destination port. specify.
  • the client program can connect to the server program and start a communication session with the server program.
  • the N APT relay apparatus 1120 includes packet receiving means 1121 and 1123, packet transmitting means 1122 and 1124, address converting means 1125 and 1126, and storage means 1127.
  • the NAPT relay device 1120 is a router having an IP bucket relay function.
  • One private address “Ap-r” is assigned to the private network 1140 and one global address is assigned to the global network 1150. Ag—r ”each is assigned.
  • the illustrated correspondence management table 271 includes an entry identifier field, a first socket field, a second socket field, and a third socket field.
  • Has an entry consisting of The entry identifier field stores the value of the entry identifier that uniquely identifies each entry in the correspondence management table in the NAPT relay device 112.
  • the first socket field is composed of a pair of an address and a port number of the private network 1140
  • the second socket field and the third socket field are each a global network. It consists of a pair of an IP address of 1501 and a port number.
  • the bucket receiving means 1 1 2 1 receives an IP packet addressed to the global network 1 1 3 0 sent from the private network 1 1 1 0, and converts the received IP packet into address conversion means 1 1 1 2 pass to 5.
  • the packet transmitting means 1 122 sends the IP bucket passed from the address converting means 1 125 to the global network 115.
  • the address conversion means 1 125 comprises a correspondence search means 1 131, a bucket conversion means 1 132 and a registration means 113.
  • the correspondence search means 1 1 3 1 receives the IP bucket passed from the packet receiving means 1 1 2 1 to the address conversion means 1 1 2 5.
  • the value of the first socket field is transmitted from the correspondence management table of the storage means 112 127 to the transmission of this IP bucket.
  • the registration means 1 1 3 3 Upon receiving the IP bucket, the registration means 1 1 3 3 generates an unused entry identifier and selects one of the unused port numbers. Then, the registration means' 1 1 3 3 uses this entry identifier as the value of the entry identifier field, and registers each of the set of the source address and the source port number and the set of the destination address and the destination port number of this IP bucket. Take the values of the first socket field and the second socket field. Next, the registration means 1 1 3 3 sets the set of the IP address of the global network 1 150 in the NAPT relay apparatus 1 1 20 and the selected port number as the value of the third socket field. An entry is created, and this entry is stored in the correspondence management table 272 of the storage means 1 127. And the registration means 1 1 3 3 3
  • the address conversion means 1 126 comprises a correspondence search means 1 141 and a bucket conversion means 1 142.
  • the correspondence search means 1 141 When receiving the IP bucket from the bucket receiving means 1 123, the correspondence search means 1 141, based on the correspondence management table of the storage means 112, stores the value of the second socket field of this IP bucket. Search for an entry that is equal to the source address and source port number pair and that the value of the third socket field is equal to the destination address and destination port number pair of this IP bucket. If the corresponding entry is detected by this search, the corresponding search means 1141 passes this IP bucket and the entry identifier stored in the entry identifier field of this entry to the bucket conversion means 1142 . If the corresponding entry is not detected by this search, the corresponding search means 1 141 discards this IP packet because the destination of this IP packet is not known.
  • the terminal device 110 starts a communication session between the port “P_t” of the terminal device 110 and the port “P-s” of the server device 110. Therefore, the first IP bucket (referred to as IP bucket A) between the port “Pt” of the terminal device 110 and the port “Ps” of the server device 110 must be private. The operation when the packet is transmitted to the network 104 will be described.
  • the IP bucket A has a destination address of the IP address “Ag—s” of the server device 113 and a source address of the IP address “Ap_t” of the terminal device 110. Yes, and the destination port number in the transport layer protocol header included in IP bucket A is "P-s", and the source port number is "F_t”. Also, it is assumed that no entry is registered as an initial state in the correspondence management table of the storage means 1 127.
  • the corresponding search means 1 13 1 passes the IP packet A to the registration means 1 13 3 because the above-mentioned entry was not detected in the above search.
  • the registration means 1 1 3 3 When the IP packet A is passed, the registration means 1 1 3 3 generates an unused entry identifier, and generates a port number which is not used in the NAPT repeater 1 1 In this case, select one “F_r”. Then, the registering means 1 1 3 3 uses the entry identifier as the value of the entry identifier field, sets the pair “Apt—Pt” of the source address and the source port number of the IP bucket A, and the destination address. And the pair of destination port numbers “Ag-s, P-s” are the respective values of the first socket field and the second socket field. Also, the registration means 113 is a set “Ag-r, P-r” of the IP address of the global network 1150 of the NAPT relay device 112 and this selected port number. Is created as a value of the third socket field, and this entry is stored in the correspondence management table of the storage means 1 127. Then, the registering means 113 transfers this IP packet A and the entry identifier to the packet converting
  • the bucket converting means 1 1 3 2 converts each of the source address “Apt” and the source port number “Pt” of this IP bucket A into a packet.
  • the IP address "Ag-r" and the port number "P-r” shown in the third socket field in the entry of the correspondence management table identified from this entry identifier are rewritten to the respective values.
  • the packet (called IP packet B) is passed to the packet transmitting means 102.
  • the IP bucket B sent from the NAPT relay device 112 is received by the server device 110 via the global network 115.
  • the server apparatus 1 0 3 based on the contents of the source address, the source port number, the destination address, and the destination port number included in the IP bucket B, transmits the IP packet B with the IP address “Ag—r”.
  • the destination address “A g—r”, the destination port number “P—r”, the source address “A g—s”, and the source port number “F—s” for this IP packet.
  • the NAPT relay apparatus 1120 when receiving the IP bucket (referred to as IP bucket C) of this communication session from the private network 1140, the NAPT relay apparatus 1120 performs the same processing as the above-described processing of the IP bucket A. It works, but the corresponding search means 1 1 3 1 In this case, the correspondence search means 1 1 3 1 reads the value of the first socket field from the correspondence management table of the storage means 1 1 27 into the set “A” of the source address and the source port number of this IP bucket C. p—t, P—t ”and the value of the second socket field has a value equal to the destination address and destination port number pair“ A g—s, P—s ”of this IP bucket C. Detect entry. Next, the correspondence search means 1 13 1 passes the IP bucket C and the entry identifier of the detected entry directly to the bucket conversion means 1 13 2 without passing through the registration means 1 13 3.
  • Subsequent processing in the bucket converting means 1 1 3 2 is performed in the same manner as in the case of the above-mentioned IP bucket A, and this IP bucket C has the same source address “Ag-r” as the above-mentioned IP bucket B and the source port. It is converted into an IP bucket having the number “Pr” (called IP bucket D), and the converted IP bucket D is sent to the super-user device 1 130 via the global network 1 150. Sent.
  • IP bucket E the IP packet (referred to as IP bucket E) of this communication session transmitted from the server apparatus 1130 after processing the above-mentioned IP bucket A and IP bucket B has the destination address “A g— r ", destination port number” P-r “, source address” Ag_s ", and source port number” P_s "are set.
  • the packet is received by the bucket receiving means 1 123 of the NAPT relay apparatus 112 via The bucket receiving means 1 1 2 3 passes this IP packet E to the address converting means 1 1 2 6.
  • the IP bucket E passed to the address translating means 1 126 is received by the corresponding searching means 1 141.
  • the correspondence search means 1 141 reads the value of the second socket field of this packet E from the correspondence management table of the storage means 1 127.
  • the source address and port number pair “g_s, P—s” is equal, and the value of the third socket field is the destination address and destination port number pair “Ag” of this IP bucket E. — Search for entries equal to "r, P_r".
  • the correspondence management table there is an entry registered when processing the above-mentioned IP bucket A, and since this entry corresponds to the above-mentioned entry to be searched, the correspondence search means 1 141 1 E and the entry identifier of this entry are passed to the packet conversion means 1 1 4 2.
  • the packet conversion means 1 1 4 2 passes the above-mentioned IP packet E and the above-mentioned entry identifier. Then, the destination address “Ag—r” and the destination port number “P_r” of the IP bucket E are respectively assigned to the IF address “Ap” of the first socket in the entry of the correspondence management table identified from this entry identifier. —T ”and the port number“ P—t ”, and pass the rewritten IP bucket (called IP bucket F) to the bucket transmitting means 1 1 2 4.
  • the bucket transmitting means 1 124 Upon receiving the IP bucket F, the bucket transmitting means 1 124 sends out the IP packet F to the private network 114.
  • the IP packet F sent from the N APT relay device 1 120 is received by the terminal device 1 1 1 10 via the private network 1 1 40.
  • a socket composed of a set of a private address and a port number by the NAPT relay device 111 and a global address and a port number are used.
  • One communication session identified by a pair with a socket composed of a set is associated with one set of a global address and a port number, and a private network is used for relaying.
  • IP communication between a device connected to the base network 1140 and a device connected to the global network 1150 is enabled.
  • the server device needs to know the IP address of the terminal device from the name of the terminal device, but the address cannot be resolved at this time.
  • the communication system when communication is performed between a super network device connected to the global network and a terminal device connected to the private network, the communication system is connected to the private network. Although it is possible to start communication from a terminal device to a super-device connected to the global network, communication cannot be started from a server device, which is not preferable.
  • an object of the present invention is to provide a terminal device, a relay device, a communication method, and a communication program that can start data communication. Disclosure of the invention
  • data communication can be started between terminal devices connected to a plurality of networks configured by different address systems regardless of a global network and a private network. It concerns communication methods.
  • the first network and the second network having a different address system from the first network are connected via a relay device, and the relay device is connected to the first network.
  • At least one first entry including the address of the first terminal device connected to the first terminal device and the service identifier of the service provided by the first terminal device is stored in the first management table. .
  • the relay device receives the bucket, and receives the bucket from the first management table. Searches for the first entry with the same service identifier as the destination service identifier contained in the packet and finds the destination address of that bucket. The address of the first terminal device in the first entry is rewritten, and the bucket is transmitted to the first terminal device.
  • FIG. 3 is a block diagram showing an example of a partial configuration of FIG. 2,
  • FIG. 5 is a system configuration diagram showing a first embodiment of the present invention by blocks
  • FIG. 6 is a block diagram showing one form of one address conversion means in FIG. 5,
  • FIG. 7 is a block diagram showing one form of the other address conversion means in FIG. 5,
  • FIG. 8 is a diagram showing a configuration of a table in the storage means of FIG. 5
  • FIG. 9A is a diagram showing a configuration of a data IP bucket used in FIG. 5, and
  • FIG. The figure shows one configuration of the IP bucket for the address resolution inquiry message used in FIG.
  • FIG. 9C is a diagram showing one configuration of an IP bucket for an address resolution response message used in FIG. 5,
  • FIG. 9D is a diagram showing a configuration of a bucket in the network 4 used in FIG. 5,
  • FIG. 10 is a sequence diagram showing one procedure of a main operation in FIG. 5, and FIG. 11 is a block diagram showing one mode of a network configuration in the present invention.
  • FIG. 12 is a block diagram showing a second embodiment of the present invention.
  • FIG. 13 is a sequence diagram showing one procedure of the main operation in FIG. 12, and
  • FIG. FIG. 12 is a sequence diagram showing one procedure of a main operation different from FIG. 13 in FIG. 12;
  • FIG. 15 is a block diagram showing a third embodiment of the present invention
  • FIG. 16 shows another form of the other address conversion means in FIG. 15 in FIG. It is a block diagram
  • FIG. 17 is a diagram showing one configuration of a table in the storage means of FIG. 15, and FIG. 18 is a sequence diagram showing one procedure of main operation in FIG.
  • FIG. 14 is a block diagram showing a fourth embodiment of the present invention.
  • FIG. 20 is a block diagram showing one form of one address conversion means in FIG.
  • FIG. 21 is a block diagram showing one form of the other address conversion means in FIG.
  • FIG. 22 is a diagram showing one configuration of the storage means in FIG. 19;
  • FIG. 25 is a block diagram showing the configuration of a second embodiment according to the present invention.
  • FIG. 26 is a diagram showing one configuration of a table of storage means used in the embodiment of FIG. It is. BEST MODE FOR CARRYING OUT THE INVENTION
  • FIG. 5 is a system configuration diagram showing a first embodiment of a terminal device, a relay device, and a communication method thereof according to the present invention.
  • the illustrated communication system includes a plurality of terminal devices 1 _ 1 to 1, a relay device 2, a terminal device 3, a private network 4, and a global network 5. ing.
  • the illustrated private network 4 and global network 5 are networks to which different address systems are applied. Therefore, for comparison with the above-described conventional technology, the private network 4 and the global network 5 are defined as follows.
  • the private network 4 is a network that provides a data transfer service, such as an IP network, an ISDN network, and a mobile communication network, assuming a network composed of IP or other technologies.
  • a local network bucket carrying user data and control information between the terminal device 1_x and the relay device 2 (hereinafter referred to as a local bucket) is transferred.
  • the global network 5 is assumed to be an IP network using global addresses. In the global network 5, an IP packet carrying an address resolution inquiry message for performing an inquiry for address resolution between the relay device 2 and the terminal device 3, and an address resolution response message responding to the address resolution inquiry.
  • the IP bucket carrying the IP packet and the IP bucket carrying other control information or user data are transferred.
  • the terminal device 11X has a communication function that can be used in the private network 4, and is an information processing device equipped with a communication program that communicates with the communication program of the terminal device 3 using this communication function. is there.
  • Each of the terminal devices 11-X is assigned a terminal device name and one address of the private network 4, for example, Al-x.
  • the terminal device name is composed of the information of the network to which this terminal device is connected, such as the FQDN (Fu1 1 y Qualified Domain Name) format, and an identifier that can be uniquely identified within this network.
  • Other terminal devices It is used by the device or other terminal programs or users to identify this terminal.
  • the relay device 2 includes packet receiving means 21 and 23, packet transmitting means 22 and 24, address conversion means 25 and 26, storage means 27, and address inquiry response means 28.
  • One address “for example, Al-r” of the private network 4 and one IP address “for example, A2-2” of the global network 5 are assigned to the relay device 2. I have.
  • the terminal device 3 is a terminal device used on the existing Internet, has a communication function using TCP / IP, and has a communication program for communicating with the communication program of the terminal device 11X using the communication function. Information processing equipment.
  • the terminal device 3 is assigned a terminal device name and one address of the global network 5 “for example, A2-1”.
  • the terminal device name like terminal device 1-X, is composed of information on the network to which this terminal device is connected, such as FQDN format, and an identifier that can be uniquely identified within this network.
  • the terminal, or other terminal program or user, is used to identify this terminal.
  • the terminal device 3 has an address resolving means.
  • the address resolving means starts communication with another terminal device, the terminal device 3 obtains the IP address of this terminal device (or this terminal device To the IP address of the device that is the destination of the IP bucket to be sent to.
  • This address resolution method is realized by the DNS (Doma in Name System) technology described in "D ⁇ MAIN NAME S one IMPLEMENTAT I ON AND S PEC IF ⁇ CAT I ON" in RFC 1035. I have.
  • the bucket receiving means 21 receives a packet addressed to the global network 5 sent from the private network 4 and passes the received packet to the address translating means 25.
  • the packet transmitting means 22 transmits the IP bucket passed from the address converting means 25 to the global network 5.
  • the bucket receiving means 23 receives the IP bucket addressed to the private network 4 sent from the global network 5 and passes the received IP bucket to the address conversion means 26.
  • the bucket transmitting means 24 sends out the local bucket passed from the address conversion means 26 to the private network 4.
  • the address conversion means 25 includes correspondence search means 251, packet conversion means 252, and registration means 253.
  • the address conversion means 26 is composed of a correspondence search means 261, a packet conversion means 262, a registration search means 263, and a registration means 264.
  • the storage means 27 has a processing terminal registration table 271, and a corresponding management table 272 as shown in FIG.
  • each of the processing terminal registration table 271 and the correspondence management table 271 will be described prior to the description of the respective means shown in FIGS. 6 and 7.
  • the processing terminal registration table 27 1 has an entry identifier field for storing a value of a first entry identifier for uniquely identifying an entry of the processing terminal registration table 27 1 in the relay device 2. It has a set of an address field for storing the address of the private network 4 and a port number field for storing a port number.
  • the bucket converting means 25 52 converts the local bucket into an IP bucket.
  • the bucket conversion means 25 52 identifies the source address and source port number of this IP bucket in the corresponding socket entry in the correspondence management table 272 identified by the corresponding second entry identifier.
  • the IP address and the port number shown in the field are rewritten to the values, and the rewritten IP bucket is passed to the bucket transmitting means 22.
  • the registration means 253 generates an unused second entry identifier when the local bucket is passed, and selects one unused port number.
  • the power operation monitoring means 11 detects the operation of turning on the power, and Notify the registration request transmitting means 12 of ON.
  • the registration request transmitting means 12 refers to the service list provided in the storage means 15 and compares the port number list including all the port numbers set in the provided service list with the address of the terminal device 1a. A registration request message including the registration request message is created in the local bucket, and transmitted to the relay device 2a via the private network 4 (step S12).
  • the relay device 2a starts accepting data communication from the terminal device 3 addressed to the registered port number of the terminal device 1a, and becomes capable of relaying.
  • the operation confirmation request message is received by the operation confirmation response unit 14 of the terminal device 1a, and the operation confirmation response unit 14 converts the operation confirmation response message, which is a response to the operation confirmation request message, into a low-power packet. It is created and transmitted to the relay device 2a via the private network 4 (step S15).
  • the operation confirmation request means 293 stops transmitting the operation confirmation request message to the terminal device 1a, which has been performed periodically, and the terminal device The checking operation for the device 1a is completed (step S19).
  • the operation confirmation requesting means 293 may expire (step S34) without receiving the operation confirmation response message which is a response to the operation confirmation request message.
  • the operation confirmation requesting means 293 detects that the operation of the terminal device 1a has stopped (step S35), and the value of the address field is determined from the processing terminal registration table of the storage means 27. All entries equal to the address of the terminal device 1a are deleted, and the confirmation operation to the terminal device 1a ends (step S36).
  • the relay device 2a When receiving the data IP bucket from the global network 5, the relay device 2a operates in the same manner as in the first embodiment described above.
  • the provided service list set in the terminal device 1a is registered in the relay device 2a when the terminal device 1a is started, and the relay device 2a is registered when the terminal device 1a ends. Since it is deleted from a, the information depending on the setting of the terminal device 1a can be automatically registered in the relay device 2a, and when the terminal device 1a operates, the data for the data from the global network 5 is used. Although the IP packet is relayed to the terminal device 1a, it becomes possible not to relay the overnight IP packet from the global network 5 to the terminal device 1a when the terminal device 1a is not operating.
  • terminal device A connected to the ith non-global network 1 2 i (where “i” is one of “1, 2,..., N”)
  • the operation of the i-th relay device 11 i with respect to the j-th relay device 11 j and its terminal device B This is because the operation becomes the same as the operation for the terminal device 3 in the first embodiment.
  • the address system of the transit network 110 is the i-th non-global network 12 i address system and the j-th non-global network It must be different from any of the 12 j addressing schemes.
  • the terminal device 1b is configured by adding the capability information to the configuration of the terminal device 1a in the second embodiment shown in FIG.
  • the relay device 2b further includes transmission means 16 and the relay device 2b further includes a capability information receiving device 2994 in addition to the configuration of the relay device 2a in the second embodiment shown in FIG. It has.
  • a processing capability information field is added to the entry of the processing terminal registration table 27 1 b stored in the storage means 27 b of the relay device 2 b.
  • the storage device 15b of the terminal device 1b stores the processing capability information of the terminal device 1b
  • the processing capability information of the terminal device 1b stored in the storage device 15b stores the processing capability information of the terminal device 1b.
  • This information includes, for example, information relating to the processing capability of the CPU and the processing / display capability of various media such as text, audio, and images.
  • the capability information receiving unit 294 of the relay device 2b receives the capability notification message transmitted from the terminal device 1b, and receives the address field from the processing terminal registration table 271b of the storage unit 27b. An entry whose value is equal to the terminal device 1b included in the capability notification message is searched, and the correspondence of the processing capability information included in the capability notification message is stored in the processing capability information field of this entry.
  • the destination selecting means 2 65 of the address conversion means 26 b receives the one or more first entry identifiers and one IP bucket from the registration / search means 26 3, and stores the information in the storage means 2.
  • the entry identified by the notified one or a plurality of first entry identifiers is read from the processing terminal registration table 2 7 1b of 7b.
  • the destination selection means 265 further reads the processing capability information of each terminal device from the read entry, compares the read processing capability information, and selects one optimal terminal device.
  • the destination selection means 265 notifies the registration means 264 of the selected pair of the address and the port number and the IP bucket.
  • the power operation monitoring means 11 is turned on by the power supply monitoring unit 11 in the same manner as the operation in the above-described second embodiment.
  • the ON information is notified to the registration request transmitting means 12, and the registration request transmitting means 12 sends a registration request message including the address of the terminal device 1 b and a list of port numbers corresponding to the services provided by the terminal device 1 b.
  • a registration request is made by transmitting a packet to the relay device 2b (step S42).
  • the registration request receiving means 291 of the relay device 2b receives the registration request message, and stores the port number list and the address contained in the registration request message in the storage means 27b. Create entry 1b.
  • the registration request receiving means 29 1 stores the created entry in the processing terminal registration table 27 1 b and starts the operation check of the terminal device 1 b by the operation check requesting means 29 3 (step S 4 3 ) Then, the operation check procedure from step S14 to step S16 in FIG. 13 is executed.
  • the power operation monitoring means 11 also notifies the power information ON means 16 of the power ON information.
  • the capability information transmitting means 16 reads the processing capability information of the terminal device 1b stored in the storage means 15b, and reads the processing capability information and the address of the terminal device 1b. Then, a capability notification message including the message is created, and the capability information is notified by transmitting a packet of the capability notification message to the relay device 2b (step S44).
  • the capability notification message transmitted to the relay device 2b is received by the capability information receiving unit 294.
  • the capability information receiving means 294 searches the processing terminal registration table 271b of the storage means 27b for an entry whose address field value is equal to that of the terminal device 1b included in the capability notification message.
  • the processing capacity information included in the capacity notification message is stored in the processing capacity information field of this entry.
  • the relay device 2b receives the IP packet for data from the global network 5
  • the IP bucket is received by the bucket receiving means 23, and the bucket receiving means 23 transmits the IP packet to the first packet.
  • this IP packet is passed to the correspondence search means 261, and the correspondence search means 2661 also receives the second socket from the correspondence management table of the storage means 27b in the same manner as described above.
  • the search is made for an entry in which the value of the source field and the value of the third socket field are equal to the pair of the source address and the source port number and the pair of the destination address and the destination port number of this IP bucket, respectively.
  • the correspondence search means 2661 performs processing in the same manner as in the above-described first embodiment, regardless of whether this entry is detected by this search or not. In particular, when this entry is detected, the subsequent processing is the same as the operation in the above-described first embodiment, and a description thereof will not be repeated.
  • the registration search means 2 63 reads from the processing terminal registration table 27 1 b of the storage means 27 b. Searches for entries where the value of the port number field is equal to the destination port number of this IF bucket.In this case, if one or more of the search results is found, this detected All first The entry identifier and this IP packet are passed to the destination selection means 265.
  • the destination selection means 265 reads out the entry identified by the passed first entry identifier from the processing terminal registration table 271b of the storage means 27b.
  • the destination selection unit 2665 further reads the processing capability information of each terminal device from the read entry, compares the read processing capability information, and selects one optimal terminal device.
  • the communication from the global network 5 is performed. It is possible to avoid relaying an IP bucket, which starts data communication upon reception of the packet to the terminal device 1b that cannot communicate.
  • the port number system in the private network 4 and the port number system in the global network 5 are the same.
  • the first port number field for storing the port number of the private network 4 in the storage means 27 c of the relay device 2 c and the global A port table 273c having an entry consisting of a second port number field for storing the port number of the global network 5 is provided, and the same service is provided by this port table 273c.
  • the relay device 2 manages the correspondence between the corresponding port numbers of the private network 4 and the port numbers of the global network 5.
  • Means refer to the first port number field as the port number on the private network 4 side, and refer to the second port number field as the port number on the global network 5 side. It is characterized by: As a result, even when the private network 4 and the global network 5 have different port numbering systems, communication between the terminal device 11X and the terminal device 3 becomes possible.
  • the processing terminal registration table 2 71 c and the correspondence management table 2 72 2 c are different from each other in the configuration, use, and method of use in the processing terminal registration table 2 71 in the first embodiment. It is equal to 7 1 and the correspondence management table 2 7 2.
  • the port number in the private network 4 is stored in the port number field of the processing terminal registration table 27 1 c. Also, the port number in the private network 4 is stored in the port number indicated in the first socket field of the correspondence management table 272c. Further, the port number of the global network 5 is stored in the port number shown in the second socket field and the port number shown in the third socket field.
  • the port table 2 73 c added in the fourth embodiment includes a first port number field for storing a port number of the private network 4 and a port number field of the global network 5. It has an entry consisting of a second port number field to be stored, and the correspondence between the port number of the private network 4 and the port number of the global network 5 corresponding to the same service is stored in advance. For example, assuming that the port number corresponding to the FTP service has a value of “10” in the private network 4 and a value of “20” in the global network 5, as shown in FIG. These correspondences are stored.
  • the correspondence search means 25 1 c receives the personal bucket passed from the bucket receiving means 21 to the address conversion means 25 c.
  • the local bucket is passed from the bucket receiving means 21 to the corresponding search means 25 1 c, first, the value of the first port number field is read from the port table 27 3 c of the storage means 27 c. Search for an entry equal to the value of the bucket destination port number.
  • the correspondence search means 25 1 c discards this local packet and ends the processing.
  • the correspondence search means 25 1 c reads the value of the first socket field from the correspondence management table 2 73 c of the storage means 27 c, and Equal to the set of source address and source port number, and The value of the second socket field is the destination address of this packet and the second port number in the entry in the port table 27.3c detected in the search of the port table 27.3c. Search for an entry with a value equal to the value pair with the field.
  • the packet conversion unit 25 2 c When the packet conversion unit 25 2 c receives the verbal packet and the second entry identifier, it converts the local bucket into an IP packet, and transmits a source address and a source port of the IP packet.
  • a correspondence management table 272 that identifies the number and the second entry identifier, respectively. Rewrite to the IP address and port number values shown in the third socket field in the entry.
  • the bucket converting means 25 2 c further rewrites the destination address and the destination port number of this IP bucket to the IP address and port number indicated in the second socket field of this entry, and The IP bucket is passed to the bucket transmitting means 22.
  • the registration means 25 3 c searches the port table 2 73 c for an entry having the destination port number of this mouth packet as the value of the first port number field, and searches for the entry. Read the corresponding second port number and generate an unused second entry identifier. The registration means 25 3 c selects one unused port number in the global network 5. Then, the registering means 253 c sets the generated second entry identifier as the value of the entry identifier field, and uses the pair of the source address and the source port number of the local packet as the first socket field. And the value pair of the destination address of the parentheses in the local bucket and the second port number field entered in the port table 273c detected by this search as the value of the second socket field. I do.
  • the registration means 25 3 c creates an entry in which the pair of the IP address of the global network 5 of the relay device 2 c and the selected port number is set as the value of the third socket field. , This entry is stored in the correspondence management table 2 7 2 c of the storage means 27 c To memorize. Further, the registering means 253 c sets the source port number of the local bucket as the value of the first port number field, and uses the selected port number as the value of the second port number field. An entry of the port table 273c to be created is created, and this entry is registered in the port table 273c. Then, the registration means 2553c passes the local bucket and the second entry identifier to the bucket conversion means 2525c.
  • FIG. 21 shows the configuration of the address conversion means 26c in the fourth embodiment.
  • the address conversion means 26c is composed of a correspondence search means 261c, a bucket conversion means 2626c, a registration search means 2663c, and a registration means 2664c.
  • the elements having the same names as those constituting the address conversion means 26 in the first embodiment are denoted by the same reference numerals, and “c” is added to each number code.
  • the connection of the components is also the same as in the first embodiment.
  • the bucket converting means 2626c converts the IP bucket into a local bucket of the private network 4, and stores the destination address and the destination port number of the private bucket in the second entry identifier, respectively. Is rewritten to the value of the IP address and port number of the first socket in the entry of the correspondence management table 272c, which is identified from.
  • the packet conversion means 262c further rewrites the source port number of this packet to the value of the first port number field in the entry of the port table 273c read out above, The local bucket is passed to the bucket transmitting means 24.
  • the registration search means 263c discards this IP packet and ends the processing.
  • the registration search means 2 63 c further refers to the processing terminal registration table 27 1 c and sets the value of the port number field as a value. The entry having the value of the first port number field in the entry of the detected port table 273c is searched.
  • the registration search means 263c discards the IP bucket and ends the processing.
  • the registration search means 26 3 c uses the value of the first entry identifier stored in the entry identifier field of this entry and this IP Pass the bucket and the registration means to 264c.
  • the registration means 2664c Upon receiving the first entry identifier and the IP bucket, the registration means 2664c receives the first entry identifier and the IP bucket, and the entry in the processing terminal registration table 2711c of the storage means 27c identified by the first entry identifier. And reads the address stored in the address field and the port number stored in the port number field, and generates an unused second entry identifier.
  • the registration means 264c sets the generated second entry identifier as a value of an entry identifier field, sets a pair of this address and this port number as a value of a first socket field, and Create an entry that uses the pair of the source address and source port number of the IP bucket as the second socket field, and the pair of the destination address and destination port number of this IP bucket as the value of the third socket field. I do.
  • the registration means 264c stores the created entry in the correspondence management table 272c of the storage means 27c.
  • the registration means 264c selects one of the unused port numbers of the network 4, sets the selected port number as the value of the first port number field, and sets the value of the IP packet in parentheses. Create a port table entry with the source port number as the value of the second port number field. The registration means 264c registers the entry of the created port table in the port table 273c. Then, the registering means 264c passes the IP bucket and the second entry identifier to the bucket converting means 262c.
  • the terminal device 11X transmits the first local bucket (called local packet A) to use the above service.
  • the destination address is ⁇ 2—1 ”
  • the destination port number is“ P4 ”
  • the source address is“ A1x ”
  • the source port number is“ P1 ”.
  • the local bucket A sent from the terminal device 1 -X is received by the bucket receiving means 21 of the relay device 2 c via the private network 4.
  • the packet receiving means 21 passes the local bucket A to the address translating means 25c.
  • the low-power packet A passed to the address conversion means 25c is received by the correspondence search means 251c.
  • the corresponding search means 25 1 c Upon receiving the above-mentioned local bucket A, the corresponding search means 25 1 c firstly reads the value of the first port number field from the port table 27 3 c of the storage means 27 c into this local bucket. Search for an entry that is equal to the destination port number value "P 4" of the server. In this case, since this entry exists in the port table 273c, this entry is detected by this search.
  • the correspondence search means 25 1 c passes this local bucket A to the registration means 25 3 c.
  • the destination port number “P 4” of the local bucket A is set to the value of the first port number field from the port table 2 73 c. It searches for the entry that has it, generates an unused second entry identifier, and selects one unused global network 5 port number (let the selected port number be “P 5”).
  • the registration means 25 3 c sets the source port number “P 1” of this packet A as the value of the first port number field, and uses the selected port number “P 5” as the second port number. Create an entry for the port table 273c as the value of the field and register it in the port table 273c. Then, the registering means 2553c passes the raw bucket A and the second entry identifier to the bucket converting means 2525c.
  • the destination address of IP bucket B is ⁇ 2—1 ”, the destination port number is“ P 2 ”, the source address is“ A 2-2 ”, and the source port number is“ P 5 ” Therefore, in the terminal device 3, this communication session is a communication session between the port “P5” of the terminal device having the address “A2-2” and the port “P2” of the own terminal device. Will be interpreted. Therefore, the IP packet transmitted from the terminal device 3 relating to this communication session has the destination address “A2-2”, the destination port number “P5”, and the source address ⁇ 2—. 1 ”and the source port number is“ P 2 ”.
  • the central device 2c receives the personal packet (referred to as local bucket C) of this communication session from the private network 4, it operates in the same manner as the processing of the personal packet A described above. However, in the process of searching the correspondence management table of the correspondence search means 25 1 c, this time is different.
  • this local bucket C has the same source address ⁇ 2-2 ”, source port number“ P 5 ”and destination address ⁇ 2-1” as the above IP bucket B, and the destination port number “
  • the packet is converted into an IP packet having “P 2” (the converted IF packet is called IP packet D), and the converted IP packet D is sent to the terminal device 3 via the global network 5.
  • the local bucket A and the IP bucket (referred to as IP bucket E) of this communication session transmitted from the terminal device 3 after processing the IP bucket B have a destination address of ⁇ 2 —2 ”, the destination port number is“ P5 ”, the source address is“ A2-1 ”, and the source port number is“ P2 ”.
  • This IP bucket E is received by the bucket receiving means 23 of the relay device 2c via the global network 5, and the packet receiving means 23 passes this IP bucket E to the seven-dress conversion means 26c.
  • the IP bucket E passed to the address conversion means 26c is received by the correspondence search means 261c.
  • Correspondence search means 2611c determines from the correspondence management table 272c of storage means 27c that the value of the second socket field indicates the source address and source port number of this IP bucket E. Search for an entry that is equal to the pair [A 2-1, P 2] and the value of the third socket field is equal to the pair [A 2-1, P 5] of the destination address and destination port number of this IP packet I do.
  • the correspondence search means 2 6 1 c passes this IP bucket E and the entry identifier of this entry to the bucket conversion means 26 2 c.
  • the bucket converting means 262 c stores the port table 273 of the storage means 27c. Search for an entry having the source port number “P 2” of this IP bucket in the second port number field, and find the first port number in the entry of the detected port table 273 c. Read the value “P 4” in the field. Then, bucket conversion means 262. Converts the IP packet E into a private packet of the private network 4, and stores the destination address and the destination port number of the local bucket respectively in the correspondence management table 27 identified by the second entry identifier.
  • the bucket transmitting means 24 sends the bucket F to the private network 4, and the local bucket F is received by the terminal device X.
  • the port number at is “F 1” and the port number at global network 5 is “F 5”. Also, in order to indicate this correspondence, the value of the first port number field is “P 1” in the port table 273 c and the value of the second port number field is “P 1 5 ”is registered. It is also assumed that the correspondence between the address “A 1 ⁇ x” and the port number “P 1” is stored in the processing terminal registration table 27 1 c. Further, it is assumed that the terminal device 3 uses the port having the port number “P 2”.
  • the terminal device 3 Before transmitting the first IP bucket (referred to as IP bucket A) to use the service, the terminal device 3 first transmits the terminal device 11X in the same manner as the operation in the first embodiment described above. It resolves the address from the name and finds that the destination IP address of the IP bucket addressed to the terminal device 1-X is “A2-2”. The details have already been described, and the description is omitted.
  • the terminal device 3 sends out the IP bucket A.
  • the destination address is “A2-2”
  • the destination port number is “P5”
  • the source address is “A2-1”
  • the source port number is “ P 2 ”.
  • the IP bucket A passed to the address conversion means 26c is received by the correspondence search means 261c.
  • the correspondence search means 26 1 c receives the values of the second socket field and the third socket field from the correspondence management table 27 2 c of the storage means 27 c.
  • Each is a pair [A 2-1, P 2] of the source address and the source port number of this IP packet A, and a pair [D-2] of the destination address and the destination port number of this IP packet A [ A2—2, P5].
  • the corresponding search means 2631c passes this IP bucket A to the registration search means 2663c.
  • the registration search means 2663c Upon receiving the above IP bucket A, the registration search means 2663c sets the destination port number "P5" of this IP bucket A to the value of the second port number field from the port table 273c. Search for an entry.
  • the registration search means 263c further refers to the processing terminal registration table 271c to find this entry as the value of the port number field.
  • a search is made for an entry having the value “P 1” in the first port number field in the entry of the created port table 2 7.3 c.
  • the correspondence between the address “A 1 — x” and the port number “P 1” is stored in the processing terminal registration table 27 1 c, and this entry is detected.
  • the registration search means 2 63 c reads the value of the first entry identifier stored in the entry identifier field of this entry and this IP Pass the bucket A to the registration means 264c.
  • the registration means 264c Upon receiving the first entry identifier and the IP packet A, the registration means 264c registers the processing terminal registration table of the storage means 27c identified by the first entry identifier. —Read the address “A 1—x” stored in the address field and the port number “P 1” stored in the port number field in the entry of the entry 2 Generate an entry identifier for
  • the registration means 264c uses the generated second entry identifier as the value of the entry identifier field, and sets the pair [A l_x, P 1] of this address and this port number in the first socket field.
  • the pair [A 2-1, P 2] of the source address and source port number of this IF bucket A is the value of the second socket field, and the destination address of the parenthesized IP bucket is An entry is created using the pair [A2-2, P5] with the destination port number as the value of the third socket field, and this entry is registered in the correspondence management table of the storage means 27.
  • the illustrated correspondence management table 272c is completed.
  • the registration means 2 6 4 c selects one unused port number of the private network 4 (the selected port number is referred to as “P 4”), and selects the selected port number “F 4 J as the first port number. Creates a port table entry with the source port number "P2" of this IP bucket A as the value of the second port number field, and the entry of this port table. Is registered in port table 2 7 3 c. As a result, the illustrated port table 273c is completed. Then, the registration means 264c passes the IP bucket A and the second entry identifier to the bucket conversion means 262c.
  • the bucket conversion means 2626 c reads the source port of this IP bucket A from the port table 273 c of the storage means 27 c.
  • the entry having the number “P 2” in the second port number field is searched, and the value “P 4” of the first port number field in the entry of the detected port table 273 c is read.
  • the packet transmitting means 24 Upon receiving the packet B, the packet transmitting means 24 sends out the local bucket B to the private network 4, and the packet B is received by the terminal device 11X.
  • the destination address of mouth packet B is “A 1 -x”, the destination port number is “P 1”, the source address is ⁇ 2—1 ”, and the source port number is“ P 4 ”. Therefore, in the terminal device 1 X, this communication session is a communication session between the port “P 4” of the terminal device with the address “A 2-1” and the port “P 1” of the own terminal device. Is interpreted as Therefore, the local bucket sent from the terminal device 1-X for this communication session has the destination address “A2-1”, the destination port number “P4”, and the source address “ ⁇ ”. 1— ⁇ ”and the source port number is“ P 1 ”.
  • the relay device 2 c When receiving the IP packet (referred to as IP packet C) of this communication session from the global network 5, the relay device 2 c operates in the same manner as the processing of the IP packet A described above, but the corresponding search means It differs in the process of searching the correspondence management table in 26 1 c.
  • this IP bucket C has the same source address "A2-2-2", source port number "P4", destination address "A1-x”, and destination port number "P It is converted to a local packet with 1 ”(called local packet D).
  • the converted local packet D is sent to the terminal device 11X via the private network 4.
  • the terminal device 1 after processing the IP bucket A and the local bucket B described above.
  • the mouth packet of this communication session (called the local bucket E) transmitted from 1x has a destination address “A2-1” and a destination port number “P4”.
  • the source address is “A 1—x” and the source port number is “P 1”.
  • This oral packet E is received by the bucket receiving means 21 of the relay device 2 via the network 4.
  • the bucket receiving means 21 passes this roll packet E to the address translating means 25c.
  • the mouth packet E passed to the address conversion means 25 c is received by the correspondence search means 25 1 c.
  • the corresponding search means 25 1 c firstly reads the value of the first port number field from the port table 27 3 of the storage means 27 c to this local bucket E. Search for an entry that is equal to the destination port number value "P4" of the.
  • the entry table s registered at the time of processing the IP packet A exists in the port table 273 c, and this entry corresponds to the entry to be searched.
  • the value of the first socket field is a set of the source address and the source port number [A1—x, P 1] and the value of the second socket field is the destination address of this local bucket E and the second port of the entry in the port table found in the search for the port table. Searches for an entry whose value is equal to the pair [A 2-l, P 2] with the value of the field number field.
  • the correspondence management table 2721c contains the entry registered at the time of the IP bucket A processing, and since this entry corresponds to the entry to be searched, the correspondence search means 2511c uses this local bucket.
  • the packet E and the second entry identifier stored in the entry identifier field of this entry are passed to the bucket conversion means 255c. .
  • the bucket converting means 25 2 c converts the local bucket E into an IP bucket, and transmits the address of the source of the IF bucket. And the source port number are respectively identified by the second entry identifier.
  • the IF address ⁇ 2 — 2 J and the PO address indicated in the third socket field in the entry of the correspondence management table 272 c are identified from the second entry identifier. Rewrite the value with the default number “P 5”.
  • the bucket conversion means 2 52 2 c further includes a destination of this IP bucket. The address and the destination port number are rewritten to the IP address “A2-1” and the port number “P2” shown in the second socket field of this entry, and the rewritten IP packet (called IP packet F) To the packet transmission means 22.
  • the bucket transmitting means 22 Upon receiving the IP bucket F, the bucket transmitting means 22 sends the IP bucket F to the global network 5, and the IP bucket is received by the terminal device 3.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

A relay device (2) comprises address converting means (25, 26) and storage means (27). In the storage means (27), the addresses of terminals (1 to x) (x=1 to n) connected to a private network and the port number corresponding to a service provided by the terminals (1 to x) are registered. Upon receiving a packet from a terminal (3) connected to a global network (5), the relay device (2) searches for the address of a terminal (1 to x) where the same port number as the destination port number contained in the received packet is registered, converts the destination address of the received packet to the address which the relay device (2) has searched for, and sends it to the private network (4).

Description

端末装置、 中継装置、 通信方法及びその通信プログラム 技術分野  Terminal device, relay device, communication method and communication program therefor
この発明は、端末装置、 中継装置、 通信方法及びその通信プログラムに関し、 特 に、異なるアドレス体系によって構成される複数ネットワーク間でのデータ通信を 明  The present invention relates to a terminal device, a relay device, a communication method, and a communication program thereof, and more particularly, to data communication between a plurality of networks configured by different address systems.
開始する際のァドレス変換の方法に関する。 背景技術 書 It relates to the method of address conversion when starting. Background art
近年、 「 I n t e r n e t Pr o t o c o l— DARPA I n t e r ne t Pr og r am P r o t o c o l Sp e c i f i c a t i or R F C 79 1」に記載される I Pv4 (I n t e rne t Pr o t o c o l ve r s i o n 4)技術を基盤としたインタ一ネットの普及は顕著である。 そして、 それは、 ィンターネット普及の対象であった既存の専用線および加入者電話、並びに I SD N市場での拡充のみならず、 「Wi r e l e s s App l i ca t i on P r o t o c o l Ar ch i t e c t ur a l Ove rv i ew、 WAP A r ch i t e c t u r e Ve r s i on. 30— A p r— 1988」に記載されて いる WAP (Wi r e l e s s Ap p l i ca t i on Pr o t o c o l)技 術を利用したシステムの登場など移動体通信市場をもその対象にしてきている。 端末装置をインタ一ネッ トに接続してデ一タ通信をするためにはインタ一ネッ トでその端末装置を識別するための I Pアドレスが必要である。広域であるインタ ーネッ卜の I Pアドレスは、グローバルアドレスとして 32ビッ トのアドレス空間 を持ち、 8ビット単位で区切り、 四つの数字を 10進数で表示したうえ、 ドットマ —クで結合している。  In recent years, an interface based on the Internet Protocol 4 (IPv4) technology described in “Internet Protocol—DARPA Internet Protocol Prospectocol RFC 791” has been developed. The spread of the net is remarkable. This is not only due to the expansion of existing leased lines and subscriber telephones, which were the targets of Internet diffusion, and the ISDN market, but also to the “Wi reless Appli ca ti on Protocol Architect ur al Ove rv i ew, WAP Arch itecture Ver. on. 30—Apr—1988 ”and the mobile communication market, including the emergence of systems using WAP (Wireless Application Policy). Has also been targeted. To connect a terminal device to the Internet and perform data communication, an IP address for identifying the terminal device on the Internet is required. The IP address of the Internet, which is a wide area, has a 32-bit address space as a global address, is divided into 8-bit units, displays four numbers in decimal notation, and connects them with dot marks.
インタ一ネッ卜で通信する端末装置に割り当てられる I Pアドレスはインタ一 ネットにおいて唯一のものでなければならない。そのため、 インタ一ネット普及の 拡大、 それに伴う端末装置の増加に従い、端末装置に割り当てるアドレスの不足が 問題になってきている。 なお、 I Pアドレスの割り当てに関しては、米国 I ANA (I n t e r ne t As s i gne d Numb e r s Au t ho r i t y) によつて全世界的に管理され、基本的に利用者が勝手に端末装置に割り当てて使う ことはできない。 The IP address assigned to a terminal device that communicates on the Internet must be unique on the Internet. For this reason, with the spread of the Internet and the accompanying increase in the number of terminal devices, the shortage of addresses assigned to terminal devices has become a problem. Regarding IP address assignment, It is managed globally by (Internet As Signe d Numbers Au- tority), and users cannot basically assign and use it without permission.
このような問題を解決するために、長期的には「 I n t e rne t Pr o t o c o l、 Ve r s i on 6 (I Pv6) Sp e c i f i c a t i on、 R FC2460Jに記載されている I Pv6 (I n t e r ne t P r o t o c o l ve r s i on 6)技術の適用が決定されている。 しかしながら、 I Pv4技術 ,で広く普及した現在のインターネットにおいては I Pv 6が普及するまでの現実 的な問題として I Pv 4技術上での解決が求められる。  In order to solve such problems, in the long term, `` Internet Protocol, Vernetion 6 (I Pv6) Specificati on, R Pv6 (Internet Protocol) described in FC2460J 6) The application of the technology has been decided However, in the current Internet, which has become widespread with IPv4 technology, the practical problem until IPv6 becomes widespread is the solution on IPv4 technology. Is required.
I Pv 4技術上で本問題を解決する従来の技術として I ETE (I n t e r n e t Eng i ne e r i ng Ta s k F o r c e)が取りまとめた RF C 16 31における「T he I F Ne two r k Add r e s s Tr ans l a t o r (NAT;)」に記載されている NAT (Ne t wo r k Add r e s s T r ans l a t o r)技術、 または RFC 2663における 「I P Ne t wo r k Add r e s s Tr ans l a t o r (NAT) Te rm i no l o gy and Cons i de r a t i ons」に記載されている NAP T (N e two r k Add r e s s Po r t T r a n s 1 a t o r ) 技術等がある。  `` T he IF Ne two rk Add ress Translator '' in RF C 1631 compiled by IETE (Internet Eng eri ng Ta sk Force) as a conventional technology to solve this problem on IP Pv 4 technology (NAT;) ”described in“ N.T.work Add Ress Translator ”, or“ IP Nework Add Ress Translator (NAT) ”in RFC 2663. NAP T (Ne two rk Add ress Port Trans 1 ator) technology described in "Considi de rations".
これらの技術は、基本的に、 アドレス体系の異なる二つの接続されたネットヮー ク間で一方のネットヮ一クともう一方のネッ トワークとのアドレス変換を行なう 技術で、グロ一バルァドレスとしての I Pアドレスをプライベートアドレスの適用 と組み合わせることにより、 I Pアドレスの効率的な利用を実現するものである。 ここで、 プライベートアドレスとは、 RFC 1918における 「Addr e s s A l l oc a t i on f o r Pr i va t e I n t e r ne t s」で定めら れているものであり、上記米国 I ANAの管理とは無関係に使用できる I Pァドレ スのことである。 プライベートアドレスとして I Pアドレス 「10. X. X. x」、 「172. 16. X. x」、 および 「192. 168. x. x」 (但し、 xは 「0〜 255」 のうちの任意の値を表す) が割り当てられている。 なお、 プライべ一トァ ドレスに割り当てられている I Pアドレスはグローバルァドレスとして使用しな いことになっている。  Basically, these technologies convert addresses between one connected network and the other network between two connected networks having different address systems, and transfer an IP address as a global address. Combined with the use of private addresses, it enables efficient use of IP addresses. Here, the private address is defined in RFC 1918, "Address Allocate on for Private Internet," and is used irrespective of the above-mentioned IANA management in the United States. An IP address that can be used. IP address “10.XX x”, “172. 16.X.x”, and “192.168.xx.x” as the private address (where x represents any value from “0 to 255”) ) Is assigned. Note that the IP address assigned to the private address is not used as a global address.
また、 「ネットワーク N aとネットワーク Nbとのァドレス体系が異なる」とは、 以下に示す三つの全ての条件が成り立つことである。 Also, "the address systems of the network Na and the network Nb are different" All three conditions shown below must be satisfied.
第 1の条件(部分条件 1 ) は、 ネットワーク N aおよびネットワーク N bそれぞ れが、 あるメタネットワーク (互いに直接、 または、 間接的に接続されたネットヮ —クの集合体) の一部を構成するネットワークであることである。  The first condition (partial condition 1) is that each of the networks Na and Nb forms part of a certain metanetwork (a collection of networks connected directly or indirectly to each other). Network.
第 2の条件 (部分条件 2) は、 ネットワーク Naおよびネットワーク Nbそれぞ れが、接続される端末装置にそのネットワークにおいて一意に識別可能な識別子を ァドレスとして割り当てることを基本としたァドレス体系を使用していることで ある。  The second condition (partial condition 2) uses an addressing system based on the fact that each of the network Na and the network Nb assigns an identifier uniquely identifiable in the network to the connected terminal device as an address. That is.
第 3の条件(部分条件 3)はネットワーク Naに接続された任意の端末装置丁に ついて次の二つがある。 一つの部分条件 3—1は、 「端末装置 Tのアドレスの値 A がネットワーク Nbのァドレス体系においてァドレスを表す識別子として意味を なさない (アドレスを表す識別子として用いられない等)」 ことである。 他の部分 条件 3— 2は「このァドレスの値 Aがネットワーク Nbのァドレス体系においてァ ドレスを表す識別子として意味をなす (ァドレスを表す識別子として用いられる) が、ネットワーク N bではこのアドレスの値 Aをネットワーク Naに接続された端 末装置に割り当てていることを関知していない」 ことである。  The third condition (partial condition 3) is as follows for any terminal device connected to the network Na. One partial condition 3-1 is that “the value A of the address of the terminal device T does not make sense as an identifier representing an address in the address system of the network Nb (eg, is not used as an identifier representing an address)”. The other part of condition 3-2 is that “the value A of this address is meaningful as an identifier that represents an address in the address system of network Nb (used as an identifier that represents an address), but the value A of this address is used in network Nb. Is not assigned to the terminal device connected to the network Na. "
例えば、 第 1図に示すように、 インタ一ネット 1010に、 第 1のネットワーク 1011、第 2のネットヮ一ク 1012、第 3のネットワーク 1013、 および第 4のネットワーク 1014が接続されたメタネッ トワークがある。図示されたこの 各ネットワークのァドレス体系は、 次のようなものである。すなわち、 インタ一ネ ット 1010は、 第 1のネットワーク 1011で 「133. x. x. x」 が使用で きるように運用上ではこの番号を除いたグローバルァドレスを使用している。第 1 のネットワーク 1011はグロ一パルアドレス 「133. X. X. x」 を使用して いる。 第 2のネットワーク 1012はプライベートアドレス 「10. X. X. x」 を使用している。 第 3のネットワーク 1013はプライベートアドレス 「10. 0 -254. X. x」 を使用している。 また、 第 4のネットワーク 1014はプライ ペートアドレス 「10. 255. X. x」 を使用している。  For example, as shown in FIG. 1, the Internet 1010 includes a meta network in which a first network 1011, a second network 1012, a third network 1013, and a fourth network 1014 are connected. . The address system of each network shown in the figure is as follows. That is, the Internet 1010 uses a global address excluding this number in operation so that “133.xx.x.x” can be used in the first network 1011. The first network 1011 uses the global address “133.X.X.x”. The second network 1012 uses the private address “10.X.X.x”. The third network 1013 uses the private address “10.0-254.X.x”. The fourth network 1014 uses the private address “10.255.X.x”.
第 3のネットワーク 1013と第 4のネッ トワーク 1014とは一つのプライ ベ一トアドレス 「10. X. X. x」 のうち 「10. 0. X. X〜: L 0. 254. X. X」 を第 3のネットワーク 1013に、 残りの 「10. 255. χ. χ」 を第 4のネットワーク 1 0 1 4にサブネット化したものである。 ここで、第 1図を構成 する任意の二つのネットワークは上記条件の内、部分条件 1と部分条件 2とが成り 立つことになる。 The third network 1013 and the fourth network 1014 are configured such that “10.0.X.X x: L 0.254.X.X” of one private address “10.XXx” The remaining “10. 255. χ. に” is It is a subnet of 4 networks 104. Here, any two networks in FIG. 1 satisfy the partial condition 1 and the partial condition 2 among the above conditions.
グロ一バルァドレス体系とプライベートァドレス体系は、どちらもアドレスの値 として 3 2ビット空間の値の一部を使用するが、グローバルァドレス体系ではブラ ィペートアドレス体系で使用するアドレスの値を使用しないことになつている。そ のため、グロ一バルァドレス体系を採るネットワークとプライベートアドレス体系 を採るネットワークとでは上記の部分条件 3 _ 1が成り立ち、上記条件が成立する ことになるため、 ァドレス体系が異なる。 すなわち、 ィンターネッ ト 1 0 1 0およ び第 1のネットワーク 1 0 1 1に対するアドレス体系は、第 2のネットワーク 1 0 1 2、第 3のネットワーク 1 0 1 3、および第 4のネットワーク 1 0 1 4それぞれ に対するァドレス体系と異なっている。  Both the global address system and the private address system use a part of the value in the 32-bit space as the address value.However, the global address system does not use the address value used in the private address system. I'm sorry. Therefore, the network using the global address system and the network using the private address system satisfy the above partial condition 3_1, and the above condition is satisfied. Therefore, the address system is different. That is, the address system for the Internet 110 and the first network 101 is composed of the second network 1102, the third network 101, and the fourth network 101. 4 The address system for each is different.
また、ネットワークト 1 0 1 0と第 1のネットワーク 1 0 1 1とは、条件 3が成 り立たないため、 ァドレス体系は相違しない。第 2のネットワーク 1 0 1 2は、 第 3のネットワーク 1 0 1 3と第 4のネットワーク 1 0 1 4とに対して、条件 3— 1 は成り立たないが条件 3— 2が成り立つため、 アドレス体系が異なる。第 3のネッ トワーク 1 0 1 3と第 4のネットワーク 1 0 1 4は、条件 3が成り立たないため、 ァドレス体系は異ならない。  Also, since the condition 3 does not hold between the network 1101 and the first network 1101, the addressing system is not different. The second network 1 0 1 2 has the address system since the condition 3-1 does not hold but the condition 3-2 holds with respect to the third network 1 0 1 3 and the fourth network 1 0 1 4. Are different. The address systems do not differ between the third network 101 and the fourth network 104 because Condition 3 does not hold.
次に、第 2図を参照して NA P T技術を適用した従来の通信システムの構成につ いて説明する。  Next, a configuration of a conventional communication system to which the NAPT technology is applied will be described with reference to FIG.
図示されるとおり、 NA P T技術を適用した従来の通信システムは、端末装置 1 1 1 0、 NA P T中継装置 1 1 2 0、 サーバ装置 1 1 3 0、 プライべ一トネッ トヮ ーク 1 1 4 0、およびグローバルネットワーク 1 1 5 0から構成される。端末装置 1 1 1 0からサーバ装置 1 1 3 0へは NA P T中継装置 1 1 2 0を経由してァク セスされる。端末装置 1 1 1 0と NA P T中継装置 1 1 2 0との間はプライベート ネットワーク 1 1 4 0を介して接続される。一方、 NA P T中継装置 1 1 2 0とサ —バ装置 1 1 3 0との間はグロ一バルネットワーク 1 1 5 0を介して接続される。 グロ一バルネットワーク 1 1 5 0とプライベートネッ トワーク 1 1 4 0とはそ れぞれ異なるァドレス体系を適用している。グロ一バルネットワーク 1 1 5 0に接 続される端末装置には、 グロ一バルアドレスが割り当てられ、プライべ一トネット ワーク 1140に接続される端末装置には、プライベートアドレスが割り当てられ る。 As shown in the figure, a conventional communication system to which the NAPT technology is applied includes a terminal device 111, a NAPT relay device 112, a server device 113, and a private network 111. It consists of 40, and a global network of 1,150. The terminal device 110 is accessed from the terminal device 110 via the NAPT relay device 112. The terminal device 1 1 1 0 and the NAPT relay device 1 1 2 0 are connected via a private network 1 1 4 0. On the other hand, the NAPT relay device 1120 and the server device 1130 are connected via a global network 1150. Different address systems are applied to the global network 1150 and the private network 1140, respectively. Terminal devices connected to the global network 1 150 are assigned a global address, and The terminal connected to the work 1140 is assigned a private address.
端末装置 1110は、 TCFZ I P (Tr ansmi s s i on Cont ro 1 Prot oco l/ I nt e rne t Protoco l による通 1目手段を 備え、この通信手段を利用してサーバ装置 1130のサーバプログラムに接続し、 このサーバプログラムと通信するクライアントプログラムを搭載した情報処理機 器に、 プライベートネットワーク 1140の一つのプライべ一トアドレス (Ap— tとする) が割り当てられている。  The terminal device 1110 is provided with the first communication means of TCFZ IP (Transmi- ssion on Control 1 Protocol / Inte rnett Protocol), and is connected to the server program of the server device 1130 using this communication means. One private address (Apt) of the private network 1140 is assigned to an information processing device equipped with a client program that communicates with the server program.
サーバ装置 1130も TCPZI Pによる通信手段を備え、この通信手段を利用 して端末装置 1110のクライアントプログラムからの接続を待ち、接続してきた クライアントプログラムと通信するサーバプログラムを搭載した情報処理機器に、 グロ一バルネットワーク 1150の一つのグローバルァドレス (Ag— sとする) が割り当てられている。  The server device 1130 also includes communication means using TCPZIP, and uses this communication means to wait for a connection from the client program of the terminal device 1110 and to provide information processing equipment equipped with a server program that communicates with the connected client program to the global. One global address (referred to as Ag-s) of one val network 1150 is assigned.
サーバ装置 1130において、 サ一パプログラムがポート番号「P— s」 で識別 されるポートでクライアントプログラムからの接続を待っている。クライアントプ ログラムはこのポートのポート番号「P— s」 を知っている必要があり、 サーバプ ログラムに接続する際には通信手段に対してこのポート番号「P_s」を宛先ポ一 卜のポート番号として指定する。 この結果、 クライアントプログラムは、 サーバプ ログラムと接続でき、 サーバプログラムとの通信セッションを開始する。  In the server device 1130, the super program is waiting for a connection from the client program at the port identified by the port number "P-s". The client program needs to know the port number "P-s" of this port, and when connecting to the server program, the communication means uses this port number "P_s" as the port number of the destination port. specify. As a result, the client program can connect to the server program and start a communication session with the server program.
N A P T中継装置 1120は、 パケット受信手段 1121、 1123、 パケット 送信手段 1122、 1124、 アドレス変換手段 1125、 1126、 および記憶 手段 1127から構成される。 NAPT中継装置 1120は I Pバケツト中継機能 を備えるルータであり、プライベートネッ トワーク 1140に対して一つのプライ ベ一トアドレス 「Ap— r」またグロ一バルネッ トワーク 1150に対して一つの グロ一バルアドレス 「Ag— r」 それぞれが割り当てられている。  The N APT relay apparatus 1120 includes packet receiving means 1121 and 1123, packet transmitting means 1122 and 1124, address converting means 1125 and 1126, and storage means 1127. The NAPT relay device 1120 is a router having an IP bucket relay function. One private address “Ap-r” is assigned to the private network 1140 and one global address is assigned to the global network 1150. Ag—r ”each is assigned.
記憶手段 1127は第 8図に示される対応管理テーブルと同様のを保持する。第 8図に対応管理テ一ブルの構成の一例が示されている。第 2図に第 8図を併せ参照 してこの対応管理テーブルについて説明する。  The storage means 1127 holds the same information as the correspondence management table shown in FIG. FIG. 8 shows an example of the configuration of the correspondence management table. The correspondence management table will be described with reference to FIG. 8 and FIG.
図示される対応管理テーブル 271は、 ェントリ識別子フィ一ルド、第 1のソケ ットフィ一ルド、第 2のソケットフィ一ルド、 および第 3のソケッ トフィ一ルドか らなるエントリを持つ。ェントリ識別子フィールドは、 NA P T中継装置 1 1 2 0 において対応管理テーブルの各ェントリを一意に識別するェントリ識別子の値が 格納される。第 1のソケットフィ一ルドは、 プライべ一トネットワーク 1 1 4 0の アドレスとポート番号との組からなり、第 2のソケットフィールドおよび第 3のソ ケットフィ一ルドそれぞれはグロ一バルネッ トヮ一ク 1 1 5 0の I Pアドレスと ポ一ト番号との組からなる。 The illustrated correspondence management table 271 includes an entry identifier field, a first socket field, a second socket field, and a third socket field. Has an entry consisting of The entry identifier field stores the value of the entry identifier that uniquely identifies each entry in the correspondence management table in the NAPT relay device 112. The first socket field is composed of a pair of an address and a port number of the private network 1140, and the second socket field and the third socket field are each a global network. It consists of a pair of an IP address of 1501 and a port number.
バケツト受信手段 1 1 2 1は、プライべ一トネットワーク 1 1 1 0から送られて くるグロ一バルネッ トワーク 1 1 3 0宛ての I Pバケツ トを受信し、受信した I P パケットをアドレス変換手段 1 1 2 5に渡す。パケット送信手段 1 1 2 2は、 アド レス変換手段 1 1 2 5から渡される I Pバケツトをグローバルネッ トワーク 1 1 5 0に送出する。  The bucket receiving means 1 1 2 1 receives an IP packet addressed to the global network 1 1 3 0 sent from the private network 1 1 1 0, and converts the received IP packet into address conversion means 1 1 1 2 pass to 5. The packet transmitting means 1 122 sends the IP bucket passed from the address converting means 1 125 to the global network 115.
バケツト受信手段 1 1 2 3は、グローバルネットワーク 1 1 5 0から送られてく るプライベートネットワーク 1 1 1 0宛ての I Pバケツ トを受信し、受信した I P パケットをアドレス変換手段 1 1 2 6に渡す。パケット送信手段 1 1 2 4は、 アド レス変換手段 1 1 2 6から渡される I Pバケツトをプライべ一トネットワーク 1 1 1 0に送出する。  The bucket receiving means 1 123 receives the IP packet addressed to the private network 110 sent from the global network 115 and passes the received IP packet to the address translating means 112. The packet transmitting means 1 124 transmits the IP bucket passed from the address converting means 1 126 to the private network 111.
第 3図に示されるように、 ァドレス変換手段 1 1 2 5は、対応検索手段 1 1 3 1、 バケツト変換手段 1 1 3 2、 および登録手段 1 1 3 3から構成される。  As shown in FIG. 3, the address conversion means 1 125 comprises a correspondence search means 1 131, a bucket conversion means 1 132 and a registration means 113.
対応検索手段 1 1 3 1はパケッ ト受信手段 1 1 2 1からアドレス変換手段 1 1 2 5に渡される I Pバケツトを受取る。対応検索手段 1 1 3 1は、 バケツト受信手 段 1 1 2 1からバケツトを渡されると、記憶手段 1 1 2 7の対応管理テーブルから、 第 1のソケッ トフィールドの値がこの I Pバケツトの送信元ァドレスおよび送信 元ポート番号の組と等しく、かつ第 2のソケットフィールドの値がこの I Pバケツ 卜の宛先ァドレスおよび宛先ポート番号の組と同じ値を持つェントリを検索する。 この検索により該当するエントリが検出された場合、対応検索手段 1 1 3 1は、 この I Pバケツ トとこのェントリのェントリ識別子フィ一ルドに格納されている ェントリ識別子とをバケツト変換手段 1 1 3 2に渡す。この検索により該当するェ ントリが検出されなかった場合には、対応検索手段 1 1 3 1は、 この I Pバケツト を登録手段 1 1 3 3に渡す。  The correspondence search means 1 1 3 1 receives the IP bucket passed from the packet receiving means 1 1 2 1 to the address conversion means 1 1 2 5. When the bucket is passed from the bucket receiving means 1 121 to the correspondence search means 1 131, the value of the first socket field is transmitted from the correspondence management table of the storage means 112 127 to the transmission of this IP bucket. Search for an entry that is equal to the source address and source port number pair and whose value in the second socket field is the same as the destination address and destination port number pair of this IP bucket. If a corresponding entry is found by this search, the corresponding search means 1 13 1 converts this IP bucket and the entry identifier stored in the entry identifier field of this entry into bucket conversion means 1 1 3 2 Pass to. If the corresponding entry is not detected by this search, the corresponding search means 113 passes this IP bucket to the registration means 113.
バケツト変換手段 1 1 3 2は、 I Pバケツ トとェントリ識別子とを渡されると、 この I Pバケツ トの送信元ァドレスと送信元ポート番号とのそれぞれをこのェン トリ識別子から識別される対応管理テーブルにおけるェントリの第 3のソケッ ト フィールドに示される I Pアドレスとポート番号との値に書き換え、この書き換え た I Pバケツトをバケツト送信手段 1 1 2 2に渡す。 When the bucket conversion means 1 1 3 2 receives the IP bucket and the entry identifier, Each of the source address and the source port number of this IP bucket is set to the value of the IP address and port number indicated in the third socket field of the entry in the correspondence management table identified from this entry identifier. Rewrite, and pass this rewritten IP bucket to the bucket transmitting means 1 1 2 2.
登録手段 1 1 3 3は、 I Pバケツトを渡されると、未使用のェントリ識別子を生 成すると共に、 未使用のポート番号を一つ選ぶ。 そして、 登録手段' 1 1 3 3は、 こ のェントリ識別子をエントリ識別子フィールドの値とし、この I Pバケツトの送信 元ァドレスおよび送信元ポート番号の組と宛先ァドレスおよび宛先ポート番号の 組とのそれぞれを第 1のソケッ トフィールドと第 2のソケットフィールドとの値 とする。 次いで、 登録手段 1 1 3 3は、 NA P T中継装置 1 1 2 0におけるグロ一 バルネットワーク 1 1 5 0の I Pアドレスとこの選ばれたポート番号との組を第 3のソケットフィールドの値とするェントリを作成し、このェントリを記憶手段 1 1 2 7の対応管理テーブル 2 7 2に記憶する。 そして、 登録手段 1 1 3 3は、 この Upon receiving the IP bucket, the registration means 1 1 3 3 generates an unused entry identifier and selects one of the unused port numbers. Then, the registration means' 1 1 3 3 uses this entry identifier as the value of the entry identifier field, and registers each of the set of the source address and the source port number and the set of the destination address and the destination port number of this IP bucket. Take the values of the first socket field and the second socket field. Next, the registration means 1 1 3 3 sets the set of the IP address of the global network 1 150 in the NAPT relay apparatus 1 1 20 and the selected port number as the value of the third socket field. An entry is created, and this entry is stored in the correspondence management table 272 of the storage means 1 127. And the registration means 1 1 3 3
1 Pバケツ卜とエントリ識別子とをバケツト変換手段 1 1 3 2に渡す。 1 Pass the P bucket and the entry identifier to the bucket conversion means 1 1 3 2.
第 4図に示されるように、 ァドレス変換手段 1 1 2 6は、対応検索手段 1 1 4 1 およびバケツト変換手段 1 1 4 2から構成される。  As shown in FIG. 4, the address conversion means 1 126 comprises a correspondence search means 1 141 and a bucket conversion means 1 142.
対応検索手段 1 1 4 1はパケット受信手段 1 1 2 3からアドレス変換手段 1 1 Corresponding search means 1 1 4 1 starts from packet receiving means 1 1 2 3
2 6に渡される I Pバケツトを受取る。対応検索手段 1 1 4 1は、 バケツト受信手 段 1 1 2 3から I Pバケツトを渡されると、記憶手段 1 1 2 7の対応管理テーブル から、第 2のソケットフィールドの値がこの I Pバケツ卜の送信元アドレスおよび 送信元ポ一ト番号の組と等しく、 かつ、第 3のソケットフィールドの値がこの I P バケツ卜の宛先アドレスおよび宛先ポート番号の組と等しいェントリを検索する。 この検索により該当するェントリが検出された場合には対応検索手段 1 1 4 1 は、この I Pバケツトとこのエントリのェントリ識別子フィールドに格納されてい るェントリ識別子とをバケツト変換手段 1 1 4 2に渡す。この検索により該当する ェントリが検出されなかった場合、対応検索手段 1 1 4 1は、 この I Pパケッ トの 宛先がわからないためこの I Pバケツ トを廃棄する。 26 Receive the IP bucket passed to 6. When receiving the IP bucket from the bucket receiving means 1 123, the correspondence search means 1 141, based on the correspondence management table of the storage means 112, stores the value of the second socket field of this IP bucket. Search for an entry that is equal to the source address and source port number pair and that the value of the third socket field is equal to the destination address and destination port number pair of this IP bucket. If the corresponding entry is detected by this search, the corresponding search means 1141 passes this IP bucket and the entry identifier stored in the entry identifier field of this entry to the bucket conversion means 1142 . If the corresponding entry is not detected by this search, the corresponding search means 1 141 discards this IP packet because the destination of this IP packet is not known.
バケツト変換手段 1 1 4 2は、 I Fバケツトおよびェントリ識別子を渡されると、 この I Pバケツ 卜の宛先ァドレスおよび宛先ポート番号それぞれをこのェントリ 識別子から識別される対応管理テーブルのェントリに示される第 1のソケッ トの I Pアドレスとポ一ト番号との値に書き換え、書き換えた I Pバケツトをバケツト 送信手段 1 1 2 4に渡す。 Upon receiving the IF bucket and the entry identifier, the bucket converting means 1 1 4 2 sets the destination address and the destination port number of the IP bucket to the first entry indicated in the entry of the correspondence management table identified from the entry identifier. Socket Rewrite the value with the IP address and the port number, and pass the rewritten IP bucket to the bucket transmitting means 1 124.
次に、 NA P T技術の動作について説明する。  Next, the operation of the NAPT technique will be described.
ここでは、 まず、 端末装置 1 1 1 0が、 端末装置 1 1 1 0のポート 「P _ t」 と サーバ装置 1 1 3 0のポート 「P— s」 との間での通信セッションを開始するべく、 端末装置 1 1 1 0のポート 「P— t」 とサーバ装置 1 1 3 0のポ一ト 「P— s」 と の間で最初の I Pバケツト (I Pバケツト Aと呼ぶ) をプライべ一トネットワーク 1 0 4 0に送出した場合の動作について説明する。  Here, first, the terminal device 110 starts a communication session between the port "P_t" of the terminal device 110 and the port "P-s" of the server device 110. Therefore, the first IP bucket (referred to as IP bucket A) between the port “Pt” of the terminal device 110 and the port “Ps” of the server device 110 must be private. The operation when the packet is transmitted to the network 104 will be described.
このとき、 I Pバケツト Aは、宛先ァドレスがサーバ装置 1 1 3 0の I Pァドレ ス 「A g— s」 であり、 送信元アドレスが端末装置 1 1 1 0の I Pアドレス 「A p _ t」であり、 かつ I Pバケツト Aが含むトランスポート層プロトコルヘッダにお ける宛先ポート番号が 「P— s」 になり、 同じく送信元ポート番号が 「F _ t」 に なる。 また、 記憶手段 1 1 2 7の対応管理テーブルは、 初期状態として、 ェントリ が一つも登録されていないとする。  At this time, the IP bucket A has a destination address of the IP address “Ag—s” of the server device 113 and a source address of the IP address “Ap_t” of the terminal device 110. Yes, and the destination port number in the transport layer protocol header included in IP bucket A is "P-s", and the source port number is "F_t". Also, it is assumed that no entry is registered as an initial state in the correspondence management table of the storage means 1 127.
端末装置 1 1 1 0からサーバ装置 1 1 3 0へ宛てられた I Pバケツト Aは、ブラ ィベートネッ トワーク 1 1 4 0を介して N A F T中継装置 1 1 2 0のバケツ ト受 信手段 1 1 2 1によって受信され、バケツト受信手段 1 1 2 1はこの I Pバケツト Aをアドレス変換手段 1 1 2 5に渡す。  The IP packet A addressed from the terminal device 1 1 1 0 to the server device 1 1 3 0 is transmitted by the bucket receiving means 1 1 2 1 of the NAFT relay device 1 1 2 0 via the private network 1 1 4 0. The packet is received, and the bucket receiving means 111 passes this IP bucket A to the address translating means 111.
アドレス変換手段 1 1 2 5に渡された上記 I Pバケツト Aは、対応検索手段 1 1 3 1で受取られる。対応検索手段 1 1 3 1は、上記 I Pパケット Aを渡された際、 記憶手段 1 1 2 7の対応管理テーブルから、第 2のソケットフィ一ルドの値がこの I Pバケツト Aの送信元アドレスと送信元ポート番号との組 「A p— t、 P— t」 と等しく、 かつ、第 3のソケットフィールドの値がこの I Pバケツ ト Aの宛先アド レスと宛先ポート番号との組「A g— r、 P - r ] と等しいエントリを検索する。 この時点では、対応管理テーブルには上記ェントリが存在しないため、上記検索 によってこのェントリは検出されない。  The IP bucket A passed to the address conversion means 1 125 is received by the correspondence search means 113. When the above-mentioned IP packet A is passed, the correspondence search means 1 1 3 1 determines from the correspondence management table of the storage means 1 127 that the value of the second socket field is the source address of this IP bucket A. The pair with the source port number is equal to “A p—t, P—t” and the value of the third socket field is the pair with the destination address and destination port number of this IP bucket A “A g— r, P-r] At this point, since the above entry does not exist in the correspondence management table, this entry is not detected by the above search.
対応検索手段 1 1 3 1は、上記検索で上記ェントリが検出されなかったため、上 記 I Pパケッ ト Aを登録手段 1 1 3 3に渡す。  The corresponding search means 1 13 1 passes the IP packet A to the registration means 1 13 3 because the above-mentioned entry was not detected in the above search.
登録手段 1 1 3 3は、上記 I Pバケツト Aを渡されると、未使用のェントリ識別 子を生成し、 かつ、 NA P T中継装置 1 1 2 0において未使用のポート番号、 例え ば 「F _ r」 を一つ選ぶ。 そして、 登録手段 1 1 3 3は、 このエントリ識別子をェ ントリ識別子フィールドの値とし、 I Pバケツト Aの送信元アドレスおよび送信元 ポート番号の組「A p— t、 P— t」と、宛先アドレスおよび宛先ポート番の組「A g— s、 P— s」 とのそれぞれを第 1のソケットフィールドと第 2のソケットフィ —ルドとのそれぞれの値とする。 また、 登録手段 1 1 3 3は、 NA P T中継装置 1 1 2 0のグロ一バルネッ トワーク 1 1 5 0の I Pァドレスとこの選ばれたポート 番号との組「A g— r、 P— r」 を第 3のソケットフィールドの値とするェントリ を作成し、 このェントリを記憶手段 1 1 2 7の対応管理テーブルに記憶する。そし て、登録手段 1 1 3 3は、 この I Pパケット Aとエントリ識別子とをパケット変換 手段 1 1 3 2に渡す。 When the IP packet A is passed, the registration means 1 1 3 3 generates an unused entry identifier, and generates a port number which is not used in the NAPT repeater 1 1 In this case, select one “F_r”. Then, the registering means 1 1 3 3 uses the entry identifier as the value of the entry identifier field, sets the pair “Apt—Pt” of the source address and the source port number of the IP bucket A, and the destination address. And the pair of destination port numbers “Ag-s, P-s” are the respective values of the first socket field and the second socket field. Also, the registration means 113 is a set “Ag-r, P-r” of the IP address of the global network 1150 of the NAPT relay device 112 and this selected port number. Is created as a value of the third socket field, and this entry is stored in the correspondence management table of the storage means 1 127. Then, the registering means 113 transfers this IP packet A and the entry identifier to the packet converting means 113.
バケツト変換手段 1 1 3 2は、上記 I Pバケツト Aと上記ェントリ識別子とを渡 されると、 この I Pバケツト Aの送信元アドレス 「A p— t」 および送信元ポート 番号 「P— t」 それぞれを、 このェントリ識別子から識別される対応管理テーブル のェントリにおける第 3のソケッ トフィールドに示される I Pアドレス 「A g— r」 とポート番号 「P— r」 との値それぞれに書き換え、 この書き換えた I Pパケ ット ( I Pパケット Bと呼ぶ) をパケット送信手段 1 0 2 2に渡す。  When the above-mentioned IP bucket A and the above-mentioned entry identifier are passed, the bucket converting means 1 1 3 2 converts each of the source address “Apt” and the source port number “Pt” of this IP bucket A into a packet. The IP address "Ag-r" and the port number "P-r" shown in the third socket field in the entry of the correspondence management table identified from this entry identifier are rewritten to the respective values. The packet (called IP packet B) is passed to the packet transmitting means 102.
バケツト送信手段 1 1 2 2は、上記 I Pバケツ ト Bを渡されると、 この I Pパケ ット Bをグローバルネットワーク 1 1 5 0に送出する。  When the IP packet B is passed, the bucket transmitting means 1 122 sends the IP packet B to the global network 115.
NA P T中継装置 1 1 2 0から送出された上記 I Pバケツ ト Bは、グロ一パルネ ットワーク 1 1 5 0を介してサーバ装置 1 1 3 0で受信される。サーバ装置 1 0 3 0は、 この I Pバケツト Bの含む送信元アドレス、送信元ポート番号、宛先アドレ ス、 および宛先ポート番号の内容から、 この I Pパケット Bが、 I Pアドレス 「A g— r」 である装置のポート 「P— r」 とサーバ装置 1 1 3 0自身のポート 「P— s」 との間の I Pパケットであると識別し、 このデータ通信セッションで I Pパケ ットを送信する場合は、 この I Pパケットに対して宛先アドレス 「A g— r」 と、 宛先ポート番号 「P— r」 と、 送信元アドレス 「A g— s」 と、 かつ送信元ポート 番号 「F— s」 とを設定する。  The IP bucket B sent from the NAPT relay device 112 is received by the server device 110 via the global network 115. The server apparatus 1 0 3 0, based on the contents of the source address, the source port number, the destination address, and the destination port number included in the IP bucket B, transmits the IP packet B with the IP address “Ag—r”. To identify an IP packet between the port “Pr” of a certain device and the port “Ps” of the server device 1 1 30 itself, and to transmit an IP packet in this data communication session, , The destination address “A g—r”, the destination port number “P—r”, the source address “A g—s”, and the source port number “F—s” for this IP packet. Set.
以降、 NA P T中継装置 1 1 2 0は、 プライべ一トネットワーク 1 1 4 0からこ の通信セッションの I Pバケツト (I Pバケツト Cと呼ぶ) を受信すると、 上記の I Pバケツト Aの処理と同様に動作するが、対応検索手段 1 1 3 1の検索の処理に おいて、対応検索手段 1 1 3 1が、 記憶手段 1 1 2 7の対応管理テーブルから、第 1のソケッ トフィールドの値がこの I Pバケツト Cの送信元アドレスおよび送信 元ポート番号の組 「A p— t、 P— t」 と等しく、 かつ、 第 2のソケットフィール ドの値がこの I Pバケツト Cの宛先ァドレスおよび宛先ポート番号の組「A g— s、 P— s」 と等しい値を持つェントリを検出する。 次いで、対応検索手段 1 1 3 1は、 この I Pバケツト Cと検出されたェントリのェントリ識別子を、登録手段 1 1 3 3 を経由せずに、 バケツト変換手段 1 1 3 2に直接渡す。 Thereafter, when receiving the IP bucket (referred to as IP bucket C) of this communication session from the private network 1140, the NAPT relay apparatus 1120 performs the same processing as the above-described processing of the IP bucket A. It works, but the corresponding search means 1 1 3 1 In this case, the correspondence search means 1 1 3 1 reads the value of the first socket field from the correspondence management table of the storage means 1 1 27 into the set “A” of the source address and the source port number of this IP bucket C. p—t, P—t ”and the value of the second socket field has a value equal to the destination address and destination port number pair“ A g—s, P—s ”of this IP bucket C. Detect entry. Next, the correspondence search means 1 13 1 passes the IP bucket C and the entry identifier of the detected entry directly to the bucket conversion means 1 13 2 without passing through the registration means 1 13 3.
バケツト変換手段 1 1 3 2における以降の処理は、上記 I Pバケツト Aの場合と 同様に行なわれ、この I Pバケツト Cは上記 I Pバケツ ト Bと同じ送信元ァドレス 「A g— r」 と送信元ポート番号 「P— r」 とをもつ I Pバケツト (I Pバケツト Dと呼ぶ) に変換され、 この変換された I Pバケツト Dはグロ一パルネットワーク 1 1 5 0を介してサ一パ装置 1 1 3 0に送られる。  Subsequent processing in the bucket converting means 1 1 3 2 is performed in the same manner as in the case of the above-mentioned IP bucket A, and this IP bucket C has the same source address “Ag-r” as the above-mentioned IP bucket B and the source port. It is converted into an IP bucket having the number “Pr” (called IP bucket D), and the converted IP bucket D is sent to the super-user device 1 130 via the global network 1 150. Sent.
また、上記 I Pバケツト Aおよび I Pバケツト Bを処理した後のサーバ装置 1 1 3 0から送出されるこの通信セッションの I Pバケツト (I Pバケツト Eと呼ぶ) は、 上記のとおり、 宛先アドレス 「A g— r」 と、 宛先ポ一ト番号 「P— r」 と、 送信元アドレス 「A g _ s」 と、 かつ送信元ポート番号 「P _ s」 とが設定され、 グロ一バルネットワーク 1 1 5 0を介して、 NA P T中継装置 1 1 2 0のバケツト 受信手段 1 1 2 3に受信される。バケツト受信手段 1 1 2 3はこの I Pパケット E をアドレス変換手段 1 1 2 6に渡す。  Further, the IP packet (referred to as IP bucket E) of this communication session transmitted from the server apparatus 1130 after processing the above-mentioned IP bucket A and IP bucket B has the destination address “A g— r ", destination port number" P-r ", source address" Ag_s ", and source port number" P_s "are set. The packet is received by the bucket receiving means 1 123 of the NAPT relay apparatus 112 via The bucket receiving means 1 1 2 3 passes this IP packet E to the address converting means 1 1 2 6.
アドレス変換手段 1 1 2 6に渡された上記 I Pバケツト Eは対応検索手段 1 1 4 1で受取られる。対応検索手段 1 1 4 1は、上記 I Pパケット Eを渡された際に、 記憶手段 1 1 2 7の対応管理テ一ブルから、第 2のソケットフィ一ルドの値がこの このパケッ ト Eの送信元アドレスおよびポート番号の組「g _ s、 P— s」 と等し く、 かつ、第 3のソケッ トフィールドの値がこの I Pバケツト Eの宛先アドレスお よび宛先ポート番号の組 「A g— r、 P _ r」 と等しいエントリを検索する。  The IP bucket E passed to the address translating means 1 126 is received by the corresponding searching means 1 141. When the above-mentioned IP packet E is passed, the correspondence search means 1 141 reads the value of the second socket field of this packet E from the correspondence management table of the storage means 1 127. The source address and port number pair “g_s, P—s” is equal, and the value of the third socket field is the destination address and destination port number pair “Ag” of this IP bucket E. — Search for entries equal to "r, P_r".
この場合、対応管理テーブルには、上記 I Pバケツト Aを処理する際に登録した ェントリが存在し、 このェントリが上記検索するェントリに対応するため、対応検 索手段 1 1 4 1はこの I Pバケツ ト Eとこのェントリのェントリ識別子とをパケ ッ ト変換手段 1 1 4 2に渡す。  In this case, in the correspondence management table, there is an entry registered when processing the above-mentioned IP bucket A, and since this entry corresponds to the above-mentioned entry to be searched, the correspondence search means 1 141 1 E and the entry identifier of this entry are passed to the packet conversion means 1 1 4 2.
パケット変換手段 1 1 4 2は、上記 I Pパケッ ト Eと上記ェントリ識別子とを渡 されると、 I Pバケツト Eの宛先ァドレス 「A g— r」 および宛先ポート番号 「P _ r」それぞれをこのェントリ識別子から識別される対応管理テーブルのェントリ における第 1のソケットの I Fアドレス 「A p— t」 とポ一ト番号 「P— t」 との 値に書き換え、 この書き換えた I Pバケツト (I Pバケツト Fと呼ぶ) をバケツ ト 送信手段 1 1 2 4に渡す。 The packet conversion means 1 1 4 2 passes the above-mentioned IP packet E and the above-mentioned entry identifier. Then, the destination address “Ag—r” and the destination port number “P_r” of the IP bucket E are respectively assigned to the IF address “Ap” of the first socket in the entry of the correspondence management table identified from this entry identifier. —T ”and the port number“ P—t ”, and pass the rewritten IP bucket (called IP bucket F) to the bucket transmitting means 1 1 2 4.
バケツト送信手段 1 1 2 4は、上記 I Pバケツト Fを渡されると、 この I Pパケ ッ ト Fをプライベートネットワーク 1 1 4 0に送出する。  Upon receiving the IP bucket F, the bucket transmitting means 1 124 sends out the IP packet F to the private network 114.
N A P T中継装置 1 1 2 0から送出された上記 I Pバケツト Fは、プライベート ネットワーク 1 1 4 0を介して端末装置 1 1 1 0に受信される。  The IP packet F sent from the N APT relay device 1 120 is received by the terminal device 1 1 1 10 via the private network 1 1 40.
上述のように、 NA P T技術を適用した既存の通信システムでは、 NA P T中継 装置 1 1 1 0によりプライベートアドレスおよびポート番号の組で構成されるソ ケットと、グロ一バルァドレスおよびポ一ト番号の組で構成されるソケットとの対 で識別される一つの通信セッションと、一つのグロ一パルァドレスおよびポ一ト番 号の組とを対応づけ、中継の際にプライべ一トネットワーク 1 1 4 0側の I Pアド レスおよびポート番号と、この通信セッションに対応づけられたグロ一バルネット ワーク 1 1 5 0側の I Pアドレスおよびポート番号とを相互に変換することによ つて、ァドレス体系の異なるプライべ一トネットワーク 1 1 4 0に接続された装置 とグロ一バルネッ トワーク 1 1 5 0に接続された装置との間の I Pによる通信を 可能ならしめている。  As described above, in the existing communication system to which the NAPT technology is applied, a socket composed of a set of a private address and a port number by the NAPT relay device 111 and a global address and a port number are used. One communication session identified by a pair with a socket composed of a set is associated with one set of a global address and a port number, and a private network is used for relaying. By translating the IP address and port number of the network side and the IP address and port number of the global network 1150 associated with this communication session into and from each other, IP communication between a device connected to the base network 1140 and a device connected to the global network 1150 is enabled.
本技術は、一つのグロ一バルネットワークに対して、 同じプライベートアドレス 体系を使用している複数のプライべ一トネッ トワークが接続している構成の通信 システムにおいても適用可能である。個々のプライべ一トネットワークとグロ一バ ルネッ トワークとの間をそれぞれ N A P T中継装置で接続することにより、各ブラ ィべ—トネッ トワークに接続された端末装置とグロ一バルネットワークに接続さ れたサーバ装置との間の通信を実現することができる。そのため、 NA P T中継装 置で接続されたブラィペートネットワークを増やすことによって、端末装置に割り 当てる I Pァドレスを増やすことができる。  This technology can also be applied to communication systems in which a single global network is connected to multiple private networks using the same private address system. By connecting each private network and the global network with the NAPT relay device, the terminal device connected to each private network and the global network were connected. Communication with the server device can be realized. For this reason, the number of IP addresses assigned to the terminal devices can be increased by increasing the number of bridge networks connected by the NAPT relay device.
上述した従来の複数ネットヮ一ク間の通信システムでは、一つのグロ一バルネッ トワークに対して、同じプライベートアドレス体系を使用している複数のプライべ —トネットワークが接続している構成において、サーバ装置から通信を開始する場 合、 まず、 サ一バ装置は端末装置の名前からこの端末装置の I Pアドレスを知る必 要があるが、 このときのアドレス解決ができない。 In the conventional communication system between a plurality of networks described above, in a configuration in which a plurality of private networks using the same private address system are connected to one global network, To start communication from In this case, first, the server device needs to know the IP address of the terminal device from the name of the terminal device, but the address cannot be resolved at this time.
従って、 このような通信システムでは、 グロ一バルネットワークに接続されたサ 一パ装置とプライベートネットヮ一クに接続された端末装置との間で通信する際 に、プライべ一トネットワークに接続されている端末装置からグロ一バルネットヮ ークに接続されたサ一パ装置への通信は開始できるものの、サーバ装置から通信を 開始することができないので好ましくない。  Therefore, in such a communication system, when communication is performed between a super network device connected to the global network and a terminal device connected to the private network, the communication system is connected to the private network. Although it is possible to start communication from a terminal device to a super-device connected to the global network, communication cannot be started from a server device, which is not preferable.
同様に、端末装置が異なるプライべ一トネットワークに接続された端末装置と通 信を開始しょうとしても、この端末装置は通信相手となる端末装置のァドレス解決 ができないので、 その端末装置との間で通信ができない。  Similarly, even if a terminal device attempts to start communication with a terminal device connected to a different private network, the terminal device cannot resolve the address of the terminal device with which it communicates. Communication is not possible.
従って、 本発明は、 このような問題点を解決し、 グロ一バルネットワークに接続 されたサーバ装置とは限らず、異なるアドレス体系によって構成される複数のネッ トワークそれぞれに接続されている端末装置間でも、データ通信を開始することが できる端末装置、 中継装置、通信方法およびその通信プログラムを提供することを 目的としている。 発明の開示  Therefore, the present invention solves such a problem, and is not limited to a server device connected to a global network, but to a terminal device connected to each of a plurality of networks configured by different address systems. However, an object of the present invention is to provide a terminal device, a relay device, a communication method, and a communication program that can start data communication. Disclosure of the invention
本発明は、グロ一パルネッ トワークおよびプライべ一トネットワークを問わず異 なるアドレス体系によって構成される複数のネッ トワークそれぞれに接続されて いる端末装置の相互間で、データ通信を開始することができる通信方法に関するも のである。  According to the present invention, data communication can be started between terminal devices connected to a plurality of networks configured by different address systems regardless of a global network and a private network. It concerns communication methods.
従って、第 1のネットヮ一クとこの第 1のネットワークとはァドレス体系の異な る第 2のネッ トワークとが中継装置を介して接続されているものとし、この中継装 置は、第 1のネットワークに接続された第 1の端末装置のァドレスと、第 1の端末 装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1のェ ントリを第 1の管理テ一ブルに記憶しておく。  Accordingly, it is assumed that the first network and the second network having a different address system from the first network are connected via a relay device, and the relay device is connected to the first network. At least one first entry including the address of the first terminal device connected to the first terminal device and the service identifier of the service provided by the first terminal device is stored in the first management table. .
そして、第 2のネットワークに接続された第 2の端末装置が、 あるサービスに宛 てたバケツトを送信した場合、 中継装置は、 そのバケツ トを受けると、 上記第 1の 管理テーブルからそのバケツ トに含まれる宛先サ一ビス識別子と同じサービス識 別子を持つ第 1のェントリを検索し、 そのバケツ 卜の宛先ァドレスを、検出された 第 1のエントリにおける第 1の端末装置のァドレスに書き換え、上記第 1の端末装 置にそのバケツトを送信するものである。 Then, when the second terminal device connected to the second network transmits a bucket addressed to a certain service, the relay device receives the bucket, and receives the bucket from the first management table. Searches for the first entry with the same service identifier as the destination service identifier contained in the packet and finds the destination address of that bucket. The address of the first terminal device in the first entry is rewritten, and the bucket is transmitted to the first terminal device.
このような構成を採用することにより第 2のネットワークに接続されたサ一バ 装置または第 2の端末装置と第 1のネッ トワークに接続された第 1の端末装置と の間で通信する際に、サーバ装置または第 2の端末装置からの通信を開始すること を可能とし、ァドレス体系の異なるネットワークに接続された端末装置間での通信 を可能とすることができる。 図面の簡単な説明  By adopting such a configuration, when communication is performed between the server device or the second terminal device connected to the second network and the first terminal device connected to the first network, Thus, it is possible to start communication from the server device or the second terminal device, and to enable communication between terminal devices connected to networks having different address systems. BRIEF DESCRIPTION OF THE FIGURES
第 1図は、 既存の I Pネットワーク構成の一例を示すブロック図であり、 第 2図は、 既存のシステム構成の一例を示すプロック図であり、  FIG. 1 is a block diagram showing an example of an existing IP network configuration, and FIG. 2 is a block diagram showing an example of an existing system configuration.
第 3図は、 第 2図の部分構成の一例を示すブロック図であり、  FIG. 3 is a block diagram showing an example of a partial configuration of FIG. 2,
第 4図は、第 2図における第 3図とは別の部分構成の一例を示すブロック図であ り、  FIG. 4 is a block diagram showing an example of a partial configuration different from FIG. 3 in FIG. 2,
第 5図は、本発明における第 1の実施形態をブロックで示すシステム構成図であ ウ、  FIG. 5 is a system configuration diagram showing a first embodiment of the present invention by blocks,
第 6図は、第 5図における一方のァドレス変換手段の一形態を示すプロック図で あり、  FIG. 6 is a block diagram showing one form of one address conversion means in FIG. 5,
第 7図は、第 5図における他方のァドレス変換手段の一形態を示すブロック図で あり、  FIG. 7 is a block diagram showing one form of the other address conversion means in FIG. 5,
第 8図は、 第 5図の記憶手段におけるテーブルの一構成を示す図であり、 第 9 A図は、第 5図で用いられるデータ用 I Pバケツトのー構成を示す図であり、 第 9 B図は、第 5図で用いられるアドレス解決問合せメッセージ用 I Pバケツト の一構成を示す図であり、  FIG. 8 is a diagram showing a configuration of a table in the storage means of FIG. 5, FIG. 9A is a diagram showing a configuration of a data IP bucket used in FIG. 5, and FIG. The figure shows one configuration of the IP bucket for the address resolution inquiry message used in FIG.
第 9 C図は、第 5図で用いられるァドレス解決応答メッセージ用 I Pバケツ卜の 一構成を示す図であり、  FIG. 9C is a diagram showing one configuration of an IP bucket for an address resolution response message used in FIG. 5,
第 9 D図は、第 5図で用いられるネットワーク 4におけるバケツトのー構成を示 す図であり、  FIG. 9D is a diagram showing a configuration of a bucket in the network 4 used in FIG. 5,
第 1 0図は、 第 5図における主要動作の一手順を示すシーケンス図であり、 第 1 1図は、本発明におけるネットワーク構成の一形態を示すブロック図であり、 第 1 2図は、 本発明における第 2の実施の形態を示すブロック図であり、 第 1 3図は、 第 1 2図における主要動作の一手順を示すシーケンス図であり、 第 1 4図は、第 1 2図における第 1 3図とは別の主要動作の一手順を示すシーケ ンス図であり、 FIG. 10 is a sequence diagram showing one procedure of a main operation in FIG. 5, and FIG. 11 is a block diagram showing one mode of a network configuration in the present invention. FIG. 12 is a block diagram showing a second embodiment of the present invention. FIG. 13 is a sequence diagram showing one procedure of the main operation in FIG. 12, and FIG. FIG. 12 is a sequence diagram showing one procedure of a main operation different from FIG. 13 in FIG. 12;
第 1 5図は、 本発明におけるの第 3の実施の形態を示すブロック図であり、 第 1 6図は、第 1 5図において第 7図における他方のァドレス変換手段と別の一 形態を示すブロック図であり、  FIG. 15 is a block diagram showing a third embodiment of the present invention, and FIG. 16 shows another form of the other address conversion means in FIG. 15 in FIG. It is a block diagram,
第 1 7図は、 第 1 5図の記憶手段におけるテーブルの一構成を示す図であり、 第 1 8図は、 第 1 5図における主要動作の一手順を示すシーケンス図であり、 第 1 9図は、 本発明におけるの第 4の実施の形態を示すブロック図であり、 第 2 0図は、第 1 9図における一方のァドレス変換手段の一形態を示すブロック 図であり、  FIG. 17 is a diagram showing one configuration of a table in the storage means of FIG. 15, and FIG. 18 is a sequence diagram showing one procedure of main operation in FIG. FIG. 14 is a block diagram showing a fourth embodiment of the present invention. FIG. 20 is a block diagram showing one form of one address conversion means in FIG.
第 2 1図は、第 1 9図における他方のァドレス変換手段の一形態を示すブロック 図であり、  FIG. 21 is a block diagram showing one form of the other address conversion means in FIG.
第 2 2図は、 第 1 9図における記憶手段の一構成を示す図であり、  FIG. 22 is a diagram showing one configuration of the storage means in FIG. 19;
第 2 3図は、 本発明による第 1の実施例の構成を示すプロック図であり、 第 2 4図は、第 2 3図の実施例に用いられる記憶手段のテーブルの一構成を示す 図であり、  FIG. 23 is a block diagram showing the configuration of the first embodiment according to the present invention, and FIG. 24 is a diagram showing one configuration of a table of storage means used in the embodiment of FIG. Yes,
第 2 5図は、 本発明による第 2の実施例の構成を示すブロック図であり、 また 第 2 6図は、第 2 5図の実施例に用いられる記憶手段のテーブルの一構成を示す 図である。 発明を実施するための最良の形態  FIG. 25 is a block diagram showing the configuration of a second embodiment according to the present invention. FIG. 26 is a diagram showing one configuration of a table of storage means used in the embodiment of FIG. It is. BEST MODE FOR CARRYING OUT THE INVENTION
本発明をより詳細に説述するために、 添付の図面に従ってこれを説明する。  The present invention will be described in more detail with reference to the accompanying drawings.
第 5図は、 本発明の端末装置、 中継装置、 およびその通信方法に係る第 1の実施 の形態を示すシステム構成図である。  FIG. 5 is a system configuration diagram showing a first embodiment of a terminal device, a relay device, and a communication method thereof according to the present invention.
図示される第 1の実施の形態による通信システムは、複数の端末装置 1 _ 1、〜、 1一 n、 中継装置 2、端末装置 3、 プライベートネットワーク 4、 およびグロ一バ ルネッ トワーク 5により構成されている。 端末装置 l _ x (x = l、 n) と中継装置 2とはプライべ一トネットワーク 4を介して接続され、中継装置 2と端 末装置 3とはグローバルネットワーク 5を介して接続されている。 The illustrated communication system according to the first embodiment includes a plurality of terminal devices 1 _ 1 to 1, a relay device 2, a terminal device 3, a private network 4, and a global network 5. ing. The terminal device l_x (x = l, n) and the relay device 2 are connected via the private network 4, and the relay device 2 and the terminal The terminal device 3 is connected via a global network 5.
図示されるプライべ一トネットワーク 4およびグローバルネッ トワーク 5それ ぞれは異なるァドレス体系を適用しているネットワークである。従って、上述した 従来技術と比較するため、プライベートネットワーク 4およびグローバルネットヮ —ク 5それぞれを次のように定義する。  The illustrated private network 4 and global network 5 are networks to which different address systems are applied. Therefore, for comparison with the above-described conventional technology, the private network 4 and the global network 5 are defined as follows.
また、これらプライベートネットワーク 4およびグロ一バルネッ トワーク 5それ ぞれは単に互いに異なるネットワークとして、プライベートまたはグロ一バルと限 定されることなく、適用すべきものであるが、互いに明確に異なる体系のネットヮ ークとしてそれぞれが対応できるので、説明の便宜のためこのような名称を用いて 説明する。  In addition, each of the private network 4 and the global network 5 is to be applied as a network simply different from each other without being limited to a private or global network. Since each of them can correspond to each other, description will be made using such names for convenience of explanation.
プライベートネットワーク 4は、 I Pまたはその他の技術で構成されたネットヮ —クを想定しており、 I Pネットワーク、 I S D N網、移動通信網などデータ転送 サービスを提供するネットワークである。プライべ一トネットワーク 4を介しては、 端末装置 1 _ xと中継装置 2との間でユーザデータおよび制御情報を乗せた、ロー カルネットワーク用のバケツト (以後、 ローカルバケツ 卜と呼ぶ) が転送される。 グローバルネッ トヮ一ク 5はグロ一バルァドレスを適用した I Pネッ トワーク を想定している。 グローバルネットワーク 5では、 中継装置 2と端末装置 3との間 で、ァドレス解決のための問合せを行うァドレス解決問合せメッセ一ジを乗せる I Pパケット、このァドレス解決の問合せに応答するアドレス解決応答メッセ一ジを 乗せる I Pバケツト、およびその他の制御情報もしくはユーザデータを乗せる I P バケツトそれぞれが転送される。  The private network 4 is a network that provides a data transfer service, such as an IP network, an ISDN network, and a mobile communication network, assuming a network composed of IP or other technologies. Via the private network 4, a local network bucket carrying user data and control information between the terminal device 1_x and the relay device 2 (hereinafter referred to as a local bucket) is transferred. Is done. The global network 5 is assumed to be an IP network using global addresses. In the global network 5, an IP packet carrying an address resolution inquiry message for performing an inquiry for address resolution between the relay device 2 and the terminal device 3, and an address resolution response message responding to the address resolution inquiry. The IP bucket carrying the IP packet and the IP bucket carrying other control information or user data are transferred.
次に、第 5図に第 6図、 第 7図、 および第 8図を併せ参照して本発明による第 1 の実施の形態における構成について説明する。  Next, the configuration of the first embodiment of the present invention will be described with reference to FIG. 5, FIG. 6, FIG. 7, and FIG.
端末装置 1一 Xは、プライべ一トネットワーク 4で利用可能な通信機能を備えて おり、この通信機能を利用して端末装置 3の通信プログラムと通信する通信プログ ラムを搭載した情報処理機器である。端末装置 1一 Xそれぞれには、端末装置名と、 プライベートネットワーク 4の一つのアドレス 「例えば、 A l— x」 とが割り当て られている。端末装置名は、 F Q D N (F u 1 1 y Q u l i f i e d D o m a i n N a m e )形式のようにこの端末装置が接続されるネットワークの情幸艮と このネッ トワーク内で一意に識別できる識別子とから構成されており、他の端末装 置、または他の端末装置のプログラムもしくは利用者がこの端末装置を識別するた めに使用される。 The terminal device 11X has a communication function that can be used in the private network 4, and is an information processing device equipped with a communication program that communicates with the communication program of the terminal device 3 using this communication function. is there. Each of the terminal devices 11-X is assigned a terminal device name and one address of the private network 4, for example, Al-x. The terminal device name is composed of the information of the network to which this terminal device is connected, such as the FQDN (Fu1 1 y Qualified Domain Name) format, and an identifier that can be uniquely identified within this network. Other terminal devices It is used by the device or other terminal programs or users to identify this terminal.
中継装置 2は、 パケット受信手段 21、 23、 パケット送信手段 22、 24、 ァ ドレス変換手段 25、 26、記憶手段 27、 およびアドレス問合せ応答手段 28か ら構成されている。中継装置 2には、 プライべ一トネットワーク 4の一つのァドレ ス 「例えば、 Al—r」 と、 グロ一バルネッ トワーク 5の一つの I Pアドレス 「例 えば、 A 2— 2」 とが割り当てられている。  The relay device 2 includes packet receiving means 21 and 23, packet transmitting means 22 and 24, address conversion means 25 and 26, storage means 27, and address inquiry response means 28. One address “for example, Al-r” of the private network 4 and one IP address “for example, A2-2” of the global network 5 are assigned to the relay device 2. I have.
端末装置 3は、既存のインターネットで利用されている端末装置であり、 TCP /I Pによる通信機能を備え、この通信機能を利用して端末装置 1一 Xの通信プロ グラムと通信する通信プログラムを搭載した情報処理機器である。端末装置 3には、 端末装置名と、 グローバルネッ トワーク 5の一つのアドレス 「例えば、 A2— 1」 とが割り当てられている。端末装置名は、端末装置 1— Xと同様、 FQDN形式の ようにこの端末装置が接続されるネッ トワークの情報とこのネッ トワーク内で一 意に識別できる識別子とから構成されており、他の端末装置、 または他の端末装置 のプログラムもしくは利用者がこの端末装置を識別するために使用される。  The terminal device 3 is a terminal device used on the existing Internet, has a communication function using TCP / IP, and has a communication program for communicating with the communication program of the terminal device 11X using the communication function. Information processing equipment. The terminal device 3 is assigned a terminal device name and one address of the global network 5 “for example, A2-1”. The terminal device name, like terminal device 1-X, is composed of information on the network to which this terminal device is connected, such as FQDN format, and an identifier that can be uniquely identified within this network. The terminal, or other terminal program or user, is used to identify this terminal.
また、端末装置 3はアドレス解決手段を有し、 このアドレス解決手段が、 他の端 末装置と通信を開始する場合にこの端末装置の名前からこの端末装置の I Pアド レス(または、この端末装置へ送る I Pバケツトの宛先となる装置の I Pアドレス) を問い合わせる。 このアドレス解決手段は、 RFC 1035における 「D〇MAI N NAME S 一 IMPLEMENTAT I ON AND S PEC I F Γ CAT I ON」に記載されている DNS (D oma i n Name Sy s t em) 技術などで実現されている。  Further, the terminal device 3 has an address resolving means. When the address resolving means starts communication with another terminal device, the terminal device 3 obtains the IP address of this terminal device (or this terminal device To the IP address of the device that is the destination of the IP bucket to be sent to. This address resolution method is realized by the DNS (Doma in Name System) technology described in "D〇MAIN NAME S one IMPLEMENTAT I ON AND S PEC IF Γ CAT I ON" in RFC 1035. I have.
図示されるように、バケツト受信手段 21は、 プライべ一トネッ トワーク 4から 送られてくるグローバルネットワーク 5宛ての口一カルバケツトを受信し、受信し た口一力ルパケットをアドレス変換手段 25に渡す。パケット送信手段 22は、 ァ ドレス変換手段 25から渡される I Pバケツ トをグローバルネッ トワーク 5に送 出する。バケツト受信手段 23は、 グローバルネットワーク 5から送られてくるプ ライべ一トネットワーク 4宛ての I Pバケツトを受信し、受信した I Pバケツトを ァドレス変換手段 26に渡す。バケツ ト送信手段 24は、 ァドレス変換手段 26か ら渡されるローカルバケツ トをプライべ一トネットワーク 4に送出する。 第 6図に示されるように、 アドレス変換手段 2 5は、対応検索手段 2 5 1、 パケ ット変換手段 2 5 2、 および登録手段 2 5 3から構成される。 As shown in the figure, the bucket receiving means 21 receives a packet addressed to the global network 5 sent from the private network 4 and passes the received packet to the address translating means 25. The packet transmitting means 22 transmits the IP bucket passed from the address converting means 25 to the global network 5. The bucket receiving means 23 receives the IP bucket addressed to the private network 4 sent from the global network 5 and passes the received IP bucket to the address conversion means 26. The bucket transmitting means 24 sends out the local bucket passed from the address conversion means 26 to the private network 4. As shown in FIG. 6, the address conversion means 25 includes correspondence search means 251, packet conversion means 252, and registration means 253.
第 7図に示されるように、 アドレス変換手段 2 6は、対応検索手段 2 6 1、 パケ ット変換手段 2 6 2、登録検索手段 2 6 3、 および登録手段 2 6 4から構成される。 記憶手段 2 7は第 8図に示されるような処理端末登録テーブル 2 7 1と対応管 理テーブル 2 7 2とを有する。  As shown in FIG. 7, the address conversion means 26 is composed of a correspondence search means 261, a packet conversion means 262, a registration search means 263, and a registration means 264. The storage means 27 has a processing terminal registration table 271, and a corresponding management table 272 as shown in FIG.
ここで、第 8図を参照して処理端末登録テーブル 2 7 1および対応管理テーブル 2 7 1それぞれについて、第 6図および第 7図に示されるそれぞれの手段の説明に 先立って、 説明する。  Here, with reference to FIG. 8, each of the processing terminal registration table 271 and the correspondence management table 271 will be described prior to the description of the respective means shown in FIGS. 6 and 7.
図示されるように、処理端末登録テ一ブル 2 7 1は、 中継装置 2において処理端 末登録テーブル 2 7 1のェントリを一意に識別する第 1のェントリ識別子の値を 格納するェントリ識別子フィールドと、プライベートネットワーク 4のアドレスを 格納するァドレスフィールドと、ポ一ト番号を格納するポ一ト番号フィールドとの 組をェントリとして持つ。  As shown in the figure, the processing terminal registration table 27 1 has an entry identifier field for storing a value of a first entry identifier for uniquely identifying an entry of the processing terminal registration table 27 1 in the relay device 2. It has a set of an address field for storing the address of the private network 4 and a port number field for storing a port number.
処理端末登録テーブル 2 7 1では、 システムの構築者が、端末装置 3に提供する サービスを処理する端末装置 1—Xを予め決めておき、このサービスを処理する端 末装置のアドレスをアドレスフィールド、またこのサ一ビスに対応するポ一ト番号 をポート番号フィールドそれぞれに設定し、設定したエントリを記憶しておく。例 えば、端末装置 3に対して F T Pサービスを提供する端末装置 1 _ 1が決められた 場合、 処理端末登録テーブル 2 7 1には、 端末装置 1— 1のアドレス 「A 1— 1」 と、 F T Pサ一ビスに対応するポート番号 「2 0」 との組が設定され記憶される。 また、対応管理テーブル 2 7 2は、 ェントリ識別子フィールド、 第 1のソケット フィールド、第 2のソケットフィールド、 および第 3のソケットフィールドからな るエントリを持つ。ェントリ識別子フィ一ルドには、中継装置 2において対応管理 テーブル 2 7 1の各ェントリを一意に識別する第 2のェントリ識別子の値が格納 される。第 1のソケットフィールドは、 プライべ一トネットワーク 4のアドレスと ポート番号との組からなり、第 2のソケットフィールドおよび第 3のソケットフィ —ルドそれぞれはグロ一バルネッ トワーク 5の I Pアドレスとポート番号との組 からなる。 ·  In the processing terminal registration table 271, the system builder determines in advance the terminal device 1-X that processes the service provided to the terminal device 3, and specifies the address of the terminal device that processes this service in the address field, A port number corresponding to this service is set in each of the port number fields, and the set entry is stored. For example, if the terminal device 1 _ 1 that provides the FTP service to the terminal device 3 is determined, the processing terminal registration table 2 71 includes the address “A 1-1” of the terminal device 1-1, A set with a port number “2 0” corresponding to the FTP service is set and stored. In addition, the correspondence management table 272 has an entry including an entry identifier field, a first socket field, a second socket field, and a third socket field. In the entry identifier field, the value of the second entry identifier for uniquely identifying each entry in the correspondence management table 271, in the relay device 2, is stored. The first socket field consists of a pair of a private network 4 address and a port number. The second socket field and the third socket field are the IP address and port number of the global network 5, respectively. Consists of ·
第 6図に戻り、第 5図と併せ参照して、 ァドレス変換手段 2 5について説明する。 対応検索手段 2 5 1はバケツト受信手段 2 1からアドレス変換手段 2 5に渡さ れるローカルバケツ トを受取る。対応検索手段 2 5 1は、バケツト受信手段 2 1か らローカルバケツトを渡された際に、記憶手段 2 7の対応管理テーブル 2 7 2から、 第 1のソケッ トフィールドの値がこのローカルバケツ卜の送信元ァドレスおよび 送信元ポート番号の組と等しく、かつ、第 2のソケットフィールドの値がこの口一 カルバケツ卜の宛先アドレスおよび宛先ポート番号の組と等しい値を持つェント リを検索する。 Returning to FIG. 6, the address conversion means 25 will be described with reference to FIG. The correspondence search means 25 1 receives the local bucket passed from the bucket receiving means 21 to the address conversion means 25. When the local bucket is passed from the bucket receiving means 21, the correspondence search means 25 1 reads the value of the first socket field from the correspondence management table 27 2 of the storage means 27 when this local bucket is passed. A search is made for an entry whose value is equal to the pair of the source address and the source port number of the packet and whose value of the second socket field is equal to the pair of the destination address and the destination port number of this portal.
この検索によりこのェントリが検出された場合、対応検索手段 2 5 1は、該当す る口一カルバケツ トとェントリのェントリ識別子フィールドに格納されている第 2のェントリ識別子とをバケツト変換手段 2 5 2に渡す。この検索により該当する ェントリが検出されなかった場合、対応検索手段 2 5 1は、 このローカルバケツト を登録手段 2 5 3に渡す。  When this entry is detected by this search, the corresponding search means 25 1 converts the corresponding mouthpiece bucket and the second entry identifier stored in the entry identifier field of the entry into bucket conversion means 25 2 Pass to. If the corresponding entry is not detected by this search, the correspondence search means 25 1 passes this local bucket to the registration means 25 3.
バケツト変換手段 2 5 2は、ローカルバケツトおよび第 2のェントリ識別子を渡 された際には、 このローカルバケツトを I Pバケツトに変換する。バケツト変換手 段 2 5 2は、この I Pバケツトの送信元ァドレスと送信元ポート番号とをそれぞれ 該当する第 2のェントリ識別子から識別される対応管理テーブル 2 7 2のェント リにおいて、第 3のソケットフィールドに示される I Pアドレスおよびポ一ト番号 の値に書き換え、 この書き換えた I Pバケツトをバケツ ト送信手段 2 2に渡す。 登録手段 2 5 3は、 ローカルバケツトを渡された際に、未使用の第 2のェントリ 識別子を生成し、 かつ、 未使用のポート番号を一つ選ぶ。 そして、 登録手段 2 5 3 は、 この第 2のエントリ識別子をェントリ識別子フィールドの値とし、該当する口 —カルバケツ卜の送信元ァドレスおよび送信元ポート番号の組と、宛先ァドレスお よび宛先ポート番号の組とのそれぞれを第 1のソケットフィールドと第 2のソケ ットフィールドとの値とする。 次いで、 登録手段 2 5 3は、 中継装置 2におけるグ ローバルネッ トワーク 5の I Pァドレスとこの選ばれたポート番号との組を 3 のソケットフィールドの値とするェントリを作成し、このェントリを記憶手段 2 7 の対応管理テーブル 2 7 2に記憶する。 そして、 登録手段 2 5 3は、 このローカル バケツ トとこの第 2のェントリ識別子とをバケツト変換手段 2 5 2に渡す。  When the local bucket and the second entry identifier are passed, the bucket converting means 25 52 converts the local bucket into an IP bucket. The bucket conversion means 25 52 identifies the source address and source port number of this IP bucket in the corresponding socket entry in the correspondence management table 272 identified by the corresponding second entry identifier. The IP address and the port number shown in the field are rewritten to the values, and the rewritten IP bucket is passed to the bucket transmitting means 22. The registration means 253 generates an unused second entry identifier when the local bucket is passed, and selects one unused port number. Then, the registering means 253 sets the second entry identifier as the value of the entry identifier field, and sets the pair of the corresponding port—the source address and the source port number of the bucket, and the destination address and the destination port number. Each pair is the value of the first socket field and the value of the second socket field. Next, the registering means 25 3 creates an entry in which the pair of the IP address of the global network 5 in the relay device 2 and the selected port number is set as the value of the socket field of 3, and stores this entry in the storage means 2. 7 is stored in the correspondence management table 2 7 2. Then, the registration means 2553 passes the local bucket and the second entry identifier to the bucket conversion means 2552.
次に、第 7図に第 5図を併せ参照して、 アドレス変換手段 2 6について説明する c 対応検索手段 2 6 1はパケッ ト受信手段 2 3からアドレス変換手段 2 6に渡さ れる I Fパケットを受取る。対応検索手段 2 6 1は、パケット受信手段 2 3から I Pバケツトを渡された際には、記憶手段 2 7の対応管理テーブル 2 7 2から、第 2 のソケットフィ一ルドの値がこの I Pバケツ 卜の送信元ァドレスと送信元ポート 番号との組と等しく、かつ、第 3のソケットフィールドの値がこの I Pパケッ 卜の 宛先ァドレスと宛先ポート番号との組と等しいェントリを検索する。 Referring now also to FIG. 5 to FIG. 7, c corresponding retrieval section 2 6 1 explaining the address converting unit 2 6 passed to the address conversion unit 2 6 packet receiving means 2 3 Received IF packet. When the correspondence search means 26 1 receives the IP bucket from the packet reception means 23, the value of the second socket field is read from the correspondence management table 27 2 of the storage means 27 by this IP bucket. A search is made for an entry that is equal to the pair of the source address and the source port number of the packet and the value of the third socket field is equal to the pair of the destination address and the destination port number of this IP packet.
この検索により該当するェントリが検出された場合、対応検索手段 2 6 1は、上 記 I Pバケツ トとこのェントリのェントリ識別子フィールドに格納されている第 2のェントリ識別子とをバケツト変換手段 2 6 2に渡す。この検索により該当する ェントリが検出されなかった場合、対応検索手段 2 6 1は、上記 I Pバケツトを登 録検索手段 2 6 3に渡す。  If a corresponding entry is found by this search, the corresponding search means 26 1 converts the IP bucket and the second entry identifier stored in the entry identifier field of this entry into bucket conversion means 26 2 Pass to. If the corresponding entry is not detected by this search, the correspondence search means 261 passes the IP bucket to the registration search means 263.
バケツト変換手段 2 6 2は、 I Pバケツトおよび第 2のェントリ識別子を渡され た際に、この I Pバケツトをプライベートネットワーク 4のローカルバケツトに変 換する。バケツト変換手段 2 6 2は、 このローカルバケツ卜の宛先アドレスと宛先 ポート番号とをそれぞれ該当する第 2のェントリ識別子から識別される対応管理 テーブルのェントリにおける第 1のソケッ トの I Pアドレスとポ一ト番号との値 に書き換え、 この書き換えた口一カルバケツトをバケツ ト送信手段 2 4に渡す。 登録検索手段 2 6 3は、 I Pバケツトを渡された際に処理端末登録テーブルを参 照し、ポ一ト番号フィールドの値としてこの I Pバケツ トの宛先ポート番号の値を 持つエントリを検索する。  When the IP bucket and the second entry identifier are passed, the bucket converting means 262 converts the IP bucket to a local bucket of the private network 4. The bucket converting means 262 converts the destination address and destination port number of the local bucket to the IP address of the first socket in the entry of the correspondence management table identified from the corresponding second entry identifier. The value is rewritten to the value of the packet number, and the rewritten mouth bucket is passed to the bucket transmitting means 24. The registration search means 263 refers to the processing terminal registration table when the IP bucket is passed, and searches for an entry having the value of the destination port number of this IP bucket as the value of the port number field.
この検索により処理端末登録テーブル 2 7 1から該当するェントリが検出され なかった場合、 登録検索手段 2 6 3は、 この I Pバケツ トを廃棄し、処理を終了す る。  If no corresponding entry is detected from the processing terminal registration table 271 by this search, the registration search means 263 discards the IP bucket and ends the processing.
この検索により処理端末登録テーブル 2 7 1から該当するェントリが検出され た場合には、登録検索手段 2 6 3は、 このエントリのェントリ識別子フィールドに 格納されている第 1のェントリ識別子とこの I Pバケツ トとを登録手段 2 6 4に 渡す。  When the search finds a corresponding entry from the processing terminal registration table 271, the registration search means 263 determines the first entry identifier stored in the entry identifier field of this entry and this IP bucket. Hand over to the registration means 2 64.
登録手段 2 6 4は、第 1のェントリ識別子と I Pバケツトとを渡された際、 この 第 1のェントリ識別子で識別される記憶手段 2 7の処理端末登録テーブル 2 7 1 にェントリされるァドレスフィ一ルドに格納されているァドレスとポート番号フ ィールドに格納されているポート番号とを読み出し、未使用の第 2のェントリ識別 子を生成し、かっこの第 2のェントリ識別子をェントリ識別子フィールドの値とす る。 The registration means 264, when passed the first entry identifier and the IP bucket, stores the address file entered in the processing terminal registration table 271 of the storage means 27 identified by the first entry identifier. Reads the address stored in the field and the port number stored in the port number field, and identifies the unused second entry. Create a child and use the second entry identifier in parentheses as the value of the entry identifier field.
登録手段 2 6 4は、上記アドレスとポ一ト番号との組を第 1のソケットフィール ドの値とし、上記 I Pバケツトの送信元ァドレスと送信元ポート番号との組を第 2 のソケットフィールドとし、かつ上記 I Pバケツトの宛先アドレスと宛先ポート番 号との組を第 3のソケットフィ一ルドの値とするェントリを作成し、このェントリ を記憶手段 2 7の対応管理テーブル 2 7 2に記憶する。そして、登録手段 2 6 4は、 上記 I Pバケツトとこの第 2のェントリ識別子とをバケツ ト変換手段 2 6 2に渡 す。  The registration means 264 sets the pair of the address and the port number as the value of the first socket field, and sets the pair of the source address and the source port number of the IP bucket as the second socket field. In addition, an entry is created in which the set of the destination address and the destination port number of the IP bucket is set as the value of the third socket field, and this entry is stored in the correspondence management table 272 of the storage means 27. . Then, the registration means 264 passes the IP bucket and the second entry identifier to the bucket conversion means 262.
また、第 5図で図示されるアドレス問合せ応答解決手段 2 8は、 グロ一バルネッ トワーク 5から送られてくるアドレス解決問合せメッセージを有する I Pバケツ トをバケツト受信手段 2 3を介して受け、このァドレス解決問合せメッセージに対 して、このァドレス解決問合せメヅセージで問い合わされる端末装置の名前がブラ ィベートネットヮ一ク 4で接続される端末装置 1一 Xの名前である場合、このアド レス解決問合せメッセージへの応答として中継装置 2に割り当てられたグローバ ルネッ トワーク 5の I Pアドレス ΓΑ 2— 2」 を有するアドレス解決応答メッセ一 ジを作成し、作成したこのアドレス解決応答メッセージを I Pパケットに形成して、 バケツ ト送信手段 2 2を介してァドレス解決問合せメッセージの発信元に送出す る。  Also, the address inquiry response solution means 28 shown in FIG. 5 receives the IP bucket having the address resolution inquiry message sent from the global network 5 through the bucket reception means 23, and In response to the resolution inquiry message, if the name of the terminal device queried in this address resolution inquiry message is the name of the terminal device 1 1X connected via the private network 4, response to this address resolution inquiry message To create an address resolution response message having the IP address of the global network 5 assigned to the relay device 2 と し て 2—2 ”as a response message, form the created address resolution response message into an IP packet, and transmit the packet. It is sent to the source of the address resolution inquiry message via means 22.
ここで、第 9 A図から第 9 D図までに第 5図を併せ参照して本実施の形態で使用 する I Pバケツトおよび口一カルネットワーク用のローカルバケツトの構造につ いて説明する。 なお、第 9 A図から第 9 D図に示される各バケツ卜の構造は、 本発 明に関わるフィールドのみを抜き出して模式的に表現されたものである。  Here, the structures of the IP bucket and the local bucket for the oral network used in the present embodiment will be described with reference to FIGS. 9A to 9D, together with FIG. Note that the structure of each bucket shown in FIGS. 9A to 9D is schematically represented by extracting only fields related to the present invention.
まず、第 9 A図を参照してユーザデータなどを含むデータ用 I Pバケツトの構造 について説明する。 グローバルネットワーク 5で使用される I Pバケツ トは、送信 元ァドレス、 宛先ァドレス、送信元ポート番号、 宛先ポート番号、 および各種制御 情報またはユーザデータなどを含む。 I Fパケッ トは、 I Pヘッダ、 トランスポー トヘッダ、およびデータ部とからなる。 トランスポートヘッダには T C Pへ.ッダ、 UD Pヘッダ、 または、他のトランスポートプロトコルのヘッダを用いることがで きるが、いずれのトランスポ一トプロトコルのへッダを用いているかは I Pへッダ のプロトコル識別子フィールドで指示される。 I Pパケットでは、送信元ァドレス と宛先アドレスとは I Pへッダ中に含まれ、送信元ポート番号と宛先ポ一ト番号と はトランスポートヘッダ中に含まれる。各種制御情報またはユーザデータなどはデ —夕部に含まれる。 First, the structure of a data IP bucket including user data and the like will be described with reference to FIG. 9A. The IP bucket used in the global network 5 includes a source address, a destination address, a source port number, a destination port number, and various control information or user data. An IF packet consists of an IP header, a transport header, and a data part. The transport header can be a TCP header; UDP headers or other transport protocol headers can be used, but which transport protocol header is used is the IP header. Da Of the protocol identifier field. In an IP packet, the source address and the destination address are included in the IP header, and the source port number and the destination port number are included in the transport header. Various control information or user data is included in the data area.
第 9 B図および第 9 C図に示されるように、ァドレス解決問合せメッセージのた めの I Pバケツトは問い合わせる端末装置の名前を含み、ァドレス解決応答メッセ ージのための I Pバケツ トは応答するアドレス解決問合せメッセージに含まれる 名前の端末装置のァドレスを含む。アドレス解決を上記の D N Sで実現した場合の 各メッセージ用 I Pバケツトの構成が図に示されている。  As shown in Figures 9B and 9C, the IP bucket for the address resolution inquiry message contains the name of the querying terminal, and the IP bucket for the address resolution response message is the address to which it responds. Contains the address of the terminal with the name included in the solution inquiry message. The configuration of the IP bucket for each message when address resolution is realized by the above DNS is shown in the figure.
ァドレス解決問合せメッセージ用 I Pパケットおよびァドレス解決応答メッセ ージ用 I Pバケツトは共にデータ用 I Pバケツトと同様に I Pヘッダとトランス ポートヘッダとを有するが、データ用 I pバケツトにおけるデータ部が DN Sメッ セージになっている点で異なる。データ用 I Pバケツトと他のメッセージ用 I Pパ ケットとの違いは、ァドレス解決問合せメッセージ用 I Pパケットとアドレス解決 要求メッセージ用 I Pバケツ トとでは送信元ポート番号および宛先ポ一ト番号の いずれかが D N Sサービスを表す値 「5 3」 になっていることである。  Both the IP packet for the address resolution inquiry message and the IP bucket for the address resolution response message have an IP header and a transport header like the IP packet for data, but the data part in the IP bucket for data is a DNS message. Is different. The difference between the IP packet for data and the IP packet for other messages is that in the IP packet for address resolution inquiry message and the IP packet for address resolution request message, either the source port number or the destination port number is DNS. The value that represents the service is “5 3”.
データ用 I Pバケツトは送信元ポート番号および宛先ポート番号がいずれも値 5 3以外であることにより識別される。 さらに、 アドレス解決問合せメッセ一ジ用 I Pバケツトとァドレス解決応答メッセージ用 I Pバケツトとの識別は、 D N Sメ ッセージにおける問合せ/応答フラグの値で行う。例えば、問合せ/応答フラグの 値 「0」 の場合はアドレス解決問合せメッセ一ジ用であり、 また値 「1」 の場合は ァドレス解決応答メッセージ用に設定することができる。  A data IP bucket is identified by a source port number and a destination port number other than the value 53. Further, the IP bucket for the address resolution inquiry message and the IP bucket for the address resolution response message are identified by the value of the query / response flag in the DNS message. For example, if the value of the inquiry / response flag is “0”, it can be set for an address resolution inquiry message, and if the value is “1”, it can be set for an address resolution response message.
ァドレス解決で問い合わせる端末装置の名前はァドレス解決問合せメッセージ 用 I Pバケツ 卜の D N Sメッセージ中の名前フィールドに格納され、問い合わされ た名前の端末装置のァドレスはァドレス解決応答メッセージ用 I Pバケツ卜の D N Sメッセ一ジ中のァドレスフィ一ルドに格納される。  The name of the terminal device to be queried for address resolution is stored in the name field in the DNS message of the IP packet for the address resolution inquiry message, and the address of the terminal device having the queried name is the DNS message of the IP packet for the address resolution response message. It is stored in the address field in the page.
端末装置 3は、ァドレス解決問合せメッセージ用 I Pバケツ トを作成する都度、 端末装置 3において一意に識別できる識別子を生成し、この作成したァドレス解決 問合せメッセージ用 I Pバケツ トに含まれる D N Sメッセージ中の識別子フィ一 ルドに生成した識別子を格納する。中継装置 2は受信したァドレス解決問合せメッ セージ用 I Pバケツトに応答するアドレス解決応答メッセージ用 I Pバケツ トを 作成する際に、このァドレス解決問合せメッセージ用 I Pバケツトの D N Sメッセ ージ中の識別子フィールドに格納されている識別子を取り出し、このァドレス解決 応答メッセージ用 I Pバケツトの DN Sメッセージ中の識別子フィ一ルドにこの 識別子を格納する。 これにより、端末装置 3は、 受信したアドレス問合せ応答メッ セージ用 I Pバケツ卜の D N Sメッセージ中に含まれる識別子フィールドの値を 参照することにより、このァドレス問合せ応答メッセージ用 I Pバケツ卜に対する 応答先のアドレス問合せ要求メッセージ用 I Pバケツトを識別することができる。 プライべ一トネットワーク 4で使用される口一カルバケツトは送信元ァドレス、 宛先ァドレス、 送信元ポ一ト番号、宛先ポート番号、 および各種制御情報またはュ —ザデータなどを含む。プライベートネットワーク 4が I Pで構成されるネットヮ ークならば、グロ一バルネットワーク 5の I Pパケットと同様に第 9 A図のように 構成することができる。プライべ一トネットワーク 4で使用される口一カルバケツ トの構成はプライべ一トネットワーク 4で使用されるプロトコル技術の種類に依 存するため、 一意に表現できないが、例えば、第 9 D図のように表現することがで ぎる。 Each time the terminal device 3 creates an IP packet for an address resolution inquiry message, the terminal device 3 generates an identifier that can be uniquely identified in the terminal device 3, and the identifier in the DNS message included in the created IP packet for the address resolution inquiry message. Store the generated identifier in the field. Relay device 2 receives the address resolution inquiry message When creating an IP packet for an address resolution response message that responds to the IP packet for the message, retrieves the identifier stored in the identifier field in the DNS message of the IP packet for the address resolution inquiry message and resolves this address. This identifier is stored in the identifier field in the DNS message of the IP bucket for the response message. As a result, the terminal device 3 refers to the value of the identifier field included in the DNS message of the received IP inquiry response message IP packet, and thereby responds to the address inquiry response message IP bucket address. The IP bucket for the inquiry request message can be identified. The packet used in the private network 4 includes a source address, a destination address, a source port number, a destination port number, and various control information or user data. If the private network 4 is a network configured by IP, it can be configured as shown in FIG. 9A, similarly to the IP packet of the global network 5. The structure of the mouth packet used in the private network 4 cannot be uniquely expressed because it depends on the type of protocol technology used in the private network 4.For example, as shown in Figure 9D Can be expressed in
また、 図面では明示されていないが、 端末装置 1一 x、 中継装置 2、 端末装置 3 にはそれぞれ全メッセージを受信し、受信した各メッセージのメッセ一ジ種類フィ —ルドに含まれるメッセ一ジ種類情報からそのメッセ一ジ種類を識別し、該当する メッセージ種類を処理する手段に渡すメッセージ振分け手段を備えている。例えば、 中継装置 2はグローバルネットワーク 5からデータ用 I Pバケツ トとアドレス解 決問合せメッセージ用 Γ Ρバケツトとの 2種類のメッセージを受信するが、これら は中継装置 2のバケツト受信手段 2 3に含まれるメッセージ振分け手段で受信さ れる。 このメッセージ振分け手段は、受信したメッセージがデータ用 I Pバケツト ならばこの I Pバケツトをバケツト受信手段 2 3に渡し、受信した I Pバケツトが ァドレス解決問合せメッセージ用 I Pパケッ トならばこのァドレス解決問合せメ ッセージ用 I Pバケツトをァドレス問合せ応答手段 2 8に渡している。  Although not explicitly shown in the drawing, the terminal device 1x, the relay device 2, and the terminal device 3 each receive all the messages, and the message included in the message type field of each received message. There is provided a message distribution means for identifying the message type from the type information and passing the message type to a means for processing the corresponding message type. For example, the relay device 2 receives two types of messages from the global network 5, an IP packet for data and a packet for an address resolution inquiry message, which are included in the bucket receiving means 23 of the relay device 2. Received by the message distribution means. If the received message is an IP packet for data, the message distribution means passes the IP packet to the bucket receiving means 23, and if the received IP packet is an IP packet for an address resolution inquiry message, and if the received IP packet is an IP packet, the IP packet is used for the address resolution inquiry message. The IP bucket is passed to the address inquiry response means 28.
次に、第 1 0図に第 5図から第 8図までを併せ参照して、本発明による第 1の実 施の形態における動作について説明する。  Next, the operation of the first embodiment according to the present invention will be described with reference to FIG. 10 and FIG. 5 to FIG.
本発明による第 1の実施の形態において実行されるデータ通信は、データ通信セ ッションを端末装置 1一 Xが開始する場合と、端末装置 3が開始する場合の 2種類 がある。 The data communication executed in the first embodiment of the present invention is a data communication There are two types: the case where the terminal device 11 X starts the session and the case where the terminal device 3 starts the session.
データ通信セッションを端末装置 1 —Xが開始する場合については既存の技術 である NA P T技術と同様に実施されるためその動作の説明を省略し、ここでは、 データ通信セッションを端末装置 3が開始する場合の動作について説明する。  Since the terminal device 1 -X starts a data communication session in the same manner as the existing technology, the NAPT technology, the description of the operation is omitted, and here, the terminal device 3 starts the data communication session. The operation in the case of performing will be described.
プライべ一トネットヮ一ク 4において、 ポート番号「P 1」 に対応するサービス を処理する端末装置を端末装置 1一 Xと定め、中継装置において処理端末登録テー ブルにアドレス 「Α 1—χ」 とポート番号 「P 1」 との対応が記億されている状態 で、端末装置 3がポート番号「 P 2」のポートから端末装置 1一 Xのポ一ト番号「 P 1」 のポ一トとのデータ通信を開始する場合について説明する。  In the private network 4, the terminal device that processes the service corresponding to the port number “P 1” is defined as the terminal device 11 -X, and the address “Α 1-χ” is set in the processing terminal registration table in the relay device. In a state where the correspondence with the port number “P1” is recorded, the terminal device 3 is connected to the port number “P1” of the terminal device 1X from the port of the port number “P2”. The case where the data communication is started will be described.
端末装置 3が端末装置 1一 Xとのデータ通信を開始する場合、 まず、端末装置 1 —Xの名前からァドレス解決を行う。 これは、端末装置 3が端末装置 1— Xの名前 を解決対象装置名として含むァドレス解決問合せメッセージ用 I Pパケッ トをグ 口一バルネットワーク 5に送信 (ステップ S 1 ) することによって開始される。 上記ァドレス解決問合せメッセージ用 I Pパケットは、中継装置 2のパケット受 信手段 2 3で受信され、 アドレス問合せ応答手段 2 8へ振り分けられる。 アドレス 問合せ応答手段 2 8は、このアドレス解決問合せメッセージ用パケットで問い合わ されている装置が端末装置 1—Xであることから、対応管理テーブル 2 7 2に記録 されるグローバルネットワーク 5における I Pアドレス ΓΑ 2— 2」 を、 この問合 せの応答とするアドレス解決応答メッセ一ジ用バケツ 卜に作成してバケツ ト送信 手段 2 2へ渡す。 この I Pバケツ トを、バケツト送信手段 2 2がグロ一バルネット ワーク 5を介して端末装置 3へ送信 (ステップ S 2 ) する。  When the terminal device 3 starts data communication with the terminal device 1-X, first, address resolution is performed from the name of the terminal device 1-X. This is started by the terminal device 3 transmitting an IP packet for an address resolution inquiry message including the name of the terminal device 1-X as a resolution target device name to the gateway network 5 (step S1). The IP address packet for the address resolution inquiry message is received by the packet receiving means 23 of the relay device 2, and is distributed to the address inquiry response means 28. Since the device inquired in the packet for the address resolution inquiry message is the terminal device 1-X, the address inquiry response means 28 receives the IP address in the global network 5 recorded in the correspondence management table 272. "2-2" is created in the address resolution response message bucket as a response to this inquiry, and is passed to the bucket transmitting means 22. This IP bucket is transmitted by the bucket transmitting means 22 to the terminal device 3 via the global network 5 (step S 2).
上記アドレス解決応答メッセージ用 I Pバケツ トは端末装置 3で受信され、端末 装置 3は、受けたァドレス解決応答メッセージ用 I Pバケツ卜の内容から、端末装 置 1—X宛ての I Pバケツ トの宛先 I Pアドレス ΓΑ 2— 2」を知ることができる。 次に、端末装置 3は、端末装置 1—x宛てのデ一タを含むデータ用 I Pバケツト を生成し、 グロ一パルネットワーク 5へ送信 (ステップ S 3) する。従って、 この データ用 I Pバケツ トは、 宛先ァドレス ΓΑ 2— 2」、 送信元ァドレス 「A 2— 1」、 宛先ポート番号 「P 1」、 および送信元ポート番号 「F 2」 を有することとなる。 上記データ用 I Pバケツ トはバケツ ト受信手段 2 3で受信され、バケツト受信手 段 2 3は、 このデータ用 I Pバケツトをァドレス変換手段 2 6に渡す。 The IP packet for the address resolution response message is received by the terminal device 3, and the terminal device 3 determines the destination IP address of the IP bucket addressed to the terminal device 1-X from the content of the received IP packet for the address resolution response message. Address ΓΑ 2—2 ”. Next, the terminal device 3 generates a data IP bucket including data addressed to the terminal device 1-x, and transmits the data IP bucket to the global network 5 (step S3). Therefore, this data IP bucket has the destination address ΓΑ2-2 ”, the source address“ A2-1 ”, the destination port number“ P 1 ”, and the source port number“ F 2 ”. . The above data IP bucket is received by the bucket receiving means 23, and the bucket Stage 23 passes this data IP bucket to address conversion means 26.
アドレス変換手段 2 6に渡された上記 I Pバケツトは対応検索手段 2 6 1で受 取られる。対応検索手段 2 6 1は、 上記 I Pバケツトを渡されると、記憶手段 2 7 の対応管理テーブル 2 7 2から、第 2のソケットフィールドと第 3のソケッ トフィ 一ルドとの値がそれぞれこの I Pパケットの送信元ァドレスと送信元ポート番号 との組 [A 2— 1、 P 2 ] と、 この I Pバケツ卜の宛先ァドレスと宛先ポート番号 との組 [A 2— 2、 P 1 ] と等しい値であるエントリを検索する。  The IP bucket passed to the address conversion means 26 is received by the correspondence search means 26 1. When the above-mentioned IP bucket is passed, the correspondence search means 261 sets the value of the second socket field and the value of the third socket field from this correspondence management table 272 of the storage means 27 to this IP packet, respectively. With the same value as the pair [A 2-1, P 2] of the source address and source port number of this IP packet and the pair [A 2-2, P 1] of the destination address and destination port number of this IP bucket. Search for an entry.
この時点では、端末装置 3のポート番号「P 2」 のポートと端末装置 1—xのポ —ト番号「P 1」 のポートとのデータ通信は過去に行われておらず、対応管理テー ブル 2 7 2には上記ェントリが存在しないため、この検索によってこのェントリは 検出されない。  At this time, the data communication between the port of the terminal device 3 with the port number “P 2” and the port of the terminal device 1-x with the port number “P 1” has not been performed in the past, and the correspondence management table Since this entry does not exist in 272, this search does not find this entry.
対応検索手段 2 6 1は、 この検索でこのエントリが検出されなかったため、 この Since the corresponding search means 2 6 1 did not find this entry in this search,
1 Pパケットを登録検索手段 2 6 3に渡す。 1 Pass the P packet to the registration and retrieval means 26 3.
登録検索手段 2 6 3は、上記 I Pバケツトを渡されると、処理端末登録テーブル When the IP bucket is passed, the registration search means 2663 receives the processing bucket registration table.
2 7 1を参照し、ポート番号フィールドの値としてこの I Pバケツ トの宛先ポート 番号の値 「P 1」 を持つエントリを検索する。 Referring to 271, search for an entry having the destination port number value "P1" of this IP bucket as the value of the port number field.
この場合、 前述の通り、 予め設定されたアドレス 「A 1— x」 とポート番号 「P 1」 とのエントリが存在するので、 検索により、 このエントリを検出する。  In this case, as described above, there is an entry of the preset address “A 1−x” and the port number “P 1”, and this entry is detected by searching.
登録検索手段 2 6 3は、 この検索でこのエントリを検出したため、 このエントリ のェントリ識別子フィ一ルドに格納されている第 1のェントリ識別子とこの I P バケツ卜とを登録手段 2 6 4に渡す。  Since the registration search means 263 detects this entry in this search, it passes the first entry identifier stored in the entry identifier field of this entry and this IP bucket to the registration means 264.
登録手段 2 6 4は、上記第 1のェントリ識別子と上記 I Pバケツ 卜とを渡される と、この第 1のェントリ識別子で識別される記憶手段 2 7における処理端末登録テ 一ブル 2 7 1のェントリのァドレスフィ一ルドに格納されているァドレスとポー ト番号フィールドに格納されているポート番号とを読み出し、 かつ、未使用の第 2 のェントリ識別子を生成する。  Upon receiving the first entry identifier and the IP bucket, the registration means 264 receives the entry of the processing terminal registration table 271 in the storage means 27 identified by the first entry identifier. Read the address stored in the address field and the port number stored in the port number field, and generate an unused second entry identifier.
登録手段 2 6 4は、この第 2のェントリ識別子をェントリ識別子フィールドの値 とし、 このアドレスとこのポ一ト番号との組 [A l—x、 P I ] を第 1のソケッ ト フィ一ルドの値とし、この I Pバケツ 卜の送信元ァドレスと送信元ポ一ト番号との 組 [A 2— 1、 P 2 ] を第 2のソケッ トフィールドの値とし、 この I Pバケツ 卜の 宛先ァドレスと宛先ポ一ト番号との組 [A 2— 2、 P 1 ] を第 3のソケットフィー ルドの値とするェントリを作成し、このェントリを記憶手段 2 7の対応管理テープ ル 2 7 2に、 図示されるように、 記憶する。 そして、 登録手段 2 6 4は、 この I P バケツ トとこの第 2のェントリ識別子とをバケツト変換手段 2 6 2に渡す。 The registration means 264 sets this second entry identifier as the value of the entry identifier field, and sets the pair [A l-x, PI] of this address and this port number in the first socket field. And the pair [A2-1, P2] of the source address and source port number of this IP bucket as the value of the second socket field, and the value of this IP bucket An entry is created in which the pair [A 2-2, P 1] of the destination address and the destination port number is used as the value of the third socket field, and this entry is stored in the corresponding management table 27 of the storage means 27. 2 and memorize as shown. Then, the registration means 264 passes the IP bucket and the second entry identifier to the bucket conversion means 262.
バケツト変換手段 2 6 2は、上記 I Pバケツトと上記第 2のェントリ識別子とを 渡されると、この I Pバケツトをプライべ一トネットワーク 4の口一カルバケツト に変換し、このローカルバケツトの宛先ァドレスと宛先ポート番号とをそれぞれこ の第 2のェントリ識別子から識別される記憶手段 2 7の対応管理テーブル 2 7 2 におけるェントリの第 1のソケッ トフィールドに示される I Pァドレスとポート 番号との値 [A l _ x、 P I ] に書き換え、 この書き換えた口一カルパケッ トをパ ケット送信手段 2 4に渡す。  When the above-mentioned IP bucket and the above-mentioned second entry identifier are passed, the bucket converting means 2 62 converts this IP bucket into a private bucket of the private network 4 and the destination address of this local bucket. The destination port number and the value of the IP address and port number indicated in the first socket field of the entry in the correspondence management table 272 of the storage means 27 respectively identified from the second entry identifier [A l_x, PI], and passes the rewritten oral packet to the packet transmitting means 24.
バケツト送信手段 2 4は、上記口一カルバケツトを渡されると、 このローカルパ ケットをプライべ一トネットワーク 4に送出し、このローカルバケツトは端末装置 1— Xによって受信 (ステップ S 4) される。  When the bucket is passed, the bucket transmitting means 24 sends the local packet to the private network 4, and the local bucket is received by the terminal device 1-X (step S4).
以降、端末装置 3からグロ一バルネットワーク 5に送出された端末装置 1一 Xの ポート番号 「P 1」 宛ての I Pバケツトは、 宛先ァドレス 「A 2 _ 2」 と、 送信元 アドレス ΓΑ 2— 1」 と、 宛先ポート番号 「P 1」 と、 送信元ポート番号 「P 2」 とを有する。 この I Pバケツトは、同様に中継装置 2のバケツト受信手段 2 3で受 信され、この I Pバケツトはバケツト受信手段 2 3によって対応検索手段 2 6 1に 渡されるが、記憶手段 2 7の対応管理テーブル 2 7 2には第 2のソケットフィール ドの値がこの I Pバケツトの送信元ァドレスと送信元ポート番号との組 [P 2— 1、 P 2] と等しく、 かつ、 第 3のソケットフィールドの値がこの I Pバケツトの宛先 ァドレスと宛先ポ一ト番号との組 [P 2— 2、 P 1 ] と等しいェントリが既に存在 するため、対応検索手段 2 6 1は、対応管理テーブルの検索によりこのェントリを 検出し、この I Pバケツ トとこのェントリの第 2のェントリ識別子とをバケツト変 換手段 2 6 2に渡し、パケット変換手段 2 6 2によりこの I Pパケットは端末装置 1— Xのポート番号「P 1」宛てとなるプライべ一トネットワーク 4のローカルパ ケッ卜に変換され、このローカルバケツトはバケツト送信手段 2 4によってプライ ベートネットワーク 4を介して端末装置 1一 Xに送信される。  Thereafter, the IP packet destined for the port number “P 1” of the terminal device 1 -X transmitted from the terminal device 3 to the global network 5 includes the destination address “A 2 _ 2” and the source address ΓΑ 2— 1 , A destination port number “P 1”, and a source port number “P 2”. This IP bucket is similarly received by the bucket receiving means 23 of the relay device 2, and this IP bucket is passed to the correspondence search means 26 1 by the bucket receiving means 23, but is stored in the correspondence management table of the storage means 27. 272 indicates that the value of the second socket field is equal to the pair [P 2-1, P 2] of the source address and the source port number of this IP bucket, and the value of the third socket field Already exists, an entry equal to the pair [P2-2, P1] of the destination address and the destination port number of this IP bucket already exists. Therefore, the correspondence search means 2661 searches the correspondence management table for this entry. Is detected, the IP packet and the second entry identifier of this entry are passed to the bucket conversion means 262, and the IP packet is transmitted by the packet conversion means 262 to the port number "P" of the terminal device 1-X. Ply addressed to "1" The packet is converted into a local packet of the private network 4, and this local bucket is transmitted to the terminal device 11 -X via the private network 4 by the bucket transmitting means 24.
+ また同様に、 上記ステップ S 4以降は、 端末装置 1一 Xのポート番号 「P 1」 か らプライベートネットワーク 4に送出された端末装置 3のポ一ト番号「P 2」宛て の口一カルバケツトは、宛先アドレス 「A 2— 1」 と、送信元アドレス 「A 1— x」 と、 宛先ポート番号 「P 2」 と、 送信元ポート番号 「P 1」 とを有する。 この口一 カルパケットは、 中継装置 2でパケット受信手段 2 1、 アドレス変換手段 2 5、 パ ケット送信手段 2 2を経て、 宛先アドレス ΓΑ 2— 1」、 送信元アドレス ΓΑ 2— 2」、 宛先ポ一ト番号 「P 2」、 および送信元ポ一ト番号 「P 1」 を有する I Pパケ ットに変換される。この変換された I Pバケツトはグロ一バルネッ トワーク 5を介 して端末装置 3に送信される。 + Similarly, from step S4 onward, the port number “P1” The packet addressed to the port number “P 2” of the terminal device 3 sent to the private network 4 from the client 3 is a destination address “A 2−1”, a source address “A 1−x”, and a destination port It has a number “P 2” and a source port number “P 1”. This oral packet passes through the packet receiving means 21, the address translating means 25, and the packet transmitting means 22 in the relay device 2, and passes through the destination address ΓΑ 2-1 ”, the source address ΓΑ 2-2”, and the destination Converted to an IP packet having port number "P2" and source port number "P1". The converted IP bucket is transmitted to the terminal device 3 via the global network 5.
上述のように、グロ一バルネットワークからプライベートネッ トワーク宛ての I Pバケツトを中継する際、 中継装置が、事前に登録したポート番号とそのポート番 号宛ての I Pバケツ トとを処理するプライべ一トネッ トワークに接続された端末 装置のァドレスの対応を参照し、この I Pバケツ卜の宛先となる端末装置を決定し、 この I Pパケットをこの端末装置宛ての口一カルバケツトに変換している。このよ うにバケツトを変換することにより、グロ一バルァドレスのァドレス体系を適用す るグロ一バルネッ トワークの端末装置から異なるアドレス体系を用いるプライべ —トネットワークの端末装置への通信が可能になる。  As described above, when relaying an IP packet addressed to the private network from the global network, the relay device processes the port number registered in advance and the IP packet addressed to the port number in a private network. By referring to the correspondence of the addresses of the terminal devices connected to the network, the terminal device which is the destination of this IP packet is determined, and this IP packet is converted into a single packet addressed to this terminal device. By converting the bucket in this manner, communication from a global network terminal device that applies a global address system to a private network terminal device that uses a different address system becomes possible.
上述した第 1の実施の形態では、グロ一バルネットワークに接続される端末装置 がーつの場合について図示して説明した力、グローバルネッ トワークに接続される 端末装置が複数の場合においても同様に実施することができる。  In the first embodiment described above, the same is applied to the case where only one terminal device is connected to the global network and the terminal device is connected to the global network. can do.
また、 この第 1の実施の形態では、 グロ一バルネットワークと異なるネットヮ一 ク (非グロ一バルネットワークであるプライベートネットワーク 4) に接続された 端末装置(端末装置 1一 X ) とグローバルネットワークに接続された端末装置 (端 末装置 3) との間での通信について説明した。 しかし更に、複数の非グロ一バルネ ットワークそれぞれが上述した中継装置を介してアドレス体系の異なるネッ トヮ 一クに接続された通信システムにおいても任意の非グロ一バルネッ トヮ一クに接 続された任意の端末装置間の通信も同様に実現される。  Also, in the first embodiment, a terminal device (terminal device 1 1 X) connected to a network different from the global network (private network 4 which is a non-global network) and a global network are connected. The communication with the terminal device (terminal device 3) was explained. However, even in a communication system in which each of a plurality of non-global networks is connected to a network having a different address system via the above-described relay device, each of the non-global networks is connected to an arbitrary non-global network. Communication between arbitrary terminal devices is also realized in the same manner.
すなわち、第 1 1図に示される通信システムにおいて、任意の端末装置 1 3 1〜 1 3 n間での通信が可能である。 これは、第 iの非グローバルネッ トワーク 1 2 i That is, in the communication system shown in FIG. 11, communication between any of the terminal devices 13 1 to 13 n is possible. This is the i-th non-global network 1 2 i
(ただし 「i」 は 「1、 2、 ···、 n」 のいずれか) に接続された端末装置 (端末装 置 Aとする) から第:] 'の非グロ一バルネットワーク 1 2 j (ただし 「j」 は 「1、 2、 ···、 n」のいずれかであり、かつ「j≠ i」である) に接続された端末装置(端 末装置 Bとする) に対して通信セッションを開始するバケツトを送信する場合、第 iの中継装置 1 1 iが第 jの中継装置 1 1 jとその端末装置 Bとに対する動作が、 この第 1の実施の形態における端末装置 3に対する動作と等しくなるためである。 ただし、中継ネットワーク 1 1 0が非グローバルネットワークの場合、中継ネット ワーク 1 1 0のアドレス体系は第 iの非グローバルネッ トワーク 1 2 iのァドレ ス体系と第 jの非グローバルネットワーク 1 2 jのアドレス体系とのいずれとも 異ならなければならない。 (Where “i” is one of “1, 2,..., N”) from the terminal device (terminal device A) to the non-global network 1 2 j ( Where "j" is "1, When a bucket for starting a communication session is transmitted to a terminal device (terminal device B) connected to any one of “2,..., N” and “j ≠ i”. This is because the operation of the i-th relay device 11 i with respect to the j-th relay device 11 j and its terminal device B is equal to the operation with respect to the terminal device 3 in the first embodiment. However, if the transit network 110 is a non-global network, the address system of the transit network 110 is the address system of the i-th non-global network 12 i and the address of the j-th non-global network 12 j It must be different from any of the systems.
また、上述した第 1の実施の形態では、端末装置 3がデータ通信を開始する際に 名前を知っている相手側の端末装置が端末装置 1一 Xである場合について説明し たが、 このとき端末装置 3は中継装置 2の名前のみを知っていて、中継装置 2の名 前を指定してァドレス解決を行ってもよい。  Further, in the first embodiment described above, a case has been described where the terminal device of the other party whose name is known when the terminal device 3 starts data communication is the terminal device 11X. The terminal device 3 may know only the name of the relay device 2 and perform address resolution by designating the name of the relay device 2.
次に、 第 1 2図を参照して本発明による第 2の実施の形態について説明する。 第 2の実施の形態では、第 5図に示された第 1の実施の形態における端末装置 1 一 Xを代表して端末装置 1 aが示されている。端末装置 1 aは、端末装置 1— の 構成に加えて、 電源操作監視手段 1 1、登録要求送信手段 1 2、 削除要求送信手段 1 3、 動作確認応答手段 1 4、 および記憶手段 1 5を有している。 また、 中継装置 2 aが、第 5図に示された第 1の実施の形態における中継装置 2の構成に加えて、 登録要求受信手段 2 9 1、削除要求受信手段 2 9 2、および動作確認要求手段 2 9 3を有している。なお、 アドレス変換手段 2 6の構成は第 7図に示された第 1の実 施の形態におけるアドレス変換手段 2 6の構成と等しい。  Next, a second embodiment of the present invention will be described with reference to FIG. In the second embodiment, a terminal device 1a is shown as a representative of the terminal device 11X in the first embodiment shown in FIG. The terminal device 1a includes, in addition to the configuration of the terminal device 1—, a power operation monitoring unit 11, a registration request transmission unit 12, a deletion request transmission unit 13, an operation confirmation response unit 14, and a storage unit 15. Have. Further, the relay device 2a includes a registration request receiving unit 291, a deletion request receiving unit 2992, and an operation check in addition to the configuration of the relay device 2 in the first embodiment shown in FIG. It has request means 293. Note that the configuration of the address translation unit 26 is the same as the configuration of the address translation unit 26 in the first embodiment shown in FIG.
また、第 1 2図には端末装置 3が示されていないが、 グロ一バルネットワーク 5 には第 5図で示されたと同様、端末装置 3が接続されているものとして説明する。 まず、端末装置 1 aでは、 記憶手段 1 5に、提供サ一ビスリストが記憶されて いる。 この提供サービスリストは、端末装置 1 aが端末装置 3に対して提供するサ ―ビスに対応するポ一ト番号からなるリストであり、端末装置 1 aの利用者により 予め設定されているものである。  Also, although the terminal device 3 is not shown in FIG. 12, it is assumed that the terminal device 3 is connected to the global network 5 as shown in FIG. First, in the terminal device 1a, the provided service list is stored in the storage means 15. This provided service list is a list including port numbers corresponding to the services provided by the terminal device 1a to the terminal device 3, and is a list preset by the user of the terminal device 1a. is there.
電源操作監視手段 1 1は、利用者による端末装置 1 aの電源操作を監視し、電源 O Nの操作を検出すると電源 O Nを登録要求送信手段 1 2に通知し、電源 0 F Fの 操作を検出すると電源 O F Fを削除要求送信手段 1 3に通知する。 登録要求送信手段 1 2は、電源 O Nを通知されると、記憶手段 1 5の提供サービ スリストを参照し、この提供サービスリストに設定されている全てのポート番号か らなるポート番号リストと端末装置 1 aのァドレスを含む登録要求メッセージを 作成し、 この登録要求メッセージをローカルバケツトに形成し、 プライベートネッ トワーク 4を介して中継装置 2 aに送信する。 The power supply operation monitoring means 11 monitors the power supply operation of the terminal device 1 a by the user, notifies the power-on operation to the registration request transmitting means 12 when detecting the power-on operation, and detects the operation of the power supply 0 FF. The power-off is notified to the deletion request transmission means 13. When notified of the power ON, the registration request transmitting means 12 refers to the provided service list of the storage means 15 and a port number list including all the port numbers set in the provided service list and the terminal device. A registration request message including the address of 1a is created, the registration request message is formed in a local bucket, and transmitted to the relay device 2a via the private network 4.
削除要求送信手段 1 3は、電源 O F Fが通知されると、端末装置 1 aのアドレス を含む削除要求メッセージを作成し、この削除要求メッセ一ジをローカルバケツト に形成してプライベートネットワーク 4を介して中継装置 2 aに送信する。  When notified of the power OFF, the deletion request transmitting means 13 creates a deletion request message including the address of the terminal device 1a, forms this deletion request message in a local bucket, and sends it through the private network 4. To the relay device 2a.
動作確認応答手段 1 4は、プライベートネットワーク 4を介して口一力ルパケッ トにより中継装置 2 aから送信される動作確認要求メッセージを受信し、この動作 確認要求メッセージを受信すると、このメッセージに対する動作確認応答メッセー ジを作成し、この動作確認応答メッセージをローカルバケツトに形成しプライべ一 トネットワーク 4を介して中継装置 2 a宛てに送信する。  The operation confirmation response means 14 receives the operation confirmation request message transmitted from the relay device 2a by a verbal packet via the private network 4, and upon receiving the operation confirmation request message, confirms the operation for this message. A response message is created, the operation confirmation response message is formed in a local bucket, and transmitted to the relay device 2a via the private network 4.
一方、 中継装置 2 aでは、登録要求受信手段 2 9 1が、 プライべ一トネットヮー ク 4を介して端末装置 1 aから送信される登録要求メッセージをローカルバケツ トで受信し、 この登録要求メッセージを受信すると、未使用の第 1のェントリ識別 子を生成する。登録要求受信手段 2 9 1は、 ェントリ識別子フィールドの値がこの 第 1のェントリ識別子であり、ァドレスフィールドの値がこの登録要求メッセージ に含まれるアドレスであり、かつポート番号フィールドの値がこの登録要求メッセ —ジに含まれるポート番号リストであるェントリを作成して、このェントリを記憶 手段 2 7の処理端末登録テーブルに記憶する。登録要求受信手段 2 9 1は、 さらに、 動作確認要求手段 2 9 3にこのアドレスに対応する端末装置の起動を通知する。 削除要求受信手段 2 9 2は、プライべ一トネットワーク 4を介して端末装置 1 a から送信される削除要求メッセージを口一カルバケツトで受信し、この削除要求メ ッセージを受信すると、記憶手段 2 7の処理端末登録テ一ブルから、 アドレスフィ —ルドの値がこの削除要求メッセ一ジに含まれるァドレスと等しい全てのェント リを削除し、動作確認要求手段 2 9 3にこのアドレスに対応する端末装置の終了を 通知する。  On the other hand, in the relay device 2a, the registration request receiving means 291 receives the registration request message transmitted from the terminal device 1a via the private network 4 in a local bucket, and receives the registration request message. Upon receipt, it generates an unused first entry identifier. The registration request receiving means 291, the value of the entry identifier field is the first entry identifier, the value of the address field is the address included in the registration request message, and the value of the port number field is the value of the registration request. An entry which is a list of port numbers included in the message is created, and this entry is stored in the processing terminal registration table of the storage means 27. The registration request receiving means 291 further notifies the operation check requesting means 293 of the activation of the terminal device corresponding to this address. The deletion request receiving means 292 receives the deletion request message transmitted from the terminal device 1a via the private network 4 in a single packet, and upon receiving the deletion request message, the storage means 27 All entries whose address field value is equal to the address included in this deletion request message are deleted from the processing terminal registration table of the processing terminal, and the terminal corresponding to this address is sent to the operation confirmation request means 2 93. Notifies the end of the device.
動作確認要求手段 2 9 3は、動作確認要求メッセージを作成し、 この動作確認要 求メッセージを、プライベートネットワーク 4を介して端末装置 1 aに口一カルパ ケットにより送信し、端末装置 1 aからのこのメッセージに応答する動作確認応答 メッセージの受信を待つ。その後、 この動作確認応答メッセージの受信に成功すれ ば、 動作確認要求手段 2 9 3は、端末装置 1 aが動作していることを確認する。 ま た、 その後、 この動作確認応答メッセージの受信に失敗すれば、 動作確認要求手段 2 9 3は、端末装置 1 aが動作を停止しているとみなし、記憶手段 2 7の処理端末 登録テーブルから、アドレスフィールドの値が端末装置 1 aのアドレスと等しい全 てのエントリを削除する。 The operation check request means 293 creates an operation check request message, and sends the operation check request message to the terminal device 1a via the private network 4. It waits for reception of an operation confirmation response message transmitted from the terminal device 1a in response to this message. After that, if the operation confirmation response message is successfully received, the operation confirmation requesting unit 293 confirms that the terminal device 1a is operating. Further, if the operation confirmation request message fails to be received thereafter, the operation confirmation requesting means 293 considers that the terminal device 1a has stopped operating, and determines from the processing terminal registration table of the storage means 27. , Delete all entries whose address field value is equal to the address of the terminal device 1a.
動作確認要求手段 2 9 3は、上記動作確認応答メッセージの受信失敗を判断する 方法として、対応する動作確認要求メッセージ送信直後にタイマを起動し、 このタ ィマの満了をもってこの動作確認応答メッセージの受信失敗とする方法などを用 いることができる。 また、 動作確認要求手段 2 9 3は、 上記端末装置 1 aに対する 動作確認要求メッセージの作成および送信を、端末装置 1 aの起動が通知されてか ら端末装置 1 aの終了が通知されるまで、 または、端末装置 1 aから発せられる動 作確認応答メッセージの受信に失敗するまで繰り返す。  The operation check requesting means 293 starts the timer immediately after transmitting the corresponding operation check request message, and, when the timer expires, as a method of judging the reception failure of the operation check response message. For example, a method of receiving failure can be used. Further, the operation check requesting means 2 93 creates and sends the operation check request message to the terminal device 1a from the start of the terminal device 1a to the end of the terminal device 1a. Or, repeat until reception of the operation confirmation response message issued from the terminal device 1a fails.
次に、第 1 3図および第 1 4図に第 1 2図を併せ参照して本発明による第 2の実 施の形態における動作について説明する。  Next, the operation of the second embodiment according to the present invention will be described with reference to FIGS. 13 and 14 and FIG. 12.
端末装置 1 aの利用者が停止している端末装置 1 aの電源を O N (ステップ S 1 1 ) にすると、 電源操作監視手段 1 1が、 この電源を O Nにする操作を検出し、 電 源 O Nを登録要求送信手段 1 2に通知する。  When the user of the terminal device 1a turns on the power of the terminal device 1a that has been stopped (step S11), the power operation monitoring means 11 detects the operation of turning on the power, and Notify the registration request transmitting means 12 of ON.
登録要求送信手段 1 2は、記憶手段 1 5の提供サ一ビスリストを参照し、 この提 供サービスリストに設定されている全てのポート番号からなるポート番号リスト と端末装置 1 aのアドレスとを含む登録要求メッセージを、ローカルバケツトに作 成し、プライべ一トネットワーク 4を介して中継装置 2 aに送信(ステップ S 1 2 ) する。  The registration request transmitting means 12 refers to the service list provided in the storage means 15 and compares the port number list including all the port numbers set in the provided service list with the address of the terminal device 1a. A registration request message including the registration request message is created in the local bucket, and transmitted to the relay device 2a via the private network 4 (step S12).
中継装置 2 aに送信された登録要求メッセージは登録要求受信手段 2 9 1によ つて受信される。登録要求受信手段 2 9 1は、未使用の第 1のェントリ識別子を生 成し、またこの登録要求メッセージに含まれるポ一ト番号リストとアドレスから、 エントリ識別子フィールドの値がこの第 1のエントリ識別子であり、アドレスフィ 一ルドの値がこのァドレスであり、かつポ一ト番号フィールドの値がこのポート番 号リストであるエントリを作成して、このエントリを記憶手段 2 7の処理端末登録 テ一プルに記憶する。 さらに登録要求受信手段 2 9 1は、動作確認要求手段 2 9 3 に端末装置 1 aの起動を通知する。 The registration request message transmitted to the relay device 2a is received by the registration request receiving means 291. The registration request receiving means 2911 generates an unused first entry identifier, and, based on the port number list and the address included in the registration request message, sets the value of the entry identifier field to the first entry identifier. An entry whose identifier is the address, the value of the address field is this address, and the value of the port number field is this port number list, and this entry is registered in the processing terminal of the storage means 27. Store it in a table. Further, the registration request receiving means 291 notifies the operation check requesting means 293 of the activation of the terminal device 1a.
この時点で中継装置 2 aは、端末装置 3から端末装置 1 aの上記登録されたポー ト番号宛てのデータ通信を受付け開始し、 中継することが可能になる。  At this point, the relay device 2a starts accepting data communication from the terminal device 3 addressed to the registered port number of the terminal device 1a, and becomes capable of relaying.
動作確認要求手段 2 9 3は、上記端末装置 1 aの起動を通知されると、端末装置 1 aへの確認動作を開始 (ステップ S 1 3 ) する。 すなわち、 動作確認要求手段 2 9 3は、 動作確認要求メッセージを、 ロー力ルパケットに作成し、 プライべ一トネ ットワーク 4を介して端末装置 1 aに送信 (ステップ S 1 4 ) する。  When notified of the activation of the terminal device 1a, the operation confirmation requesting means 293 starts a confirmation operation for the terminal device 1a (step S13). That is, the operation check requesting means 293 creates an operation check request message in a low-level packet, and transmits it to the terminal device 1a via the private network 4 (step S14).
上記動作確認要求メッセージは端末装置 1 aの動作確認応答手段 1 4によって 受信され、動作確認応答手段 1 4は、 この動作確認要求メッセージの応答となる動 作確認応答メッセージを、 ロー力ルパケッ トに作成し、 プライベートネットワーク 4を介して中継装置 2 aに送信 (ステップ S 1 5 ) する。  The operation confirmation request message is received by the operation confirmation response unit 14 of the terminal device 1a, and the operation confirmation response unit 14 converts the operation confirmation response message, which is a response to the operation confirmation request message, into a low-power packet. It is created and transmitted to the relay device 2a via the private network 4 (step S15).
上記動作確認応答メッセージは動作確認要求手段 2 9 3によって受信される。動 作確認要求手段 2 9 3はこの動作確認応答メッセージの受信をもって端末装置 1 aが動作していることを確認 (ステップ S 1 6 ) する。  The operation confirmation response message is received by the operation confirmation requesting means 2 93. The operation confirmation requesting means 293 confirms that the terminal device 1a is operating by receiving the operation confirmation response message (step S16).
以降、動作確認要求手段 2 9 3は、上記ステップ S 1 4〜S 1 6を周期的に実行 することにより、 端末装置 1 aが動作していることを確認し続ける。  Thereafter, the operation check requesting unit 293 continues to check that the terminal device 1a is operating by periodically executing the above steps S14 to S16.
その後、端末装置 1 aの利用者が端末装置 1 aの電源を O F Fに (ステップ S 1 7 ) すると、 電源操作監視手段 1 1が、 この電源を O F Fにする操作を検出し、 電 源〇 F Fを削除要求送信手段 1 3に通知する。  Thereafter, when the user of the terminal device 1a turns off the power of the terminal device 1a (step S17), the power operation monitoring means 11 detects the operation of turning off the power, and the power supply 〇 FF To the deletion request transmission means 13.
削除要求送信手段 1 3は、端末装置 1 aのアドレスを含む削除要求メッセージを 作成し、 この削除要求メッセージを、 プライベートネットワーク 4を介して中継装 置 2 aに送信 (ステップ S 1 8 ) する。  The deletion request transmitting means 13 creates a deletion request message including the address of the terminal device 1a, and transmits the deletion request message to the relay device 2a via the private network 4 (step S18).
中継装置 2 aに送信された前記削除要求メッセージは削除要求受信手段 2 9 2 によって受信され、削除要求受信手段 2 9 2は、記憶装置 2 7の処理端末登録テー ブルから、 7ドレスフィールドの値がこの削除要求メッセージに含まれるァドレス と等しい全てのェントリを削除し、動作確認要求手段 2 9 3に端末装置 1 aの終了 を通知する。  The deletion request message transmitted to the relay device 2a is received by the deletion request receiving means 292, and the deletion request receiving means 2922 reads the value of the 7 address field from the processing terminal registration table of the storage device 27. Deletes all the entries equal to the address included in the deletion request message, and notifies the operation confirmation requesting means 293 of the termination of the terminal device 1a.
動作確認要求手段 2 9 3は、端末装置 1 aの終了が通知されると、それまで周期 的に行っていた端末装置 1 aへの動作確認要求メッセージの送信を停止し、端末装 置 1 aへの確認動作を終了 (ステップ S 1 9 ) する。 When notified of the termination of the terminal device 1a, the operation confirmation request means 293 stops transmitting the operation confirmation request message to the terminal device 1a, which has been performed periodically, and the terminal device The checking operation for the device 1a is completed (step S19).
また、 動作確認要求手段 2 9 3は、端末装置 1 aへの確認動作の実行中、 常に動 作確認要求メッセージ送信直後にこの動作確認要求メッセージの応答となる動作 確認応答メッセージの受信を待っためのタイマを起動するが、これは端末装置 1 a の制御システムの動作不良又は異常停止により端末装置 1 aの正常な動作が停止 した場合に中継装置 2 aが端末装置 1 aの動作停止を検出するために用いられる。 すなわち、 第 1 4図に示されるように、端末装置 1 aの正常な動作が停止 (ステ ップ S 3 1 )したとき以降に行なわれる動作確認要求手段 2 9 3による確認動作に おいて、 動作確認要求手段 2 9 3は、動作確認要求メッセージを送信 (ステップ S 3 2 ) し、 タイマを起動 (ステップ S 3 3 ) する。 しかし、 動作確認要求手段 2 9 3は、この動作確認要求メッセージの応答となる動作確認応答メッセ一ジを受信し ないままこのタイマが満了 (ステップ S 3 4 ) する場合がある。 この状態で、 動作 確認要求手段 2 9 3は、端末装置 1 aの動作が停止したことを検出 (ステップ S 3 5 ) し、 記憶手段 2 7の処理端末登録テーブルから、 アドレスフィールドの値が端 末装置 1 aのァドレスと等しい全てのェントリを削除し、端末装置 1 aへの確認動 作を終了 (ステップ S 3 6 ) する。  In addition, the operation confirmation request means 293 waits for the reception of the operation confirmation response message which is a response to the operation confirmation request message immediately after the operation confirmation request message is transmitted during the execution of the confirmation operation to the terminal device 1a. When the normal operation of the terminal device 1a stops due to the malfunction or abnormal stop of the control system of the terminal device 1a, the relay device 2a detects the stop of the operation of the terminal device 1a. Used to That is, as shown in FIG. 14, in the confirmation operation by the operation confirmation request means 2 93 performed after the normal operation of the terminal device 1 a is stopped (step S 31), The operation confirmation request means 293 transmits an operation confirmation request message (step S32) and starts a timer (step S33). However, the operation confirmation requesting means 293 may expire (step S34) without receiving the operation confirmation response message which is a response to the operation confirmation request message. In this state, the operation confirmation requesting means 293 detects that the operation of the terminal device 1a has stopped (step S35), and the value of the address field is determined from the processing terminal registration table of the storage means 27. All entries equal to the address of the terminal device 1a are deleted, and the confirmation operation to the terminal device 1a ends (step S36).
中継装置 2 aは、グロ一バルネットワーク 5からデータ用 I Pバケツトを受信し た際には、 上述した第 1の実施の形態と同様に動作する。  When receiving the data IP bucket from the global network 5, the relay device 2a operates in the same manner as in the first embodiment described above.
上述したとおり、本第 2の実施の形態においては、端末装置 1 aに設定した提供 サービスリストを端末装置 1 aの起動時に中継装置 2 aに登録し、端末装置 1 aの 終了時に中継装置 2 aから削除するため、端末装置 1 aの設定に依存した情報を自 動的に中継装置 2 aに登録することができ、 かつ、端末装置 1 aの動作時にはグロ —バルネッ トワーク 5からのデータ用 I Pバケツトを端末装置 1 aに中継するが、 端末装置 1 aが非動作時にはグローバルネッ トワーク 5からのデ一夕用 I Pパケ ットを端末装置 1 aに中継しないことが可能になる。  As described above, in the second embodiment, the provided service list set in the terminal device 1a is registered in the relay device 2a when the terminal device 1a is started, and the relay device 2a is registered when the terminal device 1a ends. Since it is deleted from a, the information depending on the setting of the terminal device 1a can be automatically registered in the relay device 2a, and when the terminal device 1a operates, the data for the data from the global network 5 is used. Although the IP packet is relayed to the terminal device 1a, it becomes possible not to relay the overnight IP packet from the global network 5 to the terminal device 1a when the terminal device 1a is not operating.
本第 2の実施の形態では、端末装置 1 aの電源 O Nの際に記憶手段 1 5に記憶さ れている提供サービスリストを構成するポ一ト番号集合を中継装置 2 aに通知し、 このポート番号集合の各ポート番号を記憶手段 2 7 aの処理端末登録テーブルに 記憶させたが、 これは、 端末装置 1 aが動作時、利用者が記憶手段 1 5に記憶され ている提供サービスリス卜の内容を変更し、その際に変更された提供サービスリス トを構成するポート番号集合を中継装置 2 aに通知し、関係するェントリ、すなわ ち、記憶手段 2 7 aの処理端末登録テーブルに記億されているァドレスフィールド の値が端末装置 1 aのアドレスであるエントリ、 を全て削除し、 このポート番号集 合の各ポート番号を記憶手段 2 7 aの処理端末登録テーブルに記憶するようにし てもよい。 In the second embodiment, when the terminal device 1a is turned on, the relay device 2a is notified of a set of port numbers constituting the provided service list stored in the storage unit 15, and Each port number of the set of port numbers is stored in the processing terminal registration table of the storage means 27a. This is because when the terminal device 1a operates, the user provides the service list stored in the storage means 15. The contents of the service, and the service list changed at that time The relay device 2a is notified of the set of port numbers that make up the port number, and the value of the address field stored in the processing terminal registration table of the storage unit 27a, ie, the storage unit 27a, is changed to the value of the terminal device 1a. It is also possible to delete all the entries which are addresses, and to store each port number of this port number set in the processing terminal registration table of the storage means 27a.
また、本第 2の実施の形態では、 プライべ一トネットワーク 4およびグローバル ネッ トワーク 5それぞれに接続される端末装置 1 aまたは端末装置 3がーつの場 合として説明したが、プライベートネットワーク 4およびグローバルネットワーク 5それぞれに接続される端末装置 1 aまたは端末装置 3が複数の場合においても 同様に実施することができる。  Further, in the second embodiment, the terminal device 1a or the terminal device 3 connected to the private network 4 and the global network 5 has been described as a single case. The same can be applied to a case where a plurality of terminal devices 1a or terminal devices 3 are connected to each network 5.
また、 この第 2の実施の形態では、 グローバルネットワークと異なるネットヮ一 ク (非グロ一バルネットワークであるプライべ一トネッ トワーク 4 ) に接続された 端末装置 (端末装置 1 a ) とグローバルネッ トワークに接続された端末装置 (端末 装置 3 ) との間での通信について説明した。 しかし更に、 複数の非グローバルネッ トワークそれぞれが上述した中継装置を介してァドレス体系の異なるネットヮ一 クに接続された通信システムにおいても任意の非グロ一パルネッ トワークに接続 された任意の端末装置間の通信も同様に実現される。  In the second embodiment, the global network is connected to a terminal device (terminal device 1a) connected to a network different from the global network (private network 4 which is a non-global network). The communication with the connected terminal device (terminal device 3) has been described. However, even in a communication system in which a plurality of non-global networks are connected to networks having different address systems via the above-described relay device, the communication between any terminal devices connected to any non-global network is also possible. Communication is similarly realized.
すなわち、第 1 1図に示される通信システムにおいて、任意の端末装置 1 3 1〜 1 3 n間での通信が可能である。 これは、第 iの非グロ一バルネットワーク 1 2 i (ただし 「i」 は 「1、 2、 ···、 n」 のいずれか) に接続された端末装置 (端末装 置 Aとする) から第 jの非グロ一バルネットワーク 1 2 j (ただし 「j」 は 「1、 2、 ·'·、 n」のいずれかであり、 かつ 「j≠ i」である) に接続された端末装置(端 末装置 Bとする) に対して通信セッションを開始するバケツトを送信する場合、第 iの中継装置 1 1 iが第 jの中継装置 1 1 j とその端末装置 Bとに対する動作が、 この第 1の実施の形態における端末装置 3に対する動作と等しくなるためである。 ただし、中継ネットワーク 1 1 0が非グロ一バルネットワークの場合、中継ネット ワーク 1 1 0のアドレス体系は第 iの非グロ一バルネッ トワーク 1 2 i のァドレ ス体系と第 j の非グロ一バルネッ トワーク 1 2 j のアドレス体系とのいずれとも 異ならなければならない。  That is, in the communication system shown in FIG. 11, communication between any of the terminal devices 13 1 to 13 n is possible. This is because the terminal device (terminal device A) connected to the ith non-global network 1 2 i (where “i” is one of “1, 2,..., N”) A terminal device connected to the j-th non-global network 1 2 j (where “j” is any of “1, 2, ···· n” and “j ≠ i”) ( When transmitting a bucket for starting a communication session to the terminal device B), the operation of the i-th relay device 11 i with respect to the j-th relay device 11 j and its terminal device B This is because the operation becomes the same as the operation for the terminal device 3 in the first embodiment. However, if the transit network 110 is a non-global network, the address system of the transit network 110 is the i-th non-global network 12 i address system and the j-th non-global network It must be different from any of the 12 j addressing schemes.
また、本第 2の実施の形態では、端末装置 3がデータ通信を開始する際に名前を 知っている相手側の端末装置として端末装置 1 aの場合について説明したが、この とき端末装置 3は中継装置 2 aの名前のみを知っていて、中継装置 2 aの名前を指 定してアドレス解決を行ってもよい。 In the second embodiment, when the terminal device 3 starts data communication, the terminal device 3 The terminal device 1a was described as the terminal device of the other party.In this case, the terminal device 3 knows only the name of the relay device 2a, and specifies the address of the relay device 2a to address. A solution may be made.
次に、第 1 5図、第 1 6図、 および第 1 7図を参照して、本発明における第 3の 実施の形態について説明する。  Next, a third embodiment of the present invention will be described with reference to FIG. 15, FIG. 16, and FIG.
第 1 5図を参照すると、 本発明による第 3の実施の形態は、端末装置 1 bが、第 1 2図に示された第 2の実施の形態における端末装置 1 aの構成に、能力情報送信 手段 1 6をさらに加えて有し、中継装置 2 bが、第 1 2図に示された第 2の実施の 形態における中継装置 2 aの構成に、能力情報受信手段 2 9 4を更に加えて有して いる。  Referring to FIG. 15, in a third embodiment of the present invention, the terminal device 1b is configured by adding the capability information to the configuration of the terminal device 1a in the second embodiment shown in FIG. The relay device 2b further includes transmission means 16 and the relay device 2b further includes a capability information receiving device 2994 in addition to the configuration of the relay device 2a in the second embodiment shown in FIG. It has.
また、第 1 5図には端末装置 3が示されていないが、 グローバルネットワーク 5 には第 5図で示されたと同様、端末装置 3が接続されているものとして説明する。 また、第 1 6図を参照すると、 アドレス変換手段 2 6 bの構成が、第 7図に示す 第 1の実施の形態におけるアドレス変換装置 2 6の構成に加え、宛先選択手段 2 6 5を有する点で異なる。  Further, although the terminal device 3 is not shown in FIG. 15, it is assumed that the terminal device 3 is connected to the global network 5 as shown in FIG. Referring to FIG. 16, the configuration of the address translation unit 26 b includes a destination selection unit 2 65 in addition to the configuration of the address translation device 26 in the first embodiment shown in FIG. Different in that.
また、第 1 7図に示す通り、中継装置 2 bの記憶手段 2 7 bに記憶される処理端 末登録テーブル 2 7 1 bのェントリには、処理能力情報フィ一ルドが追加される。 同様に、端末装置 1 bの記憶手段 1 5 bには端末装置 1 bの処理能力情報が格納 され、記憶手段 1 5 bに記憶されている端末装置 1 bの処理能力情報は、端末装置 1 bの処理能力に関する情報であり、 この情報には、例えば、 C P Uの処理能力お よびテキスト、音声、画像等の各種メディアの処理 ·表示能力に関するものが含ま れる。  Further, as shown in FIG. 17, a processing capability information field is added to the entry of the processing terminal registration table 27 1 b stored in the storage means 27 b of the relay device 2 b. Similarly, the storage device 15b of the terminal device 1b stores the processing capability information of the terminal device 1b, and the processing capability information of the terminal device 1b stored in the storage device 15b stores the processing capability information of the terminal device 1b. This is information relating to the processing capability of b. This information includes, for example, information relating to the processing capability of the CPU and the processing / display capability of various media such as text, audio, and images.
記憶手段 2 7 bに記憶される処理端末登録テーブル 2 7 1 bは、そのェントリを 構成するフィールドの構成が、上述した第 1の実施の形態、および第 2の実施の形 態におけるフィールドの構成に加え、端末装置 1 bの処理能力情報を格納する処理 能力情報フィールドを有し、端末装置 1 bのアドレスと端末装置 1 bが提供するサ —ビスに対応するポート番号、端末装置 1 bの処理能力情報の対応を管理する点が 異なっている。  The processing terminal registration table 27 1 b stored in the storage means 27 b has the configuration of the fields constituting the entry according to the first embodiment and the second embodiment. In addition, a processing capability information field for storing the processing capability information of the terminal device 1b is provided. The address of the terminal device 1b, the port number corresponding to the service provided by the terminal device 1b, and the The difference is that the management of processing capacity information is managed.
能力情報送信手段 1 6は、電源操作監視手段 1 1から電源 O Nを通知されると、 記憶手段 1 5 bに記憶されている端末装置 1 bの処理能力情報を読み出し、この処 理能力情報と端末装置 1 bのアドレスを含む能力通知メッセージを作成し、この能 力通知メッセージを中継装置 2 bに送信する。 When notified of the power ON from the power operation monitoring means 11, the capacity information transmitting means 16 reads the processing capacity information of the terminal device 1b stored in the storage means 15b, and performs this processing. A capability notification message including the capability information and the address of the terminal device 1b is created, and the capability notification message is transmitted to the relay device 2b.
中継装置 2 bの能力情報受信手段 2 9 4は、端末装置 1 bから送信される能力通 知メッセージを受信し、記憶手段 2 7 bの処理端末登録テーブル 2 7 1 bからァド レスフィールドの値がこの能力通知メッセージに含まれる端末装置 1 bと等しい エントリを検索し、このェントリの処理能力情報フィ一ルドにこの能力通知メッセ —ジに含まれる処理能力情報の対応を記憶する。  The capability information receiving unit 294 of the relay device 2b receives the capability notification message transmitted from the terminal device 1b, and receives the address field from the processing terminal registration table 271b of the storage unit 27b. An entry whose value is equal to the terminal device 1b included in the capability notification message is searched, and the correspondence of the processing capability information included in the capability notification message is stored in the processing capability information field of this entry.
ァドレス変換手段 2 6 bの宛先選択手段 2 6 5は、登録検索手段 2 6 3から一つ か、または複数の第 1のェントリ識別子と一つの I Pバケツ卜とを通知されると、 記憶手段 2 7 bの処理端末登録テーブル 2 7 1 bからこの通知された一つ、または 複数の第 1のェントリ識別子で識別されるェントリを読み出す。宛先選択手段 2 6 5は、更にこの読み出したエントリから各端末装置の処理能力情報を読み出し、 こ の読み出した処理能力情報を比較して、最適な端末装置を一つ選ぶ。宛先選択手段 2 6 5は、この選ばれたァドレスとポート番号の組とこの I Pバケツ卜とを登録手 段 2 6 4に通知する。  The destination selecting means 2 65 of the address conversion means 26 b receives the one or more first entry identifiers and one IP bucket from the registration / search means 26 3, and stores the information in the storage means 2. The entry identified by the notified one or a plurality of first entry identifiers is read from the processing terminal registration table 2 7 1b of 7b. The destination selection means 265 further reads the processing capability information of each terminal device from the read entry, compares the read processing capability information, and selects one optimal terminal device. The destination selection means 265 notifies the registration means 264 of the selected pair of the address and the port number and the IP bucket.
複数の端末装置の処理能力情報から一つの端末装置を選ぶ方法としては、最も処 理能力の高い端末装置を選択する方法などがある。  As a method of selecting one terminal device from the processing capability information of a plurality of terminal devices, there is a method of selecting a terminal device having the highest processing capability.
次に、第 1 8図に第 1 5図から第 1 7図までを併せ参照して、本発明による第 3 の実施の形態における動作について説明する。  Next, the operation of the third embodiment according to the present invention will be described with reference to FIG. 18 and FIGS. 15 to 17.
端末装置 1 bの利用者が停止している端末装置 1 bの電源を O N (ステップ S 4 1 )すると、上述した第 2の実施の形態における動作と同様に、電源操作監視手段 1 1が電源 O N情報を登録要求送信手段 1 2に通知し、登録要求送信手段 1 2が端 末装置 1 bのァドレスと端末装置 1 bが提供するサービスに対応するポート番号 のリストとを含む登録要求メッセージを中継装置 2 bにパケット送信することに より登録要求 (ステップ S 4 2 ) する。  When the user of the terminal device 1b turns on the power of the terminal device 1b which is stopped (step S41), the power operation monitoring means 11 is turned on by the power supply monitoring unit 11 in the same manner as the operation in the above-described second embodiment. The ON information is notified to the registration request transmitting means 12, and the registration request transmitting means 12 sends a registration request message including the address of the terminal device 1 b and a list of port numbers corresponding to the services provided by the terminal device 1 b. A registration request is made by transmitting a packet to the relay device 2b (step S42).
中継装置 2 bの登録要求受信手段 2 9 1は、この登録要求メッセージを受信し、 この登録要求メッセージに含まれるポート番号リストとァドレスとを含む記憶手 段 2 7 bの処理端末登録テーブル 2 7 1 bのエントリを作成する。登録要求受信手 段 2 9 1は、作成したェントリを処理端末登録テ一ブル 2 7 1 bに記憶すると共に 動作確認要求手段 2 9 3による端末装置 1 bの動作確認を開始 (ステップ S 4 3 ) して上記第 1 3図におけるステップ S 1 4からステップ S 1 6までの動作確認手 順を実行する。 The registration request receiving means 291 of the relay device 2b receives the registration request message, and stores the port number list and the address contained in the registration request message in the storage means 27b. Create entry 1b. The registration request receiving means 29 1 stores the created entry in the processing terminal registration table 27 1 b and starts the operation check of the terminal device 1 b by the operation check requesting means 29 3 (step S 4 3 ) Then, the operation check procedure from step S14 to step S16 in FIG. 13 is executed.
これと同時に、端末装置 1 bでは、電源操作監視手段 1 1が電源 O N情報を能力 情報送信手段 1 6にも通知する。能力情報送信手段 1 6は、電源 O N情報を通知さ れると、記憶手段 1 5 bに記憶されている端末装置 1 bの処理能力情報を読み出し、 この処理能力情報と端末装置 1 bのァドレスとを含む能力通知メッセージを作成 し、この能力通知メッセージを中継装置 2 bにパケット送信することにより能力情 報を通知 (ステップ S 4 4) する。  At the same time, in the terminal device 1b, the power operation monitoring means 11 also notifies the power information ON means 16 of the power ON information. When notified of the power-on information, the capability information transmitting means 16 reads the processing capability information of the terminal device 1b stored in the storage means 15b, and reads the processing capability information and the address of the terminal device 1b. Then, a capability notification message including the message is created, and the capability information is notified by transmitting a packet of the capability notification message to the relay device 2b (step S44).
中継装置 2 bに送信された上記能力通知メッセージは能力情報受信手段 2 9 4 によって受信される。能力情報受信手段 2 9 4は、記憶手段 2 7 bの処理端末登録 テーブル 2 7 1 bからァドレスフィールドの値がこの能力通知メッセ一ジに含ま れる端末装置 1 bのものと等しいェントリを検索し、このェントリの処理能力情報 フィ一ルドにこの能力通知メッセージに含まれる処理能力情報を記憶する。  The capability notification message transmitted to the relay device 2b is received by the capability information receiving unit 294. The capability information receiving means 294 searches the processing terminal registration table 271b of the storage means 27b for an entry whose address field value is equal to that of the terminal device 1b included in the capability notification message. The processing capacity information included in the capacity notification message is stored in the processing capacity information field of this entry.
これ以降、 中継装置 2 bは、 グローバルネットワーク 5からデータ用の I Pパケ ットを受信すると、 この I Pバケツトはバケツト受信手段 2 3に受信され、バケツ ト受信手段 2 3は、上述した第 1の実施の形態における動作と同様に、 この I Pパ ケットを対応検索手段 2 6 1に渡し、 対応検索手段 2 6 1も、 上述と同様に、 記憶 手段 2 7 bの対応管理テーブルから第 2のソケッ トフィールドの値と第 3のソケ ットフィールドの値がそれぞれこの I Pバケツトの送信元アドレスと送信元ポ一 ト番号との組と、宛先ァドレスと宛先ポート番号との組に等しいェントリを検索す る。  Thereafter, when the relay device 2b receives the IP packet for data from the global network 5, the IP bucket is received by the bucket receiving means 23, and the bucket receiving means 23 transmits the IP packet to the first packet. Similarly to the operation in the embodiment, this IP packet is passed to the correspondence search means 261, and the correspondence search means 2661 also receives the second socket from the correspondence management table of the storage means 27b in the same manner as described above. The search is made for an entry in which the value of the source field and the value of the third socket field are equal to the pair of the source address and the source port number and the pair of the destination address and the destination port number of this IP bucket, respectively.
対応検索手段 2 6 1は、 この検索によりこのェントリが検出された場合も、検出 されなかった場合も、上述した第 1の実施の形態における動作と同様に処理を行う。 特に、 このェントリが検出された場合の、以降の処理は上述した第 1の実施の形態 における動作と同じであるためここでは説明を省略する。  The correspondence search means 2661 performs processing in the same manner as in the above-described first embodiment, regardless of whether this entry is detected by this search or not. In particular, when this entry is detected, the subsequent processing is the same as the operation in the above-described first embodiment, and a description thereof will not be repeated.
この検索によりこのエントリが検出されなかつた場合、上述した第 1の実施の形 態における動作と同様に、登録検索手段 2 6 3は、記憶手段 2 7 bの処理端末登録 テーブル 2 7 1 bからポート番号フィ一ルドの値がこの I Fバケツ トの宛先ポー ト番号と等しいエントリを検索するが、 ここでは、 検索した結果の一つ、 または複 数のェントリが検出された場合、この検出されたェントリにおける全ての第 1のェ ントリ識別子とこの I Pパケットとを宛先選択手段 2 6 5に渡す。 If this entry is not found by this search, as in the operation in the above-described first embodiment, the registration search means 2 63 reads from the processing terminal registration table 27 1 b of the storage means 27 b. Searches for entries where the value of the port number field is equal to the destination port number of this IF bucket.In this case, if one or more of the search results is found, this detected All first The entry identifier and this IP packet are passed to the destination selection means 265.
宛先選択手段 2 6 5は、記憶手段 2 7 bの処理端末登録テーブル 2 7 1 bから渡 された第 1のェントリ識別子で識別されるェントリを読み出す。宛先選択手段 2 6 5は、更に、 この読み出したェントリから各端末装置の処理能力情報を読み出し、 この読み出した処理能力情報を比較して、 最適な端末装置を一つ選ぶ。  The destination selection means 265 reads out the entry identified by the passed first entry identifier from the processing terminal registration table 271b of the storage means 27b. The destination selection unit 2665 further reads the processing capability information of each terminal device from the read entry, compares the read processing capability information, and selects one optimal terminal device.
例えば、第 1 7図に示される処理端末登録テーブルの内容において、 この I Pパ ケッ卜の宛先ポート番号が「1 0 0 0 0」であり、通知された第 1のェントリ識別 子が 「1」 および「2」 の場合、 エントリ識別子フィールドの値 「1」 に対応する 端末装置 1一 1の C P U処理能力「1 0」は、ェントリ識別子フィールドの値「2」 に対応する端末装置 1一 2の C P U処理能力「3」 よりも優れている。 このため、 宛先選択手段 2 6 5は、端末装置 1一 1を選択し、この第 1のエントリ識別子「 1」 とこの I Pバケツトとを登録手段 2 6 4に渡す。  For example, in the contents of the processing terminal registration table shown in FIG. 17, the destination port number of this IP packet is “10000”, and the notified first entry identifier is “1”. And “2”, the CPU processing capacity “10” of the terminal device 11 corresponding to the value “1” of the entry identifier field is equal to the CPU processing capability “10” of the terminal device 12 corresponding to the value “2” of the entry identifier field. Better than CPU processing power “3”. For this reason, the destination selection means 265 selects the terminal device 111, and passes the first entry identifier "1" and this IP bucket to the registration means 264.
上記ェントリ識別子と上記 I Pバケツ卜とを登録手段 2 6 4に渡した後、端末装 置 1 bへ口一カルパケットを送信するまでの処理は、上述した第 1の実施の形態に おける動作と同じであるため、 以降の動作の説明は省略する。  After passing the above-mentioned entry identifier and the above-mentioned IP bucket to the registering means 2 64, the processing from transmitting the oral packet to the terminal device 1 b is the same as the operation in the above-described first embodiment. Since they are the same, the description of the subsequent operation is omitted.
また、記憶手段 2 7 bの処理端末登録テーブル 2 7 1 bに記憶された端末装置 1 bのェントリは、端末装置 1 bの電源 O F Fのとき、 または、何らかの理由で中継 装置 2 bが端末装置 1 bと正常に通信できなくなったとき、上述した第 2の実施の 形態における動作と同様に、削除要求受信手段 2 9 2、 または動作確認要求手段 2 9 3によって削除される。  The entry of the terminal device 1b stored in the processing terminal registration table 27 1b of the storage means 27b is stored when the power of the terminal device 1b is turned off or for some reason, when the relay device 2b is When it becomes impossible to communicate normally with 1b, it is deleted by the deletion request receiving means 292 or the operation confirmation requesting means 293, similarly to the operation in the above-described second embodiment.
上述の通り、中継装置 2 bがデータ通信を開始する I Pバケツトをグロ一バルネ ットワーク 5から受信した際、この I Pバケツ卜の宛先ポート番号と等しいポート 番号に対応するサービスを提供する端末装置が複数の中継装置 2 bに登録されて いても、宛先選択手段 2 6 5が、 この複数の端末装置の処理能力情報をもとに一つ の端末装置を選択することにより、この I Pバケツ卜で要求されるサ一ビスを提供 する端末装置のうち、 最適な端末装置を選択することができる。  As described above, when the relay device 2b receives an IP packet for starting data communication from the global network 5, a plurality of terminal devices providing services corresponding to a port number equal to the destination port number of this IP packet are received. Even if the terminal device is registered in the relay device 2b, the destination selecting means 265 selects one terminal device based on the processing capability information of the plurality of terminal devices, so that the request can be made in this IP bucket. The most suitable terminal device can be selected from the terminal devices that provide the required service.
また、端末装置 1 bの処理能力情報を端末装置 1 bの記憶手段 1 5 bに格納して おき、端末装置 1 bの電源が投入されるたびに能力情報送信手段 1 6がこの処理能 力情報を中継装置 2 bに通知し、能力情報受信手段 2 9 4がこの処理能力情報を記 憶手段 2 7 bの処理端末登録テ一ブル 2 7 1 bに登録している。 また、端末装置 1 bの電源が O F Fにされたとき、 または、何らかの理由で中継装置 2 bとの正常な 通信ができなくなった場合に削除要求受信手段 2 9 2、または動作確認要求手段 2 9 3が処理端末登録テーブルから端末装置 1 bに関するェントリを削除すること により、端末装置 1 bが非動作時、 または、 中継装置 2 bが端末装置 1 bとの通信 が不可能な場合に、グロ一パルネットワーク 5からの受信によりデータ通信を開始 する I Pバケツトを、通信不能な端末装置 1 bに中継することを避けることができ る。 Also, the processing capability information of the terminal device 1b is stored in the storage device 15b of the terminal device 1b, and the capability information transmitting device 16 is provided with the processing capability information 16 each time the power of the terminal device 1b is turned on. The information is notified to the relay device 2b, and the capability information receiving means 294 registers the processing capability information in the processing terminal registration table 271b of the storage means 27b. Also terminal device 1 When the power of b is turned off, or when normal communication with the relay device 2 b cannot be performed for some reason, the deletion request receiving means 2992 or the operation confirmation request means 2993 is registered as a processing terminal. By deleting the entry related to the terminal device 1b from the table, when the terminal device 1b is not operating, or when the relay device 2b cannot communicate with the terminal device 1b, the communication from the global network 5 is performed. It is possible to avoid relaying an IP bucket, which starts data communication upon reception of the packet to the terminal device 1b that cannot communicate.
本第 3の実施の形態でも、プライべ一トネットワーク 4およびグローバルネット ワーク 5それぞれに接続される端末装置 1 bまたは端末装置 3がーつの場合につ いて説明したが、プライベートネットワーク 4およびグロ一バルネットワーク 5そ れそれに接続される端末装置 1 bまたは端末装置 3が複数の場合においても同様 に実施することができる。  Also in the third embodiment, the case where only one terminal device 1b or three terminal devices 3 are connected to the private network 4 and the global network 5, respectively, has been described. The same can be applied to a case where there are a plurality of terminal devices 1b or terminal devices 3 connected to the global network 5 and the same.
また、 この第 3の実施の形態では、 グロ一バルネットワークと異なるネットヮー ク (非グローバルネットワークであるプライべ一トネットワーク 4) に接続された 端末装置 (端末装置 1 b) とグロ一バルネッ トワークに接続された端末装置 (端末 装置 3 ) との間での通信について説明した。 しかし更に、複数の非グロ一バルネッ トワークそれぞれが上述した中継装置を介してアドレス体系の異なるネットヮ一 クに接続された通信システムにおいても任意の非グロ一パルネッ トワークに接続 された任意の端末装置間の通信も同様に実現される。  In the third embodiment, a global network is connected to a terminal device (terminal device 1 b) connected to a network different from the global network (private network 4, which is a non-global network). The communication with the connected terminal device (terminal device 3) has been described. However, even in a communication system in which each of the plurality of non-global networks is connected to a network having a different address system via the above-described relay device, any terminal device connected to any non-global network can be used. Is also realized in the same manner.
すなわち、第 1 1図に示される通信システムにおいて、任意の端末装置 1 3 1〜 1 3 n間での通信が可能である。 これは、第 iの非グローバルネットワーク 1 2 i (ただし 「i」 は 「1、 2、 ···、 n」 のいずれか) に接続された端末装置 (端末装 置 Aとする) から第 jの非グローバルネットワーク 1 2 j (ただし 「j」 は 「1、 2、 ··■、 n」 のいずれかであり、 かつ「j≠ i」である) に接続された端末装置(端 末装置 Bとする) に対して通信セッションを開始するバケツトを送信する場合、第 iの中継装置 1 1 iが第 jの中継装置 1 1 j とその端末装置 Bとに対する動作が、 この第 1の実施の形態における端末装置 3に対する動作と等しくなるためである。 ただし、 中継ネッ トワーク 1 1 0が非グロ一バルネットワークの場合、中継ネッ ト ワーク 1 1 0のァドレス体系は第 iの非グローバルネッ トワーク 1 2 iのァドレ ス体系と第 jの非グロ一バルネッ トワーク 1 2 jのァドレス体系とのいずれとも 異ならなければならない。 That is, in the communication system shown in FIG. 11, communication between any of the terminal devices 13 1 to 13 n is possible. This is because the terminal device (terminal device A) connected to the i-th non-global network 1 2 i (where “i” is one of “1, 2,. Terminal device (terminal device B) connected to the non-global network 1 2 j (where “j” is one of “1, 2,..., N” and “j ≠ i”) ), A packet for starting a communication session is transmitted to the i-th relay device 11 i and the operation of the terminal device B with respect to the j-th relay device 11 j. This is because the operation is the same as that for the terminal device 3 in the embodiment. However, when the transit network 110 is a non-global network, the address system of the transit network 110 is the i-th non-global network 12 i and the j-th non-global network. Network 1 2 j Must be different.
また、本第 3の実施の形態では、端末装置 3がデータ通信を開始する際に名前を 知っている相手側の端末装置として端末装置 1 bの場合について説明したが、この とき端末装置 3は中継装置 2 bの名前のみを知っていて、中継装置 2 bの名前を指 定してアドレス解決を行ってもよい。  Further, in the third embodiment, a case has been described where the terminal device 3 is the terminal device 1 b as the partner terminal device that knows the name when starting the data communication, but at this time, the terminal device 3 The address resolution may be performed by knowing only the name of the relay device 2b and specifying the name of the relay device 2b.
次に、第 1 9図から第 2 2図までを参照して、本発明における第 4の実施の形態 について説明する。  Next, a fourth embodiment of the present invention will be described with reference to FIGS. 19 to 22.
上述した第 1の実施の形態ではプライベートネッ トワーク 4におけるポート番 号体系とグロ一パルネットワーク 5におけるポート番号体系が等しい場合を想定 していた。 これに対してこの第 4の実施の形態では、 中継装置 2 cの記億手段 2 7 cにプライべ一トネットワーク 4のポ一ト番号を格納する第 1のポート番号フィ —ルドと、グロ一バルネットワーク 5のポート番号を格納する第 2のポート番号フ ィ一ルドとからなるェントリを持つポ一トテーブル 2 7 3 cを備え、このポ一トテ 一ブル 2 7 3 cで同じサービスに対応するプライベートネットワーク 4のポ一ト 番号とグロ一バルネットワーク 5のポート番号との対応を管理し、中継装置 2。の 各手段がプライベートネッ トワーク 4側のポ一ト番号として第 1のポート番号フ ィ一ルドを参照し、かつグロ一バルネットワーク 5側のポート番号として第 2のポ —ト番号フィールドを参照することを特徴としている。 これにより、プライべ一ト ネットワーク 4とグロ一バルネッ トワーク 5とのポ一ト番号体系が異なる場合に おいても端末装置 1一 Xと端末装置 3の通信が可能になる。  In the first embodiment described above, it is assumed that the port number system in the private network 4 and the port number system in the global network 5 are the same. On the other hand, in the fourth embodiment, the first port number field for storing the port number of the private network 4 in the storage means 27 c of the relay device 2 c and the global A port table 273c having an entry consisting of a second port number field for storing the port number of the global network 5 is provided, and the same service is provided by this port table 273c. The relay device 2 manages the correspondence between the corresponding port numbers of the private network 4 and the port numbers of the global network 5. Means refer to the first port number field as the port number on the private network 4 side, and refer to the second port number field as the port number on the global network 5 side. It is characterized by: As a result, even when the private network 4 and the global network 5 have different port numbering systems, communication between the terminal device 11X and the terminal device 3 becomes possible.
この第 4の実施の形態における構成は、上述した第 1の実施の形態と同様であり、 その相違点は、記憶手段 2 7 cがポートテ一ブル 2 7 3 cを備え、 このテーブルを 用いるために、ァドレス変換手段 2 5 cとアドレス変換手段 2 6 cとの内部構成そ れそれの機能が異なっている。  The configuration of the fourth embodiment is the same as that of the first embodiment described above. The difference is that the storage means 27 c has a port table 273 c and uses this table. In addition, the address conversion means 25c and the address conversion means 26c have different internal structures and different functions.
まず、記憶手段 2 7 cが備えるテーブルである処理端末登録テーブル 2 7 1 cと 対応管理テーブル 2 7 2 cとポートテーブル 2 7 3 cとの構成を第 2 2図に示し て説明する。  First, the configuration of the processing terminal registration table 271c, the correspondence management table 272c, and the port table 273c, which are tables provided in the storage means 27c, will be described with reference to FIG.
第 2 2図に示すとおり、処理端末登録テーブル 2 7 1 cと対応管理テーブル 2 7 2 cとは、その構成、並びに用途および使用方法において上記第 1の実施の形態に おける処理端末登録テーブル 2 7 1と対応管理テーブル 2 7 2とに等しい。ただし、 処理端末登録テーブル 2 7 1 cのポート番号フィールドにはプライベートネッ ト ワーク 4におけるポート番号が格納される。 また、対応管理テーブル 2 7 2 cの第 1のソケッ トフィールドに示されるポート番号にはプライべ一トネットワーク 4 におけるポート番号が格納される。更に、その第 2のソケットフィールドに示され るポート番号と第 3のソケットフィ一ルドに示されるポ一ト番号とにはグローパ ルネッ トワーク 5のポート番号が格納される。 As shown in FIG. 22, the processing terminal registration table 2 71 c and the correspondence management table 2 72 2 c are different from each other in the configuration, use, and method of use in the processing terminal registration table 2 71 in the first embodiment. It is equal to 7 1 and the correspondence management table 2 7 2. However, The port number in the private network 4 is stored in the port number field of the processing terminal registration table 27 1 c. Also, the port number in the private network 4 is stored in the port number indicated in the first socket field of the correspondence management table 272c. Further, the port number of the global network 5 is stored in the port number shown in the second socket field and the port number shown in the third socket field.
この第 4の実施の形態で追加されるポートテ一ブル 2 7 3 cは、プライべ一トネ ットワーク 4のポ一ト番号を格納する第 1のポート番号フィールドと、グローバル ネットワーク 5のポート番号フィールドを格納する第 2のポ一ト番号フィールド とからなるェントリを持ち、同じサービスに対応するプライベートネットワーク 4 のポート番号とグロ一パルネットワーク 5のポート番号との対応があらかじめ記 憶されている。例えば、 F T Pサービスに対応するポート番号が、 プライべ一トネ ットワーク 4では値 「1 0」 であり、 グロ一バルネットワーク 5では値 「2 0」 で あるとすると第 2 2図に示されるようにこれらの対応が記憶される。  The port table 2 73 c added in the fourth embodiment includes a first port number field for storing a port number of the private network 4 and a port number field of the global network 5. It has an entry consisting of a second port number field to be stored, and the correspondence between the port number of the private network 4 and the port number of the global network 5 corresponding to the same service is stored in advance. For example, assuming that the port number corresponding to the FTP service has a value of “10” in the private network 4 and a value of “20” in the global network 5, as shown in FIG. These correspondences are stored.
第 2 0図に、本第 4の実施の形態におけるアドレス変換手段 2 5 cの構成を示す。 図示されるように、 ァドレス変換手段 2 5 cは、対応検索手段 2 5 1 c、 バケツ ト変換手段 2 5 2 c、および登録手段 2 5 3 cから構成される。上記第 1の実施の 形態におけるアドレス変換手段 2 5を構成する要素と同一名称でありそれぞれの 番号符号に 「c」符号が付加されている。 また、 構成要素の接続も上記第 1の実施 の形態と同一である。  FIG. 20 shows the configuration of the address conversion means 25c in the fourth embodiment. As shown in the figure, the address conversion means 25c includes a correspondence search means 251c, a bucket conversion means 252c, and a registration means 2553c. Elements having the same names as those constituting the address conversion means 25 in the first embodiment described above, and “c” codes are added to the respective number codes. The connection of the components is the same as in the first embodiment.
対応検索手段 2 5 1 cはバケツト受信手段 2 1からアドレス変換手段 2 5 cに 渡される口一カルバケツトを受取る。対応検索手段 2 5 1 cは、バケツト受信手段 2 1からローカルバケツトを渡されると、 まず、記憶手段 2 7 cのポートテーブル 2 7 3 cから、第 1のポート番号フィールドの値がこのローカルバケツトの宛先ポ 一ト番号の値と等しいェントリを検索する。  The correspondence search means 25 1 c receives the personal bucket passed from the bucket receiving means 21 to the address conversion means 25 c. When the local bucket is passed from the bucket receiving means 21 to the corresponding search means 25 1 c, first, the value of the first port number field is read from the port table 27 3 c of the storage means 27 c. Search for an entry equal to the value of the bucket destination port number.
この検索によりこのェントリが検出されなかった場合、対応検索手段 2 5 1 cは、 このローカルパケットを廃棄し、 処理を終了する。  If this entry is not detected by this search, the correspondence search means 25 1 c discards this local packet and ends the processing.
この検索によりこのェントリが検出された場合、対応検索手段 2 5 1 cは、記憶 手段 2 7 cの対応管理テーブル 2 7 3 cから、第 1のソケットフィールドの値がこ の口一カルバケツ トの送信元ァドレスおよび送信元ポ一ト番号の組と等しく、かつ、 第 2のソケッ トフィールドの値がこの口一力ルパケッ トの宛先ァドレスと上記ポ ―トテーブル 2 7 3 cの検索において検出されたポートテーブル 2 7 3 cにおけ るェントリにおける第 2のポート番号フィ一ルドとの値の組と等しい値を持つェ ントリを検索する。 When this entry is detected by this search, the correspondence search means 25 1 c reads the value of the first socket field from the correspondence management table 2 73 c of the storage means 27 c, and Equal to the set of source address and source port number, and The value of the second socket field is the destination address of this packet and the second port number in the entry in the port table 27.3c detected in the search of the port table 27.3c. Search for an entry with a value equal to the value pair with the field.
この検索により対応管理テーブル 2 7 2 cからこのェントリが検出された場合、 対応検索手段 2 5 1 cは、この口一カルバケツトとこのェントリのェントリ識別子 フィ一ルドに格納されている第 2のェントリ識別子とをバケツト変換手段 2 5 2 cに渡す。 この検索によりこのェントリが検出されなかった場合、対応検索手段 2 5 1 cは、 このパケットを登録手段 2 5 3 cに渡す。  If this entry is found from the correspondence management table 27 2 c by this search, the correspondence search means 25 1 c uses this portal and the second entry stored in the entry identifier field of this entry. The ID and the identifier are passed to the bucket conversion means 25 2 c. If this entry is not detected by this search, the correspondence search means 25 1 c passes this packet to the registration means 25 3 c.
パケット変換手段 2 5 2 cは、口一力ルパケットと第 2のエントリ識別子とを渡 されると、 このローカルバケツトを I Pパケットに変換し、 この I Pパケッ卜の送 信元ァドレスと送信元ポート番号とをそれぞれこの第 2のェントリ識別子から識 別される対応管理テーブル 2 7 2。のェントリにある第 3のソケッ トフィールド に示される I Pァドレスとポート番号との値に書き換える。バケツト変換手段 2 5 2 cは、 さらに、 この I Pバケツ卜の宛先アドレスと宛先ポート番号とをこのェン トリの第 2のソケットフィールドに示される I Pァドレスとポート番号とに書き 換え、 この書き換えた I Pバケツトをバケツト送信手段 2 2に渡す。  When the packet conversion unit 25 2 c receives the verbal packet and the second entry identifier, it converts the local bucket into an IP packet, and transmits a source address and a source port of the IP packet. A correspondence management table 272 that identifies the number and the second entry identifier, respectively. Rewrite to the IP address and port number values shown in the third socket field in the entry. The bucket converting means 25 2 c further rewrites the destination address and the destination port number of this IP bucket to the IP address and port number indicated in the second socket field of this entry, and The IP bucket is passed to the bucket transmitting means 22.
登録手段 2 5 3 cは、 口一カルバケツトを渡されると、 ポートテーブル 2 7 3 c から、この口一カルバケツトの宛先ポート番号を第 1のポート番号フィールドの値 に持つェントリを検索し、 これに対応する第 2のポート番号を読み込み、未使用の 第 2のェントリ識別子を生成する。登録手段 2 5 3 cは、 グローバルネットワーク 5における未使用のポート番号を一つ選ぶ。 そして、 登録手段 2 5 3 cは、 この生 成した第 2のェントリ識別子をェントリ識別子フィールドの値とし、このローカル パケッ トの送信元ァドレスと送信元ポート番号との組を第 1のソケットフィール ドの値とし、かっこのローカルバケツトの宛先ァドレスとこの検索によって検出さ れたポートテーブル 2 7 3 cにェントリされた第 2のポート番号フィールドとの 値の組を第 2のソケットフィールドの値とする。  When the registration packet is passed, the registration means 25 3 c searches the port table 2 73 c for an entry having the destination port number of this mouth packet as the value of the first port number field, and searches for the entry. Read the corresponding second port number and generate an unused second entry identifier. The registration means 25 3 c selects one unused port number in the global network 5. Then, the registering means 253 c sets the generated second entry identifier as the value of the entry identifier field, and uses the pair of the source address and the source port number of the local packet as the first socket field. And the value pair of the destination address of the parentheses in the local bucket and the second port number field entered in the port table 273c detected by this search as the value of the second socket field. I do.
次いで、登録手段 2 5 3 cは、 中継装置 2 cのグロ一バルネッ トワーク 5の I P ァドレスとこの選ばれたポート番号との組を第 3のソケッ トフィ一ルドの値とす るェントリを作成し、このェントリを記憶手段 2 7 cの対応管理テーブル 2 7 2 c に記憶する。 さらに、登録手段 2 5 3 cは、 このローカルバケツ 卜の送信元ポート 番号を第 1のポート番号フィールドの値とし、この選ばれたポート番号を第 2のポ ―ト番号フィ一ルドの値とするポ一トテーブル 2 7 3 cのエントリを作成し、この エントリをポートテーブル 2 7 3 cに登録する。 そして、 登録手段 2 5 3 cは、 こ のローカルバケツトとこの第 2のェントリ識別子をバケツ ト変換手段 2 5 2 cに 渡す。 Next, the registration means 25 3 c creates an entry in which the pair of the IP address of the global network 5 of the relay device 2 c and the selected port number is set as the value of the third socket field. , This entry is stored in the correspondence management table 2 7 2 c of the storage means 27 c To memorize. Further, the registering means 253 c sets the source port number of the local bucket as the value of the first port number field, and uses the selected port number as the value of the second port number field. An entry of the port table 273c to be created is created, and this entry is registered in the port table 273c. Then, the registration means 2553c passes the local bucket and the second entry identifier to the bucket conversion means 2525c.
第 2 1図に、本第 4の実施の形態におけるアドレス変換手段 2 6 cの構成を示す。 図示されるように、 ァドレス変換手段 2 6 cは、 対応検索手段 2 6 1 c、 バケツ ト変換手段 2 6 2 c、登録検索手段 2 6 3 c、および登録手段 2 6 4 cから構成さ れる。上記第 1の実施の形態におけるアドレス変換手段 2 6を構成する要素と同一 名称でありそれぞれの番号符号に 「c」符号が付加されている。 また、構成要素の 接続も上記第 1の実施の形態と同一である。  FIG. 21 shows the configuration of the address conversion means 26c in the fourth embodiment. As shown in the figure, the address conversion means 26c is composed of a correspondence search means 261c, a bucket conversion means 2626c, a registration search means 2663c, and a registration means 2664c. . The elements having the same names as those constituting the address conversion means 26 in the first embodiment are denoted by the same reference numerals, and “c” is added to each number code. The connection of the components is also the same as in the first embodiment.
バケツト変換手段 2 6 2 cは、 I Pバケツトと第 2のェントリ識別子とを渡され ると、記憶手段 2 7 cのポートテーブル 2 7 3 c力、ら、 この I Pバケツトの送信元 ポート番号を第 2のポート番号フィ一ルドに持つエントリを検索し、検出されたポ ートテーブル 2 7 3 cのエントリにおける第 1のポート番号フィールドの値を読 み出す。  Upon receiving the IP bucket and the second entry identifier, the bucket converting means 2626c stores the source port number of this IP bucket in the port table 273c of the storage means 27c. The entry in the port number field of 2 is searched for, and the value of the first port number field in the detected entry of the port table 273c is read out.
そして、バケツト変換手段 2 6 2 cは、 この I Pバケツトをプライべ一トネット ワーク 4のローカルバケツ 卜に変換し、この口一カルバケツトの宛先ァドレスと宛 先ポート番号とをそれぞれこの第 2のェントリ識別子から識別される対応管理テ —ブル 2 7 2 cのェントリにおける第 1のソケッ トの I Pアドレスとポート番号 との値に書き換える。 パケット変換手段 2 6 2 cは、 さらに、 この口一カルバケツ トの送信元ポート番号を上記読み出したポートテ一ブル 2 7 3 cのエントリにお ける第 1のポート番号フィールドの値に書き換え、この書き換えたローカルバケツ トをバケツ ト送信手段 2 4に渡す。  Then, the bucket converting means 2626c converts the IP bucket into a local bucket of the private network 4, and stores the destination address and the destination port number of the private bucket in the second entry identifier, respectively. Is rewritten to the value of the IP address and port number of the first socket in the entry of the correspondence management table 272c, which is identified from. The packet conversion means 262c further rewrites the source port number of this packet to the value of the first port number field in the entry of the port table 273c read out above, The local bucket is passed to the bucket transmitting means 24.
登録検索手段 2 6 3 cは、 I Pパケットを渡されると、 ポートテーブル 2 7 3 c から、この I Pバケツトの宛先ポート番号を第 2のポート番号フィールドの値とす るエントリを検索する。  Upon receiving the IP packet, the registration retrieving means 263c searches the port table 273c for an entry having the destination port number of the IP bucket as the value of the second port number field.
この検索によりポートテ一プル 2 7 3 cからこのエントリが検出されなかつた 場合、 登録検索手段 2 6 3 cは、 この I Pパケッ トを廃棄し、 処理を終了する。 この検索によりポートテーブル 2 7 3 cからこのェントリが検出された場合、登 録検索手段 2 6 3 cは、 さらに、 処理端末登録テーブル 2 7 1 cを参照し、 ポ一ト 番号フィールドの値としてこの検出されたポートテーブル 2 7 3 cのェントリに おける第 1のポ一ト番号フィールドの値を持つェントリを検索する。 If this entry is not detected from the port tape 2273c by this search, the registration search means 263c discards this IP packet and ends the processing. When this entry is detected from the port table 2 73 c by this search, the registration search means 2 63 c further refers to the processing terminal registration table 27 1 c and sets the value of the port number field as a value. The entry having the value of the first port number field in the entry of the detected port table 273c is searched.
この検索により処理端末登録テーブル 2 7 1 cからこのェントリが検出されな かった場合、 登録検索手段 2 6 3 cは、 この I Pバケツ トを廃棄し、処理を終了す る。  If this entry is not detected from the processing terminal registration table 271c by this search, the registration search means 263c discards the IP bucket and ends the processing.
この検索により処理端末登録テーブル 2 7 1 cからこのェントリが検出された 場合、登録検索手段 2 6 3 cはこのエントリのェントリ識別子フィールドに格納さ れている第 1のェントリ識別子の値とこの I Pバケツ トとを登録手段 2 6 4 cに 渡す。  If this entry is detected from the processing terminal registration table 27 1 c by this search, the registration search means 26 3 c uses the value of the first entry identifier stored in the entry identifier field of this entry and this IP Pass the bucket and the registration means to 264c.
登録手段 2 6 4 cは、第 1のェントリ識別子と I Pバケツトとを渡されると、 こ の第 1のェントリ識別子で識別される記億手段 2 7 cの処理端末登録テーブル 2 7 1 cのェントリにおけるアドレスフィールドに格納されているァドレスとポ一 ト番号フィ一ルドに格納されているポート番号とを読み出し、かつ未使用の第 2の エントリ識別子を生成する。 また、 登録手段 2 6 4 cは、 この生成した第 2のェン トリ識別子をェントリ識別子フィ一ルドの値とし、このアドレスとこのポート番号 との組を第 1のソケットフィールドの値とし、この I Pバケツトの送信元ァドレス と送信元ポート番号との組を第 2のソケットフィールドとし、この I Pバケツ卜の 宛先アドレスと宛先ポート番号の組を第 3のソケットフィールドの値とするェン トリを作成する。登録手段 2 6 4 cは、作成したこのェントリを記憶手段 2 7 cの 対応管理テーブル 2 7 2 cに記憶する。  Upon receiving the first entry identifier and the IP bucket, the registration means 2664c receives the first entry identifier and the IP bucket, and the entry in the processing terminal registration table 2711c of the storage means 27c identified by the first entry identifier. And reads the address stored in the address field and the port number stored in the port number field, and generates an unused second entry identifier. Further, the registration means 264c sets the generated second entry identifier as a value of an entry identifier field, sets a pair of this address and this port number as a value of a first socket field, and Create an entry that uses the pair of the source address and source port number of the IP bucket as the second socket field, and the pair of the destination address and destination port number of this IP bucket as the value of the third socket field. I do. The registration means 264c stores the created entry in the correspondence management table 272c of the storage means 27c.
さらに、登録手段 2 6 4 cは、未使用のネットワーク 4のポート番号を一つ選び、 この選ばれたポート番号を第 1のポ一ト番号フィ一ルドの値とし、かっこの I Pパ ケットの送信元ポート番号を第 2のポート番号フィールドの値とするポートテー ブルのェントリを作成する。登録手段 2 6 4 cは、 この作成したポ一トテーブルの ェントリをポートテーブル 2 7 3 cに登録する。 そして、 登録手段 2 6 4 cは、 こ の I Pバケツ トとこの第 2のェントリ識別子とをバケツ ト変換手段 2 6 2 cに渡 す。  Further, the registration means 264c selects one of the unused port numbers of the network 4, sets the selected port number as the value of the first port number field, and sets the value of the IP packet in parentheses. Create a port table entry with the source port number as the value of the second port number field. The registration means 264c registers the entry of the created port table in the port table 273c. Then, the registering means 264c passes the IP bucket and the second entry identifier to the bucket converting means 262c.
次に、 上述した第 4の実施の形態における動作について説明する。 この第 4の実施の形態において実行されるデータ通信は通信セッションを端末 装置 1 cが開始する場合と、端末装置 3が開始する場合の 2種類がある。いずれの 場合においても、開始される通信セッションで利用するサービスに対応するプライ ベ一トネッ トワーク 4のポート番号とグローバルネッ トワーク 5のポート番号と の対応はあらかじめポートテーブル 2 7 3 cに登録されているとする。 Next, an operation in the above-described fourth embodiment will be described. There are two types of data communication executed in the fourth embodiment: a case where the terminal device 1c starts a communication session and a case where the terminal device 3 starts. In any case, the correspondence between the port number of the private network 4 and the port number of the global network 5 corresponding to the service used in the communication session to be started is registered in the port table 273c in advance. Suppose you have
まず、通信セッションを端末装置 1一 Xが開始する場合の動作について説明する。 ここでは、 まず、端末装置 1一 Xが端末装置 3の提供するサービスを利用すべく、 このサービス利用のための通信セッションを開始する際の動作について説明する が、 このサービスに対応するプライベートネットワーク 4におけるポート番号は 「P 4」 とし、 グローバルネットワーク 5におけるポート番号は 「P 2」 であると する。 従って、 中継装置 2 cには、 この対応を示すために、 ポートテーブル 2 7 3 cに第 1のポート番号フィールドの値が 「P 4」であり、 第 2のポート番号フィー ルドの値が 「P 2」 であるェントリが登録されている。 また、 端末装置 1— Xはポ ート番号 「P 1」 のポ一トを利用するとする。  First, an operation when the terminal device 11X starts a communication session will be described. Here, first, the operation when the terminal device 11 X starts a communication session for using the service provided by the terminal device 3 in order to use the service provided by the terminal device 3 will be described. Is assumed to be “P 4”, and the port number in the global network 5 is assumed to be “P 2”. Therefore, in order to indicate this correspondence, the value of the first port number field is “P 4” in the port table 273 c and the value of the second port number field is “ P2 "is registered. It is also assumed that terminal device 1-X uses the port with port number "P1".
端末装置 1一 Xは上記サービスを利用するために最初のローカルバケツト(ロー カルパケット Aと呼ぶ) を送出する。 この口一カルパケット Aでは、宛先アドレス が ΓΑ 2— 1」 となり、 宛先ポート番号が 「P 4」 となり、 送信元アドレスが 「A 1一 x」 となり、 かつ送信元ポート番号が 「P 1」 となる。  The terminal device 11X transmits the first local bucket (called local packet A) to use the above service. In this oral packet A, the destination address is ΓΑ2—1 ”, the destination port number is“ P4 ”, the source address is“ A1x ”, and the source port number is“ P1 ”. Becomes
端末装置 1 —Xから送出された上記ローカルバケツ ト Aはプライべ一トネッ ト ワーク 4を介して中継装置 2 cのバケツト受信手段 2 1によって受信される。パケ ット受信手段 2 1はこのローカルバケツト Aをアドレス変換手段 2 5 cに渡す。 アドレス変換手段 2 5 cに渡された上記ロー力ルパケッ ト Aは対応検索手段 2 5 1 cで受取られる。  The local bucket A sent from the terminal device 1 -X is received by the bucket receiving means 21 of the relay device 2 c via the private network 4. The packet receiving means 21 passes the local bucket A to the address translating means 25c. The low-power packet A passed to the address conversion means 25c is received by the correspondence search means 251c.
対応検索手段 2 5 1 cは、 上記ローカルバケツ ト Aを渡されると、 まず、 記憶手 段 2 7 cのポートテーブル 2 7 3 cから、第 1のポート番号フィ一ルドの値がこの ローカルバケツ 卜の宛先ポート番号の値 「P 4」 と等しいェントリを検索する。 この場合、 ポートテ一ブル 2 7 3 cにはこのエントリが存在するため、 この検索 によりこのェントリが検出される。  Upon receiving the above-mentioned local bucket A, the corresponding search means 25 1 c firstly reads the value of the first port number field from the port table 27 3 c of the storage means 27 c into this local bucket. Search for an entry that is equal to the destination port number value "P 4" of the server. In this case, since this entry exists in the port table 273c, this entry is detected by this search.
そして、対応検索手段 2 5 1 cは、記憶手段 2 7 cの対応管理テーブル 2 7 2 c から、第 1のソケッ トフィールドの値がこのローカルバケツ ト Aの送信元ァドレス およびポート番号の組 [A 1— x、 P 1 ] と等しく、 かつ第 2のソケットフィール ドの値が、 このローカルバケツト Aの宛先アドレスと、上記ポートテーブル 2 7 3 cにおいて検出されたポ一トテーブル 2 7 3 cのェントリにおける第 2のポート 番号フィールドとの値が、 組 [A 2— 1、 P 2] と等しい値を持つェントリを検索 する。 Then, the correspondence search means 25 1 c determines from the correspondence management table 27 2 c of the storage means 27 c that the value of the first socket field is the source address of this local bucket A. And the value of the second socket field equal to the pair [A 1—x, P 1] and the destination number of the local bucket A and the port detected in the port table 273 c. Search for an entry whose value in the second port number field in the entry in the entry table 2 7.3 c is equal to the pair [A 2-1, P 2].
最初のこの時点では、対応管理テーブル 2 7 2 cにこのェントリが存在しないた め、 この検索によりこのエントリは検出されない。  At this point in time, this entry does not exist in the correspondence management table 272c, so this entry is not found by this search.
そこで、対応検索手段 2 5 1 cは、 このローカルバケツト Aを登録手段 2 5 3 c に渡す。  Therefore, the correspondence search means 25 1 c passes this local bucket A to the registration means 25 3 c.
登録手段 2 5 3 cは、 この口一カルバケツト Aを渡されると、 ポートテーブル 2 7 3 cからこのローカルバケツト Aの宛先ポート番号「P 4」を第 1のポ一ト番号 フィールドの値に持つェントリを検索し、未使用の第 2のェントリ識別子を生成し、 未使用のグロ一バルネットワーク 5のポート番号を一つ選ぶ(選ばれたポート番号 を 「P 5」 とする)。  When the registration means 25 3 c is passed the packet A, the destination port number “P 4” of the local bucket A is set to the value of the first port number field from the port table 2 73 c. It searches for the entry that has it, generates an unused second entry identifier, and selects one unused global network 5 port number (let the selected port number be “P 5”).
そして、登録手段 2 5 3 cは、 この生成した第 2のェントリ識別子をェントリ識 別子フィールドの値とし、この口一カルパケット Aの送信元ァドレスと送信元ポー ト番号との組 [A l—x、 P I ] を第 1のソケットフィールドの値とし、 このロー カルバケツト Aの宛先ァドレスとこの検索によって検出されたポートテ一ブルの ェントリの第 2のポート番号フィールドの値との組 [A 2 _ l、 P 2 ] を第 2のソ ケットフィールドの値とし、中継装置 2 cのネットワーク 5の I Pアドレスとこの 選ばれたポート番号との組 [A 2— 2、 P 5 ] を第 3のソケットフィールドの値と するエントリを作成し、このエントリを記憶手段 2 7 cの対応管理テ一ブル 2 7 2 cに記憶する。 この結果が図示されている状態である。  Then, the registering means 253 c sets the generated second entry identifier as the value of the entry identifier field, and sets the pair [Al of the source address and the source port number of the oral packet A. —X, PI] is the value of the first socket field, and the pair [A 2 _] of the destination address of this low bucket A and the value of the second port number field of the port entry found by this search l, P 2] are the values of the second socket field, and the pair [A 2-2, P 5] of the IP address of the network 5 of the relay device 2 c and the selected port number is the third socket. An entry as a value of the field is created, and this entry is stored in the correspondence management table 272c of the storage means 27c. The result is shown in the figure.
さらに登録手段 2 5 3 cは、この口一カルバケツト Aの送信元ポート番号「P 1」 を第 1のポート番号フィールドの値とし、 この選ばれたポート番号「P 5」 を第 2 のポート番号フィ一ルドの値とするポートテーブル 2 7 3 cのェントリを作成し てポートテ一ブル 2 7 3 cに登録する。 そして、 登録手段 2 5 3 cは、 このロー力 ルバケツト Aとこの第 2のェントリ識別子とをバケツト変換手段 2 5 2 cに渡す。 バケツト変換手段 2 5 2 cは、上記ローカルバケツト Aと上記第 2のェントリ識 別子とを渡されると、 この口一カルバケツ ト Aを I Pバケツトに変換し、 この I P バケツ卜の送信元ァドレスと送信元ポート番号とをそれぞれこの第 2のェントリ 識別子から識別される対応管理テーブル 2 7 2 cのェントリにおける第 3のソケ ットフィールドに示される I Pアドレス ΓΑ 2— 2」 とポ一ト番号 「P 5」 との値 に書き換える。 Further, the registration means 25 3 c sets the source port number “P 1” of this packet A as the value of the first port number field, and uses the selected port number “P 5” as the second port number. Create an entry for the port table 273c as the value of the field and register it in the port table 273c. Then, the registering means 2553c passes the raw bucket A and the second entry identifier to the bucket converting means 2525c. When the above-mentioned local bucket A and the above-mentioned second entry identifier are passed, the bucket converting means 25 2 c converts this packet A into an IP bucket, and The source address and the source port number of the bucket are respectively defined as the IP address ΓΑ 2-2 shown in the third socket field in the entry of the correspondence management table 272 c identified from the second entry identifier. Rewrite with the port number "P5".
バケツト変換手段 2 5 2 cは、 さらに、 この I Pバケツトの宛先ァドレスと宛先 ポート番号とをこのエントリの第 2のソケットフィ一ルドに示される I Pァドレ ス ΓΑ 2— 1」 とポート番号 「P 2」 とに書き換え、 この書き換えた I Fバケツト ( I Pバケツト Bと呼ぶ) をバケツト送信手段 2 2に渡す。 このときの I Pバケツ ト Bは、 宛先アドレスが 「A 2—1」 であり、 宛先ポート番号が 「P 2」 であり、 送信元アドレスが ΓΑ 2— 2」 であり、 かつ送信元ポート番号が 「P 5」 となる。 バケツト送信手段 2 2に渡された I Pバケツト Bは、グローバルネットワーク 5 を介して、端末装置 3に送信される。 I Pバケツト Bの宛先アドレスが ΓΑ 2— 1」 であり、 宛先ポート番号が 「P 2」 であり、 送信元アドレスが 「A 2— 2」 であり、 送信元ポート番号が 「P 5」 であることから、 端末装置 3においては、 この通信セ ッシヨンはアドレス 「A 2— 2」 の端末装置のポート 「P 5」 と自端末装置のポー ト 「P 2」 との間の通信セッションであると解釈される。 従って、 この通信セッシ ヨンに関する端末装置 3から送出される I Pバケツ トは、宛先ァドレスが「A 2— 2」 であり、、 宛先ポート番号が 「P 5」 であり、 送信元アドレスが ΓΑ 2— 1」 であり、 かつ送信元ポート番号が 「P 2」 となる。  The bucket conversion unit 25 2 c further writes the destination address and the destination port number of this IP bucket with the IP address ΓΑ 2-1 ”shown in the second socket field of this entry and the port number“ P 2 And pass the rewritten IF bucket (called IP bucket B) to the bucket transmitting means 22. At this time, the IP bucket B has a destination address “A 2-1”, a destination port number “P 2”, a source address ΓΑ2-2—and a source port number It will be “P 5”. The IP bucket B passed to the bucket transmitting means 22 is transmitted to the terminal device 3 via the global network 5. The destination address of IP bucket B is ΓΑ2—1 ”, the destination port number is“ P 2 ”, the source address is“ A 2-2 ”, and the source port number is“ P 5 ” Therefore, in the terminal device 3, this communication session is a communication session between the port “P5” of the terminal device having the address “A2-2” and the port “P2” of the own terminal device. Will be interpreted. Therefore, the IP packet transmitted from the terminal device 3 relating to this communication session has the destination address “A2-2”, the destination port number “P5”, and the source address ΓΑ2—. 1 ”and the source port number is“ P 2 ”.
以降、中 ¾装置 2 cは、プライべ一トネッ トワーク 4からのこの通信セッション の口一カルバケツト (ローカルバケツト Cと呼ぶ) を受信すると、 上記の口一カル バケツ ト Aの処理と同様に動作するが、対応検索手段 2 5 1 cの対応管理テーブル 検索の処理において、 今度は異なる。  Thereafter, when the central device 2c receives the personal packet (referred to as local bucket C) of this communication session from the private network 4, it operates in the same manner as the processing of the personal packet A described above. However, in the process of searching the correspondence management table of the correspondence search means 25 1 c, this time is different.
すなわち、、 対応検索手段 2 5 1 cは、 記憶手段 2 7 cの対応管理テーブル 2 7 2 cから、第 1のソケットフィールドの値がこの口一力ルパケッ ト Cの送信元ァド レスおよび送信元ポート番号の組 [A l— x、 P 1 ] と等しく、 かつ、 第 2のソケ ッ トフィールドの値がこの口一力ルパケッ ト Cの宛先アドレスとポートテーブル の検索において検出されたポートテーブルのェントリにおける第 2のポート番号 フィールドの値との組 [A 2— 1、 P 2 ] と等しいェントリを検出する。 そして、 対応検索手段 2 5 1 cは、この口一カルバケツト Cとこのェントリのェントリ識別 子フィールドに格納されている第 2のェントリ識別子とを、登録手段 2 5 3 cを経 由せずに、 直接、 バケツ ト変換手段 2 5 2 cに渡す。 That is, the correspondence search means 25 1 c determines from the correspondence management table 27 2 c of the storage means 27 c that the value of the first socket field indicates the source address and the transmission address of this The port table that is equal to the source port number pair [A l-x, P 1] and the value of the second socket field is detected in the search of the destination address and port table of this packet C. Finds an entry that is equal to the pair [A 2-1, P 2] with the value of the second port number field in that entry. Then, the correspondence search means 25 1 c executes the identification of this portal C and the entry of this entry. The second entry identifier stored in the child field is passed directly to the bucket conversion means 252c without passing through the registration means 2553c.
これ以降の処理は、上記ローカルバケツト Aの場合と同様に行なわれる。すなわ ち、 このローカルバケツ ト Cは上記 I Pバケツト Bと同じ送信元ァドレス ΓΑ 2— 2」 と送信元ポート番号 「P 5」 と宛先アドレス ΓΑ 2— 1」 とかつ宛先ポ一ト番 号「P 2」 とを持つ I Pバケツトに変換され (変換された I Fバケツトを I Pパケ ット Dと呼ぶ)、 この変換された I Pバケツト Dがグローバルネットワーク 5を介 して端末装置 3に送られる。  The subsequent processing is performed in the same manner as in the case of the local bucket A. That is, this local bucket C has the same source address ΓΑ 2-2 ”, source port number“ P 5 ”and destination address ΓΑ 2-1” as the above IP bucket B, and the destination port number “ The packet is converted into an IP packet having “P 2” (the converted IF packet is called IP packet D), and the converted IP packet D is sent to the terminal device 3 via the global network 5.
また、上記ローカルバケツト Aと、 I Pバケツト Bを処理した後の端末装置 3か ら送出されるこの通信セッションの I Pバケツト (I Pバケツト Eと呼ぶ) とは、 上記の通り、 宛先アドレスが ΓΑ 2— 2」 であり、 宛先ポート番号が 「P 5」 であ り、 送信元アドレスが 「A 2— 1」 であり、 かつ送信元ポ一ト番号が 「P 2」 とな る。 この I Pバケツト Eは、 グローバルネットワーク 5を介して、 中継装置 2 cの バケツト受信手段 2 3に受信され ケット受信手段 2 3はこの I Pバケツト Eを 7ドレス変換手段 2 6 cに渡す。  As described above, the local bucket A and the IP bucket (referred to as IP bucket E) of this communication session transmitted from the terminal device 3 after processing the IP bucket B have a destination address of ΓΑ 2 —2 ”, the destination port number is“ P5 ”, the source address is“ A2-1 ”, and the source port number is“ P2 ”. This IP bucket E is received by the bucket receiving means 23 of the relay device 2c via the global network 5, and the packet receiving means 23 passes this IP bucket E to the seven-dress conversion means 26c.
ァドレス変換手段 2 6 cに渡された上記 I Pバケツ ト Eは対応検索手段 2 6 1 cで受取られる。対応検索手段 2 6 1 cは、記憶手段 2 7 cの対応管理テーブル 2 7 2 cから、第 2のソケッ トフィールドの値がこの I Pバケツ ト Eの送信元ァドレ スと送信元ポート番号との組 [A 2— 1、 P 2 ] と等しく、 かつ、 第 3のソケット フィールドの値がこの I Pパケットの宛先アドレスと宛先ポート番号との組 [ A 2 —2、 P 5 ] と等しいエントリを検索する。  The IP bucket E passed to the address conversion means 26c is received by the correspondence search means 261c. Correspondence search means 2611c determines from the correspondence management table 272c of storage means 27c that the value of the second socket field indicates the source address and source port number of this IP bucket E. Search for an entry that is equal to the pair [A 2-1, P 2] and the value of the third socket field is equal to the pair [A 2-1, P 5] of the destination address and destination port number of this IP packet I do.
この時点では上述したように、対応管理テーブル 2 7 2 に、上記ローカルパケ ット A処理時に登録したェントリが既に存在し、このェントリが上記検索するェン トリに対応するため、対応検索手段 2 6 1 cはこの I Pバケツト Eとこのェントリ のェントリ識別子とをバケツト変換手段 2 6 2 cに渡す。  At this time, as described above, since the entry registered at the time of the local packet A processing already exists in the correspondence management table 272, and this entry corresponds to the entry to be searched, the correspondence search means 2 6 1 c passes this IP bucket E and the entry identifier of this entry to the bucket conversion means 26 2 c.
バケツト変換手段 2 6 2 cは、上記 I Pバケツ ト Eと第 2のェントリ識別子を渡 されると、記憶手段 2 7 cのポートテーブル 2 7 3。から、 この I Pバケツトの送 信元ポート番号「P 2」を第 2のポート番号フィールドに持つエントリを検索し、 検出されたポ一トテーブル 2 7 3 cのエントリにおける第 1のポ一ト番号フィ一 ルドの値 「P 4」 を読み出す。 そして、バケツ ト変換手段 2 6 2。は、 この I Pバケツト Eをプライべ一トネッ トワーク 4の口一カルバケツトに変換し、このローカルバケツトの宛先ァドレスと 宛先ポート番号とをそれぞれこの第 2のェントリ識別子から識別される対応管理 テーブル 2 7 2 cのエントリにおける第 1のソケッ卜の I Pアドレス 「A 1— x」 とポート番号 「P 1」 との値に書き換え、 さらに、 このローカルパケットの送信元 ポート番号を上記読み出したポート番号「P 4」 に書き換え、 この書き換えた口一 カルパケット (口一カルパケット Fと呼ぶ) をパケット送信手段 2 4に渡す。 When the above-mentioned IP bucket E and the second entry identifier are passed, the bucket converting means 262 c stores the port table 273 of the storage means 27c. Search for an entry having the source port number “P 2” of this IP bucket in the second port number field, and find the first port number in the entry of the detected port table 273 c. Read the value “P 4” in the field. Then, bucket conversion means 262. Converts the IP packet E into a private packet of the private network 4, and stores the destination address and the destination port number of the local bucket respectively in the correspondence management table 27 identified by the second entry identifier. 2 Rewrite the IP address “A 1—x” and port number “P 1” of the first socket in the entry of c with the values of the source port number of the local packet and the port number “P 4 ”and pass the rewritten oral packet (referred to as oral packet F) to the packet transmitting means 24.
バケツト送信手段 2 4は、上記口一カルバケツト Fを渡されると、 この口一カル バケツト Fをプライベートネットワーク 4に送出し、このローカルバケツト Fは端 末装置 1一 Xに受信される。  When the bucket F is passed, the bucket transmitting means 24 sends the bucket F to the private network 4, and the local bucket F is received by the terminal device X.
次に、 通信セッションを端末装置 3が開始する場合の動作について説明する。 ここでは、 まず、端末装置 3が端末装置 1 —Xの提供するサービスを利用すべく、 このサービス利用のための通信セッションを開始する際の動作について説明する が、 このサービスに対応するプライベートネットワーク 4におけるポート番号を 「F 1」 とし、 グロ一パルネットワーク 5におけるポート番号を 「F 5」 とする。 また、 中継装置 2 cには、 この対応を示すために、 ポートテーブル 2 7 3 cに第 1 のポート番号フィールドの値が 「P 1」であり、第 2のポート番号フィールドの値 が 「P 5」 であるエントリが登録されている。 また、 処理端末登録テーブル 2 7 1 cにァドレス 「A 1— x」 とポート番号 「P 1」 との対応が記憶されているとする。 更に、 端末装置 3はポート番号 「P 2」 のポートを利用するとする。  Next, an operation when the terminal device 3 starts a communication session will be described. Here, first, the operation when the terminal device 3 starts a communication session for using the service provided by the terminal device 1—X in order to use the service provided by the terminal device 1—X will be described. The port number at is “F 1” and the port number at global network 5 is “F 5”. Also, in order to indicate this correspondence, the value of the first port number field is “P 1” in the port table 273 c and the value of the second port number field is “P 1 5 ”is registered. It is also assumed that the correspondence between the address “A 1−x” and the port number “P 1” is stored in the processing terminal registration table 27 1 c. Further, it is assumed that the terminal device 3 uses the port having the port number “P 2”.
端末装置 3は上記サービスを利用するために最初の I Pバケツ ト(I Pバケツト Aと呼ぶ) を送出する前に上述した第 1の実施の形態における動作と同様に、 まず、 端末装置 1一 Xの名前からアドレス解決を行い、端末装置 1一 X宛ての I Pバケツ 卜の宛先 I Pアドレスが 「A 2— 2」であることを知る。 この詳細については既に 説明しており説明を省略する。  Before transmitting the first IP bucket (referred to as IP bucket A) to use the service, the terminal device 3 first transmits the terminal device 11X in the same manner as the operation in the first embodiment described above. It resolves the address from the name and finds that the destination IP address of the IP bucket addressed to the terminal device 1-X is “A2-2”. The details have already been described, and the description is omitted.
次に、端末装置 3は、 上記 I Pバケツト Aを送出する。 この I Pバケツト Aは、 宛先アドレスが 「A 2— 2」 であり、 宛先ポート番号が 「P 5」 であり、 送信元ァ ドレスが 「A 2—1」 であり、 かつ送信元ポート番号が 「P 2」 となる。  Next, the terminal device 3 sends out the IP bucket A. In the IP bucket A, the destination address is “A2-2”, the destination port number is “P5”, the source address is “A2-1”, and the source port number is “ P 2 ”.
上記 I Pバケツ ト Aはグローバルネットワーク 5を介して中継装置 2 cのパケ ッ ト受信手段 2 3で受信される。バケツト受信手段 2 3はこの I Pバケツト Aをァ ドレス変換手段 2 6 cに渡す。 The IP packet A is received by the packet receiving means 23 of the relay device 2c via the global network 5. The bucket receiving means 2 3 sends this IP bucket A Hand over to dress conversion means 2 6 c.
ァドレス変換手段 2 6 cに渡された上記 I Pバケツト Aは対応検索手段 2 6 1 cで受取られる。 対応検索手段 2 6 1 cは、 上記 I Pバケツト Aを渡されると、記 憶手段 2 7 cの対応管理テーブル 2 7 2 cから、第 2のソケッ トフィールドと第 3 のソケッ トフィールドとの値それぞれがこの I Pパケッ ト Aの送信元ァドレスと 送信元ポ一ト番号との組 [A 2— 1、 P 2] と、 この I Pバケツト Aの宛先アドレ スと宛先ポ一ト番号との組 [A 2— 2、 P 5 ] と等しい値であるエントリを検索す る。  The IP bucket A passed to the address conversion means 26c is received by the correspondence search means 261c. When the above-mentioned IP bucket A is passed, the correspondence search means 26 1 c receives the values of the second socket field and the third socket field from the correspondence management table 27 2 c of the storage means 27 c. Each is a pair [A 2-1, P 2] of the source address and the source port number of this IP packet A, and a pair [D-2] of the destination address and the destination port number of this IP packet A [ A2—2, P5].
この時点では、対応管理テーブル 2 7 2 cに上記ェントリは未だ存在しないため、 この検索によってこのェントリは検出されない。  At this point, since the above entry does not yet exist in the correspondence management table 272c, this entry is not detected by this search.
対応検索手段 2 6 1 cは、 この検索でこのェントリが検出されなかったため、 こ の I Pバケツト Aを登録検索手段 2 6 3 cに渡す。  Since this entry was not detected in this search, the corresponding search means 2631c passes this IP bucket A to the registration search means 2663c.
登録検索手段 2 6 3 cは、上記 I Pバケツ ト Aを渡されると、 ポートテーブル 2 7 3 cから、 この I Pバケツト Aの宛先ポート番号「P 5」 を第 2のポート番号フ ィールドの値とするェントリを検索する。  Upon receiving the above IP bucket A, the registration search means 2663c sets the destination port number "P5" of this IP bucket A to the value of the second port number field from the port table 273c. Search for an entry.
この場合、前述の通り、 ポートテーブル 2 7 3 cに第 1のポート番号フィールド の値が 「P 1」 であり、 第 2のポート番号フィールドの値が 「 P 5」 であるェント リが登録されているので、 このェントリが検出される。  In this case, as described above, the entry in which the value of the first port number field is "P1" and the value of the second port number field is "P5" is registered in the port table 273c. So this entry is detected.
この検索によりポートテーブル 2 7 3 cからこのェントリが検出されたので、登 録検索手段 2 6 3 cは、 さらに、処理端末登録テーブル 2 7 1 cを参照し、 ポート 番号フィールドの値としてこの検出されたポ一トテーブル 2 7 3 cのェントリに おける第 1のポート番号フィールドの値 「P 1」 を持つェントリを検索する。  As a result of this search, this entry was detected from the port table 273c, so the registration search means 263c further refers to the processing terminal registration table 271c to find this entry as the value of the port number field. A search is made for an entry having the value “P 1” in the first port number field in the entry of the created port table 2 7.3 c.
この場合も、前述の通り、処理端末登録テーブル 2 7 1 cにアドレス「A 1 — x」 とポート番号 「P 1」 の対応が記憶されており、 このエントリが検出される。  Also in this case, as described above, the correspondence between the address “A 1 — x” and the port number “P 1” is stored in the processing terminal registration table 27 1 c, and this entry is detected.
この検索により処理端末登録テーブル 2 7 1 cからこのェントリが検出された ので、登録検索手段 2 6 3 cは、 このエントリのエントリ識別子フィールドに格納 されている第 1のェントリ識別子の値とこの I Pバケツ ト Aとを登録手段 2 6 4 cに渡す。  Since this entry was found from the processing terminal registration table 27 1 c by this search, the registration search means 2 63 c reads the value of the first entry identifier stored in the entry identifier field of this entry and this IP Pass the bucket A to the registration means 264c.
登録手段 2 6 4 cは、上記第 1のェントリ識別子と上記 I Pバケツト Aとを渡さ れると、この第 1のェントリ識別子で識別される記憶手段 2 7 cの処理端末登録テ —ブル 2 7 1 cのェントリにおけるァドレスフィールドに格納されているァドレ ス 「A 1— x」 とポート番号フィールドに格納されているポート番号「P 1」 とを 読み出し、 かつ、 未使用の第 2のエントリ識別子を生成する。 Upon receiving the first entry identifier and the IP packet A, the registration means 264c registers the processing terminal registration table of the storage means 27c identified by the first entry identifier. —Read the address “A 1—x” stored in the address field and the port number “P 1” stored in the port number field in the entry of the entry 2 Generate an entry identifier for
登録手段 2 6 4 cは、この生成した第 2のェントリ識別子をェントリ識別子フィ 一ルドの値とし、 このァドレスとこのポート番号との組 [A l _ x、 P 1 ] を第 1 のソケットフィールドの値とし、この I Fバケツト Aの送信元アドレスと送信元ポ —ト番号との組 [A 2— 1、 P 2 ] を第 2のソケットフィールドの値とし、 かっこ の I Pバケツ 卜の宛先アドレスと宛先ポート番号との組 [A 2— 2、 P 5] を第 3 のソケットフィールドの値とするェントリを作成し、このェントリを記憶手段 2 7 の対応管理テ一ブルに登録する。 この結果、図示される対応管理テーブル 2 7 2 c が完成する。  The registration means 264c uses the generated second entry identifier as the value of the entry identifier field, and sets the pair [A l_x, P 1] of this address and this port number in the first socket field. The pair [A 2-1, P 2] of the source address and source port number of this IF bucket A is the value of the second socket field, and the destination address of the parenthesized IP bucket is An entry is created using the pair [A2-2, P5] with the destination port number as the value of the third socket field, and this entry is registered in the correspondence management table of the storage means 27. As a result, the illustrated correspondence management table 272c is completed.
さらに登録手段 2 6 4 cは、未使用のプライベートネットワーク 4のポート番号 を一つ選び(選ばれたポート番号を「P 4」 とする)、 この選ばれたポート番号「F 4 Jを第 1のポート番号フィールドの値とし、 この I Pバケツト Aの送信元ポ一ト 番号「P 2」を第 2のポート番号フィールドの値とするポートテーブルのェントリ を作成し、このポ一トテ一ブルのェントリをポートテ一ブル 2 7 3 cに登録する。 この結果、 図示されるポートテーブル 2 7 3 cが完成する。 そして、登録手段 2 6 4 cは、この I Pバケツト Aとこの第 2のェントリ識別子とをバケツト変換手段 2 6 2 cに渡す。  Further, the registration means 2 6 4 c selects one unused port number of the private network 4 (the selected port number is referred to as “P 4”), and selects the selected port number “F 4 J as the first port number. Creates a port table entry with the source port number "P2" of this IP bucket A as the value of the second port number field, and the entry of this port table. Is registered in port table 2 7 3 c. As a result, the illustrated port table 273c is completed. Then, the registration means 264c passes the IP bucket A and the second entry identifier to the bucket conversion means 262c.
バケツト変換手段 2 6 2 cは、上記 I Pバケツ ト Aと上記第 2のェントリ識別子 とを渡されると、記憶手段 2 7 cのポートテーブル 2 7 3 cから、 この I Pバケツ ト Aの送信元ポート番号「P 2」を第 2のポート番号フィールドに持つェントリを 検索し、検出されたポートテーブル 2 7 3 cのェントリにおける第 1のポート番号 フィールドの値 「P 4」 を読み出す。  When the above-mentioned IP bucket A and the above-mentioned second entry identifier are passed, the bucket conversion means 2626 c reads the source port of this IP bucket A from the port table 273 c of the storage means 27 c. The entry having the number “P 2” in the second port number field is searched, and the value “P 4” of the first port number field in the entry of the detected port table 273 c is read.
そして、バケツト変換手段 2 6 2 cは、 この I Pバケツ ト Aをプライべ一トネッ トワーク 4のローカルバケツトに変換し、この口一カルバケツ トの宛先ァドレスと 宛先ポート番号とをそれぞれこの第 2のェントリ識別子から識別される対応管理 テーブル 2 7 2 cのエントリにおける第 1のソケッ トの I Pアドレス 「A 1 — x」 とポート番号 「P 1」 との値に書き換え、 さらに、 このローカルパケットの送信元 ポート番号を上記読み出した 「P 4」 に書き換え、 この書き換えたローカルバケツ ト (ローカルパケッ ト Bと呼ぶ) をパケット送信手段 2 4に渡す。 Then, the bucket converting means 262c converts the IP bucket A into a local bucket of the private network 4, and converts the destination address and the destination port number of the private bucket into the second bucket, respectively. Rewrite to the IP address “A 1 — x” of the first socket and the port number “P 1” in the entry of the correspondence management table 2 7 2 c identified from the entry identifier, and further transmit this local packet. Rewrite the original port number with “P4” read above, and rewrite the local bucket (Called a local packet B) to the packet transmitting means 24.
バケツト送信手段 2 4は、上記口一カルバケツト Bを渡されると、 このローカル バケツト Bをプライべ一トネットワーク 4に送出し、この口一カルバケツト Bは端 末装置 1一 Xによって受信される。 口一カルバケツト Bの宛先ァドレスが「A 1 - x」 であり、 宛先ポート番号が 「P 1」 であり、 送信元アドレスが ΓΑ 2— 1」 で あり、 かつ送信元ポート番号が 「P 4」 であることから、端末装置 1一 Xにおいて は、 この通信セッションは、 アドレス 「A 2— 1」 の端末装置のポート 「P 4」 と 自端末装置のポート 「P 1」 との間の通信セッションであると解釈される。従って、 この通信セッションに関する端末装置 1—Xから送出されるローカルバケツトは、 宛先アドレスが 「A 2— 1」 であり、 宛先ポート番号が 「P 4」 であり、 送信元ァ ドレスが 「Α 1—χ」 であり、 かつ送信元ポート番号が 「P 1」 となる。  Upon receiving the packet B, the packet transmitting means 24 sends out the local bucket B to the private network 4, and the packet B is received by the terminal device 11X. The destination address of mouth packet B is “A 1 -x”, the destination port number is “P 1”, the source address is ΓΑ2—1 ”, and the source port number is“ P 4 ”. Therefore, in the terminal device 1 X, this communication session is a communication session between the port “P 4” of the terminal device with the address “A 2-1” and the port “P 1” of the own terminal device. Is interpreted as Therefore, the local bucket sent from the terminal device 1-X for this communication session has the destination address “A2-1”, the destination port number “P4”, and the source address “Α”. 1—χ ”and the source port number is“ P 1 ”.
以降、 中継装置 2 cは、 グロ一バルネットワーク 5からのこの通信セッシヨンの I Pバケツト (I Pバケツト Cと呼ぶ) を受信すると、 上記の I Pバケツト Aの処 理と同様に動作するが、対応検索手段 2 6 1 cの対応管理テーブル検索の処理にお いて異なる。  Thereafter, when receiving the IP packet (referred to as IP packet C) of this communication session from the global network 5, the relay device 2 c operates in the same manner as the processing of the IP packet A described above, but the corresponding search means It differs in the process of searching the correspondence management table in 26 1 c.
すなわち、、 今度は、 対応検索手段 2 6 1 cが、 記憶手段 2 7の対応管理テープ ルから、第 2のソケットフィ一ルドと第 3のソケットフィ一ルドとの値がそれぞれ この I Fバケツト Cの送信元アドレスと送信元ポート番号との組 [A 2— 1、P 2 ] と、この I Pバケツト Cの宛先アドレスと宛先ポート番号との組 [A 2— 2、 P 5 ] とに等しい値であるェントリを検出する。 そして、 対応検出手段 2 6 1 cは、 この I Pバケツト Cとこのェントリのェントリ識別子フィールドに格納されている第 2のェントリ識別子とを、登録検索手段 2 6 3 cと登録手段 2 6 4とを経由せずに、 直接、 パケット変換手段 2 6 2 cに渡す。  That is, this time, the correspondence search means 26 1 c reads the value of the second socket field and the value of the third socket field from the correspondence management table of the storage means 27, respectively, in this IF bucket C. A value equal to the pair [A 2-1, P 2] of the source address and the source port number of this IP packet and the pair [A 2-2, P 5] of the destination address and the destination port number of this IP bucket C Is detected. Then, the correspondence detecting means 261c associates the IP bucket C with the second entry identifier stored in the entry identifier field of this entry by using the registered searching means 263c and the registering means 264. Pass it directly to the packet conversion means 262c without going through.
これ以降の処理は、上記 I Pバケツト Aの場合と同様に行なわれる。すなわち、 この I Pバケツト Cは、上記口一カルバケツ ト Bと同じ送信元ァドレス「A 2— 2」 と送信元ポート番号「P 4」と宛先ァドレス「A 1—x」とかつ宛先ポート番号「P 1」 とを持つローカルパケット (ローカルパケッ ト Dと呼ぶ) に変換される。 この 変換されたローカルパケッ ト Dがプライべ一トネッ トワーク 4を介して端末装置 1一 Xに送られる。  The subsequent processing is performed in the same manner as in the case of the IP bucket A. That is, this IP bucket C has the same source address "A2-2-2", source port number "P4", destination address "A1-x", and destination port number "P It is converted to a local packet with 1 ”(called local packet D). The converted local packet D is sent to the terminal device 11X via the private network 4.
また、上記 I Pバケツト Aおよびローカルバケツ ト Bを処理した後の端末装置 1 一 xから送出されるこの通信セッションの口一カルバケツ ト(ローカルバケツト E と呼ぶ) は、 上述したように、 宛先アドレスが 「A 2— 1」 であり、 宛先ポート番 号が 「P 4」 であり、 送信元アドレスが 「A 1— x」 であり、 かつ送信元ポート番 号が 「P 1」 となる。 この口一カルパケット Eは、 ネットワーク 4を介して、 中継 装置 2のバケツト受信手段 2 1に受信される。バケツト受信手段 2 1はこのロー力 ルパケット Eをアドレス変換手段 2 5 cに渡す。 In addition, the terminal device 1 after processing the IP bucket A and the local bucket B described above. As described above, the mouth packet of this communication session (called the local bucket E) transmitted from 1x has a destination address “A2-1” and a destination port number “P4”. And the source address is “A 1—x” and the source port number is “P 1”. This oral packet E is received by the bucket receiving means 21 of the relay device 2 via the network 4. The bucket receiving means 21 passes this roll packet E to the address translating means 25c.
ァドレス変換手段 2 5 cに渡された上記口一カルバケツト Eは対応検索手段 2 5 1 cで受取られる。対応検索手段 2 5 1 cは、上記ローカルバケツト Eを渡され ると、 まず、 記憶手段 2 7 cのポートテーブル 2 7 3 から、 第 1のポート番号フ ィールドの値がこのローカルバケツト Eの宛先ポート番号の値「P 4」 と等しいェ ントリを検索する。  The mouth packet E passed to the address conversion means 25 c is received by the correspondence search means 25 1 c. When the local bucket E is passed, the corresponding search means 25 1 c firstly reads the value of the first port number field from the port table 27 3 of the storage means 27 c to this local bucket E. Search for an entry that is equal to the destination port number value "P4" of the.
この場合、 ポートテーブル 2 7 3 cには、上記 I Pパケット Aを処理した際に登 録したェントリカ s存在し、このェントリが上記検索するェントリに対応するため、 対応検索手段 2 5 1 cは、 さらに、記憶手段 2 7 cの対応管理テーブル 2 7 2じか ら、第 1のソケットフィールドの値がこのロー力ルパケット Eの送信元ァドレスお よび送信元ポート番号の組 [A 1— x、 P 1 ] と等しく、 かつ、 第 2のソケットフ ィ一ルドの値が、 このローカルバケツト Eの宛先アドレスと、上記ポートテ一ブル の検索において検出されたポ一トテーブルのェントリの第 2のポ一ト番号フィ一 ルドの値との組 [A 2—l、 P 2 ] とに等しい値を持つエントリを検索する。 この場合、対応管理テーブル 2 7 2 cには、上記 I Pバケツト A処理時に登録し たェントリが存在し、 このェントリが上記検索するェントリに対応するため、対応 検索手段 2 5 1 cはこのローカルバケツ ト Eとこのェントリのェントリ識別子フ ィールドに格納された第 2のェントリ識別子とをバケツ ト変換手段 2 5 2 cに渡 す。 .  In this case, the entry table s registered at the time of processing the IP packet A exists in the port table 273 c, and this entry corresponds to the entry to be searched. Further, from the correspondence management table 272 of the storage means 27c, the value of the first socket field is a set of the source address and the source port number [A1—x, P 1] and the value of the second socket field is the destination address of this local bucket E and the second port of the entry in the port table found in the search for the port table. Searches for an entry whose value is equal to the pair [A 2-l, P 2] with the value of the field number field. In this case, the correspondence management table 2721c contains the entry registered at the time of the IP bucket A processing, and since this entry corresponds to the entry to be searched, the correspondence search means 2511c uses this local bucket. The packet E and the second entry identifier stored in the entry identifier field of this entry are passed to the bucket conversion means 255c. .
バケツト変換手段 2 5 2 cは、上記ローカルバケツト Eと上記第 2のェントリ識 別子とを渡されると、 このローカルバケツ ト Eを I Pバケツ卜に変換し、 この I F バケツ トの送信元ァドレスと送信元ポート番号とのそれぞれをこの第 2のェント リ識別子から識別される対応管理テーブル 2 7 2 cのエントリにおける第 3のソ ケットフィ一ルドに示される I Fアドレス ΓΑ 2— 2 J とポ一ト番号「P 5」 との 値に書き換える。 バケツト変換手段 2 5 2 cは、 さらに、 この I Pバケツ 卜の宛先 アドレスと宛先ポート番号とをこのェントリの第 2のソケットフィールドに示さ れる I Pアドレス 「A 2— 1」 とポート番号 「P 2」 とに書き換え、 この書き換え た I Pパケッ ト ( I Pパケット Fと呼ぶ) をパケット送信手段 2 2に渡す。 When the local bucket E and the second entry identifier are passed, the bucket converting means 25 2 c converts the local bucket E into an IP bucket, and transmits the address of the source of the IF bucket. And the source port number are respectively identified by the second entry identifier. The IF address ΓΑ 2 — 2 J and the PO address indicated in the third socket field in the entry of the correspondence management table 272 c are identified from the second entry identifier. Rewrite the value with the default number “P 5”. The bucket conversion means 2 52 2 c further includes a destination of this IP bucket. The address and the destination port number are rewritten to the IP address “A2-1” and the port number “P2” shown in the second socket field of this entry, and the rewritten IP packet (called IP packet F) To the packet transmission means 22.
バケツト送信手段 2 2は、上記 I Pバケツト Fを渡されると、 この I Pバケツト Fをグロ一パルネッ トワーク 5に送出し、この I Pバケツトは端末装置 3で受信さ れる。  Upon receiving the IP bucket F, the bucket transmitting means 22 sends the IP bucket F to the global network 5, and the IP bucket is received by the terminal device 3.
この第 4の実施の形態では、グローバルネットワーク 5に接続される端末装置 3 がーつの場合について説明したが、グロ一バルネットワーク 5に接続される端末装 置 3が複数の場合においても同様に適用することができる。  In the fourth embodiment, the case where only one terminal device 3 is connected to the global network 5 has been described, but the same applies to the case where there are a plurality of terminal devices 3 connected to the global network 5. can do.
また、 この第 4の実施の形態では、 グロ一バルネットワークと異なるネットヮ一 ク (非グローバルネットワークであるプライべ一トネッ トワーク 4 ) に接続された 端末装置(端末装置 1一 X ) とグロ一バルネットワークに接続された端末装置 (端 末装置 3) との間での通信について説明した。 しかし更に、複数の非グロ一バルネ ットワークそれぞれが上述した中継装置を介してアドレス体系の異なるネッ トヮ —クに接続された通信システムにおいても任意の非グローバルネッ トワークに接 続された任意の端末装置間の通信も同様に実現される。  In the fourth embodiment, a terminal device (terminal device 11X) connected to a network different from the global network (private network 4 which is a non-global network) is connected to a global device. The communication with the terminal device (terminal device 3) connected to the network was explained. However, even in a communication system in which a plurality of non-global networks are connected to networks having different address systems via the above-described relay device, any terminal connected to any non-global network Communication between the devices is similarly realized.
すなわち、第 1 1図に示される通信システムにおいて、任意の端末装置 1 3 1〜 1 3 n間での通信が可能である。 これは、第 iの非グローバルネットワーク 1 2 i (ただし 「 i」 は 「1、 2、 '··、 n」 のいずれか) に接続された端末装置 (端末装 置 Aとする) から第 jの非グローバルネットワーク 1 2 j (ただし 「; U は 「 1、 2、一、 n」 のいずれかであり、 かつ 「j≠ i」である) に接続された端末装置(端 末装置 Bとする) に対して通信セッションを開始するバケツトを送信する場合、第 iの中継装置 1 1 iが第 jの中継装置 1 1 jとその端末装置 Bとに対する動作が、 この第 1の実施の形態における端末装置 3に対する動作と等しくなるためである。 ただし、中継ネッ トワーク 1 1 0が非グローバルネットワークの場合、 中継ネッ ト ワーク 1 1 0のアドレス体系は第 iの非グロ一バルネッ トワーク 1 2 iのァドレ ス体系と第 j の非グロ一バルネッ トワーク 1 2 j のァドレス体系とのいずれとも 異ならなければならない。  That is, in the communication system shown in FIG. 11, communication between any of the terminal devices 13 1 to 13 n is possible. This is because the terminal device (terminal device A) connected to the i-th non-global network 1 2 i (where “i” is one of “1, 2, ' Terminal device (terminal device B) connected to the non-global network 1 2 j (where “; U is one of“ 1, 2, 1, n ”and“ j ≠ i ”) ), When the bucket for starting the communication session is transmitted, the operation of the i-th relay device 11 i with respect to the j-th relay device 11 j and its terminal device B is the same as that of the first embodiment. This is because the operation becomes the same as that for the terminal device 3. However, if the transit network 110 is a non-global network, the address system of the transit network 110 is composed of the i-th non-global network 12 i address system and the j-th non-global network It must be different from any of the 1 2 j addressing systems.
また、 この第 4の実施の形態では、端末装置 3がデータ通信を開始する際に名前 を知っている相手側の端末装置として端末装置 1一 Xの場合について説明したが、 このとき端末装置 3は中継装置 2 cの名前のみを知っていて、中継装置 2 cの名前 を指定してァドレス解決を行ってもよい。 Further, in the fourth embodiment, a case has been described where the terminal device 3 is a terminal device 11X as a partner terminal device that knows the name when the terminal device 3 starts data communication. At this time, the terminal device 3 may know only the name of the relay device 2c, and may perform address resolution by designating the name of the relay device 2c.
また、 この第 4の実施の形態では、本発明の第 1の実施の形態である第 5図の構 成に対して、記憶手段 2 7 cがポートテーブル 2 7 3 cを備えることと、 アドレス 変換手段 2 5 cとアドレス変換手段 2 6 cの動作機能が異なる形態について説明 したが、上述した第 2、 3の実施の形態である第 1 2図または第 1 5図の構成に対 しても、 記憶手段 2 7 a、 bにポ一トテーブル 2 7 3 a、 bを備え、 同様にァドレ ス変換手段 2 5 a、 bおよびアドレス変換手段 2 6 a、 bの内部の動作機能をこれ に合致させ、 アドレス変換手段 2 5 a、 bの対応検索手段 2 5 1 a、 と、 ァドレ ス変換手段 2 6 a、 bの登録検索手段 2 6 3 a、 bにてポートテーブル 2 7 3 a、 bの検索後に処理端末登録テーブル 2 7 1 a、 bを検索するようにして適用するこ とができる。  Further, in the fourth embodiment, the storage means 27 c has a port table 273 c as compared with the configuration of FIG. 5 which is the first embodiment of the present invention, Although the embodiment in which the operation functions of the conversion means 25c and the address conversion means 26c are different has been described, the configuration shown in FIG. 12 or FIG. 15 which is the second and third embodiments described above will be described. Also, the storage means 27a and b are provided with port tables 2773a and b, and the internal operation functions of the address conversion means 25a and b and the address conversion means 26a and b are similarly provided. And port search table 2 7 3 a using address conversion means 25 a and b corresponding search means 25 1 a and address conversion means 26 a and b registration search means 26 3 a and b This can be applied by searching the processing terminal registration table 27 1 a and b after searching for b.
次に本発明における通信プログラムの実施の形態について説明する。本実施の形 態では、 上述した第 1、 2、 3または第 4の実施の形態における、 本発明による端 末装置および中継装置それぞれは、特に図示されていないが、 データ処理装置およ ぴ記憶装置を備え、 さらに通信プログラムを備えるものである。 この記録媒体は、 磁気ディスク、半導体メモリ、 C D— R OMその他の記録媒体であってよい。 以降 の説明では、上述した同一名称において構成要素の主番号符号のみを記載し、 アル フアベットなどの付加符号を省略して示す。  Next, an embodiment of a communication program according to the present invention will be described. In the present embodiment, the terminal device and the relay device according to the present invention in the above-described first, second, third or fourth embodiment are not particularly shown, but are not shown in the data processing device and the storage device. It has a device and further has a communication program. This recording medium may be a magnetic disk, a semiconductor memory, a CD-ROM, or another recording medium. In the following description, only the main number signs of the constituent elements are described in the same names, and additional signs such as alphabets are omitted.
中継装置 2を制御する通信プログラムは、記録媒体から中継装置 2の記憶装置に 読み込まれ、記憶手段 2 7に処理端末登録テーブル 2 7 1、対応管理テーブル 2 7 2が記憶される。 また、 第 3の実施の形態に対応する通信プログラムでは、 更に、 能力情報を含む処理端末登録テーブル 2 7 1が記憶され、第 4の実施の形態に対応 する通信プログラムでは、 更に、 ポートテーブル 2 7 3が記憶される。  The communication program for controlling the relay device 2 is read from the storage medium into the storage device of the relay device 2, and the storage means 27 stores the processing terminal registration table 271 and the correspondence management table 272. In the communication program corresponding to the third embodiment, a processing terminal registration table 271 including capability information is further stored. In the communication program corresponding to the fourth embodiment, a port table 2 7 3 is stored.
そして、 通信プログラムは、 データ処理装置に、 パケット受信手段 2 1、 2 3、 パケット送信手段 2 2、 2 4、 アドレス変換手段 2 5、 2 6、 およびアドレス問合 せ応答手段 2 8を生成させ、 その動作を制御する。 また、 第 2の実施の形態に対応 する通信プログラムは、 データ処理装置に、 登録要求受信手段 2 9 1、動作確認要 求手段 2 9 3、 および削除要求受信手段 2 9 2を更に生成する。 また、第 3の実施 の形態に対応する通信プログラムは、データ処理装置に能力情報受信手段 2 9 4を 101284 更に生成し、 それらの動作を制御する。 Then, the communication program causes the data processing device to generate packet receiving means 21, 23, packet transmitting means 22, 24, address converting means 25, 26, and address inquiry response means 28. Control its operation. Further, the communication program according to the second embodiment further generates a registration request receiving unit 291, an operation check requesting unit 293, and a deletion request receiving unit 292 in the data processing device. Further, the communication program corresponding to the third embodiment includes a capability information receiving unit 294 in the data processing device. 101284 Further generate and control their operation.
データ処理装置は、 上述の通信プログラムの制御により第 1、 2、 3及び 4の実 施の形態における中継装置 2で説明した通信処理と同一の処理を実行する。  The data processing device executes the same process as the communication process described in the relay device 2 in the first, second, third, and fourth embodiments under the control of the communication program described above.
端末装置 1を制御する通信プログラムは、第 2の実施の形態に対応する場合、記 録媒体から端末装置 1に読み込まれ、データ処理装置に電源操作監視手段 11、登 録要求送信手段 12、動作確認応答手段 14、削除要求送信手段 13を生成させ、 その動作を制御する。 また、第 3の実施の形態に対応する通信プログラムは、 能力 情報送信手段 16を更に生成させ、その動作を制御する。 また第 2の実施の形態に 対応する通信プログラムは、記憶手段 15に提供サービスリストが記憶される。 ま た、第 3の実施の形態に対応する通信プログラムは、記憶手段 15に更に処理能力 情報が記憶される。  When the communication program for controlling the terminal device 1 corresponds to the second embodiment, the communication program is read from the recording medium into the terminal device 1 and is supplied to the data processing device by the power operation monitoring means 11, the registration request transmitting means 12, the operation, The acknowledgment means 14 and the deletion request transmission means 13 are generated and their operations are controlled. Further, the communication program according to the third embodiment further causes the capability information transmitting means 16 to generate and control the operation thereof. In the communication program corresponding to the second embodiment, a provided service list is stored in the storage unit 15. Further, in the communication program corresponding to the third embodiment, processing capability information is further stored in the storage means 15.
データ処理装置は、 この通信プログラムの制御により第 2、 3の実施の形態にお ける端末装置 1による通信処理と同一の処理を実行する。  The data processing device executes the same processing as the communication processing by the terminal device 1 in the second and third embodiments under the control of the communication program.
【実施例】  【Example】
次に、本発明における第 1の実施例を、第 23図および第 24図を参照して説明 する。 かかる実施例は上述した第 1の実施の形態に対応するものである。従って、 以下の動作手順は上記第 10図に基づいて説明する。また、第 23図および第 24 図に示されない構成要素については、上記第 1の実施の形態で参照した第 5図から 第 8図までに用いた番号符号により説明する。  Next, a first embodiment of the present invention will be described with reference to FIG. 23 and FIG. Such an example corresponds to the first embodiment described above. Therefore, the following operation procedure will be described with reference to FIG. Components that are not shown in FIGS. 23 and 24 will be described using the reference numerals used in FIGS. 5 to 8 referred to in the first embodiment.
第 23図に示すとおり、本実施例では、 プライベートネットワーク 4としてィー サ一ネット (Ethe rne t) 4 dが構築され、 このイーサ一ネット 4 dには所 有者によって管現されるプライベートアドレス体系 (192. 168. X XX. X XX) が採用されている。 グローバルネットワーク 5としては、 I Pネットワーク 5 dが構築され、 I Pネットワーク 5 dはグロ一パルアドレス体系を採用する既存 のインターネッ トである。 また、端末装置 1としてパーソナルコンピュータなどの メール端末 1 d— 2、 中継装置として I SDNルータ 2 d、 かつ、端末装置 3とし て外部の利用者が利用する端末装置外部利用者端末 3 d、それぞれが備えられてい る。 I SDNルータ 2 dは I SDNで I SP (I nt erne t Serv i ce Pr ov i de r) 網に接続されている。  As shown in FIG. 23, in this embodiment, an Ethernet 4 d is constructed as the private network 4, and a private address managed by the owner is stored in the Ethernet 4 d. The system (192.168.XXX.XXX) is adopted. As the global network 5, an IP network 5d is constructed, and the IP network 5d is an existing Internet adopting a global address system. Also, a mail terminal 1 d-2 such as a personal computer as the terminal device 1, an ISDN router 2 d as a relay device, and a terminal device external user terminal 3 d used by an external user as the terminal device 3. Is provided. The ISDN router 2d is connected to an ISP (Internet Service Provider) network by the ISDN.
プライベートネッ トワーク 4およびこのネッ トワークに接続される装置で構成 されるイーサーネット 4 dは、個人の宅内に配線されたイーサーネットケ一ブルと このケーブルに直接、 または、 イーサ一ネットハブを介して接続されるパーソナル コンピュータからなる個人の宅内ネットワークシステム、 または、 同様な構成で構 築された小規模事業所の SOHO (Sma 1 1 Of f i ce Home Of f i ce) が対象でありえる。 ここでは、 このイーサ一ネッ ト 4 dに、 FTP (F i 1 e Trans f er P r o t o c o 1 )サービスを提供する FTPサーバプ ログラムが搭載され、 名前が 「f t p. us er— a. i s p 1. n e. j p」 で アドレスが 「192. 168. 0. 2」 である FTPサーバ 1 d— 1と、 電子メー ルを送受信するプログラムが搭載され、 名前が 「P c 1. us e r— 1. i s p 1. n e. j p」 であるメ一ル端末 1 d— 2とが接続されているとする。 Consists of private network 4 and devices connected to this network The Ethernet 4d is a personal home network system consisting of an Ethernet cable wired in the home of the individual and a personal computer connected to this cable directly or via an Ethernet hub. The SOHO (Sma 11 Of Office Home Of), a small business establishment constructed in a similar configuration, can be targeted. Here, an FTP server program that provides FTP (File Transfer Protocol 1) service is installed on this Ethernet 4d, and the name is `` ft p. User—a.isp 1. FTP server 1 d—1 with the address “192.168.0.2” and the address “192.168.0.2”, and a program for sending and receiving e-mail, and the name “P c 1. user— 1. It is assumed that a mail terminal 1d-2 which is isp 1.ne.jp "is connected.
I SDNルータ 2 dは、 名前が 「u s e r— a. i s p 1. n e. j p」 で、 こ のイーサ一ネット 4 d側のアドレスとして 「192. 168. 0. 1」 が、 また、 この I SPから割り当てられたグロ一バルアドレスとして 「133. 1. 1. 5」 が割り当てられているとする。 また、 I SDNルータ 2 dは、 第 24図に示される ような記憶手段 27 dを有し、記憶手段 27 d波処理端末登録テーブル 271 dお よび対応管理テーブル 272 dを備えている。  I The SDN router 2d has the name “user—a. Isp 1.ne.jp”, and “192.168.0.1” as the address on the Ethernet 4d side. It is assumed that “133.1.1.5” is assigned as a global address assigned by the SP. Further, the ISDN router 2d has a storage unit 27d as shown in FIG. 24, and has a storage unit 27d, a wave processing terminal registration table 271d, and a correspondence management table 272d.
ここで、 FTPサーバ 1 d— 1が外部利用者端末装置 3dに対して、 FTPサー ビスを提供するとする。 この場合、第 24図に示されるように、 I SDNルータ 2 dの処理端末登録テーブル 271 dには、 FTPサーバ 1 d— 1のアドレスと、 F TPサービスに対応するポート番号 「20」 が、 予め、 登録されている。 また、 対 応管理テーブル 272 dにはェントリが未だ存在しないものとする。  Here, it is assumed that the FTP server 1d-1 provides the FTP service to the external user terminal device 3d. In this case, as shown in FIG. 24, in the processing terminal registration table 271 d of the I SDN router 2 d, the address of the FTP server 1 d-1 and the port number “20” corresponding to the FTP service are It is registered in advance. It is also assumed that no entry exists in the correspondence management table 272d.
このとき、 外部利用者端末 3 dがポート番号 「1024」 のポートから 「us e r -a. i sp l. n e. j p」宛てに FTPサービスを利用するためのデータ通 信を開始するとする。以降のステップ番号は、上記第 10図を参照したものである。 外部利用者端末 3 dは 「u s e r— a. i sp l. n e. j p」 の名前からアド レス解決問合せメッセージを作成し、 このアドレス解決問合せメッセージを送信 (ステップ S 1)すると、 I SDNルータ 2 d、 または、 I SP内でこの I SDN ルータ 2 dのァドレスを解決できるネットワークサーバがこのァドレス解決問合 せメッセージに応答するァドレス解決応答メッセージを作成し、このァドレス解決 応答メッセ一ジを外部利用者端末 3 dに送信 (ステップ S 2)する。 このとき、 こ のアドレス解決応答メッセージには、このァドレス解決問合せメッセージで問い合 わされた I S DNルータ 2 dのアドレスが 「1 3 3. 1 . 1 . 5」 であるとの情報 が内包されている。 At this time, it is assumed that the external user terminal 3d starts data communication for using the FTP service from the port with the port number "1024" to "user-a.ispl.ne.jp". The subsequent step numbers refer to FIG. 10 described above. The external user terminal 3 d creates an address resolution inquiry message from the name “user—a. Isp l. Ne e.jp” and sends this address resolution inquiry message (step S 1). 2d or a network server capable of resolving the address of this ISDN router 2d within the ISP creates an address resolution response message in response to this address resolution inquiry message, and sends this address resolution response message to the outside. Send to user terminal 3d (step S2). At this time, Contains the information that the address of the ISDN router 2 d queried in the address resolution inquiry message is “13.3.1.1.5”.
外部利用者端末 3 dは、上記ァドレス解決応答メッセージを受信すると、宛先ァ ドレスをこのアドレス解決応答メッセージで通知されたアドレス 「1 3 3. 1 . 1 . 5」 であり、 宛先ポート番号が F T Pサービスに対応する 「2 0」 であり、 送信元 アドレスが外部利用者端末 3 dのアドレスである 「2 0 8. 1 9 2. 0. 1」 であ り、 かつ送信元ポート番号が 「1 0 2 4」 である I Pバケツトを作成し、 この I P バケツトを I S DNルータ 2 dに送信する。  When receiving the address resolution response message, the external user terminal 3d sets the destination address to the address "1 3.1.1.1.5" notified by the address resolution response message, and the destination port number is FTP. "2 0" corresponding to the service, the source address is "20.18.12.0.0.1" which is the address of the external user terminal 3d, and the source port number is "1". It creates an IP bucket of "0 2 4" and sends this IP bucket to the ISDN router 2d.
I S DNルータ 2 dでは、上記 I Pバケツトを受信すると、 この I Pバケツトは バケツト受信手段 2 3から対応検索手段 2 6 1と渡され、対応管理テーブル 2 7 2 dにはこの I Pバケツトに対応するェントリが存在しないため、この I Pバケツト は登録検索手段 2 6 3に渡される。  Upon receiving the above IP bucket, the IS DN router 2d passes the IP bucket from the bucket receiving means 23 to the correspondence search means 261, and the correspondence management table 27 2d stores an entry corresponding to this IP bucket. Since the IP packet does not exist, this IP bucket is passed to the registration and retrieval means 263.
登録検索手段 2 6 3は、 処理端末登録テーブル 2 7 1 dを参照し、 ここでは、 処 理端末登録テーブル 2 7 1 dに、ポート番号フィールドがこの I Pバケツ卜の宛先 ポート番号と等しい 「2 0」 の値を持つエントリが存在するため、 登録手段 2 6 4 にこのェントリのェントリ識別子 「1」 とこの I Pバケツトとを渡す。  The registration search means 263 refers to the processing terminal registration table 271 d. Here, in the processing terminal registration table 271 d, the port number field is equal to the destination port number of this IP bucket. Since there is an entry having a value of "0", the entry identifier "1" of this entry and this IP bucket are passed to the registration means 264.
登録手段 2 6 4では、渡されたェントリ識別子に対応する処理端末登録テーブル 2 7 1 dのェントリの内容と、渡された I Pバケツ 卜の内容から、対応管理テ一ブ ル 2 7 2 dにこの I Pパケットに関する対応を、 図示されるように、 登録する。 以降、 I S DNルータ 2 dは、 この登録した対応管理テーブル 2 7 2 dのェント リを参照し、 F T Pサーバ 1 d— 1のポート番号「2 0」 と外部利用者端末 3 dの ポート番号 「1 0 2 4」 との間での I Pパケットを中継する。  The registration means 264 uses the contents of the entry in the processing terminal registration table 271 d corresponding to the passed entry identifier and the contents of the passed IP bucket to the correspondence management table 272 d. The correspondence for this IP packet is registered as shown. Thereafter, the IS DN router 2 d refers to the entry of the registered correspondence management table 27 2 d, and refers to the port number “20” of the FTP server 1 d—1 and the port number “2 0” of the external user terminal 3 d. 1 0 2 4 ”is relayed.
この第 1の実施例において、プライベートネットワーク 4をイーサーネット 4 d で構成する例を示したが、 プライべ一トネットワーク 4は I E E E 1 3 9 4、無線 L AN等、他の通信媒体や通信プロトコルを用いたネッ トワークであってもよい。 また、中継装置である I S Dルータ 2 dからグロ一バルネットワークである I P ネットワーク 5 dへの接続が専用線である場合、中継装置はこの専用線を収容する ィンタフェース装置を備えた I Pルータであってもよい。  In the first embodiment, an example in which the private network 4 is configured by the Ethernet 4 d has been described. However, the private network 4 is not limited to other communication media and communication protocols such as IEEE 1394 and wireless LAN. May be used. If the connection from the ISD router 2d, which is a relay device, to the IP network 5d, which is a global network, is a dedicated line, the relay device is an IP router having an interface device that accommodates this dedicated line. You may.
次に、本発明における第 2の実施例を、第 2 5図および第 2 6図を参照して説明 する。かかる実施例は上述した第 4の実施の形態に対応するものである。従って、 第 25図および第 26図に示されない構成要素については、上記第 4の実施の形態 で用いた番号符号からサフィックス 「c」 を除いて説明する。 また、 以下の動作手 順は上記第 10図に基づくものである。 Next, a second embodiment of the present invention will be described with reference to FIGS. 25 and 26. I do. This example corresponds to the above-described fourth embodiment. Therefore, components that are not shown in FIGS. 25 and 26 will be described by removing the suffix “c” from the reference numerals used in the fourth embodiment. The following operation procedure is based on FIG. 10 described above.
第 25図に示すとおり、 本実施例は、無線通信網 4 e、 I Pネットワーク 5 e、 携帯情報機器 1 e、携帯電話端末装置 2 e、および外部利用者端末 3 eを備えてい る。無線通信網 4 eは、 プライベートネットワーク 4として 「B 1 ue t oo t h Spe c i f i ca t i on ver s i on 1. 0 A」 に記載されるブル一 ツース (B l ue t ooth)技術を利用したものである。 また I Pネットワーク 5 eは、グローバルネットワーク 5として既存のインタネットと移動通信網とから 構成される。携帯情報機器 1 eは端末装置 1— Xとしてブルーツース技術でのスレ ーブ (s 1 ave) と同一の通信機能を有する。 携帯電話端末装置 2 eは、 中継装 置 2として I Pネットワーク 5 eとの TCPZI P通信機能と、ブルーッ一ス技術 でのマスタ一 (ma s t e r) と同一の通信機能と、 さらにはこれらのプロトコル 間のプロトコル変換機能を有し、プライベートネットワーク 4とグロ一バルネット ワーク 5との間の通信を中継する機能を搭載している。 また、外部利用者端末 3 e は端末装置 3として外部の利用者が利用するものである。  As shown in FIG. 25, this embodiment includes a wireless communication network 4e, an IP network 5e, a portable information device 1e, a mobile phone terminal device 2e, and an external user terminal 3e. The wireless communication network 4 e uses the Bluetooth technology described in “B 1 ue to oo th Spe cifi ca ti on ver si on 1.0 A” as the private network 4. It is. In addition, the IP network 5 e is configured as a global network 5 from the existing Internet and a mobile communication network. The portable information device 1e has the same communication function as the slave (s1ave) in the Bluetooth technology as the terminal device 1-X. The mobile phone terminal 2 e has a TCPZIP communication function with the IP network 5 e as the relay device 2, the same communication function as the master in the Bluetooth technology, and a communication function between these protocols. It has a function of relaying communication between the private network 4 and the global network 5. The external user terminal 3 e is used by an external user as the terminal device 3.
端末装置 1—Xとして利用される携帯情報機器 1 eとして、 ここでは、 カメラ 1 e— 1、 ビデオカメラ l e— 2、 およびノート PC (Pe r sona l C omp ut e r) 1 e— 3を例に挙げ、 それぞれ、 ブルーツースにおけるアドレス 1、 2、 3を割り当てられているとする。 また、 このノート PCl e_3は、 FTPプロト コルを解釈して FTPサービスを提供する FTPサーバプログラムとファイルを 記憶する記憶装置とを搭載し、携帯電話端末装置 2 eとブルーッ一ス技術によって 直接通信を行う FTPサーバ専用機器であるとする。  Here, as an example of a portable information device 1 e used as a terminal device 1—X, a camera 1 e— 1, a video camera le— 2 and a notebook PC (Pe r sonal Computer) 1 e— 3 are examples. Suppose that they are assigned Bluetooth addresses 1, 2, and 3, respectively. This notebook PC_3 is equipped with an FTP server program that interprets the FTP protocol and provides the FTP service, and a storage device that stores files, and communicates directly with the mobile phone terminal device 2e using Bluetooth technology. Suppose the device is dedicated to the FTP server.
携帯電話端末装置 2eは、 I Pネットワーク 5 eから識別するための名前「u s e r - a. o p 1. c o. j p」 が割り当てられており、 かつ、 I Pネットワーク 5 eのグロ一バルアドレス 「133. 1. 1. 5」 が割り当てられているとする。 また、 FTPサービスに対応する無線通信網 4 eのポート番号は 「10」 であり- I Pネットヮ一ク 5 eのポ一ト番号を 「20」 とする。  The mobile phone terminal device 2e is assigned a name "user-a.op 1.co.jp" for identification from the IP network 5e, and has a global address of 133. 1.1.5 ”is assigned. The port number of the wireless communication network 4e corresponding to the FTP service is "10", and the port number of the IP network 5e is "20".
従って、第 26図に示されるように、携帯電話端末装置 2 eの記億手段 27 eに おけるポ一トテーブル 273 eには、 FTPサービスに対応する無線通信網 4 eの ポート番号 「10」 と I Fネットワーク 5 eのポ一ト番号 「20」 の対応が、 また、 処理端末登録テーブル 271 eには、 ノート PC 1 e— 3のアドレス 「3」 と、 F TPサービスに対応する無線通信網 4 eのポート番号「10」の対応が予め登録さ れている。 しかし、対応管理テーブル 272 eにはェントリが未だ存在しないもの とする。 Therefore, as shown in FIG. 26, the storage means 27 e of the mobile phone terminal device 2 e In the port table 273 e, the correspondence between the port number “10” of the wireless communication network 4 e corresponding to the FTP service and the port number “20” of the IF network 5 e is described. In e, the correspondence between the address “3” of the notebook PC 1 e-3 and the port number “10” of the wireless communication network 4 e corresponding to the FTP service is registered in advance. However, it is assumed that the entry does not yet exist in the correspondence management table 272 e.
ここで、 ノート PC 1 e— 3が外部利用者端末 3 eに対して、 FTPサービスを 提供するとする。 このとき、 外部利用者端末 3 eがポート番号 「1024」 のポ一 卜から 「user— a. o p 1. c o. j p」宛てに FTPサービスを利用するた めのデータ通信を開始するとする。  Here, it is assumed that the notebook PC 1 e-3 provides the FTP service to the external user terminal 3 e. At this time, it is assumed that the external user terminal 3e starts data communication for using the FTP service from the port having the port number "1024" to "user-apop 1.co.jp".
外部利用者端末 3 eは 「u s e r— a. op 1. c o. j p」 の名前からァドレ ス解決問合せメッセージを作成し、 このァドレス解決問合せメッセージを送信(ス テツプ S 1)すると、携帯電話端末装置 2 e、 または移動通信網内でこの携帯電話 端末装置 2 eのアドレスを解決できるネッ トワークサーバがこのアドレス解決問 合せメッセージに応答するアドレス解決応答メッセージを作成し、このァドレス解 決応答メッセージを外部利用者端末 3 eに送信 (ステップ S2)する。 このとき、 このアドレス解決応答メッセージには、このアドレス解決問合せメッセージで問い 合わされた携帯電話端末装置 2 eのアドレスが 「133. 1. 1. 5」 であるとの 情報が内包されている。  The external user terminal 3 e creates an address resolution inquiry message from the name “user—a.op 1.co.jp” and sends this address resolution inquiry message (step S 1). The device 2e or a network server capable of resolving the address of the mobile phone terminal device 2e in the mobile communication network creates an address resolution response message responding to the address resolution inquiry message, and transmits the address resolution response message. Transmit to external user terminal 3e (step S2). At this time, the address resolution response message contains information indicating that the address of the mobile phone terminal device 2 e queried in the address resolution inquiry message is “133.1.1.5”.
外部利用者端末 3 eは、上記ァドレス解決応答メッセージを受信すると、宛先ァ ドレスがこのアドレス解決応答メッセージで通知されたアドレス 「133. 1. 1. 5」 であり、 宛先ポート番号が FTPサービスに対応する 「20」 であり、 送信元 アドレスが外部利用者端末 3 eのアドレスである 「208. 192. 0. 1」 であ り、 かつ送信元ポート番号が 「1024」 である I Pバケツ トを作成し、 この I P パケットを携帯電話端末装置 2 eに送信する。  When the external user terminal 3 e receives the address resolution response message, the destination address is the address “133. 1.1.5” notified in the address resolution response message, and the destination port number is set to the FTP service. The corresponding IP bucket is “20”, the source address is “208.192.0.1”, which is the address of the external user terminal 3 e, and the source port number is “1024”. Create and send this IP packet to the mobile phone terminal 2e.
携帯電話端末装置 2 eでは、上記 I Pバケツトを受信すると、 この I Pバケツト はバケツト受信手段 23から対応検索手段 261へ渡され、対応管理テーブル 27 2 eにはこの時点でこの I Pパケットに対応するェントリが存在しないため、この I Pバケツトは登録検索手段 263に渡される。  Upon receiving the IP bucket, the mobile phone terminal device 2 e passes the IP bucket from the bucket receiving means 23 to the correspondence search means 261, and the correspondence management table 27 2 e stores the entry corresponding to this IP packet at this time. Since the IP packet does not exist, the IP bucket is passed to the registration / retrieval means 263.
登録検索手段 263は、 ポートテ一ブル 273 eの検索により、 この I Pバケツ 卜の宛先ポート番号 「2 0」 に対応する無線通信網 4 eのポート番号が 「1 0」 で あることを知り、 さらに、処理端末登録テーブル 2 7 1 eの検索により、 ポート番 号「1 0」のサービスを提供する無線通信網 4 eの端末装置 1 e— Xのアドレスを 登録したェントリが検出されるため、登録検索手段 2 6 3はこの I Pバケツ トとこ のエントリのエントリ識別子 「1」 を登録手段 2 6 4に渡す。 The registration search means 263 searches the port table 273 e for this IP bucket. Knows that the port number of the wireless communication network 4 e corresponding to the destination port number “2 0” of the server is “1 0”. Further, by searching the processing terminal registration table 27 1 e, the port number “1 Since the entry in which the address of the radio communication network 4e providing the service of “0” is registered 1e—X is detected, the registration search means 266 3 uses the IP bucket and the entry identifier “1” of this entry. Is passed to the registration means 2 6 4.
登録手段 2 6 4では、渡されたェントリ識別子「1」 に対応する処理端末登録テ —ブル 2 7 1 eのェントリの内容と、渡された I Pバケツトの内容から、対応管理 テーブル 2 7 2 eにこの I Pバケツ卜に関する対応を、図示されるように登録する。 以降、携帯電話端末装置 2 eは、 この登録した対応管理テーブル 2 7 2 eのェン トリを参照し、ノート P C 1 e— 3の FT Pサーバプログラムとのブルーツースに よる通信と外部利用者端末 3 eのポート番号「1 0 2 4」 との間での T C P/ I P による通信を中継する。  The registration means 264 uses the correspondence management table 272 e from the contents of the entry of the processing terminal registration table 271 e corresponding to the passed entry identifier "1" and the contents of the passed IP bucket. The correspondence regarding the IP bucket is registered as shown in FIG. Thereafter, the mobile phone terminal device 2 e refers to the entry of the registered correspondence management table 272 e and communicates with the FTP server program of the notebook PC 1 e-3 by Bluetooth and the external user terminal. 3 Relay TCP / IP communication with port number "1 0 2 4" of e.
上述したように、 本発明により次のような効果がある。  As described above, the present invention has the following effects.
第 1の効果は、グローバルネットワークに接続された端末装置からプライべ一ト ネットワークに接続された端末装置に対してデータ通信を開始することができる ことである。その理由は、 グローバルネットワークとプライべ一トネットワークを 接続する中継装置においてプライべ一トネッ トワークに接続された端末装置のァ ドレスとこの端末装置が提供するサービスに対応するポート番号との対応を管理 し、 この対応を参照して、 グローバルネットワークに接続された端末装置からのデ —夕通信を開始するローカルバケツ卜の宛先を変換して中継するためである。この 結果、この中継装置がプライべ一トネットワークに接続された複数の端末装置に対 して一つのグローバルアドレスを対応させた場合にも、データ通信を開始する I P バケツ トに含まれる宛先ポート番号の値によりこの I Pバケツ トを転送する端末 装置を識別できるからである。  The first effect is that data communication can be started from a terminal device connected to the global network to a terminal device connected to the private network. The reason is that the relay device that connects the global network and the private network manages the correspondence between the address of the terminal device connected to the private network and the port number corresponding to the service provided by this terminal device. Then, referring to this correspondence, the destination of the local bucket for starting the data communication from the terminal device connected to the global network is converted and relayed. As a result, even when this relay device associates one global address with a plurality of terminal devices connected to the private network, the destination port number included in the IP packet that starts data communication is also obtained. This is because the terminal device that transfers this IP bucket can be identified by the value of.
第 2の効果は、異なるプライベートネットワークに接続された端末装置間で相手 側の端末装置のァドレス解決ができることである。 これにより、異なるプライべ一 トネッ トワークに接続された端末装置間でのデータ通信が可能になる。その理由は、 上記第 1の効果の理由と同じである。  The second effect is that the address of the terminal device on the other end can be resolved between terminal devices connected to different private networks. This enables data communication between terminal devices connected to different private networks. The reason is the same as the reason for the first effect.
第 3の効果は、プライべ一トネットワークに接続された端末装置が動作している ときのみデータ通信を開始する I Pバケツトが中継されることである。これにより、 受取る端末装置が存在しない I Pバケツ トを無駄に中継することを防ぐことがで きる。 その理由は、 プライベートネットワークに接続される端末装置は、起動する 際に中継装置に提供するサービスを登録し、終了する際にこの登録したサービスを 削除するからである。 The third effect is that an IP bucket that starts data communication is relayed only when a terminal device connected to a private network is operating. This allows It is possible to prevent IP packets that do not have a receiving terminal device from being relayed unnecessarily. The reason is that a terminal device connected to the private network registers a service to be provided to the relay device when it starts up, and deletes the registered service when it ends.
第 4の効果は、プライベートネットワークに接続された端末装置が何らかの異常 により正常な動作ができなくなったときにはデータ通信を開始する I Pバケツ ト が中継されなくなることである。 これにより、受取る端末装置が正常に動作してい ない I Pバケツトを無駄に中継することを防ぐことができる。その理由は、中継装 置がサービスを登録しているプライべ一トネッ トワークに接続された端末装置に 対して周期的に正常に動作しているか否かを確認しているからである。  The fourth effect is that when a terminal device connected to the private network cannot operate normally due to some abnormality, an IP bucket for starting data communication is not relayed. As a result, it is possible to prevent the receiving terminal device from unnecessarily relaying the IP bucket that is not operating normally. The reason is that the relay equipment periodically checks whether it is operating normally with respect to the terminal equipment connected to the private network in which the service is registered.
第 5の効果は、 特に、 第 1の実施例と第 2の実施例とで示したように、 プライべ ートネットワークを一利用者が管理するような状況においては、プライベートネッ トワークに接続され同じサービスを提供可能な複数の端末装置が存在する場合に、 現在このサービスを提供している端末装置が動作を終了しても、その後のこのサ一 ビスの要求に対して自動的に他のこのサービスを提供可能な端末装置との通信が 可能になることである。その理由は、 プライべ一トネットワークにおいてはポート 番号リソースをこのプライべ一トネッ トワークに接続される端末装置間で共有し ており、かつ、上記の第 3の効果と第 4の効果の理由で説明したとおり端末装置が 非動作状態になつた場合は自動的にこの端末装置の提供サービスの登録が削除さ れるため、現在このサ一ビスを提供している端末装置が動作を終了しても、 中継装 置はその後のこのサービスの要求に対してこのサ一ビスの提供を登録している他 の端末装置へ中継することができるからである。 産業上の利用の可能性  The fifth effect is that, in particular, as shown in the first embodiment and the second embodiment, in a situation where one user manages the private network, the private network is connected to the private network. If there are multiple terminals that can provide the same service, even if the terminal that is currently providing this service stops operating, another request for this service will be automatically sent to another terminal. This is to enable communication with terminal devices that can provide this service. The reason is that, in the private network, the port number resource is shared between the terminal devices connected to the private network, and for the reasons of the third and fourth effects described above. As described above, when the terminal device becomes inactive, the registration of the service provided by this terminal device is automatically deleted, so that even if the terminal device currently providing this service ends operation, This is because the relay device can relay the subsequent request for this service to another terminal device that has registered the provision of this service. Industrial applicability
以上のように、 本発明にかかる端末装置、 中継装置、 通信方法及びその通信プロ グラムは、異なるアドレス体系によつて構成される複数ネットワーク間でのデ一タ 通信に適している。  As described above, the terminal device, the relay device, the communication method, and the communication program according to the present invention are suitable for data communication between a plurality of networks configured by different address systems.
すなわち、本発明に係る通信装置および通信方法は、 グロ一バルネットワークに 接続された端末装置からプライべ一トネッ トワークに接続された端末装置に対し てデータ通信を開始することができる。 また、異なるプライべ一トネッ トワークに 接続された端末装置間で相手側の端末装置のァドレス解決ができ、 これにより、異 なるプライベートネットワークに接続された端末装置間でのデータ通信が可能に なるからである。 That is, the communication device and the communication method according to the present invention can start data communication from a terminal device connected to the global network to a terminal device connected to the private network. Also, for different private networks This is because the address of the partner terminal device can be resolved between the connected terminal devices, thereby enabling data communication between the terminal devices connected to different private networks.
更に、プライベートネットワークに接続された端末装置が動作しているときのみ データ通信を開始する I Pバケツトが中継される。 これにより、受取る端末装置が 存在しない I Pバケツトを無駄に中継することを防ぐことができる。  Further, an IP bucket for starting data communication is relayed only when the terminal device connected to the private network is operating. As a result, it is possible to prevent an IP bucket in which a receiving terminal device does not exist from being relayed needlessly.

Claims

請 求 の 範 囲 The scope of the claims
1 . 第 1のネッ トワークと、 この第 1のネットワークとはァドレス体系の異なる 第 2のネットワークとが中継装置を介して接続されており、 1. The first network and a second network having a different addressing system from the first network are connected via a relay device,
前記中継装置は、前記第 1のネットワークに接続された第 1の端末装置のァドレ スと、前記第 1の端末装置が提供するサービスのサービス識別子とを含んだ少なく とも一つの第 1のェントリを第 1の管理テーブルに記憶しておき、  The relay device includes at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device. Memorized in the first management table,
前記第 2のネットヮ一クに接続された第 2の端末装置は、あるサービスに宛てた バケツトを送信し、  A second terminal device connected to the second network transmits a bucket addressed to a certain service,
前記中継装置は、前記バケツトを受信すると、前記第 1の管理テーブルから前記 バケツトに含まれる宛先サービス識別子と同じサービス識別子を持つ第 1のェン トリを検索し、前記バケツトの宛先アドレスを検出された第 1のエントリにおける 第 1の端末装置のァドレスに書き換え、かつ前記第 1の端末装置に前記パケットを 送信する  Upon receiving the bucket, the relay device searches the first management table for a first entry having the same service identifier as the destination service identifier included in the bucket, and detects the destination address of the bucket. To the address of the first terminal device in the first entry, and transmits the packet to the first terminal device.
ことを特徴とする通信方法。 A communication method, comprising:
2. 第 1のネットワークと、 この第 1のネットワークとはアドレス体系の異なる 第 2のネットワークとが中継装置を介して接続されており、  2. The first network and a second network having a different address system from the first network are connected via a relay device,
前記中継装置は、  The relay device,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと、前記第 1の 端末装置が提供するサ一ビスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを第 1の管理テーブルに記憶しておき、  A first management table stores at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device. Remember,
前記第 1のネッ トワークに接続された第 1の端末装置のァドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケッ卜と、前記第 2のネットヮー クに接続された第 2の端末装置のァドレスと前記第 2の端末装置のサービス識別 子との組である第 2のソケットと、この中継装置の前記第 2のネットワークにおけ るアドレスとこの中継装置の前記第 2のネッ トワークにおけるサービス識別子と の組である第 3のソケッ トとを含んだ少なくとも一つの第 2のェントリを記憶す るための第 2の管理テーブルを用意しておき、  A first socket, which is a set of an address of a first terminal device connected to the first network and a service identifier of the first terminal device, and a first socket connected to the second network; A second socket, which is a set of an address of the second terminal device and a service identifier of the second terminal device, an address of the relay device in the second network, and a second address of the relay device. A second management table for storing at least one second entry including a third socket which is a pair with a service identifier in the network is prepared,
前記第 2のネットワークに接続された第 2の端末装置は、あるサービスに宛てた パケットを送信し、 前記中継装置は、 A second terminal connected to the second network transmits a packet addressed to a service, The relay device,
前記第 2のネットワークからバケツトを受信した際に、前記第 2の管理テーブル から、第 2のソケットと第 3のソケットとの値それぞれが、 このパケットの送信元 ァドレスと送信元サービス識別子との組と、宛先ァドレスと宛先サービス識別子と の組とのそれぞれと同じ第 2のェントリを検索し、  When a bucket is received from the second network, the value of the second socket and the value of the third socket are respectively set from the second management table as a set of a source address and a source service identifier of this packet. And the same second entry as each of the destination address and destination service identifier pair,
前記第 2のェントリが検出されない場合、前記第 1の管理テーブルから、前記パ ケッ卜に含まれる宛先サービス識別子と同じサービス識別子を持つ第 1のェント リを検索し、  If the second entry is not detected, the first management table is searched for a first entry having the same service identifier as the destination service identifier included in the packet,
検出された第 1のェントリにおける前記第 1の端末装置のァドレスとこの第 1 のエントリのサービス識別子との組 第 1のソケットとし、前記パケットの送信元 ァドレスと送信元サービス識別子との組を第 2のソケットとし、前記バケツ卜の宛 先ァドレスと宛先サービス識別子との組を第 3のソケットとし、前記第 1のソケッ トと前記第 2のソケットと前記第 3のソケットとを含んだ第 2のェントリを第 2 の管理テーブルに記憶し、 かつ  A set of the address of the first terminal device in the detected first entry and the service identifier of the first entry is defined as a first socket, and the set of the source address of the packet and the source service identifier is defined as the first socket. A second socket including a set of a destination address and a destination service identifier of the bucket as a third socket, and a second socket including the first socket, the second socket, and the third socket. The second entry in the second management table, and
前記バケツ卜の宛先ァドレスを前記検出された第 1のェントリにおける第 1の 端末装置のァドレスに書き換えて、前記第 1の端末装置に前記バケツトを送信する ことを特徴とする通信方法。  A communication method, comprising rewriting a destination address of the bucket to an address of a first terminal device in the detected first entry, and transmitting the bucket to the first terminal device.
3. 請求項 2に記載の通信方法において、前記中継装置は、前記第 2のェントリ が検出された場合、前記バケツトの宛先ァドレスを前記検出された第 2のェントリ における前記第 1のソケットのァドレスに書き換えて、前記第 1の端末装置に前記 バケツトを送信することを特徴とする通信方法。  3. The communication method according to claim 2, wherein the relay device, when the second entry is detected, changes the destination address of the bucket to the address of the first socket in the detected second entry. And transmitting the bucket to the first terminal device.
4. 第 1のネッ トワークと、 この第 1のネットワークとはアドレス体系及びサー ビス識別子の体系の異なる第 2のネットワークとが中継装置を介して接続されて おり、  4. The first network is connected to a second network having a different address system and service identifier system from the first network via a relay device.
前記中継装置は、  The relay device,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと、前記第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを第 1の管理テ一ブルに記憶しておき、  A first management table includes at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device. Remember,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケッ卜と、前記第 2のネットヮー クに接続された第 2の端末装置のァドレスと前記第 2の端末装置のサービス識別 子との組である第 2のソケットと、この中継装置の前記第 2のネットワークにおけ るアドレスとこの中継装置における前記第 2のネットワークのサービス識別子と の組である第 3のソケッ トとを含んだ少なくとも一つの第 2のェントリを記憶す るための第 2の管理テーブルを用意しておき、 A first socket, which is a set of an address of a first terminal device connected to the first network and a service identifier of the first terminal device, and the second network; A second socket, which is a set of an address of a second terminal device connected to the network and a service identifier of the second terminal device, an address of the relay device in the second network, and the relay A second management table for storing at least one second entry including a third socket which is a pair with the service identifier of the second network in the device is prepared,
同じサービスについて前記第 1のネットワークで使われるサービス識別子と前 記第 2のネッ トワークで使用されるサービス識別子とを含んだ少なくとも一つの 第 3のェントリを第 3の管理テーブルに記憶しておき、  For the same service, at least one third entry including a service identifier used in the first network and the service identifier used in the second network is stored in a third management table,
前記第 2のネットワークに接続された第 2の端末装置は、あるサービスに宛てた バケツトを送信し、  The second terminal device connected to the second network transmits a bucket addressed to a certain service,
前記中継装置は、前記第 2のネットワークからバケツトを受信した際に、前記第 2の管理テーブルから、第 2のソケットと第 3のソケットとの値それぞれが、 この パケットの送信元アドレスと送信元サービス識別子との組と、宛先アドレスと宛先 サ一ビス識別子との組とのそれぞれと同じ第 2のエントリを検索し、  When receiving the bucket from the second network, the relay device stores the value of the second socket and the value of the third socket from the second management table as the source address and the source of the packet. Searching for the same second entry as each of the service identifier pair and the destination address and destination service identifier pair,
前記第 2のエントリが検出された場合、前記第 3の管理テープルから前記第 2の ネットワークで使用されるサービス識別子の値が前記バケツトの送信元サービス 識別子と同じ第 3のエントリを検索し、前記パケットの送信元サ一ビス識別子を、 検出された第 3のェントリにおける第 1のネットワークのサ一ビス識別子に書き 換え、 かつ前記バケツ卜の宛先アドレスと宛先サービス識別子とを、前記検出され た第 2のェントリにおける第 1のソケッ トのァドレスとサービス識別子とに書き 換えて、 前記第 1の端末装置に前記バケツ トを送信し、  When the second entry is detected, the third management table is searched for a third entry having the same service identifier value as that of the bucket as a service identifier used in the second network. Rewrite the source service identifier of the packet with the service identifier of the first network in the detected third entry, and replace the destination address and the destination service identifier of the bucket with the detected Rewriting the address and service identifier of the first socket in the second entry, and transmitting the bucket to the first terminal device;
前記第 2のェントリが検出されない場合、前記第 3の管理テーブルから前記第 2 のネッ トワークで使用されるサービス識別子の値が前記バケツ トの宛先サービス 識別子と同じ第 3のェントリを検索し、かつ検出された第 3のェントリにおける第 1のネットワークのサービス識別子にて、 前記第 1の管理テーブルを検索し、 検出された第 1のェントリにおける前記第 1の端末装置のァドレスとこのェン トリのサービス識別子との組を第 1のソケットとし、前記バケツトの送信元ァドレ スと送信元サービス識別子との組を第 2のソケットとし、前記バケツ卜の宛先ァド レスと宛先サービス識別子との組を第 3のソケッ トとし、かつ前記第 1のソケット と前記第 2のソケッ トと前記第 3のソケッ トとを含んだ第 2のェントリを前記第 2の管理テープルに記憶し、 If the second entry is not detected, the third management table is searched for a third entry having the same service identifier value as that used in the second network as the destination service identifier of the bucket; and The first management table is searched with the service identifier of the first network in the detected third entry, and the address of the first terminal device in the detected first entry and the address of this entry are searched. A set of a service identifier is a first socket, a set of a source address of the bucket and a source service identifier is a second socket, and a set of a destination address and a destination service identifier of the bucket is a A third socket, and a second entry including the first socket, the second socket, and the third socket is referred to as the third socket. Memorized in 2 management table,
前記第 1のネットワークで未使用のサービス識別子を選び、前記選ばれたサービ ス識別子を前記第 1のネットワークのサービス識別子とし、かつ前記バケツトの送 信元サービス識別子を前記第 2のネットワークのサービス識別子とする前記第 3 のエントリを作成して、 前記第 3の管理テーブルに記憶し、  Selecting an unused service identifier in the first network, using the selected service identifier as a service identifier of the first network, and defining a source service identifier of the bucket as a service identifier of the second network; Create the third entry to be stored in the third management table,
前記パケットの宛先ァドレス及び宛先サービス識別子を、前記検出された第 1の ェントリにおける第 1の端末装置のァドレス及びサービス識別子に書き換え、かつ 送信元サービス識別子を前記選ばれたサービス識別子に書き換えて、前記第 1の端 末装置に前記バケツトを送信する  Rewriting the destination address and destination service identifier of the packet to the address and service identifier of the first terminal device in the detected first entry, and rewriting the source service identifier to the selected service identifier, Send the bucket to the first terminal device
ことを特徴とする通信方法。 A communication method, comprising:
5. 第 1のネッ トワークと、 この第 1のネットワークとはアドレス体系及ぴサ一 ビス識別子の体系の異なる第 2のネットワークとが中継装置を介して接続されて おり、  5. The first network and the second network having different address systems and service identifier systems from the first network are connected via a relay device,
前記中継装置は、  The relay device,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと、前記第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを第 1の管理テーブルに記憶しておき、  At least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device is stored in a first management table. Aside
前記第 1のネッ トワークに接続された第 1の端末装置のアドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケットと、前記第 2のネットヮー クに接続された第 2の端末装置のアドレスと前記第 2の端末装置のサ一ビス識別 子との組である第 2のソケットと、この中継装置の前記第 2のネットワークにおけ るアドレスとこの中継装置における前記第 2のネッ トワークのサービス識別子と の組である第 3のソケットとを含んだ少なくとも一つの第 2のェントリを記憶す るための第 2の管理テーブルを用意しておき、  A first socket, which is a set of an address of a first terminal connected to the first network and a service identifier of the first terminal, and a second socket connected to the second network; A second socket, which is a set of an address of the terminal device and a service identifier of the second terminal device, an address of the relay device in the second network, and the second socket of the relay device. A second management table for storing at least one second entry including a third socket which is a pair with the service identifier of the network of
同じサービスについて前記第 1のネットワークで使われるサービス識別子と前 記第 2のネットワークで使用されるサービス識別子とを含んだ少なくとも一つの 第 3のェントリを第 3の管理テ一プルに記億しておき、  At least one third entry including the service identifier used in the first network and the service identifier used in the second network for the same service is recorded in a third management template. Every
前記第 1のネットワークに接続された第 1の端末装置は、あるサービスに宛てた バケツトを送信し、  A first terminal device connected to the first network transmits a bucket addressed to a certain service,
前記中継装置は、前記第 3の管理テーブルにおける第 1のネットワークに係るサ 一ビス識別子の値が前記バケツトの宛先サービス識別子である前記第 3のェント リを検索し、 The relay device is a server for the first network in the third management table. Searching the third entry for which the value of the service identifier is the destination service identifier of the bucket;
前記第 3のエントリが検出された場合、前記第 2の管理テ一ブルから、第 1のソ ケットと第 2のソケットとの値それぞれが、このバケツトの送信元ァドレスと送信 元サービス識別子との組と、かっこのバケツトの宛先ァドレスと前記検索された第 3のェントリにおける第 2のネットワークのサービス識別子との組とのそれぞれ と同じ第 2のエントリを検索し、  When the third entry is detected, the values of the first socket and the second socket are respectively determined from the second management table by using the source address and the source service identifier of this bucket. Searching for a second entry that is the same as each of the set and the destination address of the parentheses bucket and the service identifier of the second network in the searched third entry;
前記第 2のエントリが検出された場合、前記バケツ卜の宛先サービス識別子を前 記検出された第 2のソケットのサービス識別子に書き換え、かつ前記バケツトの送 信元アドレスと送信元サービス識別子とを、前記第 3のソケットのアドレスとサ一 ビス識別子とに書き換えて、 前記第 2の端末装置に前記バケツトを送信し、 前記第 2のエントリが検出されない場合、前記パケットの送信元アドレスと送信 元サービス識別子との組を第 1のソケットとし、前記パケットの宛先ァドレスと前 記第 3の管理テーブルの検索により検出された第 3のェントリの第 2のネッ トヮ —クのサービス識別子との組を第 2のソケットとし、第 2のネットワークで未使用 のサービス識別子を選び、この中継装置の前記第 2のネットワークのァドレスと前 記選ばれた第 2のネットワークのサ一ビス識別子との組を第 3のソケットとし、前 記第 1のソケットと前記第 2のソケッ トと前記第 3のソケッ トとを含んだ第 2の ェントリを前記第 2の管理テーブルに記憶し、更に、前記選ばれたサービス識別子 を前記第 2のネットワークのサービス識別子とし、かつ前記バケツトの送信元サ一 ビス識別子を前記第 1のネットワークのサービス識別子とする前記第 3のェント リを作成して、 前記第 3の管理テーブルに記憶し、  When the second entry is detected, the destination service identifier of the bucket is rewritten to the service identifier of the detected second socket, and the source address and the source service identifier of the bucket are replaced. The bucket is rewritten to the address of the third socket and the service identifier, and the bucket is transmitted to the second terminal device. If the second entry is not detected, the source address and the source service of the packet are transmitted. The pair of the identifier and the first socket is used as the first socket, and the pair of the destination address of the packet and the service identifier of the second network of the third entry detected by searching the third management table. A second socket is selected, and an unused service identifier in the second network is selected, and the address of the second network of the repeater and the second selected network address are selected. A pair with the service identifier of the network is a third socket, and a second entry including the first socket, the second socket, and the third socket is the second socket. The third service identifier in the management table, the selected service identifier being the service identifier of the second network, and the source service identifier of the bucket being the service identifier of the first network. Create an entry and store it in the third management table,
前記バケツ トの宛先サービス識別子を前記第 2のソケッ トのサ一ビス識別子に 書き換え、かつ送信元ァドレスと送信元サービス識別子とを前記第 3のソケットの アドレスとサービス識別子とに書き換え、前記第 2の端末装置に前記パケットを送 信することを特徴とする通信方法。  The destination service identifier of the bucket is rewritten to the service identifier of the second socket, and the source address and the source service identifier are rewritten to the address and service identifier of the third socket. And transmitting the packet to the terminal device.
6. 請求項 1、 2、 3、 又は 4に記載の通信方法において、  6. The communication method according to claim 1, 2, 3, or 4,
前記第 1のネットワークに接続された第 1の端末装置は、  The first terminal device connected to the first network,
前記第 1の端末装置のァドレスとこの第 1の端末装置が提供するサ一ビスのサ 一ビス識別子とを含む登録要求を中継装置に通知し、 前記中継装置は、 Notifying the relay device of a registration request including the address of the first terminal device and the service identifier of the service provided by the first terminal device, The relay device,
前記録要求を受信し、前記登録要求に含まれる端末装置のァドレスとサ一ビス識 別子とを含んだ第 1のエントリを前記第 1の管理テーブルに記憶することを特徴 とする通信方法。  A communication method comprising: receiving a pre-recording request; and storing a first entry including an address of a terminal device and a service identifier included in the registration request in the first management table.
7. 請求項 1、 2、 3、 4又は 6に記載の通信方法において、  7. The communication method according to claim 1, 2, 3, 4, or 6,
前記第 1のネットワークに接続された第 1の端末装置は、  The first terminal device connected to the first network,
前記中継装置に前記端末装置のァドレスを含む削除要求を通知し、  Notify the relay device of a deletion request including the address of the terminal device,
前記中継装置は、  The relay device,
前記削除要求を受信すると、前記第 1の管理テーブルから前記削除要求に含まれ る端末装置のアドレスを持つ第 1のエントリを検索し、この検索によつて検出され た第 1のェントリを削除することを特徴とする通信方法。  Upon receiving the deletion request, the first management table is searched for a first entry having a terminal device address included in the deletion request, and the first entry detected by this search is deleted. A communication method, comprising:
8. 請求項 1、 2、 3、 4、 6又は 7に記載の通信方法において、  8. The communication method according to claim 1, 2, 3, 4, 6, or 7,
前記中継装置は、前記第 1のネットワークに接続された第 1の端末装置に対して、 動作確認要求メッセージを送信し、  The relay device transmits an operation confirmation request message to a first terminal device connected to the first network,
前記第 1の端末装置は、前記動作確認要求メッセージを受信すると、前記中継装 置に動作確認応答メッセージを送信し、  Upon receiving the operation confirmation request message, the first terminal device transmits an operation confirmation response message to the relay device,
前記中継装置は、前記動作確認応答メッセージを受信することにより前記第 1の 端末装置の動作を確認し、前記第 1の端末装置の動作不良を確認した場合、前記第 1の管理テーブルから前記動作確認要求メッセージを送信した第 1の端末装置の アドレスを持つ第 1のェントリを検索し、この検索によって検出された第 1のェン トリを削除することを特徴とする通信方法。  The relay device confirms the operation of the first terminal device by receiving the operation confirmation response message, and, when confirming the operation failure of the first terminal device, determines the operation from the first management table. A communication method comprising: searching for a first entry having an address of a first terminal device that has transmitted a confirmation request message; and deleting the first entry detected by the search.
9. 請求項 1、 2、 3、 4、 6、 7又は 8に記載の通信方法において、  9. The communication method according to claim 1, 2, 3, 4, 6, 7, or 8,
前記第 1の管理テーブルにおける少なくとも一つの第 1のェントリに前記第 1 のネットワークに接続された第 1の端末装置の処理能力情報が含まれていること を特徴とする通信方法。  A communication method, characterized in that at least one first entry in the first management table includes processing capability information of a first terminal device connected to the first network.
1 0. 請求項 1、 2、 3、 4、 6、 7、 8又は 9に記載の通信方法において、 前記第 1のネットワークに接続された第 1の端末装置は、この端末装置のァドレ スと処理能力情報とを含んだ能力通知メッセージを前記中継装置に通知し、 前記中継装置は、前記能力通知メッセージを受信した際に、前記第 1の管理テー プルにおける前記第 1の端末装置に係る第 1のエントリに、前記能力通知メッセ一 ジに含まれる処理能力清報を記憶することを特徴とする通信方法。 10. The communication method according to claim 1, 2, 3, 4, 6, 7, 8, or 9, wherein the first terminal device connected to the first network includes an address of the terminal device. The relay device notifies the relay device of a capability notification message including processing capability information.When the relay device receives the capability notification message, the relay device relates to the first terminal device in the first management table. In one entry, the capability notification message A communication method characterized by storing a processing capability report included in a message.
1 1 . 請求項 9又は 1 0に記載の通信方法において、  11. In the communication method according to claim 9 or 10,
前記中継装置は、前記バケツトに含まれる宛先サービス識別子と同じサ一ビス識 別子を持つ複数の第 1のエントリが検出された場合、前記処理能力情報に基づいて 第 1のエントリを決定することを特徴とする通信方法。  The relay device, when a plurality of first entries having the same service identifier as the destination service identifier included in the bucket are detected, determine the first entry based on the processing capability information. A communication method comprising:
1 2. 第 1のネットワークとこの第 1のネットワークとはァドレス体系の異なる 第 2のネットワークを接続する中継装置であって、  1 2. The first network and the first network are relay devices for connecting second networks having different address systems,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと、この第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを記憶する第 1の管理テーブルを備え、  A first management table storing at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device; With
前記第 2のネットワークに接続された第 2の端末装置からあるサービスに宛て たバケツ卜に対して、前記第 1の管理テーブルから前記バケツ 卜に含まれる宛先サ —ビス識別子と同じサービス識別子を持つ第 1のェントリを検索する第 1の検索 手段と、  For a bucket addressed to a certain service from the second terminal device connected to the second network, the first management table has the same service identifier as the destination service identifier included in the bucket from the first management table. A first search means for searching the first entry;
前記パケッ トの宛先ァドレスを前記第 1の検索手段により検出された第 1のェ ントリにおける第 1の端末装置のァドレスに書き換える手段と  Means for rewriting the destination address of the packet to the address of the first terminal device in the first entry detected by the first search means;
を含んで構成されることを特徴とする中継装置。 And a relay device.
1 3. 第 1のネットワークとこの第 1のネットワークとはァドレス体系の異なる 第 2のネットワークとを接続する中継装置であって、  1 3. The first network and the first network are relay devices for connecting a second network having a different addressing system,
前記第 1のネッ トワークに接続された第 1の端末装置のアドレスと、この第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを記憶する第 1の管理テ一ブルと、  A first management unit that stores at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device; Tables and
前記第 1のネッ トワークに接続された第 1の端末装置のアドレスとこの第 1の 端末装置のサービス識別子との組である第 1のソケッ卜と、前記第 2のネットヮー クに接続された第 2の端末装置のアドレスとこの第 2の端末装置のサービス識別 子との組である第 2のソケットと、前記中継装置の前記第 2のネッ トワークのアド レスとこの中継装置の前記第 2のネットワークのサ一ビス識別子との組である第 3のソケッ トとを含んだ少なくとも一つの第 2のェントリを記億する第 2の管理 テーブルと、  A first socket, which is a set of an address of a first terminal connected to the first network and a service identifier of the first terminal, and a first socket connected to the second network; A second socket, which is a set of an address of the second terminal device and a service identifier of the second terminal device, an address of the second network of the relay device, and a second address of the relay device. A second management table for storing at least one second entry including a third socket paired with a service identifier of the network;
前記第 2のネッ トワークに接続された第 2の端末装置からあるサービスに宛て たバケツトを受信した際に、前記第 2の管理テ一ブルから第 2のソケッ卜と第 3の ソケットとの値それぞれが、このバケツトの送信元アドレスと送信元サービス識別 子との組と、宛先ァドレスと宛先サービス識別子との組とのそれぞれと同じ第 2の ェントリを検索する第 2の検索手段と、 A second terminal connected to the second network addressed to a certain service; When receiving the bucket, the value of the second socket and the value of the third socket from the second management table are respectively set as a pair of a source address and a source service identifier of the bucket, Second search means for searching for the same second entry as each of the pair of the destination address and the destination service identifier;
前記第 2の検索手段の検索により前記第 2のェントリが検出されない場合、前記 バケツトに対して、前記第 1の管理テーブルから前記バケツ卜に含まれる宛先サ一 ビス識別子と同じサービス識別子を持つ第 1のェントリを検索する第 1の検索手 段と、  In a case where the second entry is not detected by the search by the second search means, for the bucket, a second identifier having the same service identifier as the destination service identifier included in the bucket from the first management table. A first search means for searching one entry;
前記第 1の検索手段により検出された第 1のェントリにおける前記第 1の端末 装置のァドレスとこの第 1のェントリのサ一ビス識別子との組を第 1のソケッ ト とし、前記バケツトの送信元ァドレスと送信元サービス識別子との組を第 2のソケ ットとし、前記バケツトの宛先アドレスと前記宛先サービス識別子との組を第 3の ソケットとし、この第 1のソケットとこの第 2のソケッ トとこの第 3のソケットと を含んだ第 2のェントリを前記第 2の管理テ一ブルに登録する第 1の登録手段と、 前記パケットの宛先ァドレスを前記第 1の検索手段により検出された第 1のェ ントリにおける第 1の端末装置のァドレスに書き換える手段と  A set of an address of the first terminal device in the first entry detected by the first search means and a service identifier of the first entry is defined as a first socket, and a source of the bucket is defined as a first socket. The pair of the address and the source service identifier is a second socket, the pair of the destination address of the bucket and the destination service identifier is a third socket, and the first socket and the second socket are used. First registration means for registering a second entry including the third socket and the third socket in the second management table; and a destination address of the packet detected by the first search means. Means for rewriting the address of the first terminal device in the first entry;
を含んで構成されることを特徴とする中継装置。 And a relay device.
1 4. 請求項 1 3記載の中継装置において、前記第 2の検索手段の検索により第 2のエントリが検出された場合、前記パケットの宛先ァドレスを前記検出された第 2のェントリにおける前記第 1のソケットのァドレスに書き換える手段を、更に含 んで構成されることを特徴とする中継装置。  14. The relay device according to claim 13, wherein, when a second entry is detected by the search by the second search means, the destination address of the packet is changed to the first address in the detected second entry. A rewriting means for rewriting the address of the socket.
1 5. 第 1のネットワークと、 この第 1のネットワークとはアドレス体系及びサ —ビス識別子の体系の異なる第 2のネットワークとを接続する中継装置であって、 前記第 1のネットワークに接続された第 1の端末装置のアドレスと、前記第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを記憶する第 1の管理テーブルと、  1 5. The first network is a relay device for connecting the first network with a second network having a different address system and service identifier system, and is connected to the first network. A first management table storing at least one first entry including an address of a first terminal device and a service identifier of a service provided by the first terminal device;
前記第 1のネットワークに接続された第 1の端末装置のァドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケットと、前記第 2のネットヮー クに接続された第 2の端末装置のァドレスと前記第 2の端末装置のサービス識別 子との組である第 2のソケッ卜と、この中継装置における前記第 2のネットワーク のァドレスとこの中継装置における前記第 2のネッ トワークのサービス識別子と の組である第 3のソケットとを含んだ少なくとも一つの第 2のエントリを記憶す る第 2の管理テーブルと、 A first socket that is a set of an address of a first terminal device connected to the first network and a service identifier of the first terminal device; and a second socket connected to the second network. A second socket, which is a set of an address of the terminal device and a service identifier of the second terminal device, and the second network in the relay device; A second management table storing at least one second entry including a third socket, which is a set of the address of the relay device and the service identifier of the second network in the relay device;
同じサービスについて前記第 1のネットワークで使われるサービス識別子と前 記第 2のネッ トワークで使用されるサービス識別子とを含んだ少なくとも一つの 第 3のェントリを記憶する第 3の管理テーブルと、  A third management table for storing at least one third entry including a service identifier used in the first network and the service identifier used in the second network for the same service;
前記第 2のネットワークに接続された第 2の端末装置から、あるサービスに宛て たバケツトを受信した際、前記第 2の管理テーブルから、第 2のソケットと第 3の ソケットとの値それぞれが、このバケツ卜の送信元アドレスと送信元サービス識別 子との組と、宛先ァドレスと宛先サービス識別子との組とのそれぞれと同じ第 2の エントリを検索する第 2の検索手段と、  When a bucket addressed to a certain service is received from the second terminal device connected to the second network, the value of the second socket and the value of the third socket are read from the second management table, respectively. Second search means for searching for the same second entry as the pair of the source address and the source service identifier of the bucket and the pair of the destination address and the destination service identifier;
前記第 2の検索手段により前記第 2のエントリが検出された場合、前記第 3の管 理テ一ブルから、前記第 2のネットワークで使用されるサービス識別子の値が前記 バケツ 卜の送信元サービス識別子と同じ第 3のェントリを検索する第 3の検索手 段と、  If the second entry is detected by the second search means, the value of the service identifier used in the second network is changed from the third management table to the source service of the bucket. A third search means for searching for a third entry that is the same as the identifier;
前記パケットの送信元サ一ビス識別子を、前記第 3の検索手段により検出された 第 3のェントリにおける第 1のネットワークのサービス識別子に書き換え、かつ前 記バケツ卜の宛先ァドレスと宛先サービス識別子とを、前記検出された第 2のェン トリにおける第 1のソケットのァドレスとサービス識別子とに書き換える手段と、 前記第 2の検索手段により前記第 2のエントリが検出されない場合、前記第 3の 管理テ一ブルから、前記第 2のネットワークで使用されるサービス識別子の値が前 記バケツトの宛先サービス識別子と同じ第 3のェントリを検索する第 4の検索手 段と、  The source service identifier of the packet is rewritten to the service identifier of the first network in the third entry detected by the third search means, and the destination address and the destination service identifier of the bucket are replaced. Means for rewriting the address of the first socket and the service identifier in the detected second entry; and if the second entry is not detected by the second search means, the third management data. A fourth search means for searching a third entry from the table for which the value of the service identifier used in the second network is the same as the destination service identifier of the bucket;
前記第 4の検索手段により検出された第 3のェントリにおける第 1のネッ トヮ —クのサービス識別子にて、前記第 1の管理テーブルを検索する第 1の検索手段と、 前記第 1の検索手段により検出された第 1のェントリの前記第 1の端末装置の アドレスとこのエントリのサ一ビス識別子との組を第 1のソケットとし、前記パケ ットの送信元ァドレスと送信元サービス識別子との組を第 2のソケットとし、前記 バケツ トの宛先ァドレスと宛先サービス識別子との組を第 3のソケットとし、前記 第 1のソケッ トと前記第 2のソケッ トと前記第 3のソケッ トとを含んだ第 2のェ ントリを前記第 2の管理テーブルに登録し、更に、前記第 1のネットワークで未使 用のサービス識別子を選び、前記選ばれたサービス識別子を前記第 1のネットヮー クのサービス識別子とし、かつ前記バケツ卜の送信元サービス識別子を前記第 2の ネットワークのサービス識別子とする前記第 3のェントリを作成して、前記第 3の 管理テーブルに登録する登録手段と、 First search means for searching the first management table using a service identifier of a first network in a third entry detected by the fourth search means; and the first search A set of the first terminal device address of the first entry detected by the means and the service identifier of this entry is defined as a first socket, and the source address, source service identifier, and Is a second socket, a set of the destination address and the destination service identifier of the bucket is a third socket, and the first socket, the second socket, and the third socket are The second method that contains Registering an entry in the second management table, further selecting an unused service identifier in the first network, using the selected service identifier as a service identifier of the first network, and Registering means for creating the third entry using the service identifier of the data source as the service identifier of the second network, and registering the third entry in the third management table;
前記パケットの宛先ァドレス及び宛先サービス識別子を前記検出された第 1の エントリにおける第 1の端末装置のァドレス及びサービス識別子に書き換え、かつ 送信元サービス識別子を前記選ばれたサービス識別子に書き換える手段とを含ん で構成されることを特徴とする中継装置。  Means for rewriting the destination address and destination service identifier of the packet to the address and service identifier of the first terminal device in the detected first entry, and rewriting the source service identifier to the selected service identifier. A relay device comprising:
1 6. 第 1のネットワークと、 この第 1のネットワークとはアドレス体系及びサ —ビス識別子の体系の異なる第 2のネットワークとを接続する中継装置であって、 前記第 1のネットワークに接続された第 1の端末装置のァドレスと、前記第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを記憶する第 1の管理テ一ブルと、  1 6. The first network is a relay device for connecting the first network to a second network having a different address system and service identifier system, and is connected to the first network. A first management table storing at least one first entry including an address of a first terminal device and a service identifier of a service provided by the first terminal device;
前記第 1のネットワークに接続された第 1の端末装置のァドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケットと、前記第 2のネットヮ一 クに接続された第 2の端末装置のァドレスと前記第 2の端末装置のサービス識別 子との組である第 2のソケッ卜と、この中継装置における前記第 2のネットワーク のァドレスとこの中継装置における前記第 2のネットワークのサービス識別子と の組である第 3のソケットとを含んだ少なくとも一つの第 2のェントリを記憶す る第 2の管理テーブルと、  A first socket, which is a set of an address of a first terminal device connected to the first network and a service identifier of the first terminal device, and a second socket connected to the second network; A second socket, which is a set of the address of the terminal device and the service identifier of the second terminal device, the address of the second network in the relay device, and the second network in the relay device. A second management table storing at least one second entry including a third socket paired with the service identifier; and
同じサービスについて前記第 1のネットワークで使われるサービス識別子と前 記第 2のネットワークで使用されるサービス識別子とを含んだ少なくとも一つの 第 3のェントリを記憶する第 3の管理テーブルと、  A third management table storing at least one third entry including a service identifier used in the first network and a service identifier used in the second network for the same service;
前記第 1のネッ トワークに接続された第 1の端末装置から、あるサービスに宛て たバケツトを受信すると、前記第 3の管理テーブルにおける第 1のネットワークに 係るサービス識別子の値が前記バケツ卜の宛先サービス識別子である前記第 3の ェントリを検索する第 3の検索手段と、  When a bucket addressed to a certain service is received from the first terminal device connected to the first network, the value of the service identifier related to the first network in the third management table is set to the destination of the bucket. Third search means for searching for the third entry that is a service identifier;
前記第 3の検索手段により前記第 3のエントリが検出された場合、前記第 2の管 理テーブルから、第 1のソケットと第 2のソケッ卜との値それぞれが、 このバケツ 卜の送信元ァドレスと送信元サービス識別子との組と、このバケツ卜の宛先ァドレ スと前記検索された第 3のェントリの第 2のネットヮ一クのサービス識別子との 組とのそれぞれと同じ第 2のェントリを検索する第 2の検索手段と、 When the third entry is detected by the third search means, the value of each of the first socket and the second socket is stored in the bucket from the second management table. The same as the pair of the source address of the packet and the source service identifier, and the pair of the destination address of the bucket and the service identifier of the second network of the third entry searched. A second search means for searching the second entry;
前記第 2の検索手段により前記第 2のェントリが検出された場合、前記バケツト の宛先サービス識別子を前記検出された第 2のソケットのサービス識別子に書き 換え、かつ前記パケットの送信元ァドレスと送信元サービス識別子とを前記第 3の ソケットのァドレスとサービス識別子とに書き換える手段と、  When the second entry is detected by the second search means, the destination service identifier of the bucket is rewritten to the service identifier of the detected second socket, and the source address and source of the packet are rewritten. Means for rewriting a service identifier into an address of the third socket and a service identifier;
前記第 2の検索手段により前記第 2のェントリが検出されない場合、前記バケツ トの送信元ァドレスと送信元サービス識別子との組を第 1のソケットとし、前記パ ケッ卜の宛先ァドレスと前記第 3の管理テーブルの検索により検出された第 3の ェントリの第 2のネットワークのサービス識別子との組を第 2のソケットとし、第 2のネットワークで未使用のサ一ビス識別子を選び、この中継装置の前記第 2のネ ットワークのアドレスと前記選ばれた第 2のネットワークのサービス識別子との 組を第 3のソケットとし、前記第 1のソケッ卜と前記第 2のソケットと前記第 3の ソケッ卜とを含んだ第 2のェントリを前記第 2の管理テーブルに登録し、更に、前 記選ばれたサービス識別子を前記第 2のネットワークのサービス識別子とし、かつ 前記バケツトの送信元サービス識別子を前記第 1のネッ トワークのサービス識別 子とする前記第 3のェントリを作成して、前記第 3の管理テーブルに登録する登録 手段と、  If the second search unit does not detect the second entry, a set of the source address and the source service identifier of the bucket is set as a first socket, and the destination address of the packet and the third address are set as the first socket. A set of the service identifier of the second network of the third entry detected by the search of the management table of the third entry is used as the second socket, and a service identifier unused in the second network is selected. A pair of the address of the second network and the service identifier of the selected second network is a third socket, and the first socket, the second socket, and the third socket are A second entry including the service identifier of the second network as the service identifier of the second network, and registering the bucket in the second management table. Registration means the source service identifier to create the third entry to the service identifier of the first network, and registers the third management table,
前記バケツ 卜の宛先サービス識別子を前記第 2のソケッ 卜のサービス識別子に 書き換え、かつ送信元ァドレスと送信元サービス識別子とを前記第 3のソケットの ァドレスとサービス識別子とに書き換える手段と  Means for rewriting the destination service identifier of the bucket to the service identifier of the second socket, and rewriting the source address and the source service identifier to the address and service identifier of the third socket; and
を含んで構成されることを特徴とする中継装置。 And a relay device.
1 7. 請求項 1 2、 1 3、 1 4又は 1 5に記載の中継装置において、  1 7. The relay device according to claim 12, 13, 13, 14, or 15,
第 1のネッ トワークに接続された第 1の端末装置から発せられたこの第 1の端 末装置のァドレスとサービス識別子とを含む登録要求を受信した際には、前記登録 要求に含まれる第 1の端末装置のァドレスとサービス識別子とを含んだ第 1のェ ントリを前記第 1の管理テーブルに記憶する手段と、  When receiving a registration request including the address and service identifier of the first terminal device issued from the first terminal device connected to the first network, the first terminal device includes the first terminal device included in the registration request. Means for storing, in the first management table, a first entry including the address of the terminal device and the service identifier,
前記第 1の端末装置から発せられたこの第 1の端末装置のァドレスを含む削除 要求を受信した際には、前記削除要求に含まれる第 1の端末装置のァドレスを持つ 第 1のェントリを検索して、検出された第 1のェントリを前記第 1の管理テーブル から削除する手段と Upon receiving a deletion request including the address of the first terminal device issued from the first terminal device, the terminal device has the address of the first terminal device included in the deletion request. Means for retrieving the first entry and deleting the detected first entry from the first management table;
を更に有することを特徴とする中継装置。 A relay device, further comprising:
1 8. 請求項 1 2、 1 3、 1 4、 1 5又は 1 7に記載の中継装置において、 前記 第 1のネットワークに接続された第 1の端末装置に対して、動作確認要求メッセー ジを送信し、前記第 1の端末装置から動作確認応答メッセージを受信することによ り前記第 1の端末装置の動作を確認し、前記第 1の端末装置の動作を確認できなか つた場合、前記第 1の管理テーブルから前記動作確認要求メッセージを送信した第 1の端末装置のァドレスを持つ第 1のェントリを検索して、検出された第 1のェン トリを削除する動作確認要求手段を更に含んで構成されることを特徴とする中継  1 8. The relay device according to claim 12, 13, 14, 14, 15, or 17, wherein an operation confirmation request message is sent to a first terminal device connected to the first network. Transmitting, and confirming the operation of the first terminal device by receiving an operation confirmation response message from the first terminal device, if the operation of the first terminal device cannot be confirmed, the The method further includes an operation check request unit that searches the first management table for a first entry having the address of the first terminal device that has transmitted the operation check request message, and deletes the detected first entry. Relay characterized by comprising
1 9. 請求項 1 2、 1 3、 1 4、 1 5、 1 7又は 1 8に記載の中継装置において、 前記第 1の管理テ一ブルにおける第 1のエントリに前記第 1のネッ トワークに.接 続された第 1の端末装置の処理能力情報が含まれていることを特徴とする中継装 1 9. The relay device according to claim 12, 13, 13, 14, 15, 17, or 18, wherein the first entry in the first management table includes the first entry in the first network. . Relay device characterized by including processing capability information of connected first terminal device
2 0. 請求項 1 2、 1 3、 1 4、 1 5、 1 7又は 1 8に記載の中継装置において、 前記第 1のネットワークに接続された第 1の端末装置から、この端末装置のァドレ スと処理能力情報とを含んだ能力通知メッセージを受信した際には、前記第 1の管 理テーブルにおける前記第 1の端末装置に係る第 1のエントリに前記能力通知メ ッセージに含まれる処理能力情報を記憶する手段を更に含んで構成されることを 特徴とする中継装置。 20. The relay device according to claim 12, 13, 13, 14, 15, 17, or 18, wherein an address of the terminal device is transmitted from a first terminal device connected to the first network. When receiving the capability notification message including the processing capability information and the processing capability information, the processing capability included in the capability notification message is included in the first entry of the first terminal device in the first management table. A relay device, further comprising means for storing information.
2 1 . 請求項 1 9又は 2 0に記載の中継装置において、前記バケツ卜に含まれる 宛先サービス識別子と同じサービス識別子を持つ複数の第 1のェントリが検出さ れた場合、前記処理能力情報に基づいて一つの第 1のエントリを決定する手段を更 に含んで構成されることを特徴とする中継装置。  21. In the relay device according to claim 19 or 20, when a plurality of first entries having the same service identifier as a destination service identifier included in the bucket are detected, the processing capability information is included. A relay device, further comprising means for determining one first entry based on the first entry.
2 2. 第 1のネッ トワークと、 この第 1のネットワークとはァドレス体系の異な る第 2のネットワークとが中継装置を介して接続されており、この第 1のネットヮ 一クに接続された端末装置であつて、  2 2. The first network is connected to a second network having a different address system from the first network via a relay device, and a terminal connected to the first network is connected to the first network. Device
前記第 1のネットワークに接続された第 1の端末装置のアドレスと、前記第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを記憶する第 1の管理テーブルを有する中継装置に対して、前記端末装 置のアドレスとこの端末装置が提供するサ一ビスのサ一ビス識別子とを含む登録 要求を通知する手段を含んで構成されることを特徴とする端末装置。 At least one first terminal including an address of a first terminal connected to the first network and a service identifier of a service provided by the first terminal. Means for notifying the relay device having the first management table storing the first entry of a registration request including the address of the terminal device and the service identifier of the service provided by the terminal device. A terminal device comprising:
2 3. 請求項 2 2に記載の端末装置において、前記中継装置に対して、前記端末 装置のァドレスを含む削除要求を中継装置に通知する手段を更に含んで構成され ることを特徴とする端末装置。 23. The terminal device according to claim 22, further comprising means for notifying the relay device of a deletion request including the address of the terminal device to the relay device. apparatus.
2 4. 請求項 2 2又は 2 3に記載の端末装置において、前記中継装置から動作確 認要求メッセージを受信した際に動作確認応答メッセージを送信する手段を更に 含んで構成されることを特徴とする端末装置。  2 4. The terminal device according to claim 22 or 23, further comprising: means for transmitting an operation confirmation response message when receiving an operation confirmation request message from the relay device. Terminal device to do.
2 5. 請求項 2 2、 2 3又は 2 4に記載の端末装置において、前記中継装置に前 記端末装置の処理能力情報を通知する手段を更に含んで構成されることを特徴と する ¾未 直。  2 5. The terminal device according to claim 22, 23, or 24, further comprising means for notifying the relay device of the processing capability information of the terminal device. straight.
2 6. 第 1のネッ トワークと、 この第 1のネットワークとはァドレス体系の異な る第 2のネッ トワークとが中継装置を介して接続されており、  2 6. The first network and the second network having a different address system from the first network are connected via a relay device,
前記第 1のネットワークに接続された自己の端末装置のァドレスと、前記自己の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを前記中継装置の第 1の管理テーブルに記憶させ、  The first management table of the relay device stores at least one first entry including an address of the terminal device connected to the first network and a service identifier of a service provided by the terminal device. To memorize,
前記中継装置にて、前記第 2のネットワークに接続された他の端末装置からある サービスに宛てたバケツ 卜に対して、前記第 1の管理テーブルから前記バケツ卜に 含まれる宛先サービス識別子と同じサービス識別子を持つ第 1のェントリが検索 され、前記バケツトの宛先ァドレスが、前記検索により検出された第 1のェントリ における自己の端末装置のァドレスに書き換えられ送信された前記バケツトを受 信することを特徴とする端末装置。  In the relay device, for a bucket addressed to a certain service from another terminal device connected to the second network, the same service as the destination service identifier contained in the bucket from the first management table is used. A first entry having an identifier is searched for, and the bucket receives the transmitted bucket by rewriting the destination address of the bucket to the address of its own terminal device in the first entry detected by the search. Terminal device.
2 7. 第 1のネットワークとこの第 1のネットワークとはアドレス体系の異なる 第 2のネットワークを接続する中継装置の通信プロダラムであって、  2 7. The first network and the first network are communication programs of the relay device connecting the second networks having different address systems,
前記第 1のネッ トワークに接続された第 1の端末装置のァドレスと、この第 1の 端末装置が提供するサ一ビスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを記憶する第 1の管理テ一プルと、  A first terminal that stores at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device. Management templates and
前記第 2のネッ トワークに接続された第 2の端末装置からあるサービスに宛て たバケツトに対して、前記第 1の管理テーブルから前記バケツトに含まれる宛先サ 一ビス識別子と同じサービス識別子を持つ第 1のェントリを検索する第 1の検索 手段と、 かつ For a bucket destined for a certain service from a second terminal device connected to the second network, a destination service included in the bucket from the first management table. First search means for searching for a first entry having the same service identifier as the service identifier; and
前記パケッ トの宛先ァドレスを前記第 1の検索手段により検出された第 1のェ ントリにおける第 1の端末装置のァドレスに書き換える変換手段と  Conversion means for rewriting the destination address of the packet to the address of the first terminal device in the first entry detected by the first search means;
を前記中継装置に機能させることを特徴とする通信プログラム。 A communication program that causes the relay device to function.
2 8. 第 1のネットワークと、 この第 1のネットワークとはアドレス体系の異な る第 2のネットワークとを接続する中継装置の通信プログラムであって、  2 8. The first network is a communication program of a relay device connecting the second network having a different address system from the first network,
前記第 1のネッ トワークに接続された第 1の端末装置のアドレスと、この第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを記憶する第 1の管理テーブルと、  A first management unit that stores at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device; Table and
前記第 1のネッ トワークに接続された第 1の端末装置のアドレスとこの第 1の 端末装置におけるサービス識別子との組である第 1のソケットと、前記第 2のネッ トワークに接続された第 2の端末装置のアドレスとこの第 2の端末装置における サービス識別子との組である第 2のソケッ トと、かつ前記中継装置における前記第 2のネットワークのアドレスとこの中継装置における前記第 2のネッ トワークの サービス識別子との組である第 3のソケッ トとを含んだ少なくとも一つの第 2の エントリを記憶する第 2の管理テーブルと、  A first socket, which is a set of an address of a first terminal connected to the first network and a service identifier of the first terminal, and a second socket connected to the second network; A second socket, which is a set of the address of the terminal device and the service identifier of the second terminal device, and the address of the second network in the relay device and the second network in the relay device. A second management table storing at least one second entry including a third socket which is a pair with the service identifier of
前記第 2のネッ トワークに接続された第 2の端末装置からあるサービスに宛て たバケツトを受信した際に、前記第 2の管理テーブルから、第 2のソケットと第 3 のソケッ卜との値それぞれが、このバケツトの送信元アドレスと送信元サービス識 別子との組と、宛先ァドレスと宛先サービス識別子との組とのそれぞれと同じ第 2 のェントリを検索する第 2の検索手段と、  When a bucket addressed to a certain service is received from the second terminal device connected to the second network, the values of the second socket and the third socket are respectively obtained from the second management table. A second search means for searching for the same second entry as each of the pair of the source address and the source service identifier of the bucket, and the pair of the destination address and the destination service identifier;
前記第 2の検索手段の検索により前記第 2のエントリが検出されない場合、前記 パケットに対して、前記第 1の管理テーブルから前記パケットに含まれる宛先サー ビス識別子と同じサービス識別子を持つ第 1のェントリを検索する第 1の検索手 段と、  If the second entry is not detected by the search by the second search means, the first packet having the same service identifier as the destination service identifier included in the packet from the first management table for the packet. A first search means for searching the entry,
前記第 1の検索手段により検出された第 1のエントリにおける前記第 1の端末 装置のァドレスとこの第 1のェントリのサ一ビス識別子との組を第 1のソケッ ト とし、前記バケツトの送信元ァドレスと送信元サービス識別子との組を第 2のソケ ッ トとし、かつ前記バケツ 卜の宛先アドレスと宛先サービス識別子との組を第 3の ソケットとし、この第 1のソケットとこの第 2のソケットとこの第 3のソケットと を含んだ第 2のェントリを前記第 2の管理テーブルに登録する第 1の登録手段と、 前記バケツ 卜の宛先ァドレスを前記第 1の検索手段により検出された第 1のェ ントリにおける第 1の端末装置のァドレスに書き換える変換手段と A set of the address of the first terminal device and the service identifier of the first entry in the first entry detected by the first search means is defined as a first socket, and the source of the bucket is The pair of the address and the source service identifier is the second socket, and the pair of the destination address and the destination service identifier of the bucket is the third socket. First registration means for registering a second entry including the first socket, the second socket, and the third socket in the second management table as a socket; and a destination of the bucket. Conversion means for rewriting the address to the address of the first terminal device in the first entry detected by the first search means;
を前記中継装置に機能させることを特徴とする通信プログラム。 A communication program that causes the relay device to function.
2 9. 請求項 2 8に記載の通信プログラムにおいて、前記第 2の検索手段の検索 により第 2のェントリが検出された場合、前記バケツ卜の宛先ァドレスを前記検出 された第 2のェントリにおける前記第 1のソケッ トのァドレスに書き換える手段 を前記中継装置に機能させることを特徴とする通信プログラム。  2 9. In the communication program according to claim 28, when a second entry is detected by the search by the second search means, the destination address of the bucket is determined by the second entry in the detected second entry. A communication program that causes the relay device to function as a means for rewriting an address of a first socket.
3 0. 第 1のネットワークと、 この第 1のネットワークとはアドレス体系及びサ —ビス識別子の異なる第 2のネットワークとを接続する中継装置の通信プロダラ ムであって、  30. The first network is a communication program of a relay device for connecting a second network having a different address system and a different service identifier, and
前記第 1のネットワークに接続された第 1の端末装置のアドレスと、前記第 1の 端末装置が提供するサ一ビスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを記憶する第 1の管理テ一ブルと、  A first terminal storing at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device; Management table,
前記第 1のネッ トワークに接続された第 1の端末装置のアドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケットと、前記第 2のネットヮー クに接続された第 2の端末装置のアドレスと前記第 2の端末装置のサ一ビス識別 子との組である第 2のソケットと、かっこの中継装置の前記第 2のネットワークの ァドレスとこの中継装置の前記第 2のネットワークのサービス識別子との組であ る第 3のソケットとを含んだ少なくとも一つの第 2のェントリを記憶する第 2の 管理テーブルと、  A first socket, which is a set of an address of a first terminal connected to the first network and a service identifier of the first terminal, and a second socket connected to the second network; A second socket, which is a set of the address of the terminal device and the service identifier of the second terminal device, the address of the second network of the parenthesis relay device, and the second address of the relay device. A second management table storing at least one second entry including a third socket which is a pair with a service identifier of the network;
同じサービスについて前記第 1のネットワークで使われるサービス識別子と前 記第 2のネットワークで使用されるサービス識別子とを含んだ少なくとも一つの 第 3のェントリを記億する第 3の管理テーブルと、  A third management table for storing at least one third entry including a service identifier used in the first network and a service identifier used in the second network for the same service;
前記第 2のネットワークに接続された第 2の端末装置から、あるサ一ビスに宛て たバケツトを受信すると、前記第 2の管理テーブルから、第 2のソケットと第 3の ソケットとの値それぞれが、このパケットの送信元ァドレスと送信元サービス識別 子との組と、宛先ァドレスと宛先サービス識別子との組とのそれぞれと同じ第 2の ェントリを検索する第 2の検索手段と、 前記第 2の検索手段により前記第 2のェントリが検出された場合、前記第 3の管 理テーブルから前記第 2のネットワークで使用されるサービス識別子の値が前記 バケツ卜の送信元サービス識別子と同じ第 3のェントリを検索する第 3の検索手 段と、 When a bucket addressed to a certain service is received from the second terminal device connected to the second network, the values of the second socket and the third socket are respectively read from the second management table. Second search means for searching for the same second entry as the pair of the source address and the source service identifier of the packet and the pair of the destination address and the destination service identifier, respectively; If the second search unit detects the second entry, the value of the service identifier used in the second network is the same as the source service identifier of the bucket from the third management table. A third search means for searching for a third entry;
前記バケツトの送信元サービス識別子を前記第 3の検索手段により検出された 第 3のエントリにおける第 1のネットワークのサービス識別子に書き換え、かつ前 記バケツトの宛先ァドレスと宛先サービス識別子とを前記検出された第 2のェン トリにおける第 1のソケットのァドレスとサービス識別子とに書き換える手段と、 前記第 2の検索手段により前記第 2のエントリが検出されない場合、前記第 3の 管理テーブルから前記第 2のネットワークで使用されるサービス識別子の値が前 記パケットの宛先サ一ビス識別子と同じ第 3のエントリを検索する第 4の検索手 段と、  The source service identifier of the bucket is rewritten to the service identifier of the first network in the third entry detected by the third search means, and the destination address and the destination service identifier of the bucket are detected. Means for rewriting the address of the first socket and the service identifier in the second entry; and if the second entry is not detected by the second search means, the second entry is retrieved from the third management table. A fourth search means for searching for a third entry in which the value of the service identifier used in the network is the same as the destination service identifier of the packet,
前記第 4の検索手段により検出された第 3のエントリにおける第 1のネットヮ 一クのサ一ビス識別子にて、前記第 1の管理テーブルを検索する第 1の検索手段と、 前記第 1の検索手段により検出された第 1のェントリの前記第 1の端末装置の ァドレスとこのェントリのサ一ビス識別子との組を第 1のソケットとし、前記パケ ットの送信元ァドレスと送信元サ一ビス識別子との組を第 2のソケットとし、かつ 前記バケツ卜の宛先ァドレスと宛先サービス識別子との組を第 3のソケットとし、 前記第 1のソケットと前記第 2のソケットと前記第 3のソケットとを含んだ第 2 のエントリを前記第 2の管理テーブルに登録し、更に、前記第 1のネットワークで 未使用のサービス識別子を選び、前記選ばれたサービス識別子を前記第 1のネット ワークのサービス識別子とし、前記バケツトの送信元サービス識別子を前記第 2の ネットワークのサービス識別子とする前記第 3のェントリを作成して、前記第 3の 管理テ一ブルに登録する登録手段と、 かつ  A first search unit that searches the first management table using a service identifier of a first network in a third entry detected by the fourth search unit; and the first search. A set of the address of the first terminal device of the first entry detected by the means and the service identifier of this entry is used as a first socket, and the source address and the source service of the packet are set. A set of an identifier is a second socket, and a set of a destination address and a destination service identifier of the bucket is a third socket, and the first socket, the second socket, and the third socket are Is registered in the second management table, further selects an unused service identifier in the first network, and stores the selected service identifier in a service of the first network. And an identifier, a source service identifier of the Baketsuto creating the third entry to the service identifier of the second network, and registering means for registering in the third management Te one table, and
前記バケツトの宛先ァドレス及び宛先サービス識別子を前記検出された第 1の エントリにおける第 1の端末装置のァドレス及びサービス識別子に書き換え、かつ 送信元サービス識別子を前記選ばれたサービス識別子に書き換える手段と を前記中継装置に機能させることを特徴とする通信プログラム。  Means for rewriting the destination address and destination service identifier of the bucket to the address and service identifier of the first terminal device in the detected first entry, and rewriting the source service identifier to the selected service identifier. A communication program for causing a relay device to function.
3 1 . 第 1のネッ トワークと、 この第 1のネッ トワークとはァドレス体系及びサ 一ビス識別子の異なる第 2のネッ トワークとを接続する中継装置の通信プ口グラ ムであって、 3 1. The first network is a communication program of a relay device that connects the second network with a different address system and a different service identifier from the first network. And
前記第 1のネットワークに接続された第 1の端末装置のァドレスと、前記第 1の 端末装置が提供するサ一ビスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを記憶する第 1の管理テーブルと、  A first terminal storing at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device; A management table,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと前記第 1の 端末装置のサービス識別子との組である第 1のソケットと、前記第 2のネットヮ一 クに接続された第 2の端末装置のァドレスと前記第 2の端末装置のサービス識別 子との組である第 2のソケッ卜と、かっこの中継装置における前記第 2のネットヮ 一クのァドレスとこの中継装置における前記第 2のネッ トワークのサービス識別 子との組である第 3のソケットとを含んだ少なくとも一つの第 2のェントリを記 憶する第 2の管理テーブルと、  A first socket, which is a set of an address of a first terminal device connected to the first network and a service identifier of the first terminal device, and a second socket connected to the second network; A second socket, which is a set of the address of the terminal device and the service identifier of the second terminal device, the address of the second network in the parentheses relay device, and the second socket in the relay device. A second management table for storing at least one second entry including a third socket paired with a service identifier of the network of the first embodiment;
同じサービスについて前記第 1のネットワークで使われるサービス識別子と前 記第 2のネットワークで使用されるサービス識別子とを含んだ少なくとも一つの 第 3のェントリを記憶する第 3の管理テーブルと、  A third management table storing at least one third entry including a service identifier used in the first network and a service identifier used in the second network for the same service;
前記第 1のネットワークに接続された第 1の端末装置から、あるサービスに宛て たバケツトを受信すると、前記第 3の管理テーブルにおける第 1のネットワークに 係るサービス識別子の値が前記バケツトの宛先サービス識別子である前記第 3の エントリを検索する第 3の検索手段と、  When a bucket addressed to a certain service is received from the first terminal device connected to the first network, the value of the service identifier related to the first network in the third management table is changed to the destination service identifier of the bucket. Third search means for searching for the third entry,
前記第 3の検索手段により前記第 3のエントリが検出された場合、前記第 2の管 理テーブルから、第 1のソケットと第 2のソケットとの値それぞれが、 このバケツ トの送信元ァドレスと送信元サービス識別子との組と、このパケットの宛先ァドレ スと前記検索された第 3のェントリにおける第 2のネットワークのサービス識別 子との組とのそれぞれと同じ第 2のェントリを検索する第 2の検索手段と、 前記第 2の検索手段により前記第 2のェントリが検出された場合、前記バケツト の宛先サービス識別子を前記検出された第 2のソケットのサービス識別子に書き 換え、かつ前記パケットの送信元ァドレスと送信元サービス識別子とを前記第 3の ソケットのァドレスとサービス識別子とに書き換える手段と、  When the third entry is detected by the third search means, the values of the first socket and the second socket are respectively replaced with the source address of the bucket from the second management table. A second entry for searching the same second entry as the combination of the source service identifier and the combination of the destination address of the packet and the service identifier of the second network in the retrieved third entry. When the second entry is detected by the second search means, the destination service identifier of the bucket is rewritten with the detected service identifier of the second socket, and the packet is transmitted. Means for rewriting the source address and the source service identifier to the address and service identifier of the third socket;
前記第 2の検索手段により前記第 2のェントリが検出されない場合、前記パケッ 卜の送信元ァドレスと送信元サービス識別子との組を第 1のソケットとし、前記パ ケットの宛先ァドレスと前記第 3の管理テーブルの検索により検出された第 3の ェントリの第 2のネットワークのサ一ビス識別子との組を第 2のソケットとし、力、 つ第 2のネットワークで未使用のサービス識別子を選び、この中継装置の前記第 2 のネットワークのァドレスと前記選ばれた第 2のネッ トワークのサービス識別子 との組を第 3のソケットとし、前記第 1のソケットと前記第 2のソケットと前記第 3のソケットとを含んだ第 2のェントリを前記第 2の管理テ一ブルに登録し、更に、 前記選ばれたサ一ビス識別子を前記第 2のネットワークのサービス識別子とし、か つ前記バケツトの送信元サービス識別子を前記第 1のネットワークのサービス識 別子とする前記第 3のェントリを作成して、前記第 3の管理テ一ブルに登録する登 録手段と、 かつ If the second search unit does not detect the second entry, a pair of the source address and the source service identifier of the packet is set as a first socket, and the destination address of the packet and the third address are set. Third table found by searching the management table The pair of the service identifier of the second network of the entry is used as the second socket, and a service identifier unused in the second network is selected, and the address of the second network of the relay device and the address of the second network are selected. A set of the selected service identifier of the second network is defined as a third socket, and a second entry including the first socket, the second socket, and the third socket is defined as the second socket. Registered in the management table of the first network, and further, the selected service identifier is used as the service identifier of the second network, and the source service identifier of the bucket is used as the service identifier of the first network. Registration means for creating the third entry and registering it in the third management table; and
前記バケツトの宛先サービス識別子を前記第 2のソケットにおけるサ一ビス識 別子の書き換え、かつ送信元ァドレスと送信元サービス識別子とを前記第 3のソケ ットのァドレスとサービス識別子とに書き換える手段と  Means for rewriting a destination service identifier of the bucket with a service identifier in the second socket, and rewriting a source address and a source service identifier with an address and a service identifier of the third socket;
を前記中継装置に機能させることを特徴とする通信プログラム。 A communication program that causes the relay device to function.
3 2. 請求項 2 7、 2 8、 2 9又は 3 0に記載の通信プログラムにおいて、第 1 のネットワークに接続された第 1の端末装置からはせられたこの第 1の端末装置 のアドレスとサ一ビス識別子とを含む登録要求を受信した際に、前記第 1の管理テ —ブルに前記登録要求に含まれる第 1の端末装置のァドレスとサービス識別子と を含んだ第 1のェントリを記憶する手段と、 3 2. The communication program according to claim 27, 28, 29, or 30, wherein the address of the first terminal device issued from the first terminal device connected to the first network is Upon receiving a registration request including a service identifier, the first management table stores a first entry including an address of a first terminal device and a service identifier included in the registration request. Means to
前記第 1の端末装置から発せられたこの第 1の端末装置のァドレスを含む削除 要求を受信した際に、前記第 1の管理テーブルから前記削除要求に含まれる第 1の 端末装置のァドレスを持つ第 1のェントリを検索し、検出された第 1のェントリを 削除する手段と  Upon receiving a deletion request including the address of the first terminal device issued from the first terminal device, the first terminal device receives the address of the first terminal device included in the deletion request from the first management table. Means for searching the first entry and deleting the first entry found;
を前記中継装置に機能させることを特徴とする通信プログラム。 A communication program that causes the relay device to function.
3 3. 請求項 2 7、 2 8、 2 9、 3 0又は 3 2に記載の通信プログラムにおいて、 前記第 1のネットワークに接続された第 1の端末装置に対して、動作確認要求メッ セージを送信し、前記第 1の端末装置から動作確認応答メッセージを受信すること により前記第 1の端末装置の動作を確認し、前記第 1の端末装置の動作を確認でき なかった場合、前記第 1の管理テーブルから前記動作確認要求メッセージを送信し た第 1の端末装置のァドレスを持つ第 1のェントリを検索し、検出された第 1のェ ントリを削除する動作確認要求手段を前記中継装置に機能させることを特徴とす る通信プログラム。 3 3. The communication program according to claim 27, 28, 29, 30, or 32, wherein an operation confirmation request message is sent to the first terminal device connected to the first network. Transmitting, confirming the operation of the first terminal device by receiving an operation confirmation response message from the first terminal device, and if the operation of the first terminal device cannot be confirmed, the first An operation confirmation requesting means for searching the first entry having the address of the first terminal device that transmitted the operation confirmation request message from the management table and deleting the detected first entry is provided in the relay device. Characterized by Communication program.
3 4. 請求項 2 7、 2 8、 2 9、 3 0、 3 2又は 3 3に記載の通信プログラムに おいて、前記第 1の管理テーブルにおける第 1のエントリに前記第 1のネットヮ一 クに接続された第 1の端末装置の処理能力情報が含まれていることを特徴とする 通信プログラム。  3 4. The communication program according to claim 27, 28, 29, 30, 32, or 33, wherein the first network in the first entry in the first management table. A communication program comprising processing capability information of a first terminal device connected to a communication terminal.
3 5. 請求項 2 7、 2 8、 2 9、 3 0、 3 2、 3 3又は 3 4に記載の通信プログ ラムにおいて、前記第 1のネットワークに接続された第 1の端末装置から、 この端 末装置のァドレスと処理能力情報とを含んだ能力通知メッセージを受信すると、前 記第 1の管理テーブルにおける前記第 1の端末装置に係る第 1のェントリに前記 能力通知メッセージに含まれる処理能力情報を記憶する手段を前記中継装置に機 能させることを特徴とする通信プログラム。  3 5. The communication program according to claim 27, 28, 29, 30, 32, 33, or 34, wherein the first terminal device connected to the first network includes: Upon receiving the capability notification message including the address of the terminal device and the processing capability information, the processing capability included in the capability notification message is stored in the first entry of the first terminal device in the first management table. A communication program causing the relay device to function as means for storing information.
3 6. 請求項 3 4又は 3 5に記載の通信プログラムにおいて、前記バケツトに含 まれる宛先サービス識別子と同じサービス識別子を持つ複数の第 1のェントリが 検出された場合、前記処理能力情報に基づいて一つの第 1のェントリを決定する手 段を前記中継装置に機能させることを特徴とする通信プログラム。  3 6. In the communication program according to claim 34 or 35, when a plurality of first entries having the same service identifier as the destination service identifier included in the bucket are detected, the communication program is based on the processing capability information. A communication program for causing the relay device to function as a means for determining one first entry.
3 7. 第 1のネットワークと、 この第 1のネッ トワークとはアドレス体系の異な る第 2のネットワークとが中継装置を介して接続されており、この第 1のネットヮ —クに接続された端末装置の通信プログラムであって、 3 7. The first network is connected to a second network having a different address system from the first network via a relay device, and a terminal connected to the first network is connected to the first network. A communication program for the device,
前記第 1のネットワークに接続された第 1の端末装置のァドレスと、前記第 1の 端末装置が提供するサービスのサービス識別子とを含んだ少なくとも一つの第 1 のェントリを記憶する第 1の管理テーブルを有する中継装置に対して、前記端末装 置のアドレスとこの端末装置が提供するサービスのサービス識別子とを含む登録 要求を通知する手段を前記端末装置に機能させることを特徴とする通信プロダラ ム。  A first management table storing at least one first entry including an address of a first terminal device connected to the first network and a service identifier of a service provided by the first terminal device; A communication program characterized by causing a terminal device to function as a means for notifying a relay device having a registration request including an address of the terminal device and a service identifier of a service provided by the terminal device.
3 8. 請求項 3 7に記載の通信プログラムにおいて、 前記中継装置に対して、 前 記端末装置のァドレスを含む削除要求を中継装置に通知する手段を前記端末装置 に機能させることを特徴とする通信プログラム。  38. The communication program according to claim 37, wherein the terminal device has a function of notifying the relay device of a deletion request including the address of the terminal device to the relay device. Communication program.
3 9. 請求項 3 7又は 3 8に記載の通信プログラムにおいて、前記中継装置から 動作確認要求メッセージを受信した際に、動作確認応答メッセージを送信する手段 を前記端末装置に機能させることを特徴とする通信プログラム。 3 9. The communication program according to claim 37 or claim 38, wherein, when receiving an operation confirmation request message from the relay device, causing the terminal device to function to transmit an operation confirmation response message. Communication program.
4 0. 請求項 3 7、 3 8又は 3 9に記載の通信プログラムにおいて、前記中継装 置に前記端末装置の処理能力情報を通知する手段を前記端末装置に機能させるこ とを特徴とする通信プログラム。 40. The communication program according to claim 37, 38, or 39, wherein the terminal device has a function of notifying the relay device of processing capability information of the terminal device. program.
4 1 . 第 1のネットワークと、 この第 1のネットワークとはァドレス体系の異な る第 2のネットワークとが中継装置を介して接続されており、この第 1のネットヮ 一クに接続された端末装置の通信プログラムであつて、  4 1. The first network is connected to a second network having a different address system from the first network via a relay device, and the terminal device connected to the first network is connected to the first network. Communication program,
前記第 1のネットワークに接続された自己の端末装置のアドレスと、前記自己の 端末装置が提供するサ一ビスのサービス識別子とを含んだ少なくとも一つの第 1 のエントリを前記中継装置の第 1の管理テ一プルに記憶させ、  The at least one first entry including the address of the terminal device connected to the first network and the service identifier of the service provided by the terminal device is stored in the first entry of the relay device. Memorized in the management template,
前記中継装置にて、前記第 2のネットワークに接続された他の端末装置からある サービスに宛てたバケツトに対して、前記第 1の管理テ一ブルから前記バケツ卜に 含まれる宛先サービス識別子と同じサービス識別子を持つ第 1のエントリが検索 され、前記バケツトの宛先ァドレスが、前記検索により検出された第 1のェントリ における自己の端末装置のァドレスに書き換えられ送信された前記バケツトを受 信することを前記端末装置に実行させることを特徴とする通信プログラム。  In the relay device, for a bucket addressed to a service from another terminal device connected to the second network, the same as the destination service identifier included in the bucket from the first management table. A first entry having a service identifier is searched for, and the destination address of the bucket is rewritten to the address of its own terminal device in the first entry detected by the search, and the transmitted bucket is received. A communication program executed by the terminal device.
PCT/JP2001/001284 2000-02-22 2001-02-22 Terminal, relay device, communication method, and communication program therefor WO2001063854A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2001234115A AU2001234115A1 (en) 2000-02-22 2001-02-22 Terminal, relay device, communication method, and communication program therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2000-44691 2000-02-22
JP2000044691A JP3252841B2 (en) 2000-02-22 2000-02-22 Terminal device, relay device, communication method, and recording medium on which communication program is recorded

Publications (1)

Publication Number Publication Date
WO2001063854A1 true WO2001063854A1 (en) 2001-08-30

Family

ID=18567411

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2001/001284 WO2001063854A1 (en) 2000-02-22 2001-02-22 Terminal, relay device, communication method, and communication program therefor

Country Status (3)

Country Link
JP (1) JP3252841B2 (en)
AU (1) AU2001234115A1 (en)
WO (1) WO2001063854A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003056770A1 (en) * 2001-12-26 2003-07-10 Allied Telesis K.K. Relay apparatus, address conversion control method, and program
CN1317874C (en) * 2003-09-27 2007-05-23 财团法人资讯工业策进会 Network address port conversion gateway and method for providing virtual host service fast inquiry replacement

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4576779B2 (en) * 2001-09-06 2010-11-10 株式会社日立製作所 Network control device and automatic notification system using the device
JP2003124962A (en) 2001-10-18 2003-04-25 Fujitsu Ltd Packet transferring apparatus and method, and semiconductor device
JP4555592B2 (en) * 2004-03-31 2010-10-06 富士通株式会社 Packet processing system
JP4642628B2 (en) * 2005-10-17 2011-03-02 日本電信電話株式会社 Data transfer device, address information search circuit, and address information search method
JP4665007B2 (en) * 2008-03-28 2011-04-06 パナソニック株式会社 Surveillance video transmission apparatus and method
JP6555027B2 (en) * 2015-09-07 2019-08-07 富士ゼロックス株式会社 Information processing system, communication relay device, and information processing device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Multi-net TA naizo IP router MN128-SOHO reference manual", NTT TELECOM ENGINEERING TOKYO KK. BUG K.K., 15 October 1997 (1997-10-15), pages 364 - 367, XP002941692 *
AKIRA KOASA: "Road balancing de web server no traffic wo kaisho; Hyperflow wo riyo shita web traffic on kaiketsu", WINDOWS NT POWERS, vol. 2, no. 6, 1 September 1998 (1998-09-01), BNN K.K., pages 184 - 197, XP002941694 *
MOTOHARU KUBO: "Gijutsu kaisetsu; IP address no kakatsu mondai wo kaiketsu suru IP mascarade", NIKKEI COMPUTER, vol. 422, 21 July 1997 (1997-07-21), NIKKEI BP K.K., pages 199 - 208, XP002941693 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003056770A1 (en) * 2001-12-26 2003-07-10 Allied Telesis K.K. Relay apparatus, address conversion control method, and program
CN1317874C (en) * 2003-09-27 2007-05-23 财团法人资讯工业策进会 Network address port conversion gateway and method for providing virtual host service fast inquiry replacement

Also Published As

Publication number Publication date
AU2001234115A1 (en) 2001-09-03
JP3252841B2 (en) 2002-02-04
JP2001237879A (en) 2001-08-31

Similar Documents

Publication Publication Date Title
US7616615B2 (en) Packet forwarding apparatus for connecting mobile terminal to ISP network
JP3972733B2 (en) Address translation device, address translation system, and SIP server
JP4028793B2 (en) Mobile terminal apparatus and inter-terminal packet communication method
EP1643729B1 (en) Migration communication control device
US6920138B2 (en) Communication method between IPv4 terminal and IPv6 terminal and IPv4-IPv6 converting apparatus
JP3641128B2 (en) MOBILE COMPUTER DEVICE, MOBILE COMPUTER MANAGEMENT DEVICE, MOBILE COMPUTER MANAGEMENT METHOD, AND COMMUNICATION CONTROL METHOD
JP4819953B2 (en) Control tunnel and direct tunnel setting method in IPv4 network-based IPv6 service providing system
JP4106909B2 (en) Packet communication control apparatus and packet communication control method
US20040246991A1 (en) IP address translator and packet transfer apparatus
EP1712044A1 (en) Tunneling service method and system
JP4010830B2 (en) Communication apparatus and network system
US20080002686A1 (en) Maintaining an existing connection between nodes
JP2004507976A (en) Assigning addresses to mobile stations
JP3842661B2 (en) COMMUNICATION SYSTEM, COMMUNICATION CONTROL METHOD, COMMUNICATION NODE, COMMUNICATION MEDIA NODE, COMMUNICATION MEDIA PROGRAM, SESSION MOVEMENT METHOD, AND SESSION MOVEMENT PROGRAM
JP2008510440A (en) Method for performing communication between a mobile IPv6 node and an IPv4 communication partner
JP2000201183A (en) Method for transmitting data
JP4186733B2 (en) Communication system, terminal, and address generation method
WO2001063854A1 (en) Terminal, relay device, communication method, and communication program therefor
CN1870633B (en) Method for supporting mobile IPv4 by double-stack moible IPv6 node
CN101796769B (en) Ipv6 over ipv4 transition method and apparatus for improving performance of control server
EP1874005A1 (en) A personal network comprising a plurality of clusters
JP5241665B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
JP4352645B2 (en) Terminal device, relay device, communication method, and recording medium recording the communication program
JP2005197936A (en) Communication system, registering device, and communication device
JP4654613B2 (en) Communication system, communication method, address distribution system, address distribution method, communication terminal

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 CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS 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

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

122 Ep: pct application non-entry in european phase