CN108092910A - Data traffic dispatching method and device - Google Patents
Data traffic dispatching method and device Download PDFInfo
- Publication number
- CN108092910A CN108092910A CN201611041488.8A CN201611041488A CN108092910A CN 108092910 A CN108092910 A CN 108092910A CN 201611041488 A CN201611041488 A CN 201611041488A CN 108092910 A CN108092910 A CN 108092910A
- Authority
- CN
- China
- Prior art keywords
- level
- flow
- cycle
- data
- current period
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/142—Network analysis or design using statistical or mathematical methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Algebra (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Pure & Applied Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of data traffic dispatching method and devices.The described method includes:Using preset time as a cycle, count and the total amount of data of each level in quantity level is preset in current period and is successfully measured;The cycle actual flow ratio of each level in the current period is obtained according to the total amount of data of each level in the current period;Measure according to the total amount of data of each level in the current period and successfully the cycle actual success rate for obtaining each level in the current period;Flow proportional of each level in the next cycle adjacent with the current period is obtained according to the cycle actual flow ratio of each level in the current period and cycle actual success rate.Above-mentioned data traffic dispatching method and device adjusted the flow proportional of next cycle by the actual flow ratio according to a upper cycle and actual success rate, realized the flow proportional that dynamic adjusts each level, reduced data traffic loss, improved service quality.
Description
Technical field
The present invention relates to network technology, more particularly to a kind of data traffic dispatching method and device.
Background technology
Substantial amounts of access request can be generated when background service is accessed by the user, background service needs to make sound to access request
Should, background service, which receives access request, can generate data traffic, because access request is more, can generate substantial amounts of data traffic.In order to
Substantial amounts of data traffic is tackled, background service would generally be deployed in multiple computer rooms by ISP, if wherein some computer room
It breaks down, data traffic can be dispatched to other computer rooms.However, when the network of failure computer room is an isolated island, can cause
Data traffic all failures seriously affect the quality of service.
The content of the invention
Based on this, it is necessary to data traffic all failures, serious shadow can be caused when the network for failure computer room is isolated island
The problem of ringing service quality, provides a kind of data traffic dispatching method and device, can reduce data traffic loss, improve Service Quality
Amount.
A kind of data traffic dispatching method, including:
Using preset time as a cycle, count preset in current period in quantity level the total amount of data of each level and
Success is measured;
The week of each level in the current period is obtained according to the total amount of data of each level in the current period
Phase actual flow ratio;
It measures according to the total amount of data of each level in the current period and successfully and obtains each layer in the current period
The cycle actual success rate of grade;
It is obtained respectively according to the cycle actual flow ratio of each level in the current period and cycle actual success rate
Flow proportional of a level in the next cycle adjacent with the current period.
A kind of data traffic dispatching device, including:
Statistical module, for using preset time as a cycle, counting and each layer in quantity level being preset in current period
Grade total amount of data and successfully measure;
Flow proportional acquisition module, it is described current for being obtained according to the total amount of data of each level in the current period
The cycle actual flow ratio of each level in cycle;
Success rate acquisition module is measured for the total amount of data according to each level in the current period and successfully and obtains institute
State the cycle actual success rate of each level in current period;
Scheduler module, for actual according to the cycle actual flow ratio of each level in the current period and cycle
Success rate obtains flow proportional of each level in the next cycle adjacent with the current period.
Data traffic dispatching method and device in the present embodiment count each in the default quantity level in current period
It the total amount of data of level and successfully measures, by total amount of data and successfully measures cycle actual flow ratio and the week of each level
Phase actual success rate is calculated further according to the cycle actual flow ratio and cycle actual success rate of each level of current period
The flow proportional of each level in next cycle was adjusted by the actual flow ratio according to a upper cycle and actual success rate
The flow proportional of next cycle realizes the flow proportional that dynamic adjusts each level, reduces data traffic loss, improves
Service quality.
Description of the drawings
Fig. 1 is the internal structure schematic diagram of electronic equipment in one embodiment;
Fig. 2 is the flow chart of data traffic dispatching method in one embodiment;
Fig. 3 for one embodiment according to flow migrating objects distance from closely to the structure diagram of the level far divided;
Fig. 4 is the schematic diagram that data traffic is dispatched in one embodiment;
Fig. 5 is the structure diagram of data traffic dispatching device in one embodiment;
Fig. 6 is the structure diagram of data traffic dispatching device in another embodiment;
Fig. 7 is the structure diagram of data traffic dispatching device in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes
It says, without departing from the scope of the invention, the first scheduler module can be known as the second scheduler module, and similarly,
Second scheduler module can be known as the first scheduler module.First scheduler module and the second scheduler module both scheduler module,
But it is not same scheduler module.
Fig. 1 is the internal structure schematic diagram of electronic equipment in one embodiment.As shown in Figure 1, the electronic equipment includes leading to
Cross processor, non-volatile memory medium, built-in storage and the network interface of system bus connection.Wherein, electronic equipment is non-
Volatile storage medium is stored with operating system, further includes a kind of data traffic dispatching device, which uses
In a kind of data traffic dispatching method of realization.The processor supports entire electronic equipment for providing calculating and control ability
Operation.Built-in storage in electronic equipment provides ring for the operation of the data traffic dispatching device in non-volatile memory medium
Border can store computer-readable instruction in the built-in storage, when which is performed by the processor, can make
It obtains the processor and performs a kind of data traffic dispatching method.Network interface is used to carry out network communication, statistics clothes with server
The data request amount of business device reception and successfully amount etc..The electronic equipment can be that personal computer, tablet computer, individual digital help
Reason or Wearable etc..It will be understood by those skilled in the art that the structure shown in Fig. 1, only with application scheme phase
The block diagram of the part-structure of pass does not form the restriction for the electronic equipment being applied thereon to application scheme, specific electricity
Sub- equipment can include either combining some components or with different components than more or fewer components shown in figure
Arrangement.
Fig. 2 is the flow chart of data traffic dispatching method in one embodiment.As shown in Fig. 2, a kind of data traffic scheduling
Method, including:
Step 202, using preset time as a cycle, the number that each level in quantity level is preset in current period is counted
According to total amount and successfully measure.
In the present embodiment, preset time can be set as needed, such as 1 minute, 2 minutes, 3 minutes.Using preset time as
A cycle refers to a cycle according to preset time as data flow quantity statistical.Current period refers to selected system
Count a cycle of flow.Default quantity can be set as needed, such as 2 levels, 3 levels, 4 levels, 5 levels
Deng.Level refers to the level of IDC (Internet Data Center, Internet data center).Internet data center is pressed
According to flow migrating objects distance from closely to being far divided into default quantity level.Flow migrating objects refer to that needs will be received
Flow moves to the server of other servers.
According to flow migrating objects distance from closely to the level far divided can be according to the distance with flow migrating objects
The level of scope division.Such as with flow migrating objects distance from closely to the level far divided include the first level, the second level,
Third layer grade, the 4th level etc..It is less than or equal to the region of the first distance threshold with flow migrating objects distance for the first level,
The region for being more than the first distance threshold with flow migrating objects distance and being less than or equal to second distance threshold value belongs to for the second layer
Grade, the region for being more than second distance threshold value with flow migrating objects distance and being less than or equal to the 3rd distance threshold are third layer
Grade, the region that the 3rd distance threshold is more than with flow migrating objects distance is the 4th level.Wherein, the first distance threshold is less than the
Two distance threshold second distance threshold values are less than the 3rd distance threshold.In addition, level may also comprise 2,3,5 etc., it is not limited to
It illustrates in this place.
According to flow migrating objects distance from closely to the level far divided can be according to flow migrating objects belonging to
The level of administrative division.As shown in figure 3, according to flow migrating objects distance from closely may include this to the level far divided
Ground, same to city, the whole nation, with continent etc., do not include previous level from the total amount of data of the latter level statistics closely into remote level and count
Total amount of data, that is, the total amount of data in the same city counted is the data elsewhere in addition to local total amount of data of statistics
Total amount.Locally refer to be in same place with flow migrating objects, belong to the first level.With city refer to at flow migrating objects
In same city, belong to the second level.The whole nation refers to be in same country with flow migrating objects, belongs to third layer grade.Same continent
Refer to be in same continent with flow migrating objects, belong to the 4th level.
It counts the total amount of data of each level in current period and successfully measures, wherein total amount of data refers to receive request of data
Total amount.The quantity for referring to the request of data success response to reception is measured in success.For example, level there are 4, then count each respectively
Total amount of data Send of a level in current period and successfully measure Recv.
Step 204, obtained according to the total amount of data of each level in the current period each in the current period
The cycle actual flow ratio of level.
In the present embodiment, the total amount of data of each level in current period is summed to obtain all levels in current period
The sum of total amount of data;The sum of total amount of data of the total amount of data of each level divided by all levels in current period is obtained each
The cycle actual flow ratio of level.Calculation formula is:
Cycle actual flow ratio=(Send of current level)/(the Send summations of all levels)
Step 206, according to the total amount of data of each level in the current period and successfully, amount obtains the current period
The cycle actual success rate of interior each level.
In the present embodiment, the total amount of data of the successful amount of some level in current period divided by some level is somebody's turn to do
The cycle actual success rate of some level.Calculation formula is:
Cycle actual success rate=(Recv of current level)/(Send of current level)
Step 208, according to the actual success of the cycle actual flow ratio of each level in the current period and cycle
Rate obtains flow proportional of each level in the next cycle adjacent with the current period.
In the present embodiment, cycle actual success is multiplied by according to the cycle actual flow ratio of some level in current period
Rate obtains the flow proportional of some level in the next cycle adjacent with current period multiplied by with 100.Calculation formula is:
The flow proportional of next cycle=actual flow ratio * cycles in cycle actual success rate * 100.
It should be noted that step 204 and step 206 do not have sequencing.
Data traffic dispatching method in the present embodiment counts each level in the default quantity level in current period
It total amount of data and successfully measures, cycle actual flow ratio and the cycle for by total amount of data and successfully measuring each level are actual
Success rate, cycle actual flow ratio and cycle actual success rate further according to each level of current period are calculated next
The flow proportional of each level in cycle was adjusted next by the actual flow ratio according to a upper cycle and actual success rate
The flow proportional in cycle realizes the flow proportional that dynamic adjusts each level, reduces data traffic loss, improves Service Quality
Amount.
In one embodiment, step 208 may include:According to level from closely to far calculating each level next week successively
The flow proportional of phase.It, can be conveniently follow-up according to level from closely to the flow proportional for far obtaining each level next cycle successively
The flow proportional of the near level of timely range of lift flow migrating objects, meets the principle addressed nearby, so that closer layer
The flow proportional of grade is high.
In one embodiment, above-mentioned data traffic dispatching method further includes:When the cycle of a level actual success rate
When reaching predetermined threshold value, then increase the flow proportional of the level.
In the present embodiment, predetermined threshold value can be set as needed, and can be the value between 95%~100%.Such as 99% or
99.99% etc., according to the different adjustable scales of precision.When the cycle for calculating some level actual success rate reaches pre-
If threshold value, then it can increase the flow proportional of the level.Because actual success rate reaches predetermined threshold value, increase the flow proportional of level,
The more sharing data flows of level for making success rate high reduce the data traffic of other levels, reduce the loss of data traffic, protect
Demonstrate,prove the quality of overall service.
In one embodiment, the flow proportional of the increase level, including:The flow proportional of the level is increased
Add first flow ratio.
In the present embodiment, it is increased that first flow ratio refers to that the cycle of level actual success rate reaches institute after predetermined threshold value
Flow proportional.First flow ratio can be fixed value or for the linear function of residual flow etc..Fixed value can be set as needed
It is fixed.Linear function can be direct proportion function etc..If first flow ratio is fixed value, it can facilitate and be adjusted stream according to fixed value
Amount ratio.If first flow ratio is the linear function with residual flow, the flow proportional of adjustment can be controlled according to residual flow,
It is more accurate.
In one embodiment, above-mentioned data traffic dispatching method further includes:It obtains data total flow and has distributed data
Flow obtains residual flow;Residual flow ratio is obtained according to the residual flow and the data total flow, according to described surplus
Remaining flow proportional is multiplied by the first adjustment factor and obtains the first flow ratio.
In the present embodiment, data total flow is subtracted and has distributed data traffic and obtains residual flow.Data total flow can be
The data total flow that flow migrating objects receive.When having distributed data traffic and referring to calculate data traffic from the near to the remote according to level
The allocated data traffic of level before current level.Residual flow divided by data total flow obtain residual flow ratio.Root
The first adjustment factor, which is multiplied by, according to residual flow ratio obtains first flow ratio.The first adjustment factor can be set as needed, example
It is such as 10%, 8%, 9%, 15%, it is without being limited thereto.
By taking the first adjustment factor is 10% as an example, calculation formula is:Flow proportional +=residual flow * 10%.
In one embodiment, the flow proportional of the increase level, including:The flow proportional of the level is increased
Greatly to the first preset flow ratio.
It in the present embodiment, presets when success rate reaches predetermined threshold value, flow proportional scope and flow-rate ratio after adjustment
Correspondence between example.For example, if presetting success rate reaches predetermined threshold value, flow proportional scope is 20% to 30%
When, the flow proportional after adjustment is 40%.The flow proportional of increase level includes:The current flow proportional of the level is obtained,
The flow proportional scope residing for current flow proportional is judged, after the flow proportional range-based searching to corresponding adjustment
The flow proportional of the level is increased to the flow proportional after adjustment by flow proportional.Flow proportional after adjustment is first
Preset flow ratio.
In one embodiment, the level be by Internet data center according to flow migrating objects distance from closely to
Far it is divided into default quantity level.
The data traffic dispatching method further includes:When the data traffic summation for getting each level in a cycle
Less than data total flow, according to from closely to each level is far traveled through, when the cycle of a level actual success rate reaches default threshold
During value, then increase the flow proportional of the level.
In the present embodiment, the data traffic summation for getting each level in a cycle is less than data total flow,
The data traffic summation that exactly data traffic of whole levels is summed is less than data total flow.Then according to from closely to remote
The each level of order traversal, whether the cycle actual success rate for detecting each level reaches predetermined threshold value, if so, increasing the layer
The flow proportional of grade.Predetermined threshold value can be set as needed, and can be the value between 95%~100%.Such as 99% or 99.99%
Deng according to the different adjustable scales of precision.When the cycle for calculating some level actual success rate reaches predetermined threshold value,
Then increase the flow proportional of the level.Because the data traffic summation of each level is less than data total flow, by traveling through each layer
Grade when actual success rate reaches predetermined threshold value, increases the flow proportional of the level, the more sharing data streams of the level for making success rate high
Amount ensures the quality of overall service.
Further, in one embodiment, the flow proportional of the increase level, including:By the level
Flow proportional increases second flow ratio.
In the present embodiment, it is increased that second flow ratio refers to that the cycle of level actual success rate reaches institute after predetermined threshold value
Flow proportional.Second flow ratio can be fixed value or the linear function for the flow proportional current with level etc..Fixed value can
It is set as needed.Linear function can be direct proportion function etc..If second flow ratio is fixed value, can facilitate according to fixed value
It is adjusted flow proportional.If second flow ratio is the linear function with residual flow, it can be controlled and adjusted according to residual flow
Flow proportional, more accurately.
In one embodiment, above-mentioned data traffic dispatching method further includes:By the level present flow rate ratio and the
Two-factor product obtains the second flow ratio.
In the present embodiment, the second adjustment factor can be set as needed, and be, for example, 10%, 8%, 9%, 15% etc., unlimited
In this.
In one embodiment, the flow proportional of the increase level, including:The flow proportional of the level is increased
Greatly to the second preset flow ratio.
It in the present embodiment, presets when success rate reaches predetermined threshold value, flow proportional scope and flow-rate ratio after adjustment
Correspondence between example.For example, if presetting success rate reaches predetermined threshold value, flow proportional scope is 20% to 30%
When, the flow proportional after adjustment is 40%.The flow proportional of increase level includes:The current flow proportional of the level is obtained,
The flow proportional scope residing for current flow proportional is judged, after the flow proportional range-based searching to corresponding adjustment
The flow proportional of the level is increased to the flow proportional after adjustment by flow proportional.Flow proportional after adjustment is second
Preset flow ratio.
Fig. 4 is the schematic diagram that data traffic is dispatched in one embodiment.As shown in figure 4, the data total flow of A computer rooms is
100, successfully amount is 85, and success rate 85% is then scheduled, A computer rooms after adjustment by above-mentioned data traffic dispatching method
Data traffic ratio for 85%, remaining data traffic ratio 15% is moved into B computer rooms, C computer rooms and D computer rooms, it is average every
A computer room obtains 5% flow of A computer rooms, so as to which the data traffic for ensureing A computer rooms does not fail, ensure that the quality of overall service.
Fig. 5 is the structure diagram of data traffic dispatching device in one embodiment.As shown in figure 5, a kind of data traffic tune
Device 500 is spent, including statistical module 502, flow proportional acquisition module 504, success rate acquisition module 506 and scheduler module 508.
Wherein:
Statistical module 502 is used for using preset time as a cycle, counts each in default quantity level in current period
It the total amount of data of level and successfully measures.
In the present embodiment, preset time can be set as needed, such as 1 minute, 2 minutes, 3 minutes.Using preset time as
A cycle refers to a cycle according to preset time as data flow quantity statistical.Current period refers to selected system
Count a cycle of flow.Default quantity can be set as needed, such as 2 levels, 3 levels, 4 levels, 5 levels
Deng.Level refers to the level of IDC.By Internet data center according to flow migrating objects distance from default closely to being far divided into
Quantity level.Flow migrating objects refer to that the flow received is moved to the server of other servers by needs.
In the present embodiment, according to flow migrating objects distance from can be to move according to flow closely to the level far divided
Move the level of the distance range division of object.In other embodiments, according to flow migrating objects distance from closely to remote division
Level can be according to the level with the administrative division belonging to flow migrating objects.
It counts the total amount of data of each level in current period and successfully measures, wherein total amount of data refers to receive request of data
Total amount.The quantity for referring to the request of data success response to reception is measured in success.
Flow proportional acquisition module 504 is used to work as according to obtaining the total amount of data of each level in the current period
The cycle actual flow ratio of each level in the preceding cycle.
In the present embodiment, flow proportional acquisition module 504 is used to sum the total amount of data of each level in current period
Obtain the sum of total amount of data of all levels in current period;By the total amount of data of each level divided by all layers in current period
The sum of total amount of data of grade obtains the cycle actual flow ratio of each level.
Success rate acquisition module 506 is used for total amount of data and successfully amount acquisition according to each level in the current period
The cycle of each level actual success rate in the current period.In the present embodiment, success rate acquisition module 506 is used for will be current
The successful amount of some level divided by the total amount of data of some level obtain the cycle actual success rate of some level in cycle.
Scheduler module 508 is used for real according to the cycle actual flow ratio of each level in the current period and cycle
Border success rate obtains flow proportional of each level in the next cycle adjacent with the current period.In the present embodiment,
Scheduler module 508 is used to be multiplied by cycle actual success rate again according to the cycle actual flow ratio of some level in current period
It is multiplied by 100 and obtains the flow proportional of some level in the next cycle adjacent with current period.
Data traffic dispatching device in the present embodiment counts each level in the default quantity level in current period
It total amount of data and successfully measures, cycle actual flow ratio and the cycle for by total amount of data and successfully measuring each level are actual
Success rate, cycle actual flow ratio and cycle actual success rate further according to each level of current period are calculated next
The flow proportional of each level in cycle was adjusted next by the actual flow ratio according to a upper cycle and actual success rate
The flow proportional in cycle realizes the flow proportional that dynamic adjusts each level, reduces data traffic loss, improves Service Quality
Amount.
In one embodiment, scheduler module 508 is used for according to level from next closely to each level is far calculated successively
The flow proportional in cycle.According to level from closely to the flow proportional for far obtaining each level next cycle successively, can conveniently after
Continue the flow proportional of the near level of timely range of lift flow migrating objects, meet the principle addressed nearby, so that closer
The flow proportional of level is high.
Fig. 6 is the structure diagram of data traffic dispatching device in another embodiment.As shown in fig. 6, a kind of data traffic
Dispatching device 500, except including statistical module 502, flow proportional acquisition module 504, success rate acquisition module 506 and scheduling mould
Block 508 further includes the first adjustment module 510.Wherein:
The first adjustment module 510 is used for when the cycle of a level, actual success rate reached predetermined threshold value, then increases institute
State the flow proportional of level.
In the present embodiment, predetermined threshold value can be set as needed, and can be the value between 95%~100%.Such as 99% or
99.99% etc., according to the different adjustable scales of precision.When the cycle for calculating some level actual success rate reaches pre-
If threshold value, then it can increase the flow proportional of the level.Because actual success rate reaches predetermined threshold value, increase the flow proportional of level,
The more sharing data flows of level for making success rate high reduce the data traffic of other levels, reduce the loss of data traffic, protect
Demonstrate,prove the quality of overall service.
In one embodiment, the first adjustment module 510 is additionally operable to the flow proportional of the level increasing by first
Flow proportional.
In the present embodiment, it is increased that first flow ratio refers to that the cycle of level actual success rate reaches institute after predetermined threshold value
Flow proportional.First flow ratio can be fixed value or for the linear function of residual flow etc..Fixed value can be set as needed
It is fixed.Linear function can be direct proportion function etc..If first flow ratio is fixed value, it can facilitate and be adjusted stream according to fixed value
Amount ratio.If first flow ratio is the linear function with residual flow, the flow proportional of adjustment can be controlled according to residual flow,
It is more accurate.
In one embodiment, the first adjustment module 510 is additionally operable to obtain data total flow and has distributed data
Flow obtains residual flow;Residual flow ratio is obtained according to the residual flow and the data total flow, according to described surplus
Remaining flow proportional is multiplied by the first adjustment factor and obtains the first flow ratio.
In the present embodiment, data total flow is subtracted and has distributed data traffic and obtains residual flow.Data total flow can be
The data total flow that flow migrating objects receive.When having distributed data traffic and referring to calculate data traffic from the near to the remote according to level
The allocated data traffic of level before current level.Residual flow divided by data total flow obtain residual flow ratio.Root
The first adjustment factor, which is multiplied by, according to residual flow ratio obtains first flow ratio.The first adjustment factor can be set as needed, example
It is such as 10%, 8%, 9%, 15%, it is without being limited thereto.
In one embodiment, the first adjustment module 510 is additionally operable to the flow proportional of the level increasing to first in advance
If flow proportional.
It in the present embodiment, presets when success rate reaches predetermined threshold value, flow proportional scope and flow-rate ratio after adjustment
Correspondence between example.For example, if presetting success rate reaches predetermined threshold value, flow proportional scope is 20% to 30%
When, the flow proportional after adjustment is 40%.The first adjustment module 510 obtains the current flow proportional of the level, judges current
Flow proportional residing for flow proportional scope, according to the flow-rate ratio after the flow proportional range-based searching to corresponding adjustment
The flow proportional of the level is increased to the flow proportional after adjustment by example.Flow proportional after adjustment is the first default stream
Amount ratio.
In one embodiment, the level be by Internet data center according to flow migrating objects distance from closely to
Far it is divided into default quantity level;
Fig. 7 is the structure diagram of data traffic dispatching device in another embodiment.As shown in fig. 7, a kind of data traffic
Dispatching device 500, except including statistical module 502, flow proportional acquisition module 504, success rate acquisition module 506, scheduling mould
Block 508 and the first adjustment module 510, further include spider module 512 and second adjustment module 514.
Spider module 512 is used to always flow less than data when the data traffic summation for getting each level in a cycle
Amount, according to from closely to far traveling through each level.
Second adjustment module 514 is used for when the cycle of a level, actual success rate reached predetermined threshold value, then increases institute
State the flow proportional of level.
In the present embodiment, the data traffic summation for getting each level in a cycle is less than data total flow,
The data traffic summation that exactly data traffic of whole levels is summed is less than data total flow.Then according to from closely to remote
The each level of order traversal, whether the cycle actual success rate for detecting each level reaches predetermined threshold value, if so, increasing the layer
The flow proportional of grade.Predetermined threshold value can be set as needed, and can be the value between 95%~100%.Such as 99% or 99.99%
Deng according to the different adjustable scales of precision.When the cycle for calculating some level actual success rate reaches predetermined threshold value,
Then increase the flow proportional of the level.Because the data traffic summation of each level is less than data total flow, by traveling through each layer
Grade when actual success rate reaches predetermined threshold value, increases the flow proportional of the level, the more sharing data streams of the level for making success rate high
Amount ensures the quality of overall service.
In one embodiment, second adjustment module 514 is additionally operable to the flow proportional of the level increasing second flow
Ratio.
In the present embodiment, it is increased that second flow ratio refers to that the cycle of level actual success rate reaches institute after predetermined threshold value
Flow proportional.Second flow ratio can be fixed value or the linear function for the flow proportional current with level etc..Fixed value can
It is set as needed.Linear function can be direct proportion function etc..If second flow ratio is fixed value, can facilitate according to fixed value
It is adjusted flow proportional.If second flow ratio is the linear function with residual flow, it can be controlled and adjusted according to residual flow
Flow proportional, more accurately.
Further, second adjustment module 514 is additionally operable to obtain the level present flow rate ratio with factor Ⅱ product
To the second flow ratio.
In the present embodiment, the second adjustment factor can be set as needed, and be, for example, 10%, 8%, 9%, 15% etc., unlimited
In this.
In one embodiment, second adjustment module 514 is additionally operable to the flow proportional of the level increasing to second in advance
If flow proportional.
It in the present embodiment, presets when success rate reaches predetermined threshold value, flow proportional scope and flow-rate ratio after adjustment
Correspondence between example.For example, if presetting success rate reaches predetermined threshold value, flow proportional scope is 20% to 30%
When, the flow proportional after adjustment is 40%.Second scheduler module 514 obtains the current flow proportional of the level, judges current
Flow proportional residing for flow proportional scope, according to the flow-rate ratio after the flow proportional range-based searching to corresponding adjustment
The flow proportional of the level is increased to the flow proportional after adjustment by example.Flow proportional after adjustment is the second default stream
Amount ratio.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between
Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (14)
1. a kind of data traffic dispatching method, including:
Using preset time as a cycle, count and the total amount of data of each level and successfully is preset in quantity level in current period
Amount;
The cycle that each level in the current period is obtained according to the total amount of data of each level in the current period is real
Border flow proportional;
It measures according to the total amount of data of each level in the current period and successfully and obtains each level in the current period
Cycle actual success rate;
Each layer is obtained according to the cycle actual flow ratio of each level in the current period and cycle actual success rate
Flow proportional of the grade in the next cycle adjacent with the current period.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When the cycle of a level, actual success rate reached predetermined threshold value, then increase the flow proportional of the level.
3. according to the method described in claim 2, it is characterized in that, the flow proportional of the increase level, including:By institute
Stating the flow proportional of level increases first flow ratio.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
It obtains data total flow and has distributed data traffic, obtain residual flow;
Residual flow ratio is obtained according to the residual flow and the data total flow, is multiplied by according to the residual flow ratio
The first adjustment factor obtains the first flow ratio.
5. according to the method described in claim 2, it is characterized in that, the flow proportional of the increase level, including:By institute
The flow proportional for stating level increases to the first preset flow ratio.
6. the method according to any one of claims 1 to 5, it is characterized in that, the level is will be in internet data
The heart according to flow migrating objects distance from closely to being far divided into default quantity level;
The method further includes:
When the data traffic summation for getting each level in a cycle is less than data total flow, according to from closely to remote traversal
Each level when the cycle of a level, actual success rate reached predetermined threshold value, then increases the flow proportional of the level.
7. according to the method described in claim 6, it is characterized in that, the flow proportional of the increase level, including:
The flow proportional of the level is increased into second flow ratio;
Alternatively, the flow proportional of the level is increased into the second preset flow ratio.
8. a kind of data traffic dispatching device, which is characterized in that including:
Statistical module presets each level in quantity level for using preset time as a cycle, counting in current period
It total amount of data and successfully measures;
Flow proportional acquisition module, for obtaining the current period according to the total amount of data of each level in the current period
The cycle actual flow ratio of interior each level;
Success rate acquisition module, for working as according to the total amount of data of each level in the current period and successfully described in amount acquisition
The cycle of each level actual success rate in the preceding cycle;
Scheduler module, for according to the actual success of the cycle actual flow ratio of each level in the current period and cycle
Rate obtains flow proportional of each level in the next cycle adjacent with the current period.
9. device according to claim 8, which is characterized in that described device further includes:
The first adjustment module, for when the cycle of a level, actual success rate reached predetermined threshold value, then increasing the level
Flow proportional.
10. device according to claim 9, which is characterized in that the first adjustment module is additionally operable to the level
Flow proportional increases first flow ratio.
11. device according to claim 10, which is characterized in that it is total that the first adjustment module is additionally operable to acquisition data
Flow and data traffic is distributed, obtained residual flow;Residual stream is obtained according to the residual flow and the data total flow
Amount ratio is multiplied by the first adjustment factor according to the residual flow ratio and obtains the first flow ratio.
12. device according to claim 10, which is characterized in that the first adjustment module is additionally operable to the level
Flow proportional increases to the first preset flow ratio.
13. device according to claim 8, which is characterized in that the level be by Internet data center according to stream
Amount migrating objects distance is from closely to being far divided into default quantity level;
Described device further includes:
Spider module for being less than data total flow when the data traffic summation for getting each level in a cycle, is pressed
According to from closely to far traveling through each level;
Second adjustment module, for when the cycle of a level, actual success rate reached predetermined threshold value, then increasing the level
Flow proportional.
14. according to the method for claim 13, which is characterized in that the second adjustment module is additionally operable to the level
Flow proportional increases second flow ratio;Alternatively, the second adjustment module is additionally operable to increase the flow proportional of the level
To the second preset flow ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041488.8A CN108092910B (en) | 2016-11-23 | 2016-11-23 | Data traffic scheduling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041488.8A CN108092910B (en) | 2016-11-23 | 2016-11-23 | Data traffic scheduling method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108092910A true CN108092910A (en) | 2018-05-29 |
CN108092910B CN108092910B (en) | 2021-07-20 |
Family
ID=62170183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611041488.8A Active CN108092910B (en) | 2016-11-23 | 2016-11-23 | Data traffic scheduling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108092910B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113726672A (en) * | 2020-10-23 | 2021-11-30 | 天翼智慧家庭科技有限公司 | Method and system for self-adjusting flow control threshold |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420741A (en) * | 2010-09-28 | 2012-04-18 | 朗讯科技投资有限公司 | Method and device for scheduling communication flow in ATCA (Advanced Telecom Computing Architecture)-based device |
CN103443771A (en) * | 2013-01-16 | 2013-12-11 | 华为技术有限公司 | Method and device for resource dispatching among data centers |
CN103944927A (en) * | 2013-01-17 | 2014-07-23 | 深圳市腾讯计算机系统有限公司 | Server stretching processing method and device |
CN104503924A (en) * | 2014-12-16 | 2015-04-08 | 华为技术有限公司 | Area distribution method and device of tiered storage system |
CN105471759A (en) * | 2016-01-11 | 2016-04-06 | 北京百度网讯科技有限公司 | Network traffic scheduling method and apparatus for data centers |
US20160248678A1 (en) * | 2014-06-27 | 2016-08-25 | Agora Lab, Inc. | Systems and methods for improved communication packet delivery over a public network |
-
2016
- 2016-11-23 CN CN201611041488.8A patent/CN108092910B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420741A (en) * | 2010-09-28 | 2012-04-18 | 朗讯科技投资有限公司 | Method and device for scheduling communication flow in ATCA (Advanced Telecom Computing Architecture)-based device |
CN103443771A (en) * | 2013-01-16 | 2013-12-11 | 华为技术有限公司 | Method and device for resource dispatching among data centers |
CN103944927A (en) * | 2013-01-17 | 2014-07-23 | 深圳市腾讯计算机系统有限公司 | Server stretching processing method and device |
US20160248678A1 (en) * | 2014-06-27 | 2016-08-25 | Agora Lab, Inc. | Systems and methods for improved communication packet delivery over a public network |
CN104503924A (en) * | 2014-12-16 | 2015-04-08 | 华为技术有限公司 | Area distribution method and device of tiered storage system |
CN105471759A (en) * | 2016-01-11 | 2016-04-06 | 北京百度网讯科技有限公司 | Network traffic scheduling method and apparatus for data centers |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113726672A (en) * | 2020-10-23 | 2021-11-30 | 天翼智慧家庭科技有限公司 | Method and system for self-adjusting flow control threshold |
CN113726672B (en) * | 2020-10-23 | 2024-04-02 | 天翼数字生活科技有限公司 | Method and system for self-adjusting flow control threshold |
Also Published As
Publication number | Publication date |
---|---|
CN108092910B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106992938B (en) | Network flow dynamic scheduling and distributing method and system | |
CN110134513B (en) | Load balancing method, device, computer equipment and storage medium | |
WO2020143164A1 (en) | Network resource allocation method and device | |
TWI552002B (en) | Method and system for dynamic instance deployment of public cloud | |
CN108769271A (en) | Method, apparatus, storage medium and the terminal device of load balancing | |
US20150163157A1 (en) | Allocation and migration of cloud resources in a distributed cloud system | |
CN106412917A (en) | Network expansion method and device | |
CN109246740A (en) | A kind of evaluation method and device of network quality | |
CN103853500A (en) | Method, device and system for distributing mass data | |
CN108459905B (en) | Resource pool capacity planning method and server | |
CN112311590B (en) | Cloud service lease optimization method, device, equipment and medium | |
CN109327844A (en) | A kind of cell capacity-enlarging method and device | |
CN105610995A (en) | Selection method of DNS server, selection device of the DNS server and terminal | |
CN108493946A (en) | Electric energy control method, device and equipment based on user power utilization analysis | |
CN108011764A (en) | A kind of method for predicting more cloud platform storage resource increments | |
CN108092910A (en) | Data traffic dispatching method and device | |
CN109039933A (en) | A kind of cluster network optimization method, device, equipment and medium | |
CN111198891A (en) | Data source fusion method, electronic device and non-transitory computer readable storage medium | |
CN106888463A (en) | A kind of method and device for determining weak overlay area | |
CN108075909B (en) | Flow prediction method and device | |
CN109271438A (en) | A kind of data bank access method and its system | |
JP2018055650A (en) | Power demand prediction system, power demand prediction method and power demand prediction program | |
CN109450672B (en) | Method and device for identifying bandwidth demand burst | |
CN108271182B (en) | Method, device and system for determining number of CPE (customer premises equipment) | |
CN110138521A (en) | Resource allocation methods, device and the eNB of eNB Physical Downlink Control Channel |
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 |