A data transmission method and device, electronic equipment and computer storage medium

By dynamically adjusting the transmission path in heterogeneous networks and selecting the appropriate path to transmit data based on the network card performance identifier, the problem of low transmission efficiency in heterogeneous networks is solved, and more efficient data transmission is achieved.

CN115695203BActive Publication Date: 2026-02-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211175894.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2026-02-06
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

In heterogeneous networks, existing routing calculation and selection schemes typically choose the shortest path as the only path, resulting in low transmission efficiency, especially when the service data load and interference factors change.

Method used

By obtaining the network card data transmission performance identifier of the first node, it is determined whether there is an anomaly. If there is an anomaly, a path other than the first network card is selected as the target path for data transmission to alleviate the transmission pressure on the shortest path.

Benefits of technology

It improves the data transmission efficiency of network topology in heterogeneous networking by making full use of resources and dynamically adjusting paths, thereby enhancing transmission performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695203B_ABST
    Figure CN115695203B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data transmission method, which is applied to a first node in a network topology, and the network topology further comprises a second node, and the method comprises the following steps: when data is transmitted to the second node by using a shortest path from the first node to the second node, an identifier of data transmission performance of a first network card of the first node is obtained; wherein the shortest path comprises the first network card; when the identifier of data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, a target path is selected from paths from the first node to the second node; wherein the target path is a path comprising network cards other than the first network card in the first node, and the target path is used to transmit to-be-transmitted data to the second node. The embodiment of the present application also simultaneously provides a data transmission device, an electronic equipment and a computer storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a data transmission technology in a network topology with heterogeneous networking, and in particular to a data transmission method and device, electronic equipment and computer storage medium. BACKGROUND

[0002] At present, there are various types of mobile communication devices, various forms of Internet of Things (IoT) devices, and various physical connection methods between devices: Wireless Fidelity (WiFi)-Peer-to-Peer (P2P), WiFi-Access Point (AP), Bluetooth (BT), Bluetooth Low Energy (BLE), etc. In the process of heterogeneous networking of multiple devices, there are multiple physical connection paths between device nodes. The current routing calculation and selection scheme generally selects the shortest path between devices as the only path between devices for routing calculation. Considering the many interference factors of heterogeneous networks, the pre-selected shortest path will change with the changes in business data load and interference factors, affecting the transmission efficiency of the entire heterogeneous network. Therefore, it can be seen that there is a problem of low transmission efficiency in the network topology in the existing heterogeneous networking when transmitting data. SUMMARY

[0003] The embodiments of the present application provide a data transmission method, device, electronic equipment and computer storage medium, which can improve the data transmission efficiency of the network topology in heterogeneous networking.

[0004] The technical solution of the present application is implemented as follows:

[0005] The embodiments of the present application provide a data transmission method, which is applied to a first node in a network topology, the network topology further comprising a second node, comprising:

[0006] When transmitting data from the first node to the second node by using the shortest path, an identifier of the data transmission performance of a first network card of the first node is obtained; wherein the shortest path comprises the first network card;

[0007] When the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, a target path is selected from the path from the first node to the second node; wherein the target path is a path comprising a network card other than the first network card in the first node;

[0008] transmit the data to be transmitted to the second node by using the target path.

[0009] The embodiment of the present application provides a data transmission device, the data transmission device is a first node of a network topology, the network topology further comprises a second node, and the data transmission device comprises the following.

[0010] The acquisition module is used for acquiring an identifier of the data transmission performance of the first network card of the first node when data is transmitted to the second node by using the shortest path from the first node to the second node, and the shortest path comprises the first network card.

[0011] The selection module is used for selecting a target path from the paths from the first node to the second node when the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, and the target path is a path comprising network cards other than the first network card in the first node.

[0012] The transmission module is used for transmitting data to be transmitted to the second node by using the target path.

[0013] The embodiment of the present application provides an electronic device, the electronic device is a first node of a network topology, the network topology further comprises a second node, and the electronic device comprises the following.

[0014] The processor and a storage medium storing executable instructions of the processor are used for performing operations by relying on the processor through a communication bus, and when the instructions are executed by the processor, the data transmission method in one or more embodiments is executed.

[0015] The embodiment of the present application provides a computer storage medium, and the computer storage medium stores executable instructions, and when the executable instructions are executed by one or more processors, the processors execute the data transmission method in one or more embodiments.

