Flow switching method and device, storage medium and network switching equipment

By sending blocking notifications and clearing MAC table entries in the main network switching device under the Rlink protocol, the switchback from the backup link to the main link is solved, and the problem that the link recovery processing mechanism under the Rlink protocol does not support the switchback mode. Improve network data transmission efficiency and service quality.

CN118921339APending Publication Date: 2024-11-08北京傲星科技有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410891710.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Under the Rlink protocol, the link recovery processing mechanism of dual-node and dual uplink mode does not support the cutback mode, resulting in data forwarding along the backup link after the main link is restored, weakening network data transmission efficiency and service quality.

Method used

In the main network switching device, the main port sends a blocking notification to the backup network switching device when it returns from the blocking state to the forwarding state, clears the MAC entry, and transmits it through the main port and the interconnection port after the device connection port receives traffic. , to realize the cutback from the backup link to the main link.

Benefits of technology

Supports the link recovery processing mechanism cutback mode of dual-node and dual uplink networking under the Rlink protocol to improve network data transmission efficiency and service quality, and improve user network usage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921339A_ABST
    Figure CN118921339A_ABST
Patent Text Reader

Abstract

According to the traffic switching method and device, the storage medium and the network switching equipment provided by the invention, the method is applied to the main network switching equipment in a dual-node dual-uplink network under an Rlink protocol, and when the main network switching equipment recovers to a forwarding state from a blocking state at a main port, the blocking notice is sent to the standby network switching equipment, so that the forwarding state of the standby network switching equipment is changed into the forwarding state from the blocking state. According to the method, the main network switching equipment enters a blocked state from a port and discards corresponding flow, so that smooth back-switching of the flow from a standby link to a main link is realized, an MAC address related to an interconnection port in an MAC table item of the main network switching equipment is emptied, and the received flow is simultaneously transmitted through the main port and the interconnection port. Therefore, the target network switching equipment can receive the data through the main link. According to the invention, after the main link returns to normal, the link back-switching mode is supported by blocking the slave port and emptying the MAC address of the interconnection port, the flow management is optimized, the data transmission efficiency and the service quality of networking are enhanced, and the network use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer networking, and in particular to a flow switching method, device, storage medium and network switching equipment. Background Art

[0002] In modern network architecture, dual uplink networking is a widely used design to improve link reliability and implement link backup in case of failure. The Rlink (Resilient Link) protocol, which is currently designed specifically for dual uplink networking, can be used to implement fast link switching and redundant backup while eliminating loop problems.

[0003] However, under the Rlink protocol, the link recovery processing mechanism of the dual-node dual-uplink mode does not support the switchback mode, that is, when the main link recovers from a fault, in order to maintain traffic stability, the forwarding link still maintains forwarding from the backup link and cannot switch back to the main link. In actual network applications, the main link is usually designed to have higher bandwidth and lower latency in order to bear a larger traffic load. If the backup link is still used for data forwarding after the main link is repaired and restored to normal, this will weaken the overall network data transmission efficiency and service quality, thereby reducing the user's network experience.

[0004] Therefore, how to implement traffic switching back in a dual-node dual-uplink mode based on the Rlink protocol has become a technical problem that technical personnel in this field need to solve urgently. Summary of the invention

[0005] In view of the above problems, the present invention provides a traffic switching method, device, storage medium and network switching device that overcome the above problems or at least partially solve the above problems. The technical solution is as follows:

[0006] A traffic switching method is applied to a primary network switching device in a dual-node dual-uplink networking under an Rlink protocol, wherein the primary network switching device comprises a primary port PA, a first interconnection port P1 and a device connection port P3, wherein the primary port PA is connected to a target network switching device, wherein the target network switching device is connected to the Internet, wherein the first interconnection port P1 is connected to a second interconnection port P2 of a backup network switching device in the dual-node dual-uplink networking, wherein the device connection port P3 is connected to a network device, and wherein the method comprises:

[0007] When the master port PA is restored from a blocking state to a forwarding state, a blocking slave port notification is sent to the standby network switching device, so that the standby network switching device sets its slave port PB to a blocking state, discards the traffic transmitted by the first interconnection port P1, and switches the forwarding link from the standby link Link2 corresponding to the slave port PB back to the main link Link1 corresponding to the master port PA;

[0008] Clearing the MAC address related to the first interconnection port P1 in the MAC table of the primary network switching device;

[0009] After the device connection port P3 receives the first traffic transmitted by the network device, the first traffic is transmitted through the main port PA and the first interconnection port P1 at the same time, so that the target network switching device receives the first traffic transmitted by the main port PA.

[0010] Optionally, the method further includes:

[0011] After the device connection port P3 receives the first traffic transmitted by the network device, identifying the first source MAC address carried by the first traffic, and recording the association relationship between the first source MAC address and the device connection port P3 in the MAC table entry;

[0012] After the main port PA receives the second traffic transmitted by the target network switching device, the destination MAC address carried by the second traffic is identified, and the target interface associated with the destination MAC address is queried in the MAC table entry. If the target interface is the device connection port P3, the second traffic is transmitted to the network device through the device connection port P3.

[0013] Optionally, the method further includes:

[0014] In case that the main link Link1 fails, setting the main port PA to a blocking state;

[0015] A master port blocking notification is sent to the backup network switching device, so that the backup network switching device sets the slave port PB to a forwarding state, so as to switch the forwarding link from the main link Link1 to the backup link Link2.

[0016] Optionally, the slave port PB is connected to the target network switching device, and the method further includes:

[0017] In the case where the primary link Link1 fails, the third traffic transmitted by the second interconnected port P2 is received through the first interconnected port P1, wherein the third traffic is the traffic transmitted by the target network switching device to the slave port PB via the backup link Link2, and the third traffic carries a second source MAC address;

[0018] The association relationship between the second source MAC address and the first interconnection port P1 is recorded in the MAC table entry.

