Multi-path data transmission method, electronic equipment and storage medium
By applying ant colony optimization algorithm in the power system to process network status information, evaluate the quality of data transmission and determine the target transmission path, the problem of inefficient traditional data transmission methods is solved, and more efficient and reliable data transmission is achieved.
Patent Information
- Application Number
- CN202510554786.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-06-13
AI Technical Summary
The traditional single-path data transmission method is difficult to meet the requirements of power systems for high reliability and low latency, especially when the network state changes, data transmission efficiency is poor.
Ant colony optimization algorithm is used to process network status information, evaluate data transmission quality, and determine multiple target transmission paths based on this to improve the efficiency of data transmission.
By taking into account network state changes and dynamically adjusting the transmission path, the efficiency and reliability of data transmission are significantly improved.
Smart Images

Figure CN120151277A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data transmission, and in particular to a multi-path data transmission method, electronic equipment and storage medium. Background Art
[0002] In power systems, real-time monitoring and data transmission are crucial for the safe and efficient operation of power systems. Currently, embedded devices are widely used in power systems to collect and transmit data.
[0003] However, with the increase in the scale and complexity of power systems, the traditional single-path data transmission method has been unable to meet the power system's requirements for high reliability and low latency. In response, multi-path data transmission technology has been introduced to improve the reliability and efficiency of data transmission.
[0004] At present, multi-path data transmission technology often uses the shortest path method to determine the transmission path. However, the shortest path method only focuses on the length of the path and cannot adapt to changes in network status in real time, resulting in poor improvement in data transmission efficiency, which needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present invention provide a multi-path data transmission method, an electronic device and a storage medium to improve data transmission efficiency.
[0006] According to one aspect of the present invention, a multipath data transmission method is provided, which may include:
[0007] For each of the multiple data transmission paths, when the current moment is a preset moment, obtaining network status information characterizing data transmission quality of the data transmission path, wherein the data transmission path is used for data transmission between a data sending end and a data receiving end;
[0008] The network status information is processed using the ant colony optimization algorithm to obtain the data transmission quality;
[0009] Determine a preset number of target transmission paths from the multiple data transmission paths based on the obtained multiple data transmission qualities by using an ant colony optimization algorithm;
[0010] Based on all the determined target transmission paths, data is transmitted between the data transmitting end and the data receiving end in a current time period corresponding to the current moment.
[0011] According to another aspect of the present invention, there is provided an electronic device, which may include:
[0012] at least one processor; and
[0013] a memory communicatively connected to at least one processor; wherein,
[0014] The memory stores a computer program executable by at least one processor. When the computer program is executed by the at least one processor, the at least one processor is caused to implement the multi-path data transmission method provided in any embodiment of the present invention when executed.
[0015] According to another aspect of the present invention, there is provided a computer-readable storage medium having computer instructions stored thereon, and the computer instructions are used to cause a processor to implement the multi-path data transmission method provided in any embodiment of the present invention when executed.
[0016] In the technical solution of the embodiments of the present invention, for each data transmission path among multiple data transmission paths, when the current moment is a preset moment, network state information characterizing the data transmission quality of the data transmission path is obtained, where the data transmission path is used for data transmission between a data sending end and a data receiving end, so as to further consider changes in the network state through the network state information and determine a target transmission path; the ant colony optimization algorithm is used to process the network state information to obtain the data transmission quality, so as to comprehensively evaluate the data transmission path through the data transmission quality; the ant colony optimization algorithm is used to determine a preset number of target transmission paths from multiple data transmission paths based on the obtained multiple data transmission qualities, and the data transmission path with a higher data transmission quality is used as the target transmission path to improve the data transmission efficiency; based on all the determined target transmission paths, data transmission is performed between the data sending end and the data receiving end within the current time period corresponding to the current moment. The above technical solution uses the ant colony optimization algorithm to comprehensively calculate the data transmission quality of the data transmission path based on the network state information, and determines the target transmission path from the data transmission paths based on the data transmission quality, so as to use the target transmission path for data transmission, which can improve the data transmission efficiency.
[0017] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0019] Figure 1 is a flowchart of a multi-path data transmission method provided according to an embodiment of the present invention;
[0020] Figure 2 is a flowchart of another multi - path data transmission method provided according to an embodiment of the present invention;
[0021] Figure 3 is a flowchart of yet another multi - path data transmission method provided according to an embodiment of the present invention;
[0022] Figure 4 is a flowchart of a multi - path data transmission method of a specific example in yet another multi - path data transmission method provided according to an embodiment of the present invention;
[0023] Figure 5 is a structural block diagram of a multi - path data transmission device provided according to an embodiment of the present invention;
[0024] Figure 6 is a schematic structural diagram of an electronic device for implementing the multi - path data transmission method of the embodiment of the present invention. Detailed implementation manners
[0025] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above - mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. The same is true for cases such as "target" and "original", which will not be elaborated here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non - exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product or device.
[0027] Figure 1It is a flowchart of a multi-path data transmission method provided in an embodiment of the present invention. This embodiment is applicable to the situation of multi-path data transmission. This method can be executed by a multi-path data transmission device provided in an embodiment of the present invention. The device can be implemented in software and / or hardware, and can be integrated on an electronic device, which can be various user terminals or servers.
[0028] See Figure 1 , the method of the embodiment of the present invention specifically includes the following steps:
[0029] S110. For each data transmission path among multiple data transmission paths, when the current moment is a preset moment, obtain network state information characterizing the data transmission quality of the data transmission path, where the data transmission path is used for data transmission between a data sending end and a data receiving end.
[0030] Among them, the data transmission path can be understood as the path for data transmission. Through the data transmission path, data transmission between the data sending end and the data receiving end can be realized. Optionally, in order to improve the reliability and transmission speed of data transmission, multi-path transmission technology can be used to construct multiple data transmission paths between the data sending end and the data receiving end to achieve parallel data transmission.
[0031] The preset moment can be understood as the moment for determining the target transmission path from multiple data transmission paths. There can be multiple preset moments, and the target transmission path can be determined once at each preset moment to achieve dynamic adjustment of the target transmission path.
[0032] The network state information can be understood as the information characterizing the data transmission quality of the data transmission path, such as the delay time, network bandwidth, and packet loss rate of the data transmission path. The transmission quality of the data transmission path can be comprehensively reflected through the network state information.
[0033] S120. Process the network state information by using the ant colony optimization algorithm to obtain the data transmission quality.
[0034] Among them, the Ant Colony Optimization (ACO) is a heuristic algorithm that simulates the foraging behavior of ants and is mainly used to solve optimization problems. The inspiration for the ant colony algorithm comes from the behavior of ants finding paths during the process of searching for food. When ants search for food, they release a substance called "pheromone" to mark their walking paths. Other ants will choose the walking direction according to the concentration of pheromone and finally reach the place where the food is located. The pheromone will gradually volatilize over time. In the algorithm, each ant represents a solution. The algorithm will dispatch multiple ants to search for paths in each round of iteration. Each ant chooses the next step based on the pheromone and the heuristic function. The more pheromone there is, the greater the probability that the ant will choose this path. Over time, the concentration of pheromone on the good paths will increase due to the walking of more ants, thus attracting more ants, forming a positive feedback mechanism, and gradually identifying and strengthening the optimal path. The ant colony optimization algorithm can be used to process the network state information to obtain the data transmission quality of the data transmission path data.
[0035] S130. Using the ant colony optimization algorithm, based on the obtained multiple data transmission qualities, determine a preset number of target transmission paths from multiple data transmission paths.
[0036] Among them, the target transmission path can be understood as the path selected from multiple data transmission paths for data transmission.
[0037] After obtaining multiple data transmission qualities, the ant colony optimization algorithm can be used to select the data transmission path corresponding to the data quality with high data transmission quality from multiple data transmission qualities as the target transmission path. Optionally, the data quality can be sorted from large to small, and the data transmission paths corresponding to the data quality ranked in the top K (K is a preset value) can be used as the target transmission paths; it is also possible to screen the data quality according to a preset threshold, and use the data transmission paths corresponding to the data quality greater than the preset threshold as the target transmission paths.
[0038] S140. Based on all the determined target transmission paths, perform data transmission between the data sending end and the data receiving end within the current time period corresponding to the current moment.
[0039] Among them, the current time period can be understood as the time period for data transmission through the target transmission path after the current moment after determining the target transmission paths. After determining all the target transmission paths, the data sent from the data sending end to the data receiving end can be transmitted in parallel through multiple target transmission paths to improve the data transmission efficiency.
[0040] In the technical solution of the embodiment of the present invention, for each data transmission path among multiple data transmission paths, when the current moment is a preset moment, network state information characterizing the data transmission quality of the data transmission path is obtained, where the data transmission path is used for data transmission between a data sending end and a data receiving end, so as to further consider the change of the network state through the network state information and determine a target transmission path; the ant colony optimization algorithm is used to process the network state information to obtain the data transmission quality, so as to comprehensively evaluate the data transmission path through the data transmission quality; the ant colony optimization algorithm is used to determine a preset number of target transmission paths from multiple data transmission paths based on the obtained multiple data transmission qualities, and the data transmission path with a higher data transmission quality is used as the target transmission path to improve the data transmission efficiency; based on all the determined target transmission paths, data transmission is performed between the data sending end and the data receiving end within the current time period corresponding to the current moment. In the above technical solution, the ant colony optimization algorithm is used to comprehensively calculate the data transmission quality of the data transmission path based on the network state information, and the target transmission path is determined from the data transmission paths based on the data transmission quality, so as to perform data transmission using the target transmission path, which can improve the data transmission efficiency.
[0041] Figure 2 FIG. is a flowchart of another multi-path data transmission method provided in the embodiment of the present invention. This embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the ant colony optimization algorithm obtains the data transmission quality in the following manner, including: performing standardization processing on the network state information to obtain an information standardization value; constructing a current heuristic factor matrix based on the information standardization value; determining the current pheromone intensity at the current moment, and determining the selection probability of the data transmission path based on the current pheromone intensity and the current heuristic factor matrix; when the selection probability is greater than a preset probability threshold, obtaining the data transmission quality based on the information standardization value. Among them, the explanations of the same or corresponding terms as those in the above embodiments are not repeated here.
[0042] See Figure 2 , the method of this embodiment may specifically include the following steps:
[0043] S210. For each data transmission path among multiple data transmission paths, when the current moment is a preset moment, obtain network state information characterizing the data transmission quality of the data transmission path, where the data transmission path is used for data transmission between a data sending end and a data receiving end.
[0044] S220. Perform standardization processing on the network state information to obtain an information standardization value.
[0045] Among them, network status information with different formats, different sources, and different structures can be uniformly standardized, such as data cleaning and data format conversion, etc., to obtain information standardization values, so as to facilitate the subsequent processing of network status information.
[0046] S230. Based on the information standardization values, construct the current heuristic factor matrix.
[0047] Among them, when the information standardization values include the bandwidth standardization value of network bandwidth, the delay standardization value of network delay, and the packet loss rate standardization value of packet loss rate, the current heuristic factor matrix can be constructed through the following formula:
[0048]
[0049] Among them, η ij represents the current heuristic factor of the data transmission path between node i and node j; LAT norm (ij) represents the delay standardization value of the data transmission path between node i and node j; PLR norm (ij) represents the packet loss rate standardization value of the data transmission path between node i and node j; BW norm (ij) represents the bandwidth standardization value of the data transmission path between node i and node j.
[0050] S240. Determine the current pheromone intensity at the current moment, and based on the current pheromone intensity and the current heuristic factor matrix, determine the selection probability of the data transmission path.
[0051] Among them, the current pheromone intensity can be understood as the pheromone intensity of the data transmission path at the current moment. In the ant colony optimization algorithm, the stronger the current pheromone intensity, the higher the probability that the ant selects this data transmission path. The selection probability that the ant selects this data transmission path can be determined through the current pheromone intensity at the current moment and the current heuristic factor matrix. The specific formula is as follows:
[0052]
[0053] Among them, P ij represents the probability that the ant selects the data transmission path from node i to node j; τ ij (t) represents the current pheromone intensity of the data transmission path between node i and node j at time t; α and β are preset parameters; allowed represents the set of data transmission paths that the current ant is allowed to select.
[0054] S250. When the selection probability is greater than the preset probability threshold, obtain the data transmission quality based on the information standardization values.
[0055] Among them, after obtaining the selection probability, if the selection probability is less than the preset probability threshold, it means that the ant will not select this data transmission path; in the case where the selection probability is greater than the preset probability threshold, the data transmission quality of this data transmission path can be further calculated based on the information normalization value.
[0056] S260. Use the ant colony optimization algorithm to determine a preset number of target transmission paths from multiple data transmission paths based on the obtained multiple data transmission qualities.
[0057] S270. Based on all the determined target transmission paths, perform data transmission between the data sending end and the data receiving end within the current time period corresponding to the current moment.
[0058] In the technical solution of the embodiment of the present invention, by calculating the selection probability, data transmission paths with low selection probability can be excluded, and only the data transmission quality of data transmission paths with a selection probability greater than the threshold is calculated, improving the calculation efficiency of data transmission quality.
[0059] An optional technical solution is that the information normalization value includes the bandwidth normalization value of the network bandwidth, the delay normalization value of the network delay, and the packet loss rate normalization value of the packet loss rate; obtaining the data transmission quality based on the information normalization value includes: obtaining the bandwidth weight corresponding to the pre-set network bandwidth, the delay weight corresponding to the network delay, and the packet loss rate weight corresponding to the packet loss rate; determining the first product result of the delay normalization value and the delay weight, the second product result of the packet loss rate normalization value and the packet loss rate weight, and the third product result of the bandwidth normalization value and the bandwidth weight; adding the first product result and the second product result, and then subtracting the third product result to obtain the data transmission quality.
[0060] Among them, the data transmission quality can be calculated through the bandwidth normalization value, the delay normalization value, and the packet loss rate normalization value, and the pre-set bandwidth weight corresponding to the bandwidth normalization value, the delay weight corresponding to the delay normalization value, and the packet loss rate weight corresponding to the packet loss rate normalization value. Optionally, the sum of the bandwidth weight, the delay weight, and the packet loss rate weight can be 1, and the specific formula is as follows:
[0061] Cost k =w LAT ·LAT norm (k)+w PLR ·PLR norm (k)-w BW ·BW norm (k)
[0062] Among them, Cost k is the data transmission quality of the kth data transmission path, w LAT is the delay weight, w PLRis the packet loss rate weight, w BW is the latency weight, w LAT + w PLR + w BW = 1; LAT norm (k) represents the latency normalization value of the k-th data transmission path; PLR norm (k) represents the packet loss rate normalization value of the k-th data transmission path; BW norm (k) represents the bandwidth normalization value of the k-th data transmission path.
[0063] Through the preset weights, the above technical solution can accurately calculate the data transmission quality.
[0064] Another alternative technical solution is to determine the current pheromone intensity at the current moment, including: for the previous moment of the current moment, obtaining the previous pheromone intensity and the previous transmission quality determined at the previous moment for the data transmission path; based on the preset number of ants, the previous pheromone intensity, and the previous transmission quality, determining the current pheromone intensity at the current moment.
[0065] Among them, the previous moment can be understood as the moment before the current moment for determining the target transmission path. The current pheromone intensity needs to be calculated based on the preset number of ants, the previous pheromone intensity at the previous moment, and the previous transmission quality determined at the previous moment. The specific formula is as follows:
[0066] τ ij (t + 1) = (1 - ρ)·τ ij (t)+Δτ ij
[0067]
[0068] Among them, τ ij (t + 1) represents the pheromone concentration of the data transmission path between node i and node j at the current moment; ρ represents the pheromone evaporation coefficient 0 < ρ < 1; Δτ ij represents the pheromone increment on the data transmission path between node i and node j; m represents the number of ants; Cost k represents the previous transmission quality of the k-th data transmission path; τ ij (t) represents the pheromone concentration of the data transmission path between node i and node j at the previous moment.
[0069] Through continuous iteration, the above technical solution can update the pheromone concentration.
[0070] Figure 3It is a flowchart of another multi-path data transmission method provided in an embodiment of the present invention. This embodiment is optimized based on the above technical solutions. In this embodiment, optionally, based on all determined target transmission paths, data transmission is performed between a data sending end and a data receiving end within a current time period corresponding to the current moment, including: for each target transmission path, determining the bandwidth ratio of the target transmission path in the total bandwidth, where the total bandwidth is the sum of the bandwidths of all target transmission paths; for the data to be transmitted that needs to be transmitted within the current time period corresponding to the current moment, dividing the data to be transmitted into each target transmission path according to the bandwidth ratios respectively corresponding to all target transmission paths, to obtain data packets to be respectively transmitted on each target transmission path; for each target transmission path, based on the target transmission path, within the current time period, transmitting the data packets divided onto the target transmission path between the data sending end and the data receiving end, so as to complete the transmission of the data to be transmitted. Among them, the explanations of the same or corresponding terms as those in the above embodiments are not repeated here.
[0071] See Figure 3 , the method of this embodiment may specifically include the following steps:
[0072] S310. For each data transmission path among multiple data transmission paths, when the current moment is a preset moment, obtain network status information characterizing the data transmission quality of the data transmission path, where the data transmission path is used for data transmission between a data sending end and a data receiving end.
[0073] S320. Process the network status information by using an ant colony optimization algorithm to obtain the data transmission quality.
[0074] S330. Use the ant colony optimization algorithm to determine a preset number of target transmission paths from multiple data transmission paths based on the obtained multiple data transmission qualities.
[0075] S340. For each target transmission path, determine the bandwidth ratio of the target transmission path in the total bandwidth, where the total bandwidth is the sum of the bandwidths of all target transmission paths.
[0076] Among them, the bandwidth can represent the amount of information flowing from one end to the other end of the target transmission path within a specified time. The larger the bandwidth, the more data the target transmission path has within the specified time. For each target transmission path, dividing its bandwidth by the sum of the bandwidths of all target transmission paths can obtain the bandwidth ratio of the target transmission path, so that data allocation can be further performed according to the bandwidth ratio. The specific calculation formula of the bandwidth ratio is as follows:
[0077]
[0078] Among them, Wi Denote the path p i as the bandwidth ratio; BW i Denote the path p i as the bandwidth; Denote the sum of the bandwidths of the target transmission paths.
[0079] S350. For the data to be transmitted that needs to be transmitted within the current time period corresponding to the current moment, according to the bandwidth ratios corresponding to all the target transmission paths, divide the data to be transmitted among the respective target transmission paths to obtain data packets to be transmitted on the respective target transmission paths.
[0080] Among them, the data to be transmitted can be understood as the data that needs to be transmitted within the current time period corresponding to the current moment. When transmitting the data to be transmitted, for each target transmission path, part of the data can be divided from the data to be transmitted through the bandwidth ratio corresponding to the target transmission path. The division formula is as follows:
[0081] D i = D total × W i
[0082] Among them, D total denotes the data to be transmitted, W i denotes the bandwidth ratio of the target transmission path, and D i is the amount of divided data.
[0083] After the division is completed, the amount of divided data can be integrated into data packets and transmitted through the target transmission path.
[0084] S360. For each target transmission path, based on the target transmission path, within the current time period, between the data sending end and the data receiving end, transmit the data packets divided onto the target transmission path to complete the transmission of the data to be transmitted.
[0085] Among them, for each target transmission path, after obtaining the data packets to be transmitted, based on the target transmission path, within the current time period, between the data sending end and the data receiving end, transmit the data packets divided onto the target transmission path, so as to complete the transmission of the data to be transmitted on all the target transmission paths.
[0086] The technical solution of the embodiment of the present invention can allocate the amount of data transmitted by the target transmission path through the bandwidth ratio, consider the specific transmission situation of each target transmission path, and improve the transmission efficiency.
[0087] An alternative technical solution is that when the number of data to be transmitted is multiple, based on the target transmission path, within the current time period, between the data sending end and the data receiving end, the data packets allocated to the target transmission path are transmitted to complete the transmission of the data to be transmitted, including: based on the target transmission path, within the current time period, between the data sending end and the data receiving end, the data packets respectively corresponding to multiple data to be transmitted on the target transmission path are transmitted to complete the transmission of the multiple data to be transmitted.
[0088] Among them, the number of data to be transmitted can be multiple. When the number of data to be transmitted is multiple, for each data to be transmitted, the data packets can be transmitted on the target transmission path by dividing the data packets according to the bandwidth ratio, so as to complete the transmission of multiple data to be transmitted.
[0089] On this basis, an alternative is that the current time period includes multiple sub-time periods, and the number of data packets transmitted in each sub-time period is determined as follows: for the most recently ended sub-time period among the multiple sub-time periods, determine the transmission delay of each data packet successfully transmitted in the ended sub-time period, and based on all the obtained transmission delays, determine the average delay of the target transmission path in the ended sub-time period; and, obtain the transmission quantity of the data packets transmitted in the ended sub-time period and the loss quantity of the data packets that failed to be transmitted, and based on the transmission quantity and the loss quantity, determine the transmission packet loss rate of the target transmission path in the ended sub-time period; based on the average delay and the transmission packet loss rate, determine the path quality value of the target transmission path in the ended sub-time period, and based on the path quality value, determine the number of data packets to be transmitted in the next sub-time period after the ended sub-time period.
[0090] Among them, the ended sub-time period can be understood as the most recently ended time period among the multiple sub-time periods.
[0091] For each sub-time period, the number of data packets transmitted by the target transmission path in this sub-time period can be determined by the previous ended sub-time period of this sub-time period. Optionally, the transmission delay of each data packet successfully transmitted in the ended sub-time period can be determined, and based on all the obtained transmission delays, the average delay of the target transmission path in the ended sub-time period can be determined. Optionally, the specific formula is as follows:
[0092]
[0093] Among them, T recv (j), T send (j) respectively represent the reception time and the transmission time of the jth data packet, n is the total number of data packets, and LAT avg (i) represents the average delay.
[0094] Moreover, obtain the transmission quantity of the data packets transmitted within the ending sub-time period and the packet loss quantity of the data packets with transmission failures, and determine the transmission packet loss rate of the target transmission path within the ending sub-time period based on the transmission quantity and the packet loss quantity. The specific formula is as follows:
[0095]
[0096] Among them, N lost (i) represents the packet loss quantity on path p within the ending time period i ; N sent (i) represents the data packet transmission quantity on path p i ; PLR i represents the transmission packet loss rate.
[0097] Finally, based on the average delay and the transmission packet loss rate, the path quality value of the target transmission path within the ending sub-time period can be determined. The specific formula is as follows:
[0098] Q(i) = w′ LAT ×LAT avg (i) + w PLR ′×PLR i
[0099] Among them, w′ LAT represents the weight coefficient of the average delay, w PLR ′ represents the weight coefficient of the transmission packet loss rate, satisfying w′ LAT + w′ PLR = 1, LAT avg (i) represents the average delay, PLR i represents the transmission packet loss rate.
[0100] After obtaining the path quality value, the quantity of the data packets to be transmitted in the next sub-time period within the ending sub-time period can be determined based on the path quality value. Optionally, based on a preset path quality value threshold, when the path quality value of a certain target transmission path exceeds the path quality value threshold, reduce the quantity of the data packets allocated to the target transmission path in the next sub-time period or stop the data transmission of the target transmission path. The specific formula is as follows:
[0101] W i ′ = W i ×(1 - α)
[0102] Among them, α represents the adjustment coefficient, and its value ranges from 0.1 to 0.3; W i ′ is the quantity of the data packets allocated to the target transmission path in the next sub-time period.
[0103] In the above technical solution, the transmission amount of the target transmission path is dynamically adjusted according to the path quality value calculated based on the actual transmission situation, and the transmission strategy can be flexibly adjusted according to the actual situation, further improving the data transmission efficiency.
[0104] Alternatively, the current time period includes multiple sub-time periods, and the method further includes: using the ant colony optimization algorithm, based on the obtained multiple data transmission qualities, determining a backup transmission path among the data transmission paths other than each target transmission path among the multiple data transmission paths; during the process of transmitting multiple data packets within the current time period based on the target transmission path, when the transmission packet loss rate of the target transmission path in a continuous preset number of sub-time periods is greater than the preset packet loss rate threshold, deactivating the target transmission path, and transmitting the untransmitted data packets among the multiple data packets based on the backup transmission path.
[0105] Among them, the backup transmission path can be understood as a backup data transmission path when the target transmission path is deactivated or fails. Optionally, when determining the target transmission path, the ant colony optimization algorithm can also be used to determine a backup transmission path among the data transmission paths other than each target transmission path among the multiple data transmission paths based on the obtained multiple data transmission qualities. Optionally, a preset number of data transmission paths whose data transmission quality is adjacent to that of the target transmission path and whose data transmission quality is ranked after that of the target transmission data can be selected as the backup transmission path.
[0106] For each target transmission path, during the process of transmitting multiple data packets within the current time period on this target transmission path, if the transmission packet loss rate of this target transmission path in a continuous preset number of sub-time periods is greater than the preset packet loss rate threshold, for example, the transmission packet loss rates in three consecutive sub-time periods are all greater than the preset packet loss rate threshold, it indicates that there is a fault in this target transmission path, then this target transmission path is deactivated, and the untransmitted data packets among the multiple data packets are transmitted based on the backup transmission path.
[0107] In the above technical solution, the fault of the target transmission path is judged through the data transmission quality, and the backup transmission path is enabled in a timely manner, which can better cope with sudden faults.
[0108] To better understand the above technical solutions, the following is an exemplary description in combination with specific examples. In this specific example, the number of target transmission paths is k. The flow chart of the multi-path data transmission method in this specific example is as Figure 4 shown, and the specific steps are as follows:
[0109] Step 1: The intelligent device acting as the sender collects the operation data of the power system in real time and prepares for data transmission.
[0110] Step 2: Regularly collect the current network status data (i.e., network status information) of all transmission paths of the current sender and receiver, including bandwidth (i.e., network bandwidth), latency (i.e., network latency), and packet loss rate.
[0111] Step 3: Based on the collected current network status data (network status information), use the ant colony optimization algorithm to select the top k paths with the minimum comprehensive cost as the optimal path set (target transmission paths);
[0112] 1. Data preprocessing: Remove outliers and perform standardization on the current network status data to obtain the standardized bandwidth value, standardized latency value, and standardized packet loss rate value.
[0113] 2. Initialization of the ant colony optimization algorithm: Define the initial parameters of the ant colony optimization algorithm, including the number of ants m, the initial pheromone intensity, and the heuristic factor matrix, where the heuristic factor is calculated from the standardized bandwidth value, standardized latency value, and standardized packet loss rate value.
[0114] 3. Calculate the selection probability of the data transmission path: Based on the current pheromone intensity and the current heuristic factor matrix at the current moment, calculate the selection probability of the data transmission path.
[0115] 4. Calculate the data transmission quality: When the selection probability of the data transmission path is greater than the preset probability threshold, calculate the transmission cost based on the standardized bandwidth value, standardized latency value, and standardized packet loss rate value.
[0116] Cost k =w LAT ·LAT norm (k)+w PLR ·PLR norm (k)-w BW ·BW norm (k)
[0117] where Cost k is the data transmission quality of the k-th data transmission path, w LAT is the latency weight, w PLR is the packet loss rate weight, w BW is the latency weight, w LAT +w PLR +w BW =1; LAT norm (k) represents the standardized latency value of the k-th data transmission path; PLR norm (k) represents the standardized packet loss rate value of the k-th data transmission path; BW norm (k) represents the standardized bandwidth value of the k-th data transmission path.
[0118] 5. Determine the target transmission path: Sort the data transmission quality of all data transmission paths, select the top k data transmission paths with the best data transmission quality as the target transmission paths, and use the n data transmission paths whose data transmission quality is immediately adjacent and after the target transmission paths as the backup transmission paths.
[0119] 6. Update the pheromone intensity: Calculate the pheromone intensity for the next cycle based on the current pheromone intensity and the data transmission quality at the current time.
[0120] Step 4: According to the selected optimal path set, divide the collected power system operation data (i.e., the data to be transmitted) into multiple data sub-packets (i.e., data packets), and transmit the multiple data sub-packets to the receiving end through different paths (i.e., the target transmission paths);
[0121] 1. Determine the total data volume: Determine the total amount of data to be transmitted based on the obtained power system operation data;
[0122] 2. Calculate the bandwidth ratio of each path: For each selected optimal path p i , calculate its bandwidth ratio:
[0123]
[0124] where W i represents the bandwidth ratio of path p i ; BW i represents the bandwidth of path p i ; represents the sum of the bandwidths of the target transmission paths.
[0125] 3. Divide the data packets for each target transmission path based on the bandwidth ratio.
[0126] Step 5: During the transmission process, real-time detect the transmission time (i.e., average delay) and packet loss rate of the data sub-packets and make dynamic adjustments; if a path fails during the transmission process, quickly switch to the backup path and generate a fault message.
[0127] 1. Real-time detection of data sub-packets: When each data sub-packet is assigned to a certain path for transmission at the sending end, add a timestamp to each data sub-packet to record its sending time; when each data sub-packet is received at the receiving end, record its arrival time; at the receiving end, maintain a counter and a timeout detector. For each path, if the expected data sub-packet is not received within the specified timeout period, it is determined that the sub-packet is lost;
[0128] 2. Calculate the path quality value of the target transmission path: For each target transmission path, calculate the average delay within a predetermined time:
[0129]
[0130] Among them, T recv (j), T send (j) represent the reception time and transmission time of the j-th data packet respectively, n is the total number of data packets, and LAT avg (i) represents the average delay.
[0131] Calculate the packet loss rate within a predetermined time for each path:
[0132]
[0133] Among them, N lost (i) represents the number of lost packets on path p i during the end time period; N sent (i) represents the number of data packet transmissions on path p i , and PLR i represents the transmission packet loss rate.
[0134] Finally, based on the average delay and the transmission packet loss rate, the path quality value of the target transmission path within the end sub-time period can be determined. The specific formula is as follows:
[0135] Q(i) = w′ LAT ×LAT avg (i) + w PLR ′×PLR i
[0136] Among them, w′ LAT represents the weight coefficient of the average delay, w PLR ′ represents the weight coefficient of the transmission packet loss rate, and satisfies w′ LAT + w′ PLR = 1, LAT avg (i) represents the average delay, and PLR i represents the transmission packet loss rate.
[0137] 3. Target transmission path adjustment strategy: Dynamically adjust the allocation ratio of data sub-packets according to the path factor. Based on the set threshold, when the path quality value of a certain path exceeds the threshold, reduce the number of data sub-packets allocated to the target transmission path or deactivate the target transmission path.
[0138] If the packet loss rate of the target transmission path exceeds the preset packet loss rate threshold for a continuous period of time, it is determined that the target transmission path has a fault, and then quickly switch to the backup transmission path.
[0139] In this specific example, the ant colony optimization algorithm is used to comprehensively calculate the data transmission quality of the data transmission path based on the network state information, and the target transmission path is determined from the data transmission paths based on the data transmission quality, so as to use the target transmission path for data transmission, which can improve the data transmission efficiency.
[0140] Figure 5 FIG. 4 is a structural block diagram of a multi-path data transmission device provided by an embodiment of the present invention. The device is used to execute the multi-path data transmission method provided by any of the above embodiments. The device and the multi-path data transmission methods of the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiment of the multi-path data transmission device, reference may be made to the embodiments of the above multi-path data transmission method. Refer to Figure 5 FIG. 4, the device may specifically include: a network state information acquisition module 410, a data transmission quality acquisition module 420, a target transmission path determination module 430, and a data transmission module 440. Among them,
[0141] The network state information acquisition module 410 is configured to, for each data transmission path among a plurality of data transmission paths, when the current moment is a preset moment, acquire network state information characterizing the data transmission quality of the data transmission path, where the data transmission path is used for data transmission between a data sending end and a data receiving end;
[0142] The data transmission quality acquisition module 420 is configured to process the network state information by using the ant colony optimization algorithm to obtain the data transmission quality;
[0143] The target transmission path determination module 430 is configured to use the ant colony optimization algorithm to determine a preset number of target transmission paths from a plurality of data transmission paths based on the obtained plurality of data transmission qualities;
[0144] The data transmission module 440 is configured to perform data transmission between the data sending end and the data receiving end within the current time period corresponding to the current moment based on all the determined target transmission paths.
[0145] Optionally, the data transmission quality acquisition module 420 includes:
[0146] An information standardization value acquisition sub-module, configured to perform standardization processing on the network state information to obtain an information standardization value;
[0147] A current heuristic factor matrix construction sub-module, configured to construct a current heuristic factor matrix based on the information standardization value;
[0148] A selection probability determination sub-module, configured to determine the current pheromone intensity at the current moment, and determine the selection probability of the data transmission path based on the current pheromone intensity and the current heuristic factor matrix;
[0149] A sub-module for obtaining data transmission quality, which is used to obtain the data transmission quality based on the information normalization value when the selection probability is greater than a preset probability threshold.
[0150] On this basis, optionally, the information normalization value includes the bandwidth normalization value of the network bandwidth, the delay normalization value of the network delay, and the packet loss rate normalization value of the packet loss rate; the sub-module for obtaining data transmission quality includes:
[0151] A weight acquisition unit, which is used to obtain the bandwidth weight corresponding to the pre-set network bandwidth, the delay weight corresponding to the network delay, and the packet loss rate weight corresponding to the packet loss rate;
[0152] A product result determination unit, which is used to determine the first product result of the delay normalization value and the delay weight, the second product result of the packet loss rate normalization value and the packet loss rate weight, and the third product result of the bandwidth normalization value and the bandwidth weight;
[0153] A data transmission quality acquisition unit, which is used to add the first product result and the second product result, and then subtract the third product result to obtain the data transmission quality.
[0154] Another optionally, the selection probability determination sub-module includes:
[0155] A previous transmission quality acquisition unit, which is used to obtain the previous pheromone intensity and the previous transmission quality determined at the previous moment of the current moment for the data transmission path;
[0156] A current pheromone intensity determination unit, which is used to determine the current pheromone intensity at the current moment based on the pre-set number of ants, the previous pheromone intensity, and the previous transmission quality.
[0157] Another optionally, the data transmission module 440 includes:
[0158] A bandwidth ratio determination sub-module, which is used to determine the bandwidth ratio of the target transmission path in the total bandwidth for each target transmission path, where the total bandwidth is the sum of the bandwidths of all target transmission paths;
[0159] A data packet acquisition sub-module, which is used to divide the data to be transmitted to the data packets to be transmitted on each target transmission path according to the bandwidth ratios corresponding to all target transmission paths for the data to be transmitted in the current time period corresponding to the current moment;
[0160] A data packet transmission sub-module, which is used to transmit the data packets divided on the target transmission path between the data sending end and the data receiving end within the current time period based on the target transmission path to complete the transmission of the data to be transmitted.
[0161] On this basis, optionally, when the number of data to be transmitted is multiple, the data packet transmission sub-module includes:
[0162] The data packet transmission unit is configured to transmit, based on the target transmission path, within the current time period, between the data sending end and the data receiving end, the data packets respectively corresponding to multiple data to be transmitted on the target transmission path, so as to complete the transmission of the multiple data to be transmitted.
[0163] On this basis, optionally, the current time period includes multiple sub-time periods, and the data packet transmission unit includes:
[0164] The average delay determination sub-unit is configured to, for the most recently ended end sub-time period among the multiple sub-time periods, determine the transmission delay of each data packet successfully transmitted within the end sub-time period, and based on all the obtained transmission delays, determine the average delay of the target transmission path within the end sub-time period;
[0165] The transmission packet loss rate determination sub-unit is configured to obtain the transmission quantity of the data packets transmitted within the end sub-time period and the packet loss quantity of the data packets that failed to be transmitted, and based on the transmission quantity and the packet loss quantity, determine the transmission packet loss rate of the target transmission path within the end sub-time period;
[0166] The quantity determination sub-unit is configured to, based on the average delay and the transmission packet loss rate, determine the path quality value of the target transmission path within the end sub-time period, and based on the path quality value, determine the quantity of the data packets to be transmitted in the next sub-time period within the end sub-time period.
[0167] Another option is that the current time period includes multiple sub-time periods, and it further includes:
[0168] The alternate transmission path determination unit is configured to use the ant colony optimization algorithm to determine an alternate transmission path from the data transmission paths other than each target transmission path among the multiple data transmission paths based on the obtained multiple data transmission qualities;
[0169] The alternate transmission path transmission unit is configured to, during the process of transmitting multiple data packets based on the target transmission path within the current time period, when the transmission packet loss rate of the target transmission path in a continuous preset number of sub-time periods is greater than the preset packet loss rate threshold, deactivate the target transmission path, and based on the alternate transmission path, transmit the data packets that have not been completely transmitted among the multiple data packets.
[0170] In the multi-path data transmission device according to an embodiment of the present invention, through the network status information acquisition module, for each of the multiple data transmission paths, when the current moment is a preset moment, network status information characterizing the data transmission quality of the data transmission path is acquired, where the data transmission path is used for data transmission between a data sending end and a data receiving end, so as to further consider changes in the network status based on the network status information and determine a target transmission path; through the data transmission quality obtaining module, the ant colony optimization algorithm is used to process the network status information to obtain the data transmission quality, so as to comprehensively evaluate the data transmission path based on the data transmission quality; through the target transmission path determination module, the ant colony optimization algorithm is used to determine a preset number of target transmission paths from the multiple data transmission paths based on the obtained multiple data transmission qualities, and the data transmission path with a higher data transmission quality is used as the target transmission path, so as to improve the data transmission efficiency; through the data transmission module, based on all the determined target transmission paths, data transmission is performed between the data sending end and the data receiving end within the current time period corresponding to the current moment. In the above device, the ant colony optimization algorithm is used to comprehensively calculate the data transmission quality of the data transmission path based on the network status information, and the target transmission path is determined from the data transmission paths based on the data transmission quality, so as to perform data transmission using the target transmission path, which can improve the data transmission efficiency.
[0171] The multi-path data transmission device provided by the embodiment of the present invention can execute the multi-path data transmission method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0172] It should be noted that in the embodiment of the above multi-path data transmission device, the included respective units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the respective functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0173] Figure 6 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described herein and / or claimed.
[0174] AsFigure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14. A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks. The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc.
[0175] The processor 11 executes the various methods and processes described above, such as the multipath data transmission method. In some embodiments, the multipath data transmission method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the multipath data transmission method described above may be executed. Alternatively, in other embodiments, the processor 11 may be configured to execute the multipath data transmission method by any other suitable means (e.g., by means of firmware). The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device. The computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs may be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server. In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium.More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball), by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input). The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet. The computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services. It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.
[0176] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub - combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A multipath data transmission method, characterized in that: include: For each of the multiple data transmission paths, when the current moment is a preset moment, obtaining network status information characterizing the data transmission quality of the data transmission path, wherein the data transmission path is used for data transmission between a data sending end and a data receiving end; Processing the network status information using an ant colony optimization algorithm to obtain the data transmission quality; Using the ant colony optimization algorithm, based on the obtained multiple data transmission qualities, determining a preset number of target transmission paths from the multiple data transmission paths; Based on all the determined target transmission paths, data is transmitted between the data transmitting end and the data receiving end within a current time period corresponding to the current moment.
2. The method according to claim 1, characterized in that The ant colony optimization algorithm obtains the data transmission quality in the following manner, including: Performing standardization processing on the network status information to obtain an information standardization value; Based on the information normalization value, construct a current heuristic factor matrix; Determining the current pheromone strength at the current moment, and determining the selection probability of the data transmission path based on the current pheromone strength and the current heuristic factor matrix; In a case where the selection probability is greater than a preset probability threshold, the data transmission quality is obtained based on the information normalization value.
3. The method according to claim 2, characterized in that The information normalization values include a bandwidth normalization value of a network bandwidth, a delay normalization value of a network delay, and a packet loss rate normalization value of a packet loss rate; The obtaining the data transmission quality based on the information normalization value comprises: Obtaining a preset bandwidth weight corresponding to the network bandwidth, a delay weight corresponding to the network delay, and a packet loss rate weight corresponding to the packet loss rate; Determine a first product result of the delay normalization value and the delay weight, a second product result of the packet loss rate normalization value and the packet loss rate weight, and a third product result of the bandwidth normalization value and the bandwidth weight; The first multiplication result is added to the second multiplication result, and the third multiplication result is subtracted to obtain the data transmission quality.
4. The method according to claim 2, characterized in that: The determining of the current pheromone strength at the current moment includes: For a moment before the current moment, obtaining a previous pheromone strength and a previous transmission quality of the data transmission path determined at the previous moment; The current pheromone intensity at the current moment is determined based on the preset number of ants, the previous pheromone intensity, and the previous transmission quality.
5. The method according to claim 1, characterized in that The performing data transmission between the data transmitting end and the data receiving end within the current time period corresponding to the current moment based on all the determined target transmission paths includes: For each of the target transmission paths, determining a bandwidth ratio of the bandwidth of the target transmission path in the total bandwidth, wherein the total bandwidth is the sum of the bandwidths of all the target transmission paths; For the data to be transmitted that needs to be transmitted in the current time period corresponding to the current moment, the data to be transmitted is divided into each of the target transmission paths according to the bandwidth proportions respectively corresponding to all the target transmission paths, so as to obtain data packets to be transmitted respectively on each of the target transmission paths; For each of the target transmission paths, based on the target transmission path, within the current time period, the data packets allocated to the target transmission path are transmitted between the data sending end and the data receiving end to complete the transmission of the data to be transmitted.
6. The method according to claim 5, characterized in that In the case that the amount of the data to be transmitted is multiple, the transmitting of the data packets divided into the target transmission path between the data transmitting end and the data receiving end within the current time period based on the target transmission path to complete the transmission of the data to be transmitted includes: Based on the target transmission path, within the current time period, the data packets corresponding to the multiple data to be transmitted on the target transmission path are transmitted between the data sending end and the data receiving end to complete the transmission of the multiple data to be transmitted.
7. The method according to claim 6, characterized in that The current time period includes a plurality of sub-time periods, and the number of the data packets transmitted in each sub-time period is determined in the following manner: For the most recently ended end sub-time period among the multiple sub-time periods, determine the transmission delay of each of the data packets successfully transmitted in the end sub-time period, and determine the average delay of the target transmission path in the end sub-time period based on all the obtained transmission delays; as well as, Acquire the number of transmissions of the data packets transmitted in the end sub-time period and the number of packet losses of the data packets whose transmission fails, and determine the transmission packet loss rate of the target transmission path in the end sub-time period based on the number of transmissions and the number of packet losses; Based on the average delay and the transmission packet loss rate, a path quality value of the target transmission path in the end sub-time period is determined, and based on the path quality value, the number of the data packets to be transmitted in the next sub-time period of the end sub-time period is determined.
8. The method according to claim 6, characterized in that The current time period includes a plurality of sub-time periods, and the method further includes: Determine, by using the ant colony optimization algorithm, a backup transmission path among the data transmission paths other than the target transmission paths in the plurality of data transmission paths based on the obtained plurality of data transmission qualities; During the transmission of multiple data packets within the current time period based on the target transmission path, when the transmission packet loss rate of the target transmission path in a consecutive preset number of sub-time periods is greater than a preset packet loss rate threshold, the target transmission path is disabled, and the transmission of the data packets that have not been completely transmitted among the multiple data packets is performed based on the backup transmission path.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the multipath data transmission method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-path data transmission method according to any one of claims 1 to 8 when executed.
Citation Information
Cited By
Data transmission method and system of heterogeneous network
CN122120834A