CN112422359A - Method and server for adjusting upper and lower limit values of network transmission rate - Google Patents

Method and server for adjusting upper and lower limit values of network transmission rate Download PDF

Info

Publication number
CN112422359A
CN112422359A CN202011001228.4A CN202011001228A CN112422359A CN 112422359 A CN112422359 A CN 112422359A CN 202011001228 A CN202011001228 A CN 202011001228A CN 112422359 A CN112422359 A CN 112422359A
Authority
CN
China
Prior art keywords
value
limit value
variance
lower limit
server
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.)
Withdrawn
Application number
CN202011001228.4A
Other languages
Chinese (zh)
Inventor
向湘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xiuyuan Cultural Creative Co Ltd
Original Assignee
Shenzhen Xiuyuan Cultural Creative Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Xiuyuan Cultural Creative Co Ltd filed Critical Shenzhen Xiuyuan Cultural Creative Co Ltd
Priority to CN202011001228.4A priority Critical patent/CN112422359A/en
Publication of CN112422359A publication Critical patent/CN112422359A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold 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 application discloses a method and a server for adjusting upper and lower limit values of a network transmission rate, which are used for dynamically analyzing data fluctuation conditions. The method comprises the following steps: the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time; the server collects a group of sample data, wherein the sample data is at least more than two sample data; the server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples; and the server judges whether the variance is greater than a preset value, if so, the server adjusts the upper limit value and the lower limit value according to the variance.

Description

