Detecting and preventing network loops
First Claim
1. A computer-implemented method comprising:
- identifying a port, on a network device, that is in a blocking state, the blocking state for dropping one or more types of packets and preventing the port from forwarding the one or more types of packets;
first determining a first number of packets received through the port by a hardware element on the network device;
second determining a second number of packets received through the port and dropped by the hardware element on the port;
third determining a third number of control packets received through the port by a CPU process on the network device;
fourth determining whether the third number>
(first number−
second number);
fifth determining that the blocking state has failed to prevent the port from forwarding the one or more types of packets in response to a positive result of the fourth determining; and
correcting, in response to a positive outcome of the fifth determining, the failed blocking state by disabling the port, setting the port to a state that allows some traffic to pass while preventing other traffic from passing, and/or re-configuring one or more links of the port.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems, methods, and computer-readable storage media for detecting network loops. A system can identify, for each virtual tunnel endpoint (VTEP) from multiple VTEPs in a network, respective media access control address data including the respective local interface media access control addresses of the respective VTEP and respective media access control addresses learned by the respective VTEP. The system can determine whether the VTEPs are running spanning tree protocol (STP), and whether a media access control address learned by a first VTEP matches a respective local interface media access control address of a second VTEP. The system can detect a loop when the media access control address learned by the first VTEP matches the respective local interface media access control address of the second VTEP. The system can also detect a loop when the VTEPs are running STP and the first and second VTEPs see the same STP root bridge.
-
Citations
20 Claims
-
1. A computer-implemented method comprising:
-
identifying a port, on a network device, that is in a blocking state, the blocking state for dropping one or more types of packets and preventing the port from forwarding the one or more types of packets; first determining a first number of packets received through the port by a hardware element on the network device; second determining a second number of packets received through the port and dropped by the hardware element on the port; third determining a third number of control packets received through the port by a CPU process on the network device; fourth determining whether the third number>
(first number−
second number);fifth determining that the blocking state has failed to prevent the port from forwarding the one or more types of packets in response to a positive result of the fourth determining; and correcting, in response to a positive outcome of the fifth determining, the failed blocking state by disabling the port, setting the port to a state that allows some traffic to pass while preventing other traffic from passing, and/or re-configuring one or more links of the port. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A network device comprising:
-
one or more processors; and a computer-readable storage medium having stored therein instructions which, when executed by the one or more processors, cause the one or more processors to perform operations comprising; identifying a port, on a network device, that is in a blocking state, the blocking state for dropping one or more types of packets and preventing the port from forwarding the one or more types of packets; first determining a first number of packets received through the port by a hardware element on the network device; second determining a second number of packets received through the port and dropped by the hardware element on the port; third determining a third number of control packets received through the port by a CPU process on the network device; fourth determining whether the third number>
(first number−
second number);fifth determining that the blocking state has failed to prevent the port from forwarding the one or more types of packets in response to a positive result of the fourth determining; and correcting, in response to a positive outcome of the fifth determining, the failed blocking state by disabling the port, setting the port to a state that allows some traffic to pass while preventing other traffic from passing, and/or re-configuring one or more links of the port. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable storage media having stored therein instructions which, when executed by a processor, cause the processor to perform operations comprising:
-
identifying a port, on a network device, that is in a blocking state, the blocking state for dropping one or more types of packets and preventing the port from forwarding the one or more types of packets; first determining a first number of packets received through the port by a hardware element on the network device; second determining a second number of packets received through the port and dropped by the hardware element on the port; third determining a third number of control packets received through the port by a CPU process on the network device; fourth determining whether the third number>
(first number−
second number);fifth determining that the blocking state has failed to prevent the port from forwarding the one or more types of packets in response to a positive result of the fourth determining; and correcting, in response to a positive outcome of the fifth determining, the failed blocking state by disabling the port, setting the port to a state that allows some traffic to pass while preventing other traffic from passing, and/or re-configuring one or more links of the port. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification