摘要 |
Disclosed are a network loop detection method and a controller, which are used for resolving the problem of impossibility in accurately and rapidly determining a network loop in the prior art. A controller acquires a plurality of MAC address mappings sent by a forwarding device managed by the controller, wherein each MAC address mapping comprises one MAC address and one port of the forwarding device; and the controller determines that a loop exists in a network where the forwarding device is located when MAC addresses of at least two MAC address mappings in the plurality of MAC address mappings are determined to be the same and ports of forwarding devices in the at least two MAC address mappings are different. In such a way, the controller can accurately and rapidly determine that a loop exists in a network according to a plurality of collected MAC address mappings, thereby determining the position of a network loop, and finally realizing network loop elimination. |