[0016] The embodiment of the present application provides a data transmission method and device, electronic equipment and computer storage medium, the method is applied to a first node in a network topology, the network topology further includes a second node, and the method comprises the following steps: when data is transmitted to the second node by using a shortest path from the first node to the second node, acquiring an identifier of data transmission performance of a first network card of the first node; wherein the shortest path comprises the first network card, when the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, selecting a target path from the path from the first node to the second node; wherein the target path is a path comprising network cards other than the first network card in the first node, and the target path is used to transmit the to-be-transmitted data to the second node; that is, in the embodiment of the present application, the identifier of the data transmission performance of the first network card in the shortest path from the first node to the second node is used to determine whether the data transmission performance of the first network card is abnormal, if the data transmission performance of the first network card is abnormal, the path comprising the network cards other than the first network card in the first node in the path from the first node to the second node is used to transmit the to-be-transmitted data to the second node, so that the transmission pressure on the shortest path comprising the first network card is relieved, the other paths are fully utilized, and therefore the data transmission efficiency of the network topology in the heterogeneous networking is improved. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 A flowchart of an optional data transmission method provided by the embodiment of the present application is shown in the figure.

[0018] Figure 2 A structure diagram of an instance of the first node in the network topology provided by the embodiment of the present application is shown in the figure.

[0019] Figure 3 A structure diagram of an instance of the network topology provided by the embodiment of the present application is shown in the figure. Figure 1

[0020] Figure 4 A structure diagram of an instance of the network topology provided by the embodiment of the present application is shown in the figure. Figure 2

[0021] Figure 5 A structure diagram of an instance of the network topology provided by the embodiment of the present application is shown in the figure. Figure 3

[0022] Figure 6 A structure diagram of an instance of the network topology provided by the embodiment of the present application is shown in the figure. Figure 4

[0023] Figure 7 A structure diagram of an optional data transmission device provided by the embodiment of the present application is shown in the figure.

[0024] ​​​​Figure 8 An optional structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application.

[0026] The embodiments of the present application provide a data transmission method, which is applied to a first node in a network topology, the network topology further comprising a second node, Figure 1 An optional flowchart of a data transmission method provided in an embodiment of the present application is shown in Figure 1 The data transmission can include:

[0027] S101: When data is transmitted to the second node by using a shortest path from the first node to the second node, an identifier of a data transmission performance of a first network card of the first node is acquired.

[0028] At present, the first node in the network topology usually transmits data by using the shortest path from the first node to the second node. However, due to many interference factors of the heterogeneous network, the shortest path will change with the change of the load of the service data and the change of the interference factors, thereby affecting the data transmission efficiency.

[0029] In order to improve the data transmission efficiency in the heterogeneous network, in the embodiments of the present application, when the first node needs to transmit data to the second node, the data is transmitted to the second node by using the shortest path from the first node to the second node, wherein the shortest path comprises the first network card. In order to prevent the phenomenon of low data transmission efficiency caused by the low data transmission performance of the first network card of the first node in the shortest path, when the first node transmits data by using the shortest path, an identifier of the data transmission performance of the first network card is acquired, the identifier is used to indicate the data transmission performance of the first network card, and the data transmission performance of the first network card can be divided into abnormal and normal, and of course, the specific conditions of the abnormal can be classified, for example, the degree of abnormal can be divided into serious, moderate, slight and the like. Herein, the embodiments of the present application do not make a specific limitation.

[0030] The first node and the second node can be devices of the network topology in the heterogeneous network, which can be terminal devices, such as smart phones, smart televisions, smart speakers, and can also be routing devices, such as routers. Herein, the embodiments of the present application do not make a specific limitation.

[0031] It should be noted that the first node comprises not only the first network card but also other network cards, and in the heterogeneous network, the first node can transmit data to the second node by using a path constituted by the first network card and / or other network cards.

[0032] In addition, the identification of the data transmission performance of the first network card can be determined by a data transmission performance parameter of the first network card, where the data transmission performance parameter of the first network card can be throughput, and / or packet sending delay, and / or packet loss rate, and the like, which are not limited herein.

[0033] In this way, the data transmission performance of the first network card on the shortest path can be known by using the obtained identification of the data transmission performance of the first network card, so that the abnormal situation can be processed in time.

[0034] In order to obtain the identification of the data transmission performance of the first network card, in an optional embodiment, S101 can include:

[0035] When data is transmitted to the second node by using the shortest path from the first node to the second node, a monitoring value of the data transmission performance of the first network card is obtained.

[0036] The monitoring value of the data transmission performance of the first network card is determined as the identification of the data transmission performance of the first network card.

[0037] That is, when the first node transmits data by using the shortest path, the monitoring value of the data transmission performance of the first network card is obtained, and it should be noted that the monitoring value of the data transmission performance of the first network card can be obtained in real time, or can be obtained periodically, which is not limited herein.

