Link exception processing method and device and related equipment

Through the dynamic routing protocol and flow table forwarding mechanism, the link is monitored and switched to solve the problem of uneven link traffic in AI training, realize link exception handling and load balancing, and improve the efficiency and performance of AI training.

CN118612145APending Publication Date: 2024-09-06NEW H3C TECH CO LTD

Patent Information

Application Number
CN202410841394.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The traditional ECMP traffic balancing mechanism causes uneven link traffic and congestion and packet loss during the AI ​​training process, resulting in a decrease in network throughput and affecting the business performance of the AI ​​cluster.

Method used

Dynamic routing protocols and flow table forwarding mechanisms are used to monitor link status. If a fault is found, the relevant flow tables are revoked and switched to dynamic routing forwarding to ensure rapid traffic switching when the link is abnormal, avoid long-term packet loss, and pass The intelligent routing algorithm optimizes the routing of long-tail delay tasks.

Benefits of technology

It realizes fast traffic switching when the link is abnormal, avoids interruption of AI training tasks, reduces AI training efficiency and performance loss, and ensures load balancing and high throughput of the entire network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612145A
    Figure CN118612145A
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent computing centers, in particular to a link exception processing method and device and related equipment. The method is applied to a target network device included in a forwarding path for forwarding a target flow by using a flow table in networking, and each network device included in the networking issues or transmits a host route accessing a computing power resource of the networking to other network devices of the networking based on a dynamic routing protocol. The method comprises: receiving a first flow table issued by a controller, the first flow table being used for forwarding a target flow, the first flow table comprising a source network address, a destination network address, an outbound interface and next hop information of the target flow; monitoring the state of a link associated with the first flow table; if it is monitored that the link associated with the first flow table has a fault, cancelling the first flow table; and forwarding the target flow based on the destination network address of the target flow and the dynamic routing table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent computing centers, and in particular to a link exception processing method, device and related equipment. Background Art

[0002] With the release of various AI (Artificial Intelligence) models, the demand for intelligent computing centers has also exploded rapidly, and a new wave of development of artificial intelligence technology has been quickly set off. The industry's demand for larger-scale AI model training is increasingly urgent. This puts forward new requirements on the performance of data center networks that support basic training.

[0003] Compared with general computing, the traffic model of AI training is characterized by large single-flow bandwidth and small number of flows. The traditional ECMP (Equal-Cost Multi-Path) traffic balancing mechanism will cause uneven traffic on the link due to the ECMP hash mechanism, that is, some links have full throughput or even congestion and packet loss, while some links are idle. As a result, the network throughput decreases and the AI ​​cluster service performance is not high. Summary of the invention

[0004] The present application provides a link abnormality processing method, device and related equipment.

[0005] In a first aspect, the present application provides a link exception processing method, which is applied to a target network device included in a forwarding path for a flow table to forward a target flow in a network, wherein each network device included in the network publishes or transmits a host route of a computing resource accessing the network to other network devices in the network based on a dynamic routing protocol; the method comprises:

[0006] Receive a first flow table sent by a controller, wherein the first flow table is used to forward a target flow, and the first flow table includes a source network address, a destination network address, an outbound interface, and next hop information of the target flow;

[0007] Monitoring a status of a link associated with the first flow table;

[0008] If a link failure associated with the first flow table is detected, revoking the first flow table;

[0009] The target flow is forwarded based on the destination network address of the target flow and the dynamic routing table.

[0010] Optionally, the method further comprises:

[0011] If it is determined that the route between the next-hop device and the next-hop device is unreachable, an instruction to revoke the second flow table used to forward the target flow is sent to the previous-hop device in the forwarding path, so that the previous-hop device forwards the target flow based on the destination network address of the target flow and the dynamic routing table after deleting the second flow table.

[0012] In a second aspect, the present application provides a link exception processing method, which is applied to a controller, wherein the controller enables each network device included in the network to publish or transmit the host route of the computing power resources connected to the network to other network devices in the network based on a dynamic routing protocol; the method includes:

[0013] Determine target flow information to be processed, wherein the target flow information includes a source network address and a destination network address of the target flow;

