Data transmission method, electronic device, and readable storage medium

By obtaining two paths in the combined environment of traditional network and computing power network, switching when paths are inconsistent or faults, the routing computing compatibility problem is solved, and routing stability and business reliability are improved.

WO2024244481A1PCT designated stage expired Publication Date: 2024-12-05ZTE CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/071625
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-29
Filing Date
2024-01-10
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

In an environment where traditional networks and computing power networks are combined, routing calculation results and protection policies are incompatible, resulting in long-term packet loss and service damage in the event of routing failure.

Method used

By obtaining two paths determined based on computing power scheduling and routing protocols, the computing power scheduling path is preferred for data transmission when the path is inconsistent, and switching to the routing protocol path when the path fails, achieving rapid switching and protection processing.

Benefits of technology

It improves the stability of the routing, reduces business damage, realizes compatibility between computing power scheduling and routing protocol computing routes, and avoids long-term packet loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071625_05122024_PF_FP_ABST
    Figure CN2024071625_05122024_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a data transmission method, an electronic device, and a readable storage medium. The method comprises: obtaining a first path and a second path of target routing, wherein the first path is determined on the basis of computing power scheduling, and the second path is determined on the basis of a routing protocol; when the first path is inconsistent with the second path, performing data transmission by means of the first path; and when a failure occurs to the first path, performing data transmission by means of the second path.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method, electronic device and readable storage medium

[0001] Cross-references

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on May 29, 2023, with application number 202310619089.9 and invention name “Data transmission method, electronic device and readable storage medium”. The entire contents of the application are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of network communication technology, and in particular to a data transmission method, an electronic device, and a readable storage medium. Background Art

[0004] Typically, routing in a computing network is determined by the network's brain, which calculates and distributes routes to various network devices. In traditional networks, routing is calculated by routing protocols, which don't consider the computing power requirements of the routes. When a computing network is introduced, the routing calculation results and routing protection strategies in the combined computing network and traditional network are not fully compatible.

[0005] Summary of the Invention

[0006] Embodiments of the present application provide a data transmission method, an electronic device, and a readable storage medium.

[0007] In order to solve the above technical problems, this application is implemented as follows.

[0008] In a first aspect, a data transmission method is provided, comprising: obtaining a first path and a second path of a target route, wherein the first path is determined based on computing power scheduling, and the second path is determined based on a routing protocol; in a case where the first path and the second path are inconsistent, data transmission is performed through the first path; in a case where a failure occurs in the first path, data transmission is performed through the second path.

[0009] In a second aspect, an electronic device is provided, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the data transmission method described in the first aspect are implemented.

[0010] In a third aspect, a program or instruction is stored on a readable storage medium, and when the program or instruction is executed by a processor, the steps of the data transmission method as described in the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0012] FIG1 shows a flow chart of a data transmission method provided by an exemplary embodiment of the present application;

[0013] FIG2 shows a flow chart of another data transmission method provided by an exemplary embodiment of the present application;

[0014] FIG3 shows a flow chart of another data transmission method provided by an exemplary embodiment of the present application;

[0015] FIG4 shows a schematic diagram of a data transmission method provided by an exemplary embodiment of the present application;

[0016] FIG5 is a schematic diagram showing another data transmission method provided by an exemplary embodiment of the present application;

[0017] FIG6 shows a schematic diagram of another data transmission method provided by an exemplary embodiment of the present application;

[0018] FIG7 shows a structural block diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0019] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0020] FIG1 shows a flow chart of a data transmission method provided by an exemplary embodiment of the present application. Referring to FIG1 , the method may include the following steps.

[0021] Step 102: Obtain a first path and a second path of the target route, where the first path is determined based on computing power scheduling, and the second path is determined based on a routing protocol.

[0022] Among them, determining the first path based on computing power scheduling can be the first path that satisfies the target route through computing network brain calculation; determining the second path based on the routing protocol is a traditional network calculation routing path method that is different from the computing power scheduling method.

