This application is based on and claims the benefit of priority from Japanese Patent Application No. 2008-024522 filed on Feb. 4, 2008; the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to a terminal apparatus and a program, as well as a reconnection process method, in an information distribution system, and in particular relates to a terminal apparatus and recording medium on which a program is recorded, as well as a reconnection process method, in an information distribution system including an information distribution apparatus, which distributes content information via a network, a plurality of terminal apparatus logically connected in multilayers on the network in a hierarchical structure, with the information distribution apparatus as an apex, and a connection management apparatus, which manages information on the hierarchical structure, wherein the content information distributed from the information distribution apparatus is sequentially relayed to downstream terminal apparatus by a relay function of the terminal apparatus.
2. Description of the Related Art
In recent years, accompanying a spread of broadband, an information distribution service which distributes content information has become popular. For example, as well as a service which distributes content information in accordance with a user's request, as with a VOD (Video On Demand), a service which distributes content information in a broadcast format, as with an internet broadcasting, has been known.
Although in this kind of information distribution service a distribution form using a server client method has been predominant, a tree-shaped topology format, which is a P2P (Peer To Peer) type of distribution form, has recently been attracting attention as a new distribution form to replace this method.
The tree-shaped topology format is a distribution form wherein a plurality of terminal apparatus are logically connected in multilayers on a network in a tree-shaped hierarchical structure, with an information distribution apparatus as an apex. The information distribution apparatus distributes content information via the network, such as an internet and content information distributed from the information distribution apparatus is sequentially relayed to downstream terminal apparatus by a relay function of the terminal apparatus (for example, refer to Japanese Unexamined Patent Publication No. 2006-33514).
In a heretofore known tree-shaped topology format of distribution form, a terminal apparatus, in the case that a terminal apparatus connected upstream withdraws from the information distribution system, or in the case that a connection with an upstream terminal apparatus is disconnected due to a deterioration of a communication condition, or the like, looks for another terminal apparatus to which it is possible to connect, and carries out a process of reconnecting to it, but at this time, the terminal apparatus carries out the reconnection process while maintaining a tree-shaped structure (hereafter, also called a “sub-tree”) with the terminal apparatus itself as an apex. In this way, with the heretofore known information distribution system, as only a terminal apparatus (a terminal apparatus positioned at an apex of a sub-tree) which has been directly connected to a terminal apparatus which has withdrawn from the system carries out the reconnection process, it is possible to prevent an enormous burden imposed on the system due to all other terminal apparatus connected to the downstream of the terminal apparatus carrying out the reconnection process simultaneously, and to carry out a stable transmission and reception of content information.
However, with such a heretofore known information distribution system, in the case that a long time is taken for the connection process, due to a performance of the terminal apparatus carrying out the reconnection process, or a kind or condition of a communication line, during that time, as well as the terminal apparatus carrying out the reconnection process, all the other terminal apparatus connected to the downstream of the terminal apparatus also fall into a condition of being unable to acquire content information, meaning that there has been a danger of impeding the stable transmission and reception of content information.
Therein, the invention having been contrived in order to solve the heretofore described problem, it is desirable to provide a terminal apparatus and recording medium on which a program is recorded, as well as a reconnection process method, in an information distribution system which enables a stable transmission and reception of content information by more swiftly completing a reconnection process in the information distribution system.
According to an embodiment of the invention, there is provided a terminal apparatus in an information distribution system in which a plurality of terminal apparatus are connected in multilayers on a network in a hierarchical structure, with an information distribution apparatus as an apex, and information distributed from the information distribution apparatus is sequentially relayed downstream in the hierarchical structure by a relay function of each of the terminal apparatus, enabling an acquisition of the information by the plurality of terminal apparatus. The terminal apparatus includes a connection condition detection module which detects that it has become necessary to reconnect to another terminal apparatus different from an apparatus connected upstream in the hierarchical structure, a connection process module which, on detecting that the reconnection has become necessary, starts a process of connecting to another terminal apparatus configuring the hierarchical structure, a connection request module which, on detecting that the reconnection has become necessary, requests of an apparatus connected downstream in the hierarchical structure a process of connecting to another terminal apparatus configuring the hierarchical structure, and a reception control module which, on the connection process of the apparatus connected downstream finishing before the connection process using the connection process module finishes, receives the information with the apparatus connected downstream as an upstream apparatus.
1.1 Configuration and the like of Information Distribution System
Firstly, referring to
As shown in
IP addresses being allotted to each of the information distribution apparatus 1, the terminal apparatus 2a1, 2a2, 2b1 to 2b4, and 2c1 to 2c8, and the connection management apparatus 3, these apparatus are connected via a router or the like to an internet 8, as one example of the network, as shown in
The information distribution system S is managed by the connection management apparatus 3 in such a way that the plurality of terminal apparatus 2 are logically connected in multilayers in the tree-shaped hierarchical structure, with the information distribution apparatus 1 as the apex. The information distribution apparatus 1 transmits content information to the terminal apparatus 2a1 and 2a2. The terminal apparatus 2a1 and 2a2, on receiving the content information from the information distribution apparatus 1 connected upstream, relay the received content information to the terminal apparatus 2b1 to 2b4 connected downstream (hereafter also called “downstream apparatus”). In the same way, the terminal apparatus 2b1 to 2b4, on receiving the content information, relay the received content information to the terminal apparatus 2c1 to 2c8 connected downstream.
In this way, in the information distribution system S, the content information distributed from the information distribution apparatus 1 being sequentially relayed to the downstream terminal apparatus 2 by a relay function of the terminal apparatus 2, the content information is distributed to all the terminal apparatus 2 participating in the information distribution system S, and configuring the tree-shaped hierarchical structure. Apart from content data such as music and a movie, information on a reproduction time (hereafter called “reproduction time data”) is included in the distributed content information. Then, the plurality of terminal apparatus 2 which receive the content information carry out a reproduction of the sequentially transmitted content information, based on the reproduction time data. Thus, in the information distribution system S, the content information transmitted from the information distribution apparatus 1 being distributed to the plurality of terminal apparatus 2, it is possible to reproduce the content information in the plurality of terminal apparatus 2 at the same time. That is, a broadcast format streaming distribution to the plurality of terminal apparatus 2 is realized using a P2P.
1.2 Method of the Process of Reconnecting to Tree-Shaped Hierarchical Structure
Next, a specific description will be given, referring to the drawings, of an operation of reconnecting to the tree-shaped hierarchical structure in the information distribution system S.
In the case that, for example, the connection between the information distribution apparatus 1 and the terminal apparatus 2a1 is disconnected due to a deterioration of a communication condition, or the like, as shown in
Firstly, a specific description will be given of the connection process.
The terminal apparatus 2a1, on starting the connection process, firstly, makes an inquiry to the connection management apparatus 3 about a connection destination candidate (refer to Step 1 shown in
The connection management apparatus 3 stores connection condition information on the plurality of terminal apparatus 2 configuring the tree-shaped hierarchical structure (for example, a connection position of each terminal apparatus 2 in the tree-shaped hierarchical structure, location information of each terminal apparatus 2, and the like) and, on receiving the connection destination inquiry message from the terminal apparatus 2a1, selects a connection destination candidate based on the stored connection condition information.
Subsequently, the connection management apparatus 3 sends information on the selected connection destination candidate (location information, and a connection position in the tree-shaped hierarchical structure, of the connection destination candidate) to the terminal apparatus 2a1, which has transmitted the connection destination inquiry message (refer to Step 2 shown in
The terminal apparatus 2a1, on receiving the connection destination candidate from the connection management apparatus 3, makes a request for a connection to the selected terminal apparatus 2 (taken here to be the terminal apparatus 2c6), which has become the connection destination candidate (refer to Step 3 shown in
Next, a specific description will be given of the connection request module.
The terminal apparatus 2a1, by requesting the process of connecting to another terminal apparatus 2 configuring the hierarchical structure of the terminal apparatus 2 connected downstream, using the connection request module, carries out a process of connecting not only its own terminal apparatus 2, but also the terminal apparatus 2 connected downstream thereof.
That is, in the case that the connection between the information distribution apparatus 1 and the terminal apparatus 2a1 is disconnected, as shown in
Herein, in the case that the terminal apparatus 2b2, connected to the downstream of the terminal apparatus 2a1, finishes the connection process before the terminal apparatus 2a1 finishes the connection process (herein, in a case in which the terminal apparatus 2b2 is connected to the terminal apparatus 2b4), the terminal apparatus 2b2 transmits a connection completion notification T3 to the terminal apparatus 2a1, as shown in
In this way, in the information distribution system S according to the embodiment, the terminal apparatus 2, on detecting that it has become necessary to reconnect to another terminal apparatus 2 differing from the terminal apparatus 2 connected upstream, as well as starting the process of connecting to the other terminal apparatus 2 configuring the tree-shaped hierarchical structure, requests a connection process of the apparatus connected downstream in the hierarchical structure and, in the case that the connection process of the apparatus connected downstream finishes before the connection process of the terminal apparatus 2 itself finishes, receives content information with the apparatus connected downstream as an upstream apparatus, meaning that it is possible to complete the reconnection process more swiftly, enabling a stable transmission and reception of content information.
In the case that there is a terminal apparatus 2 which has accepted the connection request message (herein, the terminal apparatus 2b1), other than the terminal apparatus 2 which has completed the connection (herein, the terminal apparatus 2b2), the terminal apparatus 2a1 transmits the connection completion notification T3 to the terminal apparatus 2b1, as shown in
Also, in the information distribution systems according to the embodiment, the terminal apparatus 2 makes a request for the connection process when an average value of time for the connection process with the connection process module, taken in the past by a terminal apparatus for which the reconnection has become necessary, is equal to or greater than a predetermined value.
That is, the terminal apparatus 2 stores time needed from a start to a finish of connection processes carried out in the past, and on detecting, using the connection condition detection module, that a reconnection is necessary, firstly, calculates an average value of the stored time and, only when the average value is equal to or greater than a predetermined value, transmits a connection request message to the apparatus connected downstream in the hierarchical structure.
By adopting such a configuration, for example, in a case in which, due to an apparatus performance, a kind of communication line, or the like, it is possible to finish the connection process in an extremely short time, that is, in a case in which there is no need to carry out the connection process together with the terminal apparatus 2 connected downstream, no request for the connection process is made, meaning that it is possible to prevent any superfluous burden being placed on the network.
It is also acceptable that the calculation of the average value is carried out not when it is detected, using the connection condition detection module, that a reconnection is necessary, but before detecting that a reconnection is necessary (for example, after completing the connection process, or the like). By adopting such a configuration, it is possible to make a request for a connection process more swiftly.
Also, in the information distribution system S according to the embodiment, the reception control module of the terminal apparatus 2, on the connection process using the connection process module finishing after the connection process of the apparatus connected downstream finishes, switches the apparatus which receives the information from the apparatus connected downstream to the apparatus connected using the connection process module.
That is, in a case in which, in the condition shown in
Then, the terminal apparatus 2a1, which has received the connection completion notification T3, and the notification T4 to the effect that the upper limit connection quantity has been exceeded, with respect to the terminal apparatus 2b1, temporarily receives content information with the terminal apparatus 2b1 as an upstream apparatus, but continues the connection process at that time too. Then, in a case in which it completes the connection process, and is connected to the downstream of the terminal apparatus 2c4, as shown in
By adopting such a configuration, in the case that the connection process of the apparatus connected downstream finishes before the connection process of the terminal apparatus 2 which has made the connection process request finishes, by the downstream apparatus transmitting content information to the terminal apparatus 2 which has made the connection process request, despite the upper limit connection quantity being exceeded, it is possible to prevent a localized increase in the burden on the network.
In the same way as illustrated in
Also, in the information distribution system S according to the embodiment, the connection request module of the terminal apparatus 2, in the case that the connection process using the connection process module finishes before the connection process of the apparatus connected downstream finishes, requests the apparatus connected downstream in the hierarchical structure to stop the connection process. By adopting such a configuration, in the same way as heretofore described, it is possible to prevent the situation wherein the connection process continues to be executed even after one of the terminal apparatus 2 has finished the connection process, and it has become unnecessary to carry out the process.
1.3. Specific Configuration and Operations of Terminal Apparatus
Next, referring to the drawings, a description will be given of a configuration and operations of the terminal apparatus 2.
Configuration of Terminal Apparatus
Firstly, a description will be given of the configuration of the terminal apparatus 2.
To the terminal apparatus 2, a general personal computer, as well as a dedicated computer is applicable, and the terminal apparatus 2 includes a controller 101, a rewritable memory 102, which stores time needed from a start to a finish of connection processes carried out by its own terminal apparatus 2 in the past, other various kinds of parameters, and the like, a hard disc (HDD) 103, which stores content information acquired from the information distribution apparatus 1 and other terminal apparatus 2, a buffer memory 104, which temporarily stores the content information acquired from the information distribution apparatus 1 and the other terminal apparatus 2, a decoder 105, which sequentially retrieves and decodes the content information stored on the hard disc 103 and in the buffer memory 104, an image processor 106, which converts image information, among the content information decoded by the decoder 105, into information which can be displayed on a display 107, to be described hereafter, the display 107, such as a liquid crystal display device (LCD), which displays an image of content information based on an output from the image processor 106, a sound processor 108, which converts sound information, among the content information decoded by the decoder 105, into information which can be output as a sound wave from a speaker 109, to be described hereafter, the speaker 109, which outputs the sound wave based on an output from the sound processor 108, an input device 110 including a mouse, a keyboard or the like, and a communication device 113, for communicating with the information distribution apparatus 1, the other terminal apparatus 2, and the connection management apparatus 3, via the internet 8, as shown in
The controller 101 is configured of a CPU (Central Processing Unit), an internal ROM (Read Only Memory), and an internal RAM (Random Access Memory). An information processing program, for participating in the tree-shaped hierarchical structure of the information distribution system S and acquiring content information, being stored in the internal ROM, the CPU, by retrieving and executing the information processing program stored in the internal ROM, functions as the connection condition detection module, the connection process module, the connection request module, and the like, to be described hereafter.
It is acceptable that the information processing program is, for example, downloaded from a server (for example, the connection management apparatus 3) connected to the internet 8, via the communication device 113, into the internal ROM of the controller 101, and it is also acceptable that, after being recorded on a recording medium such as a CD-ROM, it is loaded into the internal ROM of the controller 101 via an unshown recording medium drive. In this case, it is desirable that the internal ROM is configured of a flash memory or the like.
Operations of Terminal Apparatus
A specific description will be given of operations of the terminal apparatus 2 configured as heretofore described.
As shown in
In step S11, the controller 101 carries out the connection process. Specifically, on starting the connection process, the controller 101 makes a participation request to the connection management apparatus 3. That is, the controller 101 transmits a connection destination inquiry message, including its own apparatus location information and the like, to the connection management apparatus 3, via the communication device 113. Subsequently, the controller 101 acquires location information (the IP address or the like) of a connection destination candidate (the information distribution apparatus 1 or a terminal apparatus 2) from the connection management apparatus 3, via the communication device 113. Next, the controller 101 makes a connection request to the connection destination candidate replied by the connection management apparatus 3, and participates in the tree-shaped hierarchical structure with the connection destination candidate as an upstream apparatus. Subsequently, the controller 101 transmits a participation report to the connection management apparatus 3, via the communication device 113, and finishes the connection process.
Next, the controller 101 determines whether or not it has been detected that the reconnection process is necessary (step S12). Herein, this determination is made based on whether or not a condition of a communication with the upstream apparatus has become a non-connected condition, or a condition worse than the predetermined value, or alternatively, on whether or not a withdrawal message, transmitted from the upstream apparatus when the upstream apparatus withdraws from the information distribution system S, has been received. In this way, the controller 101 functions as the connection condition detection module which detects that there is a need for a reconnection to another terminal apparatus 2 different from the apparatus connected upstream in the hierarchical structure.
If it is determined, in this process, that it has been detected that the reconnection process is necessary (step S12: Yes), the controller 101 carries out a reconnection request process of step S13. The reconnection request process, being the process of steps S20 to S26 in
On finishing the reconnection request process of step S13, the controller 101 carries out the reconnection process (step S14). The reconnection process, being the process of steps S30 to S41 in
Meanwhile, when it is not detected, in step S12, that the reconnection process is necessary (step S12: No), the controller 101 determines whether or not it has received a connection request message from an upstream apparatus (step S15). If it is determined, in this process, that a connection request message has been received from an upstream apparatus (step S15: Yes), the controller 101 carries out the requested connection process (step S16). The requested connection process, being the process of steps S50 to S60 in
When the processes of steps S14 and S16 are finished, or when no connection request message is received from an upstream apparatus in step S15 (step S15: No), the controller 101 determines whether or not a finish instruction has been detected (step S17). For example, when a power supply of its own terminal apparatus 2 has shifted to a deactivated condition, the controller 101 detects a finish instruction.
If it is determined, in step S17, that a finish instruction has been detected (step S17: Yes), the controller 101 finishes the main process, while if it is determined that no finish instruction has been detected (step S17: No), the controller 101 repeats the process from step S12.
Next, a specific description will be given, referring to the flowchart of
As shown in
Next, the controller 101 determines whether or not a terminal apparatus 2 is connected to the downstream of its own terminal apparatus 2 (whether or not a downstream apparatus exists) (step S21). If it is determined, in this process, that a terminal apparatus 2 is connected to the downstream of its own terminal apparatus 2 (step S21: Yes), the controller 101 shifts the process to step S22.
In step S22, the controller 101 carries out a calculation of an average time needed from a connection start to a connection finish of connection processes carried out in the past. Then, the controller 101 determines whether or not the average value calculated in step S22 is equal to or greater than the predetermined value (step S23). If it is determined, in this process, that the calculated average value is equal to or greater than the predetermined value (step S23: Yes), the controller 101 shifts the process to step S24.
In step S24, the controller 101 transmits a connection request message, via the network, to a downstream apparatus connected directly to its own terminal apparatus 2, requesting a process of connecting to another terminal apparatus 2 configuring the hierarchical structure. In this way, the controller 101, on detecting that a reconnection is necessary, functions as the connection request module, which makes a request to an apparatus connected downstream in the hierarchical structure for a process of connecting to another terminal apparatus 2 configuring the hierarchical structure.
Next, the controller 101 determines whether or not the connection request message transmitted to the downstream apparatus connected directly to its own terminal apparatus 2 has been accepted within the predetermined time (step S25). This determination is made based on whether or not a request acceptance message has been received from the downstream apparatus within a predetermined time. If it is determined, in this process, that the connection request message has been accepted within the predetermined time (step S25: Yes), the controller 101 stores information (the IP address or the like) on the terminal apparatus 2 which has accepted the request (step S26)
When the process of step S26 is finished, or alternatively when there is no terminal apparatus 2 connected to the downstream of its own terminal apparatus 2 in step S21 (step S21: No), when the calculated average value is not equal to or greater than the predetermined value in step S23 (step S23: No), or when the connection request message is not accepted in step S25 (step S25: No), the controller 101 finishes the reconnection request process.
Next, a specific description will be given, referring to the flowchart of
As shown in
In step S31, the controller 101 determines whether or not there exists a terminal apparatus 2 which has accepted the reconnection request. This determination is made based on whether or not a request acceptance message has been received from the downstream apparatus to which the connection request message has been transmitted. If it is determined, in this process, that there exists a terminal apparatus 2 which has accepted the reconnection request (step S31: Yes), the controller 101 transmits a connection completion notification to the terminal apparatus 2 which has accepted the reconnection request (step S32).
When the process of step S32 is finished, or alternatively when no terminal apparatus 2 which has accepted the reconnection request exists in step S31 (step S31: No), the controller 101 shifts the process to step S41.
Meanwhile when, in step S30, the connection process is not completed (step S30: No), the controller 101 determines whether or not a connection completion notification has been received from the downstream apparatus of which it has requested the reconnection process (step S33). If it is determined, in this process, that a connection completion notification has been received from the downstream apparatus of which it has requested the reconnection process (step S33: Yes), the controller 101 shifts the process to step S34, while when no connection completion notification has been received (step S33: No), the controller 101 shifts the process to step S30.
In step S34, the controller 101 determines whether or not there exists a terminal apparatus 2 which has accepted the reconnection request, other than the terminal apparatus 2 which has transmitted the connection completion notification. This determination is made based on the information (the IP address or the like), stored in step S26 of
When finishing the process of step S35, or alternatively when there exists no terminal apparatus 2 which has accepted the reconnection request, other than the terminal apparatus 2 which has transmitted the connection completion notification (step S34: No), the controller 101 stops the transmission of content information to the downstream apparatus which has completed the connection (step S36), and transmits a content information transmission request to the downstream apparatus which has completed the connection (step S37).
Next, the controller 101 determines whether or not a quantity of the downstream apparatus connected to the terminal apparatus 2 which has completed the connection exceeds a predetermined value (an upper limit connection quantity) (step S38). This determination is made based on whether or not a notification to the effect that the upper limit connection quantity has been exceeded has been received from the terminal apparatus 2 which has completed the connection. When it is determined, in this process, that the quantity of the downstream apparatus connected to the terminal apparatus 2 which has completed the connection exceeds the upper limit connection quantity (step S38: Yes), the controller 101 shifts the process to step S39.
In step S39, the controller 101 determines whether or not the connection process which its own terminal apparatus 2 is carrying out is completed. If it is determined, in this process, that the connection process is completed (step S39: Yes), the controller 101 stops the reception of content information from the downstream apparatus which has completed the connection (step S40), and transmits a content information transmission request to a terminal apparatus 2 which has newly become an upstream apparatus directly connected to its own terminal apparatus 2 (step S41).
When finishing the process of step S41, or alternatively when the quantity of the downstream apparatus connected to the terminal apparatus 2 which has completed the connection does not exceed the upper limit connection quantity (step S38: No), the controller 101 finishes the reconnection process.
Next, a specific description will be given, referring to the flowchart of
As shown in
Next, the controller 101 determines whether or not the connection process is completed (step S52). When, in this process, the connection process is not completed (step S52: No), the controller 101 determines whether or not it has received a connection completion notification from a request source terminal apparatus 2 (step S53). Then, if it is determined, in this process, that a connection completion notification has been received from a request source terminal apparatus 2 (step S53: Yes), the controller 101 stops the connection process (step S54), while when no connection completion notification has been received from a request source terminal apparatus 2 (step S53: No), the controller 101 shifts the process to step S52.
Meanwhile, when it is determined, in step S52, that the connection process is completed (step S52: Yes), the controller 101 determines whether or not a quantity of the downstream apparatus directly connected to its own terminal apparatus 2 exceeds the upper limit connection quantity (step S55). When, in this process, the quantity of the downstream apparatus directly connected to its own terminal apparatus 2 does not exceed the upper limit connection quantity (step S55: No), the controller 101 transmits a connection completion notification to the request source terminal apparatus 2 (step S56). Meanwhile, if it is determined, in step S55, that the quantity of the downstream apparatus directly connected to its own terminal apparatus 2 exceeds the upper limit connection quantity (step S55: Yes), the controller 101 transmits a notification to the effect that the upper limit connection quantity has been exceeded, along with a connection completion notification, to the request source terminal apparatus 2 (step S57).
On finishing the processes of steps S56 and S57, the controller 101 transmits a content information transmission request to a terminal apparatus 2 which has newly become an upstream apparatus directly connected to its own terminal apparatus 2 (step S58). Then, the controller 101 determines whether or not it has received a content information transmission request from the request source terminal apparatus 2 (step S59) and, if it determines that it has received a content information transmission request from that terminal apparatus 2 (step S59: Yes), the controller 101 transmits content information to the terminal apparatus 2 (step S60).
When finishing the processes of steps S54 and S60, the controller 101 finishes the requested connection process.
Next, a description will be given of operations of an information distribution system S′ in a second embodiment. In the information distribution system S in the heretofore described first embodiment, the terminal apparatus 2, on receiving a connection request message from an upstream apparatus, transmits a request acceptance message and starts the connection process, even in the case that the quantity of the downstream apparatus directly connected to the terminal apparatus 2 itself exceeds the upper limit connection quantity, but with the information distribution system S′ in the second embodiment, in the case that the quantity of the downstream apparatus directly connected to the terminal apparatus 2 itself exceeds the upper limit connection quantity when receiving a connection request message from an upstream apparatus, the terminal apparatus 2 refuses the reconnection request, and does not carry out the connection process. As operations other than the reconnection process and the requested connection process are the same kinds of process as those of the first embodiment, a description will be omitted here. Also, the same kind of configuration as that of the first embodiment will be described using reference numerals identical to those of the first embodiment. Also, in the terminal apparatus 2, in order to execute these kinds of operations, an information processing program is included in the internal ROM of the controller 101, in the same way as in the first embodiment.
Firstly, a description will be given, referring to
As shown in
Herein, the terminal apparatus 2b1 and the terminal apparatus 2b2, which have received the connection request message T1, determine whether or not there is a capacity to connect an apparatus to the downstream of the apparatus itself and, if it is determined that there is a capacity to connect an apparatus to the downstream of the apparatus itself, start a connection process appropriate to the request, using the requested connection process module.
That is, in the case that the two terminal apparatus 2c1 and 2c2, constituting the upper limit connection quantity, are already connected to the downstream of the terminal apparatus 2b1, the terminal apparatus 2b1, using a determination module, determines that there is not the capacity to connect an apparatus to the downstream of the apparatus itself, transmits a request refusal message T5 to the terminal apparatus 2a1, as shown in
As a result thereof, in the case that the terminal apparatus 2b2 completes the connection process before the terminal apparatus 2a1, and becomes connected to the downstream of the terminal apparatus 2b3, the terminal apparatus 2b2 transmits a connection completion notification T3 to the terminal apparatus 2a1, as shown in
In this way, with the information distribution system S′ according to the second embodiment, the terminal apparatus 2 starts the connection process appropriate to the request, using the requested connection process module, only when it determines, using the determination module, that there is the capacity to connect an apparatus to the downstream of the apparatus itself, meaning that it is possible to prevent a superfluous burden being imposed on the network due to a terminal apparatus with no connection capacity carrying out the connection process, as a result, a stable transmission and reception of content information become possible.
Hereafter, a more detailed description will be given of the operations of the information distribution system S′ according to the second embodiment.
As shown in
In step S71, the controller 101 determines whether or not there exists a terminal apparatus 2 which has accepted the reconnection request. This determination is made based on whether or not a request acceptance message has been received from the downstream apparatus to which the connection request message has been transmitted. If it is determined, in this process, that there exists a terminal apparatus 2 which has accepted the reconnection request (step S71: Yes), the controller 101 transmits a connection completion notification to the terminal apparatus 2 which has accepted the reconnection request (step S72).
When the process of step S72 is finished, or alternatively when no terminal apparatus 2 which has accepted the reconnection request exists in step S71 (step S71: No), the controller 101 transmits a content information transmission request to an upstream apparatus which has newly become directly connected to its own terminal apparatus 2 (step S73).
Meanwhile when, in step S70, the connection process is not completed (step S70: No), the controller 101 determines whether or not a connection completion notification has been received from the downstream apparatus of which it has requested the reconnection process (step S74). When no connection completion notification has been received in this process (step S74: No), the controller 101 shifts the process to step S70.
Meanwhile, if it is determined, in step S74, that a connection completion notification has been received from the downstream apparatus of which it has requested the reconnection process (step S74: Yes), the controller 101 stops the connection process (step S75).
Next, the controller 101 determines whether or not there exists a terminal apparatus 2 which has accepted the reconnection request, other than the terminal apparatus 2 which has transmitted the connection completion notification (step S76) If it is determined, in this process, that there exists a terminal apparatus 2 which has accepted the reconnection request, other than the terminal apparatus 2 which has transmitted the connection completion notification (step S76: Yes), the controller 101 transmits a connection completion notification to that terminal apparatus 2 (step S77).
When finishing the process of step S77, or alternatively in step S76 when there exists no terminal apparatus 2 which has accepted the reconnection request, other than the terminal apparatus 2 which has transmitted the connection completion notification (step S76: No), the controller 101 stops the transmission of content information to the downstream apparatus which has completed the connection (step S78), and transmits a content information transmission request to the downstream apparatus which has completed the connection (step S79).
When finishing the processes of steps S73 and S79, the controller 101 finishes the reconnection process.
Next, a specific description will be given, referring to the flowchart of
As shown in
Next, the controller 101 starts the connection process (step S83). The connection process is the same kind of process as step S11 in
Next, the controller 101 determines whether or not the connection process is completed (step S84). When, in this process, the connection process is not completed (step S84: No), the controller 101 determines whether or not it has received a connection completion notification from a request source terminal apparatus 2 (step S85). Then when, in this process, no connection completion notification has been received from a request source terminal apparatus 2 (step S85: No), the controller 101 shifts the process to step S84, while if it is determined that a connection completion notification has been received from a request source terminal apparatus 2 (step S85: Yes), the controller 101 stops the connection process (step S86).
Meanwhile, when it is determined, in step S84, that the connection process is completed (step S84: Yes), the controller 101 transmits a connection completion notification to the request source terminal apparatus 2 (step S87), and transmits a content information transmission request to a terminal apparatus 2 which has newly become an upstream apparatus directly connected to its own terminal apparatus 2 (step S88).
Next, the controller 101 determines whether or not it has received a content information transmission request from the request source terminal apparatus 2 (step S89) and, if it determines that it has received a content information transmission request from that terminal apparatus 2 (step S89: Yes), the controller 101 transmits content information to the terminal apparatus 2 (step S90).
When finishing the processes of steps S86 and S90, the controller 101 finishes the requested connection process.
The heretofore described preferred embodiments of the invention being disclosed for the purpose of illustration, those skilled in the art appertaining to the invention will be able to make various substitutions, modifications and changes, without departing from the scope of the technical idea of the invention, and these kinds of substitutions, changes and the like also appertain to the claims.
For example, although a description has been given with the IP address as an example of the location information of the terminal apparatus 2, it being sufficient that it is able to identify a position in the network, it is also acceptable to make it location information which includes a port number in addition to the IP address.
Number | Date | Country | Kind |
---|---|---|---|
2008-024522 | Feb 2008 | JP | national |