[0019] Optionally, the master port PA is connected to the target network switching device via the main link Link1 and at least one first network switching device, and the slave port PB is connected to the target network switching device via the backup link Link2 and at least one second network switching device, and the number of devices of the first network switching device and the second network switching device is the same.

[0020] A traffic switching device is applied to a main network switching device in a dual-node dual-uplink networking under an Rlink protocol, wherein the main network switching device comprises a main port PA, a first interconnection port P1 and a device connection port P3, wherein the main port PA is connected to a target network switching device, wherein the target network switching device is connected to the Internet, wherein the first interconnection port P1 is connected to a second interconnection port P2 of a backup network switching device in the dual-node dual-uplink networking, wherein the device connection port P3 is connected to a network device, wherein the device comprises: a first notification unit, a Mac address cleaning unit and a first traffic transmission unit,

[0021] The first notification unit is used to send a blocking slave port notification to the standby network switching device when the master port PA is restored from a blocking state to a forwarding state, so that the standby network switching device sets its slave port PB to a blocking state, discards the traffic transmitted by the first interconnection port P1, and switches the forwarding link from the standby link Link2 corresponding to the slave port PB back to the main link Link1 corresponding to the master port PA;

[0022] The Mac address clearing unit is used to clear the MAC address related to the first interconnection port P1 in the MAC table of the primary network switching device;

[0023] The first traffic transmission unit is used to transmit the first traffic transmitted by the network device through the main port PA and the first interconnection port P1 at the same time after the device connection port P3 receives the first traffic transmitted by the network device, so that the target network switching device receives the first traffic transmitted by the main port PA.

[0024] Optionally, the device further includes: a first source MAC address recording unit, a first Mac address query unit, and a second traffic transmission unit.

[0025] The first Mac address recording unit is used to identify the first source MAC address carried by the first traffic transmitted by the network device after the device connection port P3 receives the first traffic transmitted by the network device, and record the association relationship between the first source MAC address and the device connection port P3 in the MAC table entry;

[0026] The Mac address query unit is used to identify the destination MAC address carried by the second traffic after the primary port PA receives the second traffic transmitted by the target network switching device, and query the target interface associated with the destination MAC address in the MAC table entry;

[0027] The second traffic transmission unit is configured to transmit the second traffic to the network device through the device connection port P3 if the target interface is the device connection port P3.

[0028] Optionally, the device further comprises: a blocking state setting unit and a second notification unit,

[0029] The blocking state setting unit is used to set the primary port PA to a blocking state when the primary link Link1 fails;

[0030] The second notification unit is used to send a master port blocked notification to the backup network switching device, so that the backup network switching device sets the slave port PB to a forwarding state, so as to switch the forwarding link from the main link Link1 to the backup link Link2.

[0031] A computer-readable storage medium stores a program, wherein the program, when executed by a processor, implements any of the above-mentioned traffic switching methods.

[0032] A network switching device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the above-mentioned traffic switching methods.

[0033] By means of the above technical scheme, the present invention provides a traffic switching method, device, storage medium and network switching device, the method is applied to the main network switching device in the dual-node dual-uplink networking under the Rlink protocol, the main network switching device includes a main port PA, a first interconnection port P1 and a device connection port P3, the main port PA is connected to the target network switching device, the target network switching device is connected to the Internet, the first interconnection port P1 is connected to the second interconnection port P2 of the backup network switching device in the dual-node dual-uplink networking, and the device connection port P3 is connected to the network device, the method includes: when the main port PA is restored from a blocking state to a forwarding state, Send a blocking slave port notification to the backup network switching device, so that the backup network switching device sets its slave port PB to a blocking state, discards the traffic transmitted by the first interconnection port P1, and switches the forwarding link back from the backup link Link2 corresponding to the slave port PB to the main link Link1 corresponding to the main port PA; clear the MAC address related to the first interconnection port P1 in the MAC table of the main network switching device; after the device connection port P3 receives the first traffic transmitted by the network device, the first traffic is transmitted through the main port PA and the first interconnection port P1 at the same time, so that the target network switching device receives the first traffic transmitted from the main port PA. The present invention clears the MAC address related to the interconnection port in the MAC table of the main network switching device when the main link Link1 returns to normal, so that the link recovery processing mechanism of the dual-node dual-uplink networking under the Rlink protocol can support the switchback mode: the forwarding link is switched back from the backup link Link2 to the main link Link1, so that the networking can use the main link Link1 to bear a larger traffic load, thereby enhancing the data transmission efficiency and service quality of the overall network and improving the user's network usage experience.

[0034] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0036] Figure 1 A schematic diagram of a networking architecture of dual uplink networking provided by an embodiment of the present invention is shown;

[0037] Figure 2A schematic diagram of a networking architecture of a single-node dual-uplink networking provided by an embodiment of the present invention is shown;

[0038] Figure 3 A schematic diagram of a networking architecture of a dual-node dual-uplink networking provided by an embodiment of the present invention is shown;

[0039] Figure 4 A schematic diagram illustrating a traffic forwarding path when a primary link of a dual-node dual-uplink network fails provided by an embodiment of the present invention is shown;

[0040] Figure 5 A schematic diagram illustrating a traditional traffic forwarding path after a main link of a dual-node dual-uplink network provided by an embodiment of the present invention is restored to normal;

[0041] Figure 6 A schematic diagram of main link traffic flow in a dual-node dual-uplink network provided by an embodiment of the present invention is shown;

[0042] Figure 7 A schematic flow chart showing an implementation of a flow switching process in a flow switching method provided in an embodiment of the present invention;

[0043] Figure 8 A flow chart showing another implementation of a flow switching process in a flow switching method provided in an embodiment of the present invention;

[0044] Fig. 9 A schematic diagram illustrating a traffic forwarding path after a main link of a dual-node dual-uplink networking supporting a switchback mode is restored to normal provided by an embodiment of the present invention;

