Communication method applied to ring networking and related equipment

By using message interaction in ring networking to perform path automation detection, the problems of resource waste and inefficiency caused by manual configuration in the prior art are solved, and automated configuration and management are realized.

CN119583250AActive Publication Date: 2025-03-07HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311148446.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2025-03-07
Estimated Expiration
2043-09-06

AI Technical Summary

Technical Problem

In ring networking, the existing technology requires operation and maintenance personnel to manually configure information about the breaking protocol, resulting in large labor and material consumption and low processing efficiency.

Method used

Automatic detection of the ring network path is achieved through message interaction. The root node automatically obtains node port information on the path by sending detection messages and receiving updated messages.

Benefits of technology

It saves manpower and material consumption, improves processing efficiency, and realizes the automated configuration and management of ring network paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583250A_ABST
    Figure CN119583250A_ABST
Patent Text Reader

Abstract

The invention provides a communication method applied to a ring network and related equipment, which are used for realizing automatic detection of a path of the ring network through a message interaction mode, and compared with a mode of manual configuration by operation and maintenance personnel, the processing efficiency can be improved while manpower and material resources are saved. In the method, a root node sends a first message through a first port, the first message is used for detecting a path of ring networking, and the first message comprises port information of the first port; and the root node receives a second message through a second port, the second message is obtained by updating the first message for N times, the second message comprises port information of the first port and port information of N nodes except the root node on the path, and N is an integer greater than or equal to 1.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method and related equipment applied to ring networking. Background Art

[0002] In communication systems, ring topology networking (referred to as ring networking) can save optical fiber resources and is widely used in various scenarios, such as campus networks, industrial Internet operation technology (OT) networks, and Internet protocol radio access networks (IPRAN) networks.

[0003] At present, in the communication process of ring networking, node redundancy protection or link redundancy protection can be achieved through the ring physical topology. However, in the ring networking, the service traffic should be guided to avoid looping, because once a loop is formed, a broadcast storm may be formed, and bandwidth, storage resources, etc. will be wasted, which may lead to device restart, network shock, etc. Among them, in the ring networking scenario, the traffic loop can be avoided by configuring the ring breaking protocol. For example, the ring breaking protocol can include Ethernet ring protection switching (ERPS), medium redundancy protocol (MRP), etc.

[0004] However, in the current ring networking scenario, the configuration information related to the ring breaking protocol of each node needs to be manually configured by the operation and maintenance personnel. This method will not only waste manpower and material resources, but also lead to low processing efficiency. Summary of the invention

[0005] The present application provides a communication method and related equipment applied to ring networking, which is used to realize automatic detection of the path of the ring networking through message interaction. Compared with the manual configuration by operation and maintenance personnel, it can save manpower and material resources and improve processing efficiency.

[0006] The first aspect of the present application provides a communication method applied to a ring network, the method is executed by a root node, or the method is executed by some components in the root node (such as a processor, a chip or a chip system, etc.), or the method is implemented by a logic module or software that can realize all or part of the root node functions. In the first aspect and its possible implementation, the method is described as being executed by a root node, wherein the root node is a device such as a router, a switch, or a virtual machine. In the method, the root node sends a first message through a first port, the first message is used to detect the path of the ring network, and the first message includes the port information of the first port; the root node receives a second message through a second port, the second message is obtained by updating the first message N times, and the second message includes the port information of the first port and the port information of N nodes on the path except the root node, and N is an integer greater than or equal to 1.

[0007] Based on the above technical solution, the first message sent by the root node through the first port is used to detect the path of the ring network. After that, after the first message is transmitted through N nodes on the path of the ring network, the root node can receive the second message through the second port, and the second message includes the port information of the first port and the port information of the N nodes on the path except the root node. In other words, in the ring networking scenario, the root node sends the first message for detecting the path of the ring network through the first port. After receiving the first message, the other N nodes on the path can add their respective port information to the first message to further forward the update of the first message, so that the second message received by the root node through the second port is obtained by the first message after N times of update processing, and the second message contains the port information of the N nodes. Thus, the root node realizes the automatic detection of the path of the ring network through message interaction. Compared with the manual configuration by operation and maintenance personnel, it can save manpower and material resources and improve processing efficiency.

[0008] Optionally, the first message and the second message both include information about the number of hops that the message has been transmitted. Thus, during the transmission of the first message on the path of the ring network, the receiver of the first message or the first message after one or more updates can clearly know the number of hops between the receiver and the root node based on the hop information.

[0009] Optionally, both the first message and the second message include loop breaking capability information for the root node. Thus, during the transmission of the first message on the path of the ring network, the receiver of the first message or one or more updated messages of the first message can obtain the loop breaking capability information of the root node. For example, the loop breaking capability information can indicate whether ERPS is supported, whether MRP is supported, etc.

[0010] Optionally, the source MAC addresses of the first message and the second message are both the source MAC address of the root node. Thus, during the transmission of the first message on the path of the ring network, the receiver of the first message or the first message after one or more updates can learn the MAC address of the root node, so that the receiver can subsequently send a message to the root node based on the MAC address of the root node (such as the first response message, the second response message or the third response message mentioned later).

[0011] In a possible implementation manner of the first aspect, the method further includes: the root node receiving N first response messages corresponding to the first message.

[0012] It should be noted that the N first response messages corresponding to the first message can be understood as that after the N nodes on the path of the ring network except the root node receive the first message, the N nodes respectively send N first response messages to the root node. That is, the N nodes respectively correspond to the N first response messages, or the N nodes correspond to the N first response messages one by one.

[0013] Based on the above technical solution, the root node can also receive N first response messages corresponding to the first message, so that the root node can obtain the responses of the N nodes to the first message used to detect the path of the ring network based on the N first response messages corresponding to the first message.

[0014] In addition, before the root node obtains the port information of the nodes on the path of the ring network through the second message, the root node may not know the number of nodes and port information on the path. For this reason, the root node can also mutually verify the port information of the N nodes carried by the second message based on the N first response messages corresponding to the first message to ensure that the root node obtains accurate path information of the ring network through detection.

[0015] Optionally, the first message is used to detect the path of the ring network, and accordingly, the first message may also be referred to as a detection message, a path detection message, a topology detection (Detect Topo) message, etc. Similarly, any response message in the N first response messages corresponding to the first message may also be referred to as a detection response message, a path detection response message, a topology detection response (Detect Topo Response) message, etc.

[0016] Optionally, the first message and the N first response messages corresponding to the first message can be implemented through multiple protocol messages, such as extremely lean discovery protocol (XLDP) message, generic autonomic signaling protocol (GRASP) message, etc., which are not limited here.

[0017] In a possible implementation of the first aspect, the N nodes include a first node, which corresponds to one of the N first response messages; one of the N first response messages includes at least one of the following: a medium access control (MAC) address of the first node, loop breaking capability information of the first node, input port information of the first node, output port information of the first node, the number of hops between the first port and the input port of the first node, port information on the path between the first port and the input port of the first node, the number of hops that one of the N first response messages has not yet been transmitted on the path of the ring networking, and the port information that one of the N first response messages has not yet been transmitted on the path of the ring networking.

[0018] Based on the above technical solution, the first node can be any one of the N nodes on the path of the ring network except the root node, wherein the first response message sent by the first node to the first message may include at least one of the above items, so that the root node can obtain relevant information of the first node based on the message to improve the flexibility of the implementation of the solution.

[0019] In addition, for any one of the N nodes, after receiving the first message for detecting the path of the ring network, the any one node can also feedback its own node information, so that the root node can realize automatic detection of the path of the ring network through the first message and the second message, and the root node can also obtain relevant information of each node on the path through the N first response messages.

[0020] Optionally, for any of the N nodes, the first response message sent by the any node may carry the port information of the any node. Taking the first node as an example, the first response information sent by the first node may include the inbound port information of the first node, the outbound port information of the first node, the number of hops from the first port to the inbound port of the first node, the port information on the path between the first port and the inbound port of the first node, etc. Correspondingly, after the root node receives the N first response messages of the N nodes, the path of the ring network can be determined based on the N first response messages. To this end, in the above technical solution, the root node may not perform the process of receiving the second message (or the second message received by the root node does not carry the port information of the N nodes), and accordingly, the root node can determine the path of the ring network based on the received N first response messages. Thus, the root node can realize the automatic detection of the path of the ring network by the interaction of the first message and the N first response messages. Compared with the manual configuration by the operation and maintenance personnel, it can save manpower and material resources and improve the processing efficiency.

[0021] In a possible implementation of the first aspect, after the root node receives the second message through the second port, the method also includes: the root node sends a third message, where the third message is used to request node information of the N nodes; and the root node receives N second response messages corresponding to the third message.

[0022] Based on the above technical solution, after the root node receives the second message through the second port and obtains the path information of the ring network based on the second message, the root node can obtain the node information of each node through the interaction of the third message and N second response messages, so that the root node can subsequently determine and issue the ring networking configuration based on the node information of each node.

[0023] Optionally, the third message and the N second response messages corresponding to the third message may be implemented through a variety of protocol messages, such as XLDP messages, GRASP messages, etc., which are not limited here.

[0024] In a possible implementation of the first aspect, the N nodes include a first node, and the first node corresponds to one of the N second response messages; the third message and one of the N second response messages satisfy at least one of the following: the third message includes request information for requesting the first node to support a ring breaking capability, and one of the N second response messages includes the ring breaking capability information supported by the first node; or, the third message includes request information for requesting the first node to support a ring networking identifier, and one of the N second response messages includes the ring networking identifier supported by the first node; or, the third message includes request information for requesting the first node to support a ring networking configuration, and one of the N second response messages includes the ring networking configuration supported by the first node.

[0025] Optionally, in the above technical solution, the number of the third message is not limited. For example, the third message may include one message, and the one message may carry at least one of the request information for requesting the ring breaking capability supported by the first node, the request information for requesting the ring networking identifier supported by the first node, and the request information for requesting the ring networking configuration supported by the first node. For another example, the third message may include two or more message fragments, and carry at least one of the request information for requesting the ring breaking capability supported by the first node, the request information for requesting the ring networking identifier supported by the first node, and the request information for requesting the ring networking configuration supported by the first node through the two or more message fragments.

[0026] Based on the above technical solution, the first node can be any one of the N nodes on the path of the ring network except the root node, wherein the second response message sent by the first node to the third message can include at least one of the above items, so that the root node can obtain the node information of the first node based on the message to improve the flexibility of the implementation of the solution.

[0027] Optionally, when one of the N second response messages includes the loop destruction capability information supported by the first node, one of the N second response messages also includes at least one of the following: the MAC address of the first node, the port information of the input port of the first node, and the port information of the output port of the first node.