Method and server for adjusting upper and lower limit values of network transmission rate
Technical Field
The embodiment of the application relates to the field of data processing, in particular to a method and a server for adjusting upper and lower limit values of a network transmission rate.
Background
With the continuous development of data networks, the data volume in the society is larger and larger at present. The server can obtain a large amount of data samples and analyze the data samples to draw a conclusion, which is a process of processing big data.
For some scenarios, the user needs to know the data fluctuation situation, such as the network transmission scenario, and the user wants to know whether the network transmission rate is substantially stable. However, in the prior art, the processing method for the user to know the data fluctuation situation is to set a fixed upper threshold value and a fixed lower threshold value, count the times of the real-time data exceeding the upper threshold/the lower threshold within a period of time, and then obtain the data fluctuation situation according to the times.
In the prior art, once the threshold value is set, the threshold value cannot be changed after the test is started, but the network transmission scene is very complex, the factors influencing the network transmission are many, and the prior art is difficult to meet the requirement of dynamically analyzing data fluctuation.
Disclosure of Invention
The embodiment of the application provides a method and a server for adjusting upper and lower limit values of a network transmission rate, so as to realize dynamic analysis of data fluctuation.
A first aspect of the embodiments of the present application provides a method for adjusting upper and lower limit values of a network transmission rate, including:
the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
the server acquires a group of sample data, wherein the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data acquired within a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
the server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
and the server judges whether the variance is greater than a preset value, if so, the server adjusts the upper limit value and the lower limit value according to the variance.
Optionally, after the server determines whether the variance is greater than a preset value, the method further includes:
if not, the server keeps the upper limit value and the lower limit value unchanged, collects the next group of data, and calculates the variance again according to the next group of data.
Optionally, before the server adjusts the upper limit value and the lower limit value according to the variance, the method further includes:
the server sets a value N and a value M, wherein the value N is obtained by averaging the sum of the initial upper limit value and the initial lower limit value, the value M is half of the value N, and the server adjusts the upper limit value and the lower limit value according to the variance, the value N and the value M.
Optionally, the adjusting, by the server, the upper limit value and the lower limit value according to the variance includes:
when the variance is larger than the value N, the server determines a difference value A between the variance and the value N, and the server adjusts the upper limit value to be:
(1+ (A/N)) original upper limit value,
the server adjusts the lower limit value to be:
the original lower limit value/(1 + (A/N));
when the variance is smaller than the value M, the server determines a difference B between the variance and the value M, and the server adjusts the upper limit value to be:
the original upper limit value/(1 + (B/M)),
the server adjusts the lower limit value to be:
(1+ (B/M)) original lower limit value.
Optionally, the server adjusts the upper limit value and the lower limit value according to the variance, and the method further includes:
when the variance is smaller than the value M, if the adjusted upper limit value is smaller than the adjusted lower limit value, the server keeps the adjusted upper limit value unchanged, and the server adjusts the lower limit value to:
(1-C) the adjusted upper limit numerical value, wherein the numerical value C is the proportion of the sample data exceeding the initial upper limit numerical value or lower limit numerical value in the sample data.
A second aspect of the embodiments of the present application provides a server, including:
the device comprises a setting unit, a data transmission unit and a control unit, wherein the setting unit is used for setting an initial upper limit value and a lower limit value, the upper limit value refers to the maximum value of the quantity of data transmitted by a data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
the server comprises a collecting unit, a processing unit and a processing unit, wherein the collecting unit is used for collecting a group of sample data, the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data collected in a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
the calculating unit is used for calculating a variance according to the sample data, wherein the variance is the average of the square values of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
the judging unit is used for judging whether the variance is larger than a preset value;
and the adjusting unit is used for adjusting the upper limit value and the lower limit value according to the variance after the judging unit judges that the variance is larger than a preset value.
Optionally, after the determining unit determines that the variance is smaller than a preset value, the server further includes:
and the holding unit is used for keeping the upper limit value and the lower limit value unchanged, collecting the next group of data and calculating the variance again according to the next group of data.
Optionally, before the adjusting unit adjusts the upper limit value and the lower limit value according to the variance, the server further includes:
the server comprises a setting unit, a calculating unit and a processing unit, wherein the setting unit is used for setting a numerical value N and a numerical value M, the numerical value N is obtained by averaging the sum of the initial upper limit numerical value and the initial lower limit numerical value, the numerical value M is half of the numerical value N, and the server adjusts the upper limit numerical value and the lower limit numerical value according to the variance, the numerical value N and the numerical value M.
Optionally, the adjusting unit includes:
a first determining module, configured to determine a difference a between the variance and the value N when the variance is greater than the value N;
a first adjusting module, configured to adjust the upper limit value to:
(1+ (a/N)) original upper limit value;
a second adjusting module, configured to adjust the lower limit value to:
the original lower limit value/(1 + (A/N));
a second determining module, configured to determine a difference B between the variance and the value M when the variance is smaller than the value M;
a third adjusting module, configured to adjust the upper limit value to:
the original upper limit value/(1 + (B/M));
a fourth adjusting module, configured to adjust the lower limit value to:
(1+ (B/M)) original lower limit value.
Optionally, the adjusting unit further includes:
a holding module, configured to, when the variance is smaller than the value M, keep the adjusted upper limit value unchanged if the adjusted upper limit value is smaller than the adjusted lower limit value;
a fifth adjusting module, configured to adjust the lower limit value to:
(1-C) the adjusted upper limit numerical value, wherein the numerical value C is the proportion of the sample data exceeding the initial upper limit numerical value or lower limit numerical value in the sample data.
A third aspect of the embodiments of the present application provides a server, including:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the processor performs the following operations:
the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
the server acquires a group of sample data, wherein the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data acquired within a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
the server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
and the server judges whether the variance is greater than a preset value, if so, the server adjusts the upper limit value and the lower limit value according to the variance.
An embodiment of the present application provides a computer-readable storage medium, where a program is stored on the computer-readable storage medium, and when the program is executed on a computer, the method for adjusting an upper and lower limit value of a network transmission rate according to any one of the above first aspects is executed.
According to the technical scheme, the embodiment of the application has the following advantages:
in the invention, an initial upper limit value and an initial lower limit value are set, and after a server operates, a group of sample data is collected, and the upper limit value and the lower limit value are dynamically adjusted according to the sample data, so that the data fluctuation condition is dynamically analyzed.
Drawings
Fig. 1 is a schematic flow chart illustrating an embodiment of a method for adjusting upper and lower limit values of a network transmission rate in an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a method for adjusting upper and lower limits of a network transmission rate according to another embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating an embodiment of a server according to the present application;
FIG. 4 is a flow chart of another embodiment of a server in the present application;
fig. 5 is a schematic flowchart of another embodiment of a server in the embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of the present invention.
The application provides a method and a server for adjusting upper and lower limit values of a network transmission rate, so as to realize dynamic analysis of data fluctuation.
It should be noted that, in the present application, the upper limit value and the lower limit value adjusted by the server are not only applicable to the network transmission rate, but also applicable to other networks, and the present application is not limited specifically.
Referring to fig. 1, an embodiment of a method for adjusting upper and lower limits of a network transmission rate in an embodiment of the present application includes:
101. the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
it should be noted that the transmission rate refers to the highest transmission rate theoretically achievable by the MODEM, i.e., the size of data transmitted per second, and is measured in units of T20P0255s (bits per second). The network transfer rate generally refers to the rate at which data is transferred from one point to another, such as the rate at which print data is transferred from a network node to a print server, the rate at which modems transfer data, the rate at which channels transfer data, and so forth.
In this embodiment, the upper limit value and the lower limit value are random default original data, for example, for a network transmission rate, the upper limit value may be 200M/s, and the lower limit value may be 60M/s, which is not limited in this embodiment.
102. The server acquires a group of sample data, wherein the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data acquired within a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
it should be noted that in the embodiment of the present application, when the server operates, a lot of data may be generated, and the server may randomly collect a plurality of sample data according to the data, and count the situations that the upper limit value and the lower limit value of the data are exceeded. For example, for network transmission rate, 10 samples of data are collected over a period of time: 30M/s, 20M/s, 140M/s, 90M/s, 230M/s, 270M/s, 400M/s, 210M/s, 330M/s, 260M/s, and using the ten times of sample data as a group of sample data.
103. The server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
in the embodiment of the present application, the larger the variance is, the larger the difference between the upper limit value and the lower limit value is, and the smaller the variance is, the smaller the difference between the upper limit value and the lower limit value is.
104. The server judges whether the variance is larger than a preset value, if so, the step 105 is executed;
it should be noted that, in the embodiment of the present application, a preset value is preset, and the preset value is set manually according to an actual situation.
When a group of sample data of network transmission rate is acquired, the variance of the group of sample data is calculated according to the variance calculation mode, the calculated variance is compared with a preset value, and if the calculated variance is greater than the preset value, the step 105 is executed.
105. And the server adjusts the upper limit value and the lower limit value according to the variance.
It should be noted that, in the embodiment of the present application, the upper limit value and the lower limit value are dynamically set, that is, in the first time, default original data is set, after the server operates, after the upper limit value and the lower limit value are adjusted according to the acquired data condition, the acquisition work and the work of adjusting the upper limit value and the lower limit value still do not stop, the server will continue to acquire the next set of sample data, continue to calculate the variance, and adjust the upper limit value and the lower limit value according to whether the magnitude of the variance is greater than a preset value.
The specific adjustment of the upper limit value and the lower limit value will be described in detail in the following examples.
In the embodiment of the application, an initial upper limit value and an initial lower limit value are set, and after a server operates, a group of sample data is collected, and the upper limit value and the lower limit value are dynamically adjusted according to the sample data, so that the data fluctuation condition is dynamically analyzed.
The method for adjusting the upper and lower limit values of the network transmission rate is roughly described above, and a detailed description will be given below.
Referring to fig. 2, another embodiment of the method for adjusting the upper and lower limit values of the network transmission rate in the embodiment of the present application includes:
201. the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
202. the server acquires a group of sample data, wherein the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data acquired within a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
203. the server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
steps 201 to 203 in this embodiment are similar to steps 101 to 103 in the previous embodiment, and are not described again here.
204. The server judges whether the variance is larger than a preset value;
it should be noted that, in this embodiment of the application, the server determines whether the variance is greater than a preset value, and if so, executes step 205; if the value is smaller than the preset value, step 207 is executed.
205. The server sets a value N and a value M, wherein the value N is obtained by averaging the sum of the initial upper limit value and the initial lower limit value, the value M is half of the value N, and the server adjusts the upper limit value and the lower limit value according to the variance, the value N and the value M;
it should be noted that, in the embodiment of the present application, the value N and the value M are not fixed values, and may be changed according to sample data acquired by the server each time.
206. The server adjusts the upper limit value and the lower limit value according to the variance;
it should be noted that, in the embodiment of the present application, the method for adjusting the upper limit value and the lower limit value is specifically divided into three cases:
the first is that when the variance is greater than the value N, the server determines the difference a between the variance and the value N, and the server adjusts the upper limit value to:
(1+ (A/N)) original upper limit value,
the server adjusts the lower limit value to:
the original lower limit value/(1 + (A/N));
secondly, when the variance is smaller than the value M, the server determines a difference B between the variance and the value M, and the server adjusts the upper limit value to:
the original upper limit value/(1 + (B/M)),
the server adjusts the lower limit value to:
(1+ (B/M)) original lower limit value.
Thirdly, when the variance is smaller than the value M, if the adjusted upper limit value is smaller than the adjusted lower limit value, the server keeps the adjusted upper limit value unchanged, and the server adjusts the lower limit value to:
C) the adjusted upper limit numerical value, wherein the numerical value C is the proportion of the sample data exceeding the initial upper limit numerical value or lower limit numerical value in the sample data.
It should be noted that after the upper limit value is adjusted, step 208 is directly executed.
207. The server keeps the upper limit value and the lower limit value unchanged;
208. and collecting the next group of data, and calculating the variance according to the next group of data again.
The steps in this embodiment are similar to those in the embodiment described in fig. 1, and are not described again here.
In the embodiment of the application, the variance calculation is carried out on the sample data acquired in real time, the upper limit numerical value and the lower limit numerical value are adjusted differently according to the variance result, the adjusted upper limit numerical value and the adjusted lower limit numerical value are used for carrying out a new round of calculation adjustment on the newly acquired sample data, the numerical value can be dynamically adjusted by the server according to the fluctuation condition of the sample data, and the requirement of dynamic analysis is met.
The above describes the method for adjusting the upper and lower limit values of the network transmission rate, and the following describes the server:
referring to fig. 3, an embodiment of a server in the embodiment of the present application includes:
a setting unit 301, configured to set an initial upper limit value and a lower limit value, where the upper limit value refers to a maximum value of the number of data transmitted by the data channel in a unit time, and the lower limit value refers to a minimum value of the number of data transmitted by the data channel in the unit time;
the acquisition unit 302 is configured to acquire a set of sample data, where the sample data is network transmission rate data generated when the server actually operates, and the network transmission rate data acquired within a period of time is used as a set of sample data, where the sample data is at least two sample data;
a calculating unit 303, configured to calculate a variance according to the sample data, where the variance is an average of squared values of differences between each sample value and a whole sample mean, and the smaller the variance is, the more stable the set of sample data is, and the larger the variance is, the more unstable the set of sample data is;
a determining unit 304, configured to determine whether the variance is greater than a preset value;
an adjusting unit 305, configured to adjust the upper limit value and the lower limit value according to the variance after the determining unit 305 determines that the variance is greater than a preset value.
In this embodiment, the functions of the units of the server correspond to the steps in the embodiment shown in fig. 1, and are not described herein again.
In the embodiment of the application, the setting unit 301 sets an initial upper limit value and an initial lower limit value, after the server runs, the acquisition unit 302 acquires a group of sample data, and the adjustment unit 305 dynamically adjusts the upper limit value and the lower limit value according to the sample data, so as to dynamically analyze the data fluctuation.
The functions of the units of the server are described in general above, and a detailed description of the functions of the units of the server is provided below.
Referring to fig. 4, in the embodiment of the present application, another embodiment of the server includes:
a setting unit 401, configured to set an initial upper limit value and a lower limit value, where the upper limit value refers to a maximum value of the number of data transmitted by the data path in a unit time, and the lower limit value refers to a minimum value of the number of data transmitted by the data path in the unit time;
the acquisition unit 402 is configured to acquire a set of sample data, where the sample data is network transmission rate data generated when the server actually operates, and the network transmission rate data acquired within a period of time is used as a set of sample data, where the sample data is at least two sample data;
a calculating unit 403, configured to calculate a variance according to the sample data, where the variance is an average of squared values of differences between each sample value and the whole sample mean, and the smaller the variance is, the more stable the set of sample data is, and the larger the variance is, the more unstable the set of sample data is;
a determining unit 404, configured to determine whether the variance is greater than a preset value;
a setting unit 405, configured to set a value N and a value M after the determining unit 404 determines that the variance is greater than a preset value, where the value N is obtained by averaging a sum of the initial upper limit value and the initial lower limit value, and the value M is half of the value N, and the server adjusts the upper limit value and the lower limit value according to the variance, the value N, and the value M;
an adjusting unit 406, configured to adjust the upper limit value and the lower limit value according to the variance after the setting unit 405 sets the value N and the value M;
and a holding unit 407, configured to, after the determining unit determines that the variance is smaller than the preset value, hold the upper limit value and the lower limit value unchanged, collect a next set of data, and calculate the variance again according to the next set of data.
In this embodiment, the adjusting unit 406 further includes:
a first determining module 4061, configured to determine a difference a between the variance and the value N when the variance is greater than the value N;
a first adjusting module 4062, configured to adjust the upper limit value to:
(1+ (a/N)) original upper limit value;
a second adjusting module 4063, configured to adjust the lower limit value to:
the original lower limit value/(1 + (A/N));
a second determining module 4064, configured to determine a difference B between the variance and the value M when the variance is smaller than the value M;
a third adjusting module 4065, configured to adjust the upper limit value to:
the original upper limit value/(1 + (B/M));
a fourth adjusting module 4066, configured to adjust the lower limit value to:
(1+ (B/M)) original lower limit value.
A holding module 4067, configured to, when the variance is smaller than the value M, keep the adjusted upper limit value unchanged if the adjusted upper limit value is smaller than the adjusted lower limit value;
a fifth adjusting module 4068, configured to adjust the lower limit value to:
(1-C) the adjusted upper limit numerical value, wherein the numerical value C is the proportion of the sample data exceeding the initial upper limit numerical value or lower limit numerical value in the sample data.
In the embodiment of the present application, the functions of each unit module correspond to the steps in the embodiments shown in fig. 1 to fig. 2, and are not described herein again.
Referring to fig. 5, another embodiment of the server in the embodiment of the present application includes:
a processor 501, a memory 502, an input-output unit 503, and a bus 504;
the processor 501 is connected with the memory 502, the input/output unit 503 and the bus 504;
the processor 501 performs the following operations:
the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
the server acquires a group of sample data, wherein the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data acquired within a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
the server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
and the server judges whether the variance is greater than a preset value, if so, the server adjusts the upper limit value and the lower limit value according to the variance.
In this embodiment, the functions of the processor 501 correspond to the steps in the embodiments shown in fig. 1 to fig. 2, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (10)

