This invention relates to a network connection control device, network connection control method, network connection control program and information recording medium, and more particularly to a network connection control device and network connection control method that perform processing for connection control when forming a network group by connecting together a plurality of networks, a network connection control program for that connection control process, and an information recording medium on which that network connection control program is recorded.
In recent years, products that comply with the USB (Universal Serial Bus) standard, and IEEE 1394 (IEEE (Institute of Electrical Electronics Engineers) 1394-1995 Standard for High Performance Serial Bus) standard as standards for simple wired connections of various external devices to a personal computer have become widely popular, and particularly, products that comply with the preferred IEEE 1394 standard for wired connections of audio and video equipment, or of audio and video equipment and a personal computer have become common.
Here, in the IEEE 1394 standard, each item of equipment such as audio and video equipment or a personal computer is typically referred to as a ‘node’, and a serial network is formed by connecting nodes with a bus that complies with the standard. In that serial bus network, each node has its own node ID (Identification) information (typically referred to as GUID (Global Unique ID)) that is unique with respect to all other devices and not just those of that serial bus network. Moreover, two nodes in the serial network are connected together by a bus (serial bus) as a physical connecting line, and a network is formed by repeatedly performing this kind of connection.
Common bus ID information is uniformly given to each of the busses in one serial network (these can be physical or another kind of connection line). Therefore, the serial bus network described above is constructed from a plurality of nodes that are serially connected by busses each having the same bus ID information (hereafter this kind of serial bus network will be referred to as simply a network unit).
On the other hand, needless to say, networks that are constructed in compliance with the IEEE 1394 standard are connected together by nodes included in each. In this case, the nodes that are used for this kind of connection (nodes that are included in each network unit) are typically called ‘portals’. Also, devices that form these connection units are regulated so that a plurality of portals is connected together by closed communication lines (internal bus, etc.) on the inside of the devices, and these portals become relay devices between network units called ‘bridges’ that comprise a plurality of portals. Here, the portals inside a bridge are not connected by busses that comply with IEEE 1394, so in the end, when a different network unit is connected by the bridge, each of the network units are independent of each other according to the IEEE 1394 standard. Here, a network that is formed by connecting network units that are constructed by busses each having common bus ID information as described above will be hereafter be referred to as a network. The network itself is regulated so that it has its own network ID information, and that specification is set separately from the IEEE 1394 standard as standard IEEE 1394.1, and a bridge specified by this IEEE 1394.1 standard is disclosed in the following two patent documents:
Japanese patent application H11-220485
Japanese patent application 2000-165417
Also, according to standard IEEE 1394.1, a constantly updated route map containing routing information that indicates the current state of use of each bus in the network is stored in each of the portals of a network. The state of use referred to here is one of four states; ‘unused’, ‘not usable as a bus’, ‘currently being used as a bus, and information cannot be transferred’ or ‘currently being used as a bus, and information can be transferred’. In the states of use, the term ‘being used as a bus’ device that there is already a bus in the network unit or network that has the same bus ID information; ‘information can be transferred’ device that by transferring information from a bus that is directly connected to the object portal to a co-portal, information can be transferred from that portal to a desired bus beyond that co-portal as seen from that portal’; furthermore, ‘information cannot be transferred’ device that even when information is transferred from a bus that is directly connected to the object portal to a co-portal, that information cannot be transferred because there is no desired bus beyond that co-portal as seen from that portal.
According to the prior IEEE 1394 standard, in regards to the bus ID information described above, after a plurality of network units has been connected by bridges to form one network, when a different network unit having bus ID information with the same value is used within that network, it is not possible to identify that network unit, and information cannot be transferred over the busses of each of the network units, so a network unit that includes a bus having bus ID information with the same value can exist in only one network and does not exist in another network.
Two or more networks that are formed in this way by connecting two or more network units together will hereafter be referred to as a network group. A network group itself is standardized by having network ID information. There is a plurality of networks existing inside a network group, and up to the time that a network group is formed, each of the networks had network ID information that differed from that of the other networks, however, after each of those networks has been brought together to form a network group, the same network ID information is assigned for the entire network group, and the networks that have been combined together in that network group no longer have their original network ID information after being combined.
On the other hand, in the prior IEEE 1394.1 standard described above, in regards to bus ID information, the standard is simply specified as ‘unique in one network’, or in other words, between different networks (including each of a plurality of network units) it is possible for the same bus ID information to exist in each network.
Also, when a network group is formed by connecting networks comprising network units that comprise busses having the same bus ID information, after connection, there are two or more network units in one network group having the same bus ID information, and the new network group that is formed after that connection no longer complies with the IEEE 1394.1 standard.
Therefore, conventionally, in a so-called net update process (in other words, a process for making the transmission of information within a formed network group comply with the IEEE 1394.1 standard, and that includes a process of updating the aforementioned route map contents when two networks are connected to form a new network group), which is set to be executed when connecting these two networks, a preset interim value is temporarily assigned to busses having the same bus ID information, and during update of the route map for each portal after bus reset, new and unique bus ID information is assigned in the place of each of the interim values. More specifically, a value such as ‘3FFh’ (the ‘h’ indicates a hexadecimal value) is assigned as the interim value referred to here, however, this value itself is only valid in communication between nodes in one network unit that complies with the conventional IEEE 1394.1 standard, or in other words, it is a value that is invalid for transmission of information beyond a bridge.
Therefore, in a conventional connection between networks as described above, there is a problem in that up until the time that the route map update process described above is completed for all route maps, and valid bus ID information has been assigned for all busses, the transmission of control information and the like by way of each network unit is temporarily stopped.
Also, according to the conventional method of connecting networks described above, control information, such as the route maps stored in all of the portals that belong to a network group after connection, is all newly rewritten by the net update process that accompanies the bus reset process, so as a result, there is a problem in that the update process for that control information becomes complicated, and when performing the control information update process, it is necessary to transfer information that accompanies the bus reset process to each bus, and it becomes easy for the network group that comprises those busses to become unstable.
More specifically, the unstable network group referred to here device that when the bus reset described above occurs, transmission of information over a bus is temporarily stopped, or it becomes easy for a state to occur in which the amount of information that is transmitted after bus reset increases, and in the IEEE 1394.1 standard, the effect of the bus reset spreads over the entire network (or network group) when executing the control information update process.
Taking the aforementioned problems into consideration, it is the object of the present invention to provide a network connection control device, network connection control method, network connection control program for the connection control process, and an information recording medium on which the network connection control program is recorded that are capable of quick and stable connection processing when connecting networks together that comply to the IEEE 1394.1 standard.
To solve the problems, the invention described in claim 1 is an information relay device that connects networks that are constructed such that they include busses that are identified by one bus ID (Identification) information, and includes a number of connection devices equal to the number of networks that are directly connected to the busses of the networks, and by connecting the connection devices connects the networks that are directly connected to the connection devices, and is provided with an update device for updating the bus ID information that corresponds to the busses to which the connection devices included in the information relay device are directly connected, so that when the networks are connected together to form a new network group, the bus ID information that corresponds to the busses of the new network group is different from each other.
To solve the problems, the invention described in claim 2 is an information relay device that connects networks that are constructed such that they include busses that are identified by one bus ID information, and includes a number of connection devices equal to the number of networks that are directly connected to the busses of the networks, and by connecting the connection devices connects the networks that are directly connected to the connection devices, and is provided with an update device for updating the bus ID information that corresponds to the busses to which the connection devices that are included in the information relay device are directly connected, so that when disconnecting any the network from an already formed network group that includes a plurality of the networks, the bus ID information that corresponds to each of the busses belonging to the network group after the network has been disconnected is different from each other in the network group after disconnection of the network.
To solve the problems, the invention described in claim 12 is an information relay method that is executed by an information relay device that connects networks that are constructed such that they include busses that are identified by one bus ID information, and includes a number of connection devices equal to the number of networks that are directly connected to the busses of the networks, and by connecting the connection devices connects the networks that are directly connected to the connection devices, and is provided with an update process of updating the bus ID information that corresponds to the busses to which the connection devices included in the information relay device are directly connected, so that when the networks are connected together to form a new network group, the bus ID information that corresponds to the busses of the new network group is different from each other.
To solve the problems, the invention described in claim 13 is an information relay method that is executed by an information relay device that connects networks that are constructed such that they include busses that are identified by one bus ID information, and includes a number of connection devices equal to the number of networks that are directly connected to the busses of the networks, and by connecting the connection devices connects the networks that are directly connected to the connection devices, and is provided with an update device for updating the bus ID information that corresponds to the busses to which the connection devices that are included in the information relay device are directly connected, so that when disconnecting any the network from an already formed network group that includes a plurality of the networks, the bus ID information that corresponds to each of the busses belonging to the network group after the network has been disconnected is different from each other in the network group after disconnection of the network.
To solve the problems, the invention described in claim 14 is an information relay program that causes a computer, which is included in an information relay device that connects networks that are constructed such that they include busses that are identified by one bus ID information, and includes a number of connection devices equal to the number of networks that are directly connected to the busses of the networks, and by connecting the connection devices connects the networks that are directly connected to the connection devices, to function as an update device for updating the bus ID information that corresponds to the busses to which the connection devices included in the information relay device are directly connected, so that when the networks are connected together to form a new network group, the bus ID information that corresponds to the busses of the new network group is different from each other.
To solve the problems, the invention described in claim 15 is that a computer, which is included in an information relay device that connects networks that are constructed such that they include busses that are identified by one bus ID information, and includes a number of connection devices equal to the number of networks that are directly connected to the busses of the networks, and by connecting the connection devices connects the networks that are directly connected to the connection devices, functions as an update device for updating the bus ID information that corresponds to the busses to which the connection devices that are included in the information relay device are directly connected, so that when disconnecting any the network from an already formed network group that included a plurality of the networks, the bus ID information that corresponds to each of the busses belonging to the network group after the network as been disconnected is different from each other in the network group after disconnection of the network.
To solve the problems, the invention described in claim 16 is that the information relay program of claim 14 or claim 15 is recorded so that it can be read by the computer.
Next, the preferred embodiments of the invention will be explained using
As shown in
Also, the network unit NU100 is formed by a plurality of nodes 100, 100B, 100C, 100D, 100E, . . . , to which node ID information that is unique on a global scale is given to each node, and which are serially connected by busses 10 having common bus ID information. Also, network NU100 is connected to network NU101 by portal 1A that is similarly connected by a bus 10. (In the explanation below, node 100 will be used representatively for nodes 100, 100B, 100C, 100D, 100E, etc.)
On the other hand, network unit NU101 is similarly formed by a plurality of nodes 101, 101B, 101C, 101D, 101E, . . . , to which node ID information that is unique on a global scale is given to each node, and which are serially connected by busses 10 having common bus ID information. Also, network NU101 is connected to network NU100 by portal 1B that is similarly connected by a bus 10. (In the explanation below, node 101 will be used representatively for nodes 101, 101B, 101C, 101D, 101E, etc.)
Furthermore, portal 1A and portal 1B are connected by a connection method in bridge 1 that complies with a standard that differs from the IEEE 1394 standard.
Next, the detailed construction of the portals 1A and 1B of the invention will be explained using
As shown in
In this construction, the control unit 51 executes the connection control process of the embodiment as will be described later.
Also, the memory 52 stores information of the route map described above, and node ID information that indicates the portal A which is one of the nodes of the network unit NU100. Moreover, this information is output as a memory signal Sm according to a request signal from the control unit 51. In the explanation below, generally, in order to distinguish node ID information that indicates nodes other than portals, node ID information that indicates a portal is simply called portal ID information.
Furthermore, by exchanging control information Sc with the interface 50, the control unit 51 executes the connection control process as will be described later.
Also, based on control information Sc from the control unit 51, the interface 50 outputs necessary information to the bus 10, and exchanges necessary information with the portal 1B (and network unit NU101) by way of the connection line PP that connects portal 1B and portal 1A.
Next, a plurality of networks N are connected together by way of the bridge 1 to form a single network group G, and the route maps that are stored in the portals of this embodiment after the network group G is formed will be explained in detail using the example shown in
In the construction described above, the value of the bus ID information that indicates bus 10 is taken to be ‘10’, the value of the bus ID information that indicates bus 11 is taken to be ‘11’, and the value of the bus ID information that indicates bus 12 is taken to be ‘12’. Moreover, the value of the portal ID information that indicates portal 1A is taken to be ‘1A’, the value of the portal ID information that indicates portal 1B is taken to be ‘1B’, and the value of the bus ID information that indicates portal ID information 2B is taken to be ‘2B’. Furthermore, the value of the network ID information that indicates network group G is taken to be ‘G’.
With the conditions described above, transfer-capable bus ID information that indicates other busses (for example bus 11 and bus 12 in
Here, the transfer-capable portal ID information and transmission source portal ID information of one item of route map information 20 will be explained in detail.
First, as a premise to the explanation, it is considered that in the network group G that is shown in
In this case, node ID information that indicates that the transfer destination is node 101, and bus ID information that indicates that bus 12 is the local bus directly connected to node 101 are added to that specified information as destination information. Also, specified information that is output from the node 100 together with that kind of destination information passes through the portals (portals 1B, 2A and 2B in
As shown in
Also, as shown in
Returning to the example shown in
When there is a plurality of busses that are capable of transferring information by way of portal 2A, the number of items of route map information having the value ‘2A/OO’ (‘OO’ is the value of the bus ID information that indicates a bus that is capable of transferring that information) that are included in the route map M1A equals the number of busses (the same is true below).
Another portal like portal 1B described above that forms a bridge (for example bridge 1) together with a portal (for example portal 1A) is called a ‘coportal’ of that portal. In other words, of the two portals that form a bridge, the other portal as seen from one portal is a coportal, and similarly the one portal as seen from the other portal is a coportal.
Similarly, the route map M1B inside portal 1B contains one item of route map information 20, network ID information having the value ‘G’, and local bus information 22 having the value ‘11’, where the value of the route map information 20 is ‘1A/10’. Here, the route map information 20 having the value ‘1A/10’ includes bus ID information that indicates the local bus of portal 1A, which is a coportal of portal 1B, and indicates that the value of the bus ID information that indicates the local bus of portal 1A that was sent from portal 1A is ‘10’.
Also, the route map M2A inside portal 2A contains one item of route map information 20, network ID information 21 having the value ‘G’, and local bus information 22 having the value ‘11’, where the value of the route map information 20 is ‘2B/12’. Here, the route map information 20 having the value ‘2B/12’ includes bus ID information that indicates the local bus of the portal 2B, which is a coportal of portal 2A, and indicates that the value of the bus ID information that indicates the local bus of portal 2B that was sent from the portal 2B is ‘12’.
Finally, the route map M2B inside the portal 2b contains two items of route map information 20, network ID information 21 having the value ‘G’, and local bus information 22 having the value ‘12’, where the values of the items of route map information 20 are ‘2A/11’ and ‘1B/10’, respectively. Here, the route map information 20 having the value ‘2A/11’ includes bus ID information that indicates the local bus of portal 2A, which is a coportal of portal 2B, and indicates that the value of the bus ID information that indicates the local bus of portal 2A that is sent from portal 2A is ‘11’. Similarly, route map information 20 having the value ‘1B/10’ includes bus ID information (the value of which is ‘10’ in
In this way each portal has bus ID information, which indicates a bus over which information can be transferred by way of a portal that is directly connected to that portal, as a route map M for that portal, so by reducing the transmission of unneeded information, it is possible for necessary information to reach the destination more efficiently and quickly.
Next, the connection control process that is executed by the control units 51 in the portal 1A to 2B for forming route maps M inside the portals 1A to 2B as shown in
The flowcharts shown in
First, the process for detecting a bus reset that occurs when a bus reset occurred in a network group that was newly formed will be explained using
When another network or network unit is connected to a network or network unit to form a new network group, the control units 51 in each of the portals that are included in that network group monitor whether or not there is a notification indicating that a bus reset occurred as a result of that connection (step S1).
Also, when it is confirmed that a bus reset occurred (step S1: YES), update of the route maps M inside the memories 52 that are included in the portals, as well as in the control units 51, begins (step S2). More specifically, first, portal ID information that indicates all of the other portals that are directly connected to the local bus that is directly connected to the portal, and network ID information 21 that indicates the network (or network unit) in which the other portals are included is obtained from all of the other portals (steps S3, S4).
Next, based on the obtained network ID information, the existence of a loop condition in the new network group is confirmed using the same method as the method of confirming the existence of a loop condition in the new network group used in the conventional IEEE 1394.1 standard.
Also, when it is confirmed that a loop condition does not exist in the network group (step S5: NO), then next, based on each portal ID information that was acquired in step S3, each portal generates new bus ID information that indicates the bus that was newly formed when that network group was formed (step S6).
Here, the process executed in step S6 for generating the bus ID information can specifically be any kind of processing algorithm as long as it clearly sets new bus ID information based on the portal ID information acquired in step 3, and is executed based on a processing algorithm that is unified for all of the portals inside the network group.
More specifically, the maximum value of the portal ID information acquired in step 3 that indicates the portals on the local bus can be used as is as the value of the bus ID information, or similarly, the minimum value of the portal ID information can be used as is as the value of that bus ID information. The method for setting other bus ID information will be described later.
After bus ID information that indicates the newly formed bus that was formed by the method described above has been set, then each portal uses the portal ID information that was acquired in step S3 and generates network ID information that indicates the newly formed network group using the same method as used in step S6 (step S7), after which, sends an update message to all of the other portals on the local bus that the portal is directly connected to for updating the contents of the route maps that are stored in each of the respective portals (step S8). Here, the update message that is sent in the processing of step S8 contains transfer-capable bus ID information that indicates busses over which it is possible for the portal that sent the update message to transfer information, and network ID information that indicates the network group in which the portal is included.
Also, after sending the necessary update message to the other portals (step S8), the portal determines whether or not the power to that portal is turned OFF (step S9), ad when the power is turned OFF (step S9: YES) that portal ends the processing shown in
On the other hand, in the judgment of step S5, when there is a loop condition inside the new network group (step S5: YES), by performing a message with the other portals included in the new network group, the portal performs a deletion process for deleting the loop condition by the same method as regulated by the conventional IEEE 1394.1 standard (step S25), and together with generating a bus reset (bus reset for updating each of the route maps) to accompany that loop deletion process, sends a notification of that to the other portals and nodes (step S26), then moves to step S10 described above.
Next, the update process that is executed after a bus reset is generated in a newly formed network group will be explained using
As shown in
Here, the contents of an update message that is sent from one portal to the coportal will be explained in detail. That update message contains the aforementioned route map information 20, network ID information that indicates the network (or network group) in which the portal is included, and local bus ID information 22 that indicates the local bus to which the portal is directly connected. Here, the route map information 20 is information that is sent for each of the other portals that are directly connected to the local bus to which the portal itself is directly connected, and more specifically, it comprises transfer-capable bus ID information for the other portals, and portal ID information that indicates each of the other portals.
In step S12, when the update message that was sent was not sent from a coportal (step S12: NO), then next the portal uses the method described below to determine whether or not there is a loop condition in the new network group (step S13).
To describe the method of detecting a loop condition that is executed in step S13 more specifically, first, the portal compares the bus ID information that is included in the received (step S11: YES) update message and the transfer-capable bus ID information that is given in the route map M that is stored inside that portal, and determines whether or not bus ID information having the same value is included in that information. When bus ID information having the same value is included in both, the bus that is indicated by the bus ID information having the same value exists on both connection terminal of the bridge that is formed by that portal and the corresponding coportal, so there is a possibility that a loop condition is included in the current network group. This is because with the method for setting new bus ID information of this invention (step S6 described above), it is not possible for two or more busses indicated by the same bus ID information to exist in that network group. From this, when it is determined that there is a possibility that a loop condition exists, by exchanging information with the other portal having as a local bus the bus that is indicated by that redundant bus ID information, that portal checks for certain whether or not the bus indicated by the same bus ID information exists at both connection terminals. When the bus indicated by the same bus ID information does exist, it is possible to determine that a loop condition occurs at a location inside the network group. On the other hand, when the bus indicated by the same bus ID information does not exist at both connection terminals, it is possible to determine that a loop condition does not exist in the network group.
Moreover, when a loop condition is actually detected (step S13: YES), the portal deletes that loop condition by the same process as in step S25 described above, and together with generating a bus reset to accompany that loop deletion process (bus reset for each rout map M update), sends a notification of that to the other portals and nodes (step S15), then moves to the processing of step S20 described later.
On the other hand, when a loop condition is not detected in step S13 (step S13: NO), the portal uses the network ID information 21 included in the update message to update the network ID information 21 that indicates that portal itself (step S16), then generates an update message for the coportal on the local bus to which bus ID information that indicates the newly formed bus is added and sends it to that coportal (step S17), after which it moves to the processing of step S20 to be described later.
On the other hand, in step S12, when the sent update message is from the corresponding coportal (step S12: YES), the portal uses the contents to update the route map information 20 and network ID information 21 in the route map M of that portal itself (step S18), then sends a notification message indicating that the information was updated to the other portals that are directly connected to the local bus to which that portal is connected (step S19). Also, the portal checks whether or not the power to the portal is turned OFF (step S20), and when the power is turned OFF (step S20: YES), that portal ends the processing shown in
Next, the connection control process of this embodiment that was explained using
In other words,
In
Also, as shown in
Furthermore, in the case of portal 3A, in the route map M3A that is stored in the memory 52 inside the portal 3A, the value of the portal ID information for portal 3B, which is a coportal with respect to portal 3A, is ‘3B’, and the value of the bus ID information that indicates that bus 14 is the local bus is ‘14’, so the value of the transfer-capable bus ID information is ‘14’, and the route map M3A comprises route map information 20, whose value for the transmission source portal ID information is ‘3B’, value for the network ID information is ‘H’, and value of the local bus ID information 22 is ‘13’.
With the conditions described above as a premise, the case of connecting a bridge 3 that includes portal 3B to the network group G to form a new network group GG will be explained using
First, the network unit that comprises bridge 3, busses 13 and 14 and node 102 is physically connected to bus 10, and just before the occurrence of the bus reset caused by that connection, the contents of the route maps M1A, M1B, M2A, M2B, M3A and M3B are as shown in
Also, after the bus reset caused by the connection occurs (see steps S1 and S2 in
Next, based on the acquired network ID information, the control units 51 inside portal 1A and portal 3B detect whether there is a loop condition (see step S5 in
Here, in the case shown in
More specifically, as shown in
Similar to this, based on the network ID information that corresponds to portal 1A and the network ID information that corresponds to portal 3B, the value ‘H’ of the network ID information that corresponds to portal 3B is used to temporarily set the new network ID information to ‘GG’. By doing this, the control units 51 of portal 1A and portal 3B update the network ID information 21 that indicates themselves to the value ‘GG’.
Next, portal 1A and portal 3B on the new bus 14 (the value of the bus ID information is ‘14’) send update messages that contain the route map information 20 that they currently store to all of the portals on the bus 14, which is the local bus (see step S8 in
More specifically, as shown in
In the explanation below, processing is explained for just portal 1A, however, the same processing is performed at the same time by portal 3B.
Next, after receiving the update message, portal 1A confirms that no loop condition exists inside the new bus structure itself (step S13 in
Also, in
Next, after the update message having these contents has been transferred to portal 1B, portal 1B uses that transferred update message to update the route map M1B that is currently stored in its memory 52, and transfers the new update message to all of the other portals (portal 2A in the case shown in
To explain these processes in more detail, first, as shown in
Next, based on route map information 20 whose value is ‘3B/13’ and that is included in the update message from portal 1A, portal 1B adds route map information 20 whose value is ‘3B/13’ to its route map M1B as new route map information 20 that did not exist before.
Furthermore, based on the network ID information whose value is ‘GG’ and that is included in the update message from portal 1A, portal 1B updates the network ID information 21 up to that point (the value was ‘G’ to the value ‘GG’.
Next, after update of its route map M1B, the control unit 51 of portal 1B transfers the transfer-capable bus ID information for the bus in portal 1B that has newly become capable of transfer, and the network ID information to portal 2A (the value of that portal ID information is ‘2A’) that is directly connected to bus 11, which is the local bus.
More specifically, as the information that is transferred, two items of transfer-capable ID information having the values ‘13’ and ‘14’ is transferred as the transfer-capable bus ID information for the bus in portal 1B that has newly become capable of transfer, and network ID information 21 whose value is ‘GG’ is transferred as the new network ID information 21.
Also, the portal 2A there received the transferred information checks itself whether or not there is a loop condition on the new bus structure (see step S13 in
In explaining this process in more detail, first, the portal 2A checks whether or not there is a loop condition (see step S13), and after updating the value of the corresponding network ID information 21, transfers the following information to portal 2B as an update message.
In other words, route map information 20 that includes transfer-capable bus ID information for portal 1B (two items of route map information 20 having the values ‘1/B/14’ and ‘1B/13’), route map information 20 that includes local bus ID information 22 for portal 2A (having the value ‘2A/11’), and new network ID information 21 (having the value ‘GG’) are transferred from portal 2A to portal 2B as an update message.
Also, the portal 2B receives this update message, and based on the information, updates its own route map M2B as follows (see step S18 in
That is, portal 2B uses the route map information 20 having the value ‘2A/11’ that was included in the update message to update the route map information 20 that it has stored up to this point having a value of ‘2A/11’ to a value ‘2A/11’, uses the route map information 20 having the value ‘1B/10’ that was included in the update message to update the route map information 20 having the value ‘1B/10’ that it stored up to that point to a value ‘1B/14’, and uses the network ID information 21 having the value ‘GG’ that was included in the update message to update the network ID information 21 having the value ‘G’ that it stored up to that point to a value of ‘GG’.
After update of all of the route maps M is completed by repeating the update process described above for a series of route maps M, in the state of the route maps M1A, M1B, M2A, M2B, M3A and M3B shown in
As was explained above, with the connection control process of this embodiment, bus ID information that corresponds to the bus 14 that is included in a newly formed network group GG is generated based on any one of the portal ID information that corresponds to a portal that is included in that network group GG, and the route maps M that correspond to each of the portals are updated using that generated bus ID information, so the bus ID information itself becomes unique inside that network group GG, redundancy of bus ID information that occurs when connecting a pair of networks can be deleted and the pair of networks can be connected smoothly.
Also, bus ID information for identifying bus 14 is generated based on the portal ID information (the value is ‘3B’) corresponding to portal 3B that is directly connected to that bus 14 to be identified, unique bus ID information can be easily and efficiently assigned in the new network group GG for the bus 14 inside that network group GG.
Furthermore, depending on whether or not bus ID information having the same contents is included in the route map M, a loop condition is detected and removed after the network group GG is formed, so a method is possible that is capable of accurately detecting a forbidden loop condition.
Moreover, of the portal ID information that corresponds to any one of the portals included in the network group GG, by using portal ID information having the maximum value to generate new bus ID information, for example, bus ID information can be generated and the route maps M can be updated by a simple method.
Also, the route maps M that correspond to the portals comprise route map information 20 that contains transfer-capable bus ID information and transmission source portal ID information, so the update process for updating the route maps M when forming the network group GG can be simplified, and a route map M is updated by adding, changing or deleting necessary route map information 20 when updating the route map M during network connection, so even though a bus reset may occur on one bus, the route map M can be updated without a bus reset occurring on another bus, and it is possible to prevent the network group GG from becoming unstable due to the propagation of a bus reset.
Here, the effect of having the route map information 20 described above comprise of transfer-capable bus ID information and transmission source portal ID information, and the reason for including transmission source portal ID information in one item of route map information 20 and not just transfer-capable bus ID information will be explained using
The reason for including transmission source portal ID information is that generally speaking, when there is no transmission source portal ID information, the update process for updating each route map M becomes complicated and time consuming.
In other words, in the connection control process of this embodiment, one item of route map information 20 comprises both transfer-capable bus ID information for the portal in which the route map M that includes the route map information 20 is stored, and transmission source portal ID information for that transfer-capable bus ID information, however, the minimum necessary information as route map information 20 for executing the connection control process of this embodiment is just the transfer-capable bus ID information. However, by constructing the route map information 20 with just that transfer-capable bus ID information, it becomes complicated to perform the update process of this embodiment of updating the route map M of the portal.
In other words, in the case where there is no transmission source portal ID information, for example, when portal 2A shown in
Therefore, by also including transmission source portal ID information as a pair, and not using just transfer-capable bus ID information as route map information 20, it is possible to update the bus ID information according to each transmission source portal ID information.
This point will be explained in more detail using
As shown in
In this case, when the network unit NU103 is connected to the network group GG, as seen from portal 1B there are two new busses in the place of bus 10 over which information can be transferred by way of portal 1A, and supposing that the values of the bus ID information that indicate the respective busses are ‘X’ and ‘Y’, respectively, portal 1B transfers the new message that was transferred from portal 1A to portal 2B and portal 3A by way of portal 2A and portal 3B, and executes the connection control process that was described above.
Focusing attention on portal 2B of the portals shown in
Also, from this, portal 2B updates the two items of route map information inside the route map M2B that it has stored up to this point (having the values ‘2A/11’ and ‘1B/10’) to three items of route map information 20 having new values (‘2A/11’ and ‘1B/X’), and adds one new item of route map information 20 having the value ‘1B/Y’. The route map information 20 having the value ‘3B/13’ is not updated.
Here, supposing that the route information 20 comprised only transfer-capable bus ID information, then in portal 2B, two items of new route map information 20 (having the values ‘X’ and ‘Y’) are added to the three items of route map information 20 (having the values ‘11’, ‘10’ and ‘13’) that were stored up to this point, and each of the items of route map information 20 are updated without adding the value ‘11’ that is already given in the route map information 20. As a result, the route map information 20 at this point is route map information having the values ‘11’, ‘10’, ‘13’, ‘X’ and ‘Y’, and after this, the complicated processing described below is performed and a process of deleting the route map information 20 having the value ‘10’ from the route map M2B must be performed.
In other words, more specifically, by comparing the route maps M before and after update, the portal 2B can recognize that the values of the bus ID information that indicates new busses that have become capable of transferring information by way of portal 2A are ‘X’ and ‘Y’, and that the value of the bus ID information that indicates a bus that continues to be capable of transferring information by way of portal 2A is ‘11’.
However, since the transmission source of the update message is not clear, it is not possible to recognize that bus 10 (the value of the bus ID information is ‘10’) which existed in the past as the local bus for portal 1A, and bus 13 (the value of the bus ID information is ‘13’), which existed as the local bus for portal 3A, continue to exist. Therefore, in order for portal 2B to recognize the current state that the bus having a bus ID information value of ‘10’ no longer exists, but that the bus having a bus ID information value of ‘13’ still continues to exist, an extremely complicated process must be prepared.
However, by configuring the route map information 20 so that it includes both transfer-capable bus ID information and the transmission source portal ID information as in the case of this embodiment, then as shown in
Also, in portal 2B, by comparing that ‘in accordance to the present update message route information 20 will not be received from portal 3B’ with ‘route map information 20 from among the route map information that portal 2B had up until this point that was received from portal 3B’, portal 2B can detect that the bus ‘13’ that indicates bus ID information having the value ‘13’ and that is capable of transferring information by way of portal 3B (and portal 3A, which is a coportal of portal 3B) still exists. This is because, when the bus structure on the side of portal 3A has changed as seen from bus 11, portal 3B always sends an update to each portal, however, based on this, the fact that an update message is not sent from portal 3B device that the configuration of busses that are capable of transferring information by of portal 3B has not yet changed.
In this way, by including the transmission source portal ID information and not just transfer-capable bus ID information in one item of route map information 20, it is possible to easily recognize without having to use a complicated processing algorithm that the bus 10 that existed in the past as the local bus for portal 1A no longer exists, and that the bus 13 that existed in the past as the local bus for portal 3A continues to exist.
Furthermore, even when bridge 1 (see
After each of the above processing is finished, then similarly processing of the other update message that is received from portal 1B (or portal 1A) after that is performed with the flow:
Therefore, even when update messages collide in the same bridge as described above, it is possible to quickly update the route maps M while avoiding various complicated processing due to the collision.
In the embodiment described above, a method of using the maximum value of the portal ID information values that indicate the portals on the local bus acquired beforehand as is as the bus ID information, or similarly a method of using the minimum value of the portal ID information values as is as the bus ID information were used as the method for setting new bus ID information, however, besides these methods other methods could be used, for example:
(a) A method of comparing the size of bytes one byte at a time from the MSB (Most Significant Bit) side of the portal ID information that indicates the local bus acquired beforehand, and using the maximum byte value or minimum byte value from this comparison as the value of the new bus ID information.
(b) A method of comparing the size of bytes one byte at a time from the LSB (Least Significant Bit) side of the portal ID information that indicates the local bus acquired beforehand, and using the maximum byte value or minimum byte value from this comparison as the value of the new bus ID information.
(c) A method of defining manufacturer ID information for identifying the manufacturer of the portal, for example, when the portal ID information (node ID information) is 64 bits, defining 6 bits from the MSB side, and defining the remaining bits after that portion as unique ID information for each of the equipment manufactured by the manufacturer, then for the remaining bits after the manufacturer ID information, comparing the size of the byte values one byte at a time from the MSB side or LSB side, and using the maximum byte value or minimum byte value from that comparison as the new bus ID information (in the case of this method, when the same portal exists for all of the bit values other than the manufacturer ID information, comparison is performed of the byte value one byte at a time from the MSB side or LSB side of the manufacturer ID information, and the maximum or minimum byte value from that comparison is used to together with the result of the comparison of the bits other than the manufacturer ID information as the new bus ID information).
By using any of these methods (a) thru (c), it is possible to generate bus ID information by a simple method and to update route map data M.
Furthermore, in the embodiment described above, the case was explained in which transfer-capable bus ID information is included in the route map information 20, however, instead of this, ‘node ID information’, which indicates a node by which a portal that stores the information can transfer information, can be include as route map information. In this case, the node ID information itself is included as route map information, so it is possible to recognize the location in a network or network group where the target node is located without having to used a complicated algorithm for acquiring node ID information that indicates each of the nodes in a network or network group.
Also, in the embodiment described above, processing for the case in which a new network group was formed by connecting a pair of network units by a bridge was explained, however, besides this, the invention can also be applied to the process of updating route maps M after a bus reset of the original network group in the case in which one or a plurality of network units is disconnected from an existing network group.
Here, basically a process similar to the process shown by the flowchart that was explained using
Also, the route map M1A that is stored in portal 1A is updated using the newly set bus ID information and transferred to portal 1B, after which the route map M1B in portal 1B is updated and transferred to other portals, and the update process is repeated.
Here, after a bus reset occurs, portal 1A receives an update message for the route map M1A from another portal that is supposed to be on the bus 14, which is the local bus, however, when the bridge 3 is disconnected from the network group GG that is shown in
Furthermore, in the embodiment described above, the case was explained in which the bus ID information that indicates each bus was set by using the portal ID information that indicates the portals connected to that bus, and then the route map M was updated, however, besides this, construction can be such that the bus ID information that indicates each of the busses in a newly formed network group can be set by the user for each bus so that values of mutual bus ID information are unique in that network group. In this case, at any node, it is necessary to have an input unit for inputting each bus ID information.
Furthermore, the present invention can be applied not only to busses that comply with the IEEE 1394 standard described above, but can also be widely applied to networks that use busses that can connect personal computers and peripheral devices, or that can connect audio/visual equipment, or can also be applied to networks such as a so-called wireless LAN (Local Area Network).
Also, the programs that correspond to the flowcharts shown in
Number | Date | Country | Kind |
---|---|---|---|
2005-046656 | Feb 2005 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2006/303117 | 2/22/2006 | WO | 00 | 11/8/2007 |