[0014] Based on the whole network topology and the quality information of each link, determine a forwarding path for transmitting the target flow, wherein the forwarding path includes M target network devices and M-1 target links composed of the target network devices;

[0015] A forwarding flow table is respectively issued to each target network device so that each target network device forwards the target flow based on the forwarding flow table, and when a target link failure associated with the local forwarding flow table is determined, the target flow is forwarded through the destination network address of the target flow and the dynamic routing table, wherein the forwarding flow table includes the source network address, destination network address, outgoing interface and next-hop device information of the target flow.

[0016] Optionally, the step of determining target flow information to be processed includes:

[0017] Obtaining mutual access information of a first AI training task, and determining the mutual access traffic of the first AI training task as a target flow to be processed, wherein the mutual access information of an AI training task includes a source computing resource network address and a destination computing resource network address information included in the AI ​​training task; or;

[0018] Receive the long-tail delay task information reported by the computing power resources, and determine the mutual access traffic of the long-tail delay task as the target flow to be processed, wherein the network card of the computing power resources, when detecting that the second AI training task has a long-tail delay, reports the long-tail delay task information carrying the source computing power resource network address and the destination computing power resource network address included in the second AI training task to the controller.

[0019] In a third aspect, the present application provides a link exception processing device, which is applied to a target network device included in a forwarding path of a target flow forwarded by a flow table in a network, wherein each network device included in the network publishes or transmits a host route of a computing resource connected to the network to other network devices in the network based on a dynamic routing protocol; the device includes:

[0020] A receiving unit, configured to receive a first flow table sent by a controller, wherein the first flow table is used to forward a target flow, and the first flow table includes a source network address, a destination network address, an outbound interface, and next hop information of the target flow;

[0021] a monitoring unit, configured to monitor a state of a link associated with the first flow table;

[0022] a revoking unit, wherein if the monitoring unit detects a link failure associated with the first flow table, the revoking unit is configured to revoke the first flow table;

[0023] The forwarding unit is used to forward the target flow based on the destination network address of the target flow and the dynamic routing table.

[0024] Optionally, the device further includes a determining unit and a sending unit:

[0025] If the determination unit determines that the route between the next-hop device is unreachable, the sending unit is used to send an instruction to the previous-hop device in the forwarding path to revoke the second flow table used to forward the target flow, so that the previous-hop device forwards the target flow based on the destination network address of the target flow and the dynamic routing table after deleting the second flow table.

[0026] In a fourth aspect, the present application provides a link exception processing device, which is applied to a controller, wherein the controller enables each network device included in the network to publish or transmit the host route of the computing resources connected to the network to other network devices in the network based on a dynamic routing protocol; the device includes:

[0027] A first determining unit, configured to determine target flow information to be processed, wherein the target flow information includes a source network address and a destination network address of the target flow;

[0028] A second determining unit is used to determine a forwarding path for transmitting the target flow based on the whole network topology and the quality information of each link, wherein the forwarding path includes M target network devices and M-1 target links composed of the target network devices;

[0029] A sending unit is used to send a forwarding flow table to each target network device respectively, so that each target network device forwards the target flow based on the forwarding flow table, and when it is determined that the target link associated with the local forwarding flow table fails, the target flow is forwarded through the destination network address of the target flow and the dynamic routing table, and the forwarding flow table includes the source network address, destination network address, outgoing interface and next-hop device information of the target flow.

[0030] Optionally, when determining the target flow information to be processed, the first determining unit is used to:

[0031] Obtaining mutual access information of a first AI training task, and determining the mutual access traffic of the first AI training task as a target flow to be processed, wherein the mutual access information of an AI training task includes a source computing resource network address and a destination computing resource network address information included in the AI ​​training task; or;

[0032] Receive the long-tail delay task information reported by the computing power resources, and determine the mutual access traffic of the long-tail delay task as the target flow to be processed, wherein the network card of the computing power resources, when detecting that the second AI training task has a long-tail delay, reports the long-tail delay task information carrying the source computing power resource network address and the destination computing power resource network address included in the second AI training task to the controller.

[0033] In a fifth aspect, an embodiment of the present application provides a link abnormality processing device, the link abnormality processing device comprising:

[0034] A memory for storing program instructions;