[0045] Fig.10 A schematic flow chart showing an implementation of a flow tangent process in a flow switching method provided in an embodiment of the present invention;

[0046] Fig.11 A schematic flow chart of another implementation of a flow tangent process in a flow switching method provided in an embodiment of the present invention is shown;

[0047] Fig.12 A schematic diagram of traffic flow of a backup link in a dual-node dual-uplink networking provided by an embodiment of the present invention is shown;

[0048] Fig.13 A schematic diagram of the structure of a flow switching device provided by an embodiment of the present invention is shown;

[0049] Fig.14 A schematic diagram of the structure of a network switching device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0050] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0051] In modern network architecture, dual uplink networking is a widely used design to improve link reliability and implement link backup in case of failure. Network switching equipment, commonly known as switches, is a high-speed network device used to connect multiple devices, such as computers, wireless access points, printers, etc., to form a local area network (LAN). Switches work at the data link layer and use MAC addresses to forward data packets to the correct destination.

[0052] Figure 1 The figure shows a schematic diagram of a networking architecture of dual uplink networking provided by an embodiment of the present invention. The dual uplink networking method establishes redundant connection paths between network switching devices to ensure that when the main link fails, it can quickly switch to the backup link, thereby maintaining the continuous operation of the network. However, since the dual uplink paths may form a loop, there is a risk of causing a broadcast storm, so it is necessary to avoid such problems in the networking design.

[0053] In order to solve the loop problem, dual uplink networking usually uses the Spanning Tree Protocol (STP) to prevent the activity of redundant links, thereby eliminating loops. However, although this method can meet the basic requirements of redundant backup in terms of function, from a performance perspective, even in a network using the Rapid Spanning Tree Protocol (RSTP), the convergence speed can only reach the second level, and more packet loss will occur during the link switching process, making it difficult to apply to network environments that require fast convergence time.

[0054] Therefore, the Rlink (Resilient Link) protocol designed for dual uplink networking in the embodiment of the present invention can be used to achieve fast switching and redundant backup of links while eliminating loop problems. In the Rlink networking solution, single-node dual uplink networking and dual-node dual uplink networking are supported.

[0055] Figure 2 The figure shows a schematic diagram of a networking architecture of a single-node dual-uplink networking provided by an embodiment of the present invention. In the single-node dual-uplink networking, two uplinks are implemented on different interfaces of a single device, and the Rlink group (dual uplink group) is composed of a master port A and a slave port B on the same network switching device (switch 4).

[0056] Figure 3 FIG. 1 is a schematic diagram of a network architecture of a dual-node dual-uplink network provided by an embodiment of the present invention. The dual-node dual-uplink network involves two different network switching devices, wherein the master port and the slave port of the Rlink group are respectively configured on two independent network switching devices. Figure 3 As shown, the master port A is provided on the switch 4 , and the slave port B is provided on the switch 5 .

[0057] In the normal working mechanism of the link of the dual-node dual-uplink networking, during the normal and trouble-free operation of the Rlink group, the master port A remains in the forwarding state, while the corresponding slave port B is in the blocking state. At this time, the network traffic is mainly transmitted through the main link Link1, while the slave link Link2 is in the blocking state and stands by as a backup link. This configuration ensures that no loops are formed in the network, thereby effectively preventing the occurrence of broadcast storms. The master port and the slave port exchange their respective status information in real time by sending messages to each other to maintain the stable operation of the network.

[0058] In the link failure handling mechanism of dual-node dual-uplink networking, when the main link Link1 of the Rlink group fails, its corresponding main port A will be switched to a blocked state. At the same time, after receiving the notification of the state change of the main port A, the slave port B, which was previously in a blocked state, will switch to a forwarding state. This change causes the network traffic to automatically switch from the original main link Link1 to the backup link Link2 for transmission, ensuring the continuity and reliability of network communication.

[0059] In the link recovery processing mechanism of dual-node dual-uplink networking, the link recovery processing method is the non-reversal mode: the forwarding link does not switch back to the main link. The use of the non-reversal mode means that even if the main link Link1 recovers to normal status, the network traffic will not automatically switch from the current forwarding link (i.e., the slave link Link2) back to the main link Link1. When the Rlink group runs in the non-reversal mode, in order to ensure the stability of traffic transmission, even if the main link Link1 has been restored, the traffic will continue to be forwarded through the slave link Link2 to avoid network fluctuations that may be caused by link switching.

[0060] In order to facilitate understanding of the current link recovery processing mechanism of dual-node dual-uplink networking, the reason why the forwarding link is switched back to the main link in the switchback mode will cause traffic interruption is combined with Figure 4 and Figure 5 To explain: Figure 4The figure shows a schematic diagram of the traffic forwarding path when the main link of the dual-node dual-uplink network provided by an embodiment of the present invention fails. When the main link Link1 of the Rlink group fails, its associated main port A will automatically adjust to a blocking state. At this time, the slave port B, which was originally in a blocking state, receives a notification of the state change of the main port A and immediately changes to a forwarding state. This change causes the network traffic to switch from the failed main link Link1 to the backup slave link Link2 for transmission. In this process, Figure 4 The top-down traffic shown by the arrow (assuming its source MAC address is A) will flow to port C of switch 4. Switch 4 receives this traffic through port C and learns the source MAC address A from it, thereby updating its MAC table entry to ensure that the traffic related to source MAC address A can be correctly forwarded later.

[0061] Figure 5 The figure shows a schematic diagram of a traditional traffic forwarding path after the main link of a dual-node dual-uplink network provided by an embodiment of the present invention is restored to normal. When the main link Link1 is restored to normal, port B of switch 5 will be converted to a blocked state. Figure 5 The traffic from bottom to top shown by the arrow in the middle reaches switch 4. Switch 4 queries its MAC table entry according to the destination MAC address A of the traffic and determines that the outbound interface is port C. Therefore, switch 4 forwards the traffic to port D of switch 5. However, since port B of switch 5 is currently in a blocked state, the traffic cannot be forwarded through this port, resulting in traffic interruption.

