Loop detection method and loop detecting device
A loop detection and consistent technology, applied in the field of communications, can solve problems such as broadcast storms, loop detection errors, network and switch paralysis, etc., to achieve the effect of improving utilization, reducing duplication and redundant transmission
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0080] figure 2 It is a schematic flowchart of constructing and sending a loop detection message based on an aggregated port in this embodiment. Such as figure 2 As shown, the main steps of the process are described as follows:
[0081] Step S101: Obtain a list of activated vlans under the aggregation group;
[0082] Loop detection needs to detect each activated vlan, and a corresponding loop detection message will be sent for each activated vlan. An aggregation group contains multiple physical ports, and the activated VLANs under each physical port may be different, and only when the activated VLANs under these physical ports overlap, it indicates that the logical channel formed by the aggregation group is valid, and then Then perform loop detection on the aggregation group.
[0083] After obtaining the list of activated public vlans according to this step, you can determine the number of loop detection packets to be sent and which vlans need to be carried in the packet...
Embodiment 2
[0097] image 3 It is a schematic diagram of a processing flow of performing loop detection according to the received loop detection message in this embodiment. Such as image 3 As shown, the main steps of the process are described as follows:
[0098] Step S201: Determine the validity of the message, if it is valid, proceed to the next step S202, otherwise, end this process;
[0099] After receiving the loop detection message, the validity of the message must be checked first. The validity check mainly includes the following aspects: whether the port number of the received message is a valid port number, and whether the port is in the link-up state , Whether the length of the message is legal, whether the type of the message is legal, whether the checksum of the message is legal, etc.
[0100] Step S202: determine whether the physical port for sending the message and the physical port for receiving the message belong to the same aggregation group, if yes, end this process,...
Embodiment 3
[0111] This embodiment provides a loop detection device, see Figure 4 , the device mainly includes: a message sending module, and a loop detection module, wherein,
[0112] The message sending module is used to, when sending a loop detection message from the aggregation group, fill the port number of the aggregation group in the source port field of the loop detection message, and broadcast the loop detection message sent to all ports connected to the aggregation group;
[0113] The loop detection module is configured to, when receiving a loop detection message from the receiving port, judge whether there is a loop according to the received loop detection message.
[0114] Further, the above-mentioned loop detection module is used to judge whether there is a loop in the following manner:
[0115] When it is recognized that the sending port of the loop detection message belongs to an aggregation group according to the source port field in the loop detection message, it is ju...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 