1. A method for adjusting upper and lower limit values of network transmission rate is characterized by comprising the following steps:
the server sets an initial upper limit value and an initial lower limit value, wherein the upper limit value refers to the maximum value of the quantity of data transmitted by the data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
the server acquires a group of sample data, wherein the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data acquired within a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
the server calculates a variance according to the sample data, wherein the variance is the average of the square value of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
and the server judges whether the variance is greater than a preset value, if so, the server adjusts the upper limit value and the lower limit value according to the variance.
2. The method of claim 1, wherein after the server determines whether the variance is greater than a predetermined value, the method further comprises:
if not, the server keeps the upper limit value and the lower limit value unchanged, collects the next group of data, and calculates the variance again according to the next group of data.
3. The method of claim 1, wherein before the server adjusts the upper limit value and the lower limit value according to the variance, the method further comprises:
the server sets a value N and a value M, wherein the value N is obtained by averaging the sum of the initial upper limit value and the initial lower limit value, the value M is half of the value N, and the server adjusts the upper limit value and the lower limit value according to the variance, the value N and the value M.
4. The method of claim 3, wherein the server adjusts the upper limit value and the lower limit value according to the variance, comprising:
when the variance is larger than the value N, the server determines a difference value A between the variance and the value N, and the server adjusts the upper limit value to be:
(1+ (A/N)) original upper limit value,
the server adjusts the lower limit value to be:
the original lower limit value/(1 + (A/N));
when the variance is smaller than the value M, the server determines a difference B between the variance and the value M, and the server adjusts the upper limit value to be:
the original upper limit value/(1 + (B/M)),
the server adjusts the lower limit value to be:
(1+ (B/M)) original lower limit value.
5. The method of claim 3, wherein the server adjusts the upper limit value and the lower limit value according to the variance, the method further comprising:
when the variance is smaller than the value M, if the adjusted upper limit value is smaller than the adjusted lower limit value, the server keeps the adjusted upper limit value unchanged, and the server adjusts the lower limit value to:
(1-C) the adjusted upper limit numerical value, wherein the numerical value C is the proportion of the sample data exceeding the initial upper limit numerical value or lower limit numerical value in the sample data.
6. A server, comprising:
the device comprises a setting unit, a data transmission unit and a control unit, wherein the setting unit is used for setting an initial upper limit value and a lower limit value, the upper limit value refers to the maximum value of the quantity of data transmitted by a data channel in unit time, and the lower limit value refers to the minimum value of the quantity of data transmitted by the data channel in unit time;
the server comprises a collecting unit, a processing unit and a processing unit, wherein the collecting unit is used for collecting a group of sample data, the sample data is network transmission rate data generated when the server actually operates, the network transmission rate data collected in a period of time is used as a group of sample data, and the sample data is at least more than two sample data;
the calculating unit is used for calculating a variance according to the sample data, wherein the variance is the average of the square values of the difference between each sample value and the average value of all samples, the smaller the variance is, the more stable the group of sample data is represented, and the larger the variance is, the more unstable the group of sample data is represented;
the judging unit is used for judging whether the variance is larger than a preset value;
and the adjusting unit is used for adjusting the upper limit value and the lower limit value according to the variance after the judging unit judges that the variance is larger than a preset value.
7. The server according to claim 6, wherein after the determining unit determines that the variance is smaller than a preset value, the server further comprises:
and the holding unit is used for keeping the upper limit value and the lower limit value unchanged, collecting the next group of data and calculating the variance again according to the next group of data.
8. The method of claim 6, wherein before the adjusting unit adjusts the upper limit value and the lower limit value according to the variance, the server further comprises:
the server comprises a setting unit, a calculating unit and a processing unit, wherein the setting unit is used for setting a numerical value N and a numerical value M, the numerical value N is obtained by averaging the sum of the initial upper limit numerical value and the initial lower limit numerical value, the numerical value M is half of the numerical value N, and the server adjusts the upper limit numerical value and the lower limit numerical value according to the variance, the numerical value N and the numerical value M.
9. The method of claim 8, wherein the adjustment unit comprises:
a first determining module, configured to determine a difference a between the variance and the value N when the variance is greater than the value N;
a first adjusting module, configured to adjust the upper limit value to:
(1+ (a/N)) original upper limit value;
a second adjusting module, configured to adjust the lower limit value to:
the original lower limit value/(1 + (A/N));
a second determining module, configured to determine a difference B between the variance and the value M when the variance is smaller than the value M;
a third adjusting module, configured to adjust the upper limit value to:
the original upper limit value/(1 + (B/M));
a fourth adjusting module, configured to adjust the lower limit value to:
(1+ (B/M)) original lower limit value.
10. The method of claim 8, wherein the adjustment unit further comprises:
a holding module, configured to, when the variance is smaller than the value M, keep the adjusted upper limit value unchanged if the adjusted upper limit value is smaller than the adjusted lower limit value;
a fifth adjusting module, configured to adjust the lower limit value to:
(1-C) the adjusted upper limit numerical value, wherein the numerical value C is the proportion of the sample data exceeding the initial upper limit numerical value or lower limit numerical value in the sample data.
CN202011001228.4A 2020-09-22 2020-09-22 Method and server for adjusting upper and lower limit values of network transmission rate Withdrawn CN112422359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011001228.4A CN112422359A (en) 2020-09-22 2020-09-22 Method and server for adjusting upper and lower limit values of network transmission rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011001228.4A CN112422359A (en) 2020-09-22 2020-09-22 Method and server for adjusting upper and lower limit values of network transmission rate