[0028] Optionally, the ring networking configuration supported by the first node includes at least one of the following: a ring networking identifier supported by the first node, a MAC address of the first node, control virtual local area network (VLAN) information, input port information of the first node, port role information of the input port of the first node, output port information of the first node, role information of the output port of the first node, starting VLAN information, ending VLAN information, an instance ID between the starting VLAN and the ending VLAN, and fragmentation information of the configuration information carried by one of the N second response messages.

[0029] In a possible implementation of the first aspect, after the root node receives the second message through the second port, the method also includes: the root node sends a fourth message, the fourth message including the configuration information of the N nodes in the ring networking; the root node receives N third response messages corresponding to the fourth message.

[0030] Based on the above technical solution, after the root node receives the second message through the second port and obtains the path information of the ring network based on the second message, the root node can send the configuration information of the node in the ring network to each node through the fourth message, and obtain information through N third response messages that each node has successfully received / successfully applied the configuration information.

[0031] Optionally, the fourth message and the N third response messages corresponding to the fourth message may be implemented through a variety of protocol messages, such as XLDP messages, GRASP messages, etc., which are not limited here.

[0032] Optionally, the configuration information of the N nodes in the ring networking includes at least one of the following: a ring networking ID corresponding to the ring networking, a MAC address of the N nodes, control VLAN information, start VLAN information, end VLAN information, an instance ID between the start VLAN and the end VLAN, and fragmentation information of the VLAN information carried by the fourth message.

[0033] Optionally, one or more of the ring networking ID corresponding to the ring networking, the MAC address of the root node, and the control VLAN information can be carried in a basic type length value (Basic TLV) configuration. In addition, one or more of the start VLAN information, the end VLAN information, the instance ID between the start VLAN and the end VLAN, and the fragmentation information of the VLAN information carried by the fourth message can be carried in a virtual local area network instance type length value (Ins-VLAN TLV) configuration.

[0034] Optionally, in the above technical solution, the number of the fourth message is not limited. For example, the fourth message may include one message, and the one message may carry the Basic TLV configuration and the Ins-VLAN TLV configuration. For another example, when the amount of data corresponding to the BasicTLV is large, the fourth message may include two or more message fragments, and the Basic TLV configuration is carried through the two or more message fragments. For another example, when the amount of data corresponding to the Ins-VLAN TLV configuration is large, the fourth message may include two or more message fragments, and the Ins-VLAN TLV configuration is carried through the two or more message fragments.

[0035] The third message may include two or more messages, and carry at least one of request information for requesting the first node to support the loop breaking capability, request information for requesting the first node to support the ring networking identifier, and request information for requesting the first node to support the ring networking configuration.

[0036] In a possible implementation of the first aspect, before the root node sends a first message through a first port, the method also includes: the root node receives first information from a controller, and the first information is used to indicate a path for detecting a ring network; after the root node receives a second message through a second port, the method also includes: the root node sends second information to the controller, and the second information is used to indicate a path for detecting the ring network.

[0037] Based on the above technical solution, the root node can send a first message based on the first information, that is, the root node can detect the path of the wake-up network based on the scheduling or control of the controller, and the root node can also send second information to the controller to indicate the path of the ring network, so that the controller can determine and issue the ring networking configuration based on the second information.

[0038] Optionally, in the above technical solution, after the root node receives N first response messages corresponding to the first message, the root node may also send the N first response messages to the controller.

[0039] Optionally, in the above technical solution, the process of the root node sending a third message to request the node information of the N nodes can also be implemented based on the scheduling or control of the controller, and the root node can also send N second response messages corresponding to the third message to the controller.

[0040] Optionally, in the above technical solution, the configuration information of the N nodes in the ring network contained in the fourth message sent by the root node may come from the controller, that is, the controller may determine and issue the ring network configuration based on the path indicated by the second information sent by the root node.

[0041] The second aspect of the present application provides a communication method for ring networking, which is executed by a first node, or the method is executed by some components in the first node (such as a processor, a chip or a chip system, etc.), or the method is implemented by a logic module or software that can realize all or part of the functions of the first node. In the second aspect and its possible implementation, the method is described as an example of being executed by the first node, wherein the first node is a device such as a router, a switch, and a virtual machine. In the method, the first node receives a fifth message through a third port, the fifth message is a message obtained after the first message is updated K times, the first message is used to detect the path of the ring networking, the first message includes the port information of the first port of the root node, and K is a natural number; the first node sends a sixth message through a fourth port, the sixth message is a message obtained after the fifth message is updated, and the sixth message includes the port information of the first port, the port information of the third port, and the port information of the fourth port.

[0042] Based on the above technical solution, the fifth message received by the first node through the third port is a message obtained after the first message is updated K times, and the first message is used to detect the path of the ring network. Thereafter, the sixth message sent by the first node through the fourth port is a message obtained after the fifth message is updated (that is, the sixth message is a message obtained after the first message is updated K+1 times). In other words, in the ring networking scenario, the root node sends a first message for detecting the path of the ring network. After receiving the first message, other nodes on the path can add their respective port information to the first message to further forward the update of the first message, so that the second message received by the root node is obtained after the first message is updated N times, and the second message contains the port information of the N nodes. Thus, the root node realizes the automatic detection of the path of the ring network through message interaction. Compared with the manual configuration by operation and maintenance personnel, it can save manpower and material resources and improve processing efficiency.

[0043] Optionally, the fifth message and the sixth message both include information about the number of hops over which the messages have been transmitted.

[0044] Optionally, the fifth message and the sixth message both include loop destruction capability information for the root node.

[0045] Optionally, the source MAC addresses of the fifth message and the sixth message are both the MAC address of the root node.

[0046] It should be understood that K+1 is less than or equal to N, or, K is less than N.

[0047] In a possible implementation manner of the second aspect, K is greater than 0, and the fifth message and the sixth message further include port information of K nodes between the root node and the first node on the path.

[0048] Based on the above technical solution, when K is greater than 0, K nodes may be included between the root node and the first node on the path, and the fifth message may be a message obtained after the first message is updated K times by the K nodes respectively. Accordingly, the K nodes may add the port information of each node into the updated message during the message update process. For this purpose, the fifth message and the sixth message also include the port information of the K nodes between the root node and the first node on the path.

[0049] In a possible implementation manner of the second aspect, the method further includes: the first node sending a first response message corresponding to the fifth message to the root node.

[0050] Based on the above technical solution, the first node can also send a first response message corresponding to the fifth message to the root node, so that the root node can obtain the first node's response to the first message for detecting the path of the ring network based on the first response message.

[0051] In addition, before the root node obtains the port information of the nodes on the path of the ring network through the second message, the root node may not know the number of nodes and port information on the path. For this reason, the root node can also perform mutual verification on the port information of the first node carried by the second message based on the first response message corresponding to the first message to ensure that the root node obtains accurate path information of the ring network through detection.

[0052] Optionally, the first response message includes at least one of the following: the media access control MAC address of the first node, loop breaking capability information of the first node, input port information of the first node, output port information of the first node, the number of hops between the first port and the input port of the first node, port information on the path between the first port and the input port of the first node, the number of hops that the first response message has not yet been transmitted on the path of the ring networking, and the port information that the first response message has not yet been transmitted on the path of the ring networking.

[0053] In a possible implementation of the second aspect, after the first node sends the sixth message through the fourth port, the method also includes: the first node receives a third message, where the third message is used to request node information of the first node; and the first node sends a second response message corresponding to the third message.

[0054] Based on the above technical solution, the first node can also receive a third message for requesting the node information of the first node, and the first node can also send a second response message corresponding to the third message to the root node. Thus, the root node can obtain the node information of the first node through the interaction of the third message and the second response message, so that the root node can subsequently determine and issue the ring networking configuration based on the node information of each node.

[0055] Optionally, the third message and the second response message satisfy at least one of the following: the third message includes request information for requesting the loop destruction capability supported by the first node, and the second response message includes the loop destruction capability information supported by the first node; or, the third message includes request information for requesting the ring networking identifier supported by the first node, and the second response message includes the ring networking identifier supported by the first node; or, the third message includes request information for requesting the ring networking configuration supported by the first node, and the second response message includes the ring networking configuration supported by the first node.

[0056] Optionally, when the second response message includes the loop destruction capability information supported by the first node, the second response message also includes at least one of the following: the MAC address of the first node, the port information of the ingress port of the first node, and the port information of the egress port of the first node; and / or, the ring networking configuration supported by the first node includes at least one of the following: the ring networking identifier supported by the first node, the MAC address of the first node, the control VLAN information, the ingress port information of the first node, the port role information of the ingress port of the first node, the egress port information of the first node, the role information of the egress port of the first node, the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the configuration information carried by the fifth message.

[0057] In a possible implementation of the second aspect, after the first node sends the sixth message through the fourth port, the method also includes: the first node receives a fourth message, the fourth message including configuration information of the first node in the ring networking; the first node sends a third response message corresponding to the fourth message.

[0058] Based on the above technical solution, the first node can also receive the configuration information of the first node in the ring networking through the fourth message, and feedback to the root node through the third response message that the first node has successfully received / successfully applied the configuration information.

[0059] Optionally, the configuration information of the first node in the ring networking includes: the ring networking ID corresponding to the ring networking, the MAC address of the first node, control VLAN information, start VLAN information, end VLAN information, instance ID between the start VLAN and the end VLAN, and fragmentation information of the VLAN information carried by the fourth message.

[0060] The third aspect of the present application provides a communication device, which can implement the method in the first aspect or any possible implementation of the first aspect. The device includes a corresponding unit or module for executing the above method. The unit or module included in the device can be implemented by software and / or hardware. For example, the device can be a root node, or the device can be a component in the root node (such as a processor, a chip or a chip system, etc.), or the device can also be a logic module or software that can implement all or part of the root node functions.

[0061] The device includes a processing unit and a transceiver unit; the processing unit is used to determine a first message, the transceiver unit is used to send the first message through a first port, the first message is used to detect the path of the ring network, and the first message includes the port information of the first port; the transceiver unit is also used to receive a second message through a second port, the second message is obtained by updating the first message N times, the second message includes the port information of the first port and the port information of N nodes on the path except the root node, N is an integer greater than or equal to 1.

[0062] In a possible implementation manner of the third aspect, the transceiver unit is further used to receive N first response messages corresponding to the first message.

[0063] In a possible implementation of the third aspect, the N nodes include a first node, which corresponds to one of the N first response messages; one of the N first response messages includes at least one of the following: a medium access control (MAC) address of the first node, loop breaking capability information of the first node, input port information of the first node, output port information of the first node, the number of hops between the first port and the input port of the first node, port information on the path between the first port and the input port of the first node, the number of hops that one of the N first response messages has not yet been transmitted on the path of the ring networking, and the port information that one of the N first response messages has not yet been transmitted on the path of the ring networking.

[0064] In a possible implementation manner of the third aspect, the transceiver unit is further used to send a third message, where the third message is used to request node information of the N nodes; the root node receives N second response messages corresponding to the third message.

[0065] In a possible implementation of the third aspect, the N nodes include a first node, and the first node corresponds to one of the N second response messages; the third message and one of the N second response messages satisfy at least one of the following: the third message includes request information for requesting the first node to support a ring breaking capability, and one of the N second response messages includes the ring breaking capability information supported by the first node; or, the third message includes request information for requesting the first node to support a ring networking identifier, and one of the N second response messages includes the ring networking identifier supported by the first node; or, the third message includes request information for requesting the first node to support a ring networking configuration, and one of the N second response messages includes the ring networking configuration supported by the first node.

[0066] In a possible implementation of the third aspect, when one of the N second response messages includes the loop destruction capability information supported by the first node, one of the N second response messages also includes at least one of the following: the MAC address of the first node, the port information of the ingress port of the first node, and the port information of the egress port of the first node.

[0067] In a possible implementation of the third aspect, the ring networking configuration supported by the first node includes at least one of the following: a ring networking identifier supported by the first node, a MAC address of the first node, control virtual local area network (VLAN) information, ingress port information of the first node, port role information of the ingress port of the first node, egress port information of the first node, role information of the egress port of the first node, starting VLAN information, ending VLAN information, an instance ID between the starting VLAN and the ending VLAN, and fragmentation information of the configuration information carried by one of the N second response messages.

[0068] In a possible implementation of the third aspect, the transceiver unit is further used to send a fourth message, which includes configuration information of the N nodes in the ring networking; the root node receives N third response messages corresponding to the fourth message.

[0069] In a possible implementation of the third aspect, the configuration information of the N nodes in the ring networking includes at least one of the following: a ring networking ID corresponding to the ring networking, a MAC address of the N nodes, control VLAN information, start VLAN information, end VLAN information, an instance ID between the start VLAN and the end VLAN, and fragmentation information of the VLAN information carried by the fourth message.

[0070] In a possible implementation of the third aspect, the transceiver unit is also used to receive first information from the controller, and the first information is used to indicate the path of the detected ring network; the transceiver unit is also used to send second information to the controller, and the second information is used to indicate the path of the ring network.

[0071] In a fourth aspect of the present application, a communication device is provided, which can implement the method in the second aspect or any possible implementation of the second aspect. The device includes a corresponding unit or module for executing the above method. The unit or module included in the device can be implemented by software and / or hardware. For example, the device can be a first node, or the device can be a component in the first node (such as a processor, a chip or a chip system, etc.), or the device can also be a logic module or software that can implement all or part of the functions of the first node.

[0072] The device includes a processing unit and a transceiver unit; the transceiver unit is used to receive a fifth message through a third port, the fifth message is a message obtained after the first message is updated K times, the first message is used to detect the path of the ring network, the first message includes the port information of the first port of the root node, and K is a natural number; the processing unit is used to determine a sixth message, and the transceiver unit is also used to send a sixth message through a fourth port, the sixth message is a message obtained after the fifth message is updated, and the sixth message includes the port information of the first port, the port information of the third port, and the port information of the fourth port.

[0073] In a possible implementation manner of the fourth aspect, K is greater than 0, and the fifth message and the sixth message further include port information of K nodes between the root node and the first node on the path.

[0074] In a possible implementation manner of the fourth aspect, the transceiver unit is further used to send a first response message corresponding to the fifth message to the root node.

[0075] In a possible implementation of the fourth aspect, the first response message includes at least one of the following: the media access control MAC address of the first node, the loop breaking capability information of the first node, the input port information of the first node, the output port information of the first node, the number of hops between the first port and the input port of the first node, the port information on the path between the first port and the input port of the first node, the number of hops that the first response message has not yet been transmitted on the path of the ring networking, and the port information that the first response message has not yet been transmitted on the path of the ring networking.

[0076] In a possible implementation manner of the fourth aspect, the transceiver unit is further used to receive a third message, where the third message is used to request node information of the first node; the transceiver unit is further used to send a second response message corresponding to the third message.

[0077] In a possible implementation of the fourth aspect, the third message and the second response message satisfy at least one of the following: the third message includes request information for requesting the loop destruction capability supported by the first node, and the second response message includes the loop destruction capability information supported by the first node; or, the third message includes request information for requesting the ring networking identifier supported by the first node, and the second response message includes the ring networking identifier supported by the first node; or, the third message includes request information for requesting the ring networking configuration supported by the first node, and the second response message includes the ring networking configuration supported by the first node.

[0078] Optionally, when the second response message includes the loop destruction capability information supported by the first node, the second response message also includes at least one of the following: the MAC address of the first node, the port information of the ingress port of the first node, and the port information of the egress port of the first node; and / or, the ring networking configuration supported by the first node includes at least one of the following: the ring networking identifier supported by the first node, the MAC address of the first node, the control VLAN information, the ingress port information of the first node, the port role information of the ingress port of the first node, the egress port information of the first node, the role information of the egress port of the first node, the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the configuration information carried by the fifth message.

[0079] In a possible implementation of the fourth aspect, the transceiver unit is further used to receive a fourth message, which includes configuration information of the first node in the ring networking; the transceiver unit is also used to send a third response message corresponding to the fourth message.

[0080] In a possible implementation of the fourth aspect, the configuration information of the first node in the ring networking includes: the ring networking ID corresponding to the ring networking, the MAC address of the first node, the control VLAN information, the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the VLAN information carried by the fourth message.

[0081] A fifth aspect of an embodiment of the present application provides a communication device, comprising at least one processor, which is coupled to a memory; the memory is used to store programs or instructions; the at least one processor is used to execute the program or instructions so that the device implements the method described in the first aspect or any possible implementation method of the first aspect.

[0082] A sixth aspect of an embodiment of the present application provides a communication device, comprising at least one processor, which is coupled to a memory; the memory is used to store programs or instructions; the at least one processor is used to execute the program or instructions so that the device implements the method described in the second aspect or any possible implementation method of the second aspect.

[0083] A seventh aspect of an embodiment of the present application provides a communication device, including at least one logic circuit and an input / output interface; the logic circuit is used to execute the method described in the first aspect or any possible implementation method of the first aspect.

[0084] An eighth aspect of an embodiment of the present application provides a communication device, including at least one logic circuit and an input / output interface; the logic circuit is used to execute the method described in the second aspect or any possible implementation method of the second aspect.

[0085] A ninth aspect of an embodiment of the present application provides a computer-readable storage medium for storing computer execution instructions; when the computer execution instructions are executed by a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect; or, the processor executes the method described in the second aspect or any possible implementation of the second aspect.

[0086] The tenth aspect of the embodiments of the present application provides a computer program product (or computer program). When the computer program product is executed by a processor, the processor executes the method of the above-mentioned first aspect or any possible implementation of the first aspect; or, the processor executes the method of the above-mentioned second aspect or any possible implementation of the second aspect.

[0087] In the eleventh aspect of an embodiment of the present application, a chip system is provided, which includes at least one processor for supporting a communication device to implement the functions involved in the above-mentioned first aspect or any possible implementation of the first aspect, or for supporting a communication device to implement the functions involved in the above-mentioned second aspect or any possible implementation of the second aspect.

[0088] In a possible design, the chip system may also include a memory for storing program instructions and data necessary for the communication device. The chip system may be composed of a chip, or may include a chip and other discrete devices. Optionally, the chip system also includes an interface circuit, which provides program instructions and / or data for the at least one processor.

[0089] A twelfth aspect of an embodiment of the present application provides a communication system, which includes the communication device of the third aspect and the communication device of the fourth aspect, or the communication system includes the communication device of the fifth aspect and the communication device of the sixth aspect, or the communication system includes the communication device of the seventh aspect and the communication device of the eighth aspect.

[0090] Among them, the technical effects brought about by any design method in the third aspect to the twelfth aspect can refer to the technical effects brought about by different implementation methods in the above-mentioned first aspect to the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0092] Figure 2 Another schematic diagram of an application scenario provided by an embodiment of the present application;

[0093] Figure 3 A schematic diagram of a communication method applied to a ring network provided in an embodiment of the present application;

[0094] Figure 4 A schematic diagram of a message format provided in an embodiment of the present application;

[0095] Figure 5 Another schematic diagram of a communication method applied to a ring network provided in an embodiment of the present application;

[0096] Figure 6 Another schematic diagram of a message format provided in an embodiment of the present application;

[0097] Figure 7 A schematic diagram of a communication device provided in an embodiment of the present application;

[0098] Figure 8Another schematic diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0099] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0100] The terms "system" and "network" in the embodiments of the present application can be used interchangeably. "At least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B, which can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following (single)" or its similar expression refers to any combination of these items, including any combination of single (single) or plural (single). For example, "at least one of A, B and C" includes A, B, C, AB, AC, BC or ABC. And, unless otherwise specified, the ordinal words such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects.

[0101] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0102] It should be understood that in the present application, "when", "if" and "if" all mean that the device will take corresponding actions under certain objective circumstances, and do not limit the time, nor do they require that the device must have a judgment action when it is implemented, nor do they mean that there are other limitations.

[0103] In this application, unless otherwise specified, the same or similar parts between various embodiments or implementations can refer to each other. In each embodiment of this application, and each implementation method / implementation method / implementation method in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and each implementation method / implementation method / implementation method in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and each implementation method / implementation method / implementation method in each embodiment can be combined to form new embodiments, implementation methods, implementation methods or implementation methods according to their inherent logical relationships. The implementation methods of this application described below do not constitute a limitation on the scope of protection of this application.

[0104] To facilitate understanding of the method provided in the embodiment of the present application, the system architecture of the method provided in the embodiment of the present application is described below. It is understandable that the system architecture described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application.

[0105] See also Figure 1 , is a schematic diagram of the architecture of the communication system provided in the embodiment of the present application. Figure 1 As shown, the system includes multiple network devices (or nodes), such as network device 101, network device 102, network device 103, network device 104 and network device 105, as well as other network devices that may exist.

[0106] Optional, in Figure 1 In the figure, network device 101, network device 102, network device 103, network device 104 and network device 105 are devices such as routers, switches, and virtual machines.

[0107] exist Figure 1 In the communication system shown, the networking mode of different network devices can be a ring topology network (referred to as ring networking). Among them, ring networking can save optical fiber resources and is widely used in various scenarios, such as campus networks, industrial Internet operation technology (OT) networks, Internet protocol radio access networks (IPRAN) networks, etc. In the communication process of the ring network, node redundancy protection or link redundancy protection can be achieved through the ring physical topology. For example, in Figure 1 In the ring-shaped communication link formed by the different network devices shown, if the link between a certain network device and another adjacent network device fails, the communication link can still continue to transmit messages. Exemplarily, taking the communication process between network device 101 and network device 102 as an example, if the communication link between the network device 101 and the network device 102 does not fail, the network device 101 can communicate with the network device 102 through the direct link. In the case that the communication link between the network device 101 and the network device 102 fails, the network device 101 may not be able to communicate with the network device 102 through the direct link, but the network device 101 can communicate with the network device 2 through the links between the network device 105, the network device 104, and the network device 103 in sequence.

[0108] In a ring network, service traffic should be guided to avoid loops, because once a loop is formed, a broadcast storm may be formed, which will waste bandwidth and storage resources, and may cause device restarts, network shocks, etc. In the ring network scenario, traffic loops can be avoided by configuring a loop-breaking protocol, for example, the loop-breaking protocol may include Ethernet ring protection switching (ERPS), medium redundancy protocol (MRP), etc.

[0109] For example, in Figure 1 In the communication system shown, the network device 101 may have two communication ports, one communication port (eg, port 1 ) is connected to the network device 102 , and the other port (eg, port 2 ) is connected to the network device 105 .

[0110] If the loop breaking protocol is not used for protection, the message sent by network device 101 through port 1 will be received by port 2 of network device 101 after being transmitted by network device 102, network device 103, network device 104, and network device 105, and port 2 will repeat the above transmission process through port 1 again, thereby forming a broadcast storm.

[0111] If protection is performed through a loop breaking protocol, port 1 of network device 101 or port 2 of network device 101 can be set as a blocking port through controller configuration or manual configuration. In the normal message transmission process (such as the normal idle (IDLE) state of the link defined by ERPS), the blocking port is closed by default, that is, messages cannot be transmitted to avoid the above-mentioned broadcast storm. In the case of link failure between other nodes (such as link failure protection (protection) defined by ERPS), the ports at both ends of the faulty link are blocked, and the blocking port is switched to open, which can be used to transmit messages to achieve node redundancy protection or link redundancy protection.

[0112] However, in the current ring networking scenario, the configuration information related to the ring breaking protocol of each node needs to be manually configured by the operation and maintenance personnel. Figure 1 As shown in the example of different network devices communicating through ERPS, the configuration information includes but is not limited to the protocol version, the configuration of the blocked port, the port information of each node, etc. This method will not only waste manpower and material resources, but also lead to low processing efficiency.

[0113] In order to solve the above problems, the present application provides a communication method and related equipment applied to a ring network, which is used to realize automatic detection of the path of the ring network through message interaction.

[0114] As an example scenario, Figure 2 The illustrated scenario is a schematic diagram of a scenario of a communication method provided in the present application and applied to a ring network.

[0115] exist Figure 2 In the figure, the root node, node i (i is 1...K, K+2...N, etc., K is a natural number, and N is an integer greater than K) and each node in the first node can be a router, a switch, a virtual machine and other devices. Among them, the root node can include at least two ports for communication, for example, the port for communication between the root node and node 1 is the first port, and the port for communication between the root node and node N is the second port. Moreover, the message sent by the first port of the root node can be received by the second port of the root node after being transmitted by N nodes including node 1...node K, the first node (the first node can be understood as node K+1), node K+2...node N. Correspondingly, the first node can also include at least two ports. The first port of the root node can communicate with the eastbound interface of the first node through node 1...node K. The eastbound interface can be called the input port of the first node, the third port mentioned later, etc. Similarly, the westbound interface of the first node can communicate with the second port of the root node through node K+2...node N. The westbound interface can be called the output port of the first node, the fourth port mentioned later, etc. In other words, in Figure 2 In the ring networking scenario shown, the nodes on the path of the ring networking include a root node and N nodes.

[0116] It should be noted that in the present application, the input port (for example, the second port of the first node, the third port of the first node, etc.) can be replaced by an east port, an ERPS east port (in the ring network path), an XLDP east port (based on XLDP), a GRAPS east port (based on GRAPS), etc.; similarly, the output port (for example, the first port of the first node, the fourth port of the first node, etc.) can be replaced by a west port, an ERPS west port (in the ring network path), an XLDP west port (based on XLDP), a GRAPS west port (based on GRAPS), etc.

[0117] It should be understood that Figure 2In the following embodiments, any node among the N nodes is taken as the first node as an example. For example, when the value of K is 0, it can be regarded as the first node among the N nodes, that is, there is no other node between the first port of the root node and the third port of the first node (that is, node 1 in the figure...node K does not exist). For another example, when the value of K is greater than 0 and K is less than N-1, there is at least one node (for example, node K) between the root node and the first node. For another example, when the value of K is N-1, the first node can be regarded as the Nth node among the N nodes, that is, there is no other node between the first port of the root node and the third port of the first node (that is, node N in the figure...node K+2 does not exist).

[0118] For ease of understanding, the following Figure 3 In the technical solution shown, an example is given where K is greater than 1 and K is less than N-2. Figure 3 In the technical solution shown, the first node is used as the K+1th node, and the first port of the root node sends the first message in step S301, and can perform K update processing on the first message in sequence through K nodes (i.e., node 1...node K) (i.e., Figure 3 After obtaining the fifth message through the node processing of step S302 in step S303, the third port of the first node can receive the fifth message in step S303; and after obtaining the sixth message through the node processing of step S305 on the fifth message by the first node (the message processing can be regarded as the K+1th update processing performed on the first message), the fourth port of the first node can send the sixth message in step S304. Thereafter, after node K+2...node N performs the node processing of step S305 on the sixth message (the node processing can be regarded as the K+2th to Nth update processing performed on the first message), a second message is obtained, and node N can send the second message in step S306, so that the second port of the root node receives the second message.

[0119] As can be seen from the above description, the value of K can be 0, in which case, nodes 1...node K in the diagram do not exist, that is, step S302 may not be executed, and the first message sent by the root node in step S301 is the same message as the fifth message received by the first node in step S303. The value of K can be N-1, in which case, nodes N...node K+2 in the diagram do not exist, that is, step S305 may not be executed, and the sixth message sent by the first node in step S304 is the same message as the second message received by the root node in step S306.

[0120] Optionally, in Figure 2In the ring networking scenario shown, in addition to the root node and N nodes, a controller (or network management equipment, network management system, network management software, analyzer, etc.) may also be included. The controller may be a software / hardware system that manages each node in the network. The controller may communicate with each node, and send configurations to each node or receive information reported by each node according to user settings.

[0121] See also Figure 3 , is a schematic diagram of a communication method applied to a ring network provided in the present application, the method comprising the following steps.

[0122] S301. The root node sends a first message through a first port, wherein the first message is used to detect a path of a ring network, and the first message includes port information of the first port.

[0123] S302. Node 1 to Node K perform node processing.

[0124] It should be noted that, in step S302, Figure 2 As can be seen from the application scenario shown, the node 1 directly connected to the root node can receive the first message in step S301. Thereafter, the node 1 can perform node processing on the first message, that is, when the node 1 determines that the first message is used to detect the path of the ring network, the node 1 can update the first message with its own port information (including input port information and output port information), and obtain and send the update result after the first update of the first message (recorded as update message_1).

[0125] Correspondingly, node 2 can receive the update message _1, and node 2 can perform node processing on the update message _1, that is, when node 2 determines that the update message _1 is used to detect the path of the ring network, node 2 can update the update message _1 with its own port information (including input port information and output port information), and obtain and send the update result after the second update of the first message (recorded as update message _2).

[0126] By analogy, the node processing performed by node K can refer to the node processing of node 1 and node 2 above to obtain the update result after the Kth update (recorded as update message _K), and the update message _K is the fifth message.

[0127] S303. The first node receives a fifth message through the third port. The fifth message is a message obtained after the first message is updated K times. The first message is used to detect the path of the ring network. The first message includes the port information of the first port of the root node.

[0128] S304. The first node sends a sixth message, wherein the sixth message is a message obtained by updating the fifth message, and the sixth message includes the port information of the first port, the port information of the third port, and the port information of the fourth port.

[0129] It can be understood that, when K is greater than 1, the fifth message in step S303 and the sixth message in step S304 may both include port information from node 1 to node K.

[0130] S305. Node K+1 to node N perform node processing.

[0131] It should be noted that, in step S302, Figure 2 It can be seen from the application scenario shown that the node K+2 directly connected to the first node can receive the sixth message in step S304, wherein the sixth message can be regarded as the message obtained by the first message after the K+1 update process. Correspondingly, in step S305, during the process of node K+2 to node N performing node processing, it can be regarded that the node K+2 to node N performs the K+2th to Nth update process to obtain the second message, that is, the second message is regarded as the message obtained by performing the Nth update process on the first message. Among them, the K+2th to Nth update process can refer to the 1st to Kth update process in step S302.

[0132] S306. The root node receives a second message, wherein the second message is obtained by updating the first message N times, and the second message includes the port information of the first port and the port information of N nodes on the path except the root node, where N is an integer greater than or equal to 1.

[0133] based on Figure 3In the technical solution shown, the first message sent by the root node through the first port in step S301 is used to detect the path of the ring network. After that, after the first message is transmitted through N nodes on the path of the ring network, in step S306, the root node can receive the second message through the second port, and the second message includes the port information of the first port and the port information of the N nodes on the path except the root node. In other words, in the ring networking scenario, the root node sends the first message for detecting the path of the ring network through the first port. After receiving the first message, the other N nodes on the path can add their respective port information to the first message to further forward the update of the first message, so that the second message received by the root node through the second port is obtained by the first message after N times of update processing, and the second message contains the port information of the N nodes. Thus, the root node realizes the automatic detection of the path of the ring network through the message interaction. Compared with the manual configuration by the operation and maintenance personnel, it can save manpower and material resources and improve the processing efficiency.

[0134] In one possible implementation, Figure 3 In the technical solution shown, the method further includes: the root node receives N first response messages corresponding to the first message. The N first response messages corresponding to the first message can be understood as that after the N nodes other than the root node on the path of the ring network receive the first message, the N nodes respectively send N first response messages to the root node. That is, the N nodes respectively correspond to the N first response messages, or the N nodes correspond to the N first response messages one by one.

[0135] Thus, the root node can also receive N first response messages corresponding to the first message, so that the root node can obtain the responses of the N nodes to the first message for detecting the path of the ring network based on the N first response messages corresponding to the first message. In addition, before the root node obtains the port information of the nodes on the path of the ring network through the second message, the root node may not know the number of nodes and port information of the nodes on the path. For this reason, the root node can also mutually verify the port information of the N nodes carried by the second message based on the N first response messages corresponding to the first message, so as to ensure that the root node obtains accurate path information of the ring network through detection.

[0136] Optionally, the first message is used to detect the path of the ring network, and accordingly, the first message may also be referred to as a detection message, a path detection message, a topology detection (Detect Topo) message, etc. Similarly, any response message in the N first response messages corresponding to the first message may also be referred to as a detection response message, a path detection response message, a topology detection response (Detect Topo Response) message, etc.

[0137] Optionally, the first message may be a multicast message or a broadcast message.

[0138] It should be noted that in the above implementation process, the first message, the message after one or more updates of the first message (for example, the fifth message, the sixth message, the second message, etc.) and the first response message can be implemented through a variety of protocol messages, such as extremely lean discovery protocol (XLDP) message, generic autonomic signaling protocol (GRASP) message, etc., which are not limited here.

[0139] As an implementation example, the first message, the message after the first message is updated once or multiple times, and the first response message is an XLDP message as an example for description. Figure 4 As shown, the XLDP message may include Figure 4 The following fields are shown: destination address (DA), source address (SA), ethernet type (ETH Type), message type (Msg Type), extremely lean discovery protocol protocol data unit (XLDP PDU), frame check sequence (FCS).

[0140] Alternatively, if Figure 4 As shown, in the XLDP PDU, a variety of flexible and variable information can be carried in the form of one or more types of length values ​​(TLVs). For example, in a level 1 TLV, a TLV type field, a TLV type length field, and a TLV type value field can be included. Similarly, in a level 2 TLV, a TLV type field, a TLV type length field, and a TLV type value field can be included.

[0141] In the above implementation process, after the root node sends the first message, in order to enable each node to clearly know that the received message is used to detect the path of the ring network, the XLDP PDU in the XLDP message can be designed with fields, so as to indicate that the message is used to detect the path of the ring network through the value of the field. The fields involved in the XLDP message are described below.

[0142] Exemplarily, in the first-level TLV of the XLDP message, the TLV type field may be implemented in the manner shown in Table 1.

[0143] Table 1

[0144]

[0145] As shown in Table 1, through the TLV type field of the first-level TLV of the XLDP message, the root node and N nodes can clearly know that the received message is a message for detecting the path of the ring network, or the root node and N nodes can clearly know that the received message is used to detect the path response of the ring network.

[0146] As another implementation example, the first message, the message after one or more update processing of the first message, and the first response message are GRASP messages as examples for explanation. Figure 5 As shown, the GRASP message may include Figure 5 The following fields are shown: Ethernet header, Internet Protocol (IP) header, User Datagram Protocol (UDP) header, and signaling protocol message.

[0147] Optionally, in Figure 5 The signaling protocol message field shown may carry one or more of the following subfields: message type (Msg-Type), session identifier (Session-ID), object name (Obj-name) (used to configure the object name), quantity (Len) (used to configure the number of object key-value pairs), object key-value pair 1 (Obj-key1, Obj-val1) (Obj-key is used to configure the object key, Obj-val is used to configure the object value), object key-value pair m (Obj-keym, Obj-valm), where m is greater than or equal to 1.

[0148] Exemplarily, in a GRASP message, one value of the message type (Msg-Type) can be used to indicate that the GRASP message is used to "detect the path of the ring network", and another value of the message type (Msg-Type) can be used to indicate that the GRASP message is used to "detect the path response of the ring network".

[0149] It should be understood that this application Figure 4 or Figure 5 In the message format shown, the order of different fields is not limited. Figure 4 or Figure 5 The order of different fields in the message format shown is only an implementation example. Figure 4 or Figure 5 The order of different fields in the message format shown can also be other field orders, which are not limited here. Figure 4 or Figure 5 The different fields in the message format shown can be implemented independently or in combination.

[0150] In addition, the present application does not limit the values ​​of different fields in the message format shown in the relevant tables involved in Table 1 (or other tables appearing later, such as Table 2, Table 3, etc.), wherein the fields of different fields in the relevant tables are only an implementation example. Among them, the values ​​of the fields of different fields in the relevant tables can also be other values, which are not limited here. In addition, the different fields in the relevant tables can be implemented independently or jointly.

[0151] Optionally, as shown in Table 1, the first message and the message after the first message is updated once or multiple times may include the TLV type field of the first-level TLV of the XLDP message, and the TLV type field has a value of 1, which is used to indicate the path of the ring network detection. In addition, the message with the TLV type field having a value of 1 may also include other fields for implementing other functions, which will be described below in conjunction with the implementation of Table 2.

[0152] Table 2

[0153]

[0154] It can be understood that, in the example shown in Table 2, the "port information" field can be used to carry the port information of the root node and N nodes. In other words, the port information of the first port carried by the first message sent by the root node can be carried in the "port information" field of the first message, and the port information of the third port and the port information of the fourth port carried by the sixth message sent by the first node can also be carried in the "port information" field of the sixth message, and so on, other messages after one or more updates to the first message can carry port information through the "port information" field. Thus, the second message received by the root node in step S306 can obtain the port information of N nodes through the "port information" field and determine the path of the ring network.

[0155] In addition, in the example shown in Table 2, through the "source MAC" field, the receiver of the first message or the message after one or more updates of the first message can obtain the MAC address of the root node during the transmission of the first message on the path of the ring networking, so that the receiver can subsequently send a message to the root node based on the MAC address of the root node (for example, the first response message and the second response message or the third response message that may be involved later). For the root node, the TLV type field in the second message received by the root node through the second port takes a value of 1, but the root node can determine that the second message comes from the root node based on the "source MAC" field. For this reason, the root node can determine that the second message corresponds to the first message, and there is no need to respond to the second message.

[0156] In addition, in the example shown in Table 2, through the "ring breaking capability" field, during the transmission of the first message on the path of the ring network, the receiver of the first message or the first message after one or more updates can obtain the ring breaking capability information of the root node. For example, the ring breaking capability information can indicate whether ERPS is supported, whether MRP is supported, etc.

[0157] In addition, in the example shown in Table 2, through the "transmitted hop count information" field, during the transmission of the first message on the path of the ring network, the receiver of the first message or the first message after one or more updates can clearly know the number of hops between the receiver and the root node based on the hop count information.

[0158] Optionally, as shown in Table 1, the first response message may include the TLV type field of the first-level TLV of the XLDP message, and the TLV type field has a value of 2, which is used to indicate a response to detecting the path of the ring network. In addition, the message with the TLV type field having a value of 2 may also include other fields for implementing other functions, which will be described below in conjunction with the implementation of Table 3.

[0159] Table 3

[0160]

[0161]

[0162] Exemplarily, taking the first node as an example, the first node corresponds to one of the N first response messages; one of the N first response messages includes at least one item shown in Table 3:

[0163] The "Source MAC" field is used to indicate the MAC address of the first node, and can be used to send subsequent requests or configuration messages.

[0164] The "destruction capability" field is used to indicate the destructive capability information of the first node.

[0165] The "number of hops not yet transmitted" field, that is, the number of hops that one of the N first response messages has not yet transmitted on the path of the ring networking, can be used to guide the first response message to return to the root node.

[0166] The "path not yet transmitted" field, that is, the port information of one of the N first response messages that has not yet been transmitted on the path of the ring network, can be understood as reversing the received detection path node, stripping off the port information of a node in the point path each time it passes through a node, and accordingly, the "number of hops not yet transmitted" field decreases accordingly.

[0167] The "inbound port" field, namely the inbound port information of the first node, can be used to send subsequent requests or configuration messages.

[0168] The "outbound port" field, namely the outbound port information of the first node, can be used to send subsequent requests or configuration messages.

[0169] The “hop count information between the ingress port and the first port” field is used to indicate the hop count between the first port and the ingress port of the first node.

[0170] “The path between the ingress port and the first port” is used to indicate the port information on the path between the first port and the ingress port of the first node.

[0171] Similarly, for any one of the N nodes, after receiving the first message for detecting the path of the ring network, the any one node can also feedback its own node information, so that the root node can realize automatic detection of the path of the ring network through the first message and the second message, and the root node can also obtain relevant information of each node on the path through the N first response messages.

[0172] Optionally, it can be seen from the content of Table 3 above that for any of the N nodes, the first response message sent by the node can carry the port information of the node (including the "input port" field, "output port" field, "number of hops between the input port and the first port" field, "path between the input port and the first port", etc. in Table 3). Accordingly, after the root node receives N first response messages from N nodes, it can determine the path of the ring network based on the N first response messages. To this end, Figure 3In the technical solution shown, the root node may not execute step S306 (or the second message received by the root node in step S306 does not carry the port information of the N nodes), and accordingly, the root node can determine the path of the ring network based on the received N first response messages. Thus, the root node can realize automatic detection of the path of the ring network by interacting with the first message and the N first response messages, which can save manpower and material resources and improve processing efficiency compared to manual configuration by operation and maintenance personnel.

[0173] In one possible implementation, Figure 3 In the implementation process shown, after the root node receives the second message through the second port in step S306, the method may further include: the root node sends a third message, the third message is used to request the node information of the N nodes; the root node receives N second response messages corresponding to the third message. Specifically, after the root node receives the second message through the second port and obtains the path information of the ring network based on the second message, the root node can obtain the node information of each node through the interaction of the third message and the N second response messages, so that the root node can subsequently determine and issue the ring network configuration based on the node information of each node.

[0174] Optionally, the third message and the N second response messages corresponding to the third message may be implemented through a variety of protocol messages, such as XLDP messages, GRASP messages, etc., which are not limited here.

[0175] Optionally, the third message may be a multicast message or a broadcast message.

[0176] As an implementation example, here, the third message and the N second response messages corresponding to the third message are taken as XLDP messages. The third message and the N second response messages corresponding to the third message may include one or more of the fields shown in Table 4.

[0177] Table 4

[0178]

[0179] In other words, the third message may include one or more fields of the TLV type value of the first-level TLV shown in Table 4, 44, 46, and 48. The N second response messages may include one or more fields of the TLV type value of the first-level TLV shown in Table 4, 45, 47, and 49. As an implementation example, the first node may be any node of the N nodes on the path of the ring network except the root node. Taking the first node as an example, the first node corresponds to one of the N second response messages; the third message and one of the N second response messages satisfy at least one of the following:

[0180] The third message includes the field "The TLV type value of the first-level TLV is 44" in Table 4, that is, the third message includes request information for requesting the destructive capability supported by the first node; accordingly, one of the N second response messages includes the field "The TLV type value of the first-level TLV is 45" in Table 4, which is used to indicate the destructive capability information supported by the first node.

[0181] The third message includes the field "The TLV type value of the first-level TLV is 46" in Table 4, that is, the third message includes request information for requesting the ring networking identifier supported by the first node; accordingly, one of the N second response messages includes the field "The TLV type value of the first-level TLV is 47" in Table 4, which is used to indicate the ring networking identifier supported by the first node.

[0182] The third message includes the field "TLV type value of the first-level TLV is 48" in Table 4, that is, the third message includes the request information for requesting the ring networking configuration supported by the first node; accordingly, one of the N second response messages includes the field "TLV type value of the first-level TLV is 49" in Table 4, which is used to indicate the ring networking configuration supported by the first node. Optionally, in the case where one of the N second response messages includes the field "TLV type value of the first-level TLV is 49" in Table 4, if the ring networking configuration supported by the first node needs to be sent through two or more message fragments, the root node can also confirm the two or more message fragments, that is, the field "TLV type value of the first-level TLV is 50" in Table 4.

[0183] Optionally, the third message is used to request the node information of the N nodes. Accordingly, the third message may configure the same group of request information for the N nodes, so that the N nodes can obtain the request information based on the same group of request information. Alternatively, the third message may configure N groups of request information for the N nodes, so that the N nodes obtain their respective request information based on the N groups of request information. Among them, a group of request information may include one or more of the fields "TLV type value of the first-level TLV is 44" in Table 4, "TLV type value of the first-level TLV is 46" in Table 4, and "TLV type value of the first-level TLV is 46" in Table 4.

[0184] Optionally, in the above technical solution, the number of the third message is not limited. For example, the third message may include one message, and the one message may carry at least one of the request information for requesting the ring breaking capability supported by the first node, the request information for requesting the ring networking identifier supported by the first node, and the request information for requesting the ring networking configuration supported by the first node. For another example, the third message may include two or more message fragments, and carry at least one of the request information for requesting the ring breaking capability supported by the first node, the request information for requesting the ring networking identifier supported by the first node, and the request information for requesting the ring networking configuration supported by the first node through the two or more message fragments.

[0185] As an implementation example, in Table 4, the field with the TLV type value of 45 / 49 / of the first-level TLV contained in the second response message can also carry a second-level TLV, so as to carry more detailed information through the second-level TLV, which will be exemplified by Table 5 below.

[0186] Table 5

[0187]

[0188] As an implementation example, the first node may be any node among the N nodes on the path of the ring network except the root node. The following description is made by taking the first node as an example in combination with the field implementation of Table 5.

[0189] For example, for the field "TLV type value of the first-level TLV is 45", there may be one or more fields of "TLV type of the second-level TLV", including:

[0190] The field "TLV type value of the secondary TLV is 1" in Table 5 is used to indicate the request information of the loop destruction capability supported by the first node.

[0191] The field "TLV type value of the secondary TLV is 2" in Table 5 is used to indicate the MAC address of the first node.

[0192] The field "TLV type value of the secondary TLV is 3" in Table 5 is used to indicate the port information of the ingress port of the first node.

[0193] The field "TLV type value of the secondary TLV is 4" in Table 5 is used to indicate the port information of the egress port of the first node.

[0194] For another example, for the field "TLV type value of the first-level TLV is 49", there may be one or more fields of "TLV type of the second-level TLV", including:

[0195] The field "TLV type value of the secondary TLV is 1" in Table 5 is used to indicate the ring networking identifier supported by the first node.

[0196] The field "TLV type value of the secondary TLV is 2" in Table 5 is used to indicate the MAC address of the first node.

[0197] The field "TLV type value of the secondary TLV is 3" in Table 5 is used to indicate the control VLAN information of the first node.

[0198] The field "TLV type value of the secondary TLV is 4" in Table 5 is used to indicate the port information of the ingress port of the first node.

[0199] The field "TLV type value of the secondary TLV is 5" in Table 5 is used to indicate the port role information of the inbound port of the first node. For example, when the value of this field is 0, it indicates that the port role is a common port; when the value of this field is 1, it indicates that the port role is a ring protection link owner (RPL owner) port; when the value of this field is 2, it indicates that the port role is a ring protection link owner neighbor (RPL owner neighbor) port.

[0200] The field "TLV type value of the secondary TLV is 6" in Table 5 is used to indicate the port information of the egress port of the first node.

[0201] The field "TLV type value of the secondary TLV is 7" in Table 5 is used to indicate the port role information of the egress port of the first node.

[0202] The field "TLV type value of secondary TLV is 8" and the field "TLV type value of secondary TLV is 9" in Table 5 are used to indicate the fragmentation information of the message, that is, the fragmentation information of the configuration information carried by the second response message sent by the first node.

[0203] The field "TLV type value of the secondary TLV is 10" in Table 5 is used to indicate instance VLAN (Ins-VLAN) information, including but not limited to: start VLAN information, end VLAN information, instance ID between the start VLAN and the end VLAN, etc.

[0204] Optionally, the Ins-VLAN may be replaced by a service VLAN.

[0205] In one possible implementation, Figure 3In the technical solution shown, after the root node receives the second message through the second port in step S306, the method further includes: the root node sends a fourth message, the fourth message includes the configuration information of the N nodes in the ring network; the root node receives N third response messages corresponding to the fourth message. Specifically, after the root node receives the second message through the second port and obtains the path information of the ring network based on the second message, the root node can send the configuration information of the node in the ring network to each node through the fourth message, and learns through the N third response messages that each node has successfully received / successfully applied the configuration information.

[0206] Optionally, the fourth message and the N third response messages corresponding to the fourth message may be implemented through a variety of protocol messages, such as XLDP messages, GRASP messages, etc., which are not limited here.

[0207] Optionally, the fourth message may be a multicast message or a broadcast message.

[0208] Optionally, the configuration information of the N nodes in the ring networking includes at least one of the following: a ring networking ID corresponding to the ring networking, a MAC address of the N nodes, control VLAN information, start VLAN information, end VLAN information, an instance ID between the start VLAN and the end VLAN, and fragmentation information of the VLAN information carried by the fourth message.

[0209] Optionally, one or more of the ring networking ID corresponding to the ring networking, the MAC address of the root node, and the control VLAN information can be carried in a basic type length value (Basic TLV) configuration. In addition, one or more of the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the VLAN information carried by the fourth message can be carried in a virtual local area network instance type length value (Ins-VLAN TLV) configuration. As an implementation example, the fourth message and the N third response messages corresponding to the fourth message are taken as XLDP messages as an example, and the fourth message and the N third response messages corresponding to the fourth message can include one or more of the fields shown in Table 6.

[0210] Table 6

[0211]

[0212] In other words, the fourth message may include one or more fields of the first-level TLV with TLV type values ​​of 51 and 53 shown in Table 6. The N third response messages may include one or more fields of the first-level TLV with TLV type values ​​of 52 and 54 shown in Table 6.

[0213] Optionally, the fourth message includes the configuration information of the N nodes in the ring network, and accordingly, the fourth message can configure N groups of configuration information for the N nodes, so that the N nodes obtain their own configuration information based on the N groups of configuration information. Among them, a group of configuration information can include one or more of the fields of "TLV type value of the first-level TLV is 51" in Table 6 and "TLV type value of the first-level TLV is 53" in Table 6.

[0214] As an implementation example, in Table 6, the field with TLV type values ​​51 and 53 of the first-level TLV contained in the second response message can also carry a second-level TLV to carry more detailed information through the second-level TLV, which will be exemplified by Table 7 below.

[0215] Table 7

[0216]

[0217]

[0218] As an implementation example, the first node may be any node among the N nodes on the path of the ring network except the root node. The following description is made taking the first node as an example in combination with the field implementation of Table 7.

[0219] For example, for the field "TLV type value of the first-level TLV is 51", there may be one or more fields of "TLV type of the second-level TLV", including:

[0220] The field of "TLV type value of secondary TLV is 1" in Table 7 is used to indicate the ring network ID corresponding to the ring network.

[0221] The field "TLV type value of the secondary TLV is 2" in Table 7 is used to indicate the destination AMC address of the message, that is, the MAC address of the first node.

[0222] The field of "TLV type value of secondary TLV is 3" in Table 7 is used to indicate control VLAN information.

[0223] The field "TLV type value of the secondary TLV is 4" in Table 7 is used to indicate the port information of the ingress port of the first node.

[0224] The field "TLV type value of the secondary TLV is 5" in Table 7 is used to indicate the port role information of the ingress port of the first node.

[0225] The field "TLV type value of the secondary TLV is 6" in Table 7 is used to indicate the port information of the egress port of the first node.

[0226] The field "TLV type value of the secondary TLV is 7" in Table 7 is used to indicate the port role information of the egress port of the first node.

[0227] For example, for the field "TLV type value of the first-level TLV is 53", there may be one or more fields of "TLV type of the second-level TLV", including:

[0228] The field of "TLV type value of secondary TLV is 1" in Table 7 is used to indicate the ring network ID corresponding to the ring network.

[0229] The field "TLV type value of the secondary TLV is 2" and the field "TLV type value of the secondary TLV is 3" in Table 7 are used to indicate the fragmentation information of the message.

[0230] The field "TLV type value of the secondary TLV is 4" in Table 7 is used to indicate instance VLAN information, including but not limited to the start VLAN information, the end VLAN information, and the instance ID between the start VLAN and the end VLAN.

[0231] It should be noted that the parameters in Table 7 may be determined by the root node based on previously received messages (eg, the second message, the first response message, the second response message, etc.) or pre-configured information.

[0232] In an implementation example, taking ERPS as the loop-breaking protocol running in the ring network, the ERPS ID can be planned and configured in advance on the root node, so that the root node can determine the ring network ID, control VLAN information, etc. in Table 7 based on the planning and configuration of the pre-configured ERPS ID.

[0233] In another implementation example, the root node can obtain the port information of N nodes and the MAC addresses of N nodes based on the second message, the first response message, the second response message, etc., and the root node can determine the MAC addresses of the N nodes as the destination MAC addresses in Table 7.

[0234] Optionally, in the above technical solution, the number of the fourth message is not limited. For example, the fourth message may include one message, and the one message may carry the Basic TLV configuration and the Ins-VLAN TLV configuration. For another example, when the amount of data corresponding to the BasicTLV configuration is large, the fourth message may include two or more message fragments, and carry the Basic TLV configuration through the two or more message fragments. For another example, when the amount of data corresponding to the Ins-VLAN TLV configuration is large, the fourth message may include two or more message fragments, and carry the Ins-VLAN TLV configuration through the two or more message fragments. Exemplarily, Figure 6 The implementation process shown is taken as an example, which includes the following steps.

[0235] S601a. ​​The root node sends a Basic TLV configuration (ie, a message included in the fourth message) to the first node.

[0236] S601b. The first node sends a response of the Basic TLV configuration to the root node (ie, a message included in the third response message).

[0237] S602a. The root node sends the Ins-VLAN TLV configuration (ie, a message included in the fourth message) to the first node. The number of fragments is 2 and the current fragment is the first fragment ((Frag=2, cur frag=1)).

[0238] S602b. The first node sends a response to the Ins-VLAN TLV configuration (ie, a message included in the third response message) to the root node, wherein the response is a response (ACK) corresponding to (Frag=2, cur frag=1).

[0239] S603a. The root node sends the Ins-VLAN TLV configuration (ie, a message included in the fourth message) to the first node, wherein the number of fragments is 2 and the current fragment is the second fragment ((Frag=2, cur frag=2)).

[0240] S603b. The first node sends a response to the Ins-VLAN TLV configuration (ie, a message included in the third response message) to the root node, wherein the response is a response (ACK) corresponding to (Frag=2, cur frag=2).

[0241] exist Figure 6 In the implementation example shown, the Basic TLV configuration is not fragmented and the Ins-VLAN TLV configuration is transmitted through two fragments. In actual applications, the Basic TLV configuration and the Ins-VLAN TLV configuration can be transmitted through one message, or the Basic TLV configuration and the Ins-VLAN TLV configuration can each be transmitted through two or more fragments, which is not limited here.

[0242] Optionally, in the case where the Basic TLV configuration is transmitted through two or more fragments, the root node may send the Ins-VLAN TLV configuration to the N nodes after receiving responses (ACKs) from the N nodes corresponding to their respective message fragments.

[0243] Optionally, when any one of the Basic TLV configuration and the Ins-VLAN TLV configuration is transmitted through two or more fragments, if the root node determines that a response (ACK) corresponding to a message fragment has not been received, the root node can determine that a node processing has failed. To this end, the root node can report alarm information to facilitate manual troubleshooting by operation and maintenance personnel.

[0244] In one possible implementation, Figure 3 In the technical solution shown, before the root node sends the first message through the first port in step S301, the method may also include: the root node receives the first information from the controller, the first information is used to indicate the path of the ring network; in addition, after the root node receives the second message through the second port in step S306, the method may also include: the root node sends the second information to the controller, the second information is used to indicate the path of the ring network. Specifically, the root node can send the first message based on the first information, that is, the root node can detect the path of the wake-up network based on the scheduling or control of the controller, and the root node can also send the second information for indicating the path of the ring network to the controller, so that the controller can determine and send the ring network configuration based on the second information to adapt to the centralized scenario implemented by the controller.

[0245] Optionally, in the above centralized scenario, after the root node receives N first response messages corresponding to the first message, the root node may also send the N first response messages to the controller.

[0246] Optionally, in the above-mentioned centralized scenario, the process of the root node sending a third message to request the node information of the N nodes can also be implemented based on the scheduling or control of the controller, and the root node can also send N second response messages corresponding to the third message to the controller.

[0247] Optionally, in the above-mentioned centralized scenario, the configuration information of the N nodes in the ring network contained in the fourth message sent by the root node may come from the controller, that is, the controller may determine and issue the ring network configuration based on the path indicated by the second information sent by the root node.

[0248] Optionally, in Figure 3 In the technical solution shown, there is no need to configure a controller, or the controller does not participate in Figure 3 In this case, the implementation scenario of the root node and N nodes can be called a distributed scenario.

[0249] The above describes the embodiment of the present application from the perspective of the method. The following describes the communication device provided in the embodiment of the present application from the perspective of the device.

[0250] See also Figure 7 An embodiment of the present application provides a communication device, and the communication device 700 can implement the functions of the communication device (ie, the root node or the first node) in the above method embodiment, and thus can also achieve the beneficial effects possessed by the above method embodiment.

[0251] The communication device 700 includes a transceiver unit 701 and a processing unit 702 .

[0252] In the case where the communication device 700 is used to implement the function of the root node in the aforementioned embodiment, the communication device 700 includes the following implementation process. The processing unit 702 is used to determine a first message, the transceiver unit 701 is used to send a first message through a first port, the first message is used to detect the path of the ring network, and the first message includes the port information of the first port; the transceiver unit 701 is also used to receive a second message through a second port, the second message is obtained by updating the first message N times, and the second message includes the port information of the first port and the port information of N nodes on the path except the root node, where N is an integer greater than or equal to 1.

[0253] In a possible implementation, the transceiver unit 701 is further configured to receive N first response messages corresponding to the first message.

[0254] In one possible implementation, the N nodes include a first node, which corresponds to one of the N first response messages; one of the N first response messages includes at least one of the following: a medium access control (MAC) address of the first node, loop breaking capability information of the first node, input port information of the first node, output port information of the first node, the number of hops from the first port to the input port of the first node, port information on the path between the first port and the input port of the first node, the number of hops that one of the N first response messages has not yet been transmitted on the path of the ring networking, and the port information that one of the N first response messages has not yet been transmitted on the path of the ring networking.

[0255] In a possible implementation, the transceiver unit 701 is further used to send a third message, where the third message is used to request the node information of the N nodes; the root node receives N second response messages corresponding to the third message.

[0256] In one possible implementation, the N nodes include a first node, which corresponds to one of the N second response messages; the third message and one of the N second response messages satisfy at least one of the following: the third message includes request information for requesting the first node to support a ring breaking capability, and one of the N second response messages includes the ring breaking capability information supported by the first node; or, the third message includes request information for requesting the first node to support a ring networking identifier, and one of the N second response messages includes the ring networking identifier supported by the first node; or, the third message includes request information for requesting the first node to support a ring networking configuration, and one of the N second response messages includes the ring networking configuration supported by the first node.

[0257] In one possible implementation, when one of the N second response messages includes the loop destruction capability information supported by the first node, one of the N second response messages also includes at least one of the following: the MAC address of the first node, the port information of the ingress port of the first node, and the port information of the egress port of the first node.

[0258] In one possible implementation, the ring networking configuration supported by the first node includes at least one of the following: a ring networking identifier supported by the first node, a MAC address of the first node, control virtual local area network (VLAN) information, ingress port information of the first node, port role information of the ingress port of the first node, egress port information of the first node, role information of the egress port of the first node, starting VLAN information, ending VLAN information, an instance ID between the starting VLAN and the ending VLAN, and fragmentation information of the configuration information carried by one of the N second response messages.

[0259] In a possible implementation, the transceiver unit 701 is further used to send a fourth message, where the fourth message includes configuration information of the N nodes in the ring networking; and the root node receives N third response messages corresponding to the fourth message.

[0260] In one possible implementation, the configuration information of the N nodes in the ring networking includes at least one of the following: a ring networking ID corresponding to the ring networking, a MAC address of the root node, control VLAN information, start VLAN information, end VLAN information, an instance ID between the start VLAN and the end VLAN, and fragmentation information of the VLAN information carried by the fourth message.

[0261] In a possible implementation, the transceiver unit 701 is also used to receive first information from the controller, where the first information is used to indicate a path for detecting a ring network; the transceiver unit 701 is also used to send second information to the controller, where the second information is used to indicate a path for detecting the ring network.

[0262] In the case where the communication device 700 is used to implement the function of the first node in the above-mentioned embodiment, the communication device 700 includes the following implementation process. The transceiver unit 701 is used to receive a fifth message through the third port, the fifth message is a message obtained after the first message is updated K times, the first message is used to detect the path of the ring network, the first message includes the port information of the first port of the root node, K is a natural number; the processing unit 702 is used to determine the sixth message, the transceiver unit 701 is also used to send a sixth message through the fourth port, the sixth message is a message obtained after the fifth message is updated, and the sixth message includes the port information of the first port, the port information of the third port, and the port information of the fourth port.

[0263] In a possible implementation manner, K is greater than 0, and the fifth message and the sixth message further include port information of K nodes between the root node and the first node on the path.

[0264] In a possible implementation, the transceiver unit 701 is further configured to send a first response message corresponding to the fifth message to the root node.

[0265] In one possible implementation, the first response message includes at least one of the following: the media access control MAC address of the first node, the loop breaking capability information of the first node, the input port information of the first node, the output port information of the first node, the number of hops between the first port and the input port of the first node, the port information on the path between the first port and the input port of the first node, the number of hops that the first response message has not yet been transmitted on the path of the ring networking, and the port information that the first response message has not yet been transmitted on the path of the ring networking.

[0266] In a possible implementation, the transceiver unit 701 is further used to receive a third message, where the third message is used to request the node information of the first node; the transceiver unit 701 is further used to send a second response message corresponding to the third message.

[0267] In one possible implementation, the third message and the second response message satisfy at least one of the following: the third message includes request information for requesting the loop destruction capability supported by the first node, and the second response message includes the loop destruction capability information supported by the first node; or, the third message includes request information for requesting the ring networking identifier supported by the first node, and the second response message includes the ring networking identifier supported by the first node; or, the third message includes request information for requesting the ring networking configuration supported by the first node, and the second response message includes the ring networking configuration supported by the first node.

[0268] Optionally, when the second response message includes the loop destruction capability information supported by the first node, the second response message also includes at least one of the following: the MAC address of the first node, the port information of the ingress port of the first node, and the port information of the egress port of the first node; and / or, the ring networking configuration supported by the first node includes at least one of the following: the ring networking identifier supported by the first node, the MAC address of the first node, the control VLAN information, the ingress port information of the first node, the port role information of the ingress port of the first node, the egress port information of the first node, the role information of the egress port of the first node, the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the configuration information carried by the fifth message.

[0269] In a possible implementation, the transceiver unit 701 is further used to receive a fourth message, where the fourth message includes configuration information of the first node in the ring networking; the transceiver unit 701 is further used to send a third response message corresponding to the fourth message.

[0270] In one possible implementation, the configuration information of the first node in the ring networking includes: the ring networking ID corresponding to the ring networking, the MAC address of the root node, the control VLAN information, the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the VLAN information carried by the fourth message.

[0271] It should be noted that the information execution process and other contents of each unit of the above-mentioned communication device 700 can be specifically referred to the description in the method embodiment shown in the above-mentioned application, and will not be repeated here.

[0272] The present application also provides a communication device 800, see Figure 8 As shown, Figure 8 A schematic diagram of the structure of a communication device 800 provided in an embodiment of the present application.

[0273] Optionally, the communication device 800 performs the function of the root node in any of the foregoing embodiments, and the communication device 900 performs the function of the first node in any of the foregoing embodiments. Alternatively, the communication device 800 performs the function of the first node in any of the foregoing embodiments, and the communication device 900 performs the function of the root node in any of the foregoing embodiments.

[0274] Attached Figure 8 The communication device 800 shown includes a memory 802 and at least one processor 801 .

[0275] Optionally, the processor 801 implements the method in the above embodiment by reading instructions stored in the memory 802, or the processor 801 may also implement the method in the above embodiment through internally stored instructions. In the case where the processor 801 implements the method in the above embodiment by reading instructions stored in the memory 802, the memory 802 stores instructions for implementing the method provided in the above embodiment of the present application.

[0276] Optionally, the at least one processor 801 is one or more CPUs, or a single-core CPU or a multi-core CPU.

[0277] Further optionally, at least one processor 801 may also be configured to execute the aforementioned Figure 7 The corresponding implementation process of the processing unit 702 in the illustrated embodiment and the corresponding beneficial effects achieved are not described in detail here.

[0278] The memory 802 includes but is not limited to RAM, ROM, EPROM, flash memory, or optical memory, etc. The memory 802 stores operating system instructions.

[0279] After the program instructions stored in the memory 802 are read by the at least one processor 801, the communication device performs corresponding operations in the aforementioned embodiments.

[0280] Optionally, attach Figure 8 The communication device shown also includes a network interface 803. The network interface 803 may be a wired interface, such as an FDDI or GE interface; the network interface 803 may also be a wireless interface. The network interface 803 is used to perform data transmission and reception in any of the above embodiments.

[0281] Further optionally, the network interface 803 can also be used to perform the aforementioned Figure 7 The corresponding implementation process of the transceiver unit 701 in the illustrated embodiment and the corresponding beneficial effects achieved are not described in detail here.

[0282] It should be understood that the network interface 803 has the functions of receiving data and sending data, and the functions of "receiving data" and "sending data" can be integrated in the same transceiver interface, or the functions of "receiving data" and "sending data" can be implemented in different interfaces respectively, which is not limited here. In other words, the network interface 803 may include one or more interfaces for implementing the functions of "receiving data" and "sending data".

[0283] After the processor 801 reads the program instructions in the memory 802 , other functions that the communication device 800 can execute can refer to the descriptions in the previous method embodiments.

[0284] Optionally, the communication device 800 further includes a bus 804 , and the processor 801 and the memory 802 are usually connected to each other via the bus 804 , and may also be connected to each other in other ways.

[0285] Optionally, the communication device 800 further includes an input / output interface 805, which is used to connect to an input device and receive relevant configuration information input by a user or other device that can be linked with the communication device 800 through the input device. The input device includes but is not limited to a keyboard, a touch screen, a microphone, and the like.

[0286] The communication device 800 provided in the embodiment of the present application is used to execute the methods performed by the communication devices (root nodes) provided in the above-mentioned various method embodiments and achieve corresponding beneficial effects.

[0287] For example, when the communication device 800 performs the function of the root node in the above embodiment, the first message sent by the communication device 800 through the first port is used to detect the path of the ring network. After that, after the first message is transmitted through N nodes on the path of the ring network, the root node can receive the second message through the second port, and the second message includes the port information of the first port and the port information of the N nodes on the path except the root node. In other words, in the ring networking scenario, the root node sends the first message for detecting the path of the ring network through the first port. After receiving the first message, the other N nodes on the path can add their respective port information to the first message to further forward the update of the first message, so that the second message received by the root node through the second port is obtained by the first message after N times of update processing, and the second message contains the port information of the N nodes. Thus, the root node realizes the automatic detection of the path of the ring network through the message interaction method, which can save manpower and material resources while improving the processing efficiency compared with the manual configuration method of the operation and maintenance personnel.

[0288] For another example, when the communication device 800 performs the function of the first node in the above embodiment, the fifth message received by the communication device 800 through the third port is a message obtained after the first message is updated K times, and the first message is used to detect the path of the ring network. Thereafter, the sixth message sent by the first node through the fourth port is a message obtained after the fifth message is updated (that is, the sixth message is a message obtained after the first message is updated K+1 times). In other words, in the ring networking scenario, the communication device 900 sends a first message for detecting the path of the ring network. After receiving the first message, other nodes on the path can add their respective port information to the first message to further forward the update of the first message, so that the second message received by the device 900 is obtained after the first message is updated N times, and the second message contains the port information of the N nodes. Thus, the device 900 realizes the automatic detection of the path of the ring network by message interaction. Compared with the manual configuration by the operation and maintenance personnel, it can save manpower and material resources and improve the processing efficiency.

[0289] Figure 8 The specific implementation methods of the communication device shown can refer to the descriptions in the aforementioned method embodiments, which will not be repeated here.

[0290] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0291] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A communication method applied to a ring network, characterized in that: include: The root node sends a first message through a first port, where the first message is used to detect a path of the ring network, and the first message includes port information of the first port; The root node receives a second message through a second port, where the second message is obtained by updating the first message N times, and the second message includes port information of the first port and port information of N nodes on the path except the root node, where N is an integer greater than or equal to 1.