[0035] The processor is used to call the program instructions stored in the memory, and execute the steps of the method as described in any one of the first aspects above according to the obtained program instructions.

[0036] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the above-mentioned first aspects.

[0037] In a seventh aspect, an embodiment of the present application provides a link abnormality processing device, the link abnormality processing device comprising:

[0038] A memory for storing program instructions;

[0039] The processor is used to call the program instructions stored in the memory and execute the steps of the method as described in any one of the second aspects according to the obtained program instructions.

[0040] In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the second aspects above.

[0041] In summary, the link exception handling method provided in the embodiment of the present application is applied to the target network device included in the forwarding path of the target flow forwarded by the flow table in the network, and each network device included in the network publishes or transmits the host route of the computing resources connected to the network to other network devices in the network based on the dynamic routing protocol; the method includes: receiving a first flow table issued by a controller, wherein the first flow table is used to forward the target flow, and the first flow table includes the source network address, destination network address, outbound interface and next hop information of the target flow; monitoring the status of the link associated with the first flow table; if a link failure associated with the first flow table is detected, revoking the first flow table; forwarding the target flow based on the destination network address of the target flow and the dynamic routing table.

[0042] The link exception handling method provided in the embodiment of the present application is adopted, through a double-layer forwarding protection mechanism, forwarding flow table forwarding is used preferentially, and when an exception occurs, it is quickly switched to routing forwarding, thereby avoiding the risk of AI training task interruption when the link is abnormal in the computing network collaborative full network load balancing scenario.

[0043] By actively sensing link anomalies and actively canceling the forwarding flow table associated with the abnormal link through network equipment, the problem of long-term packet loss caused by the commonly used processing mechanism taking a long time when link anomalies occur in the scenario of coordinated full-network load balancing can be solved.

[0044] Furthermore, through the monitoring, perception and active notification mechanism of long-tail delay tasks on the computing resource side, the SDN controller can perceive long-tail delay tasks, and re-optimize the routing of long-tail delay tasks through the intelligent routing algorithm based on the global perspective of the controller, thereby solving the problem that when the link is abnormal in the computing network collaborative full network load balancing scenario, it is very easy to switch to dynamic routing forwarding, which leads to link traffic congestion caused by HASH polarization, greatly reducing the efficiency and performance of AI training. Finally, after the link abnormality and perception recovery, the whole network can still achieve high-throughput forwarding and greatly improve the efficiency and performance of AI training. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.

[0046] Figure 1 A detailed flow chart of a link abnormality processing method provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of network-wide load balancing for computing-network collaboration provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of switching forwarding modes for computing network collaboration provided in an embodiment of the present application;

[0049] Figure 4 A detailed flowchart of another link abnormality processing method provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of the structure of a link abnormality processing device provided in an embodiment of the present application;

[0051] Figure 6 A schematic diagram of the structure of another link abnormality processing device provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram of the hardware architecture of a link abnormality processing device provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of the hardware architecture of another link exception handling device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. The singular forms of "a", "said" and "the" used in the present application and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0055] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination".

[0056] Since the traffic model of AI training is characterized by large single-flow bandwidth and a small number of flows, the traditional ECMP traffic balancing mechanism will cause uneven traffic on the links due to the ECMP hash mechanism, that is, some links have full throughput or even congestion and packet loss, while some links are idle. As a result, network throughput decreases and the AI ​​cluster service performance is low.

[0057] In order to solve the above problems, a network-wide load balancing solution based on computing-network collaboration is proposed, which specifically includes: before AI training, UCCL (a collective communication library that can support heterogeneous multi-vendor GPUs) running on the GPU (Graphics Processing Unit) server reports the mutual access information of the AI ​​training task to the SDN controller. The SDN controller selects the end-to-end optimal path for the training task based on global information such as the network topology and link bandwidth through an intelligent routing algorithm, generates a corresponding forwarding flow table, and sends the forwarding flow table to each forwarding device, so that each forwarding device forwards the training task traffic based on the flow table, thereby achieving link load balancing at the network level.