Publications (1)

Publication Number Publication Date
CN112422359A true CN112422359A (en) 2021-02-26

Family

ID=74854028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011001228.4A Withdrawn CN112422359A (en) 2020-09-22 2020-09-22 Method and server for adjusting upper and lower limit values of network transmission rate

Country Status (1)

Country Link
CN (1) CN112422359A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050147033A1 (en) * 2003-10-31 2005-07-07 Yi-Lon Chin Method of controlling data flow for a media player system
CN104423529A (en) * 2013-08-30 2015-03-18 华为技术有限公司 CPU (central processing unit) state adjustment method and device
CN108449232A (en) * 2018-03-25 2018-08-24 东莞市华睿电子科技有限公司 A kind of method of network speed self adaptive control
CN110213827A (en) * 2019-05-24 2019-09-06 南京理工大学 Vehicle data collection frequency dynamic adjusting method based on deeply study

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050147033A1 (en) * 2003-10-31 2005-07-07 Yi-Lon Chin Method of controlling data flow for a media player system
CN104423529A (en) * 2013-08-30 2015-03-18 华为技术有限公司 CPU (central processing unit) state adjustment method and device
CN108449232A (en) * 2018-03-25 2018-08-24 东莞市华睿电子科技有限公司 A kind of method of network speed self adaptive control
CN110213827A (en) * 2019-05-24 2019-09-06 南京理工大学 Vehicle data collection frequency dynamic adjusting method based on deeply study

