Data transmission method, electronic equipment and readable storage medium

By obtaining and managing multiple paths in computing power networks and traditional networks, and using the paths determined by computing power scheduling and routing protocols for hierarchical management and quick switching, the problem of poor compatibility between computing power networks and traditional networks is solved, and routing is improved stability and compatibility.

CN119052164APending Publication Date: 2024-11-29ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310619089.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-29
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In a network that combines computing power network and traditional network, computing power network and traditional network cannot be well compatible with computing routing paths and protection switching strategies, resulting in the inability to effectively compatible routing calculation results and protection strategies, and packet loss for a long time occurs. .

Method used

By obtaining the first path and the second path of the target route, the first path is determined based on the computing power scheduling, and the second path is determined based on the routing protocol. When the path is inconsistent, data is transmitted using the computing power scheduling path first, and switch to the route when the path fails. Protocol paths, implement hierarchical management and fast switching of paths.

Benefits of technology

Compatibility between computing power scheduling and computing routes and routing protocols is achieved, avoiding the phenomenon of packet loss for a long time on the route, improving the stability of the route and reducing business damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052164A_ABST
    Figure CN119052164A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, electronic equipment and a readable storage medium, and the method comprises the steps: obtaining a first path and a second path of a target route, the first path being determined based on computing power scheduling, and the second path being determined based on a routing protocol; under the condition that the first path is inconsistent with the second path, data transmission is carried out through the first path; and performing data transmission through the second path under the condition that the first path has a fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] Generally speaking, the routing of the computing network depends on the calculation of the computing network brain, which calculates the routing and sends it to each network device. The routing calculation in the traditional network is calculated by the routing protocol, which does not consider the computing power attribute requirements of the routing. When the computing network is introduced, the routing calculation results and the protection strategy for the routing in the network combined with the computing network and the traditional network cannot be well compatible. Summary of the invention

[0003] The embodiments of the present application provide a data transmission method, an electronic device and a readable storage medium, which can solve the problem that in a network where a computing power network and a traditional network are combined, the computing power network and the traditional network are not well compatible with each other in terms of computing routing paths and protection switching of routing paths.

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

[0005] In a first aspect, a data transmission method is provided, the method comprising: obtaining a first path and a second path of a target route, the first path being determined based on computing power scheduling, and the second path being determined based on a routing protocol; in the event that the first path is inconsistent with the second path, transmitting data through the first path; in the event that a failure occurs in the first path, transmitting data through the second path.

[0006] In a second aspect, an electronic device is provided, which includes 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 described in the first aspect are implemented.

[0007] 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.

[0008] In an embodiment of the present application, by obtaining a first path and a second path of a 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 is inconsistent with the second path, data is transmitted through the first path; when the first path fails, data is transmitted through the second path, thereby realizing hierarchical management of the first path determined based on computing power scheduling and the second path determined based on the routing protocol, as well as rapid switching of the first path and the second path, so that the computing power scheduling calculated routing and the routing protocol calculated routing can be better compatible, and when the first path determined by the computing power scheduling fails, data is transmitted through the second path determined by the routing protocol, thereby solving the problem that when the routing of the computing power network is abnormal, the computing power scheduling fails to calculate the protection switching path for sending, resulting in a long period of packet loss in the routing.

[0009] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] 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.

[0011] Figure 1 A flowchart of a data transmission method provided by an exemplary embodiment of the present application is shown;

[0012] Figure 2 A flowchart of another data transmission method provided by an exemplary embodiment of the present application is shown;

[0013] Figure 3 A flowchart of another data transmission method provided by an exemplary embodiment of the present application is shown;

[0014] Figure 4 A schematic diagram of a data transmission method provided by an exemplary embodiment of the present application is shown;

[0015] Figure 5 A schematic diagram showing another data transmission method provided by an exemplary embodiment of the present application is shown;

[0016] Figure 6 A schematic diagram showing another data transmission method provided by an exemplary embodiment of the present application is shown;

[0017] Figure 7 A structural block diagram of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0018] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0019] Figure 1 A flowchart of a data transmission method provided by an exemplary embodiment of the present application is shown. Figure 1 , the method may include the following steps:

[0020] Step 102, 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;

[0021] 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.

[0022] Step 104, when the first path and the second path are inconsistent, data transmission is performed through the first path;

[0023] 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.

[0024] Step 106: When a failure occurs on the first path, data transmission is performed through the second path.

[0025] In an embodiment of the present application, after obtaining a first path determined based on computing power scheduling of a target route, for example, obtaining a routing path through computing network brain calculation, and obtaining a second path determined based on a routing protocol of the target route, in the case where the first path is inconsistent with the second path, data transmission is preferentially performed 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 under different circumstances, 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 calculated with the aid of the traditional routing protocol. The target route is protected by quickly switching 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 service damage.

[0026] In one implementation, after the above step 106, the above data transmission method may further include:

[0027] Step 108: When the first path returns to normal, data is transmitted through the first path.

[0028] In an embodiment of the present application, when a first path determined based on computing power scheduling fails, 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 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 an implementation manner, when it is determined based on the routing protocol that the target route exists in the 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, the path calculated by the computing network brain can be protected by the FRR group, and the path calculated by the computing network brain can be given priority. 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 power network, but also realizes the protection of the path when the path calculated by the computing power network fails.

[0034] Figure 2 A flowchart of another data transmission method provided by an exemplary embodiment of the present application is shown. Figure 2 , the method may include the following steps:

[0035] Step 202, 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;

[0036] Step 204, writing the first path into an access control list (ACL), wherein if the first path is normal, setting 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 is written into the ACL, matched and issued by the ACL, and if the first path is normal, its valid bit in the ACL is set to valid; at this time, since the priority of the ACL matching and issuing the target routing path 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 performed through the first path first.

[0039] Step 208: When the first path fails, 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, in order to avoid the problem of a large number of packets being lost due to the path being unreachable, the ACL needs to be processed. 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 line disconnection, path failure, etc., the effective bit of the ACL is set to invalid, but the ACL is not deleted. The path exit problem of the device can be detected by detecting the port status of the device, and then the ACL is invalidated; at the same time, the path status can be detected by the path detection and insulation mechanism. When the path problem cannot be detected locally, the message can be detected by bidirectional forwarding detection (Bidirectional Forwarding Detection, BFD), connectivity fault management (Connectivity Fault Management, CFM) and other methods to determine whether the path is normal; when the path is abnormal, the ACL is immediately invalidated, the effective bit of the ACL is set to invalid, the target route matches the path determined based on the routing protocol, and forwarding continues.

[0041] In an implementation, after the above step 208, the above 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 the 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 the 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 is transmitted through the second path.

[0043] In addition, when the first path calculated by the Network Brain returns to normal, the ACL detects that the associated path returns 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 Network Brain. This enables ACL to prioritize matching of the path calculated by the Network Brain when the path calculated by the Network Brain is normal, and to switch the path to the path determined based on the routing protocol when the path calculated by the Network Brain fails, thereby protecting the routing path.

[0044] Figure 3 A flowchart showing another data transmission method provided by an exemplary embodiment of the present application in one implementation is shown. Figure 3 , the method may include the following steps:

[0045] Step 302, 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;

[0046] Step 304, writing the first path into a first position of the 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;

[0047] Among them, when the target route to be calculated by the computing network brain is the same as the target route to be 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 in 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] When a first path calculated by the 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, thereby transmitting data through the second path.

[0052] In an implementation, after the above step 308, the above 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 network brain is the 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 network brain. In this way, when matching routes, the first path calculated by the network brain will be matched first through the longest match principle. When the first path calculated by the network brain fails, such as failure, 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 network brain is matched to complete the priority matching of the network path.

[0054] If the target route to be calculated by the network brain is the same as the target route to be 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 TCAM, the search is carried out from front to back, so that when searching for the path from front to back according to the order, the first path calculated by the network brain can be found first.