2. The method according to claim 1, characterized in that The method further comprises: The root node receives N first response messages corresponding to the first message.

3. The method according to claim 2, characterized in that The N nodes include a first node, and the first node corresponds to one of the N first response messages; and one of the N first response messages includes at least one of the following: The media access control MAC address of the first node, the loop breaking capability information of the first node, the input port information of the first node, the output port information of the first node, the number of hops from the first port to the input port of the first node, the port information on the path between the first port and the input port of the first node, the number of hops that one of the N first response messages has not yet been transmitted on the path of the ring networking, and the port information that one of the N first response messages has not yet been transmitted on the path of the ring networking.

4. The method according to any one of claims 1 to 3, characterized in that: The first message and the second message satisfy at least one of the following: The first message and the second message both include information about the number of hops that the messages have been transmitted; or, The first message and the second message both include loop destruction capability information for the root node; or, The source MAC addresses of the first message and the second message are both the MAC address of the root node.

5. The method according to any one of claims 1 to 4, characterized in that: After the root node receives the second message through the second port, the method further includes: The root node sends a third message, where the third message is used to request node information of the N nodes; The root node receives N second response messages corresponding to the third message.

6. The method according to claim 5, characterized in that The N nodes include a first node, and the first node corresponds to one of the N second response messages; the third message and one of the N second response messages satisfy at least one of the following: The third message includes request information for requesting the first node to support the loop destruction capability, and one of the N second response messages includes the loop destruction capability information supported by the first node; or, The third message includes request information for requesting a ring networking identifier supported by the first node, and one of the N second response messages includes a ring networking identifier supported by the first node; or, The third message includes request information for requesting the ring networking configuration supported by the first node, and one of the N second response messages includes the ring networking configuration supported by the first node.

