CN109525447B - Method and device for adjusting network transmission bandwidth and electronic equipment - Google Patents
Method and device for adjusting network transmission bandwidth and electronic equipment Download PDFInfo
- Publication number
- CN109525447B CN109525447B CN201910010772.6A CN201910010772A CN109525447B CN 109525447 B CN109525447 B CN 109525447B CN 201910010772 A CN201910010772 A CN 201910010772A CN 109525447 B CN109525447 B CN 109525447B
- Authority
- CN
- China
- Prior art keywords
- packet loss
- loss event
- network transmission
- loop
- transmission bandwidth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0896—Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method, a device and electronic equipment for adjusting network transmission bandwidth, which are used for solving the problems that network resources are not fully utilized, network congestion is caused and the data transmission efficiency is low in the prior art. The method comprises the following steps: determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loop back time; determining an available network transmission bandwidth according to the first network transmission bandwidth, a first packet loss event rate threshold and a first loopback time threshold; and in response to the first set condition being met, adjusting the network transmission bandwidth according to the available network transmission bandwidth.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a network transmission bandwidth, and an electronic device.
Background
In the network transmission process, the network transmission bandwidth changes with time, if the network transmission bandwidth used in data transmission is less than the available network transmission bandwidth, the data transmission speed is slow, and the available transmission bandwidth is wasted, and if the network transmission bandwidth used in data transmission is greater than the available network transmission bandwidth, network congestion is caused, and packet loss or delay is caused.
In the prior art, in order to fully utilize the available network transmission bandwidth for data transmission and not cause congestion, a transmission Control protocol-Friendly Rate Control (TCP-Friendly Rate Control, TFRC) algorithm is generally adopted, specifically, a receiving end measures a packet loss event Rate p, the packet loss event Rate p and a timestamp are fed back to a sending end, the sending end measures a Round-Trip Time (RTT) according to the received timestamp, the sending end substitutes the packet loss event Rate p and the Round-Trip Time RTT into a throughput equation of the TFRC, a network transmission bandwidth is obtained through calculation, and the sending end adjusts a data sending code Rate according to the network transmission bandwidth. Because the TFRC algorithm calculates the bandwidth based on the RTT and the packet loss event rate at the current time, when network jitter occurs and the network becomes poor, an over-excited response may exist, the calculated network output bandwidth is far lower than the actually required network transmission bandwidth, when the network becomes good, the network transmission bandwidth cannot be recovered in time, the network resource is not fully utilized, and network congestion may be caused, and the data transmission efficiency is low.
In summary, how to accurately determine the network transmission bandwidth, avoid network congestion, and improve the data transmission efficiency is a problem that needs to be solved at present.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and an electronic device for adjusting a network transmission bandwidth, so as to solve the problems in the prior art that network resources are not fully utilized, network congestion occurs, and data transmission efficiency is low.
According to a first aspect of the embodiments of the present invention, there is provided a method for adjusting network transmission bandwidth, including: determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loop back time; determining an available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold and the first loopback time threshold; and in response to the first set condition being met, adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In an embodiment, the determining the first network transmission bandwidth according to the received history record specifically includes: determining a high-impact fallback waveform according to the historical network transmission bandwidth; determining at least one high-impact falling point according to the high-impact falling waveform, wherein the high-impact falling point is the highest point in a set interval; determining an average of the at least one overshoot-and-drop point as the first network transmission bandwidth.
In one embodiment, before determining the available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold, and the first loopback time threshold, the method further includes: and determining the first packet loss event rate threshold according to the historical packet loss event rate, and determining the first loop back time threshold according to the historical loop back time.
In an embodiment, the determining the first packet loss event rate threshold specifically includes: determining an initial packet loss event rate threshold according to the historical packet loss event rate; and responding to a second set condition to be triggered, adjusting the initial packet loss event rate threshold according to a first set value, and determining the first packet loss event rate threshold.
In an embodiment, the second setting condition is that a difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record; or, the second setting condition is that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record.
In an embodiment, the adjusting, in response to the second setting condition and according to a first setting value, the initial packet loss event rate threshold to determine the first packet loss event rate threshold specifically includes: in response to that the difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is increased by the first set value; and determining the initial packet loss event rate threshold added with the first setting value as the first packet loss event rate threshold.
In an embodiment, in response to the second setting condition, adjusting the initial packet loss event rate threshold according to a first setting value, and determining the first packet loss event rate threshold specifically further includes: in response to that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is decreased by the first set value; and determining the initial packet loss event rate threshold value for reducing the first set value as the first packet loss event rate threshold value.
In an embodiment, the determining the first loop back time threshold specifically includes: determining an initial loop time threshold according to the historical loop time; and in response to a third set condition being triggered, adjusting the initial loop-back time threshold according to a second set value, and determining the first loop-back time threshold.
In one embodiment, the third setting condition is that a difference between the number of loop back times in the history greater than the initial loop back time threshold minus the number of loop back times in the history less than the initial loop back time threshold is greater than half of the total number of loop back times in the history; or, the third setting condition is that a difference value obtained by subtracting the number of the loop time in the history record, which is smaller than the initial loop time threshold value, from the number of the loop time in the history record, which is larger than the initial loop time threshold value, is larger than half of the total number of the loop time in the history record.
In one embodiment, the adjusting the initial loop-back time threshold according to a second setting value in response to a third setting condition to determine the first loop-back time threshold specifically includes: in response to the difference between the number of loop times in the history greater than the initial loop time threshold minus the number of loop times in the history less than the loop time threshold being greater than half of the total number of loop times in the history, increasing the initial loop time threshold by the second set value; determining the initial loop back time threshold increased by the second setpoint as the first loop back time threshold.
In one embodiment, the adjusting the initial loop-back time threshold according to a second set value in response to a third set condition to determine the first loop-back time threshold specifically further includes: in response to a difference between the number of loop times in the history that are less than the initial loop time threshold minus the number of loop times in the history that are greater than the initial loop time threshold being greater than half of the total number of loop times in the history, decreasing the initial loop time threshold by the first set value; determining the initial loop back time threshold that decreases by the second setpoint as the first loop back time threshold.
In one embodiment, the first setting condition is that the average loop-back time is greater than the first loop-back time threshold within a set time, or the packet loss event rate is greater than a first packet loss event rate threshold within a set time; the first setting condition is that the average loop back time is smaller than the first loop back time threshold value within a setting time, and the packet loss event rate is smaller than the first packet loss event rate threshold value within the setting time.
In an embodiment, the adjusting the network transmission bandwidth according to the available network transmission bandwidth in response to the first setting condition being met specifically includes:
and if the available network transmission bandwidth is smaller than the currently used network transmission bandwidth, responding to the condition that the average loop time is larger than the first loop time threshold value within the set time or the packet loss event rate is larger than the first packet loss event rate threshold value within the set time, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In an embodiment, the adjusting the network transmission bandwidth according to the available network transmission bandwidth in response to the first setting condition being met specifically includes: and if the available network transmission bandwidth is larger than the network transmission bandwidth which is currently used, responding to the condition that the average loop time in the set time is smaller than the first loop time threshold and the packet loss event rate in the set time is smaller than the first packet loss event rate threshold, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In one embodiment, after determining the available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold, and the first loopback time threshold, the method further includes: and outputting the last network transmission bandwidth in response to the first set condition not being met.
In one embodiment, after determining the available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold, and the first loopback time threshold, the method further includes: updating the historical network transmission bandwidth according to the available network transmission bandwidth; and updating the initial packet loss event rate threshold according to a second loop time threshold, wherein the second loop time threshold is an average value of at least one corresponding loop time before the at least one overshoot loop-back point.
In one embodiment, before outputting the available network transmission bandwidth in response to the first set condition, the method further includes: in response to the first network transmission bandwidth being unable to be determined according to the received history, increasing the average value of all the historical network transmission bandwidths in the history by a third set value, and determining the average value of all the historical network transmission bandwidths in the history increased by the third set value as the available network transmission bandwidth.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for adjusting a network transmission bandwidth, including: the first determining unit is used for determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loopback time; a second determining unit, configured to determine an available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold, and the first loopback time threshold; and the output unit is used for responding to the satisfaction of a first set condition and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In an embodiment, the first determining unit is specifically configured to: determining a high-impact fallback waveform according to the historical network transmission bandwidth; determining at least one high-impact falling point according to the high-impact falling waveform, wherein the high-impact falling point is the highest point in a set interval; determining an average of the at least one overshoot-and-drop point as the first network transmission bandwidth.
In one embodiment, the apparatus further comprises: a third determining unit, configured to determine the first packet loss event rate threshold according to the historical packet loss event rate, and determine the first loopback time threshold according to the historical loopback time.
In an embodiment, the third determining unit is specifically configured to: determining an initial packet loss event rate threshold according to the historical packet loss event rate; and responding to a second set condition to be triggered, adjusting the initial packet loss event rate threshold according to a first set value, and determining the first packet loss event rate threshold.
In an embodiment, the second setting condition is that a difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record; or, the second setting condition is that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record.
In an embodiment, the third determining unit is further specifically configured to: in response to that the difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is increased by the first set value; and determining the initial packet loss event rate threshold added with the first setting value as the first packet loss event rate threshold.
In an embodiment, the third determining unit is further specifically configured to: in response to that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is decreased by the first set value; and determining the initial packet loss event rate threshold value which is decreased by the first set value as the first packet loss event rate threshold value.
In an embodiment, the third determining unit is specifically configured to: determining an initial loop time threshold according to the historical loop time; and in response to a third set condition being triggered, adjusting the initial loop-back time threshold according to a second set value, and determining the first loop-back time threshold.
In one embodiment, the third setting condition is that a difference between the number of loop back times in the history greater than the initial loop back time threshold minus the number of loop back times in the history less than the initial loop back time threshold is greater than half of the total number of loop back times in the history; or, the third setting condition is that a difference value obtained by subtracting the number of the loop time in the history record, which is smaller than the initial loop time threshold value, from the number of the loop time in the history record, which is larger than the initial loop time threshold value, is larger than half of the total number of the loop time in the history record.
In an embodiment, the third determining unit is further specifically configured to: in response to the difference between the number of loop times in the history greater than the initial loop time threshold minus the number of loop times in the history less than the loop time threshold being greater than half of the total number of loop times in the history, increasing the initial loop time threshold by the second set value; determining the initial loop back time threshold incremented by the second setpoint as the first loop back time threshold.
In an embodiment, the third determining unit is further specifically configured to: in response to a difference between the number of loop times in the history that are less than the initial loop time threshold minus the number of loop times in the history that are greater than the initial loop time threshold being greater than half of the total number of loop times in the history, decreasing the initial loop time threshold by the first set value; determining the initial loop back time threshold that decreases by the second setpoint as the first loop back time threshold.
In one embodiment, the first setting condition is that the average loop-back time is greater than the first loop-back time threshold within a set time, or the packet loss event rate is greater than a first packet loss event rate threshold within a set time; the first setting condition is that the average loop back time is smaller than the first loop back time threshold value within a setting time, and the packet loss event rate is smaller than the first packet loss event rate threshold value within the setting time.
In one embodiment, the output unit is specifically configured to: and if the available network transmission bandwidth is smaller than the network transmission bandwidth which is currently used, responding to the condition that the average loop time is larger than the first loop time threshold value within the set time or the packet loss event rate is larger than the first packet loss event rate threshold value within the set time, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In one embodiment, the output unit is further specifically configured to: and if the available network transmission bandwidth is larger than the network transmission bandwidth which is currently used, responding to the condition that the average loop time in the set time is smaller than the first loop time threshold and the packet loss event rate in the set time is smaller than the first packet loss event rate threshold, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In one embodiment, the output unit is further configured to: and outputting the currently used network transmission bandwidth in response to the first set condition not being met.
In one embodiment, the apparatus further comprises an update unit: for updating the historical network transmission bandwidth according to the available network transmission bandwidth; and updating the initial loop time rate threshold according to a second loop time threshold, wherein the second loop time threshold is the mean value of at least one corresponding loop time before the at least one overshoot loop-back point.
In one embodiment, the apparatus further includes a fourth determination unit configured to, in response to a first network transmission bandwidth being not determined from the received history, increase an average of all historical network transmission bandwidths in the history by a third setting value, and determine the average of all historical network transmission bandwidths in the history increased by the third setting value as an available network transmission bandwidth.
According to a third aspect of embodiments of the present invention, there is provided an electronic device comprising a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first aspect or any possibility of the first aspect.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the method according to the first aspect or any possibility of the first aspect.
The embodiment of the invention has the beneficial effects that: the method comprises the steps of firstly determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loop back time, then determining available network transmission bandwidth according to the first network transmission bandwidth, a first packet loss event rate threshold and a first loop back time threshold, and finally responding to the condition that a first set condition is met and adjusting the network transmission bandwidth according to the available network transmission bandwidth. By the method, the available network transmission bandwidth is determined through the historical records, the network transmission bandwidth can be accurately determined, network resources are fully utilized, the data transmission efficiency is improved, the network transmission bandwidth can be smoothed through the first setting condition, the network transmission bandwidth is stably output, over-excitation reaction is avoided, and network congestion is avoided.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
fig. 1 is a waveform diagram of a network transmission bandwidth overshoot and undershoot provided by an embodiment of the present invention;
fig. 2 is a flowchart of a method for adjusting network transmission bandwidth according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for adjusting network transmission bandwidth according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an apparatus for adjusting network transmission bandwidth according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present application may be practiced without these specific details. Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In describing the invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and not for purposes of order, nor are they to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
The method for adjusting network transmission bandwidth provided by the present invention, as shown in fig. 1 specifically, includes:
step S100, determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate (loss rate) and historical loopback time.
Optionally, the history record further includes a Time stamp (Time stamp), where the network transmission bandwidth may also be referred to as a code rate, a bit rate (bit rate), and a Round-Trip Time (RTT).
Specifically, according to the historical network transmission bandwidth, a high-impulse fallback waveform is determined, at least one high-impulse fallback point is determined according to the high-impulse fallback waveform, and the average value of the at least one high-impulse fallback point is determined as the first network transmission bandwidth.
For example, suppose that the history record includes 32 Real-time Transport Control Protocol (RTCP) messages, the interval time of the RTCP messages is 1S, that is, the past 32S history record is recorded, the overshoot-undershoot waveform shown in fig. 2 is determined according to the 32 historical network transmission bandwidths in the 32 history records, and suppose that 7 overshoot-undershoot points can be determined, and the average value of the 7 overshoot-undershoot points is determined as the first network transmission bandwidth.
Step S101, determining an available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold and the first loopback time threshold.
Specifically, according to the determined first network transmission bandwidth, the first network transmission bandwidth is increased or decreased in combination with the first packet loss event rate threshold and the first loopback time threshold, and the available network transmission bandwidth is determined.
And step S102, responding to the first setting condition being met, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
Specifically, the first setting condition is that the average loop-back time is greater than the first loop-back time threshold within a setting time, or the packet loss event rate is greater than a first packet loss event rate threshold within a setting time; the first setting condition is that the average loop back time is smaller than the first loop back time threshold value within a setting time, and the packet loss event rate is smaller than the first packet loss event rate threshold value within the setting time. And if the available network transmission bandwidth is smaller than the currently used network transmission bandwidth, responding to the condition that the average loop time is larger than the first loop time threshold value within the set time or the packet loss event rate is larger than the first packet loss event rate threshold value within the set time, and adjusting the network transmission bandwidth according to the available network transmission bandwidth. And if the available network transmission bandwidth is larger than the network transmission bandwidth which is currently used, responding to the condition that the average loop time in the set time is smaller than the first loop time threshold and the packet loss event rate in the set time is smaller than the first packet loss event rate threshold, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
For example, assuming that the available network transmission bandwidth is b, the network transmission bandwidth currently being used is a, if b < a, the first setting condition is that the average round trip time RTT in the past 3s is greater than a first round trip time threshold (RTT threshold), or the average packet loss event rate in the past 3s is greater than a first packet loss event rate threshold (loss rate threshold), the output available network transmission bandwidth b is the current available network transmission bandwidth is decreased relative to the last output available network transmission bandwidth; assuming that the available network transmission bandwidth is b, the currently used network transmission bandwidth is a, if b > a, the first setting condition is that the average round trip time RTT in the past 3s is smaller than a first round trip time threshold (RTT threshold), or the average packet loss event rate in the past 3s is smaller than a first packet loss event rate threshold (loss rate threshold), the output available network transmission bandwidth is b, that is, the current available network transmission bandwidth is adjusted upward relative to the last output available network transmission bandwidth. In the embodiment of the invention, an upper limit value of the available network transmission bandwidth is also set, and when the upper limit value is reached, the upper limit value is kept and is not adjusted any more even if the calculated available network transmission bandwidth is larger than the upper limit value.
Optionally, in response to that the first set condition is not satisfied, outputting the last network transmission bandwidth.
In the embodiment of the invention, a first network transmission bandwidth is determined according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loop back time, then an available network transmission bandwidth is determined according to the first network transmission bandwidth, a first packet loss event rate threshold and a first loop back time threshold, and finally the network transmission bandwidth is adjusted according to the available network transmission bandwidth in response to a first set condition being met. By the method, the available network transmission bandwidth is determined through the historical records, the network transmission bandwidth can be accurately determined, network resources are fully utilized, the data transmission efficiency is improved, the network transmission bandwidth can be smoothed through the first setting condition, the network transmission bandwidth is stably output, over-excitation reaction is avoided, and network congestion is avoided.
Optionally, before the step S101, the method further includes determining the first packet loss event rate threshold according to the historical packet loss event rate, and determining the first loop back time threshold according to the historical loop back time.
Specifically, the first packet loss event rate threshold and the first loop back time threshold are determined through the following two specific embodiments.
In the first embodiment, an initial packet loss event rate threshold is determined according to the historical packet loss event rate, and the first packet loss event rate threshold is determined by adjusting the initial packet loss event rate threshold according to a first set value in response to a second set condition.
For example, the initial packet loss event rate threshold may be an average of historical packet loss event rates in 32 historical records, and the first packet loss event rate threshold is determined by adjusting the initial packet loss event rate threshold according to a first set value according to a second set condition, specifically by two ways:
in a first mode, in response to that the difference value obtained by subtracting the number, in the history record, of the packet loss event rate greater than the initial packet loss event rate threshold from the number, in the history record, of the packet loss event rate less than the initial packet loss event rate threshold is greater than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is increased by the first set value; and determining the initial packet loss event rate threshold added with the first setting value as the first packet loss event rate threshold. The second setting condition is that the difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record. The second setting condition may also be referred to as a learning rule of a packet loss event rate change trend, the first packet loss event rate threshold may be set in an interval from v (ls) to v (le), the first setting value is δ, and v (ls), v (le), and δ may be determined according to an actual situation, and specific values are not limited in the present invention.
In a second mode, in response to that the difference between the quantity of the packet loss event rate in the history record smaller than the initial packet loss event rate threshold and the quantity of the packet loss event rate in the history record larger than the initial packet loss event rate threshold is larger than half of the total quantity of the packet loss event rates in the history record, the initial packet loss event rate threshold is reduced by the first set value; and determining the initial packet loss event rate threshold value which is decreased by the first set value as the first packet loss event rate threshold value. The second setting condition is that the difference between the quantity of the packet loss event rate in the history record smaller than the initial packet loss event rate threshold and the quantity of the packet loss event rate in the history record larger than the initial packet loss event rate threshold is larger than half of the total quantity of the packet loss event rates in the history record. The second condition may also be referred to as a learning rule of a packet loss event rate change trend, the first packet loss event rate threshold may be set in an interval from v (ls) to v (le), the first set value is δ, and v (ls), v (le), and δ may be determined according to an actual situation, and specific values are not limited in the present invention.
In a second specific embodiment, an initial loop time threshold is determined according to the historical loop time, and the initial loop time threshold is adjusted according to a second set value in response to a third set condition to determine the first loop time threshold.
For example, the initial loop time threshold may be an average of historical loop times in 32 historical records, and the first loop time threshold is determined by adjusting the initial loop time threshold according to a second set value and a third set condition, specifically by two ways:
in a third mode, in response to that the difference value obtained by subtracting the number of the loop time in the history record from the number of the loop time in the history record, which is greater than the initial loop time threshold, and the number of the loop time in the history record, which is less than the loop time threshold, is greater than half of the total number of the loop time in the history record, the initial loop time threshold is increased by the second set value; determining the initial loop back time threshold increased by the second setpoint as the first loop back time threshold. The third setting condition is that the difference between the number of the loop time in the history record which is greater than the initial loop time threshold and the number of the loop time in the history record which is less than the initial loop time threshold is greater than half of the total number of the loop time in the history record. The third setting condition may also be referred to as a learning rule of a loop time variation trend, the first loop time threshold may be set in an interval from v (rs) to v (re), the second setting value is δ ', and v (rs), v (re), and δ' may be determined according to actual conditions, and specific values are not limited in the present invention.
Responding to the difference value of the number of the loop time in the historical record smaller than the initial loop time threshold minus the number of the loop time in the historical record larger than the initial loop time threshold larger than a half of the total number of the loop time in the historical record, wherein the initial loop time threshold is reduced by the first set value; determining the initial loop back time threshold that decreases by the second setpoint as the first loop back time threshold. The third setting condition is that the difference between the number of the loop time in the history record smaller than the initial loop time threshold and the number of the loop time in the history record larger than the initial loop time threshold is larger than half of the total number of the loop time in the history record. The third setting condition may also be referred to as a learning rule of a loop time variation trend, the first loop time threshold may be set in an interval from v (rs) to v (re), the second setting value is δ ', and v (rs), v (re), and δ' may be determined according to actual conditions, and specific values are not limited in the present invention.
In this embodiment of the present invention, after step S101, the method further includes: updating the historical network transmission bandwidth according to the available network transmission bandwidth; and updating the initial loop time threshold according to a second loop time threshold, wherein the second loop time threshold is the mean value of at least one corresponding loop time before the at least one rush-up loop-back point.
For example, assuming that there are 7 impulse high drop points, and thus there are 7 loop times before the impulse high drop point, the average of the 7 loop times is determined as the second loop time threshold.
In this embodiment of the present invention, before the step S102, the method further includes: in response to the first network transmission bandwidth being unable to be determined according to the received history, increasing the average value of all the historical network transmission bandwidths in the history by a third set value, and determining the average value of all the historical network transmission bandwidths in the history increased by the third set value as the available network transmission bandwidth.
For example, if the undershoot waveform cannot be determined according to the received history, that is, the first network transmission bandwidth cannot be determined according to the undershoot waveform, and the current network transmission bandwidth is maintained at a set value, or the current network transmission bandwidth is lower than the average value of all the historical network transmission bandwidths, a third set value δ ″ is added according to the average value of all the historical network transmission bandwidths in the history, and the determined value is the available network transmission bandwidth, where δ ″ is determined according to an actual situation, which is not limited by the present invention.
The following is a method for adjusting network transmission bandwidth according to an embodiment of the present invention, which is specifically shown in fig. 3.
And step S300, receiving the RTCP message.
Step S301, determining the received RTCP message as a history record.
Step S302, determining a first network transmission bandwidth, a first packet loss event rate threshold, and a first loopback time threshold according to the history, if the first network transmission bandwidth can be determined through the history, performing step S303, and if the first network transmission bandwidth cannot be determined through the history, performing step S304.
Step S303, determining an available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold, and the first loopback time threshold.
And step S304, determining the available network transmission bandwidth according to the average value of the historical network transmission bandwidths in the historical records and a third set value delta'.
Step S305, determining the available network transmission bandwidth determined in step S303 or step S304 according to a first setting condition, if the available network transmission bandwidth meets the first setting condition, executing step S306, and if the available network transmission bandwidth does not meet the first setting condition, ending the processing.
Step S306, adjusting the network transmission bandwidth according to the available network transmission bandwidth, and outputting the available network transmission bandwidth.
In this embodiment of the present invention, the available network transmission bandwidth determined in step S303 or step S304 is updated to the history.
Fig. 4 is a schematic diagram of an apparatus for adjusting a network transmission bandwidth according to an embodiment of the present invention. As shown in fig. 4, the apparatus for calculating available network transmission bandwidth of the present embodiment includes: a first determining unit 41, a second determining unit 42 and an output unit 43. The first determining unit 41 is configured to determine a first network transmission bandwidth according to a received history record, where the history record includes a historical network transmission bandwidth, a historical packet loss event rate, and a historical loopback time; a second determining unit 42, configured to determine an available network transmission bandwidth according to the first network transmission bandwidth, the first packet loss event rate threshold, and the first loopback time threshold; and an output unit 43, configured to adjust the network transmission bandwidth according to the available network transmission bandwidth in response to the first setting condition being satisfied.
Optionally, the first determining unit is specifically configured to: determining a high-impact fallback waveform according to the historical network transmission bandwidth; determining at least one rush height falling point according to the rush height falling waveform, wherein the rush height falling point is the highest point in a set interval; determining an average of the at least one overshoot-and-drop point as the first network transmission bandwidth.
In one embodiment, the apparatus further comprises: a third determining unit 44, configured to determine the first packet loss event rate threshold according to the historical packet loss event rate, and determine the first loopback time threshold according to the historical loopback time.
In an embodiment, the third determining unit is specifically configured to: determining an initial packet loss event rate threshold according to the historical packet loss event rate; and responding to the triggering of a second set condition, adjusting the initial packet loss event rate threshold according to a first set value, and determining the first packet loss event rate threshold.
In an embodiment, the second setting condition is that a difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record; or, the second setting condition is that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record.
In an embodiment, the third determining unit is further specifically configured to: in response to that the difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is increased by the first set value; and determining the initial packet loss event rate threshold added with the first setting value as the first packet loss event rate threshold.
In an embodiment, the third determining unit is further specifically configured to: in response to that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is decreased by the first set value; and determining the initial packet loss event rate threshold value which is decreased by the first set value as the first packet loss event rate threshold value.
In an embodiment, the third determining unit is specifically configured to: determining an initial loop time threshold according to the historical loop time; and in response to a third set condition being triggered, adjusting the initial loop-back time threshold according to a second set value, and determining the first loop-back time threshold.
In one embodiment, the third setting condition is that a difference between the number of loop back times in the history greater than the initial loop back time threshold minus the number of loop back times in the history less than the initial loop back time threshold is greater than half of the total number of loop back times in the history; or, the third setting condition is that a difference value obtained by subtracting the number of the loop time in the history record, which is smaller than the initial loop time threshold value, from the number of the loop time in the history record, which is larger than the initial loop time threshold value, is larger than half of the total number of the loop time in the history record.
In an embodiment, the third determining unit is further specifically configured to: in response to the difference between the number of loop times in the history greater than the initial loop time threshold minus the number of loop times in the history less than the loop time threshold being greater than half of the total number of loop times in the history, increasing the initial loop time threshold by the second set value; determining the initial loop back time threshold incremented by the second setpoint as the first loop back time threshold.
In an embodiment, the third determining unit is further specifically configured to: in response to the difference between the number of loop times in the history record less than the initial loop time threshold and the number of loop times in the history record greater than the initial loop time threshold being greater than half of the total number of loop times in the history record, decreasing the initial loop time threshold by the first set value; determining the initial loop back time threshold that decreases by the second setpoint as the first loop back time threshold.
In one embodiment, the first setting condition is that the average loop-back time is greater than the first loop-back time threshold within a set time, or the packet loss event rate is greater than a first packet loss event rate threshold within a set time; the first setting condition is that the average loop back time is smaller than the first loop back time threshold value within a setting time, and the packet loss event rate is smaller than the first packet loss event rate threshold value within the setting time.
In one embodiment, the output unit is specifically configured to: and if the available network transmission bandwidth is smaller than the currently used network transmission bandwidth, responding to the condition that the average loop time is larger than the first loop time threshold value within the set time or the packet loss event rate is larger than the first packet loss event rate threshold value within the set time, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In an embodiment, the output unit is further specifically configured to: and if the available network transmission bandwidth is larger than the network transmission bandwidth which is currently used, responding to the condition that the average loop time in the set time is smaller than the first loop time threshold and the packet loss event rate in the set time is smaller than the first packet loss event rate threshold, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
In one embodiment, the output unit is further configured to: and outputting the currently used network transmission bandwidth in response to the first set condition not being met.
In one embodiment, the apparatus further comprises an updating unit 45: for updating the historical network transmission bandwidth according to the available network transmission bandwidth; and updating the initial loop time rate threshold according to a second loop time threshold, wherein the second loop time threshold is the mean value of at least one corresponding loop time before the at least one overshoot loop-back point.
In one embodiment, the apparatus further includes a fourth determining unit 46 configured to increase an average of all the historical network transmission bandwidths in the history by a third setting value in response to a first network transmission bandwidth being not determined from the received history, and determine the average of all the historical network transmission bandwidths in the history increased by the third setting value as the available network transmission bandwidth.
Fig. 5 is a schematic view of an electronic device of an embodiment of the invention. The electronic device shown in fig. 5 is a device for adjusting network transmission bandwidth, and includes a general computer hardware structure, which includes at least a processor 51 and a memory 52. The processor 51 and the memory 52 are connected by a bus 53. The memory 52 is adapted to store instructions or programs executable by the processor 51. The processor 51 may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, the processor 51 implements the processing of data and the control of other devices by executing instructions stored by the memory 52 to perform the method flows of embodiments of the present invention as described above. The bus 53 connects the above components together, and also connects the above components to the display controller 54 and the display device and the IO device 55. IO devices 55 may be a mouse, keyboard, modem, network interface, touch input device, motion sensitive input device, printer, and other devices known in the art. Typically, IO devices 55 are connected to the system through IO 56.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, various aspects of embodiments of the invention may take the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "circuit," module "or" system. Furthermore, various aspects of embodiments of the invention may take the form of: a computer program product embodied in one or more computer readable media having computer readable program code embodied thereon.
Any combination of one or more computer-readable media may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of embodiments of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to: electromagnetic, optical, or any suitable combination thereof. The computer readable signal medium may be any of the following computer readable media: is not a computer readable storage medium and may communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of embodiments of the present invention may be written in any combination of one or more programming languages, including: object oriented programming languages such as Java, Smalltalk, C + +, and the like; and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package; executing in part on a user computer and in part on a remote computer; or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention described above describe various aspects of embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (15)
1. A method for adjusting network transmission bandwidth, the method comprising:
determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loop back time;
determining a first packet loss event rate threshold according to the historical packet loss event rate, and determining a first loop time threshold according to the historical loop time;
adjusting the first network transmission bandwidth according to the first packet loss event rate threshold and the first loop back time threshold to determine an available network transmission bandwidth;
in response to a first set condition being met, adjusting the network transmission bandwidth according to the available network transmission bandwidth;
wherein, the determining the first network transmission bandwidth according to the received history record specifically includes:
determining a high-impact fallback waveform according to the historical network transmission bandwidth;
determining at least one high-impact falling point according to the high-impact falling waveform, wherein the high-impact falling point is the highest point in a set interval;
determining an average of the at least one overshoot-and-drop point as the first network transmission bandwidth;
wherein the determining the first packet loss event rate threshold specifically includes:
determining an initial packet loss event rate threshold according to the historical packet loss event rate;
responding to a second set condition, adjusting the initial packet loss event rate threshold according to a first set value, and determining the first packet loss event rate threshold;
the first setting condition is that the average loop-back time is greater than the first loop-back time threshold value within a setting time, or the packet loss event rate is greater than a first packet loss event rate threshold value within a setting time; or the first setting condition is that the average loop back time in the setting time is smaller than the first loop back time threshold, and the packet loss event rate in the setting time is smaller than the first packet loss event rate threshold;
the second setting condition is that the difference value obtained by subtracting the number, in the history record, of the packet loss event rate greater than the initial packet loss event rate threshold from the number, in the history record, of the packet loss event rate less than the initial packet loss event rate threshold is greater than half of the total number of the packet loss event rates in the history record; or, the second setting condition is that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record.
2. The method according to claim 1, wherein the adjusting the initial packet loss event rate threshold according to a first setting value in response to the second setting condition being triggered to determine the first packet loss event rate threshold specifically includes:
in response to that the difference between the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is increased by the first set value;
and determining the initial packet loss event rate threshold added with the first setting value as the first packet loss event rate threshold.
3. The method according to claim 1, wherein the adjusting the initial packet loss event rate threshold according to a first setting value in response to a second setting condition being triggered to determine the first packet loss event rate threshold specifically further includes:
in response to that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record, the initial packet loss event rate threshold is decreased by the first set value;
and determining the initial packet loss event rate threshold value which is decreased by the first set value as the first packet loss event rate threshold value.
4. The method of claim 1, wherein the determining the first loop back time threshold specifically comprises:
determining an initial loop time threshold according to the historical loop time;
and in response to a third set condition being triggered, adjusting the initial loop-back time threshold according to a second set value, and determining the first loop-back time threshold.
5. The method according to claim 4, wherein the third setting condition is that a difference between the number of loop back times in the history greater than the initial loop back time threshold minus the number of loop back times in the history less than the initial loop back time threshold is greater than half of the total number of loop back times in the history; or, the third setting condition is that a difference value obtained by subtracting the number of the loop time in the history record, which is smaller than the initial loop time threshold value, from the number of the loop time in the history record, which is larger than the initial loop time threshold value, is larger than half of the total number of the loop time in the history record.
6. The method of claim 5, wherein the adjusting the initial loop-back time threshold according to a second set value in response to a third set condition being triggered to determine the first loop-back time threshold comprises:
in response to the difference between the number of loop times in the history greater than the initial loop time threshold minus the number of loop times in the history less than the loop time threshold being greater than half of the total number of loop times in the history, increasing the initial loop time threshold by the second set value;
determining the initial loop back time threshold incremented by the second setpoint as the first loop back time threshold.
7. The method of claim 5, wherein the adjusting the initial loop-back time threshold according to a second set value in response to a third set condition being triggered to determine the first loop-back time threshold further comprises:
in response to a difference between the number of loop times in the history that are less than the initial loop time threshold minus the number of loop times in the history that are greater than the initial loop time threshold being greater than half of the total number of loop times in the history, decreasing the initial loop time threshold by the first set value;
determining the initial loop back time threshold that decreases by the second setpoint as the first loop back time threshold.
8. The method of claim 1, wherein the adjusting the network transmission bandwidth according to the available network transmission bandwidth in response to the first set condition being satisfied comprises:
and if the available network transmission bandwidth is smaller than the currently used network transmission bandwidth, responding to the condition that the average loop time is larger than the first loop time threshold value within the set time or the packet loss event rate is larger than the first packet loss event rate threshold value within the set time, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
9. The method of claim 1, wherein the adjusting the network transmission bandwidth according to the available network transmission bandwidth in response to the first set condition being satisfied comprises:
and if the available network transmission bandwidth is larger than the network transmission bandwidth which is currently used, responding to the condition that the average loop time in the set time is smaller than the first loop time threshold and the packet loss event rate in the set time is smaller than the first packet loss event rate threshold, and adjusting the network transmission bandwidth according to the available network transmission bandwidth.
10. The method of claim 1, wherein after adjusting the first network transmission bandwidth according to the first packet loss event rate threshold and the first loop back time threshold to determine an available network transmission bandwidth, the method further comprises:
and outputting the last network transmission bandwidth in response to the first set condition not being met.
11. The method of claim 1, wherein after adjusting the first network transmission bandwidth according to the first packet loss event rate threshold and the first loop back time threshold to determine an available network transmission bandwidth, the method further comprises:
updating the historical network transmission bandwidth according to the available network transmission bandwidth;
and updating the initial packet loss event rate threshold according to a second loop time threshold, wherein the second loop time threshold is an average value of at least one corresponding loop time before the at least one overshoot loop-back point.
12. The method of claim 1, wherein prior to outputting the available network transmission bandwidth in response to a first set condition being met, the method further comprises:
in response to the first network transmission bandwidth being unable to be determined according to the received history, increasing the average value of all the historical network transmission bandwidths in the history by a third set value, and determining the average value of all the historical network transmission bandwidths in the history increased by the third set value as the available network transmission bandwidth.
13. An apparatus for adjusting network transmission bandwidth, comprising:
the first determining unit is used for determining a first network transmission bandwidth according to a received historical record, wherein the historical record comprises historical network transmission bandwidth, historical packet loss event rate and historical loopback time;
a third determining unit, configured to determine a first packet loss event rate threshold according to the historical packet loss event rate, and determine a first loop time threshold according to the historical loop time;
a second determining unit, configured to adjust the first network transmission bandwidth according to the first packet loss event rate threshold and the first loopback time threshold, so as to determine an available network transmission bandwidth;
an output unit, configured to adjust a network transmission bandwidth according to the available network transmission bandwidth in response to a first setting condition being satisfied;
the determining the first network transmission bandwidth according to the received history record specifically includes:
determining a high-impact fallback waveform according to the historical network transmission bandwidth;
determining at least one high-impact falling point according to the high-impact falling waveform, wherein the high-impact falling point is the highest point in a set interval;
determining an average of the at least one overshoot-and-drop point as the first network transmission bandwidth;
wherein the determining the first packet loss event rate threshold specifically includes:
determining an initial packet loss event rate threshold according to the historical packet loss event rate;
responding to a second set condition to be triggered, adjusting the initial packet loss event rate threshold according to a first set value, and determining the first packet loss event rate threshold;
the first setting condition is that the average loop-back time is greater than the first loop-back time threshold value within a setting time, or the packet loss event rate is greater than a first packet loss event rate threshold value within a setting time; or the first setting condition is that the average loop back time in the setting time is smaller than the first loop back time threshold, and the packet loss event rate in the setting time is smaller than the first packet loss event rate threshold;
the second setting condition is that the difference between the quantity of the packet loss event rate in the history record which is greater than the threshold of the initial packet loss event rate and the quantity of the packet loss event rate in the history record which is less than the threshold of the initial packet loss event rate is greater than half of the total quantity of the packet loss event rates in the history record; or, the second setting condition is that the difference between the number of the packet loss event rates in the history record smaller than the initial packet loss event rate threshold and the number of the packet loss event rates in the history record larger than the initial packet loss event rate threshold is larger than half of the total number of the packet loss event rates in the history record.
14. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-12.
15. A computer-readable storage medium on which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the method of any one of claims 1-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910010772.6A CN109525447B (en) | 2019-01-07 | 2019-01-07 | Method and device for adjusting network transmission bandwidth and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910010772.6A CN109525447B (en) | 2019-01-07 | 2019-01-07 | Method and device for adjusting network transmission bandwidth and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109525447A CN109525447A (en) | 2019-03-26 |
CN109525447B true CN109525447B (en) | 2022-05-31 |
Family
ID=65797619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910010772.6A Active CN109525447B (en) | 2019-01-07 | 2019-01-07 | Method and device for adjusting network transmission bandwidth and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109525447B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110366003A (en) * | 2019-06-24 | 2019-10-22 | 北京大米科技有限公司 | Anti-jitter processing method, device, electronic equipment and the storage medium of video data |
CN111541626B (en) * | 2020-04-21 | 2023-08-25 | 广州市百果园信息技术有限公司 | Network bandwidth updating method and device, electronic equipment and storage medium |
CN111935025B (en) * | 2020-07-08 | 2023-10-17 | 腾讯科技(深圳)有限公司 | Control method, device, equipment and medium for TCP transmission performance |
CN114666225B (en) * | 2022-03-10 | 2023-11-17 | 阿里巴巴(中国)有限公司 | Bandwidth adjustment method, data transmission method, device and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848810A (en) * | 2006-05-15 | 2006-10-18 | 武汉虹旭信息技术有限责任公司 | Stream media transmitting rate controlling method |
CN106341739A (en) * | 2016-09-30 | 2017-01-18 | 邦彦技术股份有限公司 | A kind of control device based on packet loss and method |
CN107864084A (en) * | 2016-09-22 | 2018-03-30 | 腾讯科技(深圳)有限公司 | The transmission method and device of packet |
CN108768877A (en) * | 2018-07-20 | 2018-11-06 | 网宿科技股份有限公司 | A kind of distribution method of burst flow, device and proxy server |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102468941B (en) * | 2010-11-18 | 2014-07-30 | 华为技术有限公司 | Network packet loss processing method and device |
US9544205B2 (en) * | 2013-04-09 | 2017-01-10 | Twin Prime, Inc. | Cognitive data delivery optimizing system |
CN107171969B (en) * | 2016-03-07 | 2020-06-02 | 华为技术有限公司 | Data transmission method, device and system |
-
2019
- 2019-01-07 CN CN201910010772.6A patent/CN109525447B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848810A (en) * | 2006-05-15 | 2006-10-18 | 武汉虹旭信息技术有限责任公司 | Stream media transmitting rate controlling method |
CN107864084A (en) * | 2016-09-22 | 2018-03-30 | 腾讯科技(深圳)有限公司 | The transmission method and device of packet |
CN106341739A (en) * | 2016-09-30 | 2017-01-18 | 邦彦技术股份有限公司 | A kind of control device based on packet loss and method |
CN108768877A (en) * | 2018-07-20 | 2018-11-06 | 网宿科技股份有限公司 | A kind of distribution method of burst flow, device and proxy server |
Also Published As
Publication number | Publication date |
---|---|
CN109525447A (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109525447B (en) | Method and device for adjusting network transmission bandwidth and electronic equipment | |
JP4703063B2 (en) | Method and system for mitigating network congestion | |
JP6457447B2 (en) | Data center network traffic scheduling method and apparatus | |
US8274886B2 (en) | Inferring TCP initial congestion window | |
US7711841B2 (en) | Systems and methods for reducing the effects of variations on the playback of streaming media | |
CN106789718B (en) | Data transmission congestion control method, equipment, server and programmable equipment | |
EP2775673B1 (en) | Content reproduction information estimating device, method and program | |
CN113453045B (en) | Network bandwidth prediction method, system, device and storage medium | |
JP5362801B2 (en) | Data transmission method and apparatus | |
CN109660467B (en) | Method and apparatus for controlling flow | |
US9584420B2 (en) | Switching between loss-based and delay-based mode for real-time media congestion controllers | |
CN117376212A (en) | Network rate adjustment method and device, storage medium and electronic equipment | |
US20190306870A1 (en) | Dejittering System | |
US9736076B2 (en) | Device server and control method thereof | |
EP2393294B1 (en) | Delivery system, delivery method, server device, program and client device | |
US20180097739A1 (en) | Network application component with credit based congestion control, and corresponding method | |
WO2017192342A1 (en) | Initial and periodic slowdowns for background connections | |
JP5915820B2 (en) | COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM | |
CN116566919A (en) | Bandwidth detection method, device, electronic equipment and storage medium | |
JP2014041404A (en) | Terminal service monitoring device | |
KR20110055592A (en) | Controlling data flow through a data communications link | |
US10091068B1 (en) | System for modeling distributed systems | |
JP2014112779A (en) | Data transmission controller, data transmission control method, and computer program | |
JPWO2011048740A1 (en) | Data transmission system, transmission speed control method, receiving terminal, transmitting terminal | |
CN111130923B (en) | Network bandwidth determining method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |