Data transmission method, device, electronic device and storage medium
By obtaining a set of alternative links with a link transmission ratio based on the data packet type on the data transmission client, the target data transmission link is determined, which solves the problems of unstable data transmission and small scope of application in the existing technology, and achieves low latency. , efficient data transmission.
Patent Information
- Application Number
- CN202310532793.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-05-11
AI Technical Summary
Existing data transmission methods are difficult to achieve stable, low-latency and efficient data transmission in mobile and competitive network environments. Especially for high-definition and more audio and video data packets, the transmission is not stable enough and has a small scope of application.
By obtaining the type of the current data packet to be transmitted on the data transmission client, obtaining a set of candidate data transmission links configured with a link transmission ratio, and determining the target data transmission link based on the link transmission ratio, the data packet is transmitted.
It improves the stability, efficiency and scalability of data transmission, reduces network delay, and meets the diverse transmission needs of different types of data packets.
Smart Images

Figure CN116506409B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and specifically to network data transmission, big data and other technologies. Background Art
[0002] In a mobile and competitive network environment, the challenge of ensuring reliable and low-latency data transmission is particularly prominent. Reasonable aggregation and use of multiple network links can meet high-standard data transmission requirements, such as transmitting higher-definition and more channels of audio and video data. Summary of the invention
[0003] The embodiments of the present disclosure provide a data transmission method, device, electronic device and storage medium, which can meet the data transmission requirements and improve the stability, efficiency and scalability of data transmission.
[0004] In a first aspect, an embodiment of the present disclosure provides a data transmission method, which is applied to a data transmission client, including:
[0005] Get the current data packet to be transmitted;
[0006] In the case where it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, obtaining a candidate link set; wherein the candidate link set includes at least one candidate data transmission link, and each of the candidate data transmission links is configured with a link transmission ratio;
[0007] Determining a first target data transmission link from the candidate data transmission links according to the link transmission ratio of each of the candidate data transmission links;
[0008] The currently to-be-transmitted data packet is transmitted via the first target data transmission link.
[0009] In a second aspect, an embodiment of the present disclosure provides a data transmission device, which is configured on a data transmission client and includes:
[0010] A module for acquiring a data packet currently to be transmitted, used to acquire a data packet currently to be transmitted;
[0011] An alternative link set acquisition module, configured to acquire an alternative link set when it is determined that the data packet type of the current data packet to be transmitted is the first data packet type; wherein the alternative link set includes at least one alternative data transmission link, and each of the alternative data transmission links is configured with a link transmission ratio;
[0012] A first target data transmission link determination module, configured to determine a first target data transmission link from each of the candidate data transmission links according to a link transmission ratio of each of the candidate data transmission links;
[0013] A first current data packet to be transmitted transmission module is configured to transmit the current data packet to be transmitted via the first target data transmission link.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data transmission method provided by the embodiment of the first aspect.
[0018] In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the data transmission method provided in the embodiment of the first aspect.
[0019] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the data transmission method provided in the embodiment of the first aspect.
[0020] After the data transmission client obtains the current data packet to be transmitted, the disclosed embodiment determines the type of the current data packet to be transmitted. If it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, an alternative link set of multiple alternative data transmission links configured with link transmission ratios is obtained, and according to the link transmission ratios of each alternative data transmission link, a first target data transmission link is determined from each alternative data transmission link to transmit the current data packet to be transmitted through the first target data transmission link, so as to solve the problems of the existing data transmission method that the data transmission is not stable and efficient enough, and the scope of application is small, etc., and can meet the data transmission needs and improve the stability, efficiency and scalability of data transmission.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0023] Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure;
[0024] Figure 2 is a flow chart of a data transmission method provided by an embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of a data transmission link maintenance process provided by an embodiment of the present disclosure;
[0026] Figure 4 It is a schematic diagram of a process of generating a candidate link set and selecting a candidate data transmission link provided by an embodiment of the present disclosure;
[0027] Figure 5 is a flow chart of a data transmission method provided by an embodiment of the present disclosure;
[0028] Figure 6 is a schematic diagram of a data transmission process based on an RTC scenario provided by an embodiment of the present disclosure;
[0029] Figure 7 is a structural diagram of a data transmission device provided by an embodiment of the present disclosure;
[0030] Figure 8 It is a schematic diagram of the structure of an electronic device used to implement the data transmission method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0032] At present, there are two main implementation methods of existing multi-channel transmission technology. One is the link aggregation technology based on the network link layer L2, which specifically aggregates the bandwidth of multiple switch ports; the other is based on the network layer 3 implementation, which specifically transmits data on different links and aggregates different link data through VPN (Virtual Private Network) tunnel technology, and restores and delivers it to the application layer.
[0033] It can be seen that the existing multi-channel transmission (or link aggregation) technology is mostly implemented at the second and third layers of the network, and cannot run on the open Internet, and its scalability is poor. At the same time, the existing multi-channel transmission is usually a general network transmission technology. For data packets with specific transmission requirements, such as audio and video data packets, it is impossible to achieve low-latency transmission optimization, and it is impossible to achieve transmission linkage of different types of data packets. The optimization performance of data transmission is difficult to meet the transmission requirements.
[0034] In one example, Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure. This embodiment is applicable to the case where data is transmitted via a link determined by a link transmission ratio. The method can be executed by a data transmission device, which can be implemented by software and / or hardware and can generally be integrated into an electronic device. The electronic device can be a terminal device capable of running a data transmission client and used in conjunction with a server. The embodiment of the present disclosure does not limit the specific device type of the electronic device. Accordingly, Figure 1 As shown, the method includes the following operations:
[0035] S110: Obtain the current data packet to be transmitted.
[0036] The data packet currently to be transmitted is the data packet that the data transmission client currently needs to transmit to the server. Optionally, the data packet type of the data packet currently to be transmitted can be any type, such as an audio data packet, a video data packet or an error correction packet, etc. The embodiment of the present disclosure does not limit the data packet type of the data packet currently to be transmitted.
[0037] It is understandable that the data transmission client can complete the communication process by transmitting data packets to the server. The data transmission client processes different services, and the types of data packets it transmits to the server are also different. At the same time, the data transmission client may also generate different types of data packets when processing the same service. In the embodiment of the present disclosure, in order to further improve the data transmission efficiency between the client and the server, the data transmission client can use different methods to transmit different types of data packets.
[0038] S120. When it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, obtain a set of candidate links; wherein the set of candidate links includes at least one candidate data transmission link, and each of the candidate data transmission links is configured with a link transmission ratio.
[0039] Among them, the first data packet type may be a data packet type that needs to select one of the data transmission links for transmission through the link selection algorithm. The link selection algorithm can be understood as selecting the required data transmission link from each data transmission link configured with a link transmission ratio according to its link transmission ratio. The candidate link set may include multiple candidate data transmission links. The candidate data transmission link may be a data transmission link with a link transmission quality that meets the standard and is configured with a corresponding link transmission ratio. Optionally, the candidate data transmission link may be a link type based on an application layer protocol, such as an ICE (Interactive Connectivity Establishment) link type, etc. The embodiment of the present disclosure does not limit the link type and link protocol of the candidate data transmission link. It should be noted that the candidate data transmission link may be a link with better quality screened from each data transmission link. The link transmission ratio can be understood as the probability that the candidate data transmission is selected for transmitting the current data packet to be transmitted, and can also be referred to as the load sharing ratio of the link. It can be understood that the higher the value of the link transmission ratio, the higher the probability that it is selected to transmit the current data packet to be transmitted. The sum of the link transmission ratios of each candidate data transmission link in a candidate link set is 1.
[0040] It should be noted that in the embodiments of the present disclosure, the alternative data transmission links can be established and generated based on various types of network links. Exemplary types of network links may include, but are not limited to, mobile communication links (such as 4G or 5G links, etc.), WiFi (wireless fidelity) links, or ETH (EtherNet) links, etc. That is, the embodiments of the present disclosure can be implemented based on existing multi-channel transmission technology, implemented at the application layer of the network, and then run on the open Internet, which has stronger scalability.
[0041] After the data transmission client obtains the current data packet to be transmitted, the data packet type of the current data packet to be transmitted can be first determined. If it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, indicating that the current data packet to be transmitted has special transmission requirements, then an alternative link set including multiple alternative data transmission links can be obtained according to the special transmission requirements.
[0042] Exemplarily, when there is a low-latency transmission requirement for the current data packet to be transmitted, an alternative link set consisting of alternative data transmission links with lower latency can be obtained. When there is a low-jitter transmission requirement for the current data packet to be transmitted, an alternative link set consisting of alternative data transmission links with lower jitter can be obtained. When there is a low packet loss rate transmission requirement for the current data packet to be transmitted, an alternative link set consisting of alternative data transmission links with lower packet loss rate can be obtained.
[0043] S130: Determine a first target data transmission link from the candidate data transmission links according to the link transmission ratio of each of the candidate data transmission links.
[0044] The first target data transmission link is also a data transmission link that can be used to transmit the data packet currently to be transmitted.
[0045] S140. Transmit the data packet currently to be transmitted through the first target data transmission link.
[0046] In the set of alternative links, each alternative data transmission link can be configured with a corresponding link transmission ratio. The link transmission ratio can be set and adjusted according to reference factors such as the specific link quality of each alternative data transmission link and the current link load condition, and is used to determine the probability of each alternative data transmission link being selected as the first target data transmission link. By reasonably configuring the link transmission ratio for each alternative data transmission link, each data transmission link can be comprehensively and reasonably used to transmit the corresponding data packets according to the current link condition of each data transmission link. For example, it can be achieved to give priority to low-load and high-quality links or select links with continuously increasing quality to transmit data packets. Therefore, determining the link for transmitting data packets through the link transmission ratio can improve the stability and efficiency of data transmission.
[0047] Correspondingly, the data transmission client further determines the link transmission ratio of each candidate data transmission link for the acquired candidate link set, and determines the first target data transmission link from each candidate data transmission link according to the link transmission ratio of each candidate data transmission link, so as to transmit the current data packet to be transmitted through the first target data transmission link. It can be understood that the more the candidate data transmission link can match the special transmission requirements of the current data packet to be transmitted, the higher the value of the link transmission ratio configured by it, and the higher the probability of it being determined as the first target data transmission link.
[0048] It is understandable that when the next data packet is transmitted after the current data packet is transmitted, the data transmission client needs to update the next data packet to the current data packet to be transmitted, and reacquire a new set of alternative links according to the updated data packet type of the current data packet to be transmitted, so as to reselect the first target data transmission link for the current data packet to be transmitted. It is understandable that the type of data packet is different, and the set of alternative links determined for each data packet may also be different, as long as the set of alternative links can meet the transmission requirements of the data packet, and the embodiments of the present disclosure do not limit this.
[0049] It can be seen that the embodiment of the present disclosure obtains a set of alternative links that match its data transmission requirements according to the data packet type of the current data packet to be transmitted through the data transmission client, and screens the alternative data transmission links according to the link transmission ratio of each alternative data transmission link configuration in the set to determine the first target data transmission link and transmit the current data packet to be transmitted, which can meet the transmission requirements of the current data packet to be transmitted to the greatest extent and improve the stability, efficiency and scalability of data transmission.
[0050] After the data transmission client obtains the current data packet to be transmitted, the disclosed embodiment determines the type of the current data packet to be transmitted. If it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, an alternative link set of multiple alternative data transmission links configured with link transmission ratios is obtained, and according to the link transmission ratios of each alternative data transmission link, a first target data transmission link is determined from each alternative data transmission link to transmit the current data packet to be transmitted through the first target data transmission link, so as to solve the problems of the existing data transmission method that the data transmission is not stable and efficient enough, and the scope of application is small, and can reduce the network delay of data transmission, and improve the stability, efficiency and scalability of data transmission.
[0051] In one example, Figure 2 It is a flow chart of a data transmission method provided by an embodiment of the present disclosure. Based on the technical solutions of the above embodiments, the embodiment of the present disclosure has been optimized and improved. Taking the current data packet to be transmitted as an RTC (Real Time Communication) associated data packet as an example, it provides a plurality of specific optional implementation methods for generating a set of alternative links and transmitting other types of data packets.
[0052] like Figure 2 A data transmission method shown includes:
[0053] S210: Select qualified data transmission links from various original data transmission links.
[0054] The original data transmission link is the data transmission link established between the data transmission client and the server without screening. The qualified data transmission link can be a link whose link quality can meet the data transmission requirements.
[0055] In the embodiments of the present disclosure, the data transmission client can judge the link quality of each original data transmission link, and preliminarily screen out the links whose link quality can meet the data transmission demand from the original data transmission links as qualified data transmission links. Exemplarily, the data transmission client can calculate the normalized value of the link's service quality based on the parameters such as the RTT (Round-Trip Time, round-trip delay), packet loss rate, estimated bandwidth and actual bandwidth of the original data transmission link, and the weight value of each parameter matching, and then screen out the original data transmission links whose normalized value of service quality is greater than the threshold of service quality as qualified data transmission links. Among them, the threshold of service quality can be specifically set according to actual needs, and the embodiments of the present disclosure do not limit the specific value of the threshold of service quality.
[0056] In an optional embodiment of the present disclosure, the data transmission method may also include: when determining that the target network card is in an activated state, sending a link detection request to the server; receiving link quality associated parameters of the newly added data transmission link fed back by the server in response to the link detection request; wherein the link quality associated parameters are used to evaluate the quality of the newly added data transmission link.
[0057] Among them, the target network card can be a network card that is detected by the data transmission client side as being switched from an inactivated state to an activated state. The link detection request can be used for the data transmission client to request the server to detect the data transmission link. It is understandable that the link detection request may include identification information of the data transmission link, such as IP (Internet Protocol) address and other information, so that the server can clearly know which data transmission link to detect the quality. The newly added data transmission link can be a data transmission link established through the target network card. Link quality associated parameters are parameters used as references to calculate the link quality of the data transmission link, for example, they may include but are not limited to parameters such as packet loss rate and delay.
[0058] Taking into account the compatibility issues of the data transmission client, in the embodiment of the present disclosure, the server actively sends a heartbeat packet to the data transmission client to maintain a multi-path data transmission link between the client and the server, and the server counts relevant link quality-related parameters including packet loss and delay.
[0059] Exemplarily, the current data packet to be transmitted is an RTC-associated data packet. It is understandable that the RTC-associated data packet may be a data packet type sent from a data transmission client to a server in an RTC data transmission scenario. Figure 3 is a schematic diagram of a data transmission link maintenance process provided by an embodiment of the present disclosure. In a specific example, Figure 3 As shown, when the data transmission client ( Figure 3 When the target network card (referred to as the client) detects that the target network card has changed from an inactive state to an active state, it indicates that a new network link has been added between the client and the server. At this time, the data transmission client obtains the IP address of the newly added network link, and sends the obtained IP address to the server through a link detection request (i.e., Bind Request) to establish an ICE link with the server as a newly added data transmission link, and maintains two-way keep alive. When the server receives Bind Requests of different IPs, it attempts to actively send a heartbeat packet to the client. Once the client receives the heartbeat packet BindRequest, it considers that the newly added data transmission link can be kept alive. Optionally, the data transmission link can be kept alive every 200ms. If the client does not receive the heartbeat packet Bind Request for more than 60 seconds, it considers that the newly added data transmission link is invalid and will no longer be kept alive. Accordingly, when the newly added data transmission link is in a keep alive state, the server can calculate the link quality related parameters such as packet loss and delay of the newly added data transmission link, and send them to the client by extending the Bind Request Attribute (a kind of attribute package). The client can parse the link quality related parameters such as packet loss and delay to calculate the link quality of the newly added data transmission link, and at the same time exclude the invalid data transmission link.
[0060] S220: Obtain the RTT parameter of each of the standard-compliant data transmission links.
[0061] S230: Screen the qualified data transmission links according to the RTT parameters to obtain the candidate data transmission links.
[0062] It is understandable that in real-time audio and video RTC scenarios, especially in mobile and competitive network environments, data transmission has a high demand for low-latency transmission. Therefore, when transmitting RTC-related data packets, the RTT parameter can be given priority to select the data transmission link.
[0063] Therefore, after selecting qualified data transmission links from each original data transmission link, the data transmission client can obtain the RTT parameters of each qualified data transmission link to continue to select the qualified data transmission links according to the RTT parameters to obtain alternative data transmission links. Exemplarily, a reference threshold of RTT can be calculated, and the RTT parameters of each qualified data transmission link can be compared with the reference threshold, and the qualified data transmission links with RTT parameters higher than the reference threshold can be selected as alternative data transmission links. Optionally, the reference threshold of RTT can be a fixed value, such as 50ms, or it can be determined in real time according to the RTT parameters of each alternative data transmission link, and the embodiments of the present disclosure are not limited to this.
[0064] In an optional embodiment of the present disclosure, the screening of the qualified data transmission links according to the RTT parameters to obtain the alternative data transmission links may include: determining a benchmark qualified data transmission link from each of the qualified data transmission links, and determining an RTT parameter benchmark difference threshold; calculating the RTT parameter difference between each of the qualified data transmission links and the benchmark qualified data transmission link; and screening the qualified data transmission links whose RTT parameter difference is less than the RTT parameter benchmark difference threshold as the alternative data transmission links.
[0065] Among them, the benchmark standard data transmission link can be a standard data transmission link used as a reference for grouping each standard data transmission link. Optionally, the number of benchmark standard data transmission links can be one or more. Exemplarily, when the number of benchmark standard data transmission links is one, the benchmark standard data transmission link can be the standard data transmission link with the smallest RTT parameter, that is, the least instant delay, among all the standard data transmission links, so as to filter out several standard data transmission links with the best RTT from all the standard data transmission links as a reference to generate a set of alternative links. When the number of benchmark standard data transmission links is multiple, a set of standard data transmission links of multiple different gears can be screened, and the set of standard data transmission links of the best gear can be determined as the set of alternative links. The RTT parameter benchmark difference threshold can be used to evaluate the difference in RTT of each standard data transmission link. Exemplarily, the RTT parameter benchmark difference threshold can be set to 25%.
[0066] Optionally, a reference threshold of RTT is determined in real time according to the RTT parameters of each alternative data transmission link to generate a set of alternative links. In a specific example, the standard data transmission link with the smallest RTT parameter, i.e., the least immediate delay, among the standard data transmission links can be determined as the benchmark standard data transmission link, and the RTT parameter difference between each standard data transmission link and the benchmark standard data transmission link can be calculated in turn. Assuming that the RTT parameter benchmark difference threshold is set to 25%, the standard data transmission links with RTT parameter differences within 25% can be screened as alternative data transmission links.
[0067] The above technical solution can ensure that the selected alternative data transmission link is the data transmission link with the best RTT performance among all qualified data transmission links by screening the alternative data transmission link according to the benchmark qualified data transmission link and the RTT parameter benchmark difference threshold.
[0068] Figure 4 FIG. 1 is a flow chart of generating a candidate link set and selecting a candidate data transmission link provided by an embodiment of the present disclosure. Figure 4As shown, the process on the left is the process of generating an alternative link set, and the process on the right is the process of selecting an alternative data transmission link. Link selection can also be understood as link load sharing. When divided into grades according to RTT, each data transmission link can be divided into a set of data transmission links of multiple different gears according to the RTT parameters of the data transmission link. It can be understood that when the number of alternative link sets is multiple, if the data packet type of the current data packet to be transmitted is the first data packet type, the set of the best gear can be obtained as the alternative link set to determine the first target data transmission link. For example, data transmission links with RTT parameters of 100ms and 120ms can be divided into a set of data transmission links of the first gear, and data transmission links with RTT parameters of 500ms and 505ms can be divided into a set of data transmission links of the second gear. If there is only a set of data transmission links of the above two gears, the combination of the first gear can be determined as the alternative link set ( Figure 4 The data transmission links of 100ms and 120ms in this gear are selected as candidate data transmission links.
[0069] S240: Determine a matching link transmission ratio for the candidate data transmission link.
[0070] Correspondingly, after determining the candidate data transmission links, the data transmission client can configure the matching link transmission ratio for each candidate data transmission link.
[0071] In an optional embodiment of the present disclosure, determining a matching link transmission ratio for the alternative data transmission link may include: acquiring reference link parameters of the alternative data transmission link; wherein the reference link parameters include benchmark reference link parameters and associated reference link parameters; calculating a benchmark transmission ratio of the alternative data transmission link according to the reference link parameters; and determining the link transmission ratio according to the benchmark transmission ratio of the alternative data transmission link.
[0072] Among them, the benchmark reference link parameters may be link parameters of the alternative data transmission link itself, for example, they may include the transmission rate and packet loss rate of the alternative data transmission link itself. The associated reference link parameters may be other associated parameters used for reference calculation of the link transmission ratio of the alternative data transmission link, for example, they may be the transmission rate and average RTT of other alternative data transmission links. The embodiments of the present disclosure do not limit the specific parameter types of the benchmark reference link parameters and the associated reference link parameters. The benchmark transmission ratio may be a type of link transmission ratio of the alternative data transmission link calculated based on various parameters.
[0073] In an embodiment of the present disclosure, when calculating the link transmission ratio of an alternative data transmission link, reference link parameters such as a baseline reference link parameter and an associated reference link parameter of the alternative data transmission link may be first obtained to calculate the baseline transmission ratio of the alternative data transmission link based on the above parameters. Optionally, the calculated baseline transmission ratio may be directly used as the link transmission ratio of the alternative data transmission link. Alternatively, the baseline transmission ratio may be used as a benchmark to introduce other types of transmission ratios such as historical transmission ratios or predicted transmission ratios to comprehensively determine the link transmission ratio of the alternative data transmission link. Alternatively, the baseline transmission ratio may also be corrected to obtain a final link transmission ratio. The embodiment of the present disclosure does not limit the specific implementation method for determining the link transmission ratio based on the baseline transmission ratio of the alternative data transmission link.
[0074] The above technical scheme can calculate a more accurate benchmark transmission ratio by utilizing the benchmark reference link parameters and associated reference link parameters of the alternative data transmission link. The benchmark transmission ratio can accurately reflect the probability of the alternative data transmission link being selected to transmit the current data packet to be transmitted under the current state.
[0075] In an optional embodiment of the present disclosure, the benchmark reference link parameters may include the sending rate, packet loss rate and RTT of the alternative data transmission link; the associated reference link parameters may include the effective sending rate and average RTT of all alternative data transmission links; the calculation of the benchmark transmission ratio of the alternative data transmission link based on the reference link parameters may include: calculating the benchmark transmission ratio of the alternative data transmission link based on the following formula: benchmark transmission ratio = (sending rate * (1-packet loss rate) / effective sending rate of all alternative data transmission links) * (1 + (average RTT-RTT) / average RTT).
[0076] The average RTT may be an average value of RTT parameters of each candidate data transmission link in the current candidate link set.
[0077] In a specific example, Figure 4As shown, for the currently determined set of alternative links, when calculating the benchmark transmission ratio of each alternative data transmission link in the set (also referred to as the link transmission ratio at that time), it can be calculated based on the formula: Benchmark transmission ratio = (sending rate * (1-packet loss rate) / effective sending rate of all alternative data transmission links) * (1 + (average RTT-RTT) / average RTT). Among them, in the above formula, the value obtained by sending rate * (1-packet loss rate) can be understood as the effective sending rate of the alternative data transmission link for which the benchmark transmission ratio is currently calculated. The effective sending rate of all alternative data transmission links can be calculated based on the sending rate and packet loss rate of all alternative data transmission links, similar to the calculation method of the effective sending rate of the alternative data transmission link for which the benchmark transmission ratio is currently calculated.
[0078] The above technical scheme can reflect the superiority of the alternative data transmission link in terms of effective transmission rate by calculating the ratio of the effective transmission rate of the alternative data transmission link to the effective transmission rate of all alternative data transmission links, and can reflect the superiority of the alternative data transmission link in terms of RTT by calculating the ratio between the RTT of the alternative data transmission link and the average RTT of all alternative data transmission links.
[0079] In an optional embodiment of the present disclosure, determining the link transmission ratio based on the benchmark transmission ratio of the alternative data transmission link may include: obtaining the historical transmission ratio of the alternative data transmission link; determining the weight value of the benchmark transmission ratio and the weight value of the historical transmission ratio of the alternative data transmission link; determining the link transmission ratio based on the benchmark transmission ratio, the weight value of the benchmark transmission ratio, the historical transmission ratio and the weight value of the historical transmission ratio.
[0080] The historical transmission ratio may be a link transmission ratio of the candidate data transmission link calculated at a historical moment. Optionally, the number of the historical transmission ratios may be one or more, which is not limited in the embodiments of the present disclosure.
[0081] Optionally, after determining the baseline transmission ratio of the alternative data transmission link, the historical transmission ratio of the alternative data transmission link can be further obtained, and the weight value of the baseline transmission ratio and the weight value of the historical transmission ratio can be determined. When there are multiple historical transmission ratios, a weight value can be determined for each historical transmission ratio. Accordingly, the baseline transmission ratio can be multiplied by the weight value of the baseline transmission ratio, and the historical transmission ratio can be multiplied by the weight value that matches it, and then the sum of the product values is used as the link transmission ratio.
[0082] In a specific example, Figure 4As shown in the figure, when the number of historical transmission ratios is one, the most recent historical transmission ratio, i.e., the link transmission ratio calculated for the last sent data packet, can be used as the historical value, and the currently calculated benchmark transmission ratio can be used as the current load sharing ratio, and the weight of the current load sharing ratio and the weight of the historical value are both set to 50%. Accordingly, the link transmission ratio of the candidate data transmission link is finally: the sum of the current load sharing ratio*50% and the historical value*50%.
[0083] The above technical solution calculates the link transmission ratio based on the historical transmission ratio reference, introduces the most recently calculated link transmission ratio to smoothly transition the current benchmark transmission ratio of the candidate data transmission link, and can improve the accuracy of the link transmission ratio.
[0084] In an optional embodiment of the present disclosure, there are multiple historical transmission ratios; determining the weight value of the historical transmission ratio may include: obtaining the determination time of the historical transmission ratio; and determining the weight value of each historical transmission ratio according to the determination time of each historical transmission ratio.
[0085] It is understandable that, under normal circumstances, the alternative data transmission link will not change significantly in a short period of time. Therefore, the closer the calculation time of the historical transmission ratio is to the benchmark transmission ratio, the stronger the correlation between the historical transmission ratio and the benchmark transmission ratio. Accordingly, when determining the weight value of the historical transmission ratio according to the determination time of the historical transmission ratio, the shorter the time from the determination time of the historical transmission ratio to the currently calculated benchmark transmission ratio, the greater the corresponding weight value. In a specific example, assuming that there are two historical transmission ratios, the sum of the weight values of the two historical transmission ratios is 50%, wherein the first historical transmission ratio is the link transmission ratio calculated for the first data packet before the current data packet to be transmitted, and the second historical transmission ratio is the link transmission ratio calculated for the second data packet before the current data packet to be transmitted, then the weight value of the first historical transmission ratio can be 30%, and the weight value of the second historical transmission ratio can be 20%.
[0086] The above technical scheme can improve the accuracy of smoothing the benchmark transmission ratio by introducing multiple historical transmission ratios to smoothly transition the benchmark transmission ratio, and determine the weight value of each historical transmission ratio according to the determination time of the historical transmission ratio, thereby further improving the accuracy of the link transmission ratio.
[0087] In an optional embodiment of the present disclosure, after determining a matching link transmission ratio for the alternative data transmission link, it may also include: obtaining transmission ratio reference information of the alternative data transmission link; wherein the transmission ratio reference information includes at least one of the following: a link type of the alternative data transmission link, a link transmission ratio change trend of the alternative data transmission link, or a preset benchmark threshold; and correcting the link transmission ratio of the alternative data transmission link according to the transmission ratio reference information of the alternative data transmission link and a preset link transmission ratio correction strategy.
[0088] The transmission ratio reference information can be used to correct the link transmission ratio of the candidate data transmission link to maintain the accuracy and rationality of the link transmission ratio in real time and dynamically. The preset reference threshold can be set according to actual needs, such as 10%, etc. The embodiment of the present disclosure does not limit the specific value of the preset reference threshold.
[0089] In order to further improve the accuracy and rationality of the link transmission ratio, after the link transmission ratio of the alternative data transmission link is determined, the link transmission ratio of each alternative data transmission link can be corrected in real time and dynamically to ensure that each alternative data transmission link is reasonably utilized, thereby improving the utilization rate of link resources and preventing data transmission jitter problems.
[0090] Specifically, the data transmission client can obtain relevant transmission ratio reference information of the alternative data transmission link, such as the link type, link transmission ratio change trend, and preset benchmark threshold, so as to correct the link transmission ratio of the alternative data transmission link according to its transmission ratio reference information, so that high-quality links continue to give priority to data transmission, low-quality links continue to reduce the proportion of transmitted data, and balance and coordinate the data transmission behaviors of each alternative data transmission link.
[0091] In an optional embodiment of the present disclosure, the link transmission ratio of the alternative data transmission link is corrected according to the transmission ratio reference information of the alternative data transmission link and the preset link transmission ratio correction strategy, which may include: when it is determined that the link type of the alternative data transmission link is a low-ratio link, the link transmission ratio of the alternative data transmission link is increased according to a first ratio increase period and a first ratio increase value; when it is determined that the link type of the alternative data transmission link is a low-load high-quality link, the link transmission ratio of the alternative data transmission link is increased according to a second ratio increase period and a second ratio increase value; when it is determined that the link transmission ratio change trend of the alternative data transmission link is a continuous increase trend In the case where it is determined that the link transmission ratio of the alternative data transmission link is increased according to the third proportion increase period and / or the third proportion increase value; in the case where it is determined that the link transmission ratio change trend of the alternative data transmission link is a continuously decreasing trend, the link transmission ratio of the alternative data transmission link is reduced according to the fourth proportion increase period and / or the fourth proportion increase value; in the case where it is determined that the link transmission ratio of the alternative data transmission link is less than the preset reference threshold, the link transmission ratio of the alternative data transmission link is set to the preset reference threshold; in the case where it is determined that the target request packet of the alternative data transmission link is empty within the set period, the link transmission ratio of the alternative data transmission link is reduced according to the value of the set period.
[0092] Among them, the first ratio promotion period is also the period for improving the link transmission ratio of the alternative data transmission link of the low-proportion link type, and the first ratio promotion value is also the ratio value for improving the link transmission ratio of the alternative data transmission link of the low-proportion link type. The first ratio promotion period and the first ratio promotion value can be set according to actual needs, such as the first ratio promotion period is set to 1 minute, the first ratio promotion value is set to 20%, etc. The second ratio promotion period is also the period for improving the link transmission ratio of the alternative data transmission link of the low-load high-quality link type, and the second ratio promotion value is also the ratio value for improving the link transmission ratio of the alternative data transmission link of the low-load high-quality link type. The second ratio promotion period and the second ratio promotion value can be set according to actual needs, such as the second ratio promotion period is set to 10s, the second ratio promotion value is set to 20%, etc. The third ratio promotion period is also the period for improving the link transmission ratio of the alternative data transmission link whose link transmission ratio continues to increase, and the third ratio promotion value is also the ratio value for improving the link transmission ratio of the alternative data transmission link whose link transmission ratio continues to increase. The third ratio promotion period and the third ratio promotion value can be set according to actual needs, such as the third ratio promotion period is set to 2s, the third ratio promotion value is set to 40%, etc. The fourth proportional reduction period is the period for reducing the link transmission ratio of the alternative data transmission link whose link transmission ratio is continuously reduced, and the fourth proportional reduction value is the proportional value for reducing the link transmission ratio of the alternative data transmission link whose link transmission ratio is continuously reduced. The fourth proportional reduction period and the fourth proportional reduction value can be set according to actual needs, such as setting the fourth proportional reduction period to 2s, setting the fourth proportional reduction value to 40%, etc. The setting period can also be set according to needs. The embodiments of the present disclosure do not limit the specific values of the above-mentioned periods and increase values.
[0093] In a specific example, Figure 4As shown, after the link transmission ratio of the candidate data transmission link is determined, the data transmission client can analyze the link type of the candidate data transmission link. If the link type of the candidate data transmission link is determined to be a low-ratio link, such as a link transmission ratio of less than 10%, it is usually a newly added candidate data transmission link. In order to increase the possibility of data transmission in the low-ratio link, its link transmission ratio can be increased according to the first ratio increase period and the first ratio increase value, such as a periodic increase of 20% (1 minute), so that the low-ratio link can be used to send redundant data, and the link transmission ratio of the newly added candidate data transmission link can be quickly increased, which can not only improve the utilization rate of link resources, but also does not affect the transmission of high-quality data packets with high real-time performance by high-quality links, thereby improving the real-time performance and reliability of data transmission as a whole. If the link type of the candidate data transmission link is determined to be a low-load high-quality link, in order to make full use of the low-load high-quality link with the maximum probability, its link transmission ratio can be increased according to the second ratio increase period and the second ratio increase value, such as a periodic increase of 20% (10s), so that the low-load high-quality link can be used to transmit data packets of the first data packet type with a high probability. If it is determined that the change trend of the link transmission ratio of the alternative data transmission link is a trend of continuous increase, it indicates that the availability of the alternative data transmission link continues to improve, such as the quality continues to increase and / or the load continues to decrease. At this time, the link transmission ratio can be accelerated according to the third ratio increase cycle and / or the third ratio increase value. If the link transmission ratio of the alternative data transmission link increases twice in a row, the link transmission ratio of the alternative data transmission link can be accelerated according to a certain period and / or a certain value. Correspondingly, if it is determined that the change trend of the link transmission ratio of the alternative data transmission link is a trend of continuous decrease, it indicates that the availability of the alternative data transmission link continues to deteriorate, such as the quality continues to decrease and / or the load continues to increase. At this time, the link transmission ratio can be accelerated according to the fourth ratio increase cycle and / or the fourth ratio increase value. If the link transmission ratio of the alternative data transmission link decreases twice in a row, the link transmission ratio of the alternative data transmission link can be accelerated according to a certain period and / or a certain value.
[0094] At the same time, the modified link transmission ratio of each candidate data transmission link can be configured to be no less than a preset reference threshold value X, so as to ensure that each candidate data transmission link has the possibility of transmitting a data packet of the first data packet type. It is understandable that the candidate data transmission link may fail due to anomalies or other failures. For the candidate data transmission link that is predicted to fail, its link transmission ratio can be quickly reduced. In a specific example, Figure 4As shown, if the data transmission client determines that it has not received the heartbeat packet sent by the server to the alternative data transmission link for more than (N-3) heartbeat cycles, the link transmission ratio of the alternative data transmission link can be calculated as (1-(N-3) / 100). The advantage of this setting is that for a rapidly changing alternative data transmission link, its link transmission ratio can be quickly reduced to 0 to ensure the stability of data transmission.
[0095] In an optional embodiment of the present disclosure, after correcting the link transmission ratio of the alternative data transmission links, it may also include: determining the corrected link transmission ratio of each of the alternative data transmission links; and normalizing the corrected link transmission ratio of each of the alternative data transmission links.
[0096] It can be understood that after the link transmission ratio of each alternative data transmission link is corrected, the sum of the link transmission ratios of each alternative data transmission link may not be 1. Therefore, the corrected link transmission ratios of each alternative data transmission link can be normalized so that the sum of the link transmission ratios of each alternative data transmission link is 1, so as to ensure the accuracy of the subsequent determination of the first target data transmission link.
[0097] In summary, by screening qualified data transmission links according to RTT parameters, it is possible to avoid mixing links with large delay differences, which leads to large overall delays. After determining the benchmark transmission ratio of each candidate data transmission link based on the proportion of effective data arriving at the link, the final link transmission ratio is generated by combining the benchmark transmission ratio and the historical transmission ratio, and the link transmission ratio is corrected, including response time correction, accelerated rise, and accelerated decline correction; at the same time, for links with low ratios, the link ratio is heuristically increased, and there is a possibility of increasing the data sent. For links with delays or no server interaction, the ratio of its load sharing is reduced to avoid data transmission abnormalities. After the link transmission ratio correction is completed, it is normalized to ensure the rationality and accuracy of the link transmission ratio.
[0098] It should be noted that the generation process of the above candidate link set can be performed periodically, such as according to the transmission period of the data packet or a set period, etc., and the embodiments of the present disclosure are not limited to this.
[0099] S250: Generate the candidate link set according to the candidate data transmission link.
[0100] The above technical scheme obtains alternative data transmission links by screening the data transmission links multiple times and determines the matching link transmission ratio of each alternative data transmission link. This allows the data transmission link to determine the best first target data transmission link according to the matching link transmission ratio of each alternative data transmission link, thereby improving the accuracy and rationality of the first target data transmission link.
[0101] S260: Obtain the current data packet to be transmitted.
[0102] S270, determine whether the data packet type of the current data packet to be transmitted is the first data packet type, if so, execute S280, otherwise, execute S290.
[0103] S280: Acquire a set of candidate links, determine a first target data transmission link from the candidate data transmission links according to the link transmission ratio of each candidate data transmission link, and transmit the current data packet to be transmitted through the first target data transmission link.
[0104] Correspondingly, if the data transmission client determines that the data packet type of the current data packet to be transmitted is the first data packet type, such as the RTP (Real-time Transport Protocol) data packet and the FEC (Forward Error Correction) data packet in the RTC associated data packet, the first target data transmission link can be determined according to the link transmission ratio of each alternative data transmission link in the alternative link set through the link selection algorithm, and the current data packet to be transmitted is transmitted through the selected first target data transmission link to meet the low-latency transmission requirements of the current data packet to be transmitted. After receiving the data packet, the server performs subsequent processing after deduplication and sorting according to SN (Serial Number).
[0105] The above technical solution can achieve relatively ideal data transmission performance for each link scenario by allocating the link transmission ratio of each alternative data transmission link according to the ratio of effectively reaching the target. Specifically, when the quality of all alternative data transmission links is good, by increasing the link transmission ratio of low-load high-quality links, load balancing of each alternative data transmission link can be achieved, thereby reducing the randomness of link selection. In the case where some alternative data transmission links have good quality and some alternative data transmission links have poor quality, the link transmission ratio is reduced due to severe packet loss or high delay due to poor link quality, so the alternative data transmission link with higher link quality is more likely to be used for data transmission. In the case of sudden failure of the alternative data transmission link, the data transmission link can be clarified based on whether the heartbeat request packet sent by the server arrives, so as to quickly reduce the link transmission ratio of the failed alternative data transmission link, thereby improving the response efficiency of the failed link. If the link quality of all alternative data transmission links is poor, each alternative data transmission link will be dynamically coordinated for data transmission. If a new alternative data transmission link is added, its link transmission ratio can be periodically increased through a low-load mechanism; if its link quality is good and the load is low, its link transmission ratio can also be increased. If the candidate data transmission link has a small range of jitter, the currently calculated link transmission ratio can be smoothed by the historical transmission ratio of each candidate data transmission link. If the candidate data transmission link has a large range of jitter, such as the link quality changes from good to bad and then becomes good again, when the link quality is good in the initial state, its link transmission ratio is high and the link load is also high; when the link quality deteriorates, its link transmission ratio can be reduced by parameters such as packet loss or delay; when the link quality becomes good again, similar to the newly added candidate data transmission link, its link transmission ratio can be increased again.
[0106] S290, determine whether the data packet type of the current data packet to be transmitted is the second data packet type, if so, execute S2A0, otherwise, execute SB0.
[0107] The second data packet type may be a data packet type that has the highest requirement for data transmission efficiency.
[0108] S2A0. Determine a second target data transmission link, and transmit the current data packet to be transmitted through the second target data transmission link.
[0109] The second target data transmission link may be used to transmit a currently to-be-transmitted data packet of a second data packet type.
[0110] Correspondingly, if the data transmission client determines that the data packet type of the current data packet to be transmitted is a second data packet type, such as an RTCP (Realtime Transport Control Protocol) data packet, the second target data transmission link can be determined. Optionally, the second target data transmission link can be a link with the lowest delay and the best quality among the data transmission links, and the current data packet to be transmitted is transmitted through the second target data transmission link, which can meet the efficient data transmission requirements and improve the data processing feedback efficiency of the server. It is understandable that the second target data transmission link can be one of the alternative data transmission links.
[0111] S2B0. Determine that the data packet type of the current data packet to be transmitted is a third data packet type, determine a third target data transmission link according to the first target data transmission link and the second target data transmission link, and transmit the current data packet to be transmitted through the third target data transmission link.
[0112] The third data packet type may be other types of data packets that do not require high data transmission delay and processing efficiency. The third target data transmission link is different from the first target data transmission link, and the third target data transmission link is different from the second target data transmission link.
[0113] Correspondingly, if the data transmission client determines that the data packet type of the current data packet to be transmitted is a third data packet type, such as a NACK (Negative Acknowledgement) error correction packet, it can select a third target data transmission link that is different from both the first target data transmission link and the second target data transmission link for transmission, so as to prioritize the transmission performance of the first data packet type and the second data packet type, thereby improving the overall data transmission performance.
[0114] The above technical solution determines the first target data transmission link for the first data packet type, determines the second target data transmission link for the second data packet type, and determines the third target data transmission link for the third data packet type according to the matching link transmission ratio of the alternative data transmission links, so as to realize the transmission of different types of data packets through different target data transmission links, which can meet the diversified data transmission needs and improve the stability, efficiency and scalability of data transmission.
[0115] In one example, Figure 5 It is a flow chart of a data transmission method provided by an embodiment of the present disclosure. Based on the technical solutions of the above embodiments, the embodiment of the present disclosure has been optimized and improved, and a plurality of specific optional implementation methods for determining the first target data transmission link from various alternative data transmission links according to the link transmission ratio of each alternative data transmission link are given.
[0116] like Figure 5 A data transmission method shown includes:
[0117] S510: Obtain the current data packet to be transmitted.
[0118] S520: Determine that the data packet type of the current data packet to be transmitted is a first data packet type, and obtain a set of candidate links.
[0119] S530: Generate a random value.
[0120] Optionally, after obtaining the candidate link set, the data transmission client may generate a random value by using a random number generation method.
[0121] S540: Match the random value with the link transmission ratio of each of the candidate data transmission links to determine a target link transmission ratio that matches the random value.
[0122] S550: Determine a candidate data transmission link having the target link transmission ratio as the first target data transmission link.
[0123] The target link transmission ratio is also the hit link transmission ratio determined by the random value.
[0124] Optionally, the data transmission client may maintain a mapping relationship table between random values and link transmission ratios, and determine the target link transmission ratio based on the mapping relationship table between random values and link transmission ratios in combination with the random values generated in real time.
[0125] In a specific example, assuming that the link transmission ratio corresponding to the random value 1-10 is 10%, and the link transmission ratio corresponding to the random value 50-100 is 50%, when the generated random value is 60, it can be determined that the matching target link transmission ratio is 50%. Accordingly, the alternative data transmission link with a link transmission ratio of 50% can be determined as the first target data transmission link. If there are multiple alternative data transmission links for the target link transmission ratio, the first target data transmission link can be further screened out from the multiple alternative data transmission links for the target link transmission ratio according to additional link selection strategies or random selection methods.
[0126] It can be understood that the data transmission client can constrain the range of random value and establish a mapping relationship between each possible generated random value and the corresponding link transmission ratio to ensure that the generated random value can uniquely determine a matching target link transmission ratio.
[0127] S560: Transmit the data packet currently to be transmitted through the first target data transmission link.
[0128] In an optional embodiment of the present disclosure, the data transmission method may further include: when it is determined that the data packet type of the current data packet to be transmitted is a target sub-data packet type of the first data packet type, determining a target dual-redundant data transmission link from each of the alternative data transmission links; and redundantly transmitting the current data packet to be transmitted through the target dual-redundant data transmission link.
[0129] The target sub-data packet type may be the type of the sub-data packet included in the current data packet to be transmitted. The target dual redundant data transmission links are two target data transmission links determined by the candidate data transmission links.
[0130] In a specific example, if the current data packet to be transmitted is an RTP data packet, the audio packet and / or video packet in the RTP data packet can be redundantly sent in a two-way link manner, that is, two target data transmission links are determined for transmission to ensure the high reliability transmission requirements of the audio and video services. The server can filter and deduplicate the received redundant packets.
[0131] Figure 6 is a schematic diagram of a data transmission process based on an RTC scenario provided by an embodiment of the present disclosure. In a specific example, Figure 6 As shown, the RTC client discovers each network link, obtains the IP address of each network link, establishes an ICE link, i.e., a data transmission link, with the RTC server, and maintains bidirectional keep-alive. For each data transmission link between the client and the server, the server continuously monitors the RTT, packet loss rate, estimated bandwidth, actual bandwidth and other related parameters and feeds them back to the client. The client calculates the service quality normalization value based on the parameters fed back by the server, and selects the data transmission links with the service quality normalization value that meets the standard, groups them according to the RTT, and uses them as a reference for the link selection algorithm, while excluding failed links. When the client side sends RTP and / or FEC data packets, the corresponding data transmission link can be selected according to the link transmission ratio of each data transmission link according to the link selection algorithm. After receiving the data packet, the server performs subsequent processing after deduplication and sorting according to SN. When the client side sends RTCP, the data transmission link with the lowest delay and the best quality can be selected for transmission. For NACK error correction packets, the client side can select a data transmission link different from the original packet (RTP, FEC and RTCP) for transmission. Since audio data is more sensitive, for the audio packets included in RTP, you can optionally enable two data transmission links for redundant transmission, and filter and deduplicate on the server side.
[0132] It can be seen that the above-mentioned data transmission method based on the RTC scenario can realize the simultaneous use of the bandwidth of multiple network links, aggregate a larger bandwidth, and allow the transmission of higher-definition and more channels of audio and video. In network transmission, especially in wireless network or mobile network environments, due to the existence of unstable wireless signals, base station switching, competition among multiple users, network jitter, and unpredictable link failures, the above-mentioned data transmission method is adopted. When the quality of certain links degrades, fault tolerance and backup are performed through other links, thereby ensuring the stability and smoothness of audio and video transmission. In the 4 / 5GLTE (Long Term Evolution) network environment, the bandwidth of the same operator's base station radiation is shared and preempted. Using the networks of different operators at the same time during data transmission can obtain a larger available bandwidth and ensure the reliability of data transmission.
[0133] By adopting the above technical solution, the matching target link transmission ratio is determined by randomly generating random numerical values, and the first target data transmission link is determined based on the target link transmission ratio. This can reasonably utilize the resources of each data transmission link, improve the utilization rate of link resources, thereby meeting data transmission needs and improving the stability, efficiency and scalability of data transmission.
[0134] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present disclosure.
[0135] In one example, Figure 7 This is a structural diagram of a data transmission device provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the case where data is transmitted through a link determined by a link transmission ratio. The device is implemented by software and / or hardware and is specifically configured in an electronic device. The electronic device may be a terminal device capable of running a data transmission client, and is used in conjunction with a server. The embodiment of the present disclosure does not limit the specific device type of the electronic device.
[0136] like Figure 7 The data transmission device 700 shown in the figure comprises: a current data packet to be transmitted acquisition module 710, a candidate link set acquisition module 720, a first target data transmission link determination module 730 and a first current data packet to be transmitted transmission module 740.
[0137] The current data packet to be transmitted acquisition module 710 is used to acquire the current data packet to be transmitted;
[0138] The candidate link set acquisition module 720 is used to acquire a candidate link set when it is determined that the data packet type of the current data packet to be transmitted is the first data packet type; wherein the candidate link set includes at least one candidate data transmission link, and each of the candidate data transmission links is configured with a link transmission ratio;
[0139] A first target data transmission link determination module 730 is configured to determine a first target data transmission link from each of the candidate data transmission links according to a link transmission ratio of each of the candidate data transmission links;
[0140] The first currently-to-be-transmitted data packet transmission module 740 is configured to transmit the currently-to-be-transmitted data packet via the first target data transmission link.
[0141] After the data transmission client obtains the current data packet to be transmitted, the disclosed embodiment determines the type of the current data packet to be transmitted. If it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, an alternative link set of multiple alternative data transmission links configured with link transmission ratios is obtained, and according to the link transmission ratios of each alternative data transmission link, a first target data transmission link is determined from each alternative data transmission link to transmit the current data packet to be transmitted through the first target data transmission link, so as to solve the problems of the existing data transmission method that the data transmission is not stable and efficient enough, and the scope of application is small, and can reduce the network delay of data transmission, and improve the stability, efficiency and scalability of data transmission.
[0142] Optionally, the data transmission device also includes an alternative link set generation module, which is used to: screen qualified data transmission links from each original data transmission link; obtain the RTT parameters of each qualified data transmission link; screen the qualified data transmission links according to the RTT parameters to obtain the alternative data transmission links; determine the matching link transmission ratio for the alternative data transmission links; and generate the alternative link set based on the alternative data transmission links.
[0143] Optionally, the alternative link set generation module is also used to: determine a benchmark qualified data transmission link from each of the qualified data transmission links, and determine an RTT parameter benchmark difference threshold; calculate the RTT parameter difference between each of the qualified data transmission links and the benchmark qualified data transmission link; and filter out the qualified data transmission links whose RTT parameter difference is less than the RTT parameter benchmark difference threshold as the alternative data transmission links.
[0144] Optionally, the alternative link set generation module is also used to: obtain reference link parameters of the alternative data transmission link; wherein the reference link parameters include benchmark reference link parameters and associated reference link parameters; calculate the benchmark transmission ratio of the alternative data transmission link according to the reference link parameters; and determine the link transmission ratio according to the benchmark transmission ratio of the alternative data transmission link.
[0145] Optionally, the benchmark reference link parameters include the sending rate, packet loss rate and RTT of the alternative data transmission link; the associated reference link parameters include the effective sending rate and average RTT of all alternative data transmission links; the alternative link set generation module is also used to: calculate the benchmark transmission ratio of the alternative data transmission link based on the following formula: benchmark transmission ratio = (sending rate*(1-packet loss rate) / effective sending rate of all alternative data transmission links)*(1+(average RTT-RTT) / average RTT).
[0146] Optionally, the alternative link set generation module is also used to: obtain the historical transmission ratio of the alternative data transmission link; determine the weight value of the benchmark transmission ratio and the weight value of the historical transmission ratio of the alternative data transmission link; determine the link transmission ratio based on the benchmark transmission ratio, the weight value of the benchmark transmission ratio, the historical transmission ratio and the weight value of the historical transmission ratio.
[0147] Optionally, there are multiple historical transmission ratios; the candidate link set generation module is also used to: obtain the determination time of the historical transmission ratio; and determine the weight value of each historical transmission ratio according to the determination time of each historical transmission ratio.
[0148] Optionally, the alternative link set generation module is also used to: obtain transmission ratio reference information of the alternative data transmission link; wherein the transmission ratio reference information includes at least one of the following: the link type of the alternative data transmission link, the link transmission ratio change trend of the alternative data transmission link or a preset benchmark threshold; and correct the link transmission ratio of the alternative data transmission link according to the transmission ratio reference information of the alternative data transmission link and a preset link transmission ratio correction strategy.
[0149] Optionally, the alternative link set generation module is also used to: when it is determined that the link type of the alternative data transmission link is a low-proportion link, increase the link transmission ratio of the alternative data transmission link according to a first proportion increase period and a first proportion increase value; when it is determined that the link type of the alternative data transmission link is a low-load high-quality link, increase the link transmission ratio of the alternative data transmission link according to a second proportion increase period and a second proportion increase value; when it is determined that the link transmission ratio change trend of the alternative data transmission link is a continuous increasing trend, increase the link transmission ratio of the alternative data transmission link according to a third proportion increase period and / or a third proportion increase value; when it is determined that the link transmission ratio change trend of the alternative data transmission link is a continuous decreasing trend, reduce the link transmission ratio of the alternative data transmission link according to a fourth proportion reduction period and / or a fourth proportion reduction value; when it is determined that the link transmission ratio of the alternative data transmission link is less than the preset reference threshold, set the link transmission ratio of the alternative data transmission link to the preset reference threshold; when it is determined that the target request packet of the alternative data transmission link is empty within the set period, reduce the link transmission ratio of the alternative data transmission link according to the value of the set period.
[0150] Optionally, the candidate link set generation module is further used to: determine the revised link transmission ratio of each candidate data transmission link; and normalize the revised link transmission ratio of each candidate data transmission link.
[0151] Optionally, the first target data transmission link determination module 730 is also used to: generate a random value; match the random value with the link transmission ratio of each of the alternative data transmission links to determine the target link transmission ratio that matches the random value; and determine the alternative data transmission link with the target link transmission ratio as the first target data transmission link.
[0152] Optionally, the data transmission device also includes a second current data packet to be transmitted transmission module, which is used to: determine a second target data transmission link when it is determined that the data packet type of the current data packet to be transmitted is a second data packet type; and transmit the current data packet to be transmitted through the second target data transmission link.
[0153] Optionally, the data transmission device also includes a third current data packet to be transmitted transmission module, which is used to: when it is determined that the data packet type of the current data packet to be transmitted is a third data packet type, determine a third target data transmission link according to the first target data transmission link and the second target data transmission link; wherein the third target data transmission link is different from the first target data transmission link, and the third target data transmission link is different from the second target data transmission link; and transmit the current data packet to be transmitted through the third target data transmission link.
[0154] Optionally, the data transmission device also includes a fourth current data packet to be transmitted transmission module, which is used to: when it is determined that the data packet type of the current data packet to be transmitted is a target sub-data packet type of the first data packet type, determine a target dual-redundant data transmission link from each of the alternative data transmission links; and redundantly transmit the current data packet to be transmitted through the target dual-redundant data transmission link.
[0155] Optionally, the data transmission device also includes a link quality associated parameter receiving module, which is used to: send a link detection request to the server when it is determined that the target network card is in an activated state; receive link quality associated parameters of the newly added data transmission link fed back by the server in response to the link detection request; wherein the link quality associated parameters are used to evaluate the quality of the newly added data transmission link.
[0156] The above data transmission device can execute the data transmission method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the data transmission method provided by any embodiment of the present disclosure.
[0157] Since the data transmission device described above is a device that can execute the data transmission method in the embodiment of the present disclosure, based on the data transmission method described in the embodiment of the present disclosure, a person skilled in the art can understand the specific implementation of the data transmission device of the embodiment and its various variations, so how the data transmission device implements the data transmission method in the embodiment of the present disclosure is not described in detail here. As long as a person skilled in the art implements the device used in the data transmission method in the embodiment of the present disclosure, it belongs to the scope of protection of the present disclosure.
[0158] In one example, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0159] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0160] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0161] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0162] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as data transmission methods. For example, in some embodiments, the data transmission method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the data transmission method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the data transmission method in any other appropriate manner (e.g., by means of firmware).
[0163] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being 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 can 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 data and instructions to the storage system, the at least one input device, and the at least one output device.
[0164] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0165] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0166] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types 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, voice input, or tactile input).
[0167] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0168] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services. The server can also be a server of a distributed system, or a server combined with a blockchain.
[0169] After the data transmission client obtains the current data packet to be transmitted, the disclosed embodiment determines the type of the current data packet to be transmitted. If it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, an alternative link set of multiple alternative data transmission links configured with link transmission ratios is obtained, and according to the link transmission ratios of each alternative data transmission link, a first target data transmission link is determined from each alternative data transmission link to transmit the current data packet to be transmitted through the first target data transmission link, so as to solve the problems of the existing data transmission method that the data transmission is not stable and efficient enough, and the scope of application is small, and can reduce the network delay of data transmission, and improve the stability, efficiency and scalability of data transmission.
[0170] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0171] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A data transmission method, applied to a data transmission client, comprising: Get the current data packet to be transmitted; In the case where it is determined that the data packet type of the current data packet to be transmitted is the first data packet type, obtaining a candidate link set; wherein the candidate link set includes at least one candidate data transmission link, and each of the candidate data transmission links is configured with a link transmission ratio; Determining a first target data transmission link from the candidate data transmission links according to the link transmission ratio of each of the candidate data transmission links; Transmitting the current data packet to be transmitted via the first target data transmission link; The link transmission ratio of each of the candidate data transmission link configurations is determined in the following manner: Acquire reference link parameters of the candidate data transmission link; wherein the reference link parameters include benchmark reference link parameters and associated reference link parameters; Calculating a reference transmission ratio of the candidate data transmission link according to the reference link parameters; The link transmission ratio is determined according to the benchmark transmission ratio of the candidate data transmission link.
2. The method according to claim 1, further comprising: Selecting qualified data transmission links from various original data transmission links; Obtaining the round trip time (RTT) parameter of each of the standard data transmission links; Screening the qualified data transmission links according to the RTT parameters to obtain the candidate data transmission links; Determining a matching link transmission ratio for the candidate data transmission link; The candidate link set is generated according to the candidate data transmission link.
3. According to the method of claim 2, the step of screening the qualified data transmission link according to the RTT parameter to obtain the candidate data transmission link comprises: Determine a benchmark standard data transmission link from each of the standard data transmission links, and determine an RTT parameter benchmark difference threshold; Calculating the RTT parameter difference between each of the standard-compliant data transmission links and the benchmark standard-compliant data transmission link; The qualified data transmission link whose RTT parameter difference is less than the RTT parameter benchmark difference threshold is selected as the candidate data transmission link.
4. The method according to claim 1, wherein: The benchmark reference link parameters include the sending rate, packet loss rate and RTT of the candidate data transmission link; The associated reference link parameters include the effective transmission rate and average RTT of all candidate data transmission links; The calculating the reference transmission ratio of the candidate data transmission link according to the reference link parameter includes: The benchmark transmission ratio of the candidate data transmission link is calculated based on the following formula: Benchmark transmission ratio = (sending rate * (1-packet loss rate) / effective sending rate of all candidate data transmission links) * (1 + (average RTT-RTT) / average RTT).
5. The method according to claim 1, wherein: The determining the link transmission ratio according to the benchmark transmission ratio of the candidate data transmission link includes: Obtaining a historical transmission ratio of the candidate data transmission link; Determining a weight value of the benchmark transmission ratio and a weight value of the historical transmission ratio of the candidate data transmission link; The link transmission ratio is determined according to the reference transmission ratio, the weight value of the reference transmission ratio, the historical transmission ratio, and the weight value of the historical transmission ratio.
6. The method according to claim 5, wherein: The number of the historical transmission ratios is multiple; Determining a weight value of the historical transmission ratio includes: Obtaining the determined time of the historical transmission ratio; The weight value of each of the historical transmission ratios is determined according to the determination time of each of the historical transmission ratios.
7. The method according to any one of claims 2 to 6, further comprising: Acquire transmission ratio reference information of the candidate data transmission link; wherein the transmission ratio reference information includes at least one of the following: the link type of the candidate data transmission link, the link transmission ratio change trend of the candidate data transmission link, or a preset reference threshold; The link transmission ratio of the candidate data transmission link is corrected according to the transmission ratio reference information of the candidate data transmission link and the preset link transmission ratio correction strategy.
8. The method according to claim 7, wherein: The step of correcting the link transmission ratio of the candidate data transmission link according to the transmission ratio reference information of the candidate data transmission link and the preset link transmission ratio correction strategy includes: In the case where it is determined that the link type of the candidate data transmission link is a low-ratio link, increasing the link transmission ratio of the candidate data transmission link according to a first ratio increase period and a first ratio increase value; In the case where it is determined that the link type of the candidate data transmission link is a low-load high-quality link, increasing the link transmission ratio of the candidate data transmission link according to a second ratio increase period and a second ratio increase value; When it is determined that the link transmission ratio change trend of the candidate data transmission link is a continuous increasing trend, increasing the link transmission ratio of the candidate data transmission link according to a third ratio increase period and / or a third ratio increase value; When it is determined that the link transmission ratio change trend of the candidate data transmission link is a continuously decreasing trend, reducing the link transmission ratio of the candidate data transmission link according to a fourth ratio reduction period and / or a fourth ratio reduction value; When it is determined that the link transmission ratio of the candidate data transmission link is less than the preset reference threshold, setting the link transmission ratio of the candidate data transmission link to the preset reference threshold; When it is determined that the target request packet of the candidate data transmission link is empty within the set period, the link transmission ratio of the candidate data transmission link is reduced according to the value of the set period.
9. The method according to claim 8, further comprising: Determine a corrected link transmission ratio of each of the candidate data transmission links; The corrected link transmission ratios of the candidate data transmission links are normalized.
10. The method according to claim 1, wherein: The determining the first target data transmission link from each of the candidate data transmission links according to the link transmission ratio of each of the candidate data transmission links includes: Generate a random value; Matching the random value with the link transmission ratio of each of the candidate data transmission links, and determining a target link transmission ratio that matches the random value; The candidate data transmission link of the target link transmission ratio is determined as the first target data transmission link.
11. The method according to claim 1, further comprising: In the case where it is determined that the data packet type of the current data packet to be transmitted is the second data packet type, determining a second target data transmission link; The currently to-be-transmitted data packet is transmitted via the second target data transmission link.
12. The method according to claim 11, further comprising: In the case where it is determined that the data packet type of the current data packet to be transmitted is a third data packet type, a third target data transmission link is determined according to the first target data transmission link and the second target data transmission link; wherein the third target data transmission link is different from the first target data transmission link, and the third target data transmission link is different from the second target data transmission link; The data packet currently to be transmitted is transmitted via the third target data transmission link.
13. The method according to claim 1, further comprising: In the case where it is determined that the data packet type of the current data packet to be transmitted is a target sub-data packet type of the first data packet type, determining a target dual-redundant data transmission link from each of the candidate data transmission links; The data packet currently to be transmitted is redundantly transmitted via the target dual-redundant data transmission link.
14. The method according to claim 1, further comprising: When it is determined that the target network card is in an activated state, a link detection request is sent to the server; receiving a link quality associated parameter of a newly added data transmission link fed back by the server in response to the link detection request; The link quality associated parameter is used to evaluate the quality of the newly added data transmission link.
15. A data transmission device, configured at a data transmission client, comprising: A module for acquiring a data packet currently to be transmitted, used to acquire a data packet currently to be transmitted; An alternative link set acquisition module, configured to acquire an alternative link set when it is determined that the data packet type of the current data packet to be transmitted is the first data packet type; wherein the alternative link set includes at least one alternative data transmission link, and each of the alternative data transmission links is configured with a link transmission ratio; A first target data transmission link determination module, configured to determine a first target data transmission link from each of the candidate data transmission links according to a link transmission ratio of each of the candidate data transmission links; A first current data packet to be transmitted transmitting module, configured to transmit the current data packet to be transmitted through the first target data transmission link; The link transmission ratio of each of the candidate data transmission link configurations is determined in the following manner: Acquire reference link parameters of the candidate data transmission link; wherein the reference link parameters include benchmark reference link parameters and associated reference link parameters; Calculating a reference transmission ratio of the candidate data transmission link according to the reference link parameters; The link transmission ratio is determined according to the benchmark transmission ratio of the candidate data transmission link.
16. The apparatus according to claim 15, further comprising a candidate link set generating module, configured to: Selecting qualified data transmission links from various original data transmission links; Obtaining the RTT parameters of each of the standard data transmission links; Screening the qualified data transmission links according to the RTT parameters to obtain the candidate data transmission links; Determining a matching link transmission ratio for the candidate data transmission link; The candidate link set is generated according to the candidate data transmission link.
17. The device according to claim 16, wherein: The candidate link set generation module is also used for: Determine a benchmark standard data transmission link from each of the standard data transmission links, and determine an RTT parameter benchmark difference threshold; Calculating the RTT parameter difference between each of the standard-compliant data transmission links and the benchmark standard-compliant data transmission link; The qualified data transmission link whose RTT parameter difference is less than the RTT parameter benchmark difference threshold is selected as the candidate data transmission link.
18. The device according to claim 15, wherein: The benchmark reference link parameters include the transmission rate, packet loss rate and RTT of the candidate data transmission link; the associated reference link parameters include the effective transmission rate and average RTT of all candidate data transmission links; the candidate link set generation module is also used to: The benchmark transmission ratio of the candidate data transmission link is calculated based on the following formula: Benchmark transmission ratio = (sending rate * (1-packet loss rate) / effective sending rate of all candidate data transmission links) * (1 + (average RTT-RTT) / average RTT).
19. The device according to claim 15, wherein: The candidate link set generation module is also used for: Obtaining a historical transmission ratio of the candidate data transmission link; Determining a weight value of the benchmark transmission ratio and a weight value of the historical transmission ratio of the candidate data transmission link; The link transmission ratio is determined according to the reference transmission ratio, the weight value of the reference transmission ratio, the historical transmission ratio, and the weight value of the historical transmission ratio.
20. The device according to claim 19, wherein The number of the historical transmission ratios is multiple; the candidate link set generation module is also used for: Obtaining the determined time of the historical transmission ratio; The weight value of each of the historical transmission ratios is determined according to the determination time of each of the historical transmission ratios.
21. The device according to any one of claims 16 to 20, wherein the candidate link set generation module is further configured to: Acquire transmission ratio reference information of the candidate data transmission link; wherein, The transmission ratio reference information includes at least one of the following: a link type of the candidate data transmission link, a link transmission ratio change trend of the candidate data transmission link, or a preset reference threshold; The link transmission ratio of the candidate data transmission link is corrected according to the transmission ratio reference information of the candidate data transmission link and the preset link transmission ratio correction strategy.
22. The device according to claim 21, wherein The candidate link set generation module is also used for: In the case where it is determined that the link type of the candidate data transmission link is a low-ratio link, increasing the link transmission ratio of the candidate data transmission link according to a first ratio increase period and a first ratio increase value; In the case where it is determined that the link type of the candidate data transmission link is a low-load high-quality link, increasing the link transmission ratio of the candidate data transmission link according to a second ratio increase period and a second ratio increase value; When it is determined that the link transmission ratio change trend of the candidate data transmission link is a continuous increasing trend, increasing the link transmission ratio of the candidate data transmission link according to a third ratio increase period and / or a third ratio increase value; When it is determined that the link transmission ratio change trend of the candidate data transmission link is a continuously decreasing trend, reducing the link transmission ratio of the candidate data transmission link according to a fourth ratio reduction period and / or a fourth ratio reduction value; When it is determined that the link transmission ratio of the candidate data transmission link is less than the preset reference threshold, setting the link transmission ratio of the candidate data transmission link to the preset reference threshold; When it is determined that the target request packet of the candidate data transmission link is empty within the set period, the link transmission ratio of the candidate data transmission link is reduced according to the value of the set period.
23. The device according to claim 22, wherein: The candidate link set generation module is also used for: Determine a corrected link transmission ratio of each of the candidate data transmission links; The corrected link transmission ratios of the candidate data transmission links are normalized.
24. The device according to claim 15, wherein: The first target data transmission link determination module is also used for: Generate a random value; Matching the random value with the link transmission ratio of each of the candidate data transmission links, and determining a target link transmission ratio that matches the random value; The candidate data transmission link of the target link transmission ratio is determined as the first target data transmission link.
25. The apparatus according to claim 15, further comprising a second current data packet to be transmitted transmission module, configured to: In the case where it is determined that the data packet type of the current data packet to be transmitted is the second data packet type, determining a second target data transmission link; The currently to-be-transmitted data packet is transmitted via the second target data transmission link.
26. The device according to claim 25, further comprising a third current data packet transmission module to be transmitted, configured to: When it is determined that the data packet type of the current data packet to be transmitted is the third data packet type, a third target data transmission link is determined according to the first target data transmission link and the second target data transmission link; wherein, The third target data transmission link is different from the first target data transmission link, and the third target data transmission link is different from the second target data transmission link; The data packet currently to be transmitted is transmitted via the third target data transmission link.
27. The apparatus according to claim 15, further comprising a fourth current data packet transmission module for transmitting: In the case where it is determined that the data packet type of the current data packet to be transmitted is a target sub-data packet type of the first data packet type, determining a target dual-redundant data transmission link from each of the candidate data transmission links; The data packet currently to be transmitted is redundantly transmitted via the target dual-redundant data transmission link.
28. The apparatus according to claim 15, further comprising a link quality associated parameter receiving module, configured to: When it is determined that the target network card is in an activated state, a link detection request is sent to the server; receiving a link quality associated parameter of a newly added data transmission link fed back by the server in response to the link detection request; in, The link quality associated parameter is used to evaluate the quality of the newly added data transmission link.
29. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the data transmission method according to any one of claims 1 to 14.
30. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the data transmission method according to any one of claims 1 to 14.
31. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the data transmission method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Transmission link management method and device, electronic equipment and storage medium
CN111211980A
Method for multilink aggregation transmission of data and sending equipment
CN111277502A