[0038] After the monitoring value of the data transmission performance of the first network card is obtained, the monitoring value of the data transmission performance of the first network card is determined as the identification of the data transmission performance of the first network card, and the monitoring value of the data transmission performance of the first network card is used to determine whether the data transmission performance of the first network card is abnormal, that is, the condition of the data transmission performance of the first network card is determined by monitoring the data transmission performance of the first network card, and then the target path containing the network card other than the first network card in the first node can be selected in time when the abnormality occurs, so that the target path is used to transmit the to-be-transmitted data.

[0039] In order to determine the monitoring value of the data transmission performance of the first network card, in an optional embodiment, the above method can further include:

[0040] The throughput, packet sending delay and packet loss rate of the first network card are obtained.

[0041] The monitoring value of the data transmission performance of the first network card is determined according to the throughput, packet sending delay and packet loss rate of the first network card.

[0042] Here, the first node obtains the throughput, packet sending delay and packet loss rate of the first network card, and based on the throughput, packet sending delay and packet loss rate of the first network card, the monitoring value of the data transmission performance of the first network card can be directly determined by using a table lookup method, or the monitoring value of the data transmission performance of the first network card can be determined by using a weighted summation algorithm. Here, the embodiments of the present application do not make a specific limitation.

[0043] S102: When the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, selecting a target path from the paths from the first node to the second node;

[0044] After obtaining the monitoring value of the data transmission performance of the first network card, it is determined whether the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal. Only when the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, it means that the transmission performance of the first network card on the shortest path is poor at this time, and the shortest path containing the first network card is not suitable for transmitting data. Therefore, here, a target path is selected from the paths from the first node to the second node, wherein the target path is a path containing network cards other than the first network card in the first node; that is, the first network card is not used to transmit data, but the target path containing network cards other than the first network card in the first node is used to transmit the to-be-transmitted data, so that the data transmission efficiency can be improved.

[0045] When the monitoring value of the data transmission performance of the first network card is used as the identifier of the data transmission performance of the first network card, in order to determine whether the data transmission performance of the first network card is abnormal, in an optional embodiment, the above method can further include:

[0046] When the monitoring value of the data transmission performance of the first network card is greater than the threshold value of the data transmission performance of the first network card, it is determined that the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal;

[0047] When the monitoring value of the data transmission performance of the first network card is less than the threshold value of the data transmission performance of the first network card, it is determined that the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal.

[0048] Here, by judging the relationship between the monitoring value of the data transmission performance of the first network card and the threshold value of the data transmission performance of the first network card, it is determined whether the data transmission performance of the first network card is abnormal. If the monitoring value of the data transmission performance of the first network card is greater than the threshold value of the data transmission performance of the first network card, it means that the data transmission load of the first network card is large enough to affect the data transmission efficiency. Therefore, at this time, the identifier of the data transmission performance of the first network card is determined to indicate that the data transmission performance of the first network card is abnormal. If the monitoring value of the data transmission performance of the first network card is less than the threshold value of the data transmission performance of the first network card, it means that the data transmission load of the first network card is within the moving range and has little effect on the data transmission efficiency. Therefore, at this time, the identifier of the data transmission performance of the first network card is determined to indicate that the data transmission performance of the first network card is not abnormal.

[0049] In addition, it should be noted that for the case that the monitoring value of the data transmission performance of the first network card is equal to the threshold value of the data transmission performance of the first network card, the identifier of the data transmission performance of the first network card can be determined to indicate that the data transmission performance of the first network card is abnormal, or the identifier of the data transmission performance of the first network card can be determined to indicate that the data transmission performance of the first network card is not abnormal. Here, the present embodiment does not make specific limitation.

[0050] In addition, in order to obtain the threshold value of the data transmission performance of the first network card, in an optional embodiment, the above method can further include:

[0051] According to the hardware parameters and the anti-interference capability parameters of the first network card, an evaluation value of the data transmission performance of the first network card is determined.

[0052] The product of the evaluation value of the data transmission performance of the first network card and the preset percentage threshold value is determined as the threshold value of the data transmission performance of the first network card.

[0053] It can be understood that the threshold value of the data transmission performance of the first network card can be pre-set or determined in real time. Here, the present embodiment does not make specific limitation.

[0054] In order to determine the threshold value of the data transmission performance of the first network card, the hardware parameters and the anti-interference capability parameters of the first network card are first obtained, and then the evaluation value of the data transmission performance of the first network card is determined according to the two parameters. Here, the evaluation value of the data transmission performance of the first network card can be determined by table lookup according to the two parameters, or the evaluation value of the data transmission performance of the first network card can be determined by using weighted summation algorithm according to the two parameters. Here, the present embodiment does not make specific limitation.