7. The method according to claim 6, characterized in that When one of the N second response messages includes the loop destruction capability information supported by the first node, one of the N second response messages further includes at least one of the following: a MAC address of the first node, port information of an inbound port of the first node, and port information of an outbound port of the first node; and / or, The ring networking configuration supported by the first node includes at least one of the following: The ring networking identifier supported by the first node, the MAC address of the first node, the VLAN information of the control virtual local area network, the input port information of the first node, the port role information of the input port of the first node, the output port information of the first node, the role information of the output port of the first node, the starting VLAN information, the ending VLAN information, the instance identifier ID between the starting VLAN and the ending VLAN, and the fragmentation information of the configuration information carried by one of the N second response messages.

8. The method according to any one of claims 1 to 7, characterized in that: After the root node receives the second message through the second port, the method further includes: The root node sends a fourth message, where the fourth message includes configuration information of the N nodes in the ring network; The root node receives N third response messages corresponding to the fourth message.

9. The method according to claim 8, characterized in that The configuration information of the N nodes in the ring network includes at least one of the following: The ring networking ID corresponding to the ring networking, the MAC addresses of the N nodes, the control VLAN information, the start VLAN information, the end VLAN information, the instance ID between the start VLAN and the end VLAN, and the fragmentation information of the VLAN information carried by the fourth message.

