The present invention relates to a network system and a communication method, an information processing apparatus and method, and a program, and more particularly to a network system and a communication method, an information processing apparatus and method, and a program, suitable for use with the case wherein communication with another apparatus is performed via NAPT.
In the Internet, an Internet Protocol (hereinafter called EP) is currently used as a routing protocol. The version of the most popular IP is presently “4” (hereinafter called IPv4), and the number of bits of a transmission source address and a transmission destination address used by this version is “32”. In a global network, typically the Internet and the like, a 32-bit address (hereinafter called an IPv4 address) is uniquely assigned to each communication terminal so that it is possible to identify a transmission source address and a transmission destination address of communication data of communications among these apparatuses.
However, because of a rapid increase in an Internet use factor, there occurs a fear of an insufficient number of IPv4 addresses. In order to solve this, the IETF (Internet Engineering Task Force) has proposed an IP version “6” (hereinafter called IPv6) and has started promoting it However, actually, in order to transfer the routing protocol used by the Internet completely to IPv6, a large amount of time and cost is required and it is difficult to perfectly solve this problem.
In order to solve this problem, techniques called UPnP (Universal Plug and Play) have been studied. If a router compatible with UPnP is used as a relay means, it is anticipated that a large amount of time and cost is required. It is also necessary that a number of already existing routers incompatible with UPnP are all required to be replaced with routers compatible with UPnP. Therefore, it is not realistic to perfectly solve the above-described problem by this method.
As an approach to utilizing already existing IPv4 and expanding its addresses, a method has been proposed which uses an address space “private address” having specific properties.
As different from the IPv4 address (hereinafter called a global address) which is uniquely assigned to each terminal apparatus in a global network, the private address is assigned to each terminal in a predetermined limited area (local area). Therefore, when a communication terminal apparatus in a local area communicates with another communication terminal in the Internet having a global address, by using its private address, it is necessary to execute a process of translating the private address into the global address. A method of realizing this may be NAT (Network Address Translation).
If NAT is used, it is necessary to provide a correspondence between one private address and one global address. If there is a plurality of communication terminal apparatuses in a local area, only one of the communication terminal apparatuses can be connected to the Internet.
A method has been considered which utilizes a port which is a subsidiary (auxiliary) address provided under an address. More specifically, if this method is used, a private address assigned to a communication terminal apparatus and a port (i.e., socket) used for communication are translated into a global address and a port. This method is a method called NAPT (Network Address Port Translation) or IP masquerade. By utilizing NAPT, a plurality of communication terminal apparatuses each having a private address and a port can communicate with other communication terminal apparatuses each having a global address and a port.
However, as described above, when a communication apparatus accesses a communication terminal apparatus in a private network using NAPT for communications, from the outside of the private network, the communication apparatus cannot know the private address and port of the communication terminal apparatus before translation by NAPT, and the above-described communication is not possible unless some countermeasure is incorporated.
In contrast with this, there is a method whereby a router is made to identify an identifier of a communication terminal apparatus connected to a private network as a sub-address, and when a communication apparatus in the outside of the private network accesses the communication terminal apparatus, the communication apparatus specifies the communication terminal apparatus used as the communication partner by using the sub-address (for example, refer to Japanese Laid-open Publication No. 2001-345841 (pp. 9 to 16,
However, if the above communication method is used, it is necessary to use a router having the above-described function capable of using the sub-address. This leads to the issue that a communication apparatus cannot access a communication terminal apparatus in a private network via an already existing router not compatible with subaddresses.
Further, if the above communication method is used, there arises the other issue that a communication apparatus cannot access another communication apparatus via a plurality of routers.
Furthermore, if the above communication method is used, there arises the other issue that if a router for relaying communication increments a port, particularly increments a port by two or more, to be used for communication by a communication terminal apparatus, each time the address and port of a communication destination of the communication terminal apparatus change, it is difficult to specify the port of the communication terminal apparatus set by the router and a communication apparatus cannot access the communication terminal apparatus via the router of this kind.
The present invention has been made in consideration of these circumstances and facilitates communication with another apparatus via NAPT even in already existing facilities which execute NAPT translation of the type that a port to be used for relaying communication of a communication terminal apparatus is incremented two or more each time the address and port of a communication destination of the communication terminal apparatus change.
A network system of the present invention is characterized in that a first information processing apparatus supplies first and second packets to first and second addresses of a third information processing apparatus via a first address translation apparatus to request for addresses on a second network corresponding to the first information processing apparatus; the third information processing apparatus acquires the first and second packets, generates third and fourth packets by using third and fourth addresses on the second network corresponding to the first information processing apparatus, the third and fourth addresses being contained in the first and second packets, and supplies the generated third and fourth packets to the first information processing apparatus; the first information processing apparatus acquires the third and fourth packets, predicts a fifth address which is an address on the second network corresponding to the first information processing apparatus by using the third and fourth addresses contained in the third and fourth packets, the fifth address being used when a second information processing apparatus is accessed, and supplies the predicted fifth address to a fourth information processing apparatus; the fourth information processing apparatus stores the fifth address in association with a user ID of the first information processing apparatus; the second information processing apparatus supplies fifth and sixth packets to the first and second addresses of the third information processing apparatus via a second address translation apparatus to request for addresses on the second network corresponding to the second information processing apparatus; the third information processing apparatus acquires the fifth and sixth packets, generates seventh and eighth packets by using sixth and seventh addresses on the second network corresponding to the second information processing apparatus, the sixth and seventh addresses being contained in the fifth and sixth packets, and supplies the generated seventh and eighth packets to the second information processing apparatus; the second information processing apparatus acquires the seventh and eighth packets, predicts an eighth address which is an address on the second network corresponding to the second information processing apparatus by using the sixth and seventh addresses contained in the seventh and eighth packets, the eighth address being used when the second information processing apparatus is accessed, and supplies the predicted eighth address to the fourth information processing apparatus; the fourth information processing apparatus stores the eighth address in association with a user ID of the second information processing apparatus; the first information processing apparatus requests the fourth information processing apparatus for an address corresponding to a user of the second information processing apparatus as a communication partner; in response to this request, the fourth information processing apparatus supplies the eighth address to the first information processing apparatus; the first information processing apparatus acquires the eighth address, and accesses the second information apparatus based on the eighth address; the second information processing apparatus requests the fourth information processing apparatus for an address corresponding to a user of the first information processing apparatus as a communication partner, in response to this request, the fourth information processing apparatus supplies the fifth address to the second information processing apparatus; and the second information processing apparatus acquires the fifth address, and accesses the first information apparatus based on the fifth address.
The third information processing apparatus may include a fifth information processing apparatus connected to the second network and having the first address and a sixth information processing apparatus connected to the second network and having the second address, the fifth information processing apparatus acquires the first packet, generates the third packet by using the third address contained in the first packet, supplies the third packet to the first information processing apparatus, acquires the fifth packet, generates the seventh packet by using the sixth address contained in the fifth packet, supplies the seventh packet to the second information processing apparatus, and the sixth information processing apparatus acquires the second packet, generates the fourth packet by using the fourth address contained in the second packet, supplies the fourth packet to the first information processing apparatus, acquires the sixth packet, generates the eighth packet by using the seventh address contained in the sixth packet, and supplies the sixth packet to the second information processing apparatus.
A communication method of the present invention is characterized in that a first information processing apparatus supplies first and second packets to first and second addresses of a third information processing apparatus via a first address translation apparatus to request for addresses on a second network corresponding to the first information processing apparatus; the third information processing apparatus acquires the first and second packets, generates third and fourth packets by using third and fourth addresses on the second network corresponding to the first information processing apparatus, the third and fourth addresses being contained in the first and second packets, and supplies the generated third and fourth packets to the first information processing apparatus; the first information processing apparatus acquires the third and fourth packets, predicts a fifth address which is an address on the second network corresponding to the first information processing apparatus by using the third and fourth addresses contained in the third and fourth packets, the fifth address being used when a second information processing apparatus is accessed, and supplies the predicted fifth address to a fourth information processing apparatus; the fourth information processing apparatus stores the fifth address in association with a user ID of the first information processing apparatus; the second information processing apparatus supplies fifth and sixth packets to the first and second addresses of the third information processing apparatus via a second address translation apparatus to request for addresses on the second network corresponding to the second information processing apparatus; the third information processing apparatus acquires the fifth and sixth packets, generates seventh and eighth packets by using sixth and seventh addresses on the second network corresponding to the second information processing apparatus, the sixth and seventh addresses being contained in the fifth and sixth packets, and supplies the generated seventh and eighth packets to the second information processing apparatus; the second information processing apparatus acquires the seventh and eighth packets, predicts an eighth address which is an address on the second network corresponding to the second information processing apparatus by using the sixth and seventh addresses contained in the seventh and eighth packets, the eighth address being used when the second information processing apparatus is accessed, and supplies the predicted eighth address to the fourth information processing apparatus; the fourth information processing apparatus stores the eighth address in association with a user ID of the second information processing apparatus; the first information processing apparatus requests the fourth information processing apparatus for an address corresponding to a user of the second information processing apparatus as a communication partner, in response to this request, the fourth information processing apparatus supplies the eighth address to the first information processing apparatus; the first information processing apparatus acquires the eighth address, and accesses the second information apparatus based on the eighth address; the second information processing apparatus requests the fourth information processing apparatus for an address corresponding to a user of the first information processing apparatus as a communication partner, in response to this request, the fourth information processing apparatus supplies the fifth address to the second information processing apparatus; and the second information processing apparatus acquires the fifth address, and accesses the first information apparatus based on the fifth address.
A first information processing apparatus of the present invention is characterized by including supply means for supplying first and second packets to first and second addresses of a second other information processing apparatus connected to a second network, via a first address translation apparatus to request for addresses on the second network corresponding to the information processing apparatus, first acquisition means for acquiring third and fourth packets containing third and fourth addresses which are addresses on the second network corresponding to the information processing apparatus and supplied from the second other information processing apparatus based on the first and second packets supplied from the supply means, and prediction means for predicting a fifth address which is an address on the second network corresponding to the information processing apparatus, by using the third and fourth addresses contained in the third and fourth packets acquired by the first acquisition means, the fifth address being used when a first other information processing apparatus is accessed.
The supply means may supply the second packet in succession to the first packet.
The second other information processing apparatus may include a third other information processing apparatus connected to the second network and having the first address and a fourth other information processing apparatus connected to the second network and having the second address, wherein the supply means supplies the first packet to the third other information processing apparatus and supplies the second packet to the fourth other information processing apparatus, and the first acquisition means acquires the third packet supplied from the third other information processing apparatus and the fourth packet supplied from the fourth other information processing apparatus.
The first to fourth addresses may include an IP address and a port number.
The prediction means may predict the fifth address by calculating a difference value between the fourth and third addresses and adding the calculating difference value to the fourth address.
The first information processing apparatus may further comprise first request means for requesting the third other information processing apparatus connected to the second network for managing addresses on the second network of the information processing apparatus and the first other information processing apparatus, for the supply of the fifth address predicted by the prediction means and for the registration of the fifth address, second request means for requesting a sixth address predicted by the first other information processing apparatus and registered in the third other information processing apparatus, the sixth address being an address on the second network of the first other information processing apparatus, third acquisition means for acquiring the sixth address supplied from the third other information processing apparatus based on the second request means, and third request means for requesting for opening communications relative to the address on the second network of the first other information processing apparatus, the address being set based on the sixth address acquired by the third acquisition means.
The third request means may request for opening communications by supplying the fifth packet for requesting for opening communications with the first other information processing apparatus, from a plurality of addresses on a first network of the information processing apparatus to a plurality of addresses of a second address translation apparatus, the addresses being consecutive starting from the fifth address.
The third request means may request for opening communications by supplying the fifth packet for requesting for opening communications with the first other information processing apparatus, from a plurality of addresses on the first network of the information processing apparatus to a plurality of addresses of the second address translation apparatus, the addresses being every second addresses and consecutive from the fifth address.
The third request means may request for opening communications by supplying the fifth packet for requesting for opening communications with the first other information processing apparatus, from a plurality of addresses on the first network of the information processing apparatus to each address of different address groups among a plurality of address groups each having a plurality of consecutive addresses and one address, the first address group having the fifth address as a start address.
The third request means may request for opening communications by supplying the fifth packet for requesting for opening communications with the first other information processing apparatus, from a plurality of addresses on the first network of the information processing apparatus to each address of different address groups among a plurality of address groups each having a plurality of consecutive addresses, the first address group having the fifth address as a start address.
The first information processing apparatus may further comprise master/slave judging means for judging whether the first information processing apparatus is a master for controlling communications with the first other information processing apparatus or a slave, wherein the third request means requests for opening communications based on an algorithm selected by a judgment result by the master/slave judging means.
A first information processing method of the preset invention is characterized by including a supply step of supplying first and second packets to first and second addresses of a second other information processing apparatus having the first and second addresses and connected to a second network via a first address translation apparatus to request for addresses on the second network corresponding to the information processing apparatus, a first acquisition step of acquiring third and fourth packets containing third and fourth addresses which are addresses on the second network corresponding to the information processing apparatus and supplied from the second other information processing apparatus based on the first and second packets supplied by a process at the supply step, and a prediction step of predicting a fifth address which is an address on the second network corresponding to the information processing apparatus, by using the third and fourth addresses contained in the third and fourth packets acquired by the first acquisition means, the fifth address being used when a first other information processing apparatus is accessed.
A first program of the present invention is characterized by making a computer execute a supply step of supplying first and second packets to first and second addresses of a second other information processing apparatus connected to a second network via a first address translation apparatus to request for addresses on the second network corresponding to the information processing apparatus, a first acquisition step of acquiring third and fourth packets containing third and fourth addresses which are addresses on the second network corresponding to the information processing apparatus and supplied from the second other information processing apparatus based on the first and second packets supplied by a process at the supply step, and a prediction step of predicting a fifth address which is an address on the second network corresponding to the information processing apparatus, by using the third and fourth addresses contained in the third and fourth packets acquired by the first acquisition means, the fifth address being used when a first other information processing apparatus is accessed.
A second information processing apparatus of the present invention is characterized by including acquisition means for acquiring information of an address on a network of a first other information processing apparatus, the address being supplied from the first other information processing apparatus and predicted by the first other information processing apparatus, storage means for storing the information of the address on the network of the first other information processing apparatus acquired by the acquisition means, and supply means responsive to a request from a second other information processing apparatus as a communication partner of the first other information processing apparatus, for supplying the second other information processing apparatus with the information of the address on the network of the first other information processing apparatus stored in the storage means and predicted by the first other information processing apparatus.
A second information processing method of the present invention is characterized by including an acquisition step of acquiring information of an address on a network of a first other information processing apparatus, the address being supplied from the first other information processing apparatus and predicted by the first other information processing apparatus, a storage step of storing the information of the address on the network of the first other information processing apparatus acquired by a process at the step, and a supply step responsive to a request from a second other information processing apparatus as a communication partner of the first other information processing apparatus, of supplying the second other information processing apparatus with the information of the address on the network of the first other information processing apparatus stored by a process at the storage step and predicted by the first other information processing apparatus.
A second program of the present invention is characterized by making a computer execute an acquisition step of acquiring information of an address on a network of a first other information processing apparatus, the address being supplied from the first other information processing apparatus and predicted by the first other information processing apparatus, a storage step of storing the information of the address on the network of the first other information processing apparatus acquired by a process at the step, and a supply step responsive to a request from a second other information processing apparatus as a communication partner of the first other information processing apparatus, of supplying the second other information processing apparatus with the information of the address on the network of the first other information processing apparatus stored by a process at the storage step and predicted by the first other information processing apparatus.
In the network system and the communication method of the present invention, the first information processing apparatus supplies the first and second packets to the first and second addresses of the third information processing apparatus via the first address translation apparatus to request for addresses on the second network corresponding to the first information processing apparatus; the third information processing apparatus acquires the first and second packets, generates the third and fourth packets by using the third and fourth addresses on the second network corresponding to the first information processing apparatus, the third and fourth addresses being contained in the first and second packets, and supplies the generated third and fourth packets to the first information processing apparatus; the first information processing apparatus acquires the third and fourth packets, predicts the fifth address which is the address on the second network corresponding to the first information processing apparatus by using the third and fourth addresses contained in the third and fourth packets, the fifth address being used when the second information processing apparatus is accessed, and supplies the predicted fifth address to the fourth information processing apparatus; the fourth information processing apparatus stores the fifth address in association with the user ID of the first information processing apparatus; the second information processing apparatus supplies the fifth and sixth packets to the first and second addresses of the third information processing apparatus via the second address translation apparatus to request for addresses on the second network corresponding to the second information processing apparatus; the third information processing apparatus acquires the fifth and sixth packets, generates the seventh and eighth packets by using the sixth and seventh addresses on the second network corresponding to the second information processing apparatus, the sixth and seventh addresses being contained in the fifth and sixth packets, and supplies the generated seventh and eighth packets to the second information processing apparatus; the second information processing apparatus acquires the seventh and eighth packets, predicts the eighth address which is an address on the second network corresponding to the second information processing apparatus by using the sixth and seventh addresses contained in the seventh and eighth packets, the eighth address being used when the second information processing apparatus is accessed, and supplies the predicted eighth address to the fourth information processing apparatus; the fourth information processing apparatus stores the eighth address in association with the user ID of the second information processing apparatus; the first information processing apparatus requests the fourth information processing apparatus for an address corresponding to a user of the second information processing apparatus as a communication partner, in response to this request, the fourth information processing apparatus supplies the eighth address to the first information processing apparatus; the first information processing apparatus acquires the eighth address, and accesses the second information apparatus based on the eighth address; the second information processing apparatus requests the fourth information processing apparatus for an address corresponding to a user of the first information processing apparatus as a communication partner, in response to this request, the fourth information processing apparatus supplies the fifth address to the second information processing apparatus; and the second information processing apparatus acquires the fifth address, and accesses the first information apparatus based on the fifth address.
In the first information processing apparatus and method and the program of the present invention, the first and second packets are supplied to the first and second addresses of the second other information processing apparatus connected to the second network, via the first address translation apparatus to request for addresses on the second network corresponding to the information processing apparatus, acquired are the third and fourth packets containing the third and fourth addresses which are addresses on the second network corresponding to the information processing apparatus and supplied from the second other information processing apparatus based on the supplied first and second packets, and predicted is the fifth address which is an address on the second network corresponding to the information processing apparatus, by using the third and fourth addresses contained in the acquired third and fourth packets, the fifth address being used when the first other information processing apparatus is accessed.
In the second information processing apparatus and method and the program of the present invention, acquired is information of the address on the network of the first other information processing apparatus, the address being supplied from the first other information processing apparatus and predicted by the first other information processing apparatus, stored is the information of the acquired address on the network of the first other information processing apparatus, and responsive to the request from the second other information processing apparatus as a communication partner of the first other information processing apparatus, the second other information processing apparatus is supplied with the stored information of the address on the network of the stored first other information processing apparatus predicted by the first other information processing apparatus.
In the following, preferred embodiments of the present invention will be described and the correspondences between constituent elements described in Claims and particular examples in the preferred embodiments of the present invention is illustratively shown in the following. This description is made in order to confirm that particular examples which support the inventions described in Claims are described in the preferred embodiments of the present invention. Therefore, even if there are particular examples not described herein and corresponding to the constituent elements although the particular examples are described in the preferred embodiments of the present invention, this does not mean that the particular examples do not correspond to the constituent elements. Conversely, even if particular examples corresponding to the constituent elements are described herein, this does not mean that the particular examples do not correspond to constituent elements other than the first-mentioned constituent elements.
Further, this description does not mean that the inventions corresponding to the particular examples described in the preferred embodiments of the present invention are all described in Claims. In other words, this description does not disclaim the existence of inventions corresponding to the particular examples described in the preferred embodiments of the present invention and not described in Claims of this application, i.e., the existence of inventions divisionally filed or added by amendments.
A network system described in Claim 1 of Claims is characterized by including a first information processing apparatus (e.g., local communication apparatuses 11-1 to 11-n of
The third information processing apparatus of the network system described in Claim 2 of Claims is characterized by including a fifth information processing apparatus (e.g., the apparatus service providing apparatus 51 of
A communication method described in Claim 3 of Claims is characterized by including a first information processing apparatus (e.g., local communication apparatuses 11-1 to 11-n of
An information processing apparatus described in Claim 4 of Claims is characterized by including supply means (e.g., a communication information acquisition processing unit 65 of
The supply means of the information processing apparatus described in Claim 5 of Claims is characterized in that the second packet is supplied (Steps S4 and S6 or Steps S4 and S46 of
The second other information processing apparatus different from the information processing apparatus described in Claim 6 of Claims is character by including a third other information processing apparatus (e.g., the apparatus service providing apparatus 51) connected to the second network and having the first address and a fourth other information processing apparatus (e.g., the apparatus service providing apparatus 52) connected to the second network and having the second address, wherein the supply means supplies the first packet to the third other information processing apparatus and supplies the second packet to the fourth other information processing apparatus, and the first acquisition means acquires the third packet supplied from the third other information processing apparatus and the fourth packet supplied from the fourth other information processing apparatus.
The first to fourth addresses of the information processing apparatus described in Claim 7 of Claims are characterized by including an IP address and a port number (e.g., having the structure like a predicted communication source Glo-IP-port of
The prediction means of the information processing apparatus described in Claim 8 of Claims is characterized by predicting (Step S179 of
The information processing apparatus described in Claim 9 of Claims is characterized by further including first request means (e.g., the communication information acquisition processing unit 65 of
The third request means of the information processing apparatus described in Claim 10 of Claims is characterized by requesting (e.g., a communication start request process of
The third request means of the information processing described in Claim 11 of Claims is characterized by requesting (e.g., a second communication start request process of
The third request means of the information processing apparatus described in Claim 12 of Claims is chard by requesting (e.g., a third communication start request process of
The third request means of the information processing apparatus described in Claim 13 of Claims is characterized by requesting (e.g., a fourth communication start request process of
The information processing apparatus described in Claim 14 of Claims is characterized by further including master/slave judging means (e.g., the communication information acquisition processing unit 65 of
An information processing method described in Claim 15 of Claims is characterized by including a supply step (e.g., Steps S175 and 177 of
A program described in Claim 16 of Claims is characterized by making a computer execute a supply step (e.g., Steps S175 and 177 of
An information processing apparatus described in Claim 17 of Claims is characterized by including acquisition means (e.g., a user registration information management processing unit 155 of
An information processing method described in Claim 18 of Claims is characterized by including an acquisition step (e.g., Step S193 of
A program described in Claim 19 of Claims is characterized by making a computer execute an acquisition step (e.g., Step S193 of
In the following, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
In the network system shown in
In the following, if it is not necessary to distinguishably describe the local communication apparatuses 11-1 to 11-n, they are collectively called a local communication apparatus 11.
Similarly, n local communication apparatuses 31-1 to 31-n as communication terminal apparatuses for instant message service (hereinafter called IM service) are connected to a relay apparatus 32 which is a router having a NAPT function, to constitute a private network 30 different from the private network 10. The relay apparatus 32 is also connected to the network 21 and assigned a global address which is an address globally usable in the network 21. The relay apparatus 32 has a plurality of ports as sub-addresses of the global address.
In the following, if it is not necessary to distinguishably describe the local communication a 31-1 to 31-n, they are collectively called a local communication apparatus 31.
As shown in
For example, when data is transmitted via the network 21, the local communication apparatus 11 supplies the relay apparatus 12 with the data as well as the assigned private address, and port information, as address port information (Pri-IP-port) of the transmission source.
By using the NAPT function, the relay apparatus 12 translates the address port information (Pri-IP-port) (hereinafter called private address port information) in the private network 10 acquired from the local communication apparatus 11, into address port information (Glo-IP-port) (hereinafter called global address port information) in the network 21 constituted of the global address and global port, and supplies the global address port information along with the acquired data to the network 21.
Also in the private network 30, similar processes to those in the private network 10 are performed by the local communication terminal apparatus 31 and relay apparatus 32, and so the description thereof is omitted.
The local communication apparatus 11 and local communication apparatus 31 communicate each other via the private networks 10 and 30, relay apparatuses 12 and 32 and network 21, by utilizing the IM service provided by a user service providing apparatus 41 and an apparatus service providing apparatus 51.
In the following, when the local communication apparatus 11 communicates with the apparatus on the network 21 side via the relay apparatus 12, the description of the NAPT translation process for the address port information by the relay apparatus 12 is omitted when unnecessary. The translation process by the relay apparatus 32 is omitted similarly when unnecessary.
Reverting to
The user service providing apparatus 41 provides via the network 21 user service which is a portion of the IM service and is service for a user of the local communication apparatus 11 or 31 using the IM service. The user service providing apparatus 41 provides the user service by communicating with the local communication apparatus 11 accessing via the private address 10, relay apparatus 12 and network 21, or by communicating with the local communication apparatus 31 accessing via the private address 30, relay apparatus 32 and network 31.
The apparatus service providing apparatuses 51 and 52 provide via the network 21 apparatus service which is a portion of the IM service and is service for the local communication apparatus 11 or 31 using the IM service. The apparatus service providing apparatuses 51 and 52 provide apparatus service by communicating with the local communication apparatus 11 accessing via the private address 10, relay apparatus 12 and network 21, or by communicating with the local communication apparatus 31 accessing via the private address 30, relay apparatus 32 and network 31.
Referring to
An authentication processing unit 64 has therein a control unit, a calculation unit or a data storage unit (each not shown) and executes a process regarding authentication of a user of the local communication apparatus 11 to be provided with the IM service. A communication information acquisition processing unit 65 has therein a control unit, a calculation unit or a data storage unit (each not shown) and executes a process regarding acquisition of communication information necessary for connection to another local communication apparatus. An inter-local communication control unit 66 has therein a control unit, a calculation unit or a data storage unit (each not shown) and controls communications with another local communication apparatus as a communication partner in the communications using the IM service.
A user authentication interface provision processing unit 67 has therein a control unit, a calculation unit or a data storage unit (each not shown) and provides GUI (Graphical User Interface) for receiving a user input during user authentication.
A user identification interface provision processing unit 68 has therein a control unit, a calculation unit or a data storage unit (each not shown) and provides GUI for making a user input information of a communication partner.
CPU 61, ROM 62, RAM 63, authentication processing unit 64, communication information acquisition processing unit 65, inter-local communication control unit 66 and user authentication interface provision processing unit 67 and user identification interface provision processing unit 68 are interconnected by a bus 70. An input/output interface 80 is also connected to the bus 70.
The input/output interface 80 is connected to an input unit 81 constituted of a keyboard and a mouse, and outputs a signal input from the input unit 81 to CPU 61. The input/output interface 80 is also connected to an output unit 82 constituted of a display and a speaker.
The input/output interface 80 is also connected to a storage unit 83 constituted of a hard disc, an EEPROM (Electrically Erasable and Programmable Read Only Memory) and the like, and to a communication unit 84 for data communication with another apparatus via the network such as the private network 10. A drive 85 is used for reading/writing data from/to a removable medium 91 made of a recording medium such as a magnetic disc, an optical disc, a magneto-optical disc and a semiconductor memory.
An example of the internal structure of the local communication apparatus 12 of
Referring to
An address translation unit 104 has therein a control unit, a calculation unit or a data storage unit (each not shown) and executes a process of translating the private address port information of the private network 10 supplied from the local communication apparatus 11 via the communication unit 124, into the global address port information of the network 21.
CPU 101, ROM 102, RAM 103, and address translation unit 104 are interconnected by a bus 110. An input/output interface 120 is also connected to the bus 110.
The input/output interface 120 is connected to an input unit 121 constituted of a keyboard and a mouse, and outputs a signal input from the input unit 121 to CPU 101. The input/output interface 120 is also connected to an output unit 122 constituted of a display and a speaker.
The input/output interface 120 is also connected to a storage unit 123 constituted of a hard disc, an EEPROM and the like, and to a communication unit 124 for data communication with another apparatus via the private network 10 and network 21. A drive 125 is used for reading/writing data from/to a removable medium 131 made of a recording medium such as a magnetic disc, an optical disc, a magneto-optical disc and a semiconductor memory.
An example of the internal structure of the relay apparatus 32 of
Referring to
An authentication processing unit 154 has therein a control unit, a calculation unit or a data storage unit (each not shown) and executes a process regarding authentication of a user to be provided with the IM service. A user registration information management processing unit 155 has therein a control unit, a calculation unit or a data storage unit (each not shown) and executes a process regarding management of user registration information supplied from the local communication apparatus and registered in a user registration information database 177.
CPU 151, ROM 152, RAM 153, authentication processing unit 154 and user registration information management processing unit 155 are interconnected by a bus 160.
An input/output interface 170 is also connected to the bus 160.
The input/output interface 170 is connected to an input unit 171 constituted of a keyboard and a mouse, and outputs a signal-input from the input unit 171 to CPU 151. The input/output interface 170 is also connected to an output unit 172 constituted of a display and a speaker.
The input/output interface 170 is also connected to a storage unit 173 constituted of a hard disc, an EEPROM and the like, and to a communication unit 174 for data communication with another apparatus via the network 21 and the like. A drive 175 is used for reading/writing data from/to a removable medium 181 made of a recording medium such as a magnetic disc, an optical disc, a magneto-optical disc and a semiconductor memory.
The input/output interface 170 is also connected to a user authentication information database 176 and a user registration information database 177, the former storing user authentication information to be used by the authentication process to be executed by the authentication processing unit 154 and the latter storing user registration information which is information of each user regarding the IM service.
Referring to
An address port information provision processing unit 204 has therein a control unit, a calculation unit or a data storage unit (each not shown) and checks and supplies the global address port information in response to a request from the local communication apparatus 11 or 31.
CPU 201, ROM 202, RAM 203, and address port information provision processing unit 204 are interconnected by a bus 210. An input/output interface 220 is also connected to the bus 210.
The input/output interface 220 is connected to an input unit 221 constituted of a keyboard and a mouse, and outputs a signal input from the input unit 221 to CPU 201. The input/output interface 220 is also connected to an output unit 222 constituted of a display and a speaker.
The input/output interface 220 is also connected to a storage unit 223 constituted of a hard disc, an EEPROM and the like, and to a communication unit 224 for data communication with another apparatus via the network 21 and the like. A drive 225 is used for reading/writing data from/to a removable medium 231 made of a recording medium such as a magnetic disc, an optical disc, a magneto-optical disc and a semiconductor memory.
The apparatus service providing apparatus 52 of
Next, with reference to the flow charts shown in FIGS. 7 to 10, description will be made on an example of a process flow to be executed by each apparatus of the network system of
Description will be made on communication of the local communication apparatus 11 with the local communication apparatus 31 by using the IM service provided by the user service providing apparatus 41 and apparatus service providing apparatus 51, i.e., communication between communication apparatuses existing on different private networks via two routers having the NAPT function.
First, in order to use the IM service, at Step S1 the local communication apparatus 11 operated by a user supplies a user authentication process request to the user service providing apparatus 41 via the relay apparatus 12. At Step S21 the user service providing apparatus 41 acquires the supplied authentication request.
Similarly, in order to use the IM service, at Step S41 the local communication apparatus 31 operated by a user supplies a user authentication process request to the user service providing apparatus 41 via the relay apparatus 32. At Step S21 the user service providing apparatus 41 acquires the supplied authentication request
At Step S23 the user service providing apparatus 41 acquired the authentication request from the local communication apparatus 11 or 31 executes the authentication process. If the user of the local communication apparatus 11 or 31 is authenticated, at Step S24 the user service providing apparatus 41 supplies an authentication success notice to the local communication apparatus 11 or 31 via the network 21.
At Step S2 the local communication apparatus 11 acquires the authentication success notice to confirm that the user has been authenticated. Similarly, at Step S42 the local communication apparatus 31 acquires the authentication success notice supplied from the user service providing apparatus 41 to confirm that the user has been authenticated.
In the above communications, the local communication apparatuses 11 and 31 and user service providing apparatus 41 process transmission/reception packets based on the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol system using HTRP (HyperText Transfer Protocol), RTP (Real-time Transport Protocol) or the like.
Of the above processes, an example of the authentication process to be executed by the local communication apparatus 11 will be described with reference to the flow chart of
At Step S121 the authentication processing unit 64 of the local communication apparatus 11 operated by a user and started the authentication process controls the communication unit 84 to request the user service providing apparatus 41 for the information regarding user authentication via the relay apparatus 12.
The user service providing apparatus 41 requested for the information regarding user authentication supplies the information regarding user authentication to the requesting local communication apparatus 11 via the network 21, as will be later described.
The authentication processing unit 64 controls the communication unit 84 to receive the information regarding user authentication, and after a lapse of a predetermined time, executes a process at Step S122 to thereby judge whether the information regarding user authentication has been acquired. If it is judged that the information regarding user authentication has been acquired, the authentication processing unit 64 controls the user authentication interface provision processing unit 67 based on the acquired information regarding user authentication to receive user authentication GUI, and at Step S123 supplies GUI to the output unit 82 to display an authentication screen such as shown in
As shown in
The user ID and password for the IM service are information assigned in proceed to a user of the local communication apparatus 11 using the IM service. When the authentication process is to be performed, the user of the local communication apparatus 11 enters the user ID and password into the user ID field 252 and password input field 253, respectively and then operates the login button 254.
Reverting to
If it is judged that the user operated the input unit 81 and input the user authentication information, the authentication processing unit 64 proceeds to a process at Step S125 whereat it supplies the received user authentication information as an authentication request to the user service providing apparatus 41 via the relay apparatus 12. This process corresponds to the process at Step S1 of
As the user service providing apparatus 41 acquires the authentication request including the user authentication information, the user service providing apparatus 41 authenticates the user authentication information and supplies an authentication result to the local communication apparatus 11 via the network 21.
The authentication processing unit 64 of the local communication apparatus 11 controls the communication unit 84 to receive the information regarding user authentication, and after a lapse of a predetermined time, judges at Step S126 whether the authentication result has been acquired.
If it is judged that the authentication result has been acquired like the process at Step S2 of
If it is judged at Step S122 that the information regarding user authentication has not been acquired, the authentication processing unit 64 proceeds to the process at Step S129 whereat the authentication processing unit 64 controls the output unit 82 to display an error message representative of an authentication failure on the display.
At Step S130 the authentication processing unit 64 made the error message be displayed judges whether authentication is performed again, and if it is judged from the user operation or the like that authentication is performed again, the process returns to the process at Step S123 to repeat the succeeding processes.
If it is judged at Step S130 that authentication is not performed again and the authentication process is to be terminated, the authentication processing unit 64 terminates the authentication process.
If it is judged at Step S126 that the authentication result supplied from the user service providing apparatus 41 has not been acquired, the authentication processing unit 64 proceeds to the process at Step S129 to execute the above-described process.
If it is judged at Step S127 that the user is not authenticated, the authentication processing unit 64 proceeds to the process at Step S129 to execute the above-described process.
The local communication apparatus 31 using the IM service executes an authentication process similar to the above-described process. Therefore, since the flow chart of
Next, with reference to the flow chart of
At Step S151 the authentication processing unit 154 of the user service providing apparatus 41 controls the communication unit 174 to judge whether the information regarding user authentication has been requested, and stands by until it is judged that the information has been requested, the information regarding user authentication being supplied from the local communication apparatus 11 or 31 via the network 21 by the process at Step S121 of
If it is judged that the information regarding user authentication has been requested, at Step S152 the authentication processing unit 154 controls the communication unit 174 to supply the information regarding user authentication to the requesting apparatus.
The authentication processing unit 154 supplied the information regarding user authentication controls the communication unit 174 to receive the user authentication information, and after a lapse of a predetermined time, it is judged at Step S153 whether the user authentication information supplied from the local communication apparatus 11 or 31 by the process at Step S125 of
If it is judged that the user authentication information has been acquired, the authentication processing unit 154 proceeds to the process at Step S154 whereat it executes the authentication process by referring to the user authentication information database 176. This process corresponds to the process at Step S23 of
Reverting to
If it is judged at Step S153 that the user authentication information has not been acquired, the authentication processing unit 154 terminates the authentication process. The authentication processing unit 154 terminated the authentication process starts a new authentication process similar to the above-described authentication process, under the control of CPU 151 or the like.
Reverting to
The request for the communication information acquired by the user service providing apparatus 41 was supplied via the relay apparatus 12 which executed NAPT translation to add the global address port information of the relay apparatus 12 (corresponding to the local communication apparatus 11).
Similarly, upon acquisition of the authentication success notice indicating a success of authentication at Step S42, the local communication apparatus 31 displays a GUI screen in a manner to be described later and makes the user designate a communication partner. As the user determines the communication partner, at Step S43 the local communication apparatus 31 supplies a request for communication information including the global address port information and the like of the communication partner, to the user service providing apparatus 41 via the relay apparatus 32. At Step S26 the user service providing apparatus 41 acquires the supplied communication information request.
The request for the communication information acquired by the user service providing apparatus 41 was supplied via the relay apparatus 32 which executed NAPT translation to add the global address port information of the relay apparatus 32 (corresponding to the local communication apparatus 31).
At Step S27 the user service providing apparatus 41 acquired the communication information request from the local communication apparatus 11 or 31 updates the user registration information registered in proceed in the user registration information database 176, by using the global address port information of the relay apparatus 12 or 32 added to the supplied communication information request, as will be later described.
In the above communication, the local communication apparatuses 11 and 31 and the user service providing apparatus 41 process transmission/reception packets based on the TCP/IP protocol system using HTIP, RTP or the like.
The local communication apparatus 11 supplied the communication information request proceeds to the process at Step S4 of
The service request packet acquired by the apparatus service providing apparatus 51 was supplied via the relay apparatus 12 which executed NAPT translation to add the global address port information of the relay apparatus 12 (corresponding to the local communication apparatus 11).
Similarly, the local communication apparatus 31 supplied the communication information request proceeds to the process at Step S44 of
The service request packet acquired by the apparatus service providing apparatus 51 was supplied via the relay apparatus 32 which executed NAPT translation to add the global address port information of the relay apparatus 32 (corresponding to the local communication apparatus 31).
At Step S63 the apparatus service providing apparatus 51 acquired the service request packet from the local communication apparatus 11 or 31 generates a service provision packet by using the global address port information of the relay apparatus 12 or 32 added to the acquired service request packet, and supplies it to the local communication apparatus 11 or 31 which is the transmission source of the service request packet, via the network 21.
At Step S5 the local communication apparatus 11 acquires the service provision packet Similarly, at Step S45 the local communication apparatus 31 acquires the service provision packet.
The local communication apparatus 11 or 31 executes again the above-described process executed for the apparatus service providing apparatus 51, for the apparatus service providing apparatus 52.
Namely, the local communication apparatus 11 proceeds to the process at Step S6 of
Similar to the above-described case of the apparatus service providing apparatus 51, the service request packet acquired by the apparatus service providing apparatus 52 was supplied via the relay apparatus 12 which executed NAPT translation to add the global address port information of the relay apparatus 12 (corresponding to the local communication apparatus 11).
Similarly, the local communication apparatus 31 supplied the communication information request proceeds to the process at Step S46 of
Similar to the above-described case of the apparatus service providing apparatus 51, the service request packet acquired by the apparatus service providing apparatus 52 was supplied via the relay apparatus 32 which executed NAPT translation to add the global address port information of the relay apparatus 32 (corresponding to the local communication apparatus 31).
At Step S73 the apparatus service providing apparatus 52 acquired the service request packet from the local communication apparatus 11 or 31 generates a service provision packet by using the global address port information of the relay apparatus 12 or 32 added to the acquired service request packet, and supplies it to the local communication apparatus 11 or 31 which is the transmission source of the service request packet, via the network 21.
At Step S7 the local communication apparatus 11 acquires the service provision packet Similarly, at Step S47 the local communication apparatus 31 acquires the service provision packet.
At Step S8 the local communication apparatus 11 acquired two service provision packets from the apparatus service providing apparatuses 51 and 52 predicts (estimates) the address port information of the relay apparatus at a communication source, i.e., the global address information of the relay apparatus 11 (corresponding to the local apparatus 11), based on the global address information contained in the two service provision packets.
Although the details will be later described, the relay apparatus 11 changes the port corresponding to the local communication apparatus 11 in some cases, each time the address port information of the communication destination of the local communication apparatus is changed. In the process at Step S8, the local communication apparatus 11 predicts (estimates) the address port information (latest global address port information) corresponding to the local communication apparatus for the next communication, by using two service provision packets acquired from the apparatus service providing apparatuses 51 and 52.
Similarly, at Step S48 the local communication apparatus 31 acquired two service provision packets from the apparatus service providing apparatuses 51 and 52 predicts (estimates) the address port information of the relay apparatus at a communication source, i.e., the latest global address information of the relay apparatus 11 (corresponding to the local communication apparatus 11), based on the global address information contained in the two service provision packets.
In the above communications, the local communication apparatuses 11 and 31 and the apparatus service providing apparatus 51 process transmission/reception service request and provision packets based on the UDP/IP (User Datagram Protocol/IP) protocol system using STUN (Simple Traversal of UDP through NATs), RTP, RTCP (RTP Control Protocol) or the like.
After the local communication apparatus 11 predicts (estimates) the global address port information of the relay apparatus 12 by using the global address port information contained in the acquired two service provision packets at Step S8, the local communication apparatus 11 proceeds to the process at Step S9 of
Similarly, after the local communication apparatus 31 predicts (estimates) the global address port information of the relay apparatus 32 by using the global address port information contained in the acquired two service provision packets at Step S48, the local communication apparatus 31 proceeds to the process at Step S4 of
At Step S30 the user service providing apparatus 41 acquired the communication source address port information from the local communication apparatus 11 or 31 registers the communication source address port information in the user registration information database 177, as will be later described. At Step S31 the user service providing apparatus 41 supplies communication information of a communication destination registered in the user registration information database 177 to the local communication information apparatus 11 or 31 via the network 21.
At Step S10 the local communication apparatus 11 acquires the communication information of the communication destination. Similarly, at Step S50 the local communication apparatus 31 acquires the communication information of the communication destination.
Namely, in this case, the user service providing apparatus 41 supplies the local communication apparatus 31 with the communication source address port information of the local communication apparatus 11 (predicted (estimated) global address port information of the relay apparatus 12) supplied from the local communication apparatus 11 and registered, and supplies the local communication apparatus 11 with the communication source address port information of the local communication apparatus 31 (predicted (estimated) global address port information of the relay apparatus 32) supplied from the local communication apparatus 31 and registered.
In the above communications, the local communication apparatuses 11 and 31 and user service providing apparatus 41 process transmission/reception packets based on the TCP/IP protocol system.
With reference to the flow chart of
At Step S171 the communication information acquisition processing unit 65 of the local communication apparatus 11 started the communication information acquiring process under the control of CPU 61 or the like requests the user service providing apparatus 41 for the information necessary for identifying a communication partner via the relay apparatus 12.
The user service providing apparatus 41 requested for the information necessary for identifying the communication partner supplies the information necessary for identifying the communication partner to the requesting source local communication apparatus 11 via the network 21, as will be later described.
The communication information acquisition processing unit 65 controls the communication unit 84 to receive the information necessary for identifying the communication partner, and after a lapse of a predetermined time, executes the process at Step S172 to judge whether the information necessary for identifying the communication partner has been acquired If it is judged that the information necessary for identifying the communication partner has been acquired, the communication information acquisition processing unit 65 controls the user identifying interface provision processing unit 68 based on the acquired information necessary for identifying the communication partner to make it supply the user identifying GUL, and at Step S173 supplies GUI to the output unit 82 to display a user identifying screen such as shown in
As shown in
The user of the IM service selects the communication partner from the user IDs of users presently selectable as the communication partner, inputs the user ID in the user ID input field 273 and operates the communication start button 274.
Reverting to
As the user inputs the user ID of the communication partner in the user ID input field 273 of the user identifying screen 271 and operates the communication start button 274, at Step S174 the communication information acquisition processing unit 65 controls the communication unit 84 to supply a request for communication information of the communication partner to the user service providing apparatus 41 via the relay apparatus. This process corresponds to the process at Step S3 of
In order to grasp the address port information after NAPT translation at the relay apparatus 12, i.e., the global address port information of the relay apparatus 12 (corresponding to the local communication apparatus 11), at Step S175 the communication information acquisition processing unit 65 supplied the request for the communication information of the communication partner controls the control unit 84 to supply a service request packet such as shown in
The service request packet 281 is constituted of a MAC (Media Access Control) packet for communication at the data link layer. As shown in
The MAC payload 283 is constituted of an IP packet for communication at the network layer and includes an IP header 284 and an IP payload 285. The IP header 284 includes a protocol number 286, a transmission source IP address 287 and a transmission destination IP address 288. The protocol number is an identifier indicating that the service request packet 281 is a packet corresponding to the service provided by the apparatus service providing apparatus 51. The transmission source IP address is data representative of an IP address (in this case, the private address of the local communication apparatus 11) of the transmission source of the service request packet The transmission destination IP address is data representative of an IP address (in this case, the global address of the apparatus service providing apparatus 51) of the transmission destination of the service request packet.
NAPT translation of the relay apparatus 12 to be executed when the service request packet 281 is transferred translates the value of the IP address 287 of the transmission source into the global address of the relay apparatus 12. Namely, the IP address 287 of the transmission source when the apparatus service providing apparatus 51 acquires it is the global address of the relay apparatus 12.
The IP payload 285 is constituted of a UDP packet for communication at the transport layer, and includes a UDP header 289 and a UDP payload 290. The UDP header 289 includes a transmission source port number 291 and a transmission destination port number 292. The transmission source port number is data representative of the port number of the transmission source (i.e., the port number of the local communication apparatus 11) used when the service request packet is transmitted The transmission destination port number is the port number of the transmission destination (i.e., the port number of the apparatus service providing apparatus 51) and is an identifier indicating that the service request packet 281 is a packet corresponding to the service provided by the apparatus service providing apparatus 51.
NAPT translation of the relay apparatus 12 to be executed when the service request packet 281 is transferred translates the value of the transmission source port number into the port number of the relay apparatus 12. Namely, the transmission source port number 291 when the apparatus service providing apparatus 51 acquires it is the global port address of the relay apparatus 12.
The UDP payload 290 is constituted of a STUN (Simple Traversal of UDP through NATs) packet for communication using a STUN protocol, and includes a STUN header 293 and a STUN payload 294. The STUN header 293 includes a STUN message type 295 and a transaction ID 296. The STUN message type is an identifier indicating that this packet contains a request basing upon the STUN protocol and that the service request packet 281 is a packet corresponding to the service provided by the apparatus service providing apparatus 51. The transaction ID is used for identifying a transaction.
The STUN payload 294 contains a message type 297 indicating the contents of a message and is an identifier indicating that the service request packet 281 is a packet corresponding to the service provided by the apparatus message providing apparatus 51.
As described above, the IP header 324, UDP header 329, STUN header 333 and STUN payload 334 contained in the service request packet 281 each include the identifier indicating that the service request packet 281 is a packet corresponding to the packet provided by the apparatus service providing apparatus 51. With these identifiers, the apparatus service providing apparatus 51 can execute a process satisfying the request of the service request packet 281.
Reverting to
At Step S178 the communication information acquisition processing unit 65 supplied the service request packet controls the communication unit 85 to judge whether the service provision packet corresponding to the supplied service request packet has been acquired. If it is judged that the service provision packet has been acquired, the communication information acquisition processing unit 65 proceeds to the process at Step S179 whereat it extracts address port information of the relay apparatus 12 used for transmission of the service request packets, from the acquired two service provision packets, calculates a difference value between two pieces of the address port information, adds the difference value to the address port information acquired later, and predicts (estimates) the communication source global address port information (communication source Glo-IP-port) for the next communication (communication for accessing the local communication apparatus 31).
At Step S180 the communication information acquisition processing unit 65 supplies the predicted (estimated) global address port information (hereinafter called predicted global address port information) to the user service providing apparatus 41 via the relay apparatus 12, and requests for registration of the predicted global address port information of the communication source as the user registration information. This process corresponds to the process at Step S9 of
The user service providing apparatus 41 requested for registration of the predicted global address port information of the communication source updates the user registration information based on the request, and supplies the communication information of the communication destination, which is the communication information of the communication partner of the local communication apparatus 11, to the local communication apparatus 11 via the network 21, based on the updated latest user registration information.
At Step S181 the communication information acquisition processing unit 65 of the local communication apparatus 11 controls the communication unit 84 to judge whether the communication information of the communication destination has been acquired. If it is judged that the communication information has not been acquired, the process proceeds to Step S182 whereat it controls the output unit 81 to execute an error process and thereafter terminate the communication information acquiring process. If it is judged at Step S181 that the communication information of the communication destination has not been acquired, the process at Step S182 is omitted to terminate the communication information acquiring process.
If it is judged at Step S176 or S178 that the service provision packet has not been acquired, the communication information acquisition processing unit 65 proceeds to the process at Step S182 to execute the error process and thereafter terminate the communication information acquiring process.
With the above-described processes, the communication information acquisition processing unit 65 of the local communication apparatus 11 supplies the same service request packet to both the apparatus service providing apparatuses 51 and 52 and acquires the service provision packets from both the apparatuses.
These processes are executed in order to predict (estimate) the port assigned by the relay apparatus 12 for the next communication by the local communication apparatus 11.
For example, if the relay apparatus 12 assigns the same port to the local communication apparatus independently from the address port information of the communication destination of the local communication apparatus 11, i.e., if NAPT translation translates the transmission source address port information acquired from the local communication apparatus 11 into the same global address port information independently from the address port information of the communication destination, then the address port information contained in the service provision packet supplied from the apparatus service providing apparatus 51 is the global address port information corresponding to the local apparatus 11 even for the next communication.
However, for example, if the relay apparatus 12 increases by one (increments) the port number assigned to the local communication apparatus 11 each time the address port information of the communication destination of the local communication apparatus 11 changes, the address port information contained in the service provision packet supplied from the apparatus service providing apparatus 51 does not become the global address sport information corresponding to the local apparatus 11 for the next communication.
Therefore, the communication information acquisition processing unit 65 of the local communication apparatus 11 acquires the service provision packets from both the two apparatus service provision apparatuses 51 and 52 having different address port information, calculates the difference value between two pieces of the global address port information contained in the service provision packets, and adds the difference value to the global address port information obtained by later communication with the apparatus service providing apparatus 52 to predict (estimate) the global address port information for the next communication.
In this manner, even if the global address port information corresponding to the local communication apparatus 11 changes with the address port information of the communication destination, the local communication apparatus 11 can predict (estimate) the global address port information corresponding to the local communication apparatus 11 for the next communication, so that relay apparatuses of a larger number of types can be dealt with.
The local communication apparatus 31 using the IM service executes a communication information acquiring process similar to the process described above. Therefore, the flow chart of
Next, with reference to the flow chart of
First, at Step S191 the user registration information management processing unit 155 of the user service providing apparatus 41 controls the communication unit 174 to judge whether the request for communication information supplied at Step S174 of
If it is judged that the request for communication information has been acquired, at Step S192 the user registration information management processing unit 155 updates the communication destination global address port information in the user registration information stored in the user registration information database 177 such as shown in
As shown in
The communication destination global address port information 313 is the global address port information of the communication partner side desired by the user corresponding to the user ID 311 of the user registration information, whereas the predicted communication source global address port information 312 is the global address port information of the user side corresponding to the user ID 311 of the user registration information.
For example, if the user ID of a user of the local communication apparatus 11 is AAA-usr and the user ID of the local communication apparatus 31 is BBB-usr and these two users intend to communicate each other, global address port information “ppp.qqq.rrr.sss.ttt” of the relay apparatus 12 predicted (estimate to be used for communication with the local communication apparatus 11 is registered in a predicted communication source global address port 312 corresponding to the user ID “AAA-usr”, and an instruction “predicted communication source global address port information of BBB-usr” is registered in a predicted communication destination global address port 313 corresponding to the user ID “AAA-usr”, in order that the global address port information of the relay apparatus 32 predicted (estimated) to be used for communication with the local communication apparatus 31 (i.e., predicted global address port information of BBB-user) is applied.
If the communication partner is not designated, “(none)” is registered in the communication destination global address port information 313 in the user registration information of the user.
As described above, in the process at Step S192 the user registration information management processing unit 155 updates the communication global address port information 313 contained in the user registration information 310. The process corresponds to the process at Step S27 of
Thereafter, the local communication apparatus 11 or 31 acquired the service providing packet requests for registration of the communication source global address port information by the process at Step S180 of
Reverting to
If it is judged that the request has been acquired, at Step S194 the user registration information management processing unit 155 updates the communication source global address port information of the user registration information corresponding to the user requested the resignation of the communication source global address information, at Step S195 based on the instruction registered in the communication destination global address port information 313 of the user resignation information of the user, acquires the user registration information of the communication destination from the user registration information database 177, and at Step S196 supplies the communication information of the communication destination. These processes correspond to Steps S30 and S31 of
At Step S197, the user registration information management processing unit 155 supplied the communication information judges whether the information providing process is to be terminated. If it is judged that the information providing process is not terminate the process returns to Step S191 to repeat the succeeding processes. If it is judged at Step S197 that the information providing process is terminated, at Step S198 the user registration information management processing unit 155 executes an end process to terminate the information providing process.
If it is judged at Step S193 that the request for registration of the communication source global address port information has not been acquired, the user registration information management processing unit 155 proceeds the process to Step S199 whereat an error process is executed to thereafter return to the process at Step S197 to repeat the succeeding processes.
The user service providing apparatus 41 executes an information providing process similar to that described above also for the communication information acquiring process of the local communication apparatus 31, and manages the global address port information in response to a request from the local communication apparatus 31.
As described above, the user service providing apparatus 41 manages the global address port information necessary for communications between local communication apparatuses, and supplies the information in response to the request from the local communication apparatus 11 or 31. Accordingly, the local communication apparatus 11 or 31 can conduct communication easily even via the relay apparatus performing NAPT translation.
Next, with reference to the flow chart of
At Step S211, the address port information provision processing unit 204 of the apparatus service providing apparatus 51 controls the communication unit 224 to judge whether the service request packet supplied from the local communication apparatus 11 or 31 in the process at Step S175 of
If it is judged that the service request packet has been acquired, the address port information provision providing unit 204 proceeds the process to Step S212 whereat it generates a service providing packet such as shown in
Referring to
The MAC payload 323 is constituted of an IP packet for communication at the network layer and includes an IP header 324 and an IP payload 325. The IP header 324 includes a protocol number 326, a transmission source IP address 327 and a transmission destination IP address 328. The protocol number is an identifier indicating that the service providing packet 321 is a packet corresponding to the service provided by the apparatus service providing apparatus 51. The transmission source IP address is data representative of an IP address (in this case, the global address of the apparatus service providing apparatus 51) of the transmission source of the service providing packet. The transmission destination IP address is data representative of an IP address (in this case, the global address of the relay apparatus 12 or 32) of the transmission destination of the service providing packet.
The IP payload 325 is constituted of a UDP packet for communication at the transport layer, and includes a UDP header 329 and a UDP payload 330. The UDP header 329 includes a transmission source port number 331 and a transmission destination port number 332. The transmission source port number is data representative of the port number of the transmission source (i.e., the port number of the apparatus service providing apparatus 51) used when the service providing packet is transmitted, and an identifier indicating that the service providing packet 321 is a packet corresponding to the services provided by the service providing apparatus 51. The transmission destination port number is data representative of the port number of the transmission destination (i.e., the port number of the relay apparatus 11) of the service providing packet 321.
The UDP payload 330 is constituted of a STUN packet for communication using a STUN protocol, and includes a STUN header 333 and a STUN payload 334. The STUN header 333 includes a STUN message type 335 and a transaction ID 336. The STUN message type is an identifier indicating that this packet contains a request basing upon the STUN protocol and that the service providing packet 321 is a packet corresponding to the service provided by the apparatus service providing apparatus 51. The transaction ID is used for identifying a transaction.
The STUN payload 334 contains a transmission source port number 337 of the service request packet and a transmission source IP address 338 of the service request packet
As described above, the transmission source IP address 287 and transmission source port number 337 contained in the service request packet 281 acquired by the apparatus service providing apparatus 51 indicate the global address and port number of the relay apparatus 12, respectively.
Therefore, the transmission source port number 337 of the service request packet indicates the global port number of the relay apparatus 12, and the transmission source IP address 338 indicates the global address of the relay apparatus 12.
The apparatus service providing apparatus 51 acquires the global address port information of the relay apparatus 12 (corresponding to the local communication apparatus 11) from the service request packet, and generates the service providing packet which contains the acquired global address port information.
Reverting to
At Step S214 the apparatus service providing apparatus 51 judges whether the information providing process is to be terminated If it is judged that the information providing process is not terminated, the process returns to Step S211 to repeat the succeeding processes.
If it is judged that the information providing process is not terminated, the apparatus service providing apparatus 51 proceeds with the process to Step S215 to execute an end process and terminate the information providing process.
The apparatus service providing apparatus 52 executes an information providing process similar to that for the apparatus service providing apparatus 51. Therefore, for the details of the information providing process by the apparatus service providing process 52, the flow chart of
The apparatus service providing apparatuses 51 and 52 execute an information providing process similar to that described above, for the communication information acquiring process of the local communication apparatus 31, and supplies the service providing packet in response to a request from the local communication apparatus 31.
As described above, the local communication apparatus 11 or 31 acquires the service providing packets from the apparatus service providing apparatuses 51 and 52 and predicts (estimates) the global address port information for the next communication.
For example, as shown in
The local communication apparatus 11 supplies the service request packet first to the apparatus service providing apparatus 51. At this time, the relay apparatus 12 NAPT-translates the communication source address port information of the service request packet by using a port 342-1. The apparatus service providing apparatus 51 supplies the service providing packet for the service request packet to the local communication apparatus 11 via aport 342-1 of the relay apparatus 12.
Next the local communication apparatus 11 supplies the service request packet to the apparatus service providing apparatus 52. At this time, the relay apparatus 12 NAPT-translates the communication source address port information of the service request packet by using a port 342-2 by increasing the port number by 1, because the address port information of the apparatus service providing apparatus 51 is different from the address port information of the apparatus service providing apparatus 52. The apparatus service providing apparatus 52 supplies the service providing packet for the service request packet to the local communication apparatus 12 via a port 342-2 of the relay apparatus 12.
The local communication apparatus 12 acquires the global address information from the acquired service providing packets, and calculates a difference value between two pieces of the global address information, i.e., calculates a change amount in the port numbers used by the relay apparatus 12. In this example, the difference value is “1”.
The local communication apparatus 12 adds a value “1” to the port number of the port 342-2 used for later communication with the apparatus service providing apparatus 52, and predicts (estimates) that the port 342-3 is the port to be used by the relay apparatus 12 for the next communication.
For example, if the difference value is “2”, the local communication apparatus 12 adds the value “2” to the port number of the port 342-2 used for later communication with the apparatus service providing apparatus 52, and predicts (estimates) that the port 342-4 is the port to be used by the relay apparatus 12 for the next communication, and if the difference value is “3”, the local communication apparatus 12 adds the value “3” to the port number of the port 342-2 used for later communication with the apparatus service providing apparatus 52, and predicts (estimates) that the port 342-5 is the port to be used by the relay apparatus 12 for the next communication.
If the difference value is “0”, the same port (e.g., port 342-1) is used for communications with both the apparatus service providing apparatus 51 and apparatus service providing apparatus 52, and the local communication apparatus 11 predicts (estimates) that the same port (e.g., 342-1) is used also for the next communication.
Similarly, the local communication apparatus 31 acquires the global address information for the next communication from the two service providing packets supplied from the apparatus service providing apparatuses 51 and.
In the above manner, the apparatus service providing apparatuses 51 and 52 generate the service providing packets each containing the global address and port number of the relay apparatus 12, and supply them to the local communication apparatus 11. The local communication apparatus 11 can therefore predict and (estimate) the global address port information of the relay apparatus 12 for the next communication, and can readily supply this information to the user service providing apparatus 41.
Reverting to
For example, numerals at respective digits of the IP address (preferable global address) of each of the local communication apparatuses 11 and 31 are added together, and the local communication apparatus having a larger value is used as the master, and the apparatus having a smaller value is used as the slave. It is obvious that the master slave may be determined by other methods.
In the following description, although it is assumed that the local communication apparatus 11 is the maser and the local communication apparatus 31 is the slave, the master may be one of the local communication apparatuses 11 and 31.
The local communication apparatus 11 judged as the master executes a communication start algorithm of requesting for a communication start, in order to connect the local communication apparatus 31. Namely, the local communication apparatus 11 proceeds with the process to Step S12 to start supplying a plurality of open request packets. Similarly, the local communication apparatus 31 judged as the master proceeds the process to Step S52 to start supplying a plurality of open request packets.
As the open request packets are supplied, the address port information of the relay apparatus 32 on the communication partner side, capable of communicating with the local communication apparatus 31, is identified. Then, the local communication apparatus 11 as the master proceeds the process to Step S13 to supply an open maintenance packet to the local communication apparatus 31 by using the identified address port information.
At Step S53, after the local communication apparatus 31 as the slave acquires the open maintenance packet from the local communication apparatus 11, the local communication apparatus 31 proceeds the process to Step S54 whereat it is judged that the communication with the local communication apparatus 11 becomes open, and at Step S55 the open maintenance packet is supplied to the local communication apparatus 1.
As the local communication apparatus 11 acquires at Step S14 the open maintenance packet supplied from the local communication apparatus 31, it is judged at Step S15 that the communication with the local communication apparatus 31 becomes open.
In the above communications, the local communication apparatuses 11 and 31 process transmission/reception packets based on the UDP/EP protocol system using STUN, RTP, RTCP or the like.
In the above processes, in the communication start request algorithm of requesting for communication start, the local communication apparatus 11 executes a communication start request process to be described below to determine the port number of the transmission source local communication apparatus 11) and the port number of the transmission destination (relay apparatus 32) to generate the open request packet With reference to the flow chart of
In the following, a variable numSrcPriPort is the number of private ports used for transmitting from the local communication apparatus the open request packet of requesting for a communication start with the communication partner, and a variable numDstGloPort is the number of global ports designated as the transmission destination of the open request packet, among ports of the relay apparatus on the communication partner side.
A timeSendInterval is an interval of transmission of each packet from the local communication apparatus, and a variable isMasterFlag indicates whether the local communication apparatus is the master (slave).
At Step S231, the inter-local communication control unit 66 of the local communication apparatus 11 substitutes a value “0” in variables i and j. At Step S232, the inter-local communication control unit 66 retains as a variable Base-Glo-port the value of a variable Glo-port representative of the global port number of the relay apparatus 32 on the transmission destination side, and retains as a variable Base-Pri-port a variable Pri-port representative of the private port number of the local communication apparatus 11 of the transmission source.
Used as the initial value of the variable Glo-port is the port number of the communication destination global address information contained in the communication destination communication information acquired at Step S181 of
As the process proceeds to Step S233, the inter-local communication control unit 66 judges whether the value of the variable i is smaller than the variable numSrcPriPort If it is judged that all predetermined ports of the local communication apparatus 11 are not processed and the value of the variable i is smaller than the variable numSrcPriPort, the inter-local communication control unit 66 proceeds the process to Step S234 whereat the value of the variable i is added to the value of the variable Base-Pri-Port and this addition result is substituted in the variable Pri-port.
At Step S235 the inter-local communication control unit 66 judges whether the value of the variable j is smaller than the variable numDstGloPort. If it is judged smaller, at Step S236 the value of the variable j is added to the variable Base-Glo-Port and this addition result is substituted in the variable Glo-port.
At Step S237 the inter-local communication control unit 66 generates the open request packet by using the value of the variable Pri-port as the port number of the transmission source and the value of the variable Glo-port as the port number of the transmission destination, and controls the communication unit 84 to supply the generated open request packet to the relay apparatus 32 via the relay apparatus 12.
The inter-local communication control unit 66 proceed with the process to Step S238 stands by for a predetermined time timeSendInterval and proceeds with the process to Step S239.
At Step S239 the inter-local communication control unit 66 substitutes a value (j+1) in the variable j, and at Step S240 judges whether a termination request of the open request packet is output. If it is judged that the termination request is output, the communication request process is terminated.
If it is judged at Step S233 that the value of the variable i is not smaller than the variable numSrcPriPort, the inter-local communication control unit 66 terminates the communication start request process.
If it is judged at Step S235 that the value of the variable j is not smaller than the variable numSrcDstPort the inter-local communication control unit 66 proceeds the process to Step S241 whereat the value “0” is substituted in the variable j, and at Step S242 a value (i+1) is substituted in the variable i and thereafter the process is returned to Step S233 to repeat the succeeding processes.
If it is judged at Step S240 that the termination request of the open request packet is not output, the inter-local communication control unit 66 returns the process to Step S235 to repeat the succeeding processes.
As described above, the inter-local communication control unit 66 executes the communication start request algorithm, determines the port numbers of the transmission source and destination, and generates and supplies (numSrcPriPort×numDstGloPort) open request packets.
For example, as shown in
However, for example as shown in
In this case, since the communication destination apparatus 351 does not have the information necessary for selecting a port capable of being supplied to the local communication apparatus 11, the port number of the relay apparatus 12 supplying a response cannot be identified.
Namely, in the network system of
To avoid this, the inter-local communication unit 66 executes the communication start request algorithm to generate open request packets for a plurality of ports near the global port number of the relay apparatus which ports are predicted (estimated) as being capable of communications, and controls the communication unit 84 to supply a plurality of generated open request packets to the relay apparatus 32. As described above, the local communication apparatus 31 executes similar processes.
The local communication apparatus 31 as the slave uses the transmission source address port information of the open request packets transmitted from the local communication apparatus 11 and was able to be received, to thereby adjust the transmission destination address port information of the open request packets to be transmitted, in order to allow the local apparatus 11 to receive the open request packets.
In this manner, the local communication apparatuses 11 and 31 acquire transmission/reception open request packets so that the port number of the communication destination relay apparatus to be accessed can be identified easily.
The local communication apparatus 11 or 31 identified the port number of the communication destination to be accessed, by using the above-described open request packets, transmits/receives the open maintenance packet to make the communication be open and established, as previously described with reference to
With reference to
First, at Step S261 of
If it is judged that the transmission source address port information of the acquired packet coincides with the transmission destination address port information of the open request packet, the inter-local communication control unit 66 proceeds the process to Step S264 whereat the identification information of the acquired packet is checked to judge whether the acquired packet is the open request packet.
If it is judged that the acquired packet is the open request packet, at Step S265 the inter-local communication control unit 66 retains the transmission source address port information of the acquired packet and at Step S266 requests for termination of the open request packet to the above-described communication open request process.
The inter-local communication control unit 66 requested for termination of the open request packet proceeds the process to Step S271 of
As described with reference to
When the inter-local communication control unit 66 of the local communication apparatus 11 acquires the packet via the communication unit 84, at Step S273 the inter-local communication control unit 66 judges whether the transmission source address port information of the acquired packet coincides with the transmission destination address port information of the open maintenance packet transmitted from the local communication apparatus 11.
If it is judged that the transmission source address port information of the acquired packet coincides with the transmission destination address port information of the open maintenance packet, the inter-local communication control unit 66 proceeds the process to Step S274 to check the identifier contained in the acquired packet and judge whether the acquired packet is the open maintenance packet.
If it is judged that the acquired packet is the open maintenance packet, the inter-local communication control unit 66 proceeds the process to Step S275 whereat the transmission source address port information of the acquired packet is retained, at Step S276 it stands by for a predetermined time, and thereafter at Step S277 it generates the open maintenance packet, and supplies at Step S278 the generated open maintenance packet
Namely, the inter-local communication control unit 66 executes the processes of Steps S273 and S274 to judge whether the communication with the local communication apparatus 31 becomes open. It is judged at Step S273 whether the transmission source address port information of the acquired packet coincides with the transmission destination address port information of the open maintenance packet, and if it is judged at Step S274 that the acquired packet is the open maintenance packet, the inter-local communication control unit 66 judges that the communication with the local communication apparatus 31 becomes open, and supplies the open maintenance packet to the inter-local communication apparatus 31 by the process at Step S275 and succeeding processes.
At Step S279 the inter-local communication control unit 66 judges whether the communication establishing process is to be terminated. If it is judged that the process is not terminated, the process returns to Step S276 to repeat the succeeding processes. If it is judged at Step S279 that the communication establishing is terminated, at Step S280 the inter-local communication control unit 66 executes a predetermined end process to terminate the communication establishing process.
If it is judged at Step S261 of
If it is judged at Step S267 that the communication establishing process is terminate, the inter-local communication control unit 66 proceeds with the process to Step S280 of
If it is judged at Step S273 of
If it is judged at Step S281 that the communication establishing process is terminated, the inter-local communication control unit 66 proceeds with the process to Step S280 whereat the end process is executed to terminate the communication establishing process.
Next, with reference to the flow charts of
First, at Step S301 of
If it is judged that the transmission source address port information of the acquired packet does not coincide with the transmission destination address port information of the open request packet, the inter-local communication control unit 66 proceeds the process to Step S304 whereat the identification information of the acquired packet is checked to judge whether the acquired packet is the open request packet.
If it is judged that the acquired packet is the open request packet, at Step S305 the inter-local communication control unit 66 retains the transmission source address port information of the acquired packet and at Step S306 changes the transmission destination address port information of the open request packet to be transmitted, and proceeds the process to Step S311 of
If it is judged that the acquired packet is the open request packet, at Step S305 the inter-local communication control unit 66 retains the acquired transmission source address port information, at Step S306 changes the transmission destination address port information of the open request packet to be transmitted, and proceeds the process to Step S311 of
If it is judged that the open maintenance packet has been acquired, the inter-local communication control unit 66 judges that the communication with the local communication apparatus 31 becomes open, at Step S312 retains the communication source address port information of the acquired open maintenance packet, at Step S313 requests for the termination of the open request packet to the communication start request process, at Step S314 generates the open maintenance packet, at Step S315 supplies the generated open maintenance packet to the communication partner local communication apparatus 31 via the relay apparatus 12, at Step S316 stands by for a predetermined time, and thereafter at Step S317 judges whether the communication establishing process is to be terminated. If it is judged that the process is not terminated, the process returns to Step S314 to repeat the succeeding processes.
If it is judged at Step S317 that the communication establishing process is terminated, at Step S318 the inter-local communication control unit 66 executes an end process to terminate the communication establishing process.
If it is judged at Step S311 that the open maintenance packet has not been acquired, the inter-local communication control unit 66 proceeds with the process to Step S319 whereat it is judged whether the communication establishing process is to be terminated. If it is judged that the process is not terminated, the process returns to Step S301 of
If it is judged at Step S319 of
Similarly, the local communication apparatus 31 also executes the communication establishing process by referring to the flow charts of FIGS. 26 to 29, and so the description thereof is omitted.
In the above manner, the local communication apparatus 11 supplies the open maintenance packet relative to the address port information identified by the open request packet to thereby establish communications. In this manner, the local communication apparatus 11 or 31 can easily communicate with the communication partner 31 or 11 even if the communications are performed by the relay apparatuses 12 and 32 having the NAPT translation function.
As described above, the service request packet, service providing packet, open request packet and open maintenance packet described above exchange various messages, for example, by using STUN messages using the STUN protocol. As shown in
The header field 371 is constituted of a message type 373 of 2 bytes, a message length 374 of 2 bytes and a transaction ID 375 of 16 bytes. The data field 372 is constituted of a data payload 376 of 8 bytes.
Through transmission/reception of UDP packets of this type, the local communication apparatuses 11 and 31 and apparatus service providing apparatuses 51 and 52 transfer various messages. With reference to the flow chart of
At Step S331 of
As shown in
Reverting to
As shown in
Reverting to
Similarly, at Step S371 the local communication apparatus 31 supplies the service request packet shown in
At Step S333 the local communication apparatus 11 acquired the service providing packet supplies as the open request packet an opening port notification message of the STUN message such as shown in
As shown in
At Step S373, the local communication apparatus 31 acquires the open request packet. Similarly, at Step S374 the local communication apparatus 31 supplies the open request packet such as shown in
At Step S335 the local communication apparatus 11 supplies as the open maintenance packet a keep-alive message of the STUN message such as shown in
As the local communication apparatus 31 acquires the open maintenance packet at Step S375, the local communication apparatus 31 supplies at Step S376 as the open maintenance packet a keep-alive response message of the STUN message such as shown in
As the local communication apparatus 11 acquires the open maintenance packet at Step S336, the local communication apparatus 11 supplies as the open maintenance packet for maintaining the open communication a heartbeat message of the STUN message such as shown in
Similarly, at Step 378 the local communication apparatus 31 supplies the open maintenance packet to the local communication apparatus 11 which in turn acquires the open maintenance packet at Step S338.
In the keep-alive request message and keep-alive response message described above, the transaction ID 375 in the header field 371 has the value such as shown in
The service request packet, service providing packet, open request packet and open maintenance packet may obviously be packets having the structure different from the above-described structure, and protocols other than the STUN protocol may be used.
As described above, by using the STUN messages, the local communication apparatuses 11 and 31 acquire the predicted (estimated) address port information of the transmission destination by using the service request packet and service providing packet, supply a plurality of open request packets based on the address port information to search a port enabling to make actual communication become open, and maintain the port by the open maintenance packet. In this manner, even in the communications via the relay apparatuses, the local communication apparatuses 11 and 31 can conduct communications in a network system constituted of already existing facilities.
In the following, specific examples are given. In
The relay apparatus 12-1 relays the UDP packet supplied from the local communication apparatus 11 by using a port 402-1 independently from the address port information of the supply side. Namely, as shown in
In this case, therefore, two pieces of the global address information contained in the service providing packets supplied from the apparatus service providing apparatuses 51 and 52 have the difference value of “0”. Based on this difference value, the local communication apparatus 11 predicts (estimates) that the relay apparatus 12 uses the port 402-1 for the local communication apparatus 11 for the next communication, i.e., when the open request packet is supplied to the relay apparatus 32.
Similarly, the relay apparatus 32-1 relays the UDP packet supplied from the local communication apparatus 31 by using a port 403-1 independently from the address port information of the supply side. Namely, as shown in
In this case, therefore, two pieces of the global address information contained in the service providing packets supplied from the apparatus service providing apparatuses 51 and 52 have the difference value of “0”. Based on this difference value, the local communication apparatus 31 predicts (estimates) that the relay apparatus 32 uses the port 403-1 for the local communication apparatus 31 for the next communication, i.e., when the open request packet is supplied to the relay apparatus 12.
The local communication apparatuses 11 and 31 exchange the predicted address port information by using the user service providing apparatus 41 and utilize the exchanged information as the transmission destination address port information when the open request packet is transmitted. In this case, the local communication apparatus 11 supplies the open request packet via the port 403-1, whereas the local communication apparatus 31 supplies the open request packet via the port 402-1.
In this case, therefore, communications become open via the port 401-1 of the local communication apparatus 11, the port 402-1 of the relay apparatus 12-1, the port 403-1 of the relay apparatus 32-2 and the port 404-1 of the local communication apparatus 31.
In
The relay apparatus 12-2 relays the UDP packet supplied from the local communication apparatus 11 by increasing the port number by 1 each time the supply destination address port information changes. Namely, as shown in
In this case, therefore, two pieces of the global address information contained in the service providing packets supplied from the apparatus service providing apparatuses 51 and 52 have the difference value of “1”. Based on this difference value, the local communication apparatus 11 predicts (estimates) that the relay apparatus 12-2 uses a port 402-3 next to the port 402-2 for the local communication apparatus 11 for the next communication, i.e., when the open request packet is supplied to the relay apparatus 32-2.
The relay apparatus 32-2 executes the processes similar to the case of the above-described relay apparatus 12-2 to relay the UDP packet supplied from the local communication apparatus 31 by increasing the port number by 1 each time the supply destination address port information changes.
In this case, therefore, two pieces of the global address information contained in the service providing packets supplied from the apparatus service providing apparatuses 51 and 52 have the difference value of “1”. Based on this difference value, the local communication apparatus 31 predicts (estimates) that the relay apparatus 32-2 uses a port 403-3 next to the port 402-2 for the local communication apparatus 11 for the next communication, i.e., when the open request packet is supplied to the relay apparatus 32-2.
The local communication apparatuses 11 and 31 exchange the predicted address port information by using the user service providing apparatus 41 and utilize the exchanged information as the transmission destination address port information when the open request packet is transmitted. In this case, the local communication apparatus 11 supplies the open request packet via the port 403-3, whereas the local communication apparatus 31 supplies the open request packet via the port 402-3.
In this case, therefore, communications become open via the port 401-1 of the local communication apparatus 11, the port 402-3 of the relay apparatus 12-1, the port 403-3 of the relay apparatus 32-2 and the port 404-1 of the local communication apparatus 31.
As described above, the local communication apparatuses 11 and 31 can make the communications readily become open even via NAPT.
In the above description, although the relay apparatus of the increment type that relays by increasing the port number by 1 each time the address port information of the packet supply destination changes, the invention is not limited thereto, but the number of port numbers to be increased by the relay apparatus may be two or more.
The communication start request algorithm to be executed by the master side communication apparatus and the communication start request algorithm to be executed by the slave side communication apparatus may contain different processes.
With reference to the flow chart of
At Step S391 the inter-local communication control unit 66 of the local communication apparatus 11 judges whether the local communication apparatus 11 is the master of communications. If it is judged as the master, at Step S392 a second communication request process is executed as the communication start request algorithm. The details of the second communication start request process will be later described with reference to the flow chart of
If it is judged at Step S391 that the local communication apparatus 11 is the slave, the inter-local communication control unit 66 proceeds the process to Step S393 whereat a first communication request process similar to the flow chart shown in
Next, with reference to the flow chart of
At Step S411 the inter-local communication control unit 66 of the local communication apparatus 11 substitutes a value “0” in the variables i and j. At Step S412 the inter-local communication control unit 66 retains as the variable Base-Glo-port the value of the variable Glo-port representative of the global port of the relay apparatus 12 on the transmission destination side, and retains as the variable Base-Pri-port the variable Pri-port representative of the port of the local communication apparatus 11.
As the process proceeds to Step S413, the inter-local communication control unit 66 judges whether the value of the variable i is smaller than the variable numSrcPriPort If it is judged that the value of the variable i is smaller than the variable numSrcPriPort, the inter-local communication control unit 66 proceeds the process to Step S414 whereat the value of the variable i is added to the value of the variable Base-Pri-Port and this addition result is substituted in the variable Pri-port.
At Step S415 the inter-local communication control unit 66 judges whether the value of the variable j is smaller than a twofold of the variable numDstGloPort. If it is judged smaller, at Step S416 the value of the variable j is added to the variable Base-Glo-Port and this addition result is substituted in the variable Glo-port.
At Step S417 the inter-local communication control unit 66 generates the open request packet by using the value of the variable Pri-port as the port number of the transmission source and the value of the variable Glo-port as the port number of the transmission destination, and controls the communication unit 84 to supply the generated open request packet to the relay apparatus 32 via the relay apparatus 12.
The inter-local communication control unit 66 proceed with the process to Step S418 stands by for a predetermined time timeSendInterval, thereafter at Step S419 a value (j+2) is substituted in the value of the variable j, and at Step S420 it is judged whether a termination request of the open request packet is output in response to a user operation or the like. If it is judged that the termination request is output, the second communication start request process is terminated to terminate the control process of
If it is judged at Step S413 that the value of the variable i is not smaller than the variable numSrcPriPort, the inter-local communication control unit 66 terminates the second communication start request process to terminate the control process of
If it is judged at Step S415 that the value of the variable j is not smaller than a twofold of the variable numSrcDstPort, the inter-local communication control unit 66 proceeds the process to Step S421 whereat the value “0” is substituted in the variable j, and at Step S422 a value (i+1) is substituted in the variable i, and thereafter the process is returned to Step S413 to repeat the succeeding processes.
If it is judged at Step S420 that the termination request of the open request packet is not output, the inter-local communication control unit 66 returns the process to Step S415 to repeat the succeeding processes.
As described above, if the local communication apparatus 11 is on the master side, the inter-local communication control unit 66 supplies open request packets to a consecutive port group of the relay apparatus 32 on the communication destination side, at every second ports starting from the predicted (estimated) port number (supplies open request packets by shifting the port number by 2). If the local communication apparatus 11 is on the slave side, the inter-local communication control unit 66 supplies open request packets to the ports of the relay apparatus 32 on the communication destination side, by shifting the port number by 1 starting from the predicted (estimated) port number.
The local communication apparatus 31 executes the control process similar to the case of the local apparatus 11 to execute the communication start request process.
For example, in
In this case, a port of the relay apparatus 12-2 predicted (estimated) to be assigned to the local communication apparatus 11 when the open request packet is transmitted from the local communication apparatus 11 is a port 402-3 similar to that described with reference to
In this case, therefore, communications become open via the port 401-1 of the local communication apparatus 1, the port 402-3 of the relay apparatus 12-2, the port 403-1 of the relay apparatus 32-2 and the port 404-1 of the local communication apparatus 31.
For example, in
In this case, a port of the relay apparatus 12-2 predicted (estimated) to be assigned to the local communication apparatus 11 when the open request packet is transmitted from the local communication apparatus 11 is a port 402-1 similar to that described with reference to
In this case, therefore, communications become open via the port 401-1 of the local communication apparatus 11, the port 402-1 of the relay apparatus 12-2, the port 403-3 of the relay apparatus 32-2 and the port 404-1 of the local communication apparatus 31.
As described above, the local communication apparatuses 11 and 31 can make the communications readily become open even via NAPT.
In the above description, although the local communication apparatus as the master supplies the open request packet at the every second port numbers, the local communication apparatus as the slave may supply the open request packet in this manner. In this case, the local communication apparatus as the master supplies the open request packet at the consecutive port numbers.
Further, in the above description, it is sufficient if the local communication apparatus as the master and the local communication apparatus as the slave use different algorithms for supplying the open request packet For example, the local communication apparatus may supply the open request packet to the communication destination relay apparatus at every second or more port numbers.
Furthermore, the local communication apparatus may supply the open request packets output from respective ports to the transmission destination apparatus at different ports. With reference to the flow chart of
At Step S441 the inter-local communication control unit 66 of the local communication apparatus 11 judges whether the local communication apparatus 11 is the master of communications. If it is judged as the master, at Step S442 a third communication request process is executed as the communication start request algorithm. The details of the third communication start request process will be later described with reference to the flow chart of
If it is judged at Step S441 that the local communication apparatus 11 is the slave, the inter-local communication control unit 66 proceeds the process to Step S443 whereat a fourth communication request process is executed as the communication start request algorithm. The details of the fourth communication start request process will be later described with reference to the flow chart of
Next, with reference to the flow chart of
At Step S461 the inter-local communication control unit 66 of the local communication apparatus 11 substitutes a value “0” in the variables i and j. At Step S462 the inter-local communication control unit 66 retains as the variable Base-Glo-port the value of the variable Glo-port representative of the global port of the relay apparatus 12, and retains as the variable Base-Pri-port the variable Pri-port representative of the port of the local communication apparatus 11.
As the process proceeds to Step S463, the inter-local communication control unit 66 judges whether the value of the variable i is smaller than the variable numSrcPriPort If it is judged that the value of the variable i is smaller than the variable numSrcPriPort, the inter-local communication control unit 66 proceeds the process to Step S464 whereat the value of the variable i is added to the value of the variable Base-Pri-Port and this addition result is substituted in the variable Pri-port.
At Step S465 the inter-local communication control unit 66 judges whether the value of the variable j is smaller than (numDstGloPort2×i+numDstGloPort2−1). If it is judged smaller, at Step S466 the value of the variable j is added to the variable Base-Glo-Port and this addition result is substituted in the variable Glo-port.
At Step S467 the inter-local communication control unit 66 generates the open request packet by using the value of the variable Pri-port as the port number of the transmission source and the value of the variable Glo-port as the port number of the transmission destination, and controls the communication unit 84 to supply the generated open request packet to the relay apparatus 32 via the relay apparatus 12.
The inter-local communication control unit 66 proceeds with the process to Step S468 stands by for a predetermined time timeSendInterval, thereafter at Step S469 a value (j+1) is substituted in the value of the variable j, and at Step S470 it is judged whether a termination request of the open request packet is output in response to a user operation or the like. If it is judged that the termination request is output, the third communication start request process is terminated to terminate the control process of
If it is judged at Step S463 that the value of the variable i is not smaller than the variable numSrcPriPort, the inter-local communication control unit 66 terminates the third communication start request process to terminate the control process of
If it is judged at Step S465 that the value of the variable j is not smaller than the value of (numDstGloPort2×i+numDstGloPort2−1), the inter-local communication control unit 66 proceeds the process to Step S471 whereat the value (j+1) is substituted in the variable j, and at Step S472 a value (i+1) is substituted in the variable i, and thereafter the process is returned to Step S463 to repeat the succeeding processes.
If it is judged at Step S470 that the termination request of the open request packet is not output, the inter-local communication control unit 66 returns the process to Step S465 to repeat the succeeding processes.
Next, with reference to the flow chart of
At Step S491 the inter-local communication control unit 66 of the local communication apparatus 11 substitutes a value “0” in the variables i and j. At Step S492 the inter-local communication control unit 66 retains as the variable Base-Glo-port the value of the variable Glo-port representative of the global port of the relay apparatus 12, and retains as the variable Base-Pri-port the variable Pri-port representative of the port of the local communication apparatus 11.
As the process proceeds to Step S493, the inter-local communication control unit 66 judges whether the value of the variable i is smaller than the variable numSrcPriPort If it is judged that the value of the variable i is smaller than the variable numSrcPriPort, the inter-local communication control unit 66 proceeds the process to Step S494 whereat the value of the variable i is added to the value of the variable Base-Pri-Port and this addition result is substituted in the variable Pri-port.
At Step S495 the inter-local communication control unit 66 judges whether the value of the variable j is smaller than {(numDstGloPort2−1)×i+numDstGloPort2−1}. If it is judged smaller, at Step S496 the value of the variable j is added to the variable Base-Glo-Port and this addition result is substituted in the variable Glo-port.
At Step S497 the inter-local communication control unit 66 generates the open request packet by using the value of the variable Pri-port as the port number of the transmission source and the value of the variable Glo-port as the port number of the transmission destination, and controls the communication unit 84 to supply the generated open request packet to the relay apparatus 32 via the relay apparatus 12.
The inter-local communication control unit 66 proceeds with the process to Step S498 stands by for a predetermined time timeSendInterval, thereafter at Step S499 a value (j+1) is substituted in the value of the variable j, and at Step S500 it is judged whether a termination request of the open request packet is output in response to a user operation or the like. If it is judged that the termination request is output, the fourth communication start request process is terminated to terminate the control process of
If it is judged at Step S493 that the value of the variable i is not smaller than the variable numSrcPriPort, the inter-local communication control unit 66 terminates the fourth communication start request process to terminate the control process of
If it is judged at Step S495 that the value of the variable j is not smaller than the value of {(numDstGloPort2−1)×i+numDstGloPort2−1}, the inter-local communication control unit 66 proceeds the process to Step S501 whereat the value (i+1) is substituted in the variable i, and thereafter the process is returned to Step S493 to repeat the succeeding processes.
If it is judged at Step S500 that the termination request of the open request packet is not output, the inter-local communication control unit 66 returns the process to Step S495 to repeat the succeeding processes.
As described above, if the local communication apparatus 11 is on the master side, the inter-local communication control unit 66 sets a plurality of groups each having (numDstGloPort2−1) consecutive ports of the relay apparatus 32 of the communication destination and one port, and supplies (numDstPort2−1) open request packets to different groups of the relay apparatus 32 from each port of the local communication apparatus 11. If the local communication apparatus 11 is the slave, the inter-local communication control unit 66 sets a plurality of consecutive groups each having (numDstGloPort2−1) consecutive ports of the relay apparatus 32 of the communication destination, and supplies (numDstPort2−1) open request packets to different groups of the relay apparatus 32 from each port of the local communication apparatus 11.
The local communication apparatus 31 executes the control process similar to the above-described case of the local apparatus 11 to execute the communication start request process.
For example, it is assumed that the value of the variable numSrcPriPort is “3” and the value of the variable numSrcPriPort2 is “4”. In
In this case, a port of the relay apparatus 12-2 predicted (estimated) to be assigned to the local communication apparatus 11 when the open request packet is transmitted from the local communication apparatus 11 is a port 402-3 similar to that described with reference to
In this case, if the relay apparatus 32-2 on the communication destination side increments the port to be used by passing the port 403-3 because of some reason, the port numbers of the communication sources of the open request packet supplied from the local communication apparatus 11 shift by 1. Even in this case, communications become open via the port 401-2 of the local communication apparatus 11, the port 402-6 of the relay apparatus 12-2, the port 403-7 of the relay apparatus 32-2 and the port 404-2 of the local communication apparatus 31.
Further, as shown in
As described above, the open request packet supplied from each port of the local communication apparatus is supplied to different ports of the communication destination relay apparatus, and the different open request packet supply methods are used for the master and slave. In this manner, the local communication apparatuses can conduct communications easily in a network system constituted of already existing facilities and in many other cases.
In the above-described examples, it is sufficient if different algorithms of supplying the open request packet are used for the local communication apparatuses as the master and slave. If the local communication apparatus is the master, the fourth communication start request process may be executed, whereas if the local communication apparatus is the slave, the third communication start request process may be executed.
In the above description, although the value of the variable numSrcPriPort is set to “3” and the value of the variable numSrcPriPort2 is set to “4”, other values may be set Also in the above description, if the local communication apparatus 11 is on the master side, the inter-local communication control unit 66 supplies (numDstGloPort2−1) open request packets from each port, whereas if the local communication apparatus 11 is the slave, the inter-local communication control unit 66 supplies (numDstGloPort2−1) open request packets from each port. The number of open request packets supplied from each port may be equal to or larger or smaller than this value.
In addition to the above-described communication start request algorithm for making the local communication apparatus 11 generate and supply the open request packet, any other algorithms may be used. For example, a combination of all the first to fourth communication start request processes described above may be used as the communication start request algorithm.
With reference to the flow chart of
First, at Step S521 the inter-local communication control apparatus 66 of the local communication apparatus 11 executes the first communication start request process similar to that described with reference to the flow chart of
If it is judged that the local communication apparatus 11 is the master, the inter-local communication control unit 66 proceeds the process to Step S524 whereat the second communication start request process similar to that described with reference to the flow chart of
If it is judged at Step S523 that the local communication apparatus 11 is the master of communications, the inter-local communication control unit 66 proceeds the process to Step S525 whereat it executes the first communication start request process similar to that at Step S521. The inter-local communication control unit 66 completed the first communication start request process proceeds the process to Step S526.
At Step S526 the inter-local communication control unit 66 judges whether communications become open by the first or second communication start request process. If it is judged that the communications are not open, the process proceeds to Step S527 whereat it is judged whether the local communication apparatus 11 is the master.
If it is judged that the local communication apparatus 11 is the master, the inter-local communication control unit 66 proceeds the process to Step S528 whereat the third communication start request process similar to that described with reference to the flow chart of
If it is judged at Step S527 that the local communication apparatus 11 is the communication slave, the inter-local communication control unit 66 proceeds the process to Step S529 to execute the fourth communication start request process similar to that described with reference to the flow chart of
If it is judged at Step S522 or Step S526 that the communications become open, the inter-local communication control unit 66 terminates the control process.
As described above, by combining a plurality of communication start request processes, the local communication apparatus 11 can conduct communications with the communication partner communication apparatus 31 easily in a network system constituted of already existing facilities and in many other cases.
In the above description, although the local communication apparatus 11 executes the control process, the local communication apparatus 31 may execute the control process similar to the above-described control process. In the control process to be executed by the local communication apparatus 11 and the control process to be executed by the local communication apparatus 31, it is obvious that different combinations of a plurality of communication start request processes and different orders of combinations may be used.
Even if a destination communication apparatus is directly connected to the network without the involvement of a relay apparatus having the NAPT function or the like, the relay apparatus of the communication destination may execute the communication start request process such as that described above. The local communication apparatus 11 connected to the network 21 via the relay apparatus 12 can easily start communicating with the communication apparatus.
Further, in the examples described above, although it has been described that the local communication apparatus 11 communicates with the local communication apparatus 31 via the two relay apparatuses 12 and 32, this is not limitative but communications may be conducted via three or more relay apparatuses. In this case, as the above-described processes are executed for each relay apparatus, the global port number on the communication partner local communication apparatus 31 side can be predicted so that communications with the local communication apparatus 31 can be conducted easily.
Furthermore, in the above-described examples, the communications via the relay apparatus having the NAPT function have been described. However, as the above-described processes are executed, the local communication apparatus 11 can predict the global port number on the communication partner local communication apparatus 31 side so that communications with the local communication apparatus 31 can be conducted easily.
The local communication apparatus 11, relay apparatus 12, local communication apparatus 31, relay apparatus 32, user service providing apparatus 41, apparatus service providing apparatus 51 or apparatus service providing apparatus 52 described above may have a portion or all of the above-described structure integrated with another apparatus, or may be constituted of a plurality of apparatuses.
The apparatus service providing apparatuses 51 and 52 among others are used for describing that the same processes are executed twice, and have different pieces of address port information. A single apparatus service providing apparatus having a plurality of ports may be used by changing ports to be used and repeating the same processes a plurality of times so that the processes similar to the above-described processes can be realized easily.
When the local communication apparatus 11 or 31 supplies the service request packet to the apparatus service providing apparatuses 51 and 52 like Step S4 and S6 or Step S4 and S46 of
Each of the above-described processes may be executed by any one of the above-described apparatuses or may be executed by an apparatus other than the above-described apparatuses.
Further, although it has been described that the local communication apparatuses 11 and 31 communicate in one-to-one correspondence by using the IM services, the invention is not limited thereto, but three or more users (three or more local communication apparatuses) may communicate at the same time. In this case, one of the local communication apparatuses is determined as the communication master, and the processes similar to those described above are executed between the master local communication apparatus and other slave local communication apparatuses.
A series of processes described above may be executed by hardware, or software as described above. If a series of processes is executed by software, the programs constituting the software are installed from recording media or the like into a computer assembled by dedicated hardware or for example a general personal computer which is installed with various programs and can execute various functions.
The recording media are constituted of, as shown in FIGS. 3 to 6, not only the removable media 91, 131, 181 or 231 including package media made of a magnetic disc, (including a flexible disc), an optical disc (including CD-ROM (Compact Disc-Read Only Memory) and DVD (Digital Versatile Disc)), a magneto-optical disc (including MD (Mini-Disc) (registered trademark)) a semiconductor memory or the like, respectively distributed for supplying users with programs and recorded with the programs, but also a hard disc built in a computer beforehand and provided to users, including ROM 62, 102, 152 or 202 and the storage unit 83, 123, 173 or 223.
In this specification, steps describing programs provided by media include obviously the processes to be executed time sequentially in the description order and the processes not necessarily executed time sequentially but executed parallel or individually.
In addition, in this specification, the system is intended to mean the whole apparatus constituted of a plurality of apparatuses.
As described so far, according to the invention, communications are possible. In particular, even in already existing facilities performing NAPT translation wherein each time the address and port of the communication destination of a communication terminal apparatus are changed, the port to be used for relaying communications by the communication terminal apparatus is incremented by two or more, communications with another apparatus can be easily performed via NAPT.
Number | Date | Country | Kind |
---|---|---|---|
2003-092396 | Mar 2003 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP04/03340 | 3/12/2004 | WO |