[0055] After the evaluation value of the data transmission performance of the first network card is determined, the evaluation value of the data transmission performance of the first network card is multiplied by a preset percentage threshold value, so that the threshold value of the data transmission performance of the first network card can be obtained. Here, the preset percentage threshold value can be set according to requirements and can be modified according to requirements, so as to meet the heterogeneous network under different conditions.

[0056] In order to select the target path for transmitting the to-be-transmitted data, in an optional embodiment, S102 can include:

[0057] When the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, the path corresponding to the minimum value of the substitution value in the path from the first node to the second node is determined as the target path.

[0058] Here, when the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, in order to select the target path from the path from the first node to the second node to transmit data to improve transmission efficiency, the path corresponding to the minimum value of the substitution value in the path from the first node to the second node is determined as the target path. For example, for the first node, in addition to the first network card, it also includes a second network card and a third network card. The path containing the second network card has a smaller substitution value than the path containing the third network card. Therefore, the path containing the second network card is determined as the target path.

[0059] In this way, the path corresponding to the minimum value of the substitution value in the path from the first node to the second node is used to transmit the to-be-transmitted data, which is beneficial to further improve the transmission efficiency of the data.

[0060] S103: transmitting the to-be-transmitted data to the second node by using the target path.

[0061] After the target path is selected, the to-be-transmitted data is transmitted to the second node by using the target path. That is, when the data transmission performance of the first network card is abnormal, the path containing the network card other than the first network card in the first node is selected from the path from the first node to the second node to transmit the to-be-transmitted data, and the load of the first network card is shared to other network cards in the first node, which helps to improve the transmission efficiency of the data.

[0062] In order to realize the transmission of the to-be-transmitted data by using the target path, here, the to-be-transmitted data can be transmitted only by using the target path, or the to-be-transmitted data can be transmitted by using the shortest path and the target path. Here, the embodiments of the present application do not make specific limitation on this.

[0063] For the case of transmitting the to-be-transmitted data by using the shortest path and the target path, in an optional embodiment, S103 can include:

[0064] transmitting, by using the shortest path, a first data packet of the to-be-transmitted data to the second node;

[0065] transmitting, by using the target path, a second data packet of the to-be-transmitted data to the second node.

[0066] That is, here, the to-be-transmitted data can be transmitted to the second node by using the shortest path and the target path at the same time, wherein the to-be-transmitted data is split into two data packets, i.e., the first data packet and the second data packet, the first data packet is transmitted to the second node by using the shortest path, and the second data packet is transmitted to the second node by using the target path, so that when the data transmission performance of the first network card on the shortest path is abnormal, the target path is used to share the transmission pressure of the shortest path, and the transmission efficiency of data is improved.

[0067] Further, in order to split the to-be-transmitted data to obtain the first data packet and the second data packet, in an optional embodiment, the method can further include:

[0068] when the size of the to-be-transmitted data packet is greater than a preset threshold, splitting the to-be-transmitted data packet into the first data packet and the second data packet;

[0069] That is, for the case that the size of the to-be-transmitted data packet is greater than a preset threshold, since the to-be-transmitted data packet is large, the to-be-transmitted data packet can be split into two data packets, wherein the size of the first data packet is greater than the size of the second data packet; here, the first data packet with a larger size is transmitted by using the shortest path, and the second data packet with a smaller size is transmitted by using the target path, so as to share the transmission pressure of the shortest path, and the data transmission efficiency is improved.

[0070] In addition, for the case of transmitting the to-be-transmitted data by using the shortest path and the target path, in an optional embodiment, S103 can include:

[0071] transmitting, by using the shortest path, a first service type data packet of the to-be-transmitted data to the second node;

[0072] transmitting, by using the target path, a second service type data packet of the to-be-transmitted data to the second node.

[0073] That is to say, here, the shortest path and the target path can be used simultaneously to transmit the to-be-transmitted data to the second node, wherein the to-be-transmitted data is split into two data packets, i.e., the data packet of the first service type and the data packet of the second service type, and then the data packet of the first service type is transmitted to the second node by using the shortest path, and the data packet of the second service type is transmitted to the second node by using the target path, so that when the data transmission performance of the first network card on the shortest path is abnormal, the target path is used to share the transmission pressure of the shortest path, and the transmission efficiency of data is improved.

[0074] Further, in order to split the to-be-transmitted data to obtain the data packet of the first service type and the data packet of the second service type, in an optional embodiment, the method can further include:

[0075] When the size of the to-be-transmitted data packet is less than the preset threshold, the to-be-transmitted data packet is split into the data packet of the first service type and the data packet of the second service type.

[0076] That is to say, for the case that the size of the to-be-transmitted data packet is less than the preset threshold, since the to-be-transmitted data packet is small, the to-be-transmitted data packet can be split into two data packets of service types; wherein the service types can include a video type, an audio type and a file type; here, the data packet of the first service type is transmitted by using the shortest path, and the data packet of the second service type is transmitted by using the target path, for example, the first service type can be a video type, and the second service type can be an audio type and a file type; in this way, the transmission pressure of the shortest path is shared, and the data transmission efficiency is improved.

[0077] In addition, for the case that the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal, in an optional embodiment, the method can further include:

[0078] When the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal, the shortest path is determined as the target path.

[0079] It can be understood that when the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal, that is, the capability of the shortest path for transmitting data is still acceptable, the shortest path is determined as the target path, that is, the shortest path is still used to transmit the to-be-transmitted data, so that the transmission rate is ensured.

[0080] The data transmission method in one or more embodiments is described below by taking examples.

[0081] In this example, in the scenario of a heterogeneous network, each device node can have multiple network cards participating in networking and data transmission, so there are multiple reachable network paths between devices. The minimum cost path between each pair of devices is selected to build a link state database (LSDB), and the shortest path is calculated based on the LSDB using a shortest path routing algorithm to build the routing table information (R_Info) of the entire topology.

[0082] Here, considering the unstable network quality of a heterogeneous network, multiple interference factors, and the probability of network congestion being higher than that of a homogeneous network, in addition to saving the minimum cost path between devices, one or more alternative paths (if any) are saved when building the LSDB. In this way, when the network quality fluctuates, the alternative path can be switched to, or in the case of large data transmission, multiple paths can be selected for parallel transmission at the service layer to improve the efficiency of data transmission and the use efficiency of various types of network interfaces in a heterogeneous network.

[0083] Figure 2 An optional structure diagram of an example of a first node in a network topology provided by an embodiment of the present application is shown in Figure 2 As shown, a network real-time state monitoring module and a network card performance evaluation module are added to each device node in a heterogeneous network. In addition, each device (network device node) also includes a network card physical parameter module, an anti-interference capability module, a throughput module, a packet delay module, a packet loss rate module, a network card A, a network card B, a network card C, and the like.

[0084] Network real-time state monitoring module: According to parameters such as throughput, packet delay, and packet loss rate, the network path quality on the device node is scored in real time, and the current throughput index Cur-ThroughPut-Score is output.

[0085] Network card performance evaluation module: According to the hardware parameters and anti-interference capability of the network card, the performance of each network card on the device node is evaluated, and the ThroughPut-Score index and the Backup-ThroughPut-Score index are output for each network card.

[0086] ThroughPut-Score: The throughput score value evaluated by combining the performance and anti-interference properties of the network card. The higher the score, the better the performance of the network card. In practical applications, the value range is [0, 100].

[0087] Backup-ThroughPut-Percent: the trigger threshold of seeking backup network path, which is a percentage value, such as a%, when Cur-ThroughPut-Score is greater than ThroughPut-Score*a%, it means that the network quality of the network port has deteriorated or the occupation of network resources is relatively high, and the alternative network path can be sought or the alternative network path is switched.

[0088] The network real-time state monitoring module evaluates the network state of the network card according to the set time period T, so that Cur-ThroughPut-Score can be obtained, and by comparison, when Cur-ThroughPut-Score >= (ThroughPut-Score*Backup-ThroughPut-Percent), the network port switching network exit (edge) or the selection of enabling the alternative network is triggered, so that the transmission performance of the whole heterogeneous network is optimized by updating the routing table in a local manner.

[0089] Figure 3 An optional network topology example structure provided for the embodiment of the present application Figure 1 As shown in Figure 3 , a topology diagram of a heterogeneous network constructed by four devices (Device A, Device B, Device C and Device D) is given: each device node has two network cards (if*0 and if*1) participating in the heterogeneous network networking, and the corresponding IP addresses are IP*0 and IP*1, respectively. The double-headed arrow in the device node indicates that the two network cards in the device are interconnected and the cost is negligible.

[0090] According to the traditional routing calculation method: only the edge with cost == 4 between Device B and Device A is reserved: the ifb1 network port of Device B to the ifa1 network port of Device A. Only the edge with cost == 2 between Device A and Device C is reserved: the ifa0 network port of Device A to the ifc1 network port of Device C.

[0091] In this example, Device B and Device A will save information about the edge with cost == 5 (Device B's ifb0 network port to Device A's ifa0 network port), and similarly Device A and Device C will save information about the edge with cost == 3.

[0092] Taking the shortest path calculation from Device B to Device D as an example, there are two routing options:

[0093] Route one: DeviceB(ifb1)-->DeviceA(ifa1)-->DeviceA(ifa0)-->DeviceC(ifc1)-->DeviceD(ifd1). The cost of the path represented by route one is: 4+2+2=8;

[0094] Route two: DeviceB(ifb1)-->DeviceD(ifd0). The cost of the path represented by route two is: 10.

[0095] Therefore, the shortest path (the path with the minimum cost) selected from DeviceB to DeviceD is the path represented by route one, Figure 4 a structure diagram of an example of an optional network topology provided for an embodiment of the present application Figure 2 As shown in Figure 4 the dashed line represents the path of route one.

[0096] When the path with cost == 4 between DeviceA and DeviceB triggers the switching backup path mechanism, for ifb1 of DeviceA, if Cur-ThroughPut-Score >=(ThroughPut-Score*Backup-ThroughPut-Percent) is obtained through comparison, the path with cost == 5 between DeviceA and DeviceB is selected to update the routing table information, so that subsequent data can be transmitted between DeviceA and DeviceB through the path with cost == 5, Figure 5 a structure diagram of an example of an optional network topology provided for an embodiment of the present application Figure 3 As shown in Figure 5 the dashed line represents the path of route one.

[0097] Figure 6 a structure diagram of an example of an optional network topology provided for an embodiment of the present application Figure 4 As shown in Figure 6 When the service party of the heterogeneous network needs to perform large data transmission, for ifb1 of DeviceA, Cur-ThroughPut-Score >=(ThroughPut-Score*Backup-ThroughPut-Percent), triggering the backup route calculation based on LSDB, outputting the backup route R_BackUp_Info (the cost of which is greater than the routing information represented by R_Info, refer to Figure 6The route path represented by the dotted line corresponds to R_Info, and the route path represented by the dash-dot line corresponds to R_BackUp_Info. The data is packetized at the service layer, and the data packets are transmitted through the two paths of R_Info and R_BackUp_Info respectively, and the data packets are recovered at the receiving end.

[0098] As shown in FIG. 5, Device B transmits 500M data to Device D. The data packets can be divided into five packets, each of which is 100M. Data packet 0, data packet 1, and data packet 2 are transmitted through the route path represented by the dotted line, and data packet 4 and data packet 5 are transmitted through the route path represented by the dash-dot line. Thus, the receiving end (Device D) receives the data packets through the two network interfaces ifd0 and ifd1, and the data packets are recovered to obtain the complete service data. Figure 6 When the data volume is small, the data of service flow a is transmitted through the route path represented by the dotted line, and the data of service flow b is transmitted through the route path represented by the solid line.

[0099] In this example, the network real-time state monitoring module and the network card performance evaluation module are added in the device node. In the case of fluctuation of the heterogeneous network, the alternative path is switched locally to improve the data output efficiency. In the case of large data transmission, the multi-path parallel transmission is selected to improve the efficiency. In the case of frequent small data transmission, the alternative path is enabled for parallel transmission to improve the efficiency and the utilization rate of the network card.

[0100] That is, in the heterogeneous network, according to the network real-time state and the performance of each network interface, the alternative route is intelligently switched in the case of network fluctuation to improve the stability and efficiency of the heterogeneous network. In the case of large data transmission, the data is packetized at the application layer, and the parallel data transmission is used to improve the transmission efficiency by using the characteristics of the backup route path of the multi-network interface of the heterogeneous network.

[0101]

[0102] ​The embodiment of the present application provides a data transmission method, the method is applied to a first node in a network topology, the network topology further comprises a second node, and the method comprises the following steps: acquiring an identifier of data transmission performance of a first network card of the first node when data is transmitted to the second node by using a shortest path from the first node to the second node; wherein the shortest path comprises the first network card; when the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, selecting a target path from paths from the first node to the second node; wherein the target path is a path comprising network cards other than the first network card in the first node; and transmitting to-be-transmitted data to the second node by using the target path. That is to say, in the embodiment of the present application, the identifier of the data transmission performance of the first network card in the shortest path from the first node to the second node is used to determine whether the data transmission performance of the first network card is abnormal, and if the data transmission performance of the first network card is abnormal, the to-be-transmitted data is transmitted to the second node by using the path comprising the network cards other than the first network card in the first node in the paths from the first node to the second node. In this way, the transmission pressure on the shortest path comprising the first network card is relieved, other paths are fully utilized, and therefore the data transmission efficiency of the network topology in the heterogeneous networking is improved.

[0103] Based on the same inventive concept as the foregoing embodiment, the embodiment of the present application provides a data transmission device, the data transmission device is a first node of a network topology, the network topology further comprises a second node, Figure 7 An optional structure diagram of a data transmission device provided by the embodiment of the present application is shown in the figure, Figure 7 The data transmission device comprises:

[0104] The acquisition module 71 is configured to acquire an identifier of data transmission performance of a first network card of the first node when data is transmitted to the second node by using a shortest path from the first node to the second node; wherein the shortest path comprises the first network card.

[0105] The selection module 72 is configured to select a target path from paths from the first node to the second node when the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal; wherein the target path is a path comprising network cards other than the first network card in the first node.

[0106] The transmission module 73 is configured to transmit to-be-transmitted data to the second node by using the target path.

[0107] In an optional embodiment, the acquisition module 71 is specifically configured to:

[0108] Acquire a monitoring value of the data transmission performance of the first network card when data is transmitted to the second node by using the shortest path from the first node to the second node.

[0109] The monitoring value of the data transmission performance of the first network card is determined as the identifier of the data transmission performance of the first network card.

[0110] In an optional embodiment, the data transmission device is further configured to:

[0111] obtain the throughput, the packet sending delay, and the packet loss rate of the first network card;

[0112] determine the monitoring value of the data transmission performance of the first network card according to the throughput, the packet sending delay, and the packet loss rate of the first network card.

[0113] In an optional embodiment, the data transmission device is further configured to:

[0114] when the monitoring value of the data transmission performance of the first network card is greater than the threshold value of the data transmission performance of the first network card, determine that the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal;

[0115] when the monitoring value of the data transmission performance of the first network card is less than the threshold value of the data transmission performance of the first network card, determine that the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal.

[0116] In an optional embodiment, the data transmission device is further configured to:

[0117] determine the evaluation value of the data transmission performance of the first network card according to the hardware parameter and the anti-interference capability parameter of the first network card;

[0118] determine the threshold value of the data transmission performance of the first network card as the product of the evaluation value of the data transmission performance of the first network card and the preset percentage threshold value.

[0119] In an optional embodiment, the selecting module 72 is specifically configured to:

[0120] when the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, determine the path corresponding to the minimum value of the path cost in the path from the first node to the second node as the target path.

[0121] In an optional embodiment, the transmission module 73 is specifically configured to:

[0122] transmit the first data packet of the to-be-transmitted data to the second node by using the shortest path;

[0123] transmit the second data packet of the to-be-transmitted data to the second node by using the target path.

[0124] In an optional embodiment, the data transmission device is further configured to:

[0125] When the size of the to-be-transmitted data packet is greater than the preset threshold, the to-be-transmitted data packet is split into the first data packet and the second data packet.

[0126] The size of the first data packet is greater than the size of the second data packet.

[0127] In an optional embodiment, the transmission module 73 is specifically configured to:

[0128] The data packet of the first service type of the to-be-transmitted data is transmitted to the second node by using the shortest path.

[0129] The data packet of the second service type of the to-be-transmitted data is transmitted to the second node by using the target path.

[0130] In an optional embodiment, the data transmission apparatus is further configured to:

[0131] When the size of the to-be-transmitted data packet is less than the preset threshold, the to-be-transmitted data packet is split into the data packet of the first service type and the data packet of the second service type.

[0132] In an optional embodiment, the data transmission apparatus is further configured to:

[0133] When the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card has not been abnormal, the shortest path is determined as the target path.

[0134] In actual application, the above-mentioned acquisition module 71, selection module 72 and transmission module 73 can be realized by a processor located on the data transmission apparatus, specifically a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA).

[0135] An embodiment of the present application provides an electronic device, the electronic device being a first node of a network topology, the network topology further comprising a second node, Figure 8 As shown in FIG. 8, an embodiment of the present application provides an electronic device 800, comprising: Figure 8

[0136] ​The processor 81 and the storage medium 82 storing instructions executable by the processor 81 operate in dependence on the processor 81, and when the instructions are executed by the processor 81, perform the data transmission method performed in one or more embodiments described above.

[0137] It should be noted that in actual application, each component in the terminal is coupled together through the communication bus 83. It can be understood that the communication bus 83 is used to realize the connection and communication between the components. The communication bus 83 includes not only a data bus, but also a power bus, a control bus and a status signal bus. However, in order to clearly illustrate, all kinds of buses are marked as the communication bus 83 in the Figure 8

[0138] The embodiments of the present application provide a computer storage medium storing executable instructions, when the executable instructions are executed by one or more processors, the processor performs the data transmission method performed by the control device in one or more embodiments described above.

[0139] The computer readable storage medium can be a ferromagnetic random access memory (FRAM), 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), a flash memory, a magnetic surface memory, an optical disc, a compact disc read only memory (CD-ROM) or other memories.

[0140] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can be in the form of a hardware embodiment, a software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer usable program code.

[0141] ​The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0142] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0143] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0144] The above description is only preferred embodiments of the present application, and not intended to limit the protection scope of the present application.

Claims

1. A data transmission method, characterized by, The method is applied to a first node in a network topology, the network topology further comprising a second node, comprising: When transmitting data to the second node by using a shortest path from the first node to the second node, an identifier of data transmission performance of a first network card of the first node is obtained; wherein the shortest path comprises the first network card; When the identifier of data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, a target path is selected from a path from the first node to the second node; wherein the target path is a path comprising network cards other than the first network card in the first node; the first network card and the network cards other than the first network card in the first node constitute the path from the first node to the second node; The target path is used to transmit the to-be-transmitted data to the second node.

2. The method of claim 1, wherein, The method further comprises: When transmitting data to the second node by using a shortest path from the first node to the second node, an identifier of data transmission performance of a first network card of the first node is obtained; wherein the shortest path comprises the first network card; When transmitting data to the second node by using a shortest path from the first node to the second node, an identifier of data transmission performance of a first network card of the first node is obtained; wherein the shortest path comprises the first network card; 3. The method of claim 2, wherein, The monitoring value of the data transmission performance of the first network card is determined as the identifier of the data transmission performance of the first network card. The method further comprises: The throughput, packet sending delay and packet loss rate of the first network card are obtained; 4. The method of claim 2, wherein, The monitoring value of the data transmission performance of the first network card is determined according to the throughput, packet sending delay and packet loss rate of the first network card. The method further comprises: When the monitoring value of the data transmission performance of the first network card is greater than a threshold value of the data transmission performance of the first network card, it is determined that the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal; 5. The method of claim 4, wherein, When the monitoring value of the data transmission performance of the first network card is less than the threshold value of the data transmission performance of the first network card, it is determined that the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal. The method further comprises: An evaluation value of the data transmission performance of the first network card is determined according to the hardware parameter and the anti-interference capability parameter of the first network card; 6. The method of claim 1, wherein, The product of the evaluation value of the data transmission performance of the first network card and a preset percentage threshold value is determined as the threshold value of the data transmission performance of the first network card. The method further comprises:

7. The method of claim 1, wherein, When the identifier of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, a path corresponding to the minimum value of the cost value in the path from the first node to the second node is determined as the target path. The method further comprises: The first data packet of the to-be-transmitted data is transmitted to the second node by using the shortest path; Transmit the second data packet of the to-be-transmitted data to the second node by using the target path.

8. The method of claim 7, wherein, The method further includes: When the size of the to-be-transmitted data is greater than a preset threshold, splitting the to-be-transmitted data into the first data packet and the second data packet. The size of the first data packet is greater than the size of the second data packet.

9. The method of claim 1, wherein, The transmitting the to-be-transmitted data to the second node by using the target path includes: Transmitting, by using the shortest path, a first service type data packet of the to-be-transmitted data to the second node; Transmitting, by using the target path, a second service type data packet of the to-be-transmitted data to the second node.

10. The method of claim 9, wherein, The method further includes: When the size of the to-be-transmitted data is less than a preset threshold, splitting the to-be-transmitted data into the first service type data packet and the second service type data packet.

11. The method of claim 1, wherein, The method further includes: When the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is not abnormal, determining the shortest path as the target path.

12. A data transmission apparatus, characterized by comprising: The data transmission device is a first node of a network topology, the network topology further includes a second node, and the data transmission device includes: An obtaining module, configured to, when transmitting data to the second node by using a shortest path from the first node to the second node, obtain an identification of a data transmission performance of a first network card of the first node; wherein the shortest path includes the first network card; A selecting module, configured to, when the identification of the data transmission performance of the first network card indicates that the data transmission performance of the first network card is abnormal, select a target path from paths from the first node to the second node; wherein the target path is a path including network cards of the first node other than the first network card; and the first network card and the network cards of the first node other than the first network card constitute the paths from the first node to the second node; A transmitting module, configured to transmit to-be-transmitted data to the second node by using the target path.

13. An electronic device, comprising: The electronic device is a first node of a network topology, the network topology further includes a second node, and the electronic device includes: A processor and a storage medium having processor-executable instructions stored thereon, the storage medium being dependent on the processor to perform operations, when the instructions are executed by the processor, the data transmission method in any one of claims 1 to 11 is executed.

14. A computer storage medium, characterized in that Executable instructions are stored, when the executable instructions are executed by one or more processors, the processor executes the data transmission method in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Network path determination and switching method and device, equipment, medium and program product

    CN113347083A

  • Method for improving link stability based on network card binding

    CN114039907A

  • A method for implementing data service transmission routing

    CN1567892A