A data center network link recovery method and device based on fat tree topology

By implementing fast route switching within the switch in the fat-tree topology, caching and building FRN_MAD packets, the problem of long recovery caused by fiber link failure in high-performance computing environments is solved, rapid identification and recovery are achieved, and the stability of the network is ensured. performance and computational integrity.

CN117938743BActive Publication Date: 2024-09-10WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410098452.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-09-10
Estimated Expiration
2044-01-23

AI Technical Summary

Technical Problem

In high-performance computing environments, as node scale expands, the frequency of fiber link failures increases. Traditional software mechanisms cause link recovery times to be too long and cannot guarantee network reliability and stability, leading to an increased risk of job failure.

Method used

A data center network link recovery method based on fat tree topology is adopted. Through the fast routing switching mechanism in the switch, the data packet is discarded and the DLID and SLID are cached. The FRN_MAD packet is constructed using the backup port field or level value, and the link is directly performed in the switch. Switch and reduce recovery time.

Benefits of technology

It achieves rapid identification and rapid recovery of link faults, shortens link recovery time, ensures the integrity of calculations, enables rapid response in large-scale networks, and reduces the impact on operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117938743B
    Figure CN117938743B
Patent Text Reader

Abstract

The present invention provides a data center network link recovery method and device based on fat tree topology, the method comprising: according to the routing request of the switch inlet port, determining the egress port based on the routing source, when the link state of the egress port is abnormal, discarding the data packet, and caching the DLID and SLID in the data packet into the fast routing switching FRN sending queue; reading the spare port field in the DLID from the FRN sending queue, if the spare port field exists, modifying the routing table according to the spare port field value; if the spare port field does not exist, reading the level value of the switch in the fat tree topology; when the level value is not zero, forming an FRN_MAD packet according to the DLID and SLID, and transmitting it to the VHCA, so as to modify the routing table according to the DLID of the FRN_MAD packet by software. The technical solution of the present invention shortens the link recovery time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of high-performance network computing, and in particular relates to a data center network link recovery method and device based on fat-tree topology. Background Art

[0002] High-performance computing (HPC) has long been used to solve complex computational problems. With the current exponential growth of data, larger cluster computing scales are needed to meet current and future computing challenges. In HPC, efficient inter-process communication within a cluster depends on an interconnect fabric that can provide high bandwidth and low latency while supporting a large number of endpoints (computing and storage servers), relying on a high-speed and reliable interconnect network. MPI, shared storage, machine learning frameworks, and even new heterogeneous computing architectures all share common characteristics and requirements, necessitating robust and resilient networks.

[0003] As InfiniBand networks continue to scale to accommodate larger compute and storage capacities, 40K or even 100K network nodes may be needed in the future to meet demand. However, as HCA cards and switches are added, the fiber optic cables that accompany this growth will suffer physical or electrical damage, resulting in link failures. Traditional software mechanisms to address this problem include job checksums, which create a point-in-time snapshot of the job. If the job fails at some point in the future, the job continues from the state and time of the last successful success. Of course, the IB protocol also has data integrity checks and retransmission mechanisms, but these methods have a significant negative impact on performance and are impractical at very large scales.

[0004] In the experiment, we conducted a 15-day stress test in a small-scale NDR environment consisting of a two-layer fat tree with 280 nodes. The hourly probability of an NDR cable (cable 1) experiencing an anomaly was 0.0232%. A single cable would experience an anomaly approximately once in 5.6 months of use. With 10,000 cables, 2.32 would experience an anomaly in an hour. In the HDR environment of Wuzhen Center, three similar events occurred across 1,402 fiber optic cables over a seven-day period, with an hourly anomaly probability of 0.00129%. A simple calculation, based on the anomaly probabilities obtained in the test, shows the number of cable failures that occurred in two hours for 10,000, 40,000, and 100,000 nodes, as shown in Table 1.

[0005] Table 1

[0006]

[0007] It can be seen that link errors are common in large-scale environments. Whether it is Cable 1 or Cable 2, the frequency and probability of failure are relatively high in larger-scale environments. Therefore, more stable optical fiber links and faster and more effective link fault tolerance algorithms are needed.

[0008] However, in today's high-speed networks, if a link failure occurs, a node sends a management error (MAD) packet called trap128 to the subnet manager, OpenSM. Upon receiving the MAD packet, OpenSM identifies the failed link, triggers a rescan, and recalculates routes to avoid the problem. However, for 1,000 nodes, this can take up to 5 seconds; for clusters with 10,000 or more nodes, this can take 30 seconds or even longer, making it impossible to ensure the integrity of running computations. Inefficient processing mechanisms result in long link recovery times, which makes it impossible to guarantee network reliability and stability, and may even lead to job failures, which is unacceptable. Therefore, an efficient and fast routing fault tolerance method is urgently needed. Summary of the Invention

[0009] The object of the present invention is to provide a data center network link recovery method and device based on fat tree topology, aiming to shorten the link recovery time.

[0010] According to a first aspect of the present invention, a data center network link recovery method based on a fat-tree topology is provided, comprising:

[0011] According to the routing request of the switch input port, the output port is determined based on the routing table. When the link status of the output port is abnormal, the data packet is discarded and the DLID and SLID in the data packet are cached in the FRN sending queue;

[0012] Reading a standby port field in the DLID from the FRN transmit queue, and if the standby port field exists, modifying the routing table according to the standby port field value; if the standby port field does not exist, reading the level value of the switch in the fat tree topology;

[0013] When the level value is not zero, an FRN_MAD packet is constructed according to the DLID and the SLID and transmitted to the VHCA, so that the routing table is modified according to the DLID of the FRN_MAD packet by software.

[0014] Preferably, the reading the standby port field in the DLID from the FRN sending queue further comprises:

[0015] When the DLID and SLID stored in the FRN sending queue exceed a preset threshold, an interrupt is initiated to the CPU; after receiving the interrupt, the CPU obtains the FRN sending queue and parses the standby port field in the DLID.

[0016] Preferably, after reading the level value of the switch in the fat-tree topology, the method further includes:

[0017] When the level value is zero, no processing is performed.

[0018] Preferably, said forming the FRN_MAD packet according to the DLID and the SLID further comprises:

[0019] The SLID of the FRN_MAD packet is set to the LID of the switch, the DLID of the FRN_MAD packet is set to the SLID of the data packet, and the Payload of the FRN_MAD packet is filled with the DLID of the corresponding data packet.

[0020] Preferably, the step of constructing the FRN_MAD packet and transmitting it to the VHCA further comprises:

[0021] When the FRN_MAD packet reaches each level switch of the fat tree topology, if the level value is not zero, the FRN_MAD packet is directly forwarded; if the level value is zero, the packet is transmitted to the VHCA.

[0022] According to a second aspect of the present invention, a data center network link recovery device based on a fat tree topology is provided, comprising:

[0023] An interruption unit is configured to determine an egress port based on a routing table according to a routing request of an ingress port of the switch, and when a link state of the egress port is abnormal, discard the data packet and cache the DLID and SLID in the data packet into an FRN sending queue;

[0024] a judgment unit, configured to read a standby port field in the DLID from the FRN sending queue, and if the standby port field exists, modify the routing table according to the value of the standby port field; if the standby port field does not exist, read the level value of the switch in the fat tree topology;

[0025] The packet forming unit is configured to form an FRN_MAD packet according to the DLID and the SLID when the level value is not zero, and transmit the FRN_MAD packet to the VHCA so as to modify the routing table according to the DLID of the FRN_MAD packet by software.

[0026] Compared with the related art, the technical solution of the present invention has the following advantages:

[0027] The link switching of the present invention is directly performed in the switch, which shortens the link recovery time, ensures the integrity of the running calculation, and can realize the rapid identification and rapid recovery of the link failure.

[0028] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purposes and other advantages of the present invention can be achieved and obtained through the structures and processes indicated in the description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. It is obvious that the drawings described below are certain embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0030] Figure 1 FIG. 4 is a schematic diagram of uplink failure recovery according to the present invention.

[0031] Figure 2 FIG. 1 is a schematic diagram of downlink failure recovery according to the present invention.

[0032] Figure 3 The figure is an overall flow chart of a data center network link recovery method based on fat tree topology according to the present invention.

[0033] Figure 4 FIG. 4 is a schematic diagram of the reserved field of the SwitchInfo attribute according to the present invention.

[0034] Figure 5 FIG. 4 is a schematic diagram of the FRN_MAD packet format according to the present invention.

[0035] Figure 6 FIG. 4 is a schematic diagram of the FRNUpdateTable format according to the present invention.

[0036] Figure 7 2 is a schematic diagram of the FRN linear routing table packet format according to the present invention.

