Disclosed are methods and apparatus for restarting a first network device having a plurality of ports for receiving and transmitting layer 2 data. The first network device belongs to a network of network devices. When a restart of at least a portion of the first network device is imminent whereby the restarting network device portion can no longer alter a spanning tree protocol (stp) state of one or more of the ports and such ports that remain in a fixed state during the restart are referred to as restarting ports, a current state (such as forwarding) of each restarting port is maintained during the restart under predefined conditions. During the restart, each of the restarting ports of the restarting network device portion cooperate with its peer port of a second non-restarting network device that is a neighbor of the first network device so as to prevent layer 2 loops in the network.
|
28. A network system for restarting a first switch having a plurality of ports for receiving and transmitting layer 2 data, comprising:
a plurality of switches including the first switch and at least one neighbor switch coupled to the first switch,
the first switch being operable to:
when a restart of a process that includes altering a spanning state protocol (stp) state of one or more ports of at least a restarting portion of the first switch is imminent whereby the restarting portion can no longer alter the stp state of one or more restarting ports of the first switch's ports during the restart, maintaining such stp forwarding state of each restarting port so as not to change such stp forwarding state to a blocking state before or during the restart under predefined conditions; and
during the restart, at least one of the restarting ports of the restarting portion cooperating with a peer port of the neighbor switch so as to prevent layer 2 loops in the network.
1. A method of restarting a first network device having a plurality of ports for receiving and transmitting layer 2 data, wherein the first network device belongs to a network of network devices, the method comprising:
when a restart of a process that includes altering a spanning state protocol (stp) state of one or more ports of at least a restarting network portion of the first network device is imminent whereby the restarting process can no longer alter the stp state of one or more restarting ports of the first network device's ports during the restart, maintaining an stp forwarding state of each restarting port that is in such stp forwarding state so as not to change such stp forwarding state to a blocking state before or during the restart under predefined conditions; and
during the restart, each of the restarting ports of the restarting network portion cooperating with its peer port of a second non-restarting network device that is a neighbor of the first network device so as to prevent layer 2 loops in the network.
27. An apparatus for restarting a first network device having a plurality of ports for receiving and transmitting layer 2 data, wherein the first network device belongs to a network of network devices, the apparatus being in the form of the first network device and comprising:
means for when a restart of a process that includes altering a spanning state protocol (stp) state of one or more ports of at least a restarting network portion of the first network device is imminent whereby the restarting process can no longer alter the stp of one or more restarting ports of the first network device's ports during the restart, maintaining an stp forwarding state of each restarting port that is in such stp forwarding state so as not to change such stp forwarding state to a blocking state before or during the restart under predefined conditions; and
means for during the restart, each of the restarting ports of the restarting network portion cooperating with its peer port of a second non-restarting network device that is a neighbor of the first network device so as to prevent layer 2 loops in the network.
14. A first network device operable to restart, wherein the first network device has a plurality of ports for receiving and transmitting layer 2 data, wherein the first network device belongs to a network of network devices, the first network device comprising:
one or more processors;
one or more memory, wherein at least one of the processors and memory are configured for:
when a restart of a process that includes altering a spanning state protocol (stp) state of one or more ports of at least a restarting network portion of the first network device is imminent whereby the restarting process can no longer alter the stp state of one or more restarting ports of the first network device's ports during the restart, maintaining an stp forwarding state of each restarting port that is in such stp forwarding state so as not to change such stp forwarding state to a blocking state before or during the restart under predefined conditions; and
during the restart, each of the restarting ports of the restarting network portion cooperating with its peer port of a second non-restarting network device that is a neighbor of the first network device so as to prevent layer 2 loops in the network.
2. The method as recited in
3. The method as recited in
4. The method as recited in
5. The method as recited in
6. The method as recited in
7. The method as recited in
8. The method as recited in
9. The method as recited in
10. The method as recited in
11. The method as recited in
the particular restarting port sending a first Bridge protocol Data Unit (BPDU) advertising its current stp state and identifying its new port role to the particular restarting port's peer, wherein the first BPDU is sent to cause the particular restarting port's peer to change its stp state to blocking and mark itself as Restart-Inconsistent; and
the particular restarting port receiving a second BPDU from the particular restarting port's peer conveying the peer's new stp blocking state.
12. The method as recited in
when the first network device receives a proposal for a new link to open from a peer port that proposes to go to the stp forwarding state, the first network device forwarding the proposal to its one or more neighbor network devices so that the one or more neighbor network devices can each cut itself off from the rest of the network; and
when, in response to the proposal that was forwarded to the one or more neighbor network devices, an agreement is received into the first network device, forwarding the agreement to its peer port of the new link.
13. The method as recited in
15. The first network device as recited in
16. The first network device as recited in
17. The first network device as recited in
18. The first network device as recited in
19. The first network device as recited in
20. The first network device as recited in
21. The first network device as recited in
22. The first network device as recited in
23. The first network device as recited in
24. The first network device as recited in
the particular restarting port sending a first Bridge protocol Data Unit (BPDU) advertising its current stp state and identifying its new port role to the particular restarting port's peer, wherein the first BPDU is sent to cause the particular restarting port's peer to change its stp state to blocking and mark itself as Restart-Inconsistent; and
the particular restarting port receiving a second BPDU from the particular restarting port's peer conveying the peer's new stp blocking state.
25. The first network device as recited in
when the first network device receives a proposal for a new link to open from a peer port that proposes to go to the stp forwarding state, the first network device forwarding the proposal to its one or more neighbor network devices so that the one or more neighbor network devices can each cut itself off from the rest of the network; and
when, in response to the proposal that was forwarded to the one or more neighbor network devices, an agreement is received into the first network device, forwarding the agreement to its peer port of the new link.
26. The first network device as recited in
|
This application is related to concurrently filed U.S. patent application Ser. No. 11/329,681 entitled SEAMLESS SPANNING TREE UPGRADE OF A SUPERVISOR, by Tameen Khan, et al., which application is incorporated herein by reference in its entirety for all purposes.
1. Field of the Invention
The field of the invention relates generally to mechanisms for maintaining a loop-free topology in a layer 2 switched network or the like. More particularly, it is related to mechanisms for maintaining a loop-free topology during restart of a network device's (e.g., switch's) software.
2. Background of the Invention
The Spanning Tree Protocol (STP) typically executes on a switch and is responsible for maintaining a loop free topology in a Layer 2 (L2) switched network. A general description of the STP algorithm may be found in the IEEE standard documents (1) “IEEE standard for local and metropolitan area networks—common specification. Part 3: media access control (MAC) bridges—amendment 2: rapid reconfiguration”, LAN/MAN Standards Committee of the IEEE Computer Society, USA, IEEE Std 802.1w-2001, E-ISBN: 0-7381-2925-9, ISBN: 0-7381-2924-0, (2001) and (2) “IEEE Standard for Local and metropolitan area networks Media Access Control (MAC) Bridges”, IEEE Std 802.1D-2004 (Revision of IEEE Std 802.1D-1998), E-ISBN: 0-7381-3982-3, ISBN: 0-7381-3982-3, (2004), which documents are incorporated herein by reference in their entirety. STP operates by periodically exchanging Bridge Protocol Data Units (BPDUs) with neighbor switches and setting port states to Forwarding/Blocking/Listening/Learning appropriately.
Today, when a switch linecard's software is to be restarted, for example, during an upgrade or downgrade procedure, all L2 ports on the linecard are brought down for the period of the restart. This causes disruption of L2 traffic and reconvergence of network topology. The ports have to be brought down during restart because port state on the restarting linecard cannot be changed since the software that alters the port states, referred to as the “Linecard control plane software”, is unavailable once the restart has commenced. If the L2 ports are not brought down during restart, topology change in the rest of the network could result in a loop during the restart. Additionally, the blocked ports of the restarting linecard will cause a topology change that affects the entire network. In other words, the STP topology will have to converge again so as to determine alternative paths around the blocked ports.
Another situation is when the control plane software is restarted (e.g., during an upgrade or downgrade) in a switch with a single supervisor or the supervisor software itself is being upgraded. The supervisor typically is responsible for exchanging control messages with other switches to thereby implement STP, among other tasks. During restart of a supervisor of a switch, BPDUs cannot be exchanged between the restarting switch and other switches. When a non-restarting switch in the network fails to receive a BPDU for the two times Forwarding Delay (30 sec), this may cause an alteration in the port states of the non-restarting switch, which can cause loops. Because of this, in current implementations, all L2 ports are brought down during single supervisor restart, so that they cannot contribute to loop formation.
In sum, current mechanisms for handling software restart of supervisor or linecard software is disruptive for L2 data plane traffic as all ports are brought down to thereby result in Spanning Tree topology reconvergence. Accordingly, improved, non-disruptive mechanisms for maintaining a loop-free layer 2 topology during a software upgrade of a network device's linecard or supervisor software are needed.
The present invention provides methods and apparatus for providing a restart of a network device, such as a switch, that is minimally disruptive and prevents the formation of loops in the network. In general, the type of restart contemplated herein occurs when the network device's software for altering the device's port states or for implementing the spanning tree protocol (STP), as well as other functions, is unavailable. In one case, a switch is undergoing a software upgrade on one of its linecards so that the STP software cannot alter the upgrading linecard's port states or the upgrading linecard cannot flush its layer 2 MAC tables. Embodiments of the present invention allow a restarting switch's ports to continue forwarding under certain conditions. The restarting switch also coordinates with its neighbors so that the neighbors can assist in preventing loops.
In one embodiment, a method of restarting a first network device having a plurality of ports for receiving and transmitting layer 2 data is disclosed. The first network device belongs to a network of network devices. When a restart of at least a portion of the first network device is imminent whereby the restarting network device portion can no longer alter a spanning tree protocol (STP) state of one or more of the ports and such ports that remain in a fixed state during the restart are referred to as restarting ports, a forwarding state of each restarting port that is in a forwarding state is maintained during the restart under predefined conditions. During the restart, each of the restarting ports of the restarting network device portion cooperate with its peer port of a second non-restarting network device that is a neighbor of the first network device so as to prevent layer 2 loops in the network.
In a specific implementation, the restarting network portion is a linecard in the first network device that can no longer alter a spanning tree protocol (STP) state of one or more of the restarting ports. In a further aspect, each restarting port that is a Portfast port is maintained in a forwarding state during the restart. Each restarting port that is shared by two or more other network devices is blocked during the restart. Each restarting port that is not shared or a Portfast port is maintained in a forwarding state if it is in a forwarding state during the restart if it is determined that its peer can cooperate to prevent loops, and peers that can cooperate to prevent loops during the restart are informed of the restart. Each peer is informed that a restart is imminent, about the kind of restart, and completion of the restart when the restart is completed. Each restarting port that is not shared or a Portfast port is blocked during the restart if it is determined that its peer cannot cooperate to prevent loops during the restart. Any pending port state changes are completed prior to the restart and any STP user configuration is blocked until the restart completes.
In a further aspect, restarting ports that are blocked during the restart are excluded from STP root computations during the restart. A restarting port's state change from blocking to forwarding is deferred until after completion of the restart. The following operations are performed when a role change in the network results in a state change for a particular restarting port from forwarding to blocking: (i) the particular restarting port sending a first Bridge Protocol Data Unit (BPDU) advertising its current state and identifying its new port role to the particular restarting port's peer, wherein the first BPDU is sent to cause the particular restarting port's peer to change its state to blocking and mark the restarting port's peer as Restart-Inconsistent; and (ii) the particular restarting port receiving a BPDU from the particular restarting port's peer conveying the peers new blocking state.
When a SYNC operation in the network results in a state change for a particular restarting port from forwarding to blocking, the following operations are performed: (i) when the first network device receives a proposal for a new link to open from a peer port that wishes to go to a forwarding state, the first network device forwards the proposal to its neighbor one or more network devices so that the one or more neighbor network devices can each cut itself off from the rest of the network; and (ii) when, in response to the proposal that was forwarded to the neighbor network devices, an agreement is received into the first network device, forwarding the agreement to its peer port of the new link.
In another embodiment, a short aging timer for the MAC Address learning table is set for the restarting network device, prior to restart, so as to invoke a fast flush of stale L2 entries in the table.
In another embodiment, the invention pertains to a network device operable to restart the network device having a plurality of ports for receiving and transmitting layer 2 data. The network device includes one or more processors and one or more memory. At least one of the memory and processors are adapted to provide at least some of the above described method operations.
In another embodiment, the invention pertains to a network system restarting a first network device having a plurality of ports for receiving and transmitting layer 2 data, wherein the first network device belongs to a network of network devices. The system includes a plurality of switches including a first switch and at least one neighbor switch coupled to the first network switch and the first switch being operable to (i) when a restart of at least a portion of the first switch is imminent whereby the restarting switch portion can no longer alter a spanning tree protocol (STP) state of one or more of the ports and such ports that remain in a fixed state during the restart are referred to as restarting ports, maintaining a forwarding state of each restarting port that is in a forwarding state during the restart under predefined conditions, and (ii) during the restart, at least one of the restarting ports of the restarting switch portion cooperating with a peer port of the neighbor switch so as to prevent layer 2 loops in the network.
These and other features and advantages of the present invention will be presented in more detail in the following specification of the invention and the accompanying figures which illustrate by way of example the principles of the invention.
Reference will now be made in detail to a specific embodiment of the invention. An example of this embodiment is illustrated in the accompanying drawings. While the invention will be described in conjunction with this specific embodiment, it will be understood that it is not intended to limit the invention to one embodiment. On the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be practiced without some or all of these specific details. In other instances, well known process operations have not been described in detail in order not to unnecessarily obscure the present invention.
A planned restart occurs with respect to a particular network device when the network device's software for altering the device's port states or implementing the spanning tree protocol (STP) is unavailable. In one implementation, a switch is undergoing a software upgrade on one of its linecards so that the STP software cannot alter the upgrading linecard's port states or the upgrading linecard cannot flush its layer 2 MAC tables. In another implementation, the switch has a single supervisor that executes control operations for all the linecards and their ports in the switch, and this single supervisor is undergoing a software upgrade.
When a planned restart of the software (e.g., a linecard's software or a single supervisor's software) in a network device is imminent, mechanisms of the present invention allow layer 2 ports to keep forwarding, rather than being blocked, under certain conditions. If there is no topology change in the network during the restart, the restarting network device software does not itself cause a topology change. Additionally, when a topology change does occur in the network during the restart, this change does not result in a layer 2 loop. Topology changes on the restarting software's associated ports are deferred until after the restart completes to thereby maximize connectivity.
Any suitable mechanism may be implemented to facilitate a seamless restart in which ports associated with the restarting software can continue forwarding under certain conditions and topology changes do not result in loops. Embodiments of the present invention can be described at a high level as including ways to allow the restarting linecard's ports' neighbors to assist in preventing loops. That is, the restarting network device cooperates with its neighbor network devices so that the neighbors are aware of the restart and take preventive actions to prevent loops that may have otherwise occurred with respect to one or more ports of the restarting network device.
Embodiments of the present invention include a first implementation for handling a restarting linecard and a second implementation for handling a restarting single supervisor.
During restart of a linecard, STP control software continues to execute on the supervisor with a few modifications as outlined below, for example, with respect to
When a planned restart is about to occur, it is then determined whether the peer of each port of the restarting linecard is Seamless Restart capable in operation 104. That is, it is determined whether a switch that is a neighbor to the restarting switch can implement the techniques described herein to prevent loops and minimize connectivity disruptions that may occur during the restart. In one implementation, each restarting port sends a query to its neighbor port asking whether the neighbor is Seamless Restart compatible. The neighbor may reply in the positive or negative or fail to respond. Only if the neighbor gives a positive response to the query is the neighbor deemed to be Seamless Restart compatible. Otherwise, it is deemed to not be Seamless Restart compatible.
The following operations 106 through 112 are performed for each port. If a port is Portfast, the port's state is maintained in operation 106. Portfast ports are positioned on the edge of the switch network (i.e., Portfast ports are not coupled to other switches). As a result of being on the edge, Portfast ports can always stay in forwarding state because they cannot cause loops. It may be determined whether each port is Portfast by checking a Portfast field for each port. A Portfast port's state can be maintained. Otherwise, if a port is shared, this port is blocked in operation 108. Shared ports can be coupled to two or more switches and it may not be possible to determine whether all of the shared switches are seamless restart capable and implement the techniques of the present invention in cooperation with the shared neighbor switch. Accordingly, shared ports of the restarting linecard are blocked. It may be determined whether a port is shared by checking a Shared field for the port.
Else if the port's peer is not Seamless Restart capable, this port is blocked in operation 110. Else if the port's peer is Seamless Restart capable, the state of the port is maintained and the peer is informed of the restart in operation 112. Thus, some of the ports of the restarting linecard can stay forwarding under certain conditions. In one implementation, the peer or neighbor is informed that a restart is imminent, the kind of upgrade (e.g., linecard or single supervisor), and completion of the restart (when that occurs). Any pending states changes are then completed before restart and any STP configuration is blocked during the restart in operation 114. The STP configuration that is blocked or prohibited during the restart may include any user configurations on the restarting line cards and its ports.
However, since this port 308b belongs to a restarting linecard and is blocked during restart, selecting this port 308b as a root port would result in a blocked path to the root switch1 302. Since it is preferable to have forwarding paths to the root switch to maximize connectivity and restarting ports may be blocked during the entire restart, pathways that include a restarting port are not used to determine the most cost effective path to the root switch.
Referring back to
In STP, a port may have one of five states: disabled, blocking, listening, learning, and forwarding. Transitions to and from a disabled state only occur when the port is enabled or disabled. Since a restarting port cannot be disabled or enabled during a restart, this transition does not occur during a restart. A port can change state from blocking to forwarding, and visa versa. The learning state is a transient state between blocking and forwarding, and transition to a learning state can only occur from a blocking state.
Referring to the
If the port state change is from forwarding to blocking, it is then determined whether this port state change has occurred as a result of a role change in operation 160. For example, it is determined whether a re-rooting operation has occurred. That is, a root or designated port changes to an alternate port.
In response to the BPDU from the restarting port, the peer than marks itself as Restart-Inconsistent (RI) and sets its state to blocking (B) in operation 164 as shown in
Referring back to
During restart of linecard 310 of switch3,
In order to rapidly move this new designated port 304b to forwarding state, a SYNC operation may be performed as part of the 802.1W Rapid Spanning Tree protocol specification. For SYNC operations that occur when there is not a restart in progress, this SYNC operation would involve switch2 performing a handshake with switch 3. As part of this handshake, a proposal is sent from switch2 to switch3. Switch3 on receiving this proposal will block all its designated forwarding ports (310a) and having done so, send back an agreement to switch2 which on receiving the agreement, can move port 304b to a forwarding state right away. This can be done without danger of transient loops because switch2's port roles and states are is in sync with switch3 (since they have performed a handshake), and switch3's forwarding path is cut off (as a result of the blocking of its designated ports in the previous step) from its downstream switches (switch4) which may not be in sync. Next, switch3 will perform a similar handshake with all its downstream neighbor switches (switch4) to make its designated ports forwarding again. In this manner the cut in forwarding path originally on port 304a will propagate through the network [304b to 310a to (312b & 312c)] till it reaches the end of the network. This procedure guarantees that there will be no transient loops
The Seamless Restart handles this handshake in a different way than when a restart is not occurring with a handshaking switch's linecard. When a restart is occurring, the Seamless Restart process, in effect, moves a restarting port's cutoff operations to a neighbor's port. As shown in
In response to this proposal (P) 324, switch4 blocks ports 312b and 312c. As shown, blocking these ports forms a cut 326 which cuts off the neighbor switches of switch4. Switch4 then sends an agreement (A) 328 (see
Referring back to
As shown in
Techniques may also be implemented to handle a Layer 2 MAC flush for a restarting linecard. When layer 2 information is received into a particular port, a MAC Address Learning Table is updated in the receiving port. That is, when a MAC address is received on a port, this received MAC address is learned and saved in a MAC Address Learning Table for such port. When packets having an already learned MAC address are not received for a predetermined duration of time, the corresponding MAC address is aged out of the appropriate MAC Address Learning Table, for example, after 300 seconds typically.
During a SPT topology change, the MAC Address Learning table is typically flushed in order to unlearn any wrong paths. Of course, during a restart a topology change can also occur and there is a need to flush the MAC Address Learning Table. However, this flush cannot be done during restart for the ports of the restarting linecard since this type of control is unavailable in a restarting card. In one embodiment, the aging timer is set to a short value (e.g., 10 seconds) before the restart. This resetting of the aging timer may result in black holing during the age time (10 sec) if there is a topology change; however, the period of risk is very brief compared to the default 300 seconds and would unlikely result in significant disruption of traffic. Black holing may occur if a MAC table is incorrect and data is sent to a wrong destination. The Seamless Restart procedures for a restarting linecard may also be applied to various other scenarios, such as a link being added or removed during the restart, a root failure, a root change, etc.
When there is no topology change in the network during a linecard restart, the Seamless Restart embodiments of the present invention provide several advantages. For instance, seamless restart of a linecard allows normal STP operation on a restarting linecard switch and their peer switches. Additionally, there is no need to change port state or flush layer 2 MAC tables. Also, no topology change or loops are generated by the restarting linecard. Finally, layer 2 data paths can stay forwarding in a restarting linecard if they are not shared and neighbor ports are Seamless Restart capable.
When a topology change occurs in the network during a restart of a linecard, several advantages are also associated with Seamless Restart. If the restarting linecard has to move a port from a Forwarding to Blocking state to break a loop, the peer port on its neighbor switch will move its state to Blocking to break the loop. Also, if the restarting linecard has to move a port from Blocking to Forwarding, it will defer this state change so as not to inadvertently create loops, while sacrificing connectivity. In sum, the layer 2 data path stays forwarding, except in the case when there is no forwarding data path available.
Seamless Restart mechanisms for a restarting single supervisor are also contemplated here. A single supervisor refers to a single supervisor in the switch, as opposed to redundant supervisors. Redundant supervisors would typically not cause a disruption if their state is synchronized. In general, when a switch's single supervisor software (or any other suitable STP control software) is restarting, STP control software is not executed on the entire switch during the restart.
When a topology change has not occurred, the neighbor prohibits aging out of the information received from the switch that is being restarted in operation 456. Thus, although the restarting switch is not executing STP and not sending out BPDU updates to its neighbor switches, the restarting switch's root information can be retained by the neighbor switch during the restart, which can be longer then the age timeout and can use the restarting switch for data forwarding.
The neighbor also prohibits sending of BPDUs to the switch that is being restarted in operation 458 since the restarting supervisor switch is not processing the BPDUs without its STP software running. This is an optimization and may be omitted. It is then determined whether the restart is complete in operation 470. If the restart is complete, the procedure then ends. Otherwise, the procedure 400 reinitializes and determines again if there is a topology change in operation 454. As long as there is no topology change, the neighbor switch (with respect to the restarting switch) continues to prohibit aging out of the information last received from the restarting switch and prohibit sending of BPDU to the switch.
If a topology change occurs, the information on the ports that are peering with the restarting switch is aged out in operation 460. The state of the port peering with the restarting switch is changed to [Restart-Inconsistent, Blocking] for the period of the restart in operation 462 and the procedure 400 then ends After the restart, the Restart-Inconsistent ports are preferably initialized to a designated role and a blocking state.
Based on the restarting port's query to the neighbor, it is then determined whether a topology change has been detected by the peer in operation 474. If no topology change has been detected, the STP state that was saved in the persistent storage is then recovered in operation 476. A stateful restart of STP is then performed in operation 478. During stateful restart STP process is started on the supervisor. STP control software's run-time data structures are created and initialized based on the recovered persistent state. For example, the port role and port state of a port is initialized based on what value is recovered from the persistent storage. Each port state of each port becomes what it was before restart and could be forwarding/blocking/learning/disabled and the port role is also what it was before restart and could be root/designated/alternate/backup. This way the software port state is in sync with the actual port state on linecards. This is different from a stateless restart where all ports are initialized to blocking state and designated Role, and hardware state if forced to be blocking.
If a topology change has been detected by the peer, it is then determined whether the restarting switch is a root in operation 480. For example, the restarting switch may be preconfigured as a root or be designated as a root based on its preconfigured priority value or some other variable. If the restarting switch is a root, all ports are initialized to [Designated, Blocking] in operation 486. If the switch is not a root, the latest STP port information of its old root port is obtained from its peer on the root port and populated out to the other ports and all the ports are initialized to [Designated, Blocking], except the former root port which is set to its old, retained state, in operation 482. For the root and non-root restarting switch, the STP algorithm is then restarted in operation 484.
All peers are then informed of the restart completion in operation 488. The peer then restarts its forward delay (fdWhile timers) for any [Restart-Inconsistent, Blocked] ports and sets proposal bits and then resumes normal operation in operation 490. All STP configuration is unblocked These operations 488, 490, and 492 are similar to the operations 188, 190, and 192, respectively, of
Embodiments of the present invention provide a seamless restart of switch's linecard or supervisor software by maintaining port forwarding in the restarting linecard during the restart without causing a change of the network topology. In one implementation, topology changes with respect to the restarting switch are deferred until after restart completes so as to maximize connectivity. Additionally, when a topology change occurs in the network, loops are prevented from forming in the network before, during, and after the restart.
The techniques of the present invention may be implemented in any suitable combination of hardware and software in which STP may be applied. For example, the techniques of the present invention can be implemented in an operating system kernel, in a separate user process, in a library package bound into network applications, on a specially constructed machine, or on a network interface card. In a specific implementation, they are implemented on a layer 2 switch of a computer network.
In one implementation, the switch includes at least one memory device and at least one processor. The memory and processor are operable to perform any of the above described techniques, as well as standard switching/routing operations, virtualization management, zone management, etc.
Line cards 675 and 677 can communicate with an active supervisor 611 through interface circuitry 695 and 697 and the backplane 615. The backplane 615 can provide a communications channel for all traffic between line cards and supervisors. Individual line cards 675 and 677 can also be coupled to external network entities, such as 655, through ports 685 and 687.
It should be noted that the switch can support any number of line cards and supervisors. In the embodiment shown, only a single supervisor is connected to the backplane 615 and the single supervisor communicates with many different line cards. The active supervisor 611 may be configured or designed to run a plurality of applications such as STP, routing, domain manager, system manager, and utility applications. The supervisor may include one or more processors coupled to interfaces for communicating with other entities.
In addition, although an exemplary switch is described, the above-described embodiments may be implemented in a variety of network devices (e.g., servers) as well as in a variety of mediums. For instance, instructions and data for implementing the above-described invention may be stored on a disk drive, a hard drive, a floppy disk, a server computer, or a remotely networked computer. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.
Regardless of switch's configuration, it may employ one or more memories or memory modules configured to store data, database(s), and program instructions for the general-purpose network operations and/or the inventive techniques described herein. The program instructions may control the operation of an operating system and/or one or more applications, for example. The memory or memories may also be configured to store root information, STP state information, etc.
Because such information and program instructions may be employed to implement the systems/methods described herein, the present invention relates to machine readable media that include program instructions, state information, etc. for performing various operations described herein. Examples of machine-readable media include, but are not limited to, magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM disks and DVDs; magneto-optical media such as floptical disks; and hardware devices that are specially configured to store and perform program instructions, such as read-only memory devices (ROM) and random access memory (RAM). The invention may also be embodied in a carrier wave traveling over an appropriate medium such as airwaves, optical lines, electric lines, etc. Examples of program instructions include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter.
Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. Therefore, the described embodiments should be taken as illustrative and not restrictive, and the invention should not be limited to the details given herein but should be defined by the following claims and their full scope of equivalents.
Desai, Ronak, Mellacheruvu, Ramana, Mahajan, Umesh, Patel, Amitkumar, Khan, Tameen
Patent | Priority | Assignee | Title |
11652743, | Dec 30 2020 | Oracle International Corporation | Internet group management protocol (IGMP) of a layer-2 network in a virtualized cloud environment |
11671355, | Feb 05 2021 | Oracle International Corporation | Packet flow control in a header of a packet |
11689455, | May 28 2020 | Oracle International Corporation | Loop prevention in virtual layer 2 networks |
11757773, | Dec 30 2020 | Oracle International Corporation | Layer-2 networking storm control in a virtualized cloud environment |
11765080, | Dec 30 2020 | Oracle International Corporation | Layer-2 networking span port in a virtualized cloud environment |
11777897, | Feb 13 2021 | Oracle International Corporation | Cloud infrastructure resources for connecting a service provider private network to a customer private network |
11818040, | Jul 14 2020 | Oracle International Corporation | Systems and methods for a VLAN switching and routing service |
11831544, | Jul 14 2020 | Oracle International Corporation | Virtual layer-2 network |
11876708, | Jul 14 2020 | Oracle International Corporation | Interface-based ACLs in a layer-2 network |
11909636, | Dec 30 2020 | Oracle International Corporation | Layer-2 networking using access control lists in a virtualized cloud environment |
ER647, |
Patent | Priority | Assignee | Title |
6801506, | Mar 31 1999 | Cisco Technology, Inc. | Method and apparatus for providing fast spanning tree re-starts |
6898189, | Aug 23 2000 | Cisco Technology, Inc. | Restartable spanning tree for high availability network systems |
7411915, | Jul 21 2004 | Cisco Technology, Inc.; Cisco Technology, Inc | Automatically configuring switch ports with appropriate features |
20010012775, | |||
20030179707, | |||
20040179524, | |||
20050007951, | |||
20050157741, | |||
20050264420, | |||
20060092862, | |||
20060126534, | |||
20060146697, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 26 2005 | KHAN, TAMEEN | Cisco Technology, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 017465 | /0071 | |
Dec 27 2005 | DESAI, RONAK | Cisco Technology, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 017465 | /0071 | |
Dec 27 2005 | MELLACHERUVU, RAMANA | Cisco Technology, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 017465 | /0071 | |
Jan 06 2006 | MAHAJAN, UMESH | Cisco Technology, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 017465 | /0071 | |
Jan 09 2006 | PATEL, AMITKUMAR | Cisco Technology, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 017465 | /0071 | |
Jan 10 2006 | Cisco Technology, Inc. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 21 2014 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Mar 21 2018 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Mar 16 2022 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Sep 21 2013 | 4 years fee payment window open |
Mar 21 2014 | 6 months grace period start (w surcharge) |
Sep 21 2014 | patent expiry (for year 4) |
Sep 21 2016 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 21 2017 | 8 years fee payment window open |
Mar 21 2018 | 6 months grace period start (w surcharge) |
Sep 21 2018 | patent expiry (for year 8) |
Sep 21 2020 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 21 2021 | 12 years fee payment window open |
Mar 21 2022 | 6 months grace period start (w surcharge) |
Sep 21 2022 | patent expiry (for year 12) |
Sep 21 2024 | 2 years to revive unintentionally abandoned end. (for year 12) |