Similar Documents

Publication Publication Date Title
CN107124445B (en) data acquisition method and device
CN109039819B (en) Time delay statistical method, device, system and storage medium
CN110572297A (en) Network performance evaluation method, server and storage medium
CN108449232B (en) Network speed self-adaptive control method
CN104202220A (en) Pressure test method and pressure test device
CN110377521B (en) Target object verification method and device
CN110896357B (en) Flow prediction method, device and computer readable storage medium
CN109067607B (en) Method and device for adjusting rated bandwidth
CN107395521B (en) Big data information processing method and system based on Internet of things
CN111143143A (en) Performance test method and device
US20090138238A1 (en) Sequential fixed-point quantile estimation
CN116366497A (en) Big data-based Internet of things card time sequence anomaly detection system
CN117591850B (en) Data processing method and device based on docking station, electronic equipment and medium
DE112015006287B4 (en) information processing device
CN112422359A (en) Method and server for adjusting upper and lower limit values of network transmission rate
CN112988892B (en) Distributed system hot spot data management method
CN112566170A (en) Network quality evaluation method, device, server and storage medium
CN109858632B (en) Method and device for determining threshold
CN114826767A (en) Cloud platform prevents hot wall protection management and control system based on cloud connects
CN107182067B (en) Network optimization method and device
DE112015006629T5 (en) Information processing device and information processing method
CN109413685B (en) Voice quality determination method, apparatus and computer-readable storage medium
CN107332682B (en) A kind of measurement method and device of service rate
CN113127333A (en) Data processing method and device, electronic equipment and storage medium
CN107302501B (en) Method and device for adjusting network port aggregation

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210226

WW01 Invention patent application withdrawn after publication