[0023] Step 104 : When the first path and the second path are inconsistent, data is transmitted through the first path.

[0024] Among them, the situation where the first path and the second path are inconsistent can include, for example, after the traditional network calculates the path of the target route, the network brain calculates the path that meets the target route, but the path calculated by the network brain is not the path calculated by the above-mentioned traditional network. At this time, the path calculated by the network brain is preferentially selected for data transmission.

[0025] Step 106: When a failure occurs on the first path, data is transmitted through the second path.

[0026] In an embodiment of the present application, after obtaining a first path of the target route determined based on computing power scheduling, for example, obtaining a routing path through computing network brain calculation, and obtaining a second path of the target route determined based on a routing protocol, in the event that the first path and the second path are inconsistent, data transmission is performed preferentially through the first path determined based on computing power scheduling; and when the first path fails, data transmission is performed through the second path determined based on the routing protocol. By quickly switching the paths determined by different methods of the target route in different situations, the routing calculated by computing power scheduling and the routing calculated by the routing protocol can be better compatible. On the basis of the routing path calculated by computing power scheduling, the routing path is supplemented by the traditional routing protocol to calculate the routing path. The target route is protected by fast switching of the path, and a protection switching path is provided when the first path fails, thereby preventing the target route from experiencing packet loss for a long time, improving the stability of the target route, and reducing business damage.

[0027] In one implementation, after step 106, the data transmission method may further include: step 108, when the first path returns to normal, transmitting data through the first path.

[0028] In an embodiment of the present application, when a failure occurs in the first path determined based on computing power scheduling, data transmission through the first path is switched to data transmission through the second path; and when the first path returns to normal, data transmission through the second path is switched to data transmission through the first path, thereby switching between different feasible paths in different situations, and thus protecting the target route.

[0029] In one implementation, after the above-mentioned step 102, the above-mentioned data transmission method may further include: generating a first fast reroute (FRR) group based on the first path and the second path, wherein the main path of the first FRR group is the first path, and the backup path of the first FRR group is the second path in the first FRR group.

[0030] In an embodiment of the present application, the path calculated based on computing power scheduling and the path calculated based on the routing protocol constitute a first FRR group, and the first FRR group includes a main path and a backup path. When the path calculated based on computing power scheduling, for example, the path that satisfies the target route calculated by the computing network brain, is not the main path in the first FRR group, the computing network brain will use the backup path in the first FRR group as the path of the target route, and make the exit of the target route no longer have the FRR attribute.

[0031] In one implementation, when it is determined based on the routing protocol that the target route exists in a second FRR group, a currently valid path in the second FRR group is determined to be the second path.

[0032] When the path that satisfies the target route calculated by the computing network brain is not the main path in the first FRR group, the computing network brain will use the backup path in the first FRR group as the path of the target route, and make the exit of the target route no longer have the FRR attribute. When it is determined based on the routing protocol that the target route exists in a second FRR group, the second FRR group includes the currently effective second path, which is specifically provided to the computing network brain for use in calculating the routing path.

[0033] Thereby, it is possible to implement the protection of the FRR group for the path calculated by the computing network brain, and give priority to the path calculated by the computing network brain. When the path calculated by the computing network brain fails, the path of the target route can be switched to the backup path of the FRR group determined based on the routing protocol, that is, the second path currently in effect in the second FRR group determined based on the routing protocol, to ensure that effective path switching can be performed when the path calculated by the computing network brain fails. In addition, when the path calculated by the computing network brain returns to normal, the path of the target route can also be switched back to the path calculated by the computing network brain. Therefore, the embodiment of the present application not only satisfies the priority of data transmission through the path calculated by the computing network, but also realizes the protection of the path when the path calculated by the computing network fails.

[0034] FIG2 shows a flow chart of another data transmission method provided by an exemplary embodiment of the present application. Referring to FIG2 , the method may include the following steps.

[0035] Step 202: Obtain a first path and a second path of the target route, where the first path is determined based on computing power scheduling, and the second path is determined based on a routing protocol.

[0036] Step 204: Write the first path into an access control list (ACL). If the first path is normal, set the valid bit of the ACL to valid.

[0037] Step 206: When the first path and the second path are inconsistent, data transmission is performed through the first path.

[0038] Among them, after obtaining the second path determined based on the routing protocol, if the target route needs to be forwarded from other paths when the first path is determined by computing power scheduling, the first path determined by computing power scheduling will be written into the ACL, matched and issued by the ACL, and if the first path is normal, its valid bit in the ACL will be set to valid; at this time, since the priority of issuing the target routing path through ACL matching is higher than the priority of issuing the path determined based on the routing protocol, therefore, when the first path is normal, when the first path determined based on computing power scheduling is inconsistent with the second path determined based on the routing protocol, the ACL matching path will take effect first, and data transmission will be carried out through the first path first.

[0039] Step 208: When a failure occurs on the first path, the valid bit of the ACL is set to invalid; and data is transmitted through the second path.

[0040] Among them, when the first path calculated by the network brain fails, the ACL must be processed to avoid the problem of large-scale packet loss due to path inaccessibility. The ACL is associated with the port status of the device or the path detection message mechanism. When the first path calculated by the network brain fails, such as a line disconnection or path failure, the valid bit of the ACL is set to invalid, but the ACL is not deleted. The problem with the device's path exit can be detected by detecting the port status of the device, and the ACL is then invalidated. At the same time, the path status can also be detected through the path detection and insulation mechanism. When the path problem cannot be detected locally, the message can be detected through bidirectional forwarding detection (BFD) and connectivity fault management (CFM) to determine whether the path is normal. When the path is abnormal, the ACL is immediately invalidated, the valid bit of the ACL is set to invalid, the target route matches the path determined by the routing protocol, and forwarding continues.

[0041] In one implementation, after step 208, the data transmission method may further include: when the first path returns to normal, setting the valid bit of the ACL to valid.

[0042] In an embodiment of the present application, after obtaining the first path and the second path, the first path determined based on computing power scheduling is written into the ACL, and when the first path is normal, the valid bit of the ACL is set to valid. In this way, when the first path is normal, when the first path determined based on computing power scheduling is inconsistent with the second path determined based on the routing protocol, the ACL matching path will take precedence, and data transmission will be performed through the first path first; and when the first path calculated by the computing network brain fails, the valid bit of the ACL is set to invalid, and the path is switched to the second path determined based on the routing protocol, and data transmission is performed through the second path.

[0043] In addition, when the first path calculated by the computing network brain returns to normal, the ACL detects that the associated path has returned to normal, and then sets the valid bit of the ACL to valid again, and switches the path to the first path calculated by the computing network brain. This realizes that when the path calculated by the computing network brain is normal, the path calculated by the computing network brain is matched first based on the ACL, and when the path calculated by the computing network brain fails, the path is switched to the path determined based on the routing protocol, thereby realizing the protection of the routing path.

[0044] FIG3 shows a flowchart of another data transmission method provided by an exemplary embodiment of the present application in one implementation manner. Referring to FIG3 , the method may include the following steps.

[0045] Step 302: Obtain a first path and a second path of the target route, where the first path is determined based on computing power scheduling, and the second path is determined based on a routing protocol.

[0046] Step 304: Write the first path into the first position of the routing table, wherein the first position is located before the second position, and the second position is the position of the second path in the routing table.

[0047] Among them, when the target route to be calculated by the computing network brain is the same as the target route calculated based on the routing protocol, the first path calculated by the computing network brain is written into the first position of the routing table, such as the ternary content addressable memory (TCAM), and the first position is located in front of the second position of the second path in the routing table, so that when searching for the path from front to back according to the order, the first path calculated by the computing network brain can be found first.

[0048] Optionally, when the first path calculated by the computing network brain is written into the routing table, priority can be sorted through the mapping of the software table, or priority can be sorted directly in the hardware table to improve the priority of the path sent by the computing network brain.