[0058] However, link abnormality (such as optical module failure, cable failure, switch port failure, etc.) is a common failure mode. If it is sensed by the switch and then notified to the controller, the controller will cancel the forwarding flow table corresponding to the abnormal link, and then reselect the route and reissue a new forwarding flow table. Fault handling takes a long time, causing AI training tasks to be interrupted for a long time, greatly reducing the efficiency and performance of AI training.

[0059] For example, see Figure 1 As shown, it is a detailed flow chart of a link abnormality processing method provided by an embodiment of the present application, the method is applied to a target network device included in a forwarding path for a flow table to forward a target flow in a network, and each network device included in the network publishes or transmits a host route of a computing resource connected to the network to other network devices in the network based on a dynamic routing protocol; the method includes the following steps:

[0060] Step 100: Receive a first flow table sent by a controller.

[0061] The first flow table is used to forward the target flow, and the first flow table includes the source network address, destination network address, outbound interface and next hop information of the target flow.

[0062] For example, see Figure 2As shown, a schematic diagram of network-wide load balancing for computing-network collaboration provided by an embodiment of the present application is provided; in an AI cluster, an AI training parameter network is formed by interconnecting SDN (Software Defined Network) controllers, spine (Spine) and leaf (Leaf) switches, and the traffic of each AI training task is transmitted through the AI ​​training parameter network. A computing resource pool is composed of several GPU servers, and the example of GPU 1 of GPU server 1 accessing GPU 2 of GPU server 3 is used for explanation. It is assumed that the network address (e.g., IP address) of GPU 2 of GPU server 3 is IP 1, and the network address (e.g., IP address) of GPU 1 of GPU server 1 is IP 2.

[0063] On the control plane, the process of training task information collection, controller global intelligent routing and forwarding flow table delivery to the target network device (such as switch) is as follows:

[0064] 1. The SDN controller collects information such as the entire network topology and link bandwidth through SNMP (Simple Network Management Protocol) and telemetry technology.

[0065] 2. The GPU server notifies the mutual access information of the AI ​​training task (for example, GPU 1 (IP: IP 2) of GPU server 1 accesses GPU 2 (IP: IP 1) of GPU server 3) to the Agent (an application running on the GPU server for communicating with the SDN controller) through the RestAPI method, and the Agent reports it to the SDN controller.

[0066] 3. The SDN controller uses the global perspective and information such as the entire network topology and link bandwidth occupancy as input to the intelligent routing algorithm to select the end-to-end optimal forwarding path between interoperable GPU cards.

[0067] That is, determine the target network devices used to forward AI training task traffic (e.g., Leaf 1 and Spine 2 directly connected to GPU 1 of GPU server 1, and Leaf 3 directly connected to GPU 2 of GPU server 3), as well as the target link between GPU 1 of GPU server 1 and Leaf 1, the target link between Leaf 1 and Spine 2, the target link between Spine 2 and Leaf 3, and the target link between Leaf 3 and GPU 2 of GPU server 3 (e.g., the link indicated by the thick arrow in the figure).

[0068] 4. The SDN controller sends the routing configuration information to the switches Leaf 1, Spine 2, and Leaf 3 through the forwarding flow table. For example, the specific format of the forwarding flow table can be found in Figure 2 As shown, it should be noted that the forwarding flow table includes the destination IP address, source IP address, outbound interface and next-hop device. When the target network device is directly connected to the destination, the forwarding flow table may not include the next-hop device information.

[0069] On the forwarding plane, the GPU 1 network card of GPU server 1 sends a packet with destination IP 1 and source IP 2, and forwards it to the Leaf 1 switch directly connected to the network card. Leaf 1 searches the forwarding flow table of the local device for forwarding, matches the source and destination IP, sends it from the corresponding outbound interface, and then forwards it to the next-hop device Spine 2. Spine 2 searches the forwarding flow table of the local device for forwarding, matches the source and destination IP, sends it from the corresponding outbound interface, and then forwards it to the next-hop device Leaf 3. Leaf 3 searches the forwarding flow table of the local device for forwarding, matches the source and destination IP, sends it from the corresponding outbound interface, and then forwards it to the next-hop device Leaf 3.

