CN110086725B - Flow source ratio adjusting method and device, computer equipment and storage medium - Google Patents

Flow source ratio adjusting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110086725B
CN110086725B CN201910189103.XA CN201910189103A CN110086725B CN 110086725 B CN110086725 B CN 110086725B CN 201910189103 A CN201910189103 A CN 201910189103A CN 110086725 B CN110086725 B CN 110086725B
Authority
CN
China
Prior art keywords
data traffic
source
traffic source
flow
data
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
Application number
CN201910189103.XA
Other languages
Chinese (zh)
Other versions
CN110086725A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910189103.XA priority Critical patent/CN110086725B/en
Publication of CN110086725A publication Critical patent/CN110086725A/en
Application granted granted Critical
Publication of CN110086725B publication Critical patent/CN110086725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a flow source ratio adjusting method and device, computer equipment and a storage medium. The method comprises the following steps: configuring the distribution proportion of the plurality of data traffic sources according to preset configuration parameters; if data call request information is received, randomly selecting to obtain a target data flow source according to the configured distribution proportion of each data flow source; judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source to obtain a calling judgment result; counting the calling judgment results of the data traffic sources according to the statistical rules to obtain statistical results; inputting the statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value; and adjusting the configured distribution proportion of each data traffic source according to the proportion adjustment value. The invention is based on the resource allocation technology, and can adjust the allocation proportion of each data flow source in time according to the quality of the data flow source, so as to greatly enhance the stability of the data flow of the enterprise.

Description