[0049] Step 306: When the first path and the second path are inconsistent, data transmission is performed through the first path.

[0050] Step 308: When a failure occurs on the first path, the first path in the routing table is deleted; and data is transmitted through the second path found in the routing table.

[0051] Among them, when the first path calculated by the computing network brain fails, the first path is deleted from the routing table, so that when searching for a path, the second path can be found in order, and data transmission is performed through the second path.

[0052] In one implementation, after step 308, the data transmission method may further include: when the first path returns to normal, rewriting the first path into the first position of the routing table.

[0053] In an embodiment of the present application, if the route to be calculated by the computing network brain is a subnet segment route of the target route, the subnet segment route is directly written into the routing table, and the path exit points to the path exit of the computing network brain. In this way, when matching routes, the first path calculated by the computing network brain will be matched first according to the longest match principle. If the first path calculated by the computing network brain fails, such as when it fails, the relevant subnet segment route is immediately set to invalid, and the target route will be forwarded from the second path calculated based on the routing protocol. When the path is restored, the relevant subnet segment route is restored, and then the path calculated by the computing network brain is matched, completing the priority matching of the computing network path.

[0054] If the target route calculated by the network brain is the same as the target route calculated based on the routing protocol, the first path calculated by the network brain is written into the first position of the routing table, such as TCAM, and the first position is located in front of the second position of the second path in the routing table. In other words, the first path calculated by the network brain is ranked in front of the second route calculated based on the routing protocol. Since the routing tables of network devices are basically TCAMs, the search is done from front to back, so when searching for paths from front to back according to the order, the first path calculated by the network brain can be found first.

[0055] Furthermore, if the first path calculated by the network brain fails, it is deleted from the routing table, allowing the second path to be found in order when searching for a path, allowing data to be transmitted via the second path. When the first path calculated by the network brain returns to normal, it is rewritten to the first position in the routing table, also ahead of the second path calculated based on the routing protocol, so that the first path is matched first.

[0056] Through the embodiments of the present application, it is possible to implement hierarchical management of the first path calculated by the computing network brain and the second path calculated based on the routing protocol, so that the path calculated by the computing network brain is matched first, and when the path fails, the path is switched to the path calculated based on the routing protocol to achieve rapid switching and protection of the path, thereby avoiding long-term packet loss in the routing.

[0057] In one implementation, the failure of the first path may include: an abnormal port status of the first path; and / or an abnormal detection message passing through the first path.

[0058] In an embodiment of the present application, when implementing path switching protection by using an FRR group, or implementing path switching protection by using an ACL, or implementing path switching protection by using a TCAM, when detecting whether a fault occurs on the first path, the port status of the first path can be detected, or the first path can be detected by detecting messages such as BFD and CFM.

[0059] The following embodiments are mainly used in network scenarios where computing power networks are combined with traditional networks. Among them, for the areas planned by the computing power network, all routing paths are calculated by the computing network brain, especially when the routing of the computing power network needs to switch paths quickly, it is also calculated and determined by the computing network brain; while for traditional networks, the traditional method is used to calculate the routing path through the routing protocol; or, the paths of some routes in the area planned by the computing power network are calculated by the computing power network, but this is unrelated to the calculation of the routing path by the traditional network. The following embodiments are used to solve the problem that when the routing path of the computing power network is abnormal, the computing network brain fails to calculate the protection switching path and send it down, resulting in a long period of packet loss in the routing, so as to achieve compatibility between the computing power network and the traditional network in the routing path protection strategy.

[0060] FIG4 shows a schematic diagram of a data transmission method provided in an embodiment of the present application. The method uses an FRR group for processing. Referring to FIG4 , the method may include the following steps.

[0061] Step 1: Determine a second FRR group based on the routing protocol. For example, the routing FRR group is obtained by traditional network calculation. The route 10.10.10.0 includes two FRR exits to the next hop, namely, the FRR primary path A and the FRR backup path B.