[0062] However, in actual network applications, the primary link is usually designed to have higher bandwidth and lower latency in order to bear a larger traffic load. If the backup link is still used for data forwarding after the primary link is repaired and restored to normal, this will weaken the overall network data transmission efficiency and service quality, thereby reducing the user's network experience. Therefore, the primary link should be used first when available to maintain the optimization of network performance.

[0063] Based on this, in an embodiment of the present invention, a traffic switching method is provided, which can be applied to a primary network switching device in a dual-node dual-uplink network under the Rlink protocol. Figure 6The figure shows a schematic diagram of traffic flow of the main link Link1 of the dual-node dual-uplink network provided by an embodiment of the present invention. The main network switching device includes a main port PA, a first interconnection port P1 and a device connection port P3. The main port PA is connected to the target network switching device, the target network switching device is connected to the Internet, the first interconnection port P1 is connected to the second interconnection port P2 of the backup network switching device in the dual-node dual-uplink network, and the device connection port P3 is connected to the network device. When the main port PA is restored from the blocking state to the forwarding state, the backup network switching device will be notified to set its slave port PB to the blocking state to avoid traffic passing through the port, ensuring that the traffic can be smoothly switched back from the backup link Link2 to the main link Link1. At the same time, the MAC address related to the first interconnection port P1 in the MAC table of the main network switching device is cleared, so that after the main network switching device receives the traffic of the network device, the main port PA and the first interconnection port P1 forward the traffic at the same time, ensuring that the target network switching device receives the required data through the main port PA, thereby facilitating the rapid switching back of the forwarding link after the main link Link1 is restored, and ensuring that the traffic is transmitted through the best path.

[0064] Among them, the main port PA is the main member port for traffic forwarding in the Rlink group. The main link Link1 is the traffic forwarding link corresponding to the main port PA. The slave port PB is the backup member port for traffic forwarding in the Rlink group. The backup link Link2 is the traffic forwarding link corresponding to the slave port PB. The bandwidth configured for the main link Link1 can be greater than the bandwidth configured for the backup link Link2. The traffic transmission delay of the main link Link1 can be lower than the traffic transmission delay of the backup link Link2.

[0065] like Figure 7 As shown, a flow chart of an implementation manner of a traffic switching process in a traffic switching method provided in an embodiment of the present invention is provided. The traffic switching process may include:

[0066] S100. When the master port PA is restored from a blocking state to a forwarding state, a blocking slave port notification is sent to the backup network switching device, so that the backup network switching device sets its slave port PB to a blocking state, discards the traffic transmitted by the first interconnection port P1, and switches the forwarding link from the backup link Link2 corresponding to the slave port PB back to the main link Link1 corresponding to the master port PA.

[0067] Optionally, the embodiment of the present invention can detect and determine whether the main link Link1 is working normally through at least one of the link state protocol (Link Layer Discovery Protocol, LLDP), link monitoring protocols (Link Monitoring Protocols), network layer protocols, link layer protocols and routing protocols.

[0068] The active network switching device provided in the embodiment of the present invention can adjust the primary port PA associated with the primary link Link1 on the active network switching device from the blocking state to the forwarding state after the primary link Link1 is repaired and restored to normal operation.

[0069] When the port is in the forwarding state, it can forward and receive data frames, participate in the MAC address learning process, and perform normal switching operations. When the port is in the blocking state, it does not participate in the forwarding of data frames, does not learn MAC addresses, and does not monitor network traffic. The port is usually in the blocking state to prevent the occurrence of network loops.

[0070] The blocking slave port notification is used to instruct the standby network switching device to set its slave port PB to a blocking state. The active network switching device provided in the embodiment of the present invention can send a blocking slave port notification to the second interconnected port P2 of the standby network switching device through the first interconnected port P1 in the form of a communication message after the main link Link1 works normally. After receiving the blocking slave port notification, the standby network switching device sets the slave port PB to a blocking state, so that after receiving the traffic transmitted from the first interconnected port P1, the standby network switching device cannot forward the traffic and thus discards the received traffic.

[0071] At this time, the main link Link1 in the dual-node dual-uplink networking can forward traffic, while the backup link Link2 cannot forward traffic, realizing the switchback mode of the link recovery processing mechanism of the dual-node dual-uplink networking under the link protocol: the forwarding link is switched back from the backup link Link2 to the main link Link1.

[0072] S110: Clear the MAC address related to the first interconnection port P1 in the MAC table of the primary network switching device.

[0073] As can be seen from the above description, after the forwarding link is switched back from the backup link Link2 to the main link Link1, since the active network switching device may receive traffic whose outgoing interface is the first interconnection port P1, and the first interconnection port P1 will forward the traffic to the second interconnection port P2 of the standby network switching device, and the slave port PB of the standby network switching device is in a blocked state, the traffic will be discarded, causing traffic interruption. Therefore, the embodiment of the present invention can delete the MAC address related to the first interconnection port P1 in the MAC table entry of the active network switching device after sending a notification of blocking the slave port to the standby network switching device.

[0074] Compared with the traditional method of clearing all MAC addresses in the MAC table of a network switching device, the embodiment of the present invention only clears the MAC addresses related to the first interconnection port P1 in the MAC table. While supporting the switchback mode of dual-node dual-uplink networking under the Rlink protocol, it significantly reduces the time required for link switching, improves the response speed and overall performance of the networking, and is conducive to the networking being able to return to the normal working mechanism of the link more quickly when the main link Link1 is restored.

[0075] S120. After the device connection port P3 receives the first traffic transmitted by the network device, the first traffic is transmitted through the main port PA and the first interconnection port P1 at the same time, so that the target network switching device receives the first traffic transmitted from the main port PA.