[0037] Figure 8 FIG. 1 is a schematic diagram of the format of the update status MAD packet according to the present invention.

[0038] Figure 9 Schematic diagram of the LFT table format according to the present invention.

[0039] Figure 10 FIG. 4 is a schematic diagram of the FRN Log format according to the present invention.

[0040] Figure 11 FIG. 4 is a flowchart of the fault point Switch processing according to the present invention.

[0041] Figure 12FIG. 1 is a schematic diagram of the FRN FIFO format according to the present invention.

[0042] Figure 13 Schematic diagram of the Update Table format according to the present invention.

[0043] Figure 14 This is a flow chart of the flow source switch processing according to the present invention.

[0044] Figure 15 is a flowchart of link rapid recovery according to the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0046] Based on the above analysis, in order to ensure that link failures can be quickly resolved and the response speed to link failures can be improved in large-scale network application scenarios, the present invention proposes a data center network link recovery method and device based on fat tree topology, which improves the speed of correcting communications when a link failure occurs, shortens the routing recovery time, and can seamlessly switch to other paths, reducing the impact on operations.

[0047] In the link recovery mechanism of the present invention, the switch has multiple routing paths to reach the destination, wherein the communication recovery mechanism for uplink failure is that when a link failure occurs in one of the paths of the switch, the switch at the fault point quickly identifies the link failure and switches the route to an alternative route, thereby avoiding the faulty link, such as Figure 1 In the communication recovery mechanism for downlink failure, in some cases the switch has no other ports to choose from to reach the destination due to link failure, such as the downstream switch in the fat tree network, such as Figure 2 As shown in Figure 1, the switch then transmits the information to another switch in the network, which then selects the optimal route to the destination. This invention leverages the concepts of alternative routes and fault information backhaul to achieve rapid link recovery. This rapid link recovery mechanism is based on the IB protocol and operates through the coordinated efforts of the switch's hardware and software.

[0048] See also Figure 3 The data center network link recovery method based on fat tree topology provided by the present invention includes:

[0049] Step 101: According to the routing request of the switch ingress port, the egress port is determined based on the routing table. When the link status of the egress port is abnormal, the data packet is discarded and the DLID and SLID in the data packet are cached in the fast routing switching FRN sending queue.

[0050] Step 102: Read the standby port field in the DLID from the FRN sending queue. If the standby port field exists, modify the routing table according to the standby port field value; if the standby port field does not exist, read the level value of the switch in the fat tree topology.

[0051] Step 103: When the level value is not zero, a FRN_MAD packet is constructed according to the DLID and the SLID, and transmitted to the VHCA, so that the routing table is modified according to the DLID of the FRN_MAD packet by software.

[0052] Specifically, before executing this method, the following related fields and attributes are pre-defined in the switch firmware:

[0053] (1) Add the fast recovery flag FRN_FLAG and the switch level SwitchLevel field. These two fields belong to the attributes of the switch and can use the existing reserved field of the SwitchInfo attribute, such as Figure 4 As shown in the figure, FRN_FLAG is used to identify the current switch as having experienced a fast routing switchover (FRN). OpenSM uses this field to determine whether a fast link recovery routing switchover has occurred on the current switch. SwitchLevel is used to identify the topology level of the current switch. The switch firmware uses the fat-tree topology level of the current switch to determine whether to enable fast link recovery, intercept and identify FRN_MAD, and other functions. The definition is shown in Table 2.

[0054] Table 2

[0055]

[0056] (2) Add the attribute FRNDLID, whose ID is 0xFFE0, to construct the FRN_MAD packet. The source node identifier SLID of the FRN_MAD packet is the LID of the current switch SW, and the destination node identifier DLID is the SLID of the data packet. The payload is 64 bytes, and 17 bits are used to fill the DLID of the data packet. When a downlink failure occurs, the FRN_MAD packet needs to be sent back to inform the traffic source switch to perform routing switching. The format and content of the FRN_MAD packet are defined as follows: Figure 5 , as shown in Table 3 and Table 4:

[0057] Table 3

[0058]

[0059] Table 4

[0060] Offset Bits Name Description Access 64+i*17 16:0 DLID DLID = SLID of the fast routing recovery packet RW