[0062] Step 2: Determine the first path based on computing power scheduling; for example, the computing network brain of the computing power network calculates the path C of route 10.10.10.0 and sends it to the device.

[0063] In step 3, the device finds that the route 10.10.10.0 exists in the FRR group and copies the effective path A in the current FRR group.

[0064] Step 4: Generate a first FRR using the first path determined by computing power scheduling and the effective path determined by the routing protocol. Path C and path A are combined to form a new FRR group, which is then sent to the hardware. At this point, the primary path of the FRR group in the hardware is path C, and the backup path is path A.

[0065] In step 5, if a primary / backup switchover occurs in the FRR group calculated using the traditional network, that is, the primary path switches from A to the backup path B, the current valid path in the new FRR group for route 10.10.10.0 is synchronously replaced with B. At this point, the primary path of the FRR group in the hardware is path C, and the backup path is path B.

[0066] Step 6: When the first path fails, that is, when path C becomes abnormal, the backup path of the FRR group is switched to path A for escape; when the first path returns to normal, that is, when path C returns to normal, the network switches back to path C.

[0067] This enables hierarchical processing of routing paths of computing power networks and traditional networks using FRR groups.

[0068] FIG5 shows a schematic diagram of another data transmission method provided in an embodiment of the present application. The method uses ACL for processing. Referring to FIG5 , the method may include the following steps.

[0069] Step 1: Determine a second path based on a routing protocol; for example, the route 10.10.10.0 obtained by traditional network calculation includes path A.

[0070] Step 2: Determine the first path based on computing power scheduling; for example, the computing network brain of the computing power network calculates the route 10.10.10.0 including path C and sends it to the device.

[0071] Step 3: Write the first path into the ACL. If the first path is normal, set the valid bit of the ACL to valid. For example, if the device finds that the path A of the route 10.10.10.0 has been written into the routing table, it writes path C into the ACL table.

[0072] Step 4: After the ACL table is formed, the valid bits of the ACL are associated with the health status of path C. Optionally, the valid bits of the ACL can be determined by detecting whether the port status of path C is normal, or the health status of path C can be detected by BFD, CFM, and other messages on path C to determine the valid bits of the ACL.

[0073] Step 5: If the first path fails, that is, path C is abnormal, the valid bit of the ACL is set to invalid and the data is forwarded through path A.

[0074] Step 6: If the first path returns to normal, that is, path C returns to normal, the valid bit of the ACL is set to valid, and the packet is forwarded through path C.

[0075] This enables hierarchical processing of the routing paths of computing power networks and traditional networks using ACL.

[0076] FIG6 shows a schematic diagram of another data transmission method provided in an embodiment of the present application. The method uses TCAM for processing. Referring to FIG6 , the method may include the following steps.

[0077] Case 1: The route to be calculated by the computing network is a subnet route of the target route.

[0078] Step 1: Determine a second path based on a routing protocol; for example, the route 10.10.10.0 obtained by traditional network calculation includes path A.

[0079] Step 2: Determine the first path based on computing power scheduling; for example, the computing network brain calculates the route 10.10.10.0 including path C and sends it to the device.

[0080] Step 3: Write both path A and path C into the routing table, and match the paths based on priority; for example, the longest match principle.

[0081] Case 2: The target route calculated by the computing network is the same as the target route calculated by the routing protocol.

[0082] Steps 1 and 2 are the same as those above.

[0083] In step 3, the device discovers that path A exists for route 10.10.10.0, and that the newly written path is path C calculated by the computing network. The newly written path C does not overwrite the existing path A.

[0084] Step 4: By comparing the priorities of path C and path A, it is determined that the priority of path C is higher than that of path A. Then, the write position of path C is arranged before the write position of path A in the TCAM.

[0085] In step 5, when matching paths, path C is matched first because it is ahead of path A, so the packet is forwarded through path C.