[0055] Furthermore, 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, thereby transmitting data through the second path. When the first path calculated by the computing network brain returns to normal, the first route is rewritten into the first position of the routing table, and is also ranked in front 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 a failure occurs in the path, the path can be quickly switched and protected by switching to the path calculated based on the routing protocol, thereby avoiding long-term packet loss in the routing.

[0057] In one implementation, the first path fails, which may include:

[0058] (1) The port status of the first path is abnormal; and / or,

[0059] (2) An abnormality occurs in the detection message passing through the first path.

[0060] In an embodiment of the present application, for 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 first path fails, 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.

[0061] The following embodiments are mainly used in network scenarios where computing power networks are combined with traditional networks. Among them, for the area 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; 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.

[0062] Figure 4 A schematic diagram of a data transmission method provided in an embodiment of the present application is shown, wherein the method uses an FRR group for processing, see Figure 4 , the method may include:

[0063] Step 1, determine a second FRR group based on the routing protocol; wherein, for example, the routing FRR group is obtained by traditional network calculation, and 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.

[0064] 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.

[0065] 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.

[0066] Step 4: Generate a first FRR using the first path determined based on computing power scheduling and the effective path determined based on the routing protocol; wherein, a new FRR group is generated by path C and path A and sent to the hardware. At this time, the main path of the FRR group in the hardware is path C, and the backup path is path A.

[0067] Step 5: If the FRR group calculated by the traditional network performs active-standby switching, that is, the primary path switches from A to the backup path B, the current valid path in the new FRR group of route 10.10.10.0 is synchronously replaced with B. At this time, the primary path of the FRR group in the hardware is path C, and the backup path is path B.

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

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

[0070] Figure 5 A schematic diagram of another data transmission method provided in an embodiment of the present application is shown, which uses ACL for processing, see Figure 5 , the method may include:

[0071] 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.

[0072] 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.

[0073] Step 3, write the first path into the ACL, and if the first path is normal, set the valid bit of the ACL to valid; for example, if the device finds that path A of route 10.10.10.0 has been written into the routing table, path C is written into the ACL table.

[0074] 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 through BFD, CFM and other messages of path C to determine the valid bits of the ACL.

[0075] 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.

[0076] 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.

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

[0078] Figure 6 A schematic diagram of another data transmission method provided in an embodiment of the present application is shown, in which the method uses TCAM for processing, see Figure 6 , the method may include:

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

[0080] 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.

[0081] 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.

[0082] 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.

[0083] Case 2: The target route to be calculated by the computing network is the same as the target route to be calculated based on the routing protocol.

[0084] Step 1 to Step 2 are the same as Step 1 to Step 2 above.

[0085] Step 3: The device finds that the route 10.10.10.0 has path A, and finds 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.

[0086] 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, and then the write position of path C is arranged in front of the write position of path A in the TCAM.

[0087] Step 5: When matching paths, since path C is located before path A, path C is matched first, so it is forwarded through path C.

[0088] 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.

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

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

[0091] In an exemplary embodiment, an electronic device is also provided, the electronic device is used to execute the above data transmission method, Figure 7 A schematic diagram of the structure of an electronic device for implementing 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 communicate with each other through the communication bus 704. The processor 701 may call a computer program stored in the memory 703 and executable on the processor 701 to perform the following steps:

[0092] The first path and the second path of the target route are obtained, where the first path is determined based on computing power scheduling and the second path is determined based on the routing protocol; when the first path and the second path are inconsistent, data is transmitted through the first path; when the first path fails, data is transmitted through the second path.

[0093] 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.

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

[0095] The above electronic device structure does not constitute a limitation on 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 with a display panel in the form of a liquid crystal display, an organic light emitting diode, etc. 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.

[0096] 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, an application program 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 dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

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

[0098] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to implement all or part of the steps in the above 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, an optical data storage device, etc.

[0099] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.

[0100] It should be understood that the present application is not limited to the precise structures that have been 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that The electronic device includes 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, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 11 are implemented.