Network transmission method and device, electronic equipment, storage medium and program product
Based on the statistical analysis characteristics in the wireless network, the bandwidth delay accumulation is determined, and the problem of network jitter affects the accuracy of congestion control accuracy, and a more stable congestion control and improved network transmission quality is realized.
Patent Information
- Application Number
- CN202411505646.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-28
AI Technical Summary
Due to environmental impact in wireless networks, network jitter causes changes in minimum round-trip delay, affecting the accuracy of bandwidth delay product detection, which in turn leads to poor congestion control effect.
By obtaining the network bandwidth and first round -trip delay of the target network, the jitter is analyzed. If the jitter occurs, the statistical analysis characteristics of the network bandwidth and the second rounded delay within the preset time range determine the bandwidth delay accumulation Essence
By statistical analysis characteristics, reducing random fluctuations and noise of round round trip delay during network jitter, improving the accuracy of bandwidth delay, effectively improving the control effect of the wireless network, and improving the quality of network transmission.
Smart Images

Figure CN119383652A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a network transmission method, device, electronic device, storage medium and program product. Background Art
[0002] At present, the core model of the Bottleneck Bandwidth and Round-trippropagation time (BBR) congestion control algorithm is to calculate the bandwidth-delay product. By periodically detecting the maximum bandwidth and the minimum round-trip delay, the steady-state bandwidth of the network transmission is obtained, thereby guiding the network transmission.
[0003] In wireless networks, since data is transmitted over the air, it is greatly affected by the environment. With network jitter, the minimum round-trip delay will change, affecting the accuracy of bandwidth-delay product detection, resulting in poor congestion control in wireless networks. Summary of the invention
[0004] In view of this, the present disclosure provides a network transmission method, device, electronic device, storage medium and program product to solve the problem of poor congestion control effect of wireless networks.
[0005] In a first aspect, the present disclosure provides a network transmission method, the method comprising:
[0006] Get the network bandwidth and first round trip delay of the target network;
[0007] Analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result;
[0008] If the jitter analysis result indicates that jitter occurs in the target network, a bandwidth-delay product is determined based on statistical analysis characteristics of the network bandwidth and the second round-trip delay within a first preset time range, where the second round-trip delay is used to characterize the first round-trip delay corresponding to when jitter occurs in the target network, and an end time point of the first preset time range corresponds to a collection time point of the second round-trip delay;
[0009] Data transmission control is performed in the target network based on the bandwidth-delay product.
[0010] In a second aspect, the present disclosure provides a network transmission device, the device comprising:
[0011] A data acquisition module, used to acquire the network bandwidth and the first round-trip delay of the target network;
[0012] A data analysis module, configured to analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result;
[0013] a jitter processing module, configured to determine a bandwidth-delay product based on the statistical analysis characteristics of the network bandwidth and the second round-trip delay within a first preset time range if the jitter analysis result indicates that the target network has jitter, the second round-trip delay being used to indicate the first round-trip delay corresponding to the jitter of the target network, and the end time point of the first preset time range corresponding to the collection time point of the second round-trip delay;
[0014] A network transmission module is used to control data transmission in the target network based on the bandwidth-delay product.
[0015] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the network transmission method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0016] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the network transmission method of the first aspect or any corresponding embodiment thereof.
[0017] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, which are used to enable a computer to execute the network transmission method of the first aspect or any corresponding embodiment thereof.
[0018] The network transmission method provided by the embodiment of the present disclosure analyzes the jitter of the target network through the first round-trip delay. When the target network jitters, the bandwidth-delay product is determined based on the network bandwidth of the target network and the statistical analysis characteristics of the round-trip delay corresponding to the target network jitter. Since the statistical analysis characteristics can characterize the macro value of the round-trip delay of the target network within a certain range, the random fluctuation and noise of the round-trip delay during network jitter can be reduced, and the statistical analysis characteristics are more stable than the minimum round-trip delay. Therefore, when the target network jitters, the bandwidth-delay product is determined using the statistical analysis characteristics of the round-trip delay to perform data transmission control in the target network, thereby effectively improving the congestion control effect of the target network such as the wireless network, thereby improving the network transmission quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 is a flowchart of a first network transmission method according to an embodiment of the present disclosure;
[0021] Figure 2 is a schematic diagram of detection data of bandwidth delay product in a related technology;
[0022] Figure 3 is a flow chart of a second network transmission method according to an embodiment of the present disclosure;
[0023] Figure 4 is a flow chart of a third network transmission method according to an embodiment of the present disclosure;
[0024] Figure 5 is a structural block diagram of a network transmission device according to an embodiment of the present disclosure;
[0025] Figure 6 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0027] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0028] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0029] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0030] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0031] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0032] In network transmission, the performance of intermediate devices such as gateways has an upper limit. Exceeding the performance of the device may cause packet loss. Congestion control algorithm is a key algorithm for reliable network transmission. Congestion control algorithm detects and calculates the available bandwidth of the network to send data packets in a planned manner, thereby avoiding blocking intermediate devices.
[0033] At present, congestion control algorithms are mainly divided into four categories: packet loss-based, delay-based, link capacity-based, and learning-based. Among them, the link capacity-based congestion control algorithm mainly detects the network bandwidth and round-trip delay of the network in real time, and then multiplies them to obtain the bandwidth-delay product as the basis for the algorithm operation. The bandwidth-delay product is used to control the data packet sending rate and the size of the congestion control window, and the data packet sending is maintained within the range of the bandwidth-delay product as much as possible. This type of congestion control algorithm has gradually become the mainstream congestion control algorithm due to its lower packet loss rate, better algorithm fairness, and simpler implementation logic.
[0034] The bottleneck bandwidth and round-trip propagation time (BBR) congestion control algorithm is a representative of the congestion control algorithms based on link capacity. Its core model is to calculate the bandwidth-delay product. By periodically detecting the maximum bandwidth and the minimum round-trip delay, the steady-state bandwidth of the network transmission is obtained, thereby guiding the sending of data packets. The BBR congestion control algorithm believes that the maximum bandwidth detected under the minimum delay is the available bandwidth of the link. Using this available bandwidth to guide the sending of data packets can obtain the optimal performance on the network. Among them, in the BBR congestion control algorithm, the method of periodically draining the link and re-strategy is mainly adopted. By periodically constraining only a small number of data packets to be sent to the network, the network is prevented from entering a congested state, thereby measuring the minimum round-trip delay.
[0035] Compared to wired networks that transmit in closed light or cables, wireless networks transmit in unstable spaces and are easily affected by the environment. Therefore, in wireless networks, network jitter is prone to occur, resulting in deviations in the minimum round-trip delay detected, which leads to overestimation or underestimation of the bandwidth-delay product. If it is overestimated, it will lead to an excessively large buffer, deviating from the optimal control point, and causing the network to be congested by too many data packets. If it is underestimated, it will lead to insufficient bandwidth utilization.
[0036] In addition, the BBR congestion control algorithm is slow to update the minimum round-trip delay, which may take about 10 seconds. Path changes and condition fluctuations in the network may cause changes in the minimum round-trip delay, especially in mobile networks or cross-regional links, which can easily cause changes in the minimum round-trip delay. Not only that, during the network startup phase, the BBR congestion control algorithm may not be able to accurately measure the minimum round-trip delay because the amount of data is not enough to provide enough statistical samples. Therefore, in a network with large changes in round-trip delay, the actual bandwidth may have changed multiple times within a 10-second time window, thereby underestimating the minimum round-trip delay, which in turn leads to an underestimation of the bandwidth-delay product.
[0037] In summary, when the BBR congestion control algorithm is used to control network congestion, the congestion control effect is poor due to the influence of network jitter.
[0038] In view of this, according to an embodiment of the present disclosure, a network transmission method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0039] In this embodiment, a first network transmission method is provided, which can be used in a target network, for example, a network device in the target network. Figure 1 is a flow chart of a network transmission method according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:
[0040] Step S101, obtaining the network bandwidth and the first round-trip delay of the target network.
[0041] It should be noted that the target network includes the network between the local and the communication party.
[0042] It should be noted that, in actual operation, the network bandwidth and the first round-trip delay of the target network can be obtained in real time, or periodically. The obtained first round-trip delay includes the historically detected round-trip delay and the currently detected round-trip delay, and the number of first round-trip delays obtained is not unique.
[0043] Specifically, a network performance test tool may be used to obtain the network bandwidth of the target network, or a maximum filter may be used to detect bandwidth data of the target network, and the maximum bandwidth data may be determined as the network bandwidth.
[0044] Specifically, a network performance test tool may be used to obtain the first round trip delay of the target network. Alternatively, a large amount of data may be sent to the communication party and the round trip delay of the data transmission may be measured to obtain the first round trip delay. Alternatively, a script may be written in a programming language to measure the first round trip delay of the target network.
[0045] Step S102: Analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result.
[0046] Specifically, the jitter of the target network may be determined according to the difference between the maximum round-trip delay and the minimum round-trip delay of the first round-trip delay within a certain period of time, or the jitter of the target network may be determined according to the standard deviation of the first round-trip delay.
[0047] Step S103: If the jitter analysis result indicates that jitter occurs in the target network, a bandwidth-delay product is determined based on the statistical analysis characteristics of the network bandwidth and the second round-trip delay within a first preset time range. The second round-trip delay is used to characterize the first round-trip delay corresponding to the jitter occurring in the target network. The end time point of the first preset time range corresponds to the collection time point of the second round-trip delay.
[0048] It should be noted that the statistical analysis feature is used to characterize the macro value of the second round-trip delay within the first preset time range.
[0049] Optionally, the statistical analysis feature is a sliding average of the second round-trip delay. In addition, it can also be other statistical analysis features that can characterize the macro value of the second round-trip delay within the first preset time range, such as an exponentially weighted moving average, a time series model prediction value, etc.
[0050] It should be noted that the end time point of the first preset time range corresponds to the latest collection time point of the second round-trip delay. If the latest collection time of the second round-trip delay is t1, t1 and the time range before it can be used as the first preset time range, or t1 and the time range before it of the first time window length can be used as the first preset time range.
[0051] Specifically, the product of the statistical analysis feature and the network bandwidth is determined as the bandwidth-delay product. For example, if the statistical analysis feature is a sliding average, the product of the sliding average and the network bandwidth is determined as the bandwidth-delay product.
[0052] Step S104: performing data transmission control in the target network based on the bandwidth-delay product.
[0053] Specifically, a congestion control algorithm based on bandwidth-delay product is used to control data transmission in the target network. For example, a BBR congestion control algorithm and a bandwidth-delay product are used to control data transmission in the target network. Alternatively, a Fast Transmission Control Protocol (FAST TCP) congestion control algorithm and a bandwidth-delay product are used to control data transmission in the target network.
[0054] The network transmission method provided in this embodiment analyzes the jitter of the target network through the first round-trip delay. When the target network jitters, the bandwidth-delay product is determined based on the network bandwidth of the target network and the statistical analysis characteristics of the round-trip delay corresponding to the target network jitter. Since the statistical analysis characteristics can characterize the macro value of the round-trip delay of the target network within a certain range, the random fluctuation and noise of the round-trip delay during network jitter can be reduced, and the statistical analysis characteristics are more stable than the minimum round-trip delay. Therefore, when the target network jitters, the bandwidth-delay product is determined using the statistical analysis characteristics of the round-trip delay to control data transmission in the target network, thereby effectively improving the congestion control effect of the target network such as the wireless network, thereby improving the network transmission quality.
[0055] For ease of understanding, Figure 2 As shown in the figure, since the minimum round-trip delay is updated slowly, especially in wireless networks, network jitter is prone to occur, which leads to large changes in the round-trip delay, so that the detection of the minimum round-trip delay is inaccurate. Therefore, in wireless networks, the bandwidth delay product may be overestimated or underestimated. Taking the congestion control algorithm as the BBR congestion control algorithm as an example, Figure 2 As shown, Figure 2 The intersection point marked by the dotted line on the left is the detection point corresponding to the bandwidth-delay product. If the bandwidth-delay product is overestimated, the data that cannot be sent will accumulate in the buffer, causing the buffer to be too long, making the optimal control point enter Figure 2 The right rising area in the upper part, the network is eventually congested by too many packets. If the bandwidth-delay product is underestimated, it will lead to insufficient bandwidth utilization, making the optimal control point enter Figure 2The left rising area of the lower part. Compared with the minimum round-trip delay, the statistical analysis feature of the second round-trip delay can filter the random fluctuations and noise of the round-trip delay during network jitter to a certain extent, and has better stability. Therefore, using the statistical analysis feature of the second round-trip delay instead of the minimum round-trip delay to calculate the bandwidth-delay product can improve the accuracy of the bandwidth-delay product calculation, thereby improving the congestion control effect based on the bandwidth-delay product and improving the network transmission quality. In addition, since the calculation method of the statistical analysis feature (such as the sliding average) itself has a certain anti-interference ability, and the minimum round-trip delay is only the minimum value within a time range. In the startup phase of the target network, the minimum round-trip delay is more susceptible to jitter interference in the startup phase than the statistical analysis feature. Therefore, for the target network that jitters in the startup phase, the bandwidth-delay product calculated by using the statistical analysis feature instead of the minimum round-trip delay will be more accurate.
[0056] In this embodiment, a second network transmission method is provided, which can be used in a target network, for example, a network device in the target network. Figure 3 is a flow chart of a network transmission method according to an embodiment of the present disclosure, such as Figure 3 As shown, the process includes the following steps:
[0057] Step S201, obtaining the network bandwidth and the first round-trip delay of the target network.
[0058] Specifically, the network bandwidth in the above step S201 is obtained in the following manner: obtaining the bandwidth data of the target network collected within a third preset time range, the end time point of the third preset time range corresponds to the latest collection time point of the bandwidth data; and determining the maximum bandwidth data within the third preset time range as the network bandwidth.
[0059] Specifically, the bandwidth data of the target network is collected in real time or periodically, and the maximum value of the bandwidth data within the third preset time range is used as the maximum bandwidth data. The collected bandwidth data can be filtered using a maximum filter to obtain the maximum bandwidth data.
[0060] It is worth noting that the maximum bandwidth data represents the upper limit of the target network transmission capacity. Using the maximum bandwidth data as the network bandwidth for calculating the bandwidth-delay product can ensure the highest bandwidth utilization in theory to improve network transmission efficiency.
[0061] Step S202: Analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result.
[0062] Specifically, the above step S202 includes:
[0063] Step S2021: determining a statistical analysis feature of the first round-trip delay within a first preset time range and a fluctuation degree of the first round-trip delay compared to the corresponding statistical analysis feature.
[0064] Optionally, the fluctuation degree of the first round trip delay compared to the corresponding statistical analysis feature can be characterized by a standard deviation. In addition, other statistics that can characterize the fluctuation degree, such as variance, range, coefficient of variation, etc., can also be used to characterize it.
[0065] It should be noted that, in the above step S2021, "the first round-trip delay is compared with the corresponding statistical analysis feature", the statistical analysis feature referred to here is the statistical analysis feature of the first round-trip delay within the first preset time range.
[0066] Step S2022: Based on the comparison result between the fluctuation degree and the corresponding statistical analysis feature, the jitter condition of the target network is analyzed to obtain a jitter analysis result.
[0067] Specifically, a first preset threshold (ie, fluctuation threshold) may be determined based on the statistical analysis characteristics, and if the fluctuation degree is greater than the first preset threshold, the target network is determined to be jittery. If the fluctuation degree is less than or equal to the first preset threshold, the target network is determined to be stable.
[0068] Alternatively, based on the ratio of the statistical analysis feature to the fluctuation degree, the jitter of the target network is determined. If the ratio is greater than a second preset threshold, it is determined that the target network is jittering. If the ratio is less than or equal to the second preset threshold, it is determined that the target network is stable.
[0069] It should be noted that the first preset threshold and the second preset threshold can be determined according to actual conditions and are not limited here.
[0070] Step S203: If the jitter analysis result indicates that the target network has jitter, a bandwidth-delay product is determined based on the statistical analysis characteristics of the network bandwidth and the second round-trip delay within the first preset time range. The second round-trip delay is used to characterize the first round-trip delay corresponding to the jitter of the target network. The end time point of the first preset time range corresponds to the collection time point of the second round-trip delay. See the above step S103 for details, which will not be repeated here.
[0071] Step S204: performing data transmission control in the target network based on the bandwidth-delay product.
[0072] Specifically, the above step S204 includes:
[0073] Step S2041: determine the data transmission rate and the congestion control window size based on the bandwidth delay product.
[0074] It should be noted that the bandwidth-delay product represents the maximum amount of data that can exist simultaneously in the target network. Therefore, in order to avoid network congestion, the network device as the sender needs to determine the data transmission rate based on the bandwidth-delay product to ensure that the amount of data sent simultaneously does not exceed the bandwidth-delay product, thereby avoiding network congestion.
[0075] It should be noted that the congestion control window determines the maximum amount of data that the sender can send before receiving a confirmation signal from the network device as the receiver. Determining the size of the congestion control window based on the bandwidth-delay product can ensure that the amount of data sent by the sender does not exceed the maximum carrying capacity of the target network, thereby avoiding network congestion.
[0076] Specifically, the congestion control window size is equal to the bandwidth delay. Alternatively, the congestion control window size is smaller than the difference between the bandwidth delay product and a preset value, so that the congestion control window size is equal to or close to the bandwidth delay product.
[0077] Step S2042: Perform data transmission control in the target network based on the data transmission rate and the congestion control window size.
[0078] The network transmission method provided in this embodiment analyzes the jitter of the target network by comparing the fluctuation degree of the first round-trip delay with the statistical analysis feature. Therefore, the jitter of the target network can be discovered in time. Thus, during the network jitter, the bandwidth delay product can be calculated using the determined statistical analysis feature, which improves the accuracy of the bandwidth delay product while reducing the amount of data calculation and improving the efficiency of congestion control. The data transmission rate of the network transmission and the size of the congestion control window are determined by the bandwidth delay product to ensure that the amount of data transmitted does not exceed the maximum carrying capacity of the target network to avoid network congestion.
[0079] In some optional implementations, the statistical analysis feature is characterized by a sliding average, and the degree of fluctuation is characterized by a standard deviation. Then, the above step S2022 includes:
[0080] Step a1: if the standard deviation is greater than a first preset threshold, the jitter analysis result is determined to be that jitter occurs in the target network, and the first preset threshold is determined based on a sliding average value.
[0081] It can be understood that the sliding average is affected by historical data and usually has less numerical changes, so it can reflect the macro value within a certain time range. The standard deviation can reflect the degree of fluctuation of the actual round-trip delay above and below the sliding average. If the standard deviation is greater than the first preset threshold, it indicates that the target network has strong jitter. Therefore, the jitter analysis result is determined to be jitter in the target network.
[0082] Step a2: If the standard deviation is less than or equal to the first preset threshold, it is determined that the jitter analysis result is that the target network is stable.
[0083] It can be understood that if the standard deviation is less than or equal to the first preset threshold, it indicates that the jitter of the target network is small, or even almost non-existent, and the round trip delay of the target network is relatively stable. Therefore, the jitter analysis result is determined to be that the target network is stable.
[0084] In the network transmission method provided in this embodiment, when the target network jitters, the detected round trip delay will also jitter along with the target network jitter. Therefore, the jitter analysis result of the target network is determined based on the comparison result of the standard deviation of the round trip delay and the first preset threshold value corresponding to the sliding average value, so that the jitter situation of the target network can be quickly analyzed.
[0085] In some other optional implementations, the statistical analysis feature is characterized by a sliding average, and the degree of fluctuation is characterized by a standard deviation. Then, the above step S2022 includes:
[0086] Step b1, determining the ratio of the sliding mean to the standard deviation.
[0087] Specifically, the sliding mean is divided by the corresponding standard deviation to obtain a ratio.
[0088] Step b2: If the ratio is greater than a second preset threshold, it is determined that the jitter analysis result is that jitter occurs in the target network.
[0089] It can be understood that if the ratio is greater than the second preset threshold, it indicates that the actual round trip delay fluctuates greatly compared with the sliding average value, and therefore, the jitter analysis result is determined to be that jitter occurs in the target network.
[0090] Step b3: If the ratio is less than or equal to the second preset threshold, it is determined that the jitter analysis result is that the target network is stable.
[0091] It can be understood that if the ratio is less than or equal to the second preset threshold, it indicates that the jitter of the target network is small, or even almost non-existent, and therefore, the jitter analysis result is determined to be that the target network is stable.
[0092] Optionally, the second preset threshold is 1.2, which can be adjusted according to actual conditions, such as 1.15, 1.21, etc.
[0093] In the network transmission method provided in this embodiment, when the target network jitters, the detected round trip delay will also jitter along with the target network jitter. Therefore, based on the ratio of the sliding mean to the standard deviation, the jitter degree of the actual round trip delay can be quickly determined to quickly analyze the jitter of the target network.
[0094] In some optional implementations, the sliding average is determined by: determining a weight based on the acquisition time of the second round-trip delay, where the acquisition time is proportional to the weight. That is, the closer the acquisition time is to the current moment, the greater the weight. Determine the sliding average based on the sum of the weighted results of the second round-trip delay and the corresponding weight.
[0095] It can be understood that the algorithm of the sliding average uses the historical round-trip delay multiplied by the corresponding weight, plus the latest round-trip delay multiplied by the corresponding weight. For example, if the historically measured round-trip delay is 10 and the latest measured round-trip delay is 5, then the sliding average is equal to 10*first weight+5*second weight. Among them, the first weight is less than the second weight.
[0096] In this embodiment, a third network transmission method is provided, which can be used in a target network, for example, a network device in the target network. Figure 4 is a flow chart of a network transmission method according to an embodiment of the present disclosure, such as Figure 4 As shown, the process includes the following steps:
[0097] Step S301, obtaining the network bandwidth and the first round trip delay of the target network, see the above step S101 for details, which will not be described in detail here.
[0098] Step S302: Analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result. See the above step S202 for details, which will not be described in detail here.
[0099] Step S303a, if the jitter analysis result indicates that the target network has jitter, then based on the statistical analysis characteristics of the network bandwidth and the second round-trip delay within the first preset time range, determine the bandwidth delay product, the second round-trip delay is used to characterize the first round-trip delay corresponding to the jitter of the target network, and the end time point of the first preset time range corresponds to the collection time point of the second round-trip delay. See the above step S103 for details, which will not be repeated here.
[0100] Step S303b: If the jitter analysis result indicates that the target network is stable, a bandwidth-delay product is determined based on the minimum round-trip delay of the first round-trip delay within the second preset time range and the network bandwidth, and the end time point of the second preset time range corresponds to the collection time point of the first round-trip delay.
[0101] Specifically, a method of periodically draining the link and then measuring can be used to send a small number of data packets to the target network through periodic constraints to prevent the target network from entering a congested state, thereby measuring the minimum round-trip delay.
[0102] Specifically, the bandwidth-delay product is equal to the product of the minimum round-trip delay and the network bandwidth.
[0103] Step S304: Controlling data transmission in the target network based on the bandwidth delay product. See the above step S204 for details, which will not be described in detail here.
[0104] The network transmission method provided in this embodiment determines the bandwidth-delay product based on the statistical analysis characteristics of the second round-trip delay when the target network jitters. When the target network is stable, the bandwidth-delay product is determined based on the minimum round-trip delay of the first round-trip delay. Therefore, it is possible to fully utilize available bandwidth resources while improving the accuracy of congestion control, and adapt to network changes more quickly when the network is stable, so as to improve network performance and enhance network stability.
[0105] It is worth noting that in addition to using statistical analysis features instead of the minimum round-trip delay to calculate the bandwidth-delay product, the accuracy of congestion control can also be improved by reducing the detection period of the minimum round-trip delay, for example, reducing the detection period from 10 seconds to 1 second.
[0106] As a specific application example, a target program is installed on a network device of a wireless network, and the target program is used to perform data transmission control in a target network based on the network transmission method disclosed in the present invention. In the case of jitter in the target network, a relatively stable statistical analysis feature, such as a sliding average, is used to calculate the bandwidth-delay product. Therefore, the impact of network jitter on the bandwidth-delay product calculation can be reduced to improve the accuracy of the bandwidth-delay product calculation. At the same time, when the target network is stable, the minimum round-trip delay is used to calculate the bandwidth-delay product. Therefore, the available bandwidth resources can be fully utilized and network changes can be adapted more quickly.
[0107] The network transmission method disclosed in the present invention is used to test the actual network, and the total download time of network data is significantly optimized, the total download time is reduced by 16% to 18%, the packet loss rate is reduced by 8% to 10%, the data transmission rate is increased by 6% to 8%, and the congestion control window is increased by 2% to 7%. It can be seen that the network transmission method disclosed in the present invention can improve the quality of network transmission to a certain extent.
[0108] In this embodiment, a network transmission device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0109] This embodiment provides a network transmission device, such as Figure 5 As shown, including:
[0110] A data acquisition module 401 is used to acquire the network bandwidth and the first round-trip delay of the target network;
[0111] A data analysis module 402 is used to analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result;
[0112] The jitter processing module 403 is used to determine the bandwidth-delay product based on the network bandwidth and the statistical analysis characteristics of the second round-trip delay within the first preset time range if the jitter analysis result indicates that the target network has jitter, the second round-trip delay is used to indicate the first round-trip delay corresponding to the jitter of the target network, and the end time point of the first preset time range corresponds to the collection time point of the second round-trip delay;
[0113] The network transmission module 404 is used to control data transmission in the target network based on the bandwidth-delay product.
[0114] In some optional implementations, the data acquisition module 401 includes:
[0115] A maximum bandwidth acquisition unit, configured to acquire bandwidth data of a target network collected within a third preset time range, wherein an end time point of the third preset time range corresponds to a latest collection time point of the bandwidth data;
[0116] The network bandwidth determining unit is used to determine the maximum bandwidth data within a third preset time range as the network bandwidth.
[0117] In some optional implementations, the data analysis module 402 includes:
[0118] A first analysis unit, configured to determine a statistical analysis feature of the first round-trip delay within a first preset time range and a fluctuation degree of the first round-trip delay compared to the corresponding statistical analysis feature;
[0119] The second analysis unit is used to analyze the jitter situation of the target network based on the comparison result between the fluctuation degree and the corresponding statistical analysis feature to obtain the jitter analysis result.
[0120] In some optional embodiments, the statistical analysis feature is characterized by a sliding average, and the degree of fluctuation is characterized by a standard deviation. The second analysis unit includes:
[0121] A first numerical analysis subunit, configured to determine that the jitter analysis result is that jitter occurs in the target network if the standard deviation is greater than a first preset threshold, wherein the first preset threshold is determined based on a sliding average;
[0122] The second numerical analysis subunit is used to determine that the jitter analysis result is that the target network is stable if the standard deviation is less than or equal to the first preset threshold.
[0123] In some other optional embodiments, the statistical analysis feature is characterized by a sliding average, and the degree of fluctuation is characterized by a standard deviation. The second analysis unit includes:
[0124] A ratio calculation subunit, used to determine the ratio of the sliding mean to the standard deviation;
[0125] A first ratio analysis subunit, configured to determine that a jitter analysis result is that jitter occurs in the target network if the ratio is greater than a second preset threshold;
[0126] The second ratio analysis subunit is configured to determine that the jitter analysis result is that the target network is stable if the ratio is less than or equal to the second preset threshold.
[0127] In some optional implementations, the network transmission device of the present disclosure further includes:
[0128] The data processing module is used to determine the bandwidth-delay product based on the minimum round-trip delay of the first round-trip delay within a second preset time range and the network bandwidth if the jitter analysis result indicates that the target network is stable, and the end time point of the second preset time range corresponds to the collection time point of the first round-trip delay.
[0129] In some optional implementations, the network transmission module 404 includes:
[0130] A parameter calculation unit, used for determining a data transmission rate and a congestion control window size based on a bandwidth delay product;
[0131] The network transmission unit is used to control data transmission in the target network based on the data transmission rate and the congestion control window size.
[0132] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0133] The network transmission device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0134] The present disclosure also provides an electronic device having the above Figure 5 The network transmission device shown.
[0135] See also Figure 6 , Figure 6 is a structural block diagram of an electronic device provided by an optional embodiment of the present disclosure, such as Figure 6As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0136] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0137] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0138] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0139] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0140] The electronic device further comprises a communication interface 30 for the electronic device to communicate with other devices or a communication network.
[0141] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0142] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0143] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A network transmission method, characterized in that: The method comprises: Get the network bandwidth and first round trip delay of the target network; Analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result; If the jitter analysis result indicates that jitter occurs in the target network, a bandwidth-delay product is determined based on statistical analysis characteristics of the network bandwidth and the second round-trip delay within a first preset time range, where the second round-trip delay is used to characterize the first round-trip delay corresponding to when jitter occurs in the target network, and an end time point of the first preset time range corresponds to a collection time point of the second round-trip delay; Data transmission control is performed in the target network based on the bandwidth-delay product.
2. The method according to claim 1, characterized in that The analyzing the jitter condition of the target network based on the first round-trip delay to obtain a jitter analysis result includes: Determining a statistical analysis feature of the first round-trip delay within the first preset time range and a fluctuation degree of the first round-trip delay compared to the corresponding statistical analysis feature; Based on the comparison result between the fluctuation degree and the corresponding statistical analysis feature, the jitter condition of the target network is analyzed to obtain the jitter analysis result.
3. The method according to claim 2, characterized in that The statistical analysis feature is characterized by a sliding average, and the fluctuation degree is characterized by a standard deviation; the jitter condition of the target network is analyzed based on the comparison result of the fluctuation degree and the corresponding statistical analysis feature to obtain the jitter analysis result, including: If the standard deviation is greater than a first preset threshold, determining that the jitter analysis result is that jitter occurs in the target network, the first preset threshold being determined based on the sliding average value; If the standard deviation is less than or equal to the first preset threshold, it is determined that the jitter analysis result is that the target network is stable.
4. The method according to claim 2, characterized in that: The statistical analysis feature is characterized by a sliding average, and the fluctuation degree is characterized by a standard deviation; the jitter condition of the target network is analyzed based on the comparison result of the fluctuation degree and the corresponding statistical analysis feature to obtain the jitter analysis result, including: determining a ratio of the sliding mean to the standard deviation; If the ratio is greater than a second preset threshold, determining that the jitter analysis result is that jitter occurs in the target network; If the ratio is less than or equal to the second preset threshold, it is determined that the jitter analysis result is that the target network is stable.
5. The method according to claim 1, characterized in that The method further comprises: If the jitter analysis result indicates that the target network is stable, the bandwidth-delay product is determined based on the minimum round-trip delay of the first round-trip delay within a second preset time range and the network bandwidth, and the end time point of the second preset time range corresponds to the collection time point of the first round-trip delay.
6. The method according to claim 1, characterized in that The network bandwidth is obtained in the following way: Acquire bandwidth data of the target network collected within a third preset time range, where an end time point of the third preset time range corresponds to a latest collection time point of the bandwidth data; The maximum bandwidth data within the third preset time range is determined as the network bandwidth.
7. The method according to claim 1, characterized in that The performing data transmission control in the target network based on the bandwidth-delay product comprises: Determining a data transmission rate and a congestion control window size based on the bandwidth delay product; Data transmission control is performed in the target network based on the data transmission rate and the congestion control window size.
8. A network transmission device, characterized in that: The device comprises: A data acquisition module, used to acquire the network bandwidth and the first round-trip delay of the target network; A data analysis module, configured to analyze the jitter of the target network based on the first round-trip delay to obtain a jitter analysis result; a jitter processing module, configured to determine a bandwidth-delay product based on the statistical analysis characteristics of the network bandwidth and the second round-trip delay within a first preset time range if the jitter analysis result indicates that the target network has jitter, the second round-trip delay being used to indicate the first round-trip delay corresponding to the jitter of the target network, and the end time point of the first preset time range corresponding to the collection time point of the second round-trip delay; A network transmission module is used to control data transmission in the target network based on the bandwidth-delay product.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the network transmission method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the network transmission method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the network transmission method according to any one of claims 1 to 7.