[0086] Step 6: If the first path fails, that is, path C is abnormal, path C in the TCAM is deleted, and path A is matched for escape.

[0087] Step 7: If the first path recovers, that is, path C recovers, path C is rewritten in front of path A in the TCAM, so as to match path C with a higher priority for forwarding.

[0088] This enables hierarchical processing of routing paths in computing networks and traditional networks using TCAM.

[0089] In an exemplary embodiment, an electronic device is also provided, which is used to perform the above-mentioned data transmission method. Figure 7 is a structural diagram of an electronic device that implements various embodiments of the present application. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 701, a communication interface (Communications Interface) 702, a memory (memory) 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 complete communication with each other through the communication bus 704. The processor 701 can call a computer program stored in the memory 703 and can be run on the processor 701 to perform the following steps: obtain a first path and a second path of the target route, the first path is determined based on computing power scheduling, and the second path is determined based on a routing protocol; when the first path and the second path are inconsistent, data transmission is performed through the first path; when the first path fails, data transmission is performed through the second path.

[0090] The specific execution steps can refer to the various steps of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0091] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices other than terminals.

[0092] The above electronic device structure does not constitute a limitation of the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. to configure the display panel. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include but are not limited to a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0093] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct rambus random access memory (DRRAM).

[0094] The processor may include one or more processing units; optionally, the processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operations related to the operating system, user interface, and application programs, and the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into the processor.

[0095] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement all or part of the steps of the above-mentioned data transmission method. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, or an optical data storage device.

[0096] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered merely as exemplary, and the true scope and spirit of the present application are indicated by the claims.

[0097] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A data transmission method, include: Acquire a first path and a second path of a target route, wherein the first path is determined based on computing power scheduling, and the second path is determined based on a routing protocol; When the first path is inconsistent with the second path, data transmission is performed through the first path; When the first path fails, data is transmitted through the second path.

2. The method according to claim 1, in, After performing data transmission through the second path, the method further includes: When the first path returns to normal, data is transmitted through the first path.

3. The method according to claim 1 or 2, in, After acquiring the first path and the second path of the target route, the method further includes: A first fast rerouting FRR group is generated according to the first path and the second path, wherein a primary path of the first FRR group is the first path, and a backup path of the first FRR group is the second path in the first FRR group.

4. The method according to claim 3, in, In a case where it is determined based on the routing protocol that the target route exists in a second FRR group, a currently valid path in the second FRR group is determined to be the second path.

5. The method according to claim 1 or 2, in, After acquiring the first path and the second path of the target route, the method further includes: The first path is written into an access control list ACL, wherein when the first path is normal, a valid bit of the ACL is set to valid.

6. The method according to claim 5, in, The using the second path to perform data transmission when the first path fails includes: In the event that the first path fails, setting the valid bit of the ACL to invalid; Data transmission is performed via the second path.

7. The method according to claim 6, in, After performing data transmission through the second path, the method further includes: When the first path returns to normal, the validity bit of the ACL is set to valid.

8. The method according to claim 1 or 2, in, After acquiring the first path and the second path of the target route, the method further includes: The first path is written into a first position of a routing table, wherein the first position is located before a second position, and the second position is the position of the second path in the routing table.

9. The method according to claim 8, in, When the first path fails, transmitting data through the second path includes: In the event that a failure occurs in the first path, deleting the first path in the routing table; Data is transmitted through the second path found in the routing table.

10. The method according to claim 9, in, After data transmission is performed through the second path hit in the routing table, the method further includes: When the first path returns to normal, the first path is rewritten into the first position of the routing table.

11. The method according to claim 1 or 2, in, The first path fails, including: The port status of the first path is abnormal; and / or, An abnormality occurs in the detection message passing through the first path.

12. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 11 are implemented.

13. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the data transmission method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method and device for establishing data transmission route

    CN104283780A

  • Data transmission system, method and device and equipment

    CN111817955A

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

    CN115412482A

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

    CN115426327A

  • Data transmission method and device

    US20180062676A1