[0070] In an embodiment of the present application, a dynamic routing protocol is enabled on the AI ​​training parameter network composed of Spine and Leaf, and the host routes of each GPU network card of the GPU server are published from the access side Leaf to the Spine through the dynamic routing protocol, and then published by the Spine to the remote Leaf through the dynamic routing protocol, thereby realizing the intercommunication traffic between GPU network cards, which can be forwarded by dynamic routing.

[0071] In actual applications, for single-tenant application scenarios, enable underlay routing protocols on Leaf and Spine switches, such as BGP Border Gateway Protocol (BGP Border Gateway Protocol) or IS-IS (Intermediate System to Intermediate System) or OSPF (Open Shortest Path First), and advertise the host routes of GPU 1 (IP: IP 2) of GPU server 1 and GPU 2 (IP: IP 1) of GPU server 3 to each switch in the Leaf-Spine network.

[0072] For multi-tenant application scenarios, enable underlay routing protocols between Leaf and Spine switches, such as BGP, ISIS, or OSPF, to achieve network reachability between switches. GPU cards are interconnected as a service network, and VxLAN (Virtual eXtensible Local Area Network) is enabled on the switch forwarding plane, and EVPN protocol is enabled on the switch controller plane. The host routes of GPU 1 (IP: IP 2) of GPU server 1 and GPU 2 (IP: IP 1) of GPU server 3 are announced to the remote Spine and Leaf switches through EVPN (Ethernet Virtual Private Network).

[0073] In this way, the target network device includes both a forwarding flow table for forwarding AI training task traffic and a dynamic routing table for forwarding the AI ​​training task traffic. The forwarding flow table has a higher priority than the dynamic routing table. Therefore, the forwarding flow table is used first to forward the AI ​​training task traffic.

[0074] Step 110: Monitor the status of the link associated with the first flow table.

[0075] Specifically, the link associated with the flow table refers to the forwarding link selected when the flow table is used for forwarding. In the embodiment of the present application, each target network device monitors the status of the link associated with the flow table, such as monitoring whether the optical module is faulty, the cable is faulty, or the switch port is faulty. In other words, monitoring whether the link is available.

[0076] Step 120: If a link failure associated with the first flow table is detected, the first flow table is revoked.

[0077] When the target network device detects that the link status associated with the local flow table is abnormal, it cancels the flow table, that is, no longer uses the flow table to forward the corresponding traffic.

[0078] Step 130: Forward the target flow based on the destination network address of the target flow and the dynamic routing table.

[0079] For example, see Figure 3 As shown, it is a schematic diagram of switching forwarding modes for computing network collaboration provided by an embodiment of the present application. When an abnormality occurs in the link associated with the forwarding flow table between Spine 2 and Leaf 3, the Spine 2 hardware senses the link abnormality:

[0080] At this time, Spine 2 actively cancels all forwarding flow tables related to this abnormal link. In actual applications, the dynamic route corresponding to this link (outbound interface) will also be canceled; that is, the forwarding mode of the Spine2 switch is switched from the forwarding mode based on the forwarding flow table to the forwarding mode based on the dynamic route, and forwarding is performed based on the dynamic route table. If there are other normal links between Spine 2 and Leaf 3 except the abnormal link, Spine 2 forwards based on the dynamic route corresponding to the normal link, such as Figure 3 As shown in the figure, there are two links between Spine 2 and Leaf 3. When the link associated with the forwarding flow table fails, the forwarding of related business traffic can be achieved based on the dynamic routing table corresponding to the other link, thereby achieving link abnormality without interrupting business traffic. If there are no other normal links except the abnormal link between Spine 2 and Leaf 3, Spine 2 sends a message to the previous hop device (Leaf 1) to revoke the forwarding flow table corresponding to the related business flow, instructing the previous hop device Leaf 1 to also switch to forwarding based on the dynamic routing table. In this way, even if a link abnormality occurs, the business traffic remains uninterrupted.

[0081] In actual applications, after a link is abnormal, link congestion is likely to occur when the target network device forwards based on dynamic routing. In the embodiment of this application, the SDN controller can be linked to the GPU network card to monitor and perceive the long-tail delay training task to achieve optimized adjustment of the link load, and ultimately achieve load balancing and high throughput of the links in the entire network. The specific process is as follows:

[0082] The GPU network card discovers long-tail latency tasks through RTT detection; the GPU network card notifies the agent of the information of the long-tail latency task (including source IP and destination IP), and the agent reports it to the SDN controller. The SDN controller combines the long-tail latency task information reported by the agent, and based on the real-time acquisition of the entire network topology, link bandwidth occupancy and other information, reselects an end-to-end optimal forwarding path for the interconnected GPU cards of the long-tail latency task through an intelligent routing algorithm. The SDN controller sends the routing configuration information to the switch on the optimal forwarding path through the forwarding flow table.

[0083] For example, see Figure 4 As shown, it is a detailed flow chart of a link abnormality processing method provided by an embodiment of the present application, the method is applied to a controller, and the controller enables each network device included in the network to publish or transmit the host route of the computing power resource accessed to the network to other network devices in the network based on a dynamic routing protocol; the method includes:

[0084] Step 400: Determine target flow information to be processed.

[0085] The target flow information includes a source network address and a destination network address of the target flow.

[0086] In the embodiment of the present application, when determining the target flow information to be processed, a preferred implementation method is:

[0087] Obtain mutual access information of the first AI training task, and determine the mutual access traffic of the first AI training task as the target flow to be processed, wherein the mutual access information of an AI training task includes the source computing power resource network address and the destination computing power resource network address information included in the AI ​​training task.

[0088] When determining the target flow information to be processed, another preferred implementation is:

[0089] Receive the long-tail delay task information reported by the computing power resources, and determine the mutual access traffic of the long-tail delay task as the target flow to be processed, wherein the network card of the computing power resources, when detecting that the second AI training task has a long-tail delay, reports the long-tail delay task information carrying the source computing power resource network address and the destination computing power resource network address included in the second AI training task to the controller.

[0090] Step 410: Based on the entire network topology and the quality information of each link, determine a forwarding path for transmitting the target flow.

[0091] Wherein, the forwarding path includes M target network devices and M-1 target links composed of the target network devices;

[0092] Step 420: Send the forwarding flow table to each target network device respectively.

[0093] In an embodiment of the present application, each target network device forwards the target flow based on the forwarding flow table, and when it is determined that the target link associated with the local forwarding flow table fails, the target flow is forwarded through the destination network address of the target flow and the dynamic routing table, and the forwarding flow table includes the source network address, destination network address, outgoing interface and next-hop device information of the target flow.

[0094] Based on the same inventive concept as the above-mentioned method embodiment applied to a network device, for example, refer to Figure 5 As shown, it is a structural schematic diagram of a link abnormality processing device provided by an embodiment of the present application, the device is applied to a target network device included in a forwarding path of a target flow forwarded by a flow table in a network, and each network device included in the network publishes or transmits the host route of the computing power resource connected to the network to other network devices in the network based on a dynamic routing protocol; the device includes:

[0095] A receiving unit 50 is configured to receive a first flow table sent by a controller, wherein the first flow table is used to forward a target flow, and the first flow table includes a source network address, a destination network address, an outbound interface, and next hop information of the target flow;

[0096] A monitoring unit 51, configured to monitor the state of a link associated with the first flow table;

[0097] a revoking unit 52, configured to revoke the first flow table if the monitoring unit 51 detects a link failure associated with the first flow table;

[0098] The forwarding unit 53 is configured to forward the target flow based on the destination network address of the target flow and the dynamic routing table.

[0099] Optionally, the device further includes a determining unit and a sending unit:

[0100] If the determination unit determines that the route between the next-hop device is unreachable, the sending unit is used to send an instruction to the previous-hop device in the forwarding path to revoke the second flow table used to forward the target flow, so that the previous-hop device forwards the target flow based on the destination network address of the target flow and the dynamic routing table after deleting the second flow table.

[0101] Based on the same inventive concept as the above method embodiment applied to the controller, for example, refer to Figure 6 As shown, it is a structural schematic diagram of a link abnormality processing device provided in an embodiment of the present application, and the device is applied to a controller, and the controller enables each network device included in the network to publish or transmit the host route of the computing power resources connected to the network to other network devices in the network based on a dynamic routing protocol; the device includes:

[0102] A first determining unit 60, configured to determine target flow information to be processed, wherein the target flow information includes a source network address and a destination network address of the target flow;

[0103] A second determining unit 61 is used to determine a forwarding path for transmitting the target flow based on the whole network topology and the quality information of each link, wherein the forwarding path includes M target network devices and M-1 target links composed of the target network devices;

[0104] The sending unit 62 is used to send a forwarding flow table to each target network device respectively, so that each target network device forwards the target flow based on the forwarding flow table, and when it is determined that the target link associated with the local forwarding flow table fails, the target flow is forwarded through the destination network address of the target flow and the dynamic routing table. The forwarding flow table includes the source network address, destination network address, outgoing interface and next-hop device information of the target flow.

[0105] Optionally, when determining the target flow information to be processed, the first determining unit 60 is used to:

[0106] Obtaining mutual access information of a first AI training task, and determining the mutual access traffic of the first AI training task as a target flow to be processed, wherein the mutual access information of an AI training task includes a source computing resource network address and a destination computing resource network address information included in the AI ​​training task; or;

[0107] Receive the long-tail delay task information reported by the computing power resources, and determine the mutual access traffic of the long-tail delay task as the target flow to be processed, wherein the network card of the computing power resources, when detecting that the second AI training task has a long-tail delay, reports the long-tail delay task information carrying the source computing power resource network address and the destination computing power resource network address included in the second AI training task to the controller.

[0108] The above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain unit above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0109] Further, the link abnormality processing device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the link abnormality processing device can be seen in Figure 7 As shown, the link abnormality processing device may include: a memory 70 and a processor 71,

[0110] The memory 70 is used to store program instructions; the processor 71 calls the program instructions stored in the memory 70 and executes the above method embodiment applied to the network device according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.

[0111] Optionally, the present application also provides a network device, comprising at least one processing element (or chip) for executing the above method embodiment applied to the network device.

[0112] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above-mentioned method embodiment applied to the network device.

[0113] Further, the link abnormality processing device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the link abnormality processing device can be seen in Figure 8 As shown, the link abnormality processing device may include: a memory 80 and a processor 81,

[0114] The memory 80 is used to store program instructions; the processor 81 calls the program instructions stored in the memory 80 and executes the above method embodiment applied to the controller according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.

[0115] Optionally, the present application also provides a controller, comprising at least one processing element (or chip) for executing the above method embodiment applied to the controller.

[0116] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above-mentioned method embodiment applied to the controller.

[0117] Here, the machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0118] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0119] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.

[0122] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0124] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A link abnormality processing method, characterized in that: Applied to a target network device included in a forwarding path of a target flow forwarded by a flow table in a network, each network device included in the network publishes or transmits a host route of a computing resource connected to the network to other network devices in the network based on a dynamic routing protocol; the method includes: Receive a first flow table sent by a controller, wherein the first flow table is used to forward a target flow, and the first flow table includes a source network address, a destination network address, an outbound interface, and next hop information of the target flow; Monitoring a status of a link associated with the first flow table; If a link failure associated with the first flow table is detected, revoking the first flow table; The target flow is forwarded based on the destination network address of the target flow and the dynamic routing table.

2. The method according to claim 1, characterized in that The method further comprises: If it is determined that the route between the next-hop device and the next-hop device is unreachable, an instruction to revoke the second flow table used to forward the target flow is sent to the previous-hop device in the forwarding path, so that the previous-hop device forwards the target flow based on the destination network address of the target flow and the dynamic routing table after deleting the second flow table.

3. A link abnormality processing method, characterized in that: Applied to a controller, the controller enables each network device included in the network to publish or transmit the host route of the computing resources connected to the network to other network devices in the network based on a dynamic routing protocol; the method includes: Determine target flow information to be processed, wherein the target flow information includes a source network address and a destination network address of the target flow; Based on the whole network topology and the quality information of each link, determine a forwarding path for transmitting the target flow, wherein the forwarding path includes M target network devices and M-1 target links composed of the target network devices; A forwarding flow table is respectively issued to each target network device so that each target network device forwards the target flow based on the forwarding flow table, and when a target link failure associated with the local forwarding flow table is determined, the target flow is forwarded through the destination network address of the target flow and the dynamic routing table, wherein the forwarding flow table includes the source network address, destination network address, outgoing interface and next-hop device information of the target flow.

4. The method according to claim 3, characterized in that The steps of determining the target flow information to be processed include: Obtaining mutual access information of a first AI training task, and determining the mutual access traffic of the first AI training task as a target flow to be processed, wherein the mutual access information of an AI training task includes a source computing resource network address and a destination computing resource network address information included in the AI ​​training task; or; Receive the long-tail delay task information reported by the computing power resources, and determine the mutual access traffic of the long-tail delay task as the target flow to be processed, wherein the network card of the computing power resources, when detecting that the second AI training task has a long-tail delay, reports the long-tail delay task information carrying the source computing power resource network address and the destination computing power resource network address included in the second AI training task to the controller.

5. A link abnormality processing device, characterized in that: The device is applied to a target network device included in a forwarding path of a target flow forwarded by a flow table in a network, wherein each network device included in the network publishes or transmits a host route of a computing resource connected to the network to other network devices in the network based on a dynamic routing protocol; the device includes: A receiving unit, configured to receive a first flow table sent by a controller, wherein the first flow table is used to forward a target flow, and the first flow table includes a source network address, a destination network address, an outbound interface, and next hop information of the target flow; a monitoring unit, configured to monitor a state of a link associated with the first flow table; a revoking unit, wherein if the monitoring unit detects a link failure associated with the first flow table, the revoking unit is configured to revoke the first flow table; The forwarding unit is used to forward the target flow based on the destination network address of the target flow and the dynamic routing table.

6. The device according to claim 5, characterized in that The device also includes a determining unit and a sending unit: If the determination unit determines that the route between the next-hop device is unreachable, the sending unit is used to send an instruction to the previous-hop device in the forwarding path to revoke the second flow table used to forward the target flow, so that the previous-hop device forwards the target flow based on the destination network address of the target flow and the dynamic routing table after deleting the second flow table.

7. A link abnormality processing device, characterized in that: Applied to a controller, the controller enables each network device included in the network to publish or transmit the host route of the computing resources connected to the network to other network devices in the network based on a dynamic routing protocol; the device includes: A first determining unit, configured to determine target flow information to be processed, wherein the target flow information includes a source network address and a destination network address of the target flow; A second determining unit is used to determine a forwarding path for transmitting the target flow based on the whole network topology and the quality information of each link, wherein the forwarding path includes M target network devices and M-1 target links composed of the target network devices; A sending unit is used to send a forwarding flow table to each target network device respectively, so that each target network device forwards the target flow based on the forwarding flow table, and when it is determined that the target link associated with the local forwarding flow table fails, the target flow is forwarded through the destination network address of the target flow and the dynamic routing table, and the forwarding flow table includes the source network address, destination network address, outgoing interface and next-hop device information of the target flow.

8. The device according to claim 7, characterized in that When determining the target flow information to be processed, the first determining unit is used to: Obtaining mutual access information of a first AI training task, and determining the mutual access traffic of the first AI training task as a target flow to be processed, wherein the mutual access information of an AI training task includes a source computing resource network address and a destination computing resource network address information included in the AI ​​training task; or; Receive the long-tail delay task information reported by the computing power resources, and determine the mutual access traffic of the long-tail delay task as the target flow to be processed, wherein the network card of the computing power resources, when detecting that the second AI training task has a long-tail delay, reports the long-tail delay task information carrying the source computing power resource network address and the destination computing power resource network address included in the second AI training task to the controller.

9. A link abnormality processing device, characterized in that: The link exception processing device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps of the method as described in any one of claims 1-2 or 3-4 according to the obtained program instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method as described in any one of claims 1-2 or 3-4.

Citation Information

Patent Citations

  • Method and device for updating stream forward table content based on the stream forward

    CN101009661A

  • Ring network fault switching method and device

    CN102299835A

  • SPFA algorithm-based dynamic route control method calculating forwarding path

    CN106209615A

  • Computing power routing method and device, electronic equipment and storage medium

    CN115412482A

  • Method for operating a flow-based switching system and switching system

    US20140016476A1

Cited By

  • Flow table information deletion method and device, equipment, storage medium and program product

    CN119520391A

  • Traffic forwarding method and device and related equipment

    CN119996305A