Loop detection message packaging method as well as loop detecting method and device
A loop detection and message technology, applied in the field of communication, can solve problems such as broadcast storms, occupying large network bandwidth, loop detection errors, etc., and achieve the effect of reducing repeated and redundant transmission and improving utilization.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0087] figure 2 This embodiment is a schematic flow chart of constructing and sending a loop detection message based on an aggregation port. Such as figure 2 As shown, the main steps of the process are described as follows:
[0088] Step S101: Obtain a list of activated VLANs under the aggregation group;
[0089] Loop detection needs to detect every activated vlan, and a corresponding loop detection message will be sent for each activated vlan. An aggregation group contains multiple physical ports, and the active VLANs under each physical port may be different. Only when the active VLANs under these physical ports have an intersection, it indicates that the logical channel formed by the aggregation group is valid, and then Perform loop detection on the aggregation group.
[0090] After obtaining the activated public VLAN list according to this step, the number of loop detection packets sent and which VLANs need to be carried in the packets can be determined.
[0091] Step S102: Ch...
Embodiment 2
[0104] image 3 This embodiment is a schematic diagram of the processing flow of loop detection according to the received loop detection message. Such as image 3 As shown, the main steps of the process are described as follows:
[0105] Step S201: Judging the validity of the message, if it is valid, proceed to the next step S202, otherwise, end this process;
[0106] After receiving a loop detection message, the validity of the message must first be checked. The validity detection mainly includes the following aspects: whether the port number of the received message is a valid port number, and whether the port is in a 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.
[0107] Step S202: Determine whether the physical port that sends the message and the physical port that receives the message belong to an aggregation group, if yes, end this process, otherwise, continue to perform t...
Embodiment 3
[0118] This embodiment provides a loop detection device, see Figure 4 , The device mainly includes: a message sending module, and a loop detection module, among which,
[0119] The message sending module is configured to, when sending a loop detection message from an 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;
[0120] The loop detection module is used to determine whether a loop exists according to the received loop detection message when a loop detection message is received from the receiving port.
[0121] Further, the above-mentioned loop detection module is used to determine whether there is a loop in the following manner:
[0122] When it is identified according to the source port field in the loop detection message that the sending port of the loop detection message belongs to the aggregation group, it is d...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 