1. Field of the Invention
The present invention relates to a network relay device that carries out data transmission to and from an opposite device, so as to relay data in a network.
2. Description of the Related Art
A switch as one of network relay devices may be designed to have the function of link aggregation, which connects with another switch by multiple links (multiple physical lines) and aggregates the multiple links as one logic link.
One known example of the link aggregation is disclosed in Japanese Patent Laid-Open Gazette No. 2002-26909.
The bandwidth of the logic link is the total of the individual bandwidths of the aggregated multiple links. The link aggregation thus advantageously expands the bandwidth. Even in the case of the occurrence of a trouble or failure in some of the aggregated multiple links, the link aggregation adopts a degenerate mode to continue communication via the remaining normal links and accordingly assures the redundancy.
This prior art technique, however, has the following problems with regard to the redundancy of the link aggregation.
In the case of the occurrence of a trouble in some of the aggregated multiple links, the degenerate mode establishes communication by only normal links and thus undesirably reduces the total bandwidth by the bandwidth of the link with the trouble. This prior art technique continues communication with the undesirable reduced bandwidth, while assuring the redundancy.
Another possible measure to assure the redundancy in the case of the occurrence of a trouble changes the communication path of the network to bypass the link with the trouble.
Application of this measure to the technique of link aggregation establishes two or more link aggregations in one switch and specifies one of the multiple link aggregations as active to establish communication via aggregated multiple links of the active link aggregation. In response to the occurrence of a trouble or failure in some of the aggregated multiple links in the currently active link aggregation, the method of this measure stops the currently active link aggregation and makes a standby link aggregation active.
In the case where a trouble or failure arises in some of the aggregated multiple links in the currently active link aggregation, restraint of the degenerate mode and stop of data transmission via the aggregated links are required to effect a switchover to the standby link aggregation.
This problems is not restricted to the switches as one of the network relay devices but is also found in other network relay devices having the function of link aggregation, for example, routers.
The object of the invention is thus to eliminate the drawbacks of the prior art technique and provide a technique of restraining a degenerate mode and stopping data transmission via aggregated multiple links, in the case of the occurrence of a trouble or failure in at least one of the aggregated multiple links.
In order to attain at least part of the above and the other related objects, the present invention is directed to a first network relay device that carries out data transmission to and from an opposite device to relay data in a network. The first network relay device includes: multiple ports connecting with corresponding multiple ports of the opposite device via multiple links; and a link aggregation control module that aggregates the multiple links to establish a link aggregation, which is regarded as one logic link, and carries out transmission of a control frame signal including a synchronization bit, as well as data transmission, at each port via the link aggregation. In response to detection of occurrence of a trouble in at least one of the aggregated multiple links, the link aggregation control module causes a port that connects with a normal link without the trouble among the multiple ports to stop the data transmission and send the control frame signal including the synchronization bit set equal to a first value. Here the first value functions to stop the data transmission at a corresponding port of the opposite device connecting with the normal link.
In response to the occurrence of a trouble or failure in at least one of the aggregated multiple links, the first network relay device of the invention causes the port connecting with the normal link without the trouble to stop the data transmission and to send the control frame signal including the synchronization bit set equal to the first value. The corresponding port of the opposite device stops the data transmission, in response to reception of the synchronization bit equal to the first value.
The first network relay device of the invention thus effectively restrains the degenerate mode and stops the data transmission via the aggregated multiple links, in the case of the occurrence of a trouble or failure in at least one of the aggregated multiple links.
In one preferable embodiment of the first network relay device of the invention, the link aggregation control module causes at least the port connecting with the normal link to send the control frame signal including the synchronization bit set equal to a second value, which is different from the first value, in the case of recovery of the at least one link from the trouble. Here the second value functions to start the data transmission at the corresponding port of the opposite device connecting with the normal link.
The first network relay device of this embodiment causes at least the port connecting with the normal link to send the control frame signal including the synchronization bit set equal to the second value. The corresponding port of the opposite device thus resumes the data transmission, in response to reception of the synchronization bit equal to the second value.
In another preferable embodiment of the first network relay device of the invention, the link aggregation control module causes at least the port connecting with the normal link to send the control frame signal including the synchronization bit set equal to a second value, which is different from the first value, when the trouble in the at least one link has been fixed and when all the multiple ports have received the control frame signal including the synchronization bit, which is set equal to a value representing a start standby state of the data transmission, from respective corresponding ports of the opposite device. Here the second value functions to start the data transmission at the corresponding port of the opposite device connecting with the normal link.
In the case where all the multiple ports have received the control frame signal including the synchronization bit set equal to the value representing the start standby state of the data transmission from the respective corresponding ports of the opposite device, it is confirmed that no trouble or failure arises in the opposite device and that all the corresponding ports of the opposite device can start the data transmission any time. The first network relay device of this arrangement causes the corresponding port of the opposite device to resume the data transmission, after such confirmation.
In the first network relay device of the above embodiment, it is preferable that the link aggregation control module starts the data transmission at the port that has sent the control frame signal including the synchronization bit set equal to the second value, in response to reception of the control frame signal including the synchronization bit, which is set equal to a value representing either of a start standby state and a start of the data transmission, from the corresponding port of the opposite device.
This arrangement enables the first network relay device to resume the data transmission, simultaneously with the opposite device.
The invention is also directed to a second network relay device that carries out data transmission to and from an opposite device to relay data in a network. The second network relay device includes: multiple ports connecting with corresponding multiple ports of the opposite device via multiple links; and a link aggregation control module that aggregates the multiple links to establish a link aggregation, which is regarded as one logic link, and carries out transmission of a control frame signal including a synchronization bit, as well as data transmission, at each port via the link aggregation.
The link aggregation control module allows each of the multiple ports to take one of first through fourth states as an operating state. The link aggregation control module causes the port set in the first state to carry out data transmission, as well as transmission of the control frame signal, where the control frame signal sent from the port in the first state includes the synchronization bit set equal to a value ‘1’. The link aggregation control module causes the port set in either of the second state and the third state to carry out transmission of only the control frame signal, where the control frame signal sent from the port in either of the second state and the third state includes the synchronization bit set equal to a value ‘0’. The link aggregation control module causes the port set in the fourth state to carry out transmission of only the control frame signal, where the control frame signal sent from the port in the fourth state includes the synchronization bit set equal to the value ‘1’.
The link aggregation control module allows for a transition of the operating state from the first state to the second state, in response to detection of occurrence of a trouble in a link other than a link connecting with the port in the first state, among the aggregated multiple links. The link aggregation control module allows for a transition of the operating state from the second state to the third state, when the port in the second state receives the control frame signal from a corresponding port of the opposite device. The link aggregation control module allows for a transition of the operating state from the third state to the fourth state, in response to recovery of the link from the trouble. The link aggregation control module allows for a transition of the operating state from the fourth state to the first state, when the port in the fourth state receives the control frame signal including the synchronization bit set equal to 1 from a corresponding port of the opposite device. The link aggregation control module allows for a transition of the operating state from the first state to the fourth state, when the port in the first state receives the control frame signal including the synchronization bit set equal to 0 from a corresponding port of the opposite device.
In response to the occurrence of a trouble or failure in at least one of the aggregated multiple links, the second network relay device of the invention causes the port connecting with the normal link without the trouble to change the operating state from the first state to the second state. The port in the second state stops the data transmission and sends the control frame signal including the synchronization bit set equal to 0 to the opposite device, in order to stop the data transmission at the corresponding port of the opposite device. The second network relay device of the invention thus effectively restrains the degenerate mode and stops the data transmission via the aggregated multiple links, in the case of the occurrence of a trouble or failure in at least one of the aggregated multiple links.
In one preferable embodiment of the second network relay device of the invention, the link aggregation control module allows for the transition of the operating state from the third state to the fourth state, when the trouble has been fixed in the link and when all the multiple ports have received the control frame signal including the synchronization bit set equal to 1 from respective corresponding ports of the opposite device.
One of the conditions for the transition of the operating state from the third state to the fourth state is that all the multiple ports have received the synchronization bit set equal to 1. The operating state is changed from the third state to the fourth state, after confirmation that the operating state is in an ‘aggregation standby’ state (equivalent to the fourth state) at all the ports of the opposite device, which is in conformity with IEEE (Institute of Electrical and Electronic Engineers) 802.3. This arrangement starts data transmission after confirmation of successful aggregation of all multiple target links, thus ensuring connection with a desired bandwidth.
In any of the network relay devices of the invention, it is preferable that the opposite device is a network relay device in conformity with IEEE 802.3.
The network relay device in conformity with IEEE 802.3 is designed to stop data transmission via the link connecting with a port, which receives the synchronization bit equal to 0. Setting 0 to the first value thus stops the data transmission at the corresponding port of the opposite device.
The network relay device of the invention may be constructed as a switch or as a router.
The technique of the invention is not restricted to the network relay device described above but is also applicable to a control method of such a network relay device. The invention may be actualized by diversity of other applications, for example, computer programs to attain the network relay device and its control method, recording media in which such computer programs are recorded, and data signals that include such computer programs and are embodied in carrier waves.
One mode of carrying out the invention is discussed below as a preferred embodiment in the following sequence:
B. Connection
The function of the link aggregation controller 112 establishes link aggregations LA1 and LA2 between the switch 100 and the switch 200 and between the switch 100 and the switch 300. The three links α through γ connecting the switch 100 with the switch 200 are thus aggregated to be regarded as one logic link. Similarly the three links δthrough ξ connecting the switch 100 with the switch 300 are aggregated to be regarded as one logic link. The bandwidth of each logic link is the total of the bandwidths of the aggregated three links, as described previously. The arrangement of this embodiment thus desirably ensures the expanded bandwidth.
There are two link aggregations LA1 and LA2 established between the switch 100 and the switches 200 and 300. For example, the link aggregation LA1 established between the switches 100 and 200 may be used active, while the link aggregation LA2 established between the switches 100 and 300 may be used standby. This assures the redundancy of the network.
C. Drawbacks of Prior Art and Principles of Embodiment
In the case of the occurrence of any trouble or failure in one link γ among the aggregated three links α through γ in the active link aggregation LA1, the prior art technique continues communication in a degenerate mode via the remaining two normal links α and β, as described previously. In the degenerate mode, the decrease in number of working links from three to two naturally reduces the total bandwidth of the logic link to 2/3. The prior art technique adopts the degenerate mode in response to a trouble or failure arising in one of the aggregated links in the active link aggregation LA1 and undesirably continues communication via the link aggregation LA1 of the reduced bandwidth without a switchover to the standby link aggregation LA2. The switchover to the standby link aggregation LA2 is effectuated only when all the links in the active link aggregation LA1 are disabled.
In order to eliminate such drawback of the prior art, the technique of this embodiment stops data transmission via all the aggregated links and restrains the degenerate mode, in response to a trouble or failure arising in one of the aggregated links in the active link aggregation LA1. This allows for the switchover to the standby link aggregation LA2. Any of spanning tree algorithms and various routing protocols may be applied to the switchover to the standby link aggregation.
The switch 100 of this embodiment is designed to stop data transmission via all the aggregated links and restrain the degenerate mode, in response to a trouble or failure arising in one of the aggregated links in the active link aggregation LA1. The switch 200 as the opposite device is, however, the conventional switch in conformity with IEEE 802.3. The essential issue is thus how the switch 100 of the embodiment enables the conventional switch 200 as the opposite device to stop data transmission via all the aggregated links and restrain the degenerate mode.
In general, each pair of connecting ports in the two switches receive and send control frame signals via the link at regular intervals. The control frame signal includes a value ‘0’ or ‘1’ as a synchronization bit.
In the conventional switch in conformity with IEEE 802.3, when a port receives the synchronization bit ‘0’, data transmission stops via the link connecting with the port. By taking advantage of this characteristic, the switch 100 of the embodiment is designed to send the synchronization bit ‘0’ to the switch 200 as the opposite device via normal links, in response to a trouble or failure arising in one of the aggregated links in the active link aggregation LA1, while stopping data transmission via all the aggregated links in the switch 100. In response to reception of the synchronization bit ‘0’, the switch 200 as the opposite device stops data transmission via all the aggregated links and restrains the degenerate mode.
D. Operations of Embodiment
In the switch 100 of this embodiment, the port processor 114 measures communication speeds of packets sent from and received by the respective ports, detects either full-duplex transmission or half-duplex transmission, and sends the results of the measurement and detection to the link aggregation controller 112. The link aggregation controller 112 establishes link aggregation as described above and manages the operating states of the respective ports involved in the link aggregation, based on the results of the measurement and detection sent from the port processor 114.
In the conventional switch 200 in conformity with IEEE 802.3, on the other hand, each port takes one of three available states shown in
In the situation of
In the conventional switch 200 as the opposite device, the ports D through F connecting with the links α through γ respectively take the ‘aggregation’ state as the operating state. The respective ports D through F in the ‘aggregation’ state accordingly carry out data transmission, as well as transmission of the control frame signals, via the links α through γ as shown in
In
In the situation of
In the situation of
In the switch 100 of the embodiment, the port processor 114 measures the communication speeds of packets sent from and received by the respective ports and sends the results of the measurement to the link aggregation controller 112. The link aggregation controller 112 analyzes the received results of the measurement and detects the occurrence of a trouble or failure in the link γ connecting with the port C, for example, when the observed communication speed of packets at the port C is significantly lower than the other ports A and B. The occurrence of a trouble or failure may be detected according to another criterion, for example, detection of half-duplex transmission or full-duplex transmission. The criterion to detect the occurrence of a trouble or failure is not restricted to the results of such measurement or detection sent from the port processor 114 but may be the results of such measurement or detection by the link aggregation controller 112 or the results of such measurement or detection sent from another processor.
In response to detection of the occurrence of a trouble or failure in the link γ, the link aggregation controller 112 changes the operating state from the ‘aggregation’ state to the ‘aggregation ready’ state as shown in
In the situation of
In the conventional switch 200 as the opposite device, the ports D and E receive the control frame signals, which are sent from the switch 100 via the links α and β and include the synchronization bit ‘0’. In response to reception of the synchronization bit ‘0’ included in the control frame signals, the operating state changes from the ‘aggregation’ state to the ‘aggregation standby’ state at the ports D and E as shown in
In response to reception of the control frame signals sent from the switch 200 via the links α and β, the ports A and B in the switch 100 change the operating state from the ‘aggregation ready’ state to the ‘aggregation preparation standby’ state as shown in
The arrangement of the switch 100 accordingly stops data transmission at the ports D and E in the conventional switch 200 as the opposite device, as well as data transmission at the ports A and B in the switch 100. Namely the arrangement stops data transmission via all the aggregated normal links α and β in the link aggregation LA1 and restrains the degenerate mode as shown in
This disables all the links included in the active link aggregation LA1 and allows for a switchover from the active link aggregation LA1 to the standby link aggregation L2, thus effectively assuring the redundancy of the network.
When the trouble is fixed in the link γ, the link aggregation controller 112 in the switch 100 of the embodiment detects recovery from the trouble in the link γ, based on the results of the measurement or detection sent from the port processor 114. Even after detection of the recovery from the trouble in the link γ, the ports A and B are kept in the ‘aggregation preparation standby’ state unless all the ports A through C receive the synchronization bit ‘1’, as described above.
In response to recovery from the trouble in the link γ, the operating state changes to the ‘aggregation ready’ state at the port C in the switch 100 of the embodiment connecting with the link γ. The port C in the ‘aggregation ready’ state carries out transmission of only the control frame signal via the link γ and sends the control frame signal including the synchronization bit ‘0’, as shown in
In response to reception of the control frame signal sent from the switch 200 via the link γ, the operating state changes from the ‘aggregation ready’ state to the ‘aggregation preparation standby’ state at the port C in the switch 100. In the switch 100 of the embodiment, all the ports A through C involved in the link aggregation LA1 are accordingly set in the ‘aggregation preparation standby’ state as the operating state.
In response to reception of the control frame signal sent from the switch 100 via the link γ, the operating state changes from the ‘aggregation ready’ state to the ‘aggregation standby’ state at the port F in the conventional switch 200 as the opposite device. The port F in the ‘aggregation standby’ state continuously carries out transmission of only the control frame signal via the link γ but sends the control frame signal including the synchronization bit ‘1’.
In the conventional switch 200, the ports D and E are kept in the ‘aggregation standby’ state and send the control frame signals including the synchronization bit ‘1’ via the links α and β. The start of transmission of the synchronization bit ‘1’ from the port F thus enables all the ports A through C in the switch 100 connecting with the links α through γ to receive the synchronization bit ‘1’.
The value ‘1’ of the synchronization bit in this state is equivalent to the ‘value representing the start standby state of data transmission’ in the claims.
The operating state accordingly changes from the ‘aggregation preparation standby’ state to the ‘aggregation standby’ state at the ports A through C. These ports A through C continuously carry out transmission of only the control frame signal via the links α through γ but send the control frame signals including the synchronization bit ‘1’.
In the conventional switch 200 as the opposite device, the ports D through F receive the control frame signals, which are sent from the switch 100 via the links α through γ and include the synchronization bit ‘1’. In response to reception of the synchronization bit ‘1’ included in the control frame signals, the operating state changes from the ‘aggregation standby’ state to the ‘aggregation’ state at the ports D through F as shown in
In the switch 100 of the embodiment, similarly the ports A through C receive the control frame signals, which are sent from the switch 200 via the links α through γ and include the synchronization bit ‘1’.
The value ‘1’ of the synchronization bit in this state is equivalent to the ‘value representing either of the start standby state and the start of data transmission’ in the claims.
In response to reception of the synchronization bit ‘1’, the operating state changes from the ‘aggregation standby’ state to the ‘aggregation’ state at the ports A through C as shown in
The start of data transmission at the ports A through C in the switch 100 initiates data transmission at the ports D through F in the conventional switch 200 as the opposite device. Data transmission via all the aggregated links α through γ in the link aggregation LA1 accordingly resumes to reactivate the link aggregation LA1, as in the situation of
In the state transition diagram of
E. Effects of Embodiment
As described above, in response to detection of the occurrence of a trouble or failure in at least one of the aggregated multiple links in the active link aggregation LA1, the switch 100 of the embodiment changes the operating state from the ‘aggregation’ state to the ‘aggregation ready’ state and stops data transmission at the ports connecting with the normal links. The switch 100 of the embodiment simultaneously sends the control frame signal including the synchronization bit ‘0’ to the opposite device to stop data transmission at the ports of the opposite device connecting with the normal links. This arrangement effectively restrains the degenerate mode and stops data transmission via all the aggregated links in the active link aggregation LA1. Namely all the links are disabled in the active link aggregation LA1. This allows for a switchover from the active link aggregation LA1 to the standby link aggregation LA2, thus effectively ensuring the redundancy of the network.
In the switch 100 of the embodiment, the conditions of changing the operating state from the ‘aggregation preparation standby’ state to the ‘aggregation standby’ state are that the trouble has been fixed and that all the ports have received the synchronization bit ‘1’ as shown in
F. Modifications
The embodiment discussed above is to be considered in all aspects as illustrative and not restrictive. There may be many modifications, changes, and alterations without departing from the scope or spirit of the main characteristics of the present invention.
In the embodiment discussed above, the conditions of changing the operating state from the ‘aggregation preparation standby’ state to the ‘aggregation standby’ state are that the trouble has been fixed and that all the ports have received the synchronization bit ‘1’ as shown in
Transition of the operating state to the ‘aggregation standby’ state after confirmation of the recovery from the trouble does not cause any significant problem, as long as no further failure arises in the opposite device.
Although each link aggregation consists of three links in the structure of the above embodiment, the link aggregation may consist of only two links or four or a greater number of links.
The above embodiment regards application of the invention to the switch as one of network relay devices. The technique of the invention is naturally not restricted to the switches but may be applicable to other network relay devices like routers.
The above embodiment regards the relay on the second layer (data link layer) in the OSI reference model. The technique of the invention is, however, not restricted to the relay on the second layer (data link layer) but may be applied to relay on another layer, for example, on a third layer (network layer).
Finally, the present application claims the priority based on Japanese Patent Application No. 2004-163389 filed on Jun. 1, 2004, which is herein incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2004-163389(P) | Jun 2004 | JP | national |