Method and station for preventing loop of Ethernet switching network in multi-management-control-plane communication
By using dynamic routing algorithms to extract and map port information in multi-control plane communication, combined with the port synchronization mechanism, the problem of loop formation is solved, low-cost and efficient network loop prevention and rapid convergence is achieved, and network stability and reliability are improved.
Patent Information
- Application Number
- CN202510476605.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-07-04
Smart Images

Figure CN120263718A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the technical field of transmission equipment communication network management, and particularly relates to a method and a site for preventing loops in an Ethernet switching network in multi-control plane communication. Background Art
[0002] With the continuous evolution of communication technologies, the scale and complexity of transmission equipment networks have increased significantly. A single transmission equipment network has multiple control planes that separately control management, control, services, etc. Since these control planes have different requirements for parameters such as rate and latency, and multi-plane signaling isolation is performed according to security requirements, each control plane has its own independent channel and network design. For example Figure 1 designed a routing plane and a service plane, and the signaling of the two planes is designed as different physically isolated signaling networks. The communication signaling of the two planes is carried by optical fibers between sites.
[0003] Control planes with high bandwidth and low latency requirements for the network, such as control planes and service planes related to dynamic services, are often designed as layer-2 Ethernet switching networks (forwarding packets based on MAC) or layer-3 networks with hard forwarding capabilities to meet the specification requirements. Among them, hard forwarding capability means that the route can be downloaded to the hardware for route-based packet forwarding. The layer-2 Ethernet switching network solution has lower construction and operation and maintenance costs, and the network configuration based on sites is relatively simple. By running a loop-breaking protocol, such as the STP spanning tree protocol, it is ensured that the network does not have loops, broadcast storms are avoided, and at the same time, network faults can be self-healed. For example Figure 1 In, for the service plane using a layer-2 Ethernet switching network, the loop-breaking protocol can logically break the loop to avoid broadcast storms. After disconnecting the logical channel formed between Site B and Site C, as shown at the red cross, the loop-breaking protocol can re-converge to ensure network self-healing. However, the loop-breaking protocol actually runs with slow convergence, poor reliability, and is not suitable for large network scales. The dynamic routing mechanism of the hard forwarding layer-3 network solution avoids the above disadvantages, but the construction and operation and maintenance costs are relatively high, the port-based configuration is complex and occupies more network resources, and the technical requirements for operation and maintenance personnel are also relatively high.
[0004] In view of this, in multi-control plane communication, it is necessary to propose a method for preventing loops in an Ethernet switching network to reduce the configuration complexity, construction, and operation and maintenance costs of the transmission equipment control plane. Summary of the Invention
[0005] To solve the above problems, the present disclosure provides a method and a site for preventing loops in an Ethernet switching network in multi-control plane communication. By extracting the necessary communication port information for loop prevention networking based on the network similarity between control planes and using this necessary communication port information to prevent loops, it is possible to reduce the configuration complexity, construction, and operation and maintenance costs of the transmission equipment control plane.
[0006] In a first aspect, a method for preventing loops in an Ethernet switching network in multi-control plane communication is provided, which is applied to each site in the Ethernet switching network and includes:
[0007] When the routing plane of the site generates or changes the routing information of the monitored network segment, it sends a layer-2 query message to the routing plane of the neighbor site. The routing plane is a control plane that runs a dynamic routing algorithm. The layer-2 query message contains the pre-configured monitored network segment IP for querying information related to the monitored network segment routing.
[0008] The routing plane of the site receives the layer-2 response message and extracts the associated communication port information related to the monitored network segment routing from the routing table of the local site and the layer-2 response message based on the pre-configured monitored network segment IP.
[0009] The routing plane of the site uses the pre-configured correspondence between the networking ports of the routing plane and the networking ports of the service plane to map the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane. The service plane is the control plane of other layer-2 Ethernet switching networks.
[0010] The routing plane of the site sends the necessary communication port information to the service plane of the site.
[0011] The service plane of the site processes the networking ports of the service plane according to the necessary communication port information, so that the service plane of the site dynamically adjusts the networking connection without running a loop-breaking protocol.
[0012] Further, based on the pre-configured monitored network segment IP, extracting the associated communication port information related to the monitored network segment routing from the routing table of the local site and the layer-2 response message includes:
[0013] Extract the primary port from the routing table of the local site. The primary port is the next-hop egress port from the local site to the monitored network segment IP, where the next-hop egress port refers to the preferred network port for a site to forward a message to a specified route for packet sending. From the content of the layer-2 response message, extract the secondary port. The secondary port is the specific connection port from the local site to each neighbor site, that is, the connection port of the local site corresponding to the next-hop egress port of the neighbor site to the monitored network segment IP.
[0014] Further, after extracting the associated communication port information related to the monitored network segment routing and before mapping the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane, it further includes:
[0015] The routing plane of the site uses the primary port, the secondary port, and the current time to generate the master-slave port summary information containing a time stamp.
[0016] The routing plane of the site determines that the master and slave ports in the currently generated master-slave port summary information are different from the master and slave ports in the master-slave port summary information generated during the previous routing change.
[0017] Furthermore, the required communication port information carries the timestamp;
[0018] The service plane of the site processes the networking ports of the service plane according to the required communication port information, including:
[0019] When the service plane of the site determines that the timestamp carried in the currently received required communication port information is newer than the timestamp carried in the previously saved required communication port information, it sets the port represented by the required communication port information to the non-blocking state and sets the other networking ports of the service plane to the blocking state. In the blocking state, no packets are sent or received at the port logical level.
[0020] Furthermore, it also includes:
[0021] Determine the abnormal port synchronization information and send the determined abnormal port synchronization information to the routing plane of this site. The abnormal port synchronization information includes: port number, changed port physical state, and port priority. The port included in the required communication port information is of high priority;
[0022] The routing plane of the site compares the occurrence timestamp in the currently received abnormal port synchronization information with the occurrence timestamp in the previously received abnormal port synchronization information, as well as the port physical state in the synchronization information and the current physical state of the corresponding port in the routing plane;
[0023] When the routing plane of the site determines that the occurrence timestamp in the currently received abnormal port synchronization information is newer, the physical states are inconsistent, there is no synchronization mark for the corresponding port, the port priority is high, and the physical state of this port in the service plane is closed, it blocks the corresponding port and sets the synchronization mark of the corresponding port, triggering the routing plane to refresh the routing.
[0024] Furthermore, it also includes:
[0025] When the routing plane of the site determines that the occurrence timestamp in the currently received abnormal port synchronization information is newer, the physical states are inconsistent, and there is a synchronization mark for the corresponding port, it sets the corresponding port to the non-blocking state and clears the synchronization mark of the corresponding port.
[0026] Furthermore, the service plane of the site determines the abnormal port synchronization information, including:
[0027] When the service plane of the site detects a change in the physical state of the communication port of the service plane, it organizes the abnormal port synchronization information based on the changed port; and / or
[0028] When it is determined that the physical state of the port included in the received necessary communication port information of this site is closed, organize abnormal port synchronization information based on the port with the closed physical state.
[0029] In a second aspect, a site is provided, including: a routing plane and a service plane. The routing plane is a control plane that runs a dynamic routing algorithm, and the service plane is a control plane for other layer-2 Ethernet switching networks. Among them:
[0030] The routing plane is used to send a layer-2 query message to the routing plane of the neighbor site when the monitoring network segment routing information is generated or changed. The layer-2 query message contains the pre-configured monitoring network segment IP and is used to query information related to the monitoring network segment routing; receive the layer-2 response message, and based on the pre-configured monitoring network segment IP, extract the associated communication port information related to the monitoring network segment routing from the routing table of this site and the layer-2 response message; use the corresponding relationship between the networking ports of the pre-configured routing plane and the networking ports of the service plane to map the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane; send the necessary communication port information to the service plane of this site.
[0031] The service plane is used to process the networking ports of the service plane according to the necessary communication port information, so that the service plane of the site can dynamically adjust the networking connection without running a loop-breaking protocol.
[0032] Further, the routing plane is specifically used to extract the master port from the routing table of this site, where the master port is the next-hop egress port from this site to the monitoring network segment IP, and the next-hop egress port refers to the preferred network port for a site to forward a packet to a specified route for packet sending; extract the slave port from the content of the layer-2 response message, where the slave port is the specific connection port from this site to each neighbor site, that is, the connection port of this site corresponding to the next-hop egress port of the neighbor site to the monitoring network segment IP.
[0033] Further, after extracting the associated communication port information related to the monitoring network segment routing, before mapping the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane, the routing plane of the site is also used to generate master-slave port summary information with a timestamp by using the master port, the slave port, and the current time; the routing plane of the site determines that the master-slave ports in the currently generated master-slave port summary information are different from the master-slave ports in the master-slave port summary information generated during the previous routing change.
[0034] Further, the necessary communication port information carries the timestamp;
[0035] The service plane is specifically used to set the port represented by the necessary communication port information to the non-blocking state and set other networking ports of the service plane to the blocking state when it is determined that the timestamp carried in the currently received necessary communication port information is newer than the timestamp carried in the previously saved necessary communication port information. In the blocking state, the port does not receive or send packets at the logical level of the port.
[0036] Furthermore, the service plane is also used to determine abnormal port synchronization information and send the determined abnormal port synchronization information to the routing plane of this site. The abnormal port synchronization information includes: port number, changed port physical state, port priority, and occurrence timestamp. The port included in the necessary communication port information is of high priority.
[0037] The routing plane is also used to compare the port physical state in the synchronization information with the current physical state of the corresponding port in the routing plane; when it is determined that the physical states are inconsistent, the corresponding port has no synchronization mark, the port priority is high, and the physical state of the port in the service plane is closed, block the corresponding port and set the synchronization mark of the corresponding port, triggering the routing plane to refresh the route.
[0038] The routing plane is also used to receive and judge the occurrence timestamp in the abnormal port synchronization information reported by the service plane: if it is older than the occurrence timestamp in the previously received abnormal port synchronization information, discard this expired abnormal port synchronization information.
[0039] Furthermore, the routing plane is also used to set the corresponding port to the non-blocking state and clear the synchronization mark of the corresponding port when it is determined that the occurrence timestamp in the currently received abnormal port synchronization information is new, the physical states are inconsistent, and the corresponding port has a synchronization mark.
[0040] Furthermore, the service plane is specifically used to organize abnormal port synchronization information based on the port where the physical state of the communication port of the service plane changes when it is detected; and / or organize abnormal port synchronization information based on the port with the physical state being closed when it is determined that the physical state of the port included in the received necessary communication port information of this site is closed.
[0041] In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;
[0042] The memory is used to store a computer program;
[0043] The processor is used to implement the steps of the above method when executing the program stored on the memory.
[0044] Fourth aspect, a computer storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are performed.
[0045] Compared with the prior art, the present disclosure has the following advantages:
[0046] 1. Based on the network similarity between multiple control planes, by using the associated communication port information related to the monitored network segment routing in the control plane running the dynamic routing algorithm, anti-loop design is carried out for the control plane using the layer-2 Ethernet switching network, avoiding the occurrence of broadcast storms, overall reducing the configuration complexity of the device and the forwarding hardware cost, and significantly reducing the construction cost and complexity of the control plane network solution with high bandwidth and low latency specifications.
[0047] 2. A port information synchronization and metric mechanism between multiple planes is designed, minimizing the frequency of topology changes in the layer-2 Ethernet switching network, achieving fast convergence and stability for dynamic network changes during the operation of the layer-2 Ethernet switching network, and improving communication quality.
[0048] Other features and advantages of the present disclosure will be described in the subsequent description, and some of them will be obvious from the description, or understood by implementing the present disclosure. The objectives and other advantages of the present disclosure can be realized and obtained through the structures pointed out in the description, claims, and drawings. Description of the Drawings
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0050] Figure 1 Shows a multi-control plane network schematic diagram of a transmission device in the background art;
[0051] Figure 2 Shows a flowchart of a method for preventing loops in an Ethernet switching network in multi-control plane communication according to an embodiment of the present disclosure;
[0052] Figure 3 Shows a multi-control plane network schematic diagram of a transmission device according to an embodiment of the present disclosure;
[0053] Figure 4 Shows a flowchart of a routing extraction and mapping port mechanism processing in a routing plane according to an embodiment of the present disclosure;
[0054] Figure 5The figure shows a processing flowchart of port synchronization and metric mechanism initiated by the service plane according to an embodiment of the present disclosure. Detailed implementation manners
[0055] An embodiment of the present disclosure provides a method for preventing loops in an Ethernet switching network in multi-control plane communication. As Figure 2 shown, it is applied to each site in the Ethernet switching network and includes the following steps 201 - step 205:
[0056] Step 201: When the routing plane of a site generates or changes the routing information of the monitored network segment, it sends a layer 2 query message to the routing plane of the neighbor site;
[0057] Among them, the routing plane is a control plane running a dynamic routing algorithm, and the layer 2 query message contains the pre-configured monitored network segment IP for querying information related to the monitored network segment routing;
[0058] Step 202: The routing plane of the site receives the layer 2 response message, and based on the pre-configured monitored network segment IP, extracts the associated communication port information related to the monitored network segment routing from the routing table of the local site and the layer 2 response message;
[0059] Step 203: The routing plane of the site uses the correspondence between the networking ports of the routing plane and the networking ports of the service plane pre-configured, and maps the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane; among them, the service plane is the control plane of other layer 2 Ethernet switching networks;
[0060] Step 204: The routing plane of the site sends the necessary communication port information to the service plane of the site;
[0061] Step 205: The service plane of the site processes the networking ports of the service plane according to the necessary communication port information, so that the service plane of the site dynamically adjusts the networking connection without running a loop-breaking protocol.
[0062] In view that a site as a transmission device has multiple control planes, and the control plane supporting the dynamic routing algorithm has already run the dynamic routing algorithm. Without adding additional resources and computing power, the control plane supporting the dynamic routing algorithm uses the network similarity with the control planes of other layer 2 Ethernet switching networks to dynamically extract the necessary communication port information for loop prevention networking from its own routing table entries and supply it to other layer 2 Ethernet switching network planes. That is, the control plane supporting the dynamic routing algorithm extracts the non-loop characteristics of a specific route from the database of the dynamic routing algorithm and supplies it to other layer 2 Ethernet switching network planes.
[0063] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
[0064] For ease of explanation, the control plane that sets and runs the dynamic routing algorithm in the sites of the transmission device network is called the routing plane, and the routing plane belongs to Layer 3; the control plane of the Layer 2 Ethernet switching network is called the service plane. See Figure 3 , and only one control plane of the Layer 2 switching network is taken as an example here for illustration. If there are multiple control planes of the Layer 2 Ethernet switching network, they can be implemented similarly.
[0065] First, the network similarity between the routing plane and the service plane is described: The routing plane and the service plane utilize different signaling channels of the site device boards. For example, the routing plane uses the Optical Supervisory Channel (OSC) of the site, and the service plane uses other optical layer channels such as the General Communications Channel (GCC) of the site to form the networks of their respective planes. The networks formed by the routing plane and the service plane are respectively managed by their own servers. The two planes are signaling-isolated, and the service plane is designed as a Layer 2 Ethernet switching network to meet the high-bandwidth and low-latency specifications. Since the sites managed by the two planes are the same, the two planes are similar in network topology.
[0066] As Figure 3 shown, the service plane is a Layer 2 Ethernet switching network and needs to avoid forming a logical loop to operate normally. In the physical topology with a loop, logical loop breaking is required (for example, the logical network line is broken by blocking the port1' ports of site B and site C), and the network can be quickly converged and restored in case of a network failure (for example, when an optical path failure occurs between site A and site B, it is necessary to detect and restore the port1' ports of site B and site C to the unblocked state).
[0067] The routing plane uses the dynamic routing algorithm running on itself or uses a routing algorithm instance running separately for the service plane to map and manage the ports of the associated service plane network. As Figure 3In addition to connecting to its own management server IP1, the networking routing plane also connects to the service plane management server IP2. It uses the dynamic routing protocol to calculate the network segment routing of the service plane management server IP2 and publishes it to the routing tables of each site in the routing plane: The routing extraction and mapping port mechanism processing flow analysis for each site's routing plane extracts the next-hop port of the network segment routing for the service plane management server IP2 in the local site's routing table, and interacts / summarizes with neighboring sites to obtain the connection port of the neighboring site whose next-hop for the network segment routing of the service plane management server IP2 is itself. This is mapped to the necessary communication port information for forming a non-loop network in the service plane and sent to the service plane of each site for implementation.
[0068] The following uses Site A as an example to illustrate the routing extraction and mapping port mechanism processing flow:
[0069] As Figure 4 shown, the routing extraction and mapping port mechanism processing flow initiated by the routing plane of Site A includes the following steps:
[0070] Step 1: Send the corresponding relationship between the networking ports of the service plane and the networking ports of the routing plane to the routing plane.
[0071] For example Figure 3 in Site A, the OSC ports Port1 and Port2 of the routing plane are respectively connected to the OSC ports of the routing planes of Site B and Site D. Correspondingly, the GCC ports Port1' and Port2' of the service plane of Site A are respectively connected to the GCC ports of the service planes of Site B and Site C. Then the port corresponding relationship between the routing plane and the service plane on Site A can be expressed as (P1--P1', P2--P2',...).
[0072] The corresponding relationship can be configured in the manual distribution method; in actual implementation, there are often fixed mapping relationships between the port mappings of some control planes, and no additional configuration and distribution are required.
[0073] Step 2: Configure the monitoring network segment IP, which is the routing of the monitoring network segment, to the routing plane control board of each site (specifically the routing plane control board of Site A). During the operation of the routing plane, it will extract the local and neighbor port information related to this monitoring network segment in the routing table accordingly.
[0074] In this Step 2, in the case where the routing plane is additionally connected to the service plane, the service plane management server IP can be selected as the monitoring network segment IP of the monitoring network segment routing, such as Figure 3 the IP2 in
[0075] Or, when both the routing plane server and the service plane server are connected to the same site, select the routing plane management server IP as the monitoring network segment IP, such as Figure 3The routing plane management server IP1 of site A in []. At this time, the routing plane control card of site A does not need to add extra network cables to connect to the service plane server.
[0076] Step 3: When there is a change in the routing table, the routing algorithm running on the routing plane of site A triggers detection, and sends out layer 2 query messages (the content includes its own port information such as P1 connecting to the neighbor and the monitored network segment IP) from each connection port of the routing plane to the routing plane control card of the neighbor site, to query whether the next-hop outgoing port of the monitored network segment route of the other party is itself. Among them, the next-hop outgoing port refers to the network port that a certain site preferentially uses for packet sending when forwarding a message to a specified route.
[0077] Step 4: The routing plane of site A collects the layer 2 response messages sent back by the neighbor sites, and summarizes and extracts from the message content which neighbor's monitored network segment route's next-hop outgoing interface is which port of its own, and according to the next-hop outgoing port pointed to by the monitored network segment IP in its own routing table, forms the master-slave port summary information R(IP) for the monitored network segment route.
[0078] For example, in the routing table of neighbor B connected to port P1, the next-hop of the monitored network segment route points to itself, and in the routing table of neighbor D connected to port P2, the next-hop of the monitored network segment route points to itself...
[0079] At this time, R(IP) {MainPort(P0) + SlavePort(P1, P2,...) + timestamp}, where R(IP) represents the port summary of the network segment route for IP (such as the service plane management server IP), the main port MainPort is the next-hop outgoing port of site A itself to the monitored route (P0 corresponds to Figure 3 the Ethernet interface of the routing plane control card of site A in [] connecting to the service plane server), the slave port SlavePort is the connection port of site A to the neighbor sites where the next-hop of the monitored route outgoing port is (P1 and P2 correspond to Figure 3 Port1 and Port2 interfaces of the routing plane of site A in [] used to connect to site B and site D), and timestamp is the timestamp of this piece of information;
[0080] Step 5: The routing plane of site A compares the master-slave ports of R(IP) {MainPort(P0) + SlavePort(P1, P2,...) + timestamp} with the R(IP) generated and saved during the previous routing change:
[0081] If there is no change, discard the R(IP) information generated this time to avoid causing network oscillation in the service plane due to invalid processing in the service plane;
[0082] If there are changes, save the newly generated R(IP), and use the corresponding relationship in Step 1 to map and convert it to the corresponding port in the service plane, that is, R'(IP) {MainPort(P0') + SlavePort(P1', P1',....) + timestamp}, and send this information R'(IP) to the service plane through inter-plane communication; (P0' corresponds to Figure 3 the Ethernet interface of the service plane control board of Site A in Figure 3 connecting to the service plane management server, and P1' and P2' correspond to
[0083] the port1' and port2' interfaces of Site A's service plane in
[0084] connecting to Site B and Site D).
[0085] Step 6: The service plane of Site A in the initialization state defaults to setting the status of all communication ports in its own plane to blocked (blocking: the port does not send or receive packets at the logical level; the physical level status of the port is disabled). When receiving the R'(IP) information sent by the routing plane, determine whether the timestamp in the newly received R'(IP) information is newer than the timestamp of the previous information received and saved by itself:
[0086] If the received timestamp is older, consider it as expired information and discard it without processing;
[0087] If the received timestamp is newer or it is determined to be the first time received after power-on, go to Step 7.
[0088] Step 7: The service plane saves R'(IP) and sets the corresponding ports (P0', P1', P2',..) of this service plane to non-blocking status according to the port information in MainPort(P0') + SlavePort(P1', P2',....), and sets the ports not within the range of the R'(IP) port information to blocking status;
[0089] During the routing algorithm operation on the normal routing plane, detection is triggered when there are changes in the routing table. If it is found that a monitoring network segment route (the monitoring network segment IP configured in step 2) is generated, or the egress port of the next hop of the monitoring network segment route changes, the operations in steps 3 to 7 are repeated, realizing that the routing plane senses its own network changes and triggers dynamic network adjustment of the service plane, ensuring the convergence and stability of the layer 2 Ethernet switching network in the service plane.
[0090] In the solution of the present disclosure embodiment, combining the network similarity between the control plane running the dynamic routing algorithm and other layer 2 Ethernet switching network control planes, the monitoring network segment IP is accessed in the control plane running the dynamic routing algorithm. Each site in this control plane analyzes the changes in the monitoring network segment routing information generated by the shortest (or optimal) path algorithm of the dynamic routing protocol, initiates inter-site layer 2 packet interaction, extracts the associated communication ports involved in the monitoring network segment route, and then maps them to the necessary communication port information for loop prevention networking in other layer 2 Ethernet switching network control planes, and sends it to other layer 2 Ethernet switching network control planes to perform corresponding processing on the communication ports, enabling it to dynamically adjust the networking connection of the layer 2 Ethernet switching network plane without running a loop-breaking protocol and preventing the generation of logical loops.
[0091] The advantages of the layer 2 Ethernet switching network (forwarding packets based on MAC) are lower cost and relatively simple network configuration based on sites, which can meet the requirements of high bandwidth and low latency. However, the reliability and network scale are often greatly restricted: for the layer 2 Ethernet switching network plane, generally, a loop-breaking algorithm similar to the STP protocol is used, which often shows defects such as slow convergence of network changes (usually 30 seconds or more), large randomness of loop-breaking nodes, and poor operation stability in a communication network with a large network and multiple loops. These defects are related to the limitations of the loop-breaking protocol algorithm itself. Solving the above defects and achieving fast convergence and stability of the dynamic network changes during the operation of the layer 2 Ethernet switching network will greatly improve the performance indicators and application scope of the layer 2 Ethernet switching network. For this reason, based on the solution of the above-mentioned embodiment 1, the present disclosure provides a port synchronization and metric mechanism processing method to achieve fast convergence and stability of the dynamic network changes during the operation of the layer 2 Ethernet switching network. The port synchronization and metric mechanism processing method will be described below through the solution of embodiment 2.
[0092] Embodiment 2
[0093] In the second embodiment of the present disclosure, through communication between multiple planes of the same site, a communication port status fast synchronization and measurement mechanism is designed between the control plane of the layer-2 Ethernet switching network and the control plane running the dynamic routing algorithm, identifying and classifying the ports that affect the communication status of the layer-2 switching network, measuring the necessary scenarios for triggering the fast convergence of the control plane of the dynamic routing algorithm, and transmitting the port information after convergence refresh to the control plane of the layer-2 Ethernet switching network to correct the network configuration, ensuring that the physical state of the ports after the change in the layer-2 Ethernet switching network can converge quickly and stably, and reducing the network oscillation caused by unnecessary frequent refreshing.
[0094] The following takes the port synchronization and measurement mechanism processing flow initiated by the service plane of site A as an example for illustration.
[0095] The flowchart of this scenario is as Figure 5 shown:
[0096] Generally speaking, the routing plane and the service plane are in the same site, the network topologies are similar, and the corresponding communication ports on both sides, such as P1\P1', often transmit the communication information of their respective planes in the same physical line (such as different overheads or wavelengths of the fiber channel). When the physical line has problems, it will cause the corresponding ports of multiple planes to be interrupted. Of course, there are also special cases where the service plane is interrupted while the routing plane is normal (for example, only the port transceiver of the service plane is abnormal, resulting in the interruption of the port of the service plane). A port synchronization mechanism of the service plane is required to ensure the fast synchronization of the network states of both sides and measure and trigger the fast convergence of the networks of both sides as needed, avoiding the situation where the network problem of the service plane alone cannot be handled or problems occur on both sides but the routing plane detects slowly, resulting in untimely convergence, and also minimizing the network oscillation caused by frequent convergence. The method includes the following steps:
[0097] Step 1: The service plane detects that the physical state of a communication port in this plane has changed (for example, the state of a certain port P2' changes from physically open to physically closed), or after receiving the routing plane R'(IP) information, it is found that the port included in the R'(IP) information in itself is not in the physically open state, indicating that the physical states of the ports of the two planes are inconsistent, and then enter Step 2;
[0098] Step 2. For the ports with inconsistent physical status in step 1, the business plane compares whether the ports with inconsistent physical status are included in the master and slave ports in the R'(IP) information table (received or saved): if among the master and slave ports in the R'(IP) information table, for example, the P2' port included in the R'(IP) is physically closed, then the synchronization information is organized to send the port number, the changed port physical status, the priority, and the occurrence time (for example, the port number P2', the changed port physical status such as closed, high priority, and occurrence time) to the routing plane through inter-plane communication (where only the ports included in the R'(IP) information are high-priority ports, and the changes of these ports not only need to be synchronized to the routing plane but also need to be analyzed whether to immediately trigger the routing refresh of the routing plane); if not, it will not be processed.
[0099] Step 3: After receiving the synchronization information, the routing plane starts the measurement (including steps 3 to 6). First, it determines whether the occurrence time in the synchronization information is newer than the timestamp in the stored R (IP):
[0100] 1) If it is older than the timestamp in R(IP), it means it is expired information and is discarded without processing;
[0101] 2) If it is newer than the timestamp in R(IP), go to step 4.
[0102] Step 4: The routing plane compares the physical state of the changed port in the synchronization information to see if it is consistent with the current physical state of the corresponding port on the routing plane and whether a port synchronization flag is set.
[0103] The port synchronization flag is set, indicating that the physical status of the ports on the two planes were inconsistent before, and forced synchronization performed logical blocking on the routing plane port.
[0104] Case 1: The physical status of the ports is consistent and there is no synchronization mark, which means that the two planes are currently in the state of corresponding port synchronization and no special processing is required;
[0105] Case 2: If the physical status of the ports is consistent and there is a synchronization mark, it means that the corresponding port of the routing plane is currently physically consistent with the corresponding port of the business plane, but there was an inconsistency before and it was logically blocked. In this case, the routing plane immediately logically restores the sending and receiving of packets (logically unblocks) on its corresponding port (such as the business plane P2' corresponding to the routing plane's P2 port) and clears the synchronization mark on the port.
[0106] Case 3: The physical status of the port is inconsistent and there is no synchronization mark. Further determine the physical status of the port on the service plane in the synchronization information:
[0107] If it is physically opened, no processing is required and the current status of the routing plane is followed;
[0108] If it is in the physical state of being closed, proceed to Step 5.
[0109] Step 5: The routing plane immediately logically blocks the corresponding port of its own plane (such as the business plane P2' corresponding to the routing plane P2) (discarding and stopping the received and transmitted packets), sets a synchronization flag at this port, records the blocking state, and proceeds to Step 6.
[0110] Step 6: The routing plane further discriminates and detects the priority of this port in the business plane recorded in the synchronization information.
[0111] Among them, a high priority indicates that this port affects the existing business plane network; a non-high priority indicates that this port does not affect the existing business plane network.
[0112] If the port priority is high, the routing protocol actively shuts down the logical interface corresponding to this port or deletes the neighbor information of this port, ensuring that the routing protocol in the routing plane immediately initiates the flooding algorithm to recalculate the route;
[0113] If the port priority is not high, there is no need to immediately initiate the flooding algorithm for refreshing.
[0114] The flooding algorithm is an existing technology of the routing protocol, that is, a mechanism for full-network notification and synchronization after a port or neighbor change occurs in the traditional routing protocol. For example, when a port of the ospf protocol at a certain site goes down or ages, it first notifies its neighbor sites, and the neighbor sites will recalculate the route and then notify their neighbors until it spreads throughout the network.
[0115] For the subsequent processing triggered by the routing plane re-routing refresh after the synchronization mechanism is initiated, it is executed according to the routing extraction and mapping port mechanism processing flow initiated by the routing plane process of Site A in Embodiment 1.
[0116] The above solution can be carried out simultaneously on multiple control planes. Through a control plane running a dynamic routing protocol, it is possible to achieve loop prevention networking and fast convergence of dynamic network changes for the control planes of multiple layer 2 Ethernet switching networks (which may not run a loop-breaking or routing protocol), and it can also be used in combination with a loop-breaking protocol.
[0117] The present disclosure provides a method for preventing loops in an Ethernet switching network in a multi-control plane communication scenario of a transmission device. The control plane of the layer 2 Ethernet switching network applying the technical solution of the present disclosure operates more stably and sensitively than using a traditional loop-breaking protocol. And compared with the network solution of three-layer network hardware forwarding, the solution of the present disclosure reduces the configuration complexity and construction / operation and maintenance costs of the transmission device control plane while ensuring the same effect of high bandwidth and low latency in the control plane of the layer 2 Ethernet switching network, utilizes the existing resources of the communication network and is stable and reliable, and is applicable to the current mainstream multi-plane communication network architecture.
[0118] The steps of the present disclosure can support more complex mesh loop networks, application scenarios with more than two control planes, as well as various situations such as physical closed port detection and activation, low-priority port changes, and the corresponding port in the service plane of the logically blocked port in the routing plane resumes physical opening.
[0119] Based on the above method, an embodiment of the present disclosure also provides a site corresponding to the above method, including: a routing plane and a service plane, where:
[0120] The routing plane is used to send a layer 2 query message to the routing plane of the neighbor site when the routing information in the monitored network segment is generated or changed. The routing plane is a control plane running a dynamic routing algorithm. The layer 2 query message contains the pre-configured monitored network segment IP for querying information related to the monitored network segment routing; receive a layer 2 response message, and based on the pre-configured monitored network segment IP, extract the associated communication port information related to the monitored network segment routing from the routing table of this site and the layer 2 response message; use the corresponding relationship between the networking ports of the pre-configured routing plane and the networking ports of the service plane to map the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane, where the service plane is a control plane of other layer 2 Ethernet switching networks; send the necessary communication port information to the service plane of this site;
[0121] The service plane is used to process the networking ports of the service plane according to the necessary communication port information, so that the service plane of the site can dynamically adjust the networking connection without running a loop-breaking protocol.
[0122] Further, the routing plane is specifically used to extract the primary port from the routing table of this site, where the primary port is the next-hop outgoing port of this site to the monitored network segment IP, and the next-hop outgoing port refers to the preferred network port for a site to forward a message to a specified route for packet sending; extract the secondary port from the content of the layer 2 response message, where the secondary port is a specific connection port of this site to each neighbor site, that is, the connection port of this site corresponding to the next-hop outgoing port of the neighbor site to the monitored network segment IP.
[0123] Further, the routing plane is also used to generate timestamped primary and secondary port summary information using the primary port, secondary port, and current time after extracting the associated communication port information related to the monitored network segment routing and before mapping the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane; the routing plane of the site determines that the primary and secondary ports in the currently generated primary and secondary port summary information are different from the primary and secondary ports in the primary and secondary port summary information generated during the previous routing change.
[0124] Further, the necessary communication port information carries the timestamp;
[0125] The service plane of the site is specifically used to set the port represented by the necessary communication port information to the non-blocking state and set other networking ports of the service plane to the blocking state when it is determined that the timestamp carried in the currently received necessary communication port information is newer than the timestamp carried in the previously saved necessary communication port information. Among them, in the blocking state, no packets are sent or received at the logical level of the port.
[0126] Furthermore, the service plane is also used to determine the abnormal port synchronization information and send the determined abnormal port synchronization information to the routing plane of this site. The abnormal port synchronization information includes: port number, changed port physical state, port priority, and occurrence timestamp. Among them, the port included in the necessary communication port information has a high priority.
[0127] The routing plane is also used to compare the port physical state in the synchronization information with the current physical state of the corresponding port in the routing plane; when it is determined that the physical states are inconsistent, there is no synchronization mark for the corresponding port, the port priority is high, and the physical state of this port in the service plane is closed, block the corresponding port and set the synchronization mark of the corresponding port, triggering the routing plane to refresh the route.
[0128] The routing plane is also used to receive and judge the occurrence timestamp in the abnormal port synchronization information reported by the service plane: if it is older than the occurrence timestamp in the previously received abnormal port synchronization information, discard this expired abnormal port synchronization information.
[0129] Furthermore, the routing plane is also used to set the corresponding port to the non-blocking state and clear the synchronization mark of the corresponding port when it is determined that the occurrence timestamp in the currently received abnormal port synchronization information is new, the physical states are inconsistent, and the corresponding port has a synchronization mark.
[0130] Furthermore, the service plane of the site is specifically used to organize abnormal port synchronization information based on the port whose physical state has changed when detecting a change in the physical state of the communication port of the service plane; and / or organize abnormal port synchronization information based on the port whose physical state is closed when determining that the physical state of the port included in the received necessary communication port information of this site is closed.
[0131] Based on the same inventive concept as the above-disclosed content, correspondingly, the present disclosure also provides an electronic device. The electronic device according to the embodiment of the present disclosure includes at least one processor and at least one memory that are electrically connected. The memory is electrically connected to the processor. Among them, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.
[0132] It should be noted that the electrical connections between the above-mentioned units do not necessarily represent the connections between the circuits. Indirect connection methods can be applied to the embodiments of the present disclosure as long as the purpose of the present disclosure is achieved.
[0133] Based on the same inventive concept, the present disclosure also provides a computer storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0134] Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for preventing loops in an Ethernet switching network in multi-control plane communication, characterized in that Each site applied in the Ethernet switching network includes: When the routing plane of the site generates or changes the routing information of the monitored network segment, it sends a Layer 2 query message to the routing plane of the neighbor site. The routing plane is a control plane running a dynamic routing algorithm, and the Layer 2 query message contains the pre-configured monitored network segment IP for querying the routing-related information of the monitored network segment; The routing plane of the site receives the Layer 2 response message and extracts the associated communication port information related to the monitored network segment routing from the routing table of this site and the Layer 2 response message based on the pre-configured monitored network segment IP; The routing plane of the site uses the correspondence between the networking ports of the pre-configured routing plane and the networking ports of the service plane to map the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane. The service plane is the control plane of other Layer 2 Ethernet switching networks; The routing plane of the site sends the necessary communication port information to the service plane of this site; The service plane of the site processes the networking ports of the service plane according to the necessary communication port information, so that the service plane of the site can dynamically adjust the networking connection without running a loop-breaking protocol.
2. The method according to claim 1, wherein Based on the pre-configured monitored network segment IP, extracting the associated communication port information related to the monitored network segment routing from the routing table of this site and the Layer 2 response message includes: Extracting the primary port from the routing table of this site. The primary port is the next-hop egress port from this site to the monitored network segment IP, and the next-hop egress port refers to the preferred network port for a site to forward a message to a specified route for packet sending. Extracting the secondary port from the content of the Layer 2 response message. The secondary port is the connection port of this site corresponding to the next-hop egress port of the neighbor site to the monitored network segment IP.
3. The method according to claim 2, wherein Before mapping the extracted associated communication port information to the necessary communication port information for loop prevention networking in the service plane after extracting the associated communication port information related to the monitored network segment routing, it also includes: The routing plane of the site generates the master-slave port summary information with a timestamp using the primary port, secondary port, and current time; The routing plane of the site determines that the master-slave ports in the currently generated master-slave port summary information are different from the master-slave ports in the master-slave port summary information generated during the previous routing change.
4. The method according to claim 3, wherein The necessary communication port information carries the timestamp; The service plane of the site processes the networking ports of the service plane according to the necessary communication port information, including: When the service plane of the site determines that the timestamp carried in the currently received necessary communication port information is newer than the timestamp carried in the previously saved necessary communication port information, it sets the port represented by the necessary communication port information to the non-blocking state and sets the other networking ports of the service plane to the blocking state. In the blocking state, the port does not receive or send messages at the logical level.
5. The method according to any one of claims 1-4, characterized in that It also includes: Determining the abnormal port synchronization information and sending the determined abnormal port synchronization information to the routing plane of this site. The abnormal port synchronization information includes: port number, changed port physical state, port priority, and occurrence timestamp. The port included in the necessary communication port information has a high priority; The routing plane of the site compares the occurrence timestamps in the abnormal port synchronization information received this time and the occurrence timestamps in the abnormal port synchronization information received last time, and compares the port physical states in the synchronization information and the current physical states of the corresponding ports in the routing plane; When the routing plane of the site determines that the occurrence timestamp in the abnormal port synchronization information received this time is new, the physical states are inconsistent, there is no synchronization mark for the corresponding port, the port priority is high, and the physical state of the port in the service plane is closed, it blocks the corresponding port and sets the synchronization mark of the corresponding port, triggering the routing plane to refresh the routing.
6. The method according to claim 5, characterized in that, It also includes: When the routing plane of the site determines that the occurrence timestamp in the abnormal port synchronization information received this time is new, the physical states are inconsistent, and there is a synchronization mark for the corresponding port, it sets the corresponding port to a non-blocking state and clears the synchronization mark of the corresponding port.
7. The method according to claim 5, characterized in that The service plane of the site determines the abnormal port synchronization information, including: When the service plane of the site detects that the physical state of the communication port in the service plane changes, it organizes the abnormal port synchronization information based on the changed port; and / or When it determines that the physical state of the port included in the required communication port information received by this site is closed, it organizes the abnormal port synchronization information based on the port with the closed physical state.
8. A site, characterized in that, It includes: A routing plane and a service plane. The routing plane is a control plane that runs a dynamic routing algorithm, and the service plane is a control plane for other layer-2 Ethernet switching networks, where: The routing plane is used to send a layer-2 query message containing a pre-configured monitored network segment IP to the routing plane of the neighbor site when the routing information of the monitored network segment is generated or changed, for querying information related to the monitored network segment routing; receive a layer-2 response message, and based on the pre-configured monitored network segment IP, extract the associated communication port information related to the monitored network segment routing from the routing table of this site and the layer-2 response message; use the corresponding relationship between the networking ports of the pre-configured routing plane and the networking ports of the service plane to map the extracted associated communication port information to the required communication port information for loop prevention networking in the service plane; send the required communication port information to the service plane of this site; The service plane is used to process the networking ports of the service plane according to the required communication port information, so that the service plane of the site can dynamically adjust the networking connection without running a loop-breaking protocol.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; The processor is used to implement the steps of the method according to any one of claims 1-7 when executing the programs stored on the memory.
10. A computer storage medium, characterized in that, The computer storage medium stores a computer program, and when the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1-7.