[0061] (3) Add the attribute FRNUpdateTable, ID = 0xFFE1, which is used to fill the MAD data packet in the form of LID-port when OpenSM obtains UpdateTable information. The payload is 64 bytes, (17-bit LID + 8-bit port id) * 20. OpenSM uses AttributeModifier to read the table entries sequentially. The format and content are defined as follows Figure 6 , as shown in Table 5 and Table 6:

[0062] Table 5

[0063]

[0064] Table 6

[0065]

[0066] (4) Add the routing table MAD attribute and packet format field, the attribute ID is 0xFFE2, and set the traditional LFT, backupport and flag in the IB protocol in one attribute to ensure consistency. OpenSM uses AttributeModifier to read the table entries in sequence. The format and content are defined as follows Figure 7 , as shown in Table 7 and Table 8: Table 7

[0067]

[0068] Table 8

[0069]

[0070] (5) Add the MAD attribute and packet format for the notification of the start and end status of the routing table configuration. The attribute ID is 0xFFE3. OpenSM needs to notify the firmware when configuring the routing table and when configuring the routing table. The firmware disables the fast routing mechanism during the time between the start and end. The format and content are defined as follows Figure 8 , as shown in Table 9:

[0071] Table 9

[0072]

[0073] A switch chip consists of multiple ports. Each port consists of a serializer / deserializer (Serdes) module, a physical link controller (Pcs) module, a link module, and ingress / egress modules. The ports are interconnected by an on-chip crossbar network. To support fast link recovery, the core modules in the switch chip must support the following functions.

[0074] For the routing table FTB (Fowrard Table) module, each table entry adds the BackupPort and Flag fields, such as Figure 9 The BackupPort is the backup port for link fast recovery routing, configured by OpenSM. The Flag field indicates whether the current DLID has undergone routing switching, which is modified by the switch firmware and has a default value of 0.

[0075] Egress, as the outbound data management module of the switch port, sets the FRN_EN register. When FRN_EN is enabled (the software turns it on when configuring the Linkinitialize to Linkarm switch), the data outbound buffer management module EGR drops packets based on the link state and generates an FRN log. frn_mask[2:0] masks the FRN log in the Linkarm / Linkinitialize / Linkdown states. The data loss scenarios are defined as shown in Table 10:

[0076] Table 10

[0077]

[0078]

[0079] See also Figure 10 ,The FRN log of each port consists of 32 entries, and each entry stores a different event (vldf, DLID, and SLID are all different).

[0080] Compare the DLID / iport_id of each packet to be discarded (excluding broadcast / multicast packets) with all entries with vldf=1 in the FRN log. If all are unequal, write them to the first entry with vldf=0.

[0081] If the vldf of the log entry is not all 0 or exceeds the preset threshold, an frn_log_ms_irq interrupt is generated. After all vldfs are set to 0, the interrupt is automatically canceled. The threshold is a configurable parameter.

[0082] After receiving the interrupt, the software reads 32 FRN log entries sequentially. If the current entry is read, the corresponding vldf is cleared. The FRN log entry address encoding is shown in Table 11:

[0083] Table 11

[0084] offerset description 0 FRN entry0 1 FRN entry 0 2 FRN entry 1 3 FRN entry 1 4 FRN entry 2 5 FRN entry 3 6 FRN entry 3 ... ... 63 FRN entry 31

[0085] For the Link module, Ingress distinguishes the level of the current switch. When the switch is at level 0, the MAD packet with Attribute ID 0xFFE0 is forwarded to port 0 without modifying the packet content.

[0086] The Ingress 1-bit Flag register interface is configured by software. When the value is 1, the MAD packet is forwarded to the internal management node VHCA; when the value is 0, the LID is routed to the output port. The data bit width in the Ingress is 1024 bits, with the Attribute ID located in the 1flit[735:720] field.

[0087] The switch's task management module, VHCA, implements FRN packet identification and reporting. Its functions include inspecting received SMP packets, identifying them as SMP packets by checking the opcode and QPN, and checking the DLID and Attribute ID. If they are equal to 0xFFE0, they are identified as FRN packets. The FRN packets are mapped to QP 2 and handshake with the transport layer (translayer) QP 2 to obtain payload storage information. After payload transfer is complete, the translayer is notified to generate a CQE and report an interrupt.

[0088] The information in the FRN packet header is reported through CQE, and the MAD message requires software to parse the payload to obtain it.

[0089] See also Figure 11 、 14 As shown in the flowchart in Figure 15, the link fast recovery steps are as follows:

[0090] An ingress port on the switch initiates a routing table query request to the FTB (Forward Table). The FTB returns the routing result (Output Number) to the ingress.

[0091] Based on the routing results, the ingress sends the packet to the corresponding ingress cache on the crossbar. The crossbar switches the packet to the corresponding egress cache. The egress cache sends the packet to the egress on the switch's outbound port.

[0092] If the Egress detection status is linkdown, the data packet cannot be sent, and the DLID and SLID in the data packet are extracted and stored in the local FRN FIFO (such as Figure 12 As shown in the figure), the data packet is discarded, the FIFO depth is 32, the bit width is 34 bits, and the Amost_full threshold register is set. When the DLID and SLID stored in the FIFO exceed the threshold, an interrupt is sent to the CPU.

[0093] After receiving the interrupt, the CPU reads the contents of the FRN FIFO in Link_tx and determines whether to modify the routing table directly or generate an FRN_MAD packet based on the value of the Backupport corresponding to the DLID.

[0094] If the value of Backupport is not 0, the CPU directly modifies the contents of the linear forwarding table (LFT) based on the contents of the FRN FIFO. The LFT can be considered a subset of the FTB. The specific operations are:

[0095] (1) Read the content in the DLID corresponding to the LFT.

[0096] (2) Change the output port to backup port, write 0 to backup port, and set flag to 1.

[0097] (3) The software maintains an Update Table in the on-chip storage unit OCM, whose format is as follows Figure 13 The maximum number of entries that can be stored is 4KB. In the next OpenSM sweep cycle, the newly added attribute FRN INFO is used to obtain the information in update_table, synchronize the updated routing table information in the SW, and complete the consistency of the routing tables in OpenSM and the switch. Finally, OpenSM completes the operation of writing FRN_FLAG back to 0.

[0098] If the Backupport value is 0 and the Switchlevel is not 0, the software constructs an FRN_MAD packet. The MAD SLID is set to the switch's LID, and the DLID is the packet's SLID. The Payload field is filled with the corresponding packet's DLID. If the Switchlevel is 0, the software does nothing (this indicates a fault between the switch and the HCA).

[0099] The CPU sends the FRN MAD command back to the VHCA, which then injects the MAD packet into the network. When the FRN_MAD packet reaches each switch, if the switchlevel is non-0, the FRN_MAD packet is forwarded directly.

[0100] When the FRN_MAD packet reaches the traffic source switch, the Ingress determines that it is an FRN_MAD packet based on the AttributeIDfield in the FRN_MAD packet. At the same time, if Switchlevel = 0, the packet is forwarded to the VHCA.

[0101] The VHCA receives the FRN_MAD packet and reports an interrupt. The software reads the FRN_MAD packet and modifies the routing table based on the DLID in the FRN_MAD packet's payload.

[0102] It can be seen that the data center network link recovery method based on fat tree topology proposed in the present invention, compared with related technologies, performs link switching directly in the switch, shortens the link recovery time, and can increase the routing recovery time to milliseconds, ensuring the integrity of running calculations and enabling rapid identification and rapid recovery of link failures.

[0103] Accordingly, in a second aspect, the present invention provides a data center network link recovery device based on a fat tree topology, comprising:

[0104] An interruption unit is configured to determine an egress port based on a routing table according to a routing request of an ingress port of the switch, and when a link state of the egress port is abnormal, discard the data packet and cache the DLID and SLID in the data packet into an FRN sending queue;

[0105] a judgment unit, configured to read a standby port field in the DLID from the FRN sending queue, and if the standby port field exists, modify the routing table according to the value of the standby port field; if the standby port field does not exist, read the level value of the switch in the fat tree topology;

[0106] The packet forming unit is configured to form an FRN_MAD packet according to the DLID and the SLID when the level value is not zero, and transmit the FRN_MAD packet to the VHCA so as to modify the routing table according to the DLID of the FRN_MAD packet by software.

[0107] The above-mentioned device can be implemented through the data center network link recovery method based on fat tree topology provided by the embodiment of the first aspect above. The specific implementation method can be found in the description of the embodiment of the first aspect and will not be repeated here.

[0108] It is understood that the circuit structures, names, and parameters described in the above embodiments are merely examples. Those skilled in the art may also readily conceive of combinations and adjustments to the structural features of the above embodiments as needed, and the present invention should not be limited to the specific details of the above examples.

[0109] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data center network link recovery method based on fat tree topology, characterized in that: include: According to the routing request of the switch input port, the output port is determined based on the routing table. When the link state of the output port is abnormal, the data packet is discarded, and the destination node identity DLID and the source node identity SLID in the data packet are cached in the fast routing switching FRN sending queue; Read the standby port field in the DLID from the FRN sending queue, and if the standby port field exists, modify the routing table according to the standby port field value; if the standby port field does not exist, read the level value of the switch in the fat tree topology; the level value is used to mark the level of the current switch in the fat tree topology, and the firmware of the switch determines whether to start link fast recovery, interception and identification of FRN_MAD according to the level; When the level value is not zero, a FRN_MAD packet is constructed according to the DLID and the SLID, and transmitted to the internal management node VHCA, so as to modify the routing table according to the DLID of the FRN_MAD packet by software; The step of reading the standby port field in the DLID from the FRN sending queue further comprises: When the DLID and SLID stored in the FRN sending queue exceed a preset threshold, an interrupt is initiated to the CPU; after receiving the interrupt, the CPU obtains the FRN sending queue and parses out the standby port field in the DLID; The modifying of the routing table according to the standby port field value further comprises: The CPU directly modifies the content in the linear forwarding table LFT according to the content in the FRN sending queue.

2. The data center network link recovery method based on fat tree topology according to claim 1 is characterized in that: After reading the level value of the switch in the fat tree topology, the method further includes: When the level value is zero, no processing is performed.

3. The data center network link recovery method based on fat tree topology according to claim 1 is characterized in that: The forming of the FRN_MAD packet according to the DLID and the SLID further comprises: The SLID of the FRN_MAD packet is set to the LID of the switch, the DLID of the FRN_MAD packet is set to the SLID of the data packet, and the Payload of the FRN_MAD packet is filled with the DLID of the corresponding data packet.

4. The data center network link recovery method based on fat tree topology according to claim 1 is characterized in that: The forming of the FRN_MAD packet and transmitting it to the internal management node VHCA further comprises: When the FRN_MAD packet reaches each level switch of the fat tree topology, if the level value is not zero, the FRN_MAD packet is directly forwarded; if the level value is zero, the FRN_MAD packet is transmitted to the VHCA.

5. A data center network link recovery device based on fat tree topology, characterized in that: include: An interruption unit is used to determine an egress port based on a routing table according to a routing request of an ingress port of the switch, and when the link state of the egress port is abnormal, discard the data packet, and cache the destination node identity DLID and the source node identity SLID in the data packet into a fast routing switching FRN sending queue; A judgment unit, configured to read the standby port field in the DLID from the FRN sending queue, and if the standby port field exists, modify the routing table according to the standby port field value; if the standby port field does not exist, read the level value of the switch in the fat tree topology; the level value is used to mark the level of the current switch in the fat tree topology, and the firmware of the switch determines whether to start link fast recovery, interception and identification of FRN_MAD according to the level; a packet forming unit, for forming an FRN_MAD packet according to the DLID and the SLID when the level value is not zero, and transmitting the packet to the internal management node VHCA so as to modify the routing table according to the DLID of the FRN_MAD packet by software; The judging unit is further configured to: When the DLID and SLID stored in the FRN sending queue exceed a preset threshold, an interrupt is initiated to the CPU; after receiving the interrupt, the CPU obtains the FRN sending queue and parses out the standby port field in the DLID; The modifying of the routing table according to the standby port field value further comprises: The CPU directly modifies the content in the linear forwarding table LFT according to the content in the FRN sending queue.

6. The data center network link recovery device based on fat tree topology according to claim 5, characterized in that: The judging unit is further configured to: When the level value is zero, no processing is performed.

7. The data center network link recovery device based on fat tree topology according to claim 5, characterized in that: The packaging unit is further used for: The SLID of the FRN_MAD packet is set to the LID of the switch, the DLID of the FRN_MAD packet is set to the SLID of the data packet, and the Payload of the FRN_MAD packet is filled with the DLID of the corresponding data packet.

8. The data center network link recovery device based on fat tree topology according to claim 5, characterized in that: The packaging unit is further used for: When the FRN_MAD packet reaches each level switch of the fat tree topology, if the level value is not zero, the FRN_MAD packet is directly forwarded; if the level value is zero, the FRN_MAD packet is transmitted to the internal management node VHCA.