10. The method according to any one of claims 1 to 9, characterized in that: Before the root node sends the first message through the first port, the method further includes: The root node receives first information from the controller, where the first information is used to indicate a path for detecting a ring network; After the root node receives the second message through the second port, the method further includes: The root node sends second information to the controller, where the second information is used to indicate a path of the ring networking.

11. A communication method applied to a ring network, characterized in that: include: The first node receives a fifth message through the third port, where the fifth message is a message obtained after the first message is updated K times, the first message is used to detect a path of the ring network, the first message includes port information of the first port of the root node, and K is a natural number; The first node sends a sixth message through the fourth port, the sixth message is a message obtained by updating the fifth message, and the sixth message includes port information of the first port, the third port and the fourth port.

12. The method according to claim 11, characterized in that K is greater than 0, and the fifth message and the sixth message further include port information of K nodes between the root node and the first node on the path.

13. The method according to claim 11 or 12, characterized in that: The method further comprises: The first node sends a first response message corresponding to the fifth message to the root node.

14. The method according to claim 13, characterized in that The first response message includes at least one of the following: The media access control MAC address of the first node, the loop breaking capability information of the first node, the input port information of the first node, the output port information of the first node, the number of hops from the first port to the input port of the first node, the port information on the path between the first port and the input port of the first node, the number of hops that the first response message has not yet been transmitted on the path of the ring networking, and the port information that the first response message has not yet been transmitted on the path of the ring networking.

15. The method according to any one of claims 11 to 14, characterized in that The fifth message and the sixth message satisfy at least one of the following: The fifth message and the sixth message both include information on the number of hops that the message has been transmitted; or, The fifth message and the sixth message both include the loop destruction capability information for the root node; or, The source MAC addresses of the fifth message and the sixth message are both the MAC address of the root node.

16. The method according to any one of claims 11 to 15, characterized in that After the first node sends the sixth message through the fourth port, the method further includes: The first node receives a third message, where the third message is used to request node information of the first node; The first node sends a second response message corresponding to the third message.

17. The method according to claim 16, characterized in that The third message and the second response message satisfy at least one of the following: The third message includes request information for requesting the first node to support the loop destruction capability, and the second response message includes the loop destruction capability information supported by the first node; or, The third message includes request information for requesting a ring networking identifier supported by the first node, and the second response message includes a ring networking identifier supported by the first node; or, The third message includes request information for requesting the ring networking configuration supported by the first node, and the second response message includes the ring networking configuration supported by the first node.

18. The method according to claim 17, characterized in that When the second response message includes the loop destruction capability information supported by the first node, the second response message further includes at least one of the following: a MAC address of the first node, port information of an inbound port of the first node, and port information of an outbound port of the first node; and / or, The ring networking configuration supported by the first node includes at least one of the following: The ring networking identifier supported by the first node, the MAC address of the first node, the control VLAN information, the input port information of the first node, the port role information of the input port of the first node, the output port information of the first node, the role information of the output port of the first node, the starting VLAN information, the ending VLAN information, the instance ID between the starting VLAN and the ending VLAN, and the fragmentation information of the configuration information carried by the second response message.

19. The method according to any one of claims 11 to 18, characterized in that After the first node sends the sixth message through the fourth port, the method further includes: The first node receives a fourth message, where the fourth message includes configuration information of the first node in the ring network; The first node sends a third response message corresponding to the fourth message.

20. The method according to claim 19, characterized in that The configuration information of the first node in the ring network includes: The ring networking ID corresponding to the ring networking, the MAC address of the first node, the control VLAN information, the start VLAN information, the end VLAN information, the instance ID between the start VLAN and the end VLAN, and the fragmentation information of the VLAN information carried by the fourth message.

21. A communication device, characterized in that: Comprising modules for executing the method according to any one of claims 1 to 20.

22. A communication system, characterized in that: The system comprises a root node and a first node; wherein the root node is used to execute the method according to any one of claims 1 to 10, and the first node is used to execute the method according to any one of claims 11 to 20.

Citation Information

Patent Citations

  • Method for automatically discovering Ethernet ring and generating ring

    CN101610193A

  • Method and device for determining loop network

    CN106452862A

  • Mac address forwarding table updating method and device of ring network node

    WO2017124725A1