Flow source ratio adjusting method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a traffic source ratio, a computer device, and a storage medium.
Background
In order to ensure the stability of data traffic, an enterprise usually adopts a method of accessing a plurality of data traffic sources, and preset distribution proportions of the plurality of data traffic sources, however, the data traffic sources may fluctuate due to their own quality reasons, and the preset distribution proportions of the data traffic sources are still adopted, so that the stability of the data traffic of the enterprise is affected when the quality of the data traffic sources fluctuates. Therefore, the existing data traffic source adjusting method has the problem that the proportioning adjustment is not timely.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting the ratio of a flow source, computer equipment and a storage medium, aiming at solving the problem that the ratio is not adjusted timely in a method for adjusting the data flow source in the prior art.
In a first aspect, an embodiment of the present invention provides a method for adjusting a traffic source ratio, where the method includes:
configuring the distribution proportion of the plurality of data traffic sources according to preset configuration parameters;
if data call request information is received, randomly selecting to obtain a target data flow source according to the configured distribution proportion of each data flow source;
judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source to obtain a calling judgment result of the target data flow source;
if the preset statistical time point is reached, counting calling judgment results of all data traffic sources according to a preset statistical rule to obtain a statistical result;
inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value;
and adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjustment value.
In a second aspect, an embodiment of the present invention provides a flow source proportioning device, which includes:
the distribution proportion configuration unit is used for configuring the distribution proportions of the data traffic sources according to preset configuration parameters;
the target data traffic source obtaining unit is used for randomly selecting and obtaining a target data traffic source according to the configured distribution proportion of each data traffic source if data call request information is received;
the calling judgment result acquisition unit is used for judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source so as to obtain a calling judgment result of the target data flow source;
the statistical result obtaining unit is used for counting the calling judgment results of the data traffic sources according to a preset statistical rule to obtain a statistical result if a preset statistical time point is reached;
the proportioning adjustment value calculating unit is used for inputting the obtained statistical result and the configuration parameters into a preset proportioning adjustment model for calculation to obtain a proportioning adjustment value;
and the distribution proportion adjusting unit is used for adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjusting value.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the method for adjusting the traffic source proportioning according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the traffic source proportioning adjusting method according to the first aspect.
The embodiment of the invention provides a flow source ratio adjusting method and device, computer equipment and a storage medium. The statistical result is obtained by counting the calling judgment result of each data flow source, the ratio adjustment value is obtained by calculation according to the statistical result and the preset ratio adjustment model, the distribution proportion of the data flow sources is adjusted by the calculated ratio adjustment value, the distribution proportion can be adjusted in time according to the quality of each data flow source, and the stability of enterprise data flow is greatly enhanced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for adjusting a traffic source ratio according to an embodiment of the present invention;
fig. 2 is a schematic sub-flow chart of a flow source proportioning method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a flow source proportioning method according to an embodiment of the present invention;
fig. 4 is another sub-flow diagram of a method for adjusting a traffic source ratio according to an embodiment of the present invention;
fig. 5 is another sub-flow diagram of a method for adjusting a traffic source ratio according to an embodiment of the present invention;
fig. 6 is another sub-flow diagram of a method for adjusting a traffic source ratio according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a flow source proportioning device according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a sub-unit of a traffic source proportioning device according to an embodiment of the present invention;
FIG. 9 is another schematic block diagram of a traffic source proportioning device according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of another sub-unit of a traffic source proportioning device according to an embodiment of the present invention;
FIG. 11 is a schematic block diagram of another sub-unit of a traffic source proportioning device according to an embodiment of the present invention;
FIG. 12 is a schematic block diagram of another sub-unit of a traffic source proportioning device according to an embodiment of the present invention;
FIG. 13 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for adjusting a traffic source ratio according to an embodiment of the present invention. The flow source ratio adjusting method is applied to a management server, and the management server is an enterprise terminal for executing the flow source ratio adjusting method to adjust the distribution ratio of an enterprise data flow source.
As shown in FIG. 1, the method includes steps S110 to S160.
And S110, configuring the distribution proportion of the plurality of data traffic sources according to preset configuration parameters.
And configuring the distribution proportion of the plurality of data traffic sources according to preset configuration parameters. The preset configuration parameters include names of all data traffic sources and corresponding distribution proportion values, the distribution proportions of all data traffic sources can be configured through the preset configuration parameters, and the configuration parameters can be configured in advance by a user (an administrator of the management server).
For example, the preset configuration parameters are as shown in table 1.
Name (R) Value of distribution ratio
A 60%
B 20%
C 20%
TABLE 1
The allocation ratio of data traffic source a is configured to be 60%, the allocation ratio of data traffic source B is configured to be 20%, and the allocation ratio of data traffic source C is configured to be 20% according to the preset configuration parameters in table 1.
And S120, if the data call request information is received, randomly selecting to obtain a target data traffic source according to the configured distribution proportion of each data traffic source.
And if the data call request information is received, randomly selecting to obtain the target data traffic source according to the configured distribution proportion of each data traffic source. Specifically, the call request information is request information for calling data information in a data traffic source, the call request information may be sent by a terminal device such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone, which is in network connection with the management server, and one data call request information may call data information in a certain data traffic source. And randomly selecting one data traffic source according to the configured distribution proportion of each data source, wherein the higher the distribution proportion of the data traffic source is, the higher the probability of selection is, and the lower the distribution proportion of the data traffic source is, the lower the probability of selection is.
In an embodiment, as shown in fig. 2, step S120 includes sub-steps S121 and S122.
And S121, determining a selection interval of the corresponding data traffic source according to the distribution proportion of each data traffic source.
The method comprises the steps of obtaining the distribution proportion of a certain data traffic source, determining the selection interval of the data traffic source according to the distribution proportion, and determining the selection intervals of all the data traffic sources according to the distribution proportion of all the data traffic sources. For example, if the allocation ratio of the data traffic source a is 60% and the data traffic source a is the first data traffic source for which the selection interval needs to be determined, then [1,60] is determined as the selection interval of the data traffic source a.
And S122, generating a random number and selecting to obtain a target data traffic source according to the random number and the selection interval of each data traffic source.
And generating a random number and selecting to obtain a corresponding quantity flow source as a target data flow source according to a selection interval in which the random number falls. Specifically, the random number is a positive integer randomly generated by a computer, and the range of the random number is [1,100].
For example, if the random number is 37, the selection interval of the data traffic source a is [1,60], the selection interval of the data traffic source B is [61,80], the selection interval of the data traffic source C is [81,100], and 37 falls into the selection interval of the data traffic source a, the target number of traffic sources is the data traffic source a.
S130, judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source so as to obtain a calling judgment result of the target data flow source.
And judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source so as to obtain a calling judgment result of the target data flow source. Specifically, if the target data traffic source does not feed back data information in the current invocation, the invocation determination result of the current invocation of the target traffic source is that the invocation is not successful, and if the target data traffic source feeds back the data information in the current invocation, the invocation determination result of the current invocation of the target traffic source is that the invocation is successful.
In one embodiment, as shown in fig. 3, step S130 is followed by step S130a.
And S130a, if the calling judgment result is that the target data flow source is not successfully called, randomly selecting to obtain a new target data flow source according to the configured distribution proportion of the rest data flow sources. Specifically, the selection interval of the corresponding data traffic source is re-determined according to the distribution proportion of the remaining data traffic sources, a new random number is generated to select and obtain a new target data traffic source, and the new target data traffic source is called and the data information fed back by the new target data traffic source is acquired.
For example, if the call determination result of the data traffic source a is that the call is not successfully made, according to the allocation ratio of the data traffic source B being 20% and the allocation ratio of the data traffic source C being 20%, determining [1,50] as the selection interval of the data traffic source B, and determining [51-100] as the selection interval of the data traffic source C.
And S140, counting the calling judgment results of the data traffic sources according to a preset counting rule to obtain a counting result if the preset counting time point is reached.
And if the preset statistical time point is reached, counting the calling judgment results of the data traffic sources according to a preset statistical rule to obtain a statistical result. Specifically, the preset statistical time point is a time node preset by a user and used for counting the calling judgment result, the preset statistical rule is rule information used for counting the calling judgment results of the data traffic sources, and the preset statistical rule includes unit time and statistical frequency.
For example, the preset statistical time point may be set to 12.
In an embodiment, as shown in fig. 4, step S140 includes sub-steps S141 and S142.
S141, obtaining the times that the calling judgment result of a certain data flow source is not successfully called in the unit time according to the unit time in the statistical rule so as to count the failure rate of the data flow source.
And acquiring a calling judgment result that a certain data flow source is not successfully called in the unit time according to the unit time in the statistical rule so as to count the failure rate of the data flow source. Specifically, the corresponding failure rate can be obtained through statistics by dividing the call judgment result of a certain data traffic source that is not successfully called in unit time by the judgment times of the data traffic source.
For example, if the number of call determination results that a certain data traffic source is not successfully called in a unit time is 5, and the number of determination times of the data traffic source in the unit time is 50, the failure rate of the data traffic source is 5/50=10%.
And S142, sequentially acquiring the failure rate of each data traffic source in a plurality of unit times according to the statistical frequency in the statistical rule to obtain a statistical result.
And sequentially acquiring the failure rate of each data traffic source in a plurality of unit times according to the statistical frequency in the statistical rule to obtain a statistical result. Specifically, the statistical frequency is the information of the number of times per unit time that needs to be counted.
For example, if the unit time is 3 minutes and the statistical frequency is 3, the failure rate of each data traffic source 3 units of time before the current time needs to be counted, and the obtained statistical results are shown in table 2.
Name (R) First unit time Second unit time Third unit time
A 10% 40% 80%
B 7% 2% 6%
C 13% 11% 6%
TABLE 2
S150, inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value.
And inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value. Specifically, the ratio adjustment model is model information used for calculating a ratio adjustment value required to be adjusted by the data traffic source, and the ratio adjustment model includes a failure rate threshold, a traffic source classification rule, a first calculation formula, a second calculation formula, and a third calculation formula.
In one embodiment, as shown in FIG. 5, step S150 includes sub-steps S151, S152, S153, S154, S155, S156, and S157.
And S151, obtaining the failure rate of a certain data traffic source in the statistical result, and judging whether each failure rate of the data traffic source is smaller than the failure rate threshold value in the preset ratio adjustment model to obtain a first judgment result of the data traffic source.
And obtaining the failure rate of a certain data traffic source in the statistical result in a plurality of unit times, and judging whether the failure rates of the data traffic source are all smaller than the failure rate threshold value in the proportion adjustment model to obtain a first judgment result of the data traffic source. The failure rate threshold is threshold information for eliminating instantaneous fluctuation of the data traffic source, and if all failure rates of a certain data traffic source are smaller than the failure rate threshold in the proportion adjustment model, the failure rate of the data traffic source is caused by the instantaneous fluctuation of the data network, and the distribution proportion of the data traffic source does not need to be readjusted if the quality of the data traffic source is not obviously fluctuated.
For example, if the failure rate threshold in the ratio adjustment model is 1%, and the failure rate of the data traffic source a in table 2 is obtained, the first determination result of the data traffic source a is that all the failure rates of the data traffic source a are greater than the failure rate threshold in the ratio adjustment model.
S152, acquiring the data traffic source with the failure rate not less than the failure rate threshold value as the data traffic source to be adjusted according to the first judgment result of each data traffic source.
And acquiring the data traffic source with the failure rate not less than the failure rate threshold value as the data traffic source to be adjusted according to the first judgment result of each data traffic source. If the first judgment result of a certain data traffic source has a failure rate not less than the failure rate threshold in the proportion adjustment model, taking the data traffic source as the data traffic source to be adjusted; and if all failure rates in the first judgment result of a certain data traffic source are smaller than the failure rate threshold value in the ratio adjustment model, the data traffic source is not the data traffic source to be adjusted.
For example, the failure rate threshold in the ratio adjustment model is 1%, and the data traffic source a, the data traffic source B, and the data traffic source C are all to-be-adjusted data traffic sources by judging the three data traffic sources in table 2.
S153, calculating the failure rate average value of a plurality of failure rates of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the failure rate average value to obtain traffic source ranking information.
And calculating the average failure rate of a plurality of failure rates of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the average failure rate to obtain traffic source ranking information. And calculating to obtain the average failure rate of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the average failure rate.
For example, the information of the data traffic source to be adjusted after ranking is shown in table 3.
Name(s) Mean failure rate
A 43.33%
B 5%
C 10%
TABLE 3
And S154, obtaining the additional flow source and the subtractive flow source from the ranking information of the flow sources according to the flow source classification rule in the preset ratio adjustment model.
And obtaining the additional flow source and the subtractive flow source from the ranking information of the flow sources according to the flow source classification rule in the preset ratio adjustment model. The adding flow source is a data flow source which needs to be subjected to adding operation, and the subtracting flow source is a data flow source which needs to be subjected to subtracting operation.
For example, the traffic source classification rule is that the data traffic source to be adjusted 1/2 before the total number of the data traffic sources to be adjusted in the traffic source ranking information is a subtractive traffic source, and the rest are additive traffic sources, the number of the subtractive traffic sources is 3 × 1/2=1.5, and since the number of the subtractive traffic sources must be an integer, the first of the traffic source ranking information is taken as the subtractive traffic source, the data traffic source a in table 3 is the subtractive traffic source, and the data traffic source B and the data traffic source C are additive traffic sources.
S155, according to a first calculation formula in the ratio adjustment model: x N =Z N ×T N1 ×T N2 ×…×T Nn Calculating to obtain the ratio of all the flow reducing sourcesAdjusting the value X N Wherein N is the [1,R ∈ [ ]]R is the total number of the flow rate reducing sources, Z N For the distribution ratio of the Nth flow rate reducing source in the configuration parameters, T Nn And the failure rate of the nth flow rate subtracting source in the statistical result in the nth unit time is obtained.
For example, the allocation ratio and failure rate of the data traffic source A are input into a first calculation formula, X A If =60% × 10% × 40% × 80% =1.92%, the matching adjustment value of the data traffic source a is 1.92%.
S156, adjusting a second calculation formula in the model according to the ratio, namely P = (Z) 1 -X 1 )+(Z 2 -X 2 )+…+(Z N -X N ) +…+(Z R -X R ) Calculating to obtain a ratio adjustment value P, wherein X N For the proportioning adjustment value, Z, of the Nth subtractive flow source N The distribution proportion of the Nth flow rate reduction source in the configuration parameters is obtained.
For example, the ratio adjustment value and the distribution ratio of the data traffic source a are input into the second calculation formula, and P =60% -1.92% =58.08%.
S157, according to a third calculation formula in the ratio adjustment model: c N =Z N +P×(1-V N /(V 1 +V 2 +…+V R ) ) calculating the ratio adjustment values C of all the additive flow sources N Wherein V is N And calculating the average value of the failure rates of the Nth additional flow source.
For example, the distribution ratio and the failure rate of the data traffic source B and the data traffic source C are input into a third calculation formula for calculation, where the data traffic source B: c B =20% +58.08% × (1-5%/(5% + 10%)) =58.72%, data traffic source C: c C If =20% +58.08% × (1-10%/(5% + 10%)) =39.36%, then the proportioning adjustment value for data traffic source B would be 58.72% and the proportioning adjustment value for data traffic source C would be 39.36%.
And S160, adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjustment value.
The configured distribution proportion of each data traffic source is adjusted according to the obtained proportion adjustment value, and the influence of enterprise data traffic caused by fluctuation of the quality of the data traffic source can be greatly reduced by dynamically adjusting the configured distribution proportion of each data traffic source, so that the reliability of the enterprise data traffic is enhanced. In addition, when the distribution proportion of each data traffic source is adjusted by combining the stability of the data traffic source, factors such as the accuracy and freshness of the data traffic source and the stability of the data traffic source can be integrated, so that the distribution proportion of each data traffic source can be adjusted by combining a plurality of factors.
In one embodiment, as shown in fig. 6, step S160 includes sub-steps S161 and S162.
And S161, judging whether each data traffic source needs to be adjusted according to the obtained ratio adjustment value.
Whether the corresponding data traffic source needs to be adjusted or not can be judged according to the obtained ratio adjustment value. Specifically, if a certain data traffic source does not have a corresponding proportioning adjustment value in the calculation result, it is not necessary to adjust the configured distribution proportion of the data traffic source, that is, the data traffic source is determined to be unnecessary to adjust. If a certain data traffic source in the calculation result has a corresponding ratio adjustment value, the judgment result of the data traffic source is that adjustment is needed.
And S162, acquiring all data flow sources which need to be adjusted according to the judgment results, and adjusting the distribution proportion of the data flow sources to the corresponding proportion adjustment value.
If the judgment result of a certain data traffic source is needed to be adjusted, the configured distribution proportion of the data traffic source is adjusted to the proportion adjustment value corresponding to the data traffic source, and all the data traffic sources with the judgment results needed to be adjusted are sequentially obtained and adjusted according to the method.
For example, if the proportioning adjustment value of data traffic source a is 1.92%, the allocated proportion 60% of data traffic source a is adjusted to 1.92%.
The statistical result is obtained by counting the calling judgment result of each data flow source, the ratio adjustment value is obtained by calculation according to the statistical result and the preset ratio adjustment model, the distribution proportion of the data flow sources is adjusted by the calculated ratio adjustment value, the distribution proportion can be adjusted in time according to the quality of each data flow source, and the stability of enterprise data flow is greatly enhanced.
The embodiment of the present invention further provides a flow source proportioning device, where the flow source proportioning device is configured to execute any embodiment of the flow source proportioning method. Specifically, referring to fig. 7, fig. 7 is a schematic block diagram of a traffic source proportioning device according to an embodiment of the present invention. The traffic source proportioning device may be configured in the management server.
As shown in fig. 7, the traffic source proportioning device 100 includes a distribution proportion configuration unit 110, a target data traffic source obtaining unit 120, a call determination result obtaining unit 130, a statistical result obtaining unit 140, a proportioning adjustment value calculating unit 150, and a distribution proportion adjusting unit 160.
A distribution ratio configuring unit 110, configured to configure the distribution ratios of the multiple data traffic sources according to a preset configuration parameter.
And configuring the distribution proportion of the plurality of data traffic sources according to preset configuration parameters. The preset configuration parameters include names of all data traffic sources and corresponding distribution ratio values, the distribution ratios of all data traffic sources can be configured through the preset configuration parameters, and the configuration parameters can be configured in advance by a user (an administrator of the management server).
And a target data traffic source obtaining unit 120, configured to, if data call request information is received, randomly select a target data traffic source according to a configured allocation proportion of each data traffic source.
And if the data call request information is received, randomly selecting to obtain the target data traffic source according to the configured distribution proportion of each data traffic source. Specifically, the call request information is request information for calling data information in a data traffic source, the call request information may be sent by a terminal device such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone, which is in network connection with the management server, and one data call request information may call data information in a certain data traffic source. And randomly selecting one data traffic source according to the configured distribution proportion of each data source, wherein the higher the distribution proportion of the data traffic source is, the higher the probability of selection is, and the lower the distribution proportion of the data traffic source is, the lower the probability of selection is.
In other embodiments of the present invention, as shown in fig. 8, the target data traffic source obtaining unit 120 includes sub-units: a selection section determination unit 121 and a random selection unit 122.
And a selection interval determining unit 121, configured to determine a selection interval of each data traffic source according to the distribution ratio of each data traffic source.
The method comprises the steps of obtaining the distribution proportion of a certain data traffic source, determining the selection interval of the data traffic source according to the distribution proportion, and determining the selection intervals of all the data traffic sources according to the distribution proportion of all the data traffic sources.
And a random selection unit 122, configured to generate a random number and select a target data traffic source according to the random number and the selection interval of each data traffic source.
And generating a random number and selecting to obtain a corresponding quantity flow source as a target data flow source according to a selection interval in which the random number falls. Specifically, the random number is a positive integer randomly generated by a computer, and the range of the random number is [1,100].
The call determination result obtaining unit 130 is configured to determine, according to the data information fed back by the target data traffic source, whether the target data traffic source is successfully called, so as to obtain a call determination result of the target data traffic source.
And judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source so as to obtain a calling judgment result of the target data flow source. Specifically, if the target data traffic source does not feed back the data information in the current call, the call determination result of the current call of the target data traffic source is that the call is not successful, and if the target data traffic source feeds back the data information in the current call, the call determination result of the current call of the target data traffic source is that the call is successful.
In other embodiments of the present invention, as shown in fig. 9, the flow source proportioning device 100 further includes a subunit: the selection unit 130a.
And the selecting unit 130a is configured to, if the calling determination result is that the target data traffic source is not successfully called, randomly select to obtain a new target data traffic source according to the configured allocation proportion of the remaining data traffic sources. Specifically, the selection interval of the corresponding data traffic source is re-determined according to the distribution proportion of the remaining data traffic sources, a new random number is generated to select and obtain a new target data traffic source, and the new target data traffic source is called and the data information fed back by the new target data traffic source is acquired.
The statistical result obtaining unit 140 is configured to, if the preset statistical time point is reached, perform statistics on the call determination results of the data traffic sources according to a preset statistical rule to obtain a statistical result.
And if the preset statistical time point is reached, counting the calling judgment results of the data traffic sources according to a preset statistical rule to obtain a statistical result. Specifically, the preset statistical time point is a time node preset by a user and used for counting the calling judgment result, the preset statistical rule is rule information used for counting the calling judgment results of each data traffic source, and the preset statistical rule includes unit time and statistical frequency.
In another embodiment of the present invention, as shown in fig. 10, the statistical result obtaining unit 140 includes sub-units: a failure rate acquisition unit 141 and a failure rate statistics unit 142.
The failure rate obtaining unit 141 is configured to obtain, according to the unit time in the statistical rule, the number of times that a certain data traffic source is successfully called in the unit time, so as to count the failure rate of the data traffic source.
And acquiring a calling judgment result that a certain data flow source is not successfully called in the unit time according to the unit time in the statistical rule so as to count the failure rate of the data flow source. Specifically, the corresponding failure rate can be obtained through statistics by dividing the call judgment result of a certain data traffic source that is not successfully called in unit time by the judgment times of the data traffic source.
The failure rate statistics unit 142 is configured to sequentially obtain failure rates of the data traffic sources in multiple unit times according to the statistics frequency in the statistics rule to obtain a statistical result.
And sequentially acquiring the failure rate of each data traffic source in a plurality of unit times according to the statistical frequency in the statistical rule to obtain a statistical result. Specifically, the statistical frequency is the information of the number of times per unit time that needs to be counted.
And a ratio adjustment value calculating unit 150, configured to input the obtained statistical result and the configuration parameter into a preset ratio adjustment model for calculation to obtain a ratio adjustment value.
And inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value. Specifically, the ratio adjustment model is model information used for calculating a ratio adjustment value required to be adjusted by the data traffic source, and the ratio adjustment model includes a failure rate threshold, a traffic source classification rule, a first calculation formula, a second calculation formula, and a third calculation formula.
In other embodiments of the present invention, as shown in fig. 11, the proportioning adjustment value calculating unit 150 includes sub-units: a first determination result obtaining unit 151, a to-be-adjusted data traffic source obtaining unit 152, a traffic source ranking information obtaining unit 153, a traffic source classifying unit 154, a first calculating unit 155, a second calculating unit 156, and a third calculating unit 157.
The first determination result obtaining unit 151 is configured to obtain a failure rate of a certain data traffic source in the statistical result, and determine whether each failure rate of the data traffic source is smaller than a failure rate threshold in the preset proportioning adjustment model to obtain a first determination result of the data traffic source.
And obtaining the failure rate of a certain data traffic source in the statistical result in a plurality of unit times, and judging whether the failure rates of the data traffic source are all smaller than the failure rate threshold value in the proportion adjustment model to obtain a first judgment result of the data traffic source. The failure rate threshold is threshold information for eliminating instantaneous fluctuation of the data traffic source, and if all failure rates of a certain data traffic source are smaller than the failure rate threshold in the proportion adjustment model, the failure rate of the data traffic source is caused by the instantaneous fluctuation of the data network, and the distribution proportion of the data traffic source does not need to be readjusted if the quality of the data traffic source is not obviously fluctuated.
A data traffic source to be adjusted obtaining unit 152, configured to obtain, according to the first determination result of each data traffic source, a data traffic source having a failure rate not less than the failure rate threshold as the data traffic source to be adjusted.
And acquiring the data traffic source with the failure rate not less than the failure rate threshold value as the data traffic source to be adjusted according to the first judgment result of each data traffic source. If the first judgment result of a certain data traffic source has a failure rate not less than the failure rate threshold in the proportion adjustment model, taking the data traffic source as the data traffic source to be adjusted; and if all failure rates in the first judgment result of a certain data traffic source are smaller than the failure rate threshold value in the ratio adjustment model, the data traffic source is not the data traffic source to be adjusted.
The traffic source ranking information acquiring unit 153 is configured to calculate a failure rate average value of multiple failure rates of each to-be-adjusted data traffic source, and rank all to-be-adjusted data traffic sources according to the failure rate average value to obtain traffic source ranking information.
And calculating the average failure rate of a plurality of failure rates of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the average failure rate to obtain traffic source ranking information. And calculating to obtain the average failure rate of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the average failure rate.
And a traffic source classification unit 154, configured to obtain the addend traffic source and the subtrend traffic source from the traffic source ranking information according to the traffic source classification rule in the preset ratio adjustment model.
And obtaining the additional flow source and the subtractive flow source from the ranking information of the flow sources according to the flow source classification rule in the preset ratio adjustment model. The adding flow source is a data flow source which needs to be subjected to adding operation, and the subtracting flow source is a data flow source which needs to be subjected to subtracting operation.
A first calculating unit 155, configured to, according to a first calculation formula in the proportion adjustment model: x N =Z N ×T N1 ×T N2 ×…×T Nn Calculating to obtain the ratio adjustment values X of all the flow reducing sources N Wherein N is the [1,R ]]R is the total number of the flow rate reducing sources, Z N For the distribution ratio of the Nth flow rate reducing source in the configuration parameters, T Nn And the failure rate of the nth flow rate subtracting source in the statistical result in the nth unit time is obtained.
A second calculating unit 156, configured to adjust a second calculation formula in the model according to the ratio, P = (Z) 1 -X 1 )+(Z 2 -X 2 )+…+(Z N -X N ) +…+(Z R -X R ) Calculating to obtain a ratio adjustment value P, wherein X N For the proportioning adjustment value, Z, of the Nth subtractive flow source N And configuring the distribution proportion of the Nth shunt volume source in the parameters.
A third calculating unit 157, configured to, according to a third calculation formula in the proportion adjustment model: c N =Z N +P×(1-V N /(V 1 +V 2 +…+V R ) ) calculating the ratio adjustment values C of all the additive flow sources N Wherein V is N And calculating the average value of the failure rates of the Nth additional flow source.
A distribution ratio adjusting unit 160, configured to adjust the configured distribution ratio of each data traffic source according to the obtained ratio adjustment value.
The configured distribution proportion of each data traffic source is adjusted according to the obtained proportion adjustment value, and the influence of enterprise data traffic caused by fluctuation of the quality of the data traffic source can be greatly reduced by dynamically adjusting the configured distribution proportion of each data traffic source, so that the reliability of the enterprise data traffic is enhanced. In addition, when the distribution ratio of each data traffic source is adjusted by combining the stability of the data traffic source, factors such as the accuracy and freshness of the data traffic source and the stability of the data traffic source can be integrated, so that the distribution ratio of each data traffic source can be adjusted by combining a plurality of factors.
In another embodiment of the present invention, as shown in fig. 12, the distribution ratio adjusting unit 160 includes sub-units: an adjustment judging unit 161 and an adjusting unit 162.
An adjustment judging unit 161, configured to judge whether each data traffic source needs to be adjusted according to the obtained ratio adjustment value.
Whether the corresponding data traffic source needs to be adjusted or not can be judged according to the obtained ratio adjustment value. Specifically, if a certain data traffic source does not have a corresponding proportioning adjustment value in the calculation result, it is not necessary to adjust the configured distribution ratio of the data traffic source, that is, the determination result of the data traffic source is that no adjustment is necessary. If a certain data traffic source in the calculation result has a corresponding ratio adjustment value, the judgment result of the data traffic source is that adjustment is needed.
The adjusting unit 162 is configured to obtain all data traffic sources whose determination results are needed to be adjusted, and adjust the distribution ratio to a corresponding ratio adjustment value.
If the judgment result of a certain data traffic source is needed to be adjusted, the configured distribution proportion of the data traffic source is adjusted to the proportion adjustment value corresponding to the data traffic source, and all the data traffic sources with the judgment results needed to be adjusted are sequentially obtained and adjusted according to the method.
The statistical result is obtained by counting the calling judgment result of each data flow source, the ratio adjustment value is obtained by calculation according to the statistical result and the preset ratio adjustment model, the distribution proportion of the data flow sources is adjusted by the calculated ratio adjustment value, the distribution proportion can be adjusted in time according to the quality of each data flow source, and the stability of enterprise data flow is greatly enhanced.
The flow source proportioning device may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 13.
Referring to fig. 13, fig. 13 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Referring to fig. 13, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and computer programs 5032. The computer program 5032, when executed, may cause the processor 502 to perform a traffic source proportioning method.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute the flow source proportioning adjustment method.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 13 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following functions: configuring the distribution proportion of a plurality of data traffic sources according to preset configuration parameters; if data call request information is received, randomly selecting to obtain a target data flow source according to the configured distribution proportion of each data flow source; judging whether the target data traffic source is successfully called or not according to the data information fed back by the target data traffic source so as to obtain a calling judgment result of the target data traffic source; if the preset statistical time point is reached, counting calling judgment results of all data traffic sources according to a preset statistical rule to obtain a statistical result; inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value; and adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjustment value.
In an embodiment, when executing the step of randomly selecting and obtaining the target data traffic source according to the configured allocation proportion of each data traffic source if the data call request message is received, the processor 502 executes the following operations: determining a selection interval of a corresponding data traffic source according to the distribution proportion of each data traffic source; and generating a random number and selecting to obtain a target data traffic source according to the random number and the selection interval of each data traffic source.
In an embodiment, after the step of determining, according to the data information fed back by the target data traffic source, whether the target data traffic source is successfully called to obtain a calling determination result of the target data traffic source, the processor 502 further performs the following operations: and if the calling judgment result is that the target data flow source is not successfully called, randomly selecting to obtain a new target data flow source according to the configured distribution proportion of the rest data flow sources.
In an embodiment, when the processor 502 performs the step of counting the calling judgment result of each data traffic source according to the preset statistical rule to obtain the statistical result if the preset statistical time point is reached, the following operations are performed: acquiring the times that the calling judgment result of a certain data flow source is not successfully called in the unit time according to the unit time in the statistical rule so as to count the failure rate of the data flow source; and sequentially acquiring the failure rate of each data traffic source in a plurality of unit times according to the statistical frequency in the statistical rule to obtain a statistical result.
In an embodiment, the processor 502 performs the following operations when performing the step of inputting the obtained statistical result and the configuration parameter into a preset proportioning adjustment model for calculation to obtain a proportioning adjustment value: obtaining the failure rate of a certain data traffic source in the statistical result, and judging whether each failure rate of the data traffic source is smaller than the failure rate threshold value in the preset ratio adjustment model to obtain a first judgment result of the data traffic source; obtaining the memory according to the first judgment result of each data flow sourceTaking the data traffic source with the failure rate not less than the failure rate threshold value as a data traffic source to be adjusted; calculating a failure rate average value of a plurality of failure rates of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the failure rate average value to obtain traffic source ranking information; acquiring an adding flow source and a subtracting flow source from the ranking information of the flow sources according to the flow source classification rule in the preset ratio adjustment model; according to a first calculation formula in the ratio adjustment model: x N =Z N ×T N1 ×T N2 ×…×T Nn Calculating to obtain the ratio adjustment values X of all the flow reducing sources N Wherein N is the [1,R ∈ [ ]]R is the total number of the subtractive flow sources, Z N For the distribution ratio of the Nth flow rate reducing source in the configuration parameters, T Nn The failure rate of the Nth subtractive flow source in the statistical result in the nth unit time is obtained; p = (Z) according to second calculation formula in ratio adjustment model 1 -X 1 )+(Z 2 -X 2 )+…+(Z N -X N ) +…+(Z R -X R ) Calculating to obtain a ratio adjustment value P, wherein X N For the proportioning adjustment value, Z, of the Nth subtractive flow source N The distribution proportion of the Nth shunt power source in the configuration parameters is obtained; according to a third calculation formula in the ratio adjustment model: c N =Z N +P×(1-V N /(V 1 +V 2 +…+V R ) ) calculating the ratio adjustment values C of all the additive flow sources N Wherein V is N And calculating the average value of the failure rates of the Nth additional flow source.
In an embodiment, the processor 502, when executing the step of adjusting the configured allocation ratio of each data traffic source according to the obtained ratio adjustment value, performs the following operations: judging whether each data traffic source needs to be adjusted or not according to the obtained ratio adjustment value; and acquiring all data flow sources with the judgment results of needing to be adjusted and adjusting the distribution proportion of the data flow sources to the corresponding proportion adjustment value.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 13 is not intended to be limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or fewer components than those shown, or some of the components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 13, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the present invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program when executed by a processor implements the steps of: configuring the distribution proportion of the plurality of data traffic sources according to preset configuration parameters; if data call request information is received, randomly selecting to obtain a target data flow source according to the configured distribution proportion of each data flow source; judging whether the target data traffic source is successfully called or not according to the data information fed back by the target data traffic source so as to obtain a calling judgment result of the target data traffic source; if the preset statistical time point is reached, counting calling judgment results of all data traffic sources according to a preset statistical rule to obtain a statistical result; inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value; and adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjustment value.
In an embodiment, the step of randomly selecting the target data traffic source according to the configured allocation proportion of each data traffic source if the data call request message is received includes: determining a selection interval of a corresponding data traffic source according to the distribution proportion of each data traffic source; and generating a random number and selecting to obtain a target data traffic source according to the random number and the selection interval of each data traffic source.
In an embodiment, after the step of determining whether the target data traffic source is successfully called according to the data information fed back by the target data traffic source to obtain a calling determination result of the target data traffic source, the method further includes: and if the calling judgment result is that the target data flow source is not successfully called, randomly selecting to obtain a new target data flow source according to the configured distribution proportion of the rest data flow sources.
In an embodiment, the step of counting the call determination results of the data traffic sources according to a preset counting rule to obtain a counting result if the preset counting time point is reached includes: acquiring the times that the calling judgment result of a certain data flow source is not successfully called in the unit time according to the unit time in the statistical rule so as to count the failure rate of the data flow source; and sequentially acquiring the failure rate of each data traffic source in a plurality of unit times according to the statistical frequency in the statistical rule to obtain a statistical result.
In an embodiment, the step of inputting the obtained statistical result and the configuration parameter into a preset ratio adjustment model for calculation to obtain a ratio adjustment value includes: obtaining the failure rate of a certain data traffic source in the statistical result, and judging whether each failure rate of the data traffic source is smaller than the failure rate threshold value in the preset ratio adjustment model to obtain a first judgment result of the data traffic source; acquiring a data traffic source with a failure rate not less than the failure rate threshold value as a data traffic source to be adjusted according to the first judgment result of each data traffic source; calculating a failure rate average value of a plurality of failure rates of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the failure rate average value to obtain traffic source ranking information; root of herbaceous plantAcquiring an adding flow source and a subtracting flow source from the flow source ranking information according to the flow source classification rule in the preset ratio adjustment model; according to a first calculation formula in the ratio adjustment model: x N =Z N ×T N1 ×T N2 ×…×T Nn Calculating to obtain the ratio adjustment values X of all the flow reducing sources N Wherein N is the [1,R ]]R is the total number of the flow rate reducing sources, Z N For configuring the distribution ratio of the Nth shunt power source in the parameter, T Nn The failure rate of the Nth subtractive flow source in the statistical result in the nth unit time is obtained; p = (Z) according to second calculation formula in ratio adjustment model 1 -X 1 )+(Z 2 -X 2 )+…+(Z N -X N ) +…+(Z R -X R ) Calculating to obtain a ratio adjustment value P, wherein X N For the proportioning adjustment value, Z, of the Nth subtractive flow source N The distribution proportion of the Nth flow rate reducing source in the configuration parameters is calculated; according to a third calculation formula in the ratio adjustment model: c N =Z N +P×(1-V N /(V 1 +V 2 +…+V R ) ) calculating the ratio adjustment values C of all the additive flow sources N Wherein V is N And calculating the average value of the failure rates of the Nth additional flow source.
In an embodiment, the step of adjusting the configured allocation proportion of each data traffic source according to the obtained proportion adjustment value includes: judging whether each data traffic source needs to be adjusted or not according to the obtained ratio adjustment value; and acquiring all data flow sources with the judgment results of needing to be adjusted and adjusting the distribution proportion of the data flow sources to the corresponding proportion adjustment value.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions in actual implementation, or units with the same function may be grouped into one unit, for example, multiple 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 also be an electrical, mechanical or other form of connection.
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 position, or may be distributed on multiple 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 of the present invention.
In addition, functional units in the embodiments of the present invention 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 may be implemented in the form of hardware, or may also be implemented in the 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 invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several 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 invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for adjusting the flow source ratio is characterized by comprising the following steps:
configuring the distribution proportion of a plurality of data traffic sources according to preset configuration parameters;
if data call request information is received, randomly selecting to obtain a target data flow source according to the configured distribution proportion of each data flow source;
judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source to obtain a calling judgment result of the target data flow source;
if the preset statistical time point is reached, counting calling judgment results of all data traffic sources according to a preset statistical rule to obtain a statistical result;
inputting the obtained statistical result and the configuration parameters into a preset ratio adjustment model for calculation to obtain a ratio adjustment value;
and adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjustment value.
2. The method for matching and adjusting traffic sources according to claim 1, wherein the randomly selecting and obtaining the target data traffic source according to the configured allocation ratio of each data traffic source comprises:
determining a selection interval of a corresponding data traffic source according to the distribution proportion of each data traffic source;
and generating a random number and selecting to obtain a target data traffic source according to the random number and the selection interval of each data traffic source.
3. The method for adjusting the traffic source ratio according to claim 1, wherein after determining, according to the data information fed back by the target data traffic source, whether the target data traffic source is successfully called to obtain a calling determination result of the target data traffic source, the method further includes:
and if the calling judgment result is that the target data flow source is not successfully called, randomly selecting to obtain a new target data flow source according to the configured distribution proportion of the rest data flow sources.
4. The method for adjusting the ratio of the traffic sources according to claim 1, wherein the counting the calling judgment results of the data traffic sources according to the preset statistical rule to obtain the statistical result comprises:
acquiring the times that the calling judgment result of a certain data flow source is not successfully called in the unit time according to the unit time in the statistical rule so as to count the failure rate of the data flow source;
and sequentially acquiring the failure rate of each data traffic source in a plurality of unit times according to the statistical frequency in the statistical rule to obtain a statistical result.
5. The method of claim 4, wherein the inputting the obtained statistical result and the configuration parameter into a preset proportioning model for calculation to obtain a proportioning adjustment value comprises:
obtaining the failure rate of a certain data traffic source in the statistical result, and judging whether each failure rate of the data traffic source is smaller than the failure rate threshold value in the preset ratio adjustment model to obtain a first judgment result of the data traffic source;
acquiring a data traffic source with a failure rate not less than the failure rate threshold value as a data traffic source to be adjusted according to the first judgment result of each data traffic source;
calculating a failure rate average value of a plurality of failure rates of each data traffic source to be adjusted, and ranking all the data traffic sources to be adjusted according to the failure rate average value to obtain traffic source ranking information;
obtaining an adding flow source and a subtracting flow source from the ranking information of the flow sources according to the flow source classification rule in the preset ratio adjustment model;
according to a first calculation formula in the ratio adjustment model: x N =Z N ×T N1 ×T N2 ×…×T Nn Calculating to obtain the ratio adjustment values X of all the flow reducing sources N Wherein N is the [1,R ∈ [ ]]R is the total number of the flow rate reducing sources, Z N For the distribution ratio of the Nth flow rate reducing source in the configuration parameters, T Nn The failure rate of the Nth subtractive flow source in the statistical result in the nth unit time is obtained;
p = (Z) according to second calculation formula in ratio adjustment model 1 -X 1 )+(Z 2 -X 2 )+…+(Z N -X N ) +…+(Z R -X R ) Calculating to obtain a ratio adjustment value P, wherein X N For the proportioning adjustment value, Z, of the Nth subtractive flow source N The distribution proportion of the Nth flow rate reducing source in the configuration parameters is calculated;
according to a third calculation formula in the ratio adjustment model: c N =Z N +P×(1-V N /(V 1 +V 2 +…+V R ) ) calculating the ratio adjustment values C of all the additive flow sources N Wherein, in the step (A),V N and calculating the average value of the failure rates of the Nth additional flow source.
6. The traffic source proportioning method according to claim 1, wherein the adjusting the configured distribution proportion of each data traffic source according to the obtained proportioning adjustment value comprises:
judging whether each data traffic source needs to be adjusted or not according to the obtained ratio adjustment value;
and acquiring all data flow sources with the judgment results of needing to be adjusted and adjusting the distribution proportion of the data flow sources to the corresponding proportion adjustment value.
7. A flow source proportioning device, comprising:
the distribution proportion configuration unit is used for configuring the distribution proportions of the data traffic sources according to preset configuration parameters;
the target data traffic source obtaining unit is used for randomly selecting and obtaining a target data traffic source according to the configured distribution proportion of each data traffic source if data call request information is received;
the calling judgment result acquisition unit is used for judging whether the target data flow source is successfully called or not according to the data information fed back by the target data flow source so as to obtain a calling judgment result of the target data flow source;
the statistical result obtaining unit is used for counting the calling judgment results of the data traffic sources according to a preset statistical rule to obtain a statistical result if a preset statistical time point is reached;
the proportioning adjustment value calculating unit is used for inputting the obtained statistical result and the configuration parameters into a preset proportioning adjustment model for calculation to obtain a proportioning adjustment value;
and the distribution proportion adjusting unit is used for adjusting the configured distribution proportion of each data traffic source according to the obtained proportion adjusting value.
8. The traffic source proportioning device of claim 7, wherein the target data traffic source obtaining unit comprises:
the selection interval determining unit is used for determining the selection interval of the corresponding data traffic source according to the distribution proportion of each data traffic source;
and the random selection unit is used for generating a random number and selecting and obtaining the target data traffic source according to the random number and the selection interval of each data traffic source.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the traffic source proportioning method according to any of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the traffic source proportioning method according to any of claims 1 to 6.
CN201910189103.XA 2019-03-13 2019-03-13 Flow source ratio adjusting method and device, computer equipment and storage medium Active CN110086725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910189103.XA CN110086725B (en) 2019-03-13 2019-03-13 Flow source ratio adjusting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910189103.XA CN110086725B (en) 2019-03-13 2019-03-13 Flow source ratio adjusting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110086725A CN110086725A (en) 2019-08-02
CN110086725B true CN110086725B (en) 2022-11-11

Family

ID=67412531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910189103.XA Active CN110086725B (en) 2019-03-13 2019-03-13 Flow source ratio adjusting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110086725B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521247B (en) * 2023-06-29 2024-02-23 深圳艾为电气技术股份有限公司 Synchronous loading control method, device, equipment and medium for PTC driver

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764761A (en) * 2010-03-12 2010-06-30 中兴通讯股份有限公司 Method for limiting transmission flow capacity of service provider interfaces and multi-media service gateway
CN102523231A (en) * 2011-12-27 2012-06-27 北京蓝汛通信技术有限责任公司 Flow scheduling method based on DNS analysis, apparatus and server thereof
CN105635191A (en) * 2014-10-27 2016-06-01 阿里巴巴集团控股有限公司 Invocation guiding system and invocation guiding method for service traffic

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330660B (en) * 2015-06-24 2020-09-11 腾讯科技(深圳)有限公司 Service processing method, server, and computer-readable storage medium
US20180176153A1 (en) * 2016-12-15 2018-06-21 NoFutzNetworks Inc. Method of Load-Balanced Traffic Assignment Using a Centrally-Controlled Switch

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764761A (en) * 2010-03-12 2010-06-30 中兴通讯股份有限公司 Method for limiting transmission flow capacity of service provider interfaces and multi-media service gateway
CN102523231A (en) * 2011-12-27 2012-06-27 北京蓝汛通信技术有限责任公司 Flow scheduling method based on DNS analysis, apparatus and server thereof
CN105635191A (en) * 2014-10-27 2016-06-01 阿里巴巴集团控股有限公司 Invocation guiding system and invocation guiding method for service traffic

