CN107276850B - Method and system for testing and transmitting unified interface of electricity consumption information acquisition system - Google Patents
Method and system for testing and transmitting unified interface of electricity consumption information acquisition system Download PDFInfo
- Publication number
- CN107276850B CN107276850B CN201710494852.4A CN201710494852A CN107276850B CN 107276850 B CN107276850 B CN 107276850B CN 201710494852 A CN201710494852 A CN 201710494852A CN 107276850 B CN107276850 B CN 107276850B
- Authority
- CN
- China
- Prior art keywords
- data transmission
- data
- transmission request
- threshold
- value
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 119
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000005611 electricity Effects 0.000 title description 6
- 230000005540 biological transmission Effects 0.000 claims abstract description 379
- 230000011218 segmentation Effects 0.000 claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims description 31
- 230000001965 increasing effect Effects 0.000 claims description 16
- 230000009467 reduction Effects 0.000 claims description 10
- 230000008278 dynamic mechanism Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 6
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 6
- 230000036962 time dependent Effects 0.000 claims 2
- 238000012545 processing Methods 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008859 change Effects 0.000 description 4
- 238000012216 screening Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 241000135164 Timea Species 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- OVBPIULPVIDEAO-LBPRGKRZSA-N folic acid Chemical compound C=1N=C2NC(N)=NC(=O)C2=NC=1CNC1=CC=C(C(=O)N[C@@H](CCC(O)=O)C(O)=O)C=C1 OVBPIULPVIDEAO-LBPRGKRZSA-N 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- 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
-
- 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/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
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 discloses a method for testing and concurrently transmitting a unified interface of a power utilization information acquisition system, which comprises the following steps: taking the sum of the data transmission request quantity to be sent and the transmission data quantity of the previous period as the data transmission request quantity of the current period; calculating a load estimation value according to the data request quantity to be transmitted and the maximum transmission quantity of the transmission path; respectively calculating available bandwidth and congestion degree according to feedback information of a data request of the transmission data volume of the current period; the data transmission request quantity to be sent in the next period is adaptively and dynamically adjusted according to the available bandwidth, the congestion degree and the load estimation value and an adjustment strategy; and optimally adjusting the segmentation threshold of the load factor based on dynamic programming. The invention has the beneficial effects that: and the testing end respectively executes different strategies according to the network parameters fed back by transmission on the adjustment of the data transmission request quantity, and dynamically adjusts the key segmentation threshold of the data transmission request quantity based on an optimal control algorithm, thereby ensuring the high efficiency of parallel processing of the test data.
Description
Technical Field
The invention relates to the field of power consumption information acquisition, in particular to a method and a system for testing and transmitting a unified interface of a power consumption information acquisition system.
Background
The popularization and application of the intelligent electric energy meter and the rapid promotion of the construction of the electricity information acquisition system are realized, the marketing measurement intensification and lean management level are greatly improved, the electricity information acquisition system comprehensively enters a deepened application stage, and by 2016 (8 months), the system accumulation provides business and data support for a plurality of application systems such as marketing, security, operation and inspection, operation and supervision, distribution strategy and information, 16 national network system pushing business application systems and tens of provincial companies self-constructed business application systems, and in order to realize the application of guaranteeing efficient data interaction, the electricity information acquisition system is dedicated to constructing an efficient automatic test system.
The traditional data transmission improvement is that a fixed mode is often adopted to send a data request, however, various interferences may exist in a transmission channel, such as high-frequency electromagnetic interference, transmission line breakage, communication congestion and the like, so that errors and losses of data transmitted by an interface occur; since the service provided by the computer communication network at the lowest layer is unreliable packet transmission, when errors occur in the transmission process and network hardware fails or network load is too heavy, data packets may be lost, delayed, repeated and out of order, which affects the efficiency and reliability of data transmission and processing; and the webservice interface platform as a data transmission end puts higher requirements on the balance of network loads. When the conventional data transmission method faces the above problems, the data transmission performance thereof is greatly reduced.
Therefore, it is necessary to research a data transmission method adaptive to the change of the network transmission environment based on the feedback information.
Disclosure of Invention
The invention provides a concurrent transmission method and a concurrent transmission system for a unified interface test of a power consumption information acquisition system, which solve the problem of low data transmission performance.
In order to solve the above problem, according to an aspect of the present invention, there is provided a power consumption information acquisition system unified interface test concurrent transmission method, including:
taking the sum of the data transmission request quantity to be sent and the transmission data quantity of the previous period as the data transmission request quantity of the current period;
calculating a load estimation value according to the data request quantity to be transmitted and the maximum transmission quantity of the transmission path;
respectively calculating available bandwidth and congestion degree according to feedback information of a data request of the transmission data volume of the current period, wherein the feedback information comprises: data request response rate and data transmission request information;
the data transmission request quantity to be sent in the next period is adaptively and dynamically adjusted according to the available bandwidth, the congestion degree and the load estimation value and an adjustment strategy;
and optimally adjusting the segmentation threshold of the load factor based on dynamic programming.
Preferably, the load estimation value is calculated by:
wherein rho is a load estimation value; λ is per time interval tρThe data volume received by the test terminal;the average request queue number of the tester in unit time, namely the average data transmission request number; k is a radical ofqRelease rate for queue backlog; xi is the utilization rate of the transmission path, and C is the bottleneck bandwidth of the transmission channel.
Preferably, the available bandwidth is calculated by:
wherein, BnIs at tnThe estimated available bandwidth when the nth data request is transmitted; t is tn-1The moment when the data transmission of the (n-1) th data transmission request is finished; l isnThe amount of data transmitted for the nth data transmission request; RTT is tnEstimating the end-to-end time delay of the data transmission request at the moment, and determining the end-to-end round-trip time of the nth data transmission request; pinIs a scale factor.
Preferably, the calculation method of the scale factor is as follows:
wherein D istra(n-1)The number of the (n-1) th data transmission requests is shown, and P is the size of the data transmission request.
Preferably, the congestion degree is calculated by:
wherein g is a weighting factor, and the value range of g is (0, 1); f is the last time interval tρThe returned data transmission request completion ratio, alpha is the last time interval tρMaximum number of retransmissions for an intra-sent data transmission request, M being the last time interval tρThe data transmission request quantity of the internal testing party for completing transmission, T is the last time interval TρAnd the data transmission request quantity sent by the internal test end.
Preferably, the method for calculating the data transmission request completion ratio F includes:
preferably, the dynamically and adaptively adjusting the amount of the data transmission request to be sent in the next period according to the adjustment policy based on the available bandwidth, the congestion degree, and the load estimation value includes:
if the load estimation value is smaller than the threshold value of the load factor, the test end adopts a 'quick start' strategy to quickly increase the data transmission request quantity; the calculation method for rapidly increasing the data transmission request amount comprises the following steps:
wherein D istraAlpha is the increment factor of the data transmission request quantity, RTTminMinimum observed RTT value for the test end;
if the load estimation value is greater than the load factor threshold and less than or equal to the asynchronous feedback threshold, the test end increases the data transmission request quantity by adopting a 'smooth increase' strategy; the calculation method for increasing the data transmission request amount comprises the following steps:
if the load estimation value is greater than the asynchronous feedback threshold value and less than or equal to 1, the test end adopts a linear increase strategy to increase the data transmission request quantity; the calculation method for increasing the data transmission request amount comprises the following steps:
Dtra←Dtra+1;
if the load estimation value is larger than 1, the test end adopts a 'regression sending' strategy to reduce the data transmission request quantity and balance and converge on fair speed and transmission path utilization rate; the calculation method for reducing the data transmission request amount comprises the following steps:
Dtra←Dtra·γ,
where γ is a data transmission request amount reduction ratio.
Preferably, the method for optimally adjusting the segment threshold of the load factor based on dynamic programming includes:
step (1): carrying out initialization setting on adjustment parameters, wherein the adjustment parameters comprise: iteration number k, return upper limit n and load factor threshold range
Step (2): the method comprises the following steps of adjusting the request quantity of data transmission in real time according to a dynamic mechanism of an adjustment strategy, and performing traversal assignment on data within a load factor threshold range, wherein the method for performing traversal assignment on the data within the load factor threshold range comprises the following steps:
wherein the threshold is traversedRecord the historyThe data transmission request sent in the time period isThe test terminal completes the receiving of the data transmission requestTime ofAnd receive data volume
And (3): calculating the history thresholdThe test end data receiving rate and the receiving rate mean value, wherein the receiving rate has a calculation formula as follows:
the calculation formula of the mean receiving rate is as follows:
wherein V is the receiving rate of data transmission of the test end, R is the receiving data volume of the test end, t is the time for the test end to complete the data transmission request, and VkIs the mean value of the receiving rate; when the load factor threshold is takenWhen the temperature of the water is higher than the set temperature,in the data transmission process, the load factor of the test end isTime to complete receiving the data transmission request;the amount of received data in the process;for load factor thresholdThe test-end data reception rate of time.
And (4): comparing the difference value of the mean receiving rate of the two times with the receiving rate increase threshold value of the data at the test end,
if (V)k-Vk-1) > 0, thenCorresponding threshold value ofReduced to the set ρkIn, the set ρkAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominK is k +1, n is set to 0, and the step (2) is returned;
if 0 < (V)k-Vk-1) Selecting the maximum of the iterationIs marked as VmaxThe threshold value corresponding theretoIs assigned to rholK is k +1, by a threshold plThe dynamic transmission of the data is carried out,n is set to 0, if Vk≥VmaxRe-entering the step; if Vk<VmaxEntering the step (2);
if (V)k-Vk-1) If n is less than 0 and less than or equal to 3, k is k-1, and the set rho of the k iteration iskAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominN is n +1, and returns to step (2);
if (V)k-Vk-1) Less than 0 and n > 3, returning to the step (1), and optimizing the threshold value rholAnd optimizing in real time according to the network transmission state until the data transmission is finished.
According to another aspect of the present invention, there is provided a unified interface test and concurrent transmission system for a power consumption information acquisition system, the system including: a waiting data request quantity calculating unit, a load estimation value calculating unit, an available bandwidth and congestion degree calculating unit, a data transmission request quantity adjusting unit of the next period and a segmentation threshold adjusting unit of a load factor,
the data request quantity to be transmitted calculating unit is used for taking the sum of the data transmission request quantity to be transmitted and the transmission data quantity of the previous period as the data request quantity to be transmitted of the current period;
the load estimation value calculation unit is used for calculating a load estimation value according to the data request quantity to be transmitted and the maximum transmission quantity of the transmission path;
the available bandwidth and congestion degree calculating unit is configured to calculate an available bandwidth and a congestion degree according to feedback information of a data request of a transmission data amount of a current period, respectively, where the feedback information includes: data request response rate and data transmission request information;
the data transmission request quantity adjusting unit of the next period is used for adaptively and dynamically adjusting the data transmission request quantity to be sent of the next period according to the available bandwidth, the congestion degree and the load estimation value and an adjusting strategy;
and the load factor segmentation threshold adjusting unit is used for optimally adjusting the segmentation threshold of the load factor based on dynamic programming.
Preferably, wherein the load estimation value is calculated by:
wherein rho is a load estimation value; λ is per time interval tρThe data volume received by the test terminal;the average request queue number of the tester in unit time, namely the average data transmission request number; k is a radical ofqRelease rate for queue backlog; xi is the utilization rate of the transmission path, and C is the bottleneck bandwidth of the transmission channel.
Preferably, wherein the available bandwidth is calculated by:
wherein, BnIs at tnThe estimated available bandwidth when the nth data request is transmitted; t is tn-1The moment when the data transmission of the (n-1) th data transmission request is finished; l isnThe amount of data transmitted for the nth data transmission request; RTT is tnEstimating the end-to-end time delay of the data transmission request at the moment, and determining the end-to-end round-trip time of the nth data transmission request; pinIs a scale factor.
Preferably, wherein the scale factor is calculated by:
wherein D istra(n-1)The number of the (n-1) th data transmission requests is shown, and P is the size of the data transmission request.
Preferably, the congestion degree is calculated by:
wherein g is a weighting factor, and the value range of g is (0, 1); f is the last time interval tρThe returned data transmission request completion ratio, alpha is the last time interval tρMaximum number of retransmissions for an intra-sent data transmission request, M being the last time interval tρThe data transmission request quantity of the internal testing party for completing transmission, T is the last time interval TρAnd the data transmission request quantity sent by the internal test end.
Preferably, the data transmission request completion ratio F is calculated by:
preferably, the data transmission request amount adjusting unit of the next cycle is specifically configured to:
if the load estimation value is smaller than the threshold value of the load factor, the test end adopts a 'quick start' strategy to quickly increase the data transmission request quantity; wherein, the fast increase data transmission request amount is calculated by the following method:
wherein D istraAlpha is the increment factor of the data transmission request quantity, RTTminMinimum observed RTT value for the test end;
if the load estimation value is greater than the load factor threshold and less than or equal to the asynchronous feedback threshold, the test end increases the data transmission request quantity by adopting a 'smooth increase' strategy; wherein, the increase of the data transmission request amount is calculated by the following method:
if the load estimation value is greater than the asynchronous feedback threshold value and less than or equal to 1, the test end adopts a linear increase strategy to increase the data transmission request quantity; wherein the increase data transmission request amount is calculated by:
Dtra←Dtra+1;
if the load estimation value is larger than 1, the test end adopts a 'regression sending' strategy to reduce the data transmission request quantity and balance and converge on fair speed and transmission path utilization rate; wherein the reduction in data transmission request size is calculated in the following manner:
Dtra←Dtra·γ,
where γ is a data transmission request amount reduction ratio.
Preferably, the segment threshold adjusting unit of the load factor is specifically configured to:
step (1): carrying out initialization setting on adjustment parameters, wherein the adjustment parameters comprise: iteration number k, return upper limit n and load factor threshold range
Step (2): the method comprises the following steps of adjusting the request quantity of data transmission in real time according to a dynamic mechanism of an adjustment strategy, and performing traversal assignment on data within a load factor threshold range, wherein the method for performing traversal assignment on the data within the load factor threshold range comprises the following steps:
wherein the threshold is traversedRecord the historyThe data transmission request sent in the time period isThe test terminal completes the receiving of the data transmission requestTime ofAnd receive data volume
And (3): calculating the history thresholdThe test end data receiving rate and the receiving rate mean value, wherein the receiving rate has a calculation formula as follows:
the calculation formula of the mean receiving rate is as follows:
wherein V is the receiving rate of data transmission of the test end, R is the receiving data volume of the test end, t is the time for the test end to complete the data transmission request, and VkIs the mean value of the receiving rate; when the load factor threshold is takenWhen the temperature of the water is higher than the set temperature,in the data transmission process, the load factor of the test end isTime to complete receiving the data transmission request;the amount of received data in the process;for load factor thresholdThe test-end data reception rate of time.
And (4): comparing the difference value of the mean receiving rate of the two times with the receiving rate increase threshold value of the data at the test end,
if (V)k-Vk-1) > 0, thenCorresponding threshold value ofReduced to the set ρkIn, the set ρkAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominK is k +1, n is set to 0, and the step (2) is returned;
if 0 < (V)k-Vk-1) Selecting the maximum of the iterationIs marked as VmaxThe threshold value corresponding theretoIs assigned to rholK is k +1, by a threshold plThe dynamic transmission of the data is carried out,n is set to 0, if Vk≥VmaxRe-entering the step; if Vk<VmaxEntering the step (2);
if (V)k-Vk-1) If n is less than 0 and less than or equal to 3, k is k-1, and the set rho of the k iteration iskAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominN is n +1, and returns to step (2);
if (V)k-Vk-1) Less than 0 and n > 3, returning to the step (1), and optimizing the threshold value rholAnd optimizing in real time according to the network transmission state until the data transmission is finished.
The invention has the beneficial effects that:
the technical scheme of the invention provides adjustment of a data transmission request based on a self-adaptive dynamic feedback transmission mechanism, a load estimation value, available bandwidth and congestion degree of a transmission path are predicted periodically, different strategies are respectively executed at a test end on the adjustment of the data transmission request amount according to network parameters fed back by transmission, the dynamic adjustment of a key segmentation threshold of the data transmission request amount is realized based on an optimal control algorithm, the time-varying property of a transmission network and the time delay influence of feedback data are reduced, the number of the data transmission requests subjected to the self-adaptive dynamic adjustment is realized, the network throughput is improved, the load balance of data transmission based on a web service interface is realized, and the high efficiency of parallel processing of test data is ensured.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart of a method 100 for testing concurrent transmission of a unified interface of a power consumption information acquisition system according to an embodiment of the present invention; and
fig. 2 is a schematic structural diagram of a power consumption information acquisition system unified interface test concurrent transmission system 200 according to an embodiment of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a flowchart of a method 100 for testing and concurrently transmitting a unified interface of a power consumption information acquisition system according to an embodiment of the present invention. As shown in fig. 1, the method 100 is used for testing and concurrently transmitting a unified interface of an electricity consumption information acquisition system, and the method mainly uses a transmission path load estimation value to improve efficiency and fairness of data transmission, uses the idea of a standard TCP protocol for reference, but uses completely different strategies, predicts a load factor of a transmission path according to periodicity, and maps the load factor to 3 different utility areas, that is, low load, high load, and overload. In a low-load area, a test end adopts a 'quick start' strategy to adjust the data transmission request quantity so as to converge to a high bandwidth utilization rate as fast as possible and avoid unnecessary data packet loss; in the high load area, factor U is introducedthDivide it into two non-overlapping sub-regions, i.e. synchronous increments (ρ)l<ρ≤Uth) And asynchronous increase (U)thLess than rho less than or equal to 1), respectively adopting 'gentle increase' and 'linear increase' to adjust data transmission request quantity, accelerating data transmission flow to converge on fairness, and dividing boundary value UthDetermined by the available bandwidth and congestion level of the network; in the overload area, the data transmission request amount is reduced by adopting the 'regression sending' operation, the subsequent load estimation feedback is ignored, and the congestion window is more reasonably reduced, namely the window reduction ratio of the high-bandwidth flow is large, otherwise, the congestion window is smaller.
Preferably, the electrical information acquisition system unified interface test concurrent transmission method 100 starts at step 101, and in step 101, a sum of a data transmission request amount to be sent and a transmission data amount of a previous cycle is used as a data request amount to be transmitted of a current cycle.
Preferably, a load estimation value is calculated in step 102 according to the pending data request amount and the maximum transmission amount of the transmission path. Preferably, the load estimation value is calculated by:
wherein rho is a load estimation value; λ is per time interval tρThe data volume received by the test terminal;the average request queue number of the tester in unit time, namely the average data transmission request number; k is a radical ofqRelease rate for queue backlog; xi is the utilization rate of the transmission path, and C is the bottleneck bandwidth of the transmission channel.
Preferably, the available bandwidth and the congestion degree are respectively calculated in step 103 according to feedback information of a data request of the transmission data amount of the current cycle, wherein the feedback information includes: data request response rate and data transmission request information. Preferably, the available bandwidth is calculated by:
wherein, BnIs at tnThe estimated available bandwidth when the nth data request is transmitted; t is tn-1The moment when the data transmission of the (n-1) th data transmission request is finished; l isnThe amount of data transmitted for the nth data transmission request; RTT is tnEstimating the end-to-end time delay of the data transmission request at the moment, and determining the end-to-end round-trip time of the nth data transmission request; pinIs a scale factor.
Preferably, the calculation method of the scale factor is as follows:
wherein D istra(n-1)Represents the n-1 th data transmission request quantity, and P is the size of the data transmission request。
Preferably, the congestion degree is calculated by:
wherein g is a weighting factor, and the value range of g is (0, 1); f is the last time interval tρThe returned data transmission request completion ratio, alpha is the last time interval tρMaximum number of retransmissions for an intra-sent data transmission request, M being the last time interval tρThe data transmission request quantity of the internal testing party for completing transmission, T is the last time interval TρAnd the data transmission request quantity sent by the internal test end.
Preferably, the method for calculating the data transmission request completion ratio F includes:
wherein at a time interval tρThe more data transmission requests are backlogged, the more retransmission times, which will cause clUntil the upper limit 1 is reached. Using estimated clThe value of the load factor gamma can be adjusted adaptively by the following method:
γ=γmax-cl(γmax-γmin),
wherein, γmaxIs the maximum value of gamma, noted as 0.875, gammaminThe minimum value of gamma is 0.375, most of the network is overloaded, which indicates that network congestion is about to occur, in order to avoid congestion, the data transmission request amount should be reduced more, if the data request retransmission is increased, the data transmission is performed based on the web service interface mode on the basis of the tested party, and the data must be retransmitted after the data transmission is interrupted, so the data transmission request amount should be reduced to ensure the data transmission effectiveness and avoid invalid transmission.
Preferably, in step 104, the amount of data transmission requests to be sent in the next period is adaptively and dynamically adjusted according to the adjustment strategy according to the available bandwidth, the congestion degree and the load estimation value. The load estimation value is classified into four stages of 'quick start', 'smooth increase', 'linear increase' and 'regression transmission'; the available bandwidth is adjusted by the 'gently increasing' data transmission request quantity; the degree of congestion determines a fragmentation threshold that can adaptively adjust the load factor.
In the implementation mode of the invention, a dynamic mechanism of 'quick start', 'slow increase', 'linear increase' and 'regression sending' is adopted to adjust the data transmission request quantity sending request in real time, thereby realizing the maximum efficiency transmission of data on the basis of ensuring the reliability and anti-interference performance of data transmission. The rapid start is mainly to increase the data transmission request in an exponential order, so that the size of the data transmission request can be increased to be close to the maximum rapidly; the 'smooth increase' reduces the generation of burst data volume, lightens the pressure of a data transmission buffer queue, maintains stable data transmission sending requests as much as possible and avoids the increase of the loss probability of the data transmission requests; "linear increase" is mainly sending the data transmission request size plus 1, so that the data transmission request size increases in the lowest linear manner until the data transmission request maximum is reached, or the acknowledgement time is maximized; the 'regression sending' means that when the network state becomes poor or the data transmission request is full, the packet loss of the data transmission is increased, the time for receiving the confirmation of the sent data packet is prolonged, the data transmission request amount is reduced proportionally, and the sending is restarted.
Preferably, the dynamically and adaptively adjusting the amount of the data transmission request to be sent in the next period according to the adjustment policy based on the available bandwidth, the congestion degree, and the load estimation value includes:
if the load estimation value is smaller than the threshold value of the load factor, the test end adopts a 'quick start' strategy to quickly increase the data transmission request quantity; the calculation method for rapidly increasing the data transmission request amount comprises the following steps:
wherein,Dtraalpha is the increment factor of the data transmission request quantity, RTTminMinimum observed RTT value for the test end;
if the load estimation value is greater than the load factor threshold and less than or equal to the asynchronous feedback threshold, the test end increases the data transmission request quantity by adopting a 'smooth increase' strategy; the calculation method for increasing the data transmission request amount comprises the following steps:
if the load estimation value is greater than the asynchronous feedback threshold value and less than or equal to 1, the test end adopts a linear increase strategy to increase the data transmission request quantity; the calculation method for increasing the data transmission request amount comprises the following steps:
Dtra←Dtra+1;
if the load estimation value is larger than 1, the test end adopts a 'regression sending' strategy to reduce the data transmission request quantity and balance and converge on fair speed and transmission path utilization rate; the calculation method for reducing the data transmission request amount comprises the following steps:
Dtra←Dtra·γ,
where γ is a data transmission request amount reduction ratio.
Preferably, the segment threshold of the load factor is optimally adjusted based on dynamic programming in step 105. The method comprises the steps of determining the adjustment of a data transmission request quantity change stage based on a state value of set load estimation, optimizing a segmentation threshold in real time according to dynamic programming optimal control, dynamically adjusting the data transmission request change quantity by utilizing available bandwidth estimation and congestion degree estimation, effectively enhancing network data transmission performance based on feedback information, reducing interface network load, improving interface throughput capacity and ensuring the overall processing capacity of the system.
Preferably, the method for optimally adjusting the segment threshold of the load factor based on dynamic programming includes:
step (1): performing initial setting on adjustment parameters, wherein the adjustment parameters comprise: iteration number k, return upper limit n and load factor threshold rangeFirst, the number of iterations k is set to 0, the upper limit n is set to 0, and then ρ is calculatedlCarry out an initialization threshold range, rhominIs rholMinimum value of, ρmaxIs rholIs initially 1, is taken
Step (2): the method comprises the following steps of adjusting the request quantity of data transmission in real time according to a dynamic mechanism of an adjustment strategy, and performing traversal assignment on data within a load factor threshold range, wherein the method for performing traversal assignment on the data within the load factor threshold range comprises the following steps:
wherein the threshold is traversedRecord the historyThe data transmission request sent in the time period isThe test terminal completes the receiving of the data transmission requestTime ofAnd receive data volumeEach timeThe assignment values of (1) are subjected to a complete data transmission process of 'quick start', 'smooth increase', 'linear increase', 'regression transmission', wherein rho is subjected to each timeA change to 1.
And (3): calculating the history thresholdThe test end data receiving rate and the receiving rate mean value, wherein the receiving rate has a calculation formula as follows:
the calculation formula of the mean receiving rate is as follows:
wherein V is the receiving rate of data transmission of the test end, R is the receiving data volume of the test end, t is the time for the test end to complete the data transmission request, and VkIs the mean value of the receiving rate; when the load factor threshold is takenWhen the temperature of the water is higher than the set temperature,in the data transmission process, the load factor of the test end isTime to complete receiving the data transmission request;the amount of received data in the process;for load factor thresholdThe test-end data reception rate of time.
And (4): comparing the difference value of the mean receiving rate of the two times with the receiving rate increase threshold value of the data at the test end,
if (V)k-Vk-1) > 0, thenCorresponding threshold value ofReduced to the set ρkIn, the set ρkAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominK is k +1, n is set to 0, and the procedure returns to step (2).
If 0 < (V)k-Vk-1) Selecting the maximum of the iterationIs marked as VmaxThe threshold value corresponding theretoIs assigned to rholK is k +1, by a threshold plThe dynamic transmission of the data is carried out,n is set to 0, if Vk≥VmaxRe-entering the step; if Vk<VmaxProceed to step (2). Wherein, if 0 < (V)k-Vk-1) <, the value [ rho ] of this time rho is explainedmin,ρmax]Has resulted in a small increase in the data reception rate than the last time, so that [ rho ] at this timemin,ρmax]Having been small and quite close to the optimum value, we now choose the one that obtains the maximum transmission rate this timeValue assignment to rholAs best quality and at the next transmission in plIs the transmission threshold. If Vk≥VmaxAt this time, the next data transmission request is sent, if this V isk≥VmaxThe optimal threshold value rho which is selected last time and is stable in the current network transmission state is explainedlReasonably, the data receiving rate is larger than or equal to the maximum value, so the step (5) is returned to, and the optimal threshold value rho of the data transmission request is sent next timelAnd is not changed. If Vk<VmaxAt this time, ρlIf not, re-screening is required, so returning to step (2) to continue based on the last threshold range [ rho ]min,ρmax]What may cause this to happen is a small fluctuation in network transmission or the last chosen ρlIt is not reasonable.
If (V)k-Vk-1) If n is less than 0 and less than or equal to 3, k is k-1, and the set rho of the k iteration iskAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominAnd n is n +1, and returns to the step (2). If (V)k-Vk-1) N is less than 0 and less than or equal to 3, which indicates that the data transmission rate is lower than the last time at this time, and the situation may be temporary small fluctuation of the network transmission state, so k is reduced by one, and the last time [ rho ] is adoptedmin,ρmax]The threshold space performs optimal threshold screening, and n + 1.
If (V)k-Vk-1) Less than 0 and n > 3, returning to the step (1), and optimizing the threshold value rholAnd optimizing in real time according to the network transmission state until the data transmission is finished. If (V)k-Vk-1) < 0 and n > 3, indicating [ rhomin,ρmax]After three revisits, the data transmission rate is still lower than the last data transmission rate at the moment, which shows that the network transmission state is greatly changed at the moment, so that the step (1) is returned to carry out the re-optimal threshold screening. Adjusting the optimal threshold value rho of the overall optimal threshold value in real time according to the network transmission statelWaves generated in step (4) and based on a small range of network transmission conditionsAnd performing small-range adjustment. And (4) if the network transmission state is unstable and has large fluctuation, returning to the step (1) to initialize and carry out threshold value screening again. Optimum threshold value ρlAnd optimizing in real time according to the network transmission state until the data transmission is finished.
When the test end receives the feedback information of the data and dynamically adjusts the data transmission request quantity, the decisive factor of the transmission strategy is the threshold rho value due to the time variation of the transmission path information and the time delay of the feedback datalThe value of (1) is that the data transmission request quantity in the 'quick start' stage is rapidly increased, the data transmission rate is improved in a short time, and the value is in the threshold value rholThen, the data transmission request amount is maintained at a higher level and changes relatively slowly, the ratio is over 75% in the whole data transmission process, and the threshold rho is subjected to an optimal threshold control strategy based on dynamic programminglAnd carrying out dynamic optimization adjustment.
Fig. 2 is a schematic structural diagram of a power consumption information acquisition system unified interface test concurrent transmission system 200 according to an embodiment of the present invention. As shown in fig. 2, the system 200 for testing and transmitting power consumption information collecting system unified interface includes: a pending data request amount calculation unit 201, a load estimation value calculation unit 202, an available bandwidth and congestion degree calculation unit 203, a data transmission request amount adjustment unit 204 of the next cycle, and a segment threshold adjustment unit 205 of the load factor.
Preferably, the to-be-transmitted data request amount calculating unit 201 is configured to use the sum of the to-be-transmitted data transmission request amount and the transmission data amount of the previous cycle as the to-be-transmitted data request amount of the current cycle.
Preferably, the load estimation value calculating unit 202 is configured to calculate the load estimation value according to the pending data request amount and the maximum transmission amount of the transmission path. Preferably, wherein the load estimation value is calculated by:
wherein rho is a load estimation value; λ is per time intervaltρThe data volume received by the test terminal;the average request queue number of the tester in unit time, namely the average data transmission request number; k is a radical ofqRelease rate for queue backlog; xi is the utilization rate of the transmission path, and C is the bottleneck bandwidth of the transmission channel.
Preferably, the available bandwidth and congestion degree calculating unit 203 is configured to calculate the available bandwidth and congestion degree according to feedback information of a data request of a transmission data amount of a current period, where the feedback information includes: data request response rate and data transmission request information. Preferably, wherein the available bandwidth is calculated by:
wherein, BnIs at tnThe estimated available bandwidth when the nth data request is transmitted; t is tn-1The moment when the data transmission of the (n-1) th data transmission request is finished; l isnThe amount of data transmitted for the nth data transmission request; RTT is tnEstimating the end-to-end time delay of the data transmission request at the moment, and determining the end-to-end round-trip time of the nth data transmission request; pinIs a scale factor.
Preferably, wherein the scale factor is calculated by:
wherein D istra(n-1)The number of the (n-1) th data transmission requests is shown, and P is the size of the data transmission request.
Preferably, the congestion degree is calculated by:
wherein g is a weighting factor, and the value range of g is (0, 1); f is the last time interval tρThe returned data transmission request completion ratio, alpha is the last time interval tρMaximum number of retransmissions for an intra-sent data transmission request, M being the last time interval tρThe data transmission request quantity of the internal testing party for completing transmission, T is the last time interval TρAnd the data transmission request quantity sent by the internal test end.
Preferably, the data transmission request completion ratio F is calculated by:
preferably, the data transmission request amount adjusting unit 204 of the next period is configured to adaptively and dynamically adjust the data transmission request amount to be sent of the next period according to an adjustment policy based on the available bandwidth, the congestion degree, and the load estimation value. Preferably, the data transmission request amount adjusting unit 204 of the next cycle is specifically configured to:
if the load estimation value is smaller than the threshold value of the load factor, the test end adopts a 'quick start' strategy to quickly increase the data transmission request quantity; wherein, the fast increase data transmission request amount is calculated by the following method:
wherein D istraAlpha is the increment factor of the data transmission request quantity, RTTminMinimum observed RTT value for the test end;
if the load estimation value is greater than the load factor threshold and less than or equal to the asynchronous feedback threshold, the test end increases the data transmission request quantity by adopting a 'smooth increase' strategy; wherein, the increase of the data transmission request amount is calculated by the following method:
if the load estimation value is greater than the asynchronous feedback threshold value and less than or equal to 1, the test end adopts a linear increase strategy to increase the data transmission request quantity; wherein the increase data transmission request amount is calculated by:
Dtra←Dtra+1;
if the load estimation value is larger than 1, the test end adopts a 'regression sending' strategy to reduce the data transmission request quantity and balance and converge on fair speed and transmission path utilization rate; wherein the reduction in data transmission request size is calculated in the following manner:
Dtra←Dtra·γ,
where γ is a data transmission request amount reduction ratio.
Preferably, the load factor segmentation threshold adjusting unit 205 is configured to perform optimal adjustment on the load factor segmentation threshold based on dynamic programming. Preferably, the segmentation threshold adjusting unit 205 of the load factor is specifically configured to:
step (1): carrying out initialization setting on adjustment parameters, wherein the adjustment parameters comprise: iteration number k, return upper limit n and load factor threshold range
Step (2): the method comprises the following steps of adjusting the request quantity of data transmission in real time according to a dynamic mechanism of an adjustment strategy, and performing traversal assignment on data within a load factor threshold range, wherein the method for performing traversal assignment on the data within the load factor threshold range comprises the following steps:
wherein the threshold is traversedRecord the historyThe data transmission request sent in the time period isThe test terminal completes the receiving of the data transmission requestTime ofAnd receive data volume
And (3): calculating the history thresholdThe test end data receiving rate and the receiving rate mean value, wherein the receiving rate has a calculation formula as follows:
the calculation formula of the mean receiving rate is as follows:
wherein V is the receiving rate of data transmission of the test end, R is the receiving data volume of the test end, t is the time for the test end to complete the data transmission request, and VkIs the mean value of the receiving rate; when the load factor threshold is takenWhen the temperature of the water is higher than the set temperature,in the data transmission process, the load factor of the test end isTime to complete receiving the data transmission request;the amount of received data in the process;for load factor thresholdThe test-end data reception rate of time.
And (4): comparing the difference value of the mean receiving rate of the two times with the receiving rate increase threshold value of the data at the test end,
if (V)k-Vk-1) > 0, thenCorresponding threshold value ofReduced to the set ρkIn, the set ρkAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominK is k +1, n is set to 0, and the step (2) is returned;
if 0 < (V)k-Vk-1) Selecting the maximum of the iterationIs marked as VmaxThe threshold value corresponding theretoIs assigned to rholK is k +1, by a threshold plThe dynamic transmission of the data is carried out,n is set to 0, if Vk≥VmaxRe-entering the step; if Vk<VmaxEntering the step (2);
if (V)k-Vk-1) If n is less than 0 and less than or equal to 3, k is k-1, and the set rho of the k iteration iskAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominN is n +1, and returns to step (2);
if (V)k-Vk-1) Less than 0 and n > 3, returning to the step (1), and optimizing the threshold value rholAnd optimizing in real time according to the network transmission state until the data transmission is finished.
The unified interface test and concurrent transmission system 200 of the electrical information acquisition system according to the embodiment of the present invention corresponds to the unified interface test and concurrent transmission method 100 of the electrical information acquisition system according to another embodiment of the present invention, and is not described herein again.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.
Claims (16)
1. A method for testing and transmitting concurrency of a unified interface of a power utilization information acquisition system is characterized by comprising the following steps:
taking the sum of the data transmission request quantity to be sent and the transmission data quantity of the previous period as the data transmission request quantity of the current period;
calculating a load estimation value according to the data request quantity to be transmitted and the maximum transmission quantity of the transmission path;
respectively calculating available bandwidth and congestion degree according to feedback information of a data request of the transmission data volume of the current period, wherein the feedback information comprises: data request response rate and data transmission request information;
the data transmission request quantity to be sent in the next period is adaptively and dynamically adjusted according to the available bandwidth, the congestion degree and the load estimation value and an adjustment strategy;
and optimally adjusting the segmentation threshold of the load factor based on dynamic programming.
2. The method of claim 1, wherein the load estimation value is calculated by:
wherein rho is a load estimation value; λ is per time interval tρThe data volume received by the test terminal;the average request queue number of the tester in unit time, namely the average data transmission request number; k is a radical ofqRelease rate for queue backlog; xi is the utilization rate of the transmission path, and C is the bottleneck bandwidth of the transmission channel.
3. The method of claim 1, wherein the available bandwidth is calculated by:
wherein, BnIs at tnThe estimated available bandwidth when the nth data request is transmitted; t is tn-1The moment when the data transmission of the (n-1) th data transmission request is finished; l isnThe amount of data transmitted for the nth data transmission request; RTT is tnEstimating the end-to-end time delay of the data transmission request at the moment, and determining the end-to-end round-trip time of the nth data transmission request; pinIs a scale factor.
5. The method of claim 1, wherein the congestion degree is calculated by:
wherein g is a weighting factor, and the value range of g is (0, 1); f is the last time interval tρThe returned data transmission request completion ratio, alpha is the last time interval tρAnd the maximum retransmission times of the internal sending data transmission request.
6. Method according to claim 5, characterized in that said last time interval tρThe method for calculating the returned data transmission request completion ratio F comprises the following steps:
where M is the last time interval tρThe data transmission request quantity of the internal testing party for completing transmission, T is the last time interval TρAnd the data transmission request quantity sent by the internal test end.
7. The method of claim 1, wherein the adaptively and dynamically adjusting the amount of data transmission requests to be sent in the next period according to the adjustment strategy based on the available bandwidth, the congestion degree and the load estimation value comprises:
if the load estimation value is smaller than the threshold value of the load factor, the test end adopts a 'quick start' strategy to quickly increase the data transmission request quantity; the calculation method for rapidly increasing the data transmission request amount comprises the following steps:
wherein D istraAlpha is the increment factor of the data transmission request quantity, RTTminMinimum observed RTT value for the test end;
if the load estimation value is greater than the load factor threshold and less than or equal to the asynchronous feedback threshold, the test end increases the data transmission request quantity by adopting a 'smooth increase' strategy; the calculation method for increasing the data transmission request amount comprises the following steps:
if the load estimation value is greater than the asynchronous feedback threshold value and less than or equal to 1, the test end adopts a linear increase strategy to increase the data transmission request quantity; the calculation method for increasing the data transmission request amount comprises the following steps:
Dtra←Dtra+1;
if the load estimation value is larger than 1, the test end adopts a 'regression sending' strategy to reduce the data transmission request quantity and balance and converge on fair speed and transmission path utilization rate; the calculation method for reducing the data transmission request amount comprises the following steps:
Dtra←Dtra·γ,
where γ is a data transmission request amount reduction ratio.
8. The method of claim 1, wherein the method for optimally adjusting the segment threshold of the load factor based on dynamic programming comprises:
step (1): carrying out initialization setting on adjustment parameters, wherein the adjustment parameters comprise: iteration number k, return upper limit n and load factor threshold rangeEnclose
Step (2): the method comprises the following steps of adjusting the request quantity of data transmission in real time according to a dynamic mechanism of an adjustment strategy, and performing traversal assignment on data within a load factor threshold range, wherein the method for performing traversal assignment on the data within the load factor threshold range comprises the following steps:
wherein the threshold is traversedRecord the historyThe data transmission request sent in the time period isThe test terminal completes the receiving of the data transmission requestTime ofAnd receive data volume
And (3): calculating the history thresholdThe test end data receiving rate and the receiving rate mean value, wherein the receiving rate has a calculation formula as follows:
the calculation formula of the mean receiving rate is as follows:
wherein V is the receiving rate of data transmission of the test end, R is the receiving data volume of the test end, t is the time for the test end to complete the data transmission request, and VkIs the mean value of the receiving rate; when the load factor threshold is takenWhen the temperature of the water is higher than the set temperature,in the data transmission process, the load factor of the test end isTime to complete receiving the data transmission request;the amount of received data in the process;for load factor thresholdThe data receiving rate of the time-dependent test end;
and (4): comparing the difference value of the mean receiving rate of the two times with the receiving rate increase threshold value of the data at the test end,
if (V)k-Vk-1) > 0, thenCorresponding threshold value ofReduced to the set ρkIn, the set ρkAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominK is k +1, n is set to 0, and the step (2) is returned;
if 0 < (V)k-Vk-1) Selecting the maximum of the iterationIs marked as VmaxThe threshold value corresponding theretoIs assigned to rholK is k +1, by a threshold plThe dynamic transmission of the data is carried out,n is set to 0, if Vk≥VmaxRe-entering the step; if Vk<VmaxEntering the step (2);
if (V)k-Vk-1) If n is less than 0 and less than or equal to 3, k is k-1, and the set rho of the k iteration iskAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominN is n +1, and returns to step (2);
if (V)k-Vk-1) Less than 0 and n > 3, returning to the step (1), and optimizing the threshold value rholOptimizing in real time according to the network transmission state until the data transmission is finished; wherein a threshold is increased for the test side data reception rate.
9. The utility model provides a unified interface test of power consumption information acquisition system and transmission system that sends out which characterized in that, the system includes: a waiting data request quantity calculating unit, a load estimation value calculating unit, an available bandwidth and congestion degree calculating unit, a data transmission request quantity adjusting unit of the next period and a segmentation threshold adjusting unit of a load factor,
the data request quantity to be transmitted calculating unit is used for taking the sum of the data transmission request quantity to be transmitted and the transmission data quantity of the previous period as the data request quantity to be transmitted of the current period;
the load estimation value calculation unit is used for calculating a load estimation value according to the data request quantity to be transmitted and the maximum transmission quantity of the transmission path;
the available bandwidth and congestion degree calculating unit is configured to calculate an available bandwidth and a congestion degree according to feedback information of a data request of a transmission data amount of a current period, respectively, where the feedback information includes: data request response rate and data transmission request information;
the data transmission request quantity adjusting unit of the next period is used for adaptively and dynamically adjusting the data transmission request quantity to be sent of the next period according to the available bandwidth, the congestion degree and the load estimation value and an adjusting strategy;
and the load factor segmentation threshold adjusting unit is used for optimally adjusting the segmentation threshold of the load factor based on dynamic programming.
10. The system of claim 9, wherein the load estimate is calculated by:
wherein rho is a load estimation value; λ is per time interval tρThe data volume received by the test terminal;the average request queue number of the tester in unit time, namely the average data transmission request number; k is a radical ofqRelease rate for queue backlog; xi is the utilization rate of the transmission path, and C is the bottleneck bandwidth of the transmission channel.
11. The system of claim 9, wherein the available bandwidth is calculated by:
wherein, BnIs at tnThe estimated available bandwidth when the nth data request is transmitted; t is tn-1The moment when the data transmission of the (n-1) th data transmission request is finished; l isnThe amount of data transmitted for the nth data transmission request; RTT is tnEstimating the end-to-end time delay of the data transmission request at the moment, and determining the end-to-end round-trip time of the nth data transmission request; pinIs a scale factor.
13. The system of claim 9, wherein the congestion degree is calculated by:
wherein g is a weighting factor, and the value range of g is (0, 1); f is the last time interval tρThe returned data transmission request completion ratio, alpha is the last time interval tρAnd the maximum retransmission times of the internal sending data transmission request.
14. The system of claim 13, wherein the last time interval tρThe returned data transmission request completion ratio F is calculated by:
where M is the last time interval tρThe data transmission request quantity of the internal testing party for completing transmission, T is the last time interval TρAnd the data transmission request quantity sent by the internal test end.
15. The system of claim 9, wherein the data transmission request amount adjustment unit of the next cycle is specifically configured to:
if the load estimation value is smaller than the threshold value of the load factor, the test end adopts a 'quick start' strategy to quickly increase the data transmission request quantity; wherein, the fast increase data transmission request amount is calculated by the following method:
wherein D istraAlpha is the increment factor of the data transmission request quantity, RTTminMinimum observed RTT value for the test end;
if the load estimation value is greater than the load factor threshold and less than or equal to the asynchronous feedback threshold, the test end increases the data transmission request quantity by adopting a 'smooth increase' strategy; wherein, the increase of the data transmission request amount is calculated by the following method:
if the load estimation value is greater than the asynchronous feedback threshold value and less than or equal to 1, the test end adopts a linear increase strategy to increase the data transmission request quantity; wherein the increase data transmission request amount is calculated by:
Dtra←Dtra+1;
if the load estimation value is larger than 1, the test end adopts a 'regression sending' strategy to reduce the data transmission request quantity and balance and converge on fair speed and transmission path utilization rate; wherein the reduction in data transmission request size is calculated in the following manner:
Dtra←Dtra·γ,
where γ is a data transmission request amount reduction ratio.
16. The system according to claim 9, wherein the segment threshold adjustment unit of the load factor is specifically configured to:
step (1): carrying out initialization setting on adjustment parameters, wherein the adjustment parameters comprise: iteration number k, return upper limit n and load factor threshold range
Step (2): the method comprises the following steps of adjusting the request quantity of data transmission in real time according to a dynamic mechanism of an adjustment strategy, and performing traversal assignment on data within a load factor threshold range, wherein the method for performing traversal assignment on the data within the load factor threshold range comprises the following steps:
wherein the threshold is traversedRecord the historyThe data transmission request sent in the time period isThe test terminal completes the receiving of the data transmission requestTime ofAnd receive data volume
And (3): calculating the history thresholdThe test end data receiving rate and the receiving rate mean value, wherein the receiving rate has a calculation formula as follows:
the calculation formula of the mean receiving rate is as follows:
wherein V is the receiving rate of data transmission of the test end, R is the receiving data volume of the test end, t is the time for the test end to complete the data transmission request, and VkIs the mean value of the receiving rate; when the load factor threshold is takenWhen the temperature of the water is higher than the set temperature,in the data transmission process, the load factor of the test end isTime to complete receiving the data transmission request;the amount of received data in the process;for load factor thresholdThe data receiving rate of the time-dependent test end;
and (4): comparing the difference value of the mean receiving rate of the two times with the receiving rate increase threshold value of the data at the test end,
if (V)k-Vk-1) > 0, thenCorresponding threshold value ofReduced to the set ρkIn, the set ρkAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominK is k +1, n is set to 0, and the step (2) is returned;
if 0 < (V)k-Vk-1) Selecting the maximum of the iterationIs marked as VmaxThe threshold value corresponding theretoIs assigned to rholK is k +1, by a threshold plThe dynamic transmission of the data is carried out,n is set to 0, if Vk≥VmaxRe-entering the step; if Vk<VmaxEntering the step (2);
if (V)k-Vk-1) If n is less than 0 and less than or equal to 3, k is k-1, and the set rho of the k iteration iskAssigning the internal maximum value to rhomaxThe minimum value is assigned to rhominN is n +1, and returns to step (2);
if (V)k-Vk-1) < 0 and n > 3, return to step (a)1) Optimum threshold value rholOptimizing in real time according to the network transmission state until the data transmission is finished; wherein a threshold is increased for the test side data reception rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710494852.4A CN107276850B (en) | 2017-06-26 | 2017-06-26 | Method and system for testing and transmitting unified interface of electricity consumption information acquisition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710494852.4A CN107276850B (en) | 2017-06-26 | 2017-06-26 | Method and system for testing and transmitting unified interface of electricity consumption information acquisition system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107276850A CN107276850A (en) | 2017-10-20 |
CN107276850B true CN107276850B (en) | 2020-11-03 |
Family
ID=60068888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710494852.4A Active CN107276850B (en) | 2017-06-26 | 2017-06-26 | Method and system for testing and transmitting unified interface of electricity consumption information acquisition system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107276850B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290428B (en) * | 2019-06-26 | 2021-08-20 | 腾讯科技(深圳)有限公司 | Congestion control method, device, terminal and storage medium |
CN110311756B (en) * | 2019-07-08 | 2022-06-07 | 山东省地质矿产勘查开发局八〇一水文地质工程地质大队 | Underground substance detection monitoring system and detection monitoring method |
CN110661727B (en) * | 2019-08-14 | 2022-09-30 | 平安普惠企业管理有限公司 | Data transmission optimization method and device, computer equipment and storage medium |
CN111935025B (en) * | 2020-07-08 | 2023-10-17 | 腾讯科技(深圳)有限公司 | Control method, device, equipment and medium for TCP transmission performance |
CN116192759B (en) * | 2022-12-13 | 2024-08-30 | 网易(杭州)网络有限公司 | Data transmission amount adjusting method and device, electronic equipment and storage medium |
CN117952506B (en) * | 2024-03-18 | 2024-06-18 | 青岛山科人工智能有限公司 | Topology structure updating method, medium and system of modularized conveying line system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953351A (en) * | 2005-10-21 | 2007-04-25 | 国际商业机器公司 | Method and apparatus for adaptive bandwidth control with a bandwidth guarantee |
CN101056259A (en) * | 2007-05-21 | 2007-10-17 | 中南大学 | A collaborative congestion control method for high-speed network |
CN101075960A (en) * | 2007-06-22 | 2007-11-21 | 清华大学 | Method for controlling fluid based on router virtual display load feedback in high-speed network |
CN101964755A (en) * | 2010-11-03 | 2011-02-02 | 中南大学 | Explicit congestion control method based on bandwidth estimation in high-bandwidth delay network |
CN102104912A (en) * | 2011-03-24 | 2011-06-22 | 黄东 | Heterogeneous service-based congestion control method for wireless mesh network |
CN104092625A (en) * | 2014-05-28 | 2014-10-08 | 中南大学 | Adaptive request batch scheduling method used in DCN |
CN104202257A (en) * | 2014-09-12 | 2014-12-10 | 大连大学 | Satellite network congestion control method based on bandwidth estimation |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1249972A1 (en) * | 2001-04-09 | 2002-10-16 | Telefonaktiebolaget L M Ericsson (Publ) | Method of controlling a queue buffer |
CN101388833A (en) * | 2008-07-18 | 2009-03-18 | 广东工业大学 | Network controlling method based on adaptive threshold mechanism |
US8130776B1 (en) * | 2009-08-28 | 2012-03-06 | Massachusetts Institute Of Technology | Method and apparatus providing network coding based flow control |
US9148623B2 (en) * | 2013-06-11 | 2015-09-29 | Qualcomm Incorporated | Apparatus and methods for modem assisted video telephony |
-
2017
- 2017-06-26 CN CN201710494852.4A patent/CN107276850B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953351A (en) * | 2005-10-21 | 2007-04-25 | 国际商业机器公司 | Method and apparatus for adaptive bandwidth control with a bandwidth guarantee |
CN101056259A (en) * | 2007-05-21 | 2007-10-17 | 中南大学 | A collaborative congestion control method for high-speed network |
CN101075960A (en) * | 2007-06-22 | 2007-11-21 | 清华大学 | Method for controlling fluid based on router virtual display load feedback in high-speed network |
CN101964755A (en) * | 2010-11-03 | 2011-02-02 | 中南大学 | Explicit congestion control method based on bandwidth estimation in high-bandwidth delay network |
CN102104912A (en) * | 2011-03-24 | 2011-06-22 | 黄东 | Heterogeneous service-based congestion control method for wireless mesh network |
CN104092625A (en) * | 2014-05-28 | 2014-10-08 | 中南大学 | Adaptive request batch scheduling method used in DCN |
CN104202257A (en) * | 2014-09-12 | 2014-12-10 | 大连大学 | Satellite network congestion control method based on bandwidth estimation |
Non-Patent Citations (2)
Title |
---|
One more bit is enough;Yong Xia;《ACM SIGCOMM Computer Communication Review》;20050826;第2005卷(第4期);37-48 * |
具有显式反馈的拥塞控制系统研究进展;张慧翔;《计算机科学》;20071225;第34卷(第12期);18-36 * |
Also Published As
Publication number | Publication date |
---|---|
CN107276850A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107276850B (en) | Method and system for testing and transmitting unified interface of electricity consumption information acquisition system | |
CN114145001B (en) | Rate optimized congestion management | |
EP2754274B1 (en) | A method for avoiding network congestion and an apparatus thereof | |
US9178789B2 (en) | System and method for transmission control protocol slow-start | |
CN104994036B (en) | A kind of dynamic data dispatching method in multi-path transmission protocol | |
CN105049369A (en) | Video transmission congestion control method based on MPTCP in heterogeneous wireless network | |
RU2008101646A (en) | BACKGROUND JOINT USE OF NETWORK BANDWAY AFTER GATEWAY DEVICES | |
CN103905328A (en) | Data transmission control system and method and related equipment | |
CN102594434B (en) | Method for improving satellite network-oriented transmission control mechanism | |
US20220248259A1 (en) | Data processing method and apparatus | |
CN117938755B (en) | Data flow control method, network switching subsystem and intelligent computing platform | |
Wang et al. | OSIA: Out-of-order Scheduling for In-order Arriving in concurrent multi-path transfer | |
CN110380978A (en) | Dispatching method, device, computer equipment and the storage medium of multi-path transmission | |
CN102143551B (en) | Wireless competition access control backoff method based on network load forecast | |
Lu et al. | FAMD: A Flow-Aware Marking and Delay-based TCP algorithm for datacenter networks | |
CN109787861B (en) | Network data delay control method | |
Yildirim et al. | Balancing tcp buffer vs parallel streams in application level throughput optimization | |
CN109150743B (en) | Network congestion control strategy switching method and system | |
US8767746B1 (en) | Wireless scheduler bandwidth estimation for quick start | |
WO2021013260A1 (en) | Network transmission control method and apparatus | |
US20140237136A1 (en) | Communication system, communication controller, communication control method, and medium | |
Zhuang et al. | PTCP: A priority-driven congestion control algorithm to tame TCP incast in data centers | |
Lu et al. | On parallel UDP-based transport control over dedicated connections | |
Heo et al. | Reducing the flow completion time for multipath TCP | |
US10516770B2 (en) | Transmitting entity and method performed thereby for transmitting one or more data packets to a receiving entity |
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 |