[0076] Among them, network devices can refer to personal computers (PCs), which are multi-functional computing devices designed for personal use. Network devices can perform various tasks, such as word processing, image editing, web browsing, gaming, programming, and running a variety of operating systems and applications.

[0077] refer to Figure 6 After clearing the MAC address related to the first interconnection port P1 in the MAC table of the active network switching device, the device connection port P3 of the active network switching device receives the first traffic from the network device (such as Figure 6 ), will be flooded from the main port PA and the first interconnection port P1 at the same time, that is, when the main network switching device receives traffic (data frame or data packet), if the forwarding port corresponding to the destination Mac address is unknown, it will copy and send this data frame or data packet on all ports except the port that receives the traffic. At this time, the traffic sent through the main port PA will be transmitted to the target network switching device through the main link Link1, thereby interacting with the Internet without causing traffic interruption.

[0078] The present invention provides a traffic switching method, which is applied to a main network switching device in a dual-node dual-uplink networking under an Rlink protocol, wherein the main network switching device comprises a main port PA, a first interconnection port P1 and a device connection port P3, wherein the main port PA is connected to a target network switching device, the target network switching device is connected to the Internet, the first interconnection port P1 is connected to a second interconnection port P2 of a backup network switching device in the dual-node dual-uplink networking, and the device connection port P3 is connected to a network device, and the method comprises: when the main port PA is restored from a blocking state to a forwarding state, a blocking signal is sent to the backup network switching device; The invention notifies the slave port to block so that the backup network switching device sets its slave port PB to a blocking state, discards the traffic transmitted by the first interconnection port P1, and switches the forwarding link from the backup link Link2 corresponding to the slave port PB back to the main link Link1 corresponding to the main port PA; clears the MAC address related to the first interconnection port P1 in the MAC table of the main network switching device; after the device connection port P3 receives the first traffic transmitted by the network device, the first traffic is transmitted through the main port PA and the first interconnection port P1 at the same time, so that the target network switching device receives the first traffic transmitted from the main port PA. The present invention enables the link recovery processing mechanism of the dual-node dual-uplink networking under the Rlink protocol to support the switchback mode by clearing the MAC address related to the interconnection port in the MAC table of the main network switching device when the main link Link1 recovers to normal: the forwarding link is switched back from the backup link Link2 to the main link Link1, so that the networking can use the main link Link1 to bear a larger traffic load, thereby enhancing the data transmission efficiency and service quality of the overall network and improving the user's network usage experience.

[0079] Optional, based on Figure 7 The method shown, such as Figure 8 As shown, a flow chart of another implementation of a traffic switching process in a traffic switching method provided in an embodiment of the present invention is provided. The traffic switching process may further include:

[0080] S200: After receiving the first traffic transmitted by the network device at the device connection port P3, identify the first source MAC address carried by the first traffic, and record the association between the first source MAC address and the device connection port P3 in the MAC table entry.

[0081] It is understandable that when traffic is transmitted in the form of data frames or data packets on a data link, it will carry a destination MAC address (Destination MAC Address) and a source MAC address (Source MAC Address).

[0082] The destination MAC address is used to tell the network switching device which device the traffic should be forwarded to. The network switching device uses this address to determine the forwarding path of the traffic.

[0083] The source MAC address is used to indicate which device the traffic comes from. The source MAC address can be used by network switching devices to update their MAC table entries so that subsequent communications can more efficiently locate the device.

[0084] S210: After receiving the second traffic transmitted by the target network switching device, the primary port PA identifies the destination MAC address carried by the second traffic, and searches the MAC table for a target interface associated with the destination MAC address.

[0085] S220: If the target interface is the device connection port P3, transmit the second traffic to the network device through the device connection port P3.

[0086] refer to Figure 6 In the embodiment of the present invention, the second traffic (such as Figure 6 After that, the destination MAC address carried by the second traffic is identified. By querying the MAC table entry, it can be known that the destination MAC address corresponds to the device connection port P3. At this time, the second traffic is forwarded to the network device through the device connection port P3.

[0087] The embodiment of the present invention records the association between the source MAC address carried by the traffic and the receiving port in the MAC table entry in a timely manner, and can quickly query the forwarding port corresponding to the destination MAC address carried by the traffic in the MAC table entry when receiving the traffic, and transmit the traffic to the correct network device, so that the dual-node dual-uplink networking under the Rlink protocol can return to the normal working mechanism of the link after adopting the switchback mode, thereby improving the response speed of the networking and the data transmission efficiency, and ensuring the correctness of data transmission.

[0088] In order to facilitate understanding of the traffic forwarding path after the main link of the dual-node dual-uplink networking supporting the reversal mode in the embodiment of the present invention is restored to normal, Fig. 9 To explain: Fig. 9The figure shows a schematic diagram of the traffic forwarding path after the main link of the dual-node dual-uplink networking supporting the switchback mode provided by an embodiment of the present invention is restored to normal. When the main link Link1 is restored to normal, port A of switch 4 will be set to the forwarding state so that it can process incoming and outgoing traffic again. At the same time as this adjustment, a signal will be sent to switch 5 to instruct it to set its port B to a blocking state to prevent potential network loops. During this process, port C of switch 4 will clear its MAC table entry so that it can start learning the MAC addresses of devices on the network from scratch. Next, the traffic sent by the PC device connected to switch 4 will reach switch 4. With the arrival of these traffic, switch 4 will flood the traffic through port A and port C, and the traffic of port C will eventually be discarded because port B of switch 5 is in a blocking state.

[0089] During the flooding process, traffic going out of port A of switch 4 enters port E of switch 1. This enables switch 1 to learn the MAC address of the PC at port E. After learning this address, when traffic from the Internet (top-down traffic) arrives, switch 1 can correctly direct the traffic to the main link Link1 through port E, and finally direct the data to the PC through port A of switch 4.

[0090] The embodiment of the present invention switches the backup link back to the main link to achieve traffic switching back of the forwarding link, ensuring that after the main link is restored, the network can be quickly adjusted to continue transmitting data along the optimal path, while avoiding traffic confusion or network interruption that may be caused by port status conflicts.

[0091] Optional, based on Figure 7 The method shown, such as Fig.10 As shown, a flow chart of an implementation of a flow tangent process in a flow switching method provided in an embodiment of the present invention is provided. The flow tangent process may include:

[0092] S300 . When the primary link Link1 fails, the primary port PA is set to a blocking state.

[0093] In the embodiment of the present invention, when a failure of the main link Link1 is detected and determined, the main port PA associated with the main link Link1 on the main network switching device can be adjusted from a forwarding state to a blocking state.

[0094] S310 , sending a primary port blocking notification to the standby network switching device, so that the standby network switching device sets the slave port PB to a forwarding state, so as to switch the forwarding link from the primary link Link1 to the standby link Link2 .

[0095] The master port blocked notification is used to inform the backup network switching device that the master port PA is in a blocked state, and instruct the backup network switching device to set its slave port PB to a forwarding state, so that the networking can switch from a normal link operation mechanism to a link failure processing mechanism.

[0096] It is understandable that steps S300 to S310 may be performed before step S100 or after step S120, so as to switch the forwarding link from the main link Link1 to the backup link Link2 when the main link Link1 fails.

[0097] The embodiment of the present invention supports the dual-node dual-uplink networking under the Rlink protocol using the switchback mode, and provides a strategy for automatically switching to the backup link Link2 when the main link Link1 fails, realizing the bidirectional switching of the main and backup links, which helps to improve the data transmission efficiency and service quality of the network through the main link Link1 when the main link Link1 is normal, and improve the stability and security of the network through the backup link Link2 when the main link Link1 fails. At the same time, the automatic switching of the main and backup links can also reduce the complexity of network management and ensure the continuity and reliability of data transmission.

[0098] Optionally, the slave port PB is connected to a target network switching device.

[0099] Optional, based on Fig.10 The method shown, such as Fig.11 As shown, a flow chart of another implementation of the flow tangent process in the flow switching method provided in an embodiment of the present invention is provided, and the flow tangent process may also include:

[0100] S400. In the event of a failure of the primary link Link1, third traffic transmitted from the second interconnected port P2 is received through the first interconnected port P1, wherein the third traffic is traffic transmitted from the target network switching device to the slave port PB via the backup link Link2, and the third traffic carries a second source MAC address.

[0101] S410: Record the association relationship between the second source MAC address and the first interconnection port P1 in the MAC table entry.

[0102] Fig.12 FIG. 1 is a schematic diagram of traffic flow of a backup link Link2 of a dual-node dual-uplink network provided by an embodiment of the present invention. When the master port PA is adjusted from a forwarding state to a fault state, the backup network switching device is notified to set its slave port PB to a forwarding state, so that the slave port PB obtains the third traffic (such as the traffic transmitted by the target network switching device) via the backup link Link2. Fig.12The third traffic is then transmitted to the first interconnection port P1 of the active network switching device via the second interconnection port P2 of the standby network switching device, and the association between the source Mac address carried by the third traffic and the first interconnection port P1 is recorded in the Mac table item.

[0103] It can be understood that when the primary port PA is in a fault state, the primary network switching device receives the fourth traffic (such as Fig.12 ), according to identifying the destination MAC address carried by the fourth traffic, and querying the target port associated with the destination MAC address in the MAC table, if the target port is the first interconnection port P1, the fourth traffic is transmitted to the second interconnection port P2 of the backup network switching device through the first interconnection port P1, and then the fourth traffic is transmitted to the target network switching device through the backup link Link2 from the port PB.

[0104] The embodiment of the present invention not only supports the switchback mode of dual-node dual-uplink networking under the Rlink protocol, but also provides a link failure handling mechanism for continuing traffic forwarding through the backup link Link2 when the main link Link1 is unavailable, and records the association between the source MAC address carried by the traffic received by the first interconnection port P1 and the first interconnection port P1 through the MAC table entry, thereby ensuring that the main network switching device can correctly identify and record the association between the source MAC address of the traffic transmitted through the backup link Link2 and the forwarding port, thereby maintaining the continuity and accuracy of the networking communication.

[0105] Optionally, the main port PA is connected to the target network switching device via the main link Link1 and at least one first network switching device, and the slave port PB is connected to the target network switching device via the backup link Link2 and at least one second network switching device, and the number of first network switching devices and second network switching devices is the same.

[0106] Among them, the number of devices of the first network switching device and the second network switching device can be configured according to the networking scenario requirements of dual-node dual-uplink networking under the Rlink protocol to meet the configuration requirements of complex and diverse networking scenarios.

[0107] The number of devices of the first network switching device and the second network switching device can be the same to ensure that the network topology structure of the dual-node dual-uplink networking is symmetrical, so that when the main link Link1 fails, the backup link Link2 can immediately take over to ensure that network communication is not interrupted and the effectiveness of network redundancy is guaranteed. At the same time, the symmetrical network topology structure also helps to reduce the management complexity and error possibility of the dual-node dual-uplink networking, thereby ensuring the stable operation and efficient management of the networking.

[0108] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0109] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0110] Corresponding to the above method embodiment, a flow switching device provided by the embodiment of the present invention is applied to the main network switching device in the dual-node dual-uplink networking under the Rlink (Resilient Link) protocol, the main network switching device includes a main port PA, a first interconnection port P1 and a device connection port P3, the main port PA is connected to the target network switching device, the target network switching device is connected to the Internet, the first interconnection port P1 is connected to the second interconnection port P2 of the backup network switching device in the dual-node dual-uplink networking, and the device connection port P3 is connected to the network device. Fig.13 As shown, the traffic switching device may include: a first notification unit 10, a Mac address cleaning unit 20 and a first traffic transmission unit 30.

[0111] The first notification unit 10 is used to send a blocking slave port notification to the backup network switching device when the main port PA is restored from a blocking state to a forwarding state, so that the backup network switching device sets its slave port PB to a blocking state and discards the traffic transmitted by the first interconnection port P1, so as to switch the forwarding link from the backup link Link2 corresponding to the slave port PB back to the main link Link1 corresponding to the main port PA.

[0112] The MAC address clearing unit 20 is used to clear the MAC address related to the first interconnection port P1 in the MAC table of the primary network switching device.

[0113] The first traffic transmission unit 30 is used to transmit the first traffic transmitted by the network device through the main port PA and the first interconnection port P1 at the same time after the device connection port P3 receives the first traffic transmitted by the network device, so that the target network switching device receives the first traffic transmitted from the main port PA.

[0114] Optionally, the traffic switching device may further include: a first source MAC address recording unit, a first Mac address query unit and a second traffic transmission unit.

[0115] The first Mac address recording unit is used to identify the first source MAC address carried by the first traffic after the device connection port P3 receives the first traffic transmitted by the network device, and record the association between the first source MAC address and the device connection port P3 in the MAC table entry.

[0116] The Mac address query unit is used to identify the destination MAC address carried by the second traffic after the primary port PA receives the second traffic transmitted by the target network switching device, and query the target interface associated with the destination MAC address in the MAC table.

[0117] The second traffic transmission unit is configured to transmit the second traffic to the network device through the device connection port P3 if the target interface is the device connection port P3.

[0118] Optionally, the flow switching device may further include: a blocking state setting unit and a second notification unit.

[0119] The blocking state setting unit is used to set the main port PA to a blocking state when the main link Link1 fails.

[0120] The second notification unit is used to send a primary port blocked notification to the standby network switching device, so that the standby network switching device sets the slave port PB to a forwarding state, so as to switch the forwarding link from the primary link Link1 to the standby link Link2.

[0121] Optionally, the slave port PB is connected to a target network switching device.

[0122] Optionally, the traffic switching device may further include: a third traffic transmission unit and a second Mac address recording unit.

[0123] The third traffic transmission unit is used to receive the third traffic transmitted from the second interconnected port P2 through the first interconnected port P1 when the main link Link1 fails, wherein the third traffic is the traffic transmitted from the target network switching device to the slave port PB via the backup link Link2, and the third traffic carries the second source MAC address.

[0124] The second MAC address recording unit is used to record the association relationship between the second source MAC address and the first interconnection port P1 in the MAC table entry.

[0125] Optionally, the main port PA is connected to the target network switching device via the main link Link1 and at least one first network switching device, and the slave port PB is connected to the target network switching device via the backup link Link2 and at least one second network switching device, and the number of first network switching devices and second network switching devices is the same.

[0126] The present invention provides a flow switching device, which is applied to Rlink (Resilient A primary network switching device in a dual-node dual-uplink networking under a 10GbE (10GbE) protocol, the primary network switching device comprising a primary port PA, a first interconnection port P1 and a device connection port P3, the primary port PA being connected to a target network switching device, the target network switching device being connected to the Internet, the first interconnection port P1 being connected to a second interconnection port P2 of a backup network switching device in the dual-node dual-uplink networking, and the device connection port P3 being connected to a network device, and in the case where the primary port PA is restored from a blocking state to a forwarding state, a blocking slave port notification is sent to the backup network switching device, so that the backup network switching device sets its slave port PB to a blocking state, discards the traffic transmitted by the first interconnection port P1, and switches the forwarding link from the backup link Link2 corresponding to the slave port PB back to the primary link Link1 corresponding to the primary port PA; clears the MAC address related to the first interconnection port P1 in the MAC table entry of the primary network switching device; after the device connection port P3 receives the first traffic transmitted by the network device, the first traffic is transmitted through the primary port PA and the first interconnection port P1 at the same time, so that the target network switching device receives the first traffic transmitted from the primary port PA. The present invention clears the MAC address related to the interconnection port in the MAC table of the main network switching device when the main link Link1 returns to normal, so that the link recovery processing mechanism of the dual-node dual-uplink networking under the Rlink protocol can support the switchback mode: the forwarding link is switched back from the backup link Link2 to the main link Link1, so that the networking can use the main link Link1 to bear a larger traffic load, thereby enhancing the data transmission efficiency and service quality of the overall network and improving the user's network usage experience.

[0127] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0128] The traffic switching device includes a processor and a memory. The above-mentioned first notification unit 10, Mac address cleaning unit 20 and first traffic transmission unit 30 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0129] The processor contains a kernel, which calls the corresponding program unit from the memory. The kernel can be set to one or more kernels. By adjusting the kernel parameters, after the main link returns to normal, the link switchback mode is supported by blocking the slave port and clearing the MAC address of the interconnection port, optimizing traffic management, enhancing the data transmission efficiency and service quality of the network, and improving the user's network experience.

[0130] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a traffic switching method is implemented.

[0131] An embodiment of the present invention provides a processor, which is used to run a program, wherein the traffic switching method is executed when the program is running.

[0132] like Fig.14 As shown, an embodiment of the present invention provides a network switching device 1000, which includes at least one processor 1001, and at least one memory 1002 and a bus 1003 connected to the processor 1001; wherein the processor 1001 and the memory 1002 communicate with each other through the bus 1003; the processor 1001 is used to call the program instructions in the memory 1002 to execute the above-mentioned traffic switching method.

[0133] The present invention also provides a computer program product, which, when executed on a network switching device, is suitable for executing a program having steps of initializing a traffic switching method.

[0134] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, network switching devices, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that instructions executed by the processor of the computer or other programmable device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0135] In a typical configuration, a network switching device includes one or more processors (CPU), a memory, and a bus. The network switching device may also include an input / output interface, a network interface, and the like.

[0136] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0137] Computer readable media include permanent and non-permanent, removable and non-removable media and can store information by any method or technology. The information can be computer readable instructions, data structures, program modules or other data.

[0138] In the description of the present invention, it should be understood that the terms "up", "down", "front", "back", "left" and "right" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the positions or elements referred to must have specific directions, be constructed and operate in specific directions. Therefore, they should not be understood as limitations of the present invention.

[0139] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0140] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0141] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A flow switching method, characterized in that: A main network switching device applied to a dual-node dual-uplink networking under an Rlink protocol, the main network switching device comprising a main port (PA), a first interconnection port (P1) and a device connection port (P3), the main port (PA) being connected to a target network switching device, the target network switching device being connected to the Internet, the first interconnection port (P1) being connected to a second interconnection port (P2) of a backup network switching device in the dual-node dual-uplink networking, the device connection port (P3) being connected to a network device, the method comprising: When the master port (PA) is restored from a blocking state to a forwarding state, a blocking slave port notification is sent to the backup network switching device, so that the backup network switching device sets its slave port (PB) to a blocking state, discards traffic transmitted by the first interconnection port (P1), and switches the forwarding link from the backup link (Link2) corresponding to the slave port (PB) back to the main link (Link1) corresponding to the master port (PA); Clearing the MAC address related to the first interconnection port (P1) in the MAC table of the primary network switching device; After the device connection port (P3) receives the first traffic transmitted by the network device, the first traffic is transmitted through the main port (PA) and the first interconnection port (P1) at the same time, so that the target network switching device receives the first traffic transmitted by the main port (PA).

2. The method according to claim 1, characterized in that Also includes: After the device connection port (P3) receives the first traffic transmitted by the network device, identifying the first source MAC address carried by the first traffic, and recording the association relationship between the first source MAC address and the device connection port (P3) in the MAC table entry; After the main port (PA) receives the second traffic transmitted by the target network switching device, the destination MAC address carried by the second traffic is identified, and the target interface associated with the destination MAC address is queried in the MAC table item. If the target interface is the device connection port (P3), the second traffic is transmitted to the network device through the device connection port (P3).

3. The method according to claim 1, characterized in that Also includes: In case of a failure of the primary link (Link1), setting the primary port (PA) to a blocking state; A master port blocked notification is sent to the backup network switching device, so that the backup network switching device sets the slave port (PB) to a forwarding state, so as to switch the forwarding link from the master link (Link1) to the backup link (Link2).

4. The method according to claim 3, characterized in that The slave port (PB) is connected to the target network switching device, and the method further includes: In the event of a failure of the primary link (Link1), receiving third traffic transmitted by the second interconnect port (P2) through the first interconnect port (P1), wherein the third traffic is traffic transmitted by the target network switching device to the slave port (PB) via the backup link (Link2), and the third traffic carries a second source MAC address; The association relationship between the second source MAC address and the first interconnection port (P1) is recorded in the MAC table entry.

5. The method according to claim 4, characterized in that The master port (PA) is connected to the target network switching device via the master link (Link1) and at least one first network switching device, and the slave port (PB) is connected to the target network switching device via the backup link (Link2) and at least one second network switching device, and the number of devices of the first network switching device and the second network switching device is the same.

6. A flow switching device, characterized in that: A main network switching device applied to a dual-node dual-uplink networking under an Rlink protocol, the main network switching device comprising a main port (PA), a first interconnection port (P1) and a device connection port (P3), the main port (PA) being connected to a target network switching device, the target network switching device being connected to the Internet, the first interconnection port (P1) being connected to a second interconnection port (P2) of a backup network switching device in the dual-node dual-uplink networking, the device connection port (P3) being connected to a network device, the device comprising: a first notification unit, a Mac address cleaning unit and a first traffic transmission unit, The first notification unit is used to send a blocking slave port notification to the standby network switching device when the master port (PA) is restored from a blocking state to a forwarding state, so that the standby network switching device sets its slave port (PB) to a blocking state and discards traffic transmitted by the first interconnection port (P1), so as to switch the forwarding link from the standby link (Link2) corresponding to the slave port (PB) back to the master link (Link1) corresponding to the master port (PA); The Mac address clearing unit is used to clear the MAC address related to the first interconnection port (P1) in the MAC table of the primary network switching device; The first traffic transmission unit is used to transmit the first traffic transmitted by the network device through the main port (PA) and the first interconnection port (P1) at the same time after the first traffic transmitted by the network device is received at the device connection port (P3), so that the target network switching device receives the first traffic transmitted from the main port (PA).

7. The device according to claim 6, characterized in that Also includes: A first source MAC address recording unit, a first Mac address query unit and a second traffic transmission unit, The first Mac address recording unit is used to identify a first source MAC address carried by the first traffic transmitted by the network device after the device connection port (P3) receives the first traffic transmitted by the network device, and record the association relationship between the first source MAC address and the device connection port (P3) in the MAC table entry; The Mac address query unit is used to identify the destination MAC address carried by the second traffic transmitted by the target network switching device after the primary port (PA) receives the second traffic, and query the target interface associated with the destination MAC address in the MAC table entry; The second traffic transmission unit is used to transmit the second traffic to the network device through the device connection port (P3) if the target interface is the device connection port (P3).

8. The device according to claim 6, characterized in that Also includes: A blocking state setting unit and a second notification unit, The blocking state setting unit is used to set the primary port (PA) to a blocking state when the primary link (Link1) fails; The second notification unit is used to send a master port blocked notification to the backup network switching device, so that the backup network switching device sets the slave port (PB) to a forwarding state to switch the forwarding link from the main link (Link1) to the backup link (Link2).

9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the flow switching method according to any one of claims 1 to 5 is implemented.

10. A network switching device, characterized in that: The network switching device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the traffic switching method as described in any one of claims 1 to 5.

Citation Information

Cited By

  • Master device switching processing method, electronic device and storage medium

    CN120434110A

  • Master device switching processing method, electronic device, and storage medium

    CN120434110B