Also Published As

Publication number Publication date
CN110086725A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110061935B (en) Flow source ratio adjusting method and device, computer equipment and storage medium
US10558498B2 (en) Method for scheduling data flow task and apparatus
CN109104336B (en) Service request processing method and device, computer equipment and storage medium
US20210216303A1 (en) Deployment routing of clients by analytics
CN109743295A (en) Access thresholds method of adjustment, device, computer equipment and storage medium
CN110995539A (en) Business system monitoring method and device and computer equipment
CN110086725B (en) Flow source ratio adjusting method and device, computer equipment and storage medium
CN108139930B (en) Resource scheduling method and device based on Q learning
CN111131375B (en) Interface service acquisition method, device, computer equipment and storage medium
CN112001563B (en) Method and device for managing ticket quantity, electronic equipment and storage medium
CN112333246B (en) ABtest experiment method and device, intelligent terminal and storage medium
CN110633304B (en) Combined feature screening method, device, computer equipment and storage medium
CN117236941A (en) Enterprise grading-based payment settlement method, device, equipment and medium
CN108027760B (en) Method and system for monitoring data storage device
CN109885384B (en) Task parallelism optimization method and device, computer equipment and storage medium
CN108961071B (en) Method for automatically predicting combined service income and terminal equipment
CN108900865B (en) Server, and scheduling method and execution method of transcoding task
CN110351330B (en) Data uploading method and device, computer equipment and storage medium
CN112269657B (en) Bandwidth balance control method and device for nodes in distributed storage system
CN112363926A (en) Production environment capacity detection method and device, computer equipment and storage medium
CN109344049B (en) Method and apparatus for testing a data processing system
CN109901931B (en) Reduction function quantity determination method, device and system
CN111258729A (en) Redis-based task allocation method and device, computer equipment and storage medium
CN111010675A (en) Information verification method and device, computer equipment and storage medium
CN111062634A (en) Approval task allocation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant