The present invention is related to a bridge and method for ensuring the proper propagation of a cut within a bridged network (e.g., Ethernet-based bridged network).
Today it is possible for an individual/group to make suggested change(s), deletion(s) and/or addition(s) to a networking standard. For instance, the individual/group could request that a change be made to a particular feature in order to enhance the networking standard. One such change that can enhance a spanning tree protocol which is specified in several networking standards happens to be the subject of the present invention.
A bridge (e.g., IEEE 802.1 bridge) and a method are described herein which ensure the proper propagation of a “cut” within a bridged network (e.g., Ethernet-based bridged network). In one embodiment, the bridge has a port role transitions (PRT) state machine which uses a first condition represented as (proposed && !agree) to transit to an X_PROPOSED state and a second condition represented as (!proposed && allSynced && !agree) ∥ (proposed && agree) to transit to an X_AGREED state (where X represents “ROOT”, “ALTERNATE” and “MASTER”). The first condition and the second condition are both defined such that the X_PROPOSED state is always entered before the X_AGREED state which ensures the proper propagation of a “cut” within the bridged network.
A more complete understanding of the present invention may be obtained by reference to the following detailed description when taken in conjunction with the accompanying drawings wherein:
The present solution basically ensures the proper propagation of a “cut” within a bridged network (e.g., Ethernet-based bridged network) where data loops are prevented by the operation of a spanning tree protocol, such as the ones specified and standardized by the IEEE 802.1 Working Group. These spanning tree protocols include the Rapid Spanning Tree Protocol (RSTP, as specified and standardized in IEEE Std. 802.1D-2004), the Multiple Spanning Tree Protocol (MSTP, as specified and standardized in IEEE Std. 802.1Q-2005) as well as any other protocol built on and/or expanding the use and scope of the RSTP and/or the MSTP. The contents of these standards are incorporated by reference herein.
The bridge 101a sets its downstream ports 107a and 107b to a discarding (blocking) state as shown in
Finally, bridges 101b and 101c set their downstream ports 109a/109b and 111a/111b to a discarding (blocking) state and then the “cut” is propagated to downstream bridges 101d, 101e and 101f which happen to be the leaves of the spanning tree as shown in
As can be seen, the “cut” requires that some ports of a bridge transit to the discarding state, where they block data traffic, thus preventing the formation of data loops behind such ports. To ensure that data loops are not created in between this bridge and its downstream bridges, and between these downstream bridges and their downstream bridges, the “cut” is propagated on a spanning tree through the bridges until it reaches the leaves of the spanning tree. It should be appreciated that the “cut” would also be initiated if an old bridge was removed from the bridge network 100.
To properly implement the “cut”, the bridges 101a, 101b . . . 101f and 102 need to have their respective port role transitions (PRT) state machines 114 enter and execute various states in a specific sequence. However, the existing RSTP and MSTP specifications do not explicitly require such a sequence and even expect that these states can be enterable and executable in any order which is problematical. This problem is discussed in detail below with respect to three different port role transitions which are implemented within the PRT state machine 114 as shown in FIGS. 2-4 (PRIOR ART).
Referring to
As indicated above, the traditional root port role transitions 202 are not the only port role transitions implemented within the PRT state machine 114 which is relevant to this discussion. The PRT state machine 114 also implements the traditional alternate and backup port role transitions 302 which are shown in
Alternatively, the PRT state machine 114 may be configured in accordance with the MSTP specified in IEEE Std 802.1Q-2005. In this case, the PRT state machine 114 would have root port role transitions which are similar to the RSTP root port role transitions 202. In addition, the PRT state machine 114 would have alternate and backup port role transitions which are similar to the RSTP alternate and backup port role transitions 302. Moreover, the PRT state machine 114 would have master port role transitions 402 which are used when MSTP is implemented but are not used when RSTP is implemented. The master port role transitions 402 (specified in IEEE Std. 802.1Q-2005) are described next with respect to
To properly propagate the “cut”, it is well known that the X_PROPOSED state 210, 310 and 410 needs to be entered and executed before the X_AGREED state 214, 314 and 414 where X represents “ROOT”, “ALTERNATE” and “MASTER”. However, the existing RSTP and MSTP standards do not explicitly require such a sequence and even expect that the X_PROPOSED state 210, 310 and 410 and the X_AGREED state 214, 314 and 414 could be enterable and executable in an arbitrary order. For instance, the RSTP specified in IEEE Std 802.1D-2004 states the following in section 17.16 “[w]here two or more exit conditions with the same level of precedence become TRUE simultaneously, the choice as to which exit condition causes the state transition to take place is arbitrary”. This is problematical.
The traditional solution is not good because it is not deterministic. For instance, simulations have exhibited the fact that the following variables can at. the same time be set as follows:
In this situation, anyone of two possible scenarios can occur: (1) the X_PROPOSED state 210, 310 and 410 can be entered and executed before the X_AGREED state 214, 314 and 414 (which is correct); or (2) the X_AGREED state 214, 314 and 414 can be entered and executed before the X_PROPOSED state 210, 310 and 410 (which is not correct). Either one of these scenarios can occur because the first condition 208, 308 and 408 and the second condition 212, 312 and 412 each can have a boolean value of TRUE at the same time. How each of these scenarios can arbitrarily occur is discussed in detail next.
In the first scenario, the first condition 208, 308 and 408 represented as (proposed && !agree) can be satisfied first because the variable “proposed” is TRUE and the variable “agree” is FALSE. If this happens, then the X_PROPOSED state 210, 310 and 410 is entered and the following occurs:
In the second scenario, the second condition 212, 312 and 412 represented as (allsynced && !agree) ∥ (proposed && agree) is satisfied first because the variable “allsynced” is TRUE and the variable “agree” is FALSE. If this happens, then the X_AGREED state 214, 314 and 414 is entered and the following occurs:
In the event, the X_AGREED state 214, 314 and 414 happened to be entered first then data loops could be created which are not desired in the bridged network 100. Because, if data loops are created then this could result in frames (e.g., Ethernet frames) that not only loop but proliferate within the bridged network 100. And, this can lead to a severe loss of available bandwidth in the bridged network 100 such that the bridged network 100 can no longer serve its purpose. Accordingly, there is a need for a solution that can ensure that the X_PROPOSED state 210, 310 and 410 is always entered and executed before the X_AGREED state 214, 314 and 414. This need is satisfied by a PRT state machine 114′ that is configured in accordance with the present invention.
The present invention addresses the problem with the traditional PRT state machine 114 by modifying the second conditions 212, 312 and 412 where variables are inserted whose placement and evaluation at execution time ensure that the X_PROPOSED state 210, 310 and 410 and the X_AGREED state 214, 314 and 414 are entered and executed in the correct sequence. Basically, the present solution involves the changing of the second condition 212, 312 and 412 from (allSynced && !agree) ∥ (proposed && agree) to (!proposed && allSynced && !agree) ∥ (proposed && agree). This change can be seen in
The new PRT state machine 114′ is configured such that the X_PROPOSED state 510, 610 and 710 needs to be entered and executed before the X_AGREED state 514, 614 and 714. To test the new solution, the aforementioned example is used again where the variables are set as follows:
In this situation, there is just one possible scenario that can occur and that is where the X_PROPOSED state 510, 610 and 710 is always entered and executed before the X_AGREED state 514, 614 and 714. It is no longer possible to have a scenario where the X_AGREED state 514, 614 and 714 can be entered and executed before the X_PROPOSED state 510, 610 and 710. This happens because the first condition 508, 608 and 708 represented as (proposed && !agree) will always be satisfied first because the variable “proposed” is TRUE and the variable “agree” is FALSE. The second condition 512, 612 and 712 represented as (!proposed && allSynced && !agree) ∥ (proposed && agree) will not be satisfied first because of the addition of the new condition “!proposed”. The new condition “!proposed” can not be evaluated to TRUE in this scenario because the logical negation of the variable “proposed” is FALSE. As a result, the X_PROPOSED state 510, 610 and 710 is always entered first and the following occurs:
It should be appreciated that all of the conditions 206a . . . 206g, 208, 212, 306a . . . 306d, 308, 312, 406a . . . 406g, 408, 412, 506a . . . 506g, 508, 512, 606a . . . 606d, 608, 612, 706a . . . 706g, 708 and 712 are typically implicitly completed/post fixed with “&& selected && !updtinfo” where the “selected” and “updtinfo” are two variables.
Following are some additional features and advantages of the present solution:
Although one embodiment of the present invention has been illustrated in the accompanying Drawings and described in the foregoing Detailed Description, it should be understood that the present invention is not limited to the embodiment disclosed, but is capable of numerous rearrangements, modifications and substitutions without departing from the spirit of the invention as set forth and defined by the following claims.
Number | Name | Date | Kind |
---|---|---|---|
6262977 | Seaman et al. | Jul 2001 | B1 |
6330229 | Jain et al. | Dec 2001 | B1 |
6771610 | Seaman | Aug 2004 | B1 |
7324461 | Rouyer et al. | Jan 2008 | B2 |
20030065546 | Gorur et al. | Apr 2003 | A1 |
Number | Date | Country | |
---|---|---|---|
20070226485 A1 | Sep 2007 | US |