CN110365545A - Issue rate processing method, device, server and storage medium - Google Patents
Issue rate processing method, device, server and storage medium Download PDFInfo
- Publication number
- CN110365545A CN110365545A CN201910734906.9A CN201910734906A CN110365545A CN 110365545 A CN110365545 A CN 110365545A CN 201910734906 A CN201910734906 A CN 201910734906A CN 110365545 A CN110365545 A CN 110365545A
- Authority
- CN
- China
- Prior art keywords
- flow
- rate
- server
- resource
- target
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0896—Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- 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
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/20—Traffic policing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure is directed to one kind to issue rate processing method, device, server and storage medium, belong to Internet technical field.Method includes: to obtain first requested in first time period to flow dispatch server to issue rate;Obtain the first flow in first time period;Obtain the target flow in second time period;Ratio and target flow between rate and first flow are issued according to first, determines that request in second time period to flow dispatch server second issues rate.This method is according to the target flow for issuing rate, the flow actually generated in a upper period and subsequent time period and needing to generate requested in a upper period to flow dispatch server, rate will be issued to what flow scheduling server was requested by determining in subsequent time period, the traffic conditions of subsequent time period are prejudged, realize the control to the flow of subsequent time period, avoid the problem of flow overflows, without preparing excessive bandwidth resources, the utilization rate of bandwidth resources is improved.
Description
Technical field
This disclosure relates to which Internet technical field more particularly to one kind issue rate processing method, device, server and storage
Medium.
Background technique
With being gradually expanded for internet scale and becoming increasingly abundant for Internet resources, a large amount of terminal can access resource
The resource that server provides can generate flow in access process on Resource Server.In order to guarantee the stable operation of system
And flow equalization, it will usually multiple Resource Servers are set, dispatch server can use the scheduling mode of global load balancing, from
Target resource server is chosen in multiple Resource Servers, by the target resource server scheduling to terminal, for terminal access.
If the flow generated on Resource Server has exceeded the bandwidth resources upper limit of Resource Server, it will lead to flow and overflow
Out, the normal access of Resource Server is influenced.For this purpose, Resource Server usually requires to prepare enough bandwidth resources.But
If the practical flow generated of Resource Server is not up to the bandwidth resources upper limit of Resource Server, and will cause bandwidth resources
Waste, causes the utilization rate of bandwidth resources not high.
Summary of the invention
Present disclose provides one kind to issue rate processing method, device, server and storage medium, can overcome the relevant technologies
Present in the not high problem of bandwidth resources utilization rate.
According to the first aspect of the embodiments of the present disclosure, one kind is provided and issues rate processing method, applied in scheduling system
Target resource server, the scheduling system include flow scheduling server and multiple Resource Servers, the flow scheduling clothes
Business device is connect with the multiple Resource Server, which comprises
It obtains first requested in first time period to the flow scheduling server and issues rate, the rate that issues is described
In the resource link that flow scheduling server is issued at least one terminal, shared by the resource link of the target resource server
Ratio;
The first flow in the first time period is obtained, the first flow is as described at least one described terminal access
It is generated when the resource link of target resource server;
The target flow in second time period is obtained, the second time period is next time of the first time period
Section;
Ratio and the target flow between rate and the first flow are issued according to described first, determines described
Second requested in two periods to the flow scheduling server issues rate.
It is described to obtain the requested in first time period to the flow scheduling server in a kind of possible implementation
Before one issues rate, the method also includes:
Rate is issued by described first and is sent to the flow scheduling server, and the flow scheduling server is used for according to institute
It states first and issues rate, the resource link of the target resource server is issued.
In alternatively possible implementation, the ratio issued according to described first between rate and the first flow
And the target flow, it determines that request in the second time period to the flow scheduling server second issues rate, wraps
It includes:
Ratio and the target flow between rate and the first flow are issued according to described first, using following public affairs
Formula determines that request in the second time period to the flow scheduling server second issues rate:
Wherein, r2Rate, r are issued for described second1Rate, b are issued for described first2For the target flow, b1It is described
One flow.
In alternatively possible implementation, the ratio issued according to described first between rate and the first flow
And the target flow, it determines that request in the second time period to the flow scheduling server second issues rate, wraps
It includes:
Ratio and the target flow between rate and the first flow are issued according to described first, using following public affairs
Formula determines that request in the second time period to the flow scheduling server second issues rate:
Wherein, r1Rate, b are issued for described first1For the first flow, r2Rate, b are issued for described second2For the mesh
Flow is marked, Δ () is preset function, and t is preset duration, and the preset duration issues any for the flow scheduling server
Time interval between at the time of resource link and at the time of any resource link is accessed.
In alternatively possible implementation, the ratio issued according to described first between rate and the first flow
And the target flow, it determines that request in the second time period to the flow scheduling server second issues rate, wraps
It includes:
When the first flow exceeds the preset flow upper limit, issued between rate and the first flow according to described first
Ratio and the target flow determined in the second time period to the flow scheduling server using following formula
The second of request issues rate:
a1=r1× 10%;
Wherein, r1Rate, r are issued for described first2Rate, b are issued for described second1For the first flow, b2For the mesh
Mark flow, a1To issue the rate that issues obtained after rate is inhibited, a for described first2Inhibit to issue rate for described first
What is obtained afterwards another issues rate, avg (a1+a2) it is a1With a2Average value, ρ is default inhibiting factor, and t is preset duration, described
Preset duration is that the flow scheduling server is accessed at the time of issuing any resource link with any resource link
Time interval between moment.
In alternatively possible implementation, the ratio issued according to described first between rate and the first flow
And the target flow, determine requested to the flow scheduling server in the second time period second issue rate it
Afterwards, the method also includes:
Rate is issued by described second and is sent to the flow scheduling server, and the flow scheduling server is used for according to institute
It states second and issues rate, the resource link of the target resource server is issued.
According to the second aspect of an embodiment of the present disclosure, one kind is provided and issues rate processing unit, applied in scheduling system
Target resource server, the scheduling system include flow scheduling server and multiple Resource Servers, the flow scheduling clothes
Business device is connect with the multiple Resource Server, and described device includes:
Rate acquiring unit is issued, is configured as obtaining first requested in first time period to the flow scheduling server
Rate is issued, described to issue in the resource link that rate issues for the flow scheduling server at least one terminal, the target
Ratio shared by the resource link of Resource Server;
First flow acquiring unit is configured as obtaining the first flow in the first time period, the first flow
It is generated when the resource link of the target resource server as described at least one described terminal access;
Second flow acquiring unit is configured as obtaining the target flow in second time period, and the second time period is
Next period of the first time period;
Issue rate determination unit, be configured as according to described first issue ratio between rate and the first flow and
The target flow determines that request in the second time period to the flow scheduling server second issues rate.
In a kind of possible implementation, described device further include:
First transmission unit, is configured as issuing rate for described first and is sent to the flow scheduling server, the stream
Amount dispatch server is used to issue rate according to described first, issues to the resource link of the target resource server.
It is described to issue rate determination unit in alternatively possible implementation, comprising:
First determines subelement, be configured as according to described first issue ratio between rate and the first flow and
The target flow determines second requested in the second time period to the flow scheduling server using following formula
Issue rate:
Wherein, r2Rate, r are issued for described second1Rate, b are issued for described first2For the target flow, b1It is described
One flow.
It is described to issue rate determination unit in alternatively possible implementation, comprising:
Second determines subelement, be configured as according to described first issue ratio between rate and the first flow and
The target flow determines second requested in the second time period to the flow scheduling server using following formula
Issue rate:
Wherein, r1Rate, b are issued for described first1For the first flow, r2Rate, b are issued for described second2For the mesh
Flow is marked, Δ () is preset function, and t is preset duration, and the preset duration issues any for the flow scheduling server
Time interval between at the time of resource link and at the time of any resource link is accessed.
It is described to issue rate determination unit in alternatively possible implementation, comprising:
Third determines subelement, is configured as when the first flow is beyond the preset flow upper limit, according to described first
The ratio between rate and the first flow and the target flow are issued, using following formula, determines second time
The second of the introversive flow scheduling server request of section issues rate:
a1=r1× 10%;
Wherein, r1Rate, r are issued for described first2Rate, b are issued for described second1For the first flow, b2For the mesh
Mark flow, a1To issue the rate that issues obtained after rate is inhibited, a for described first2Inhibit to issue rate for described first
What is obtained afterwards another issues rate, avg (a1+a2) it is a1With a2Average value, ρ is default inhibiting factor, and t is preset duration, described
Preset duration is that the flow scheduling server is accessed at the time of issuing any resource link with any resource link
Time interval between moment.
In alternatively possible implementation, described device further include:
Second transmission unit, is configured as issuing rate for described second and is sent to the flow scheduling server, the stream
Amount dispatch server is used to issue rate according to described second, issues to the resource link of the target resource server.
According to the third aspect of an embodiment of the present disclosure, a kind of Resource Server is provided, the Resource Server includes:
One or more processors;
For storing the volatibility or nonvolatile memory of one or more of processor executable commands;
Wherein, one or more of processors, which are configured as executing described in first aspect, issues rate processing method.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described
When instruction in storage medium is executed by the processor of Resource Server, so that Resource Server is able to carry out described in first aspect
Issue rate processing method.
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product is provided, when the computer program produces
When instruction in product is executed by the processor of Resource Server, issued so that Resource Server is able to carry out described in first aspect
Rate processing method.
Method, apparatus, server and the storage medium that the embodiment of the present disclosure provides obtain in first time period to flow tune
The first of degree server request issues rate, obtains the money in first time period by least one terminal access target resource server
The first flow generated when linking sources obtains the target flow in second time period, according to first issue rate and first flow it
Between ratio and target flow, determine that requested in second time period to flow dispatch server second issues rate.This method
Can according in a upper period to flow dispatch server request issue rate, the flow actually generated in a upper period and
Subsequent time period needs the target flow generated, and rate will be issued to what flow scheduling server was requested by determining in subsequent time period,
The traffic conditions of subsequent time period can be prejudged, realize the control to the flow of subsequent time period, avoided flow and overflow
Out the problem of.And without preparing excessive bandwidth resources, the waste of bandwidth resources is avoided, the benefit of bandwidth resources is improved
With rate.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment provided according to an exemplary embodiment.
Fig. 2 is a kind of flow chart for issuing rate processing method shown according to an exemplary embodiment.
Fig. 3 is the flow chart that another kind shown according to an exemplary embodiment issues rate processing method.
Fig. 4 is according to a kind of flow curve schematic diagram shown in the relevant technologies.
Fig. 5 is that one kind shown according to an exemplary embodiment issues rate curve synoptic diagram.
Fig. 6 is a kind of flow curve schematic diagram shown according to an exemplary embodiment.
Fig. 7 is a kind of flow chart of traffic scheduling method shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram for issuing rate processing unit shown according to an exemplary embodiment.
Fig. 9 is the block diagram that another kind shown according to an exemplary embodiment issues rate processing unit.
Figure 10 is a kind of block diagram of terminal shown according to an exemplary embodiment.
Figure 11 is a kind of structural schematic diagram of server shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment provided according to an exemplary embodiment, as shown in Figure 1, the implementation ring
Border includes: at least one terminal 101, flow scheduling server 102 and multiple Resource Servers 103, at least one terminal 101 with
Flow scheduling server 102 connects, and flow scheduling server 102 is connect with multiple Resource Servers 103, at least one terminal
101 connect with multiple Resource Servers 103.
Wherein, terminal 101 can be a plurality of types of terminals such as portable, pocket, hand-held, as mobile phone, computer,
Tablet computer etc..Flow scheduling server 102 can be a server, or the server set consisted of several servers
Group or a cloud computing service center.Resource Server 103 can be a server, or by several servers
The server cluster of composition or a cloud computing service center.
Each Resource Server 103 in multiple Resource Servers 103 is stored with one or more resources, can also be each
Resource is set to point to the resource link of the resource, accesses for any terminal 101.Any terminal 110 passes through any Resource Server
103 resource links provided, the resource on the accessible Resource Server 103, the access process can expend Resource Server
103 bandwidth resources, and flow is generated on Resource Server 103.
The resource that multiple Resource Servers 103 store can be identical or different, and the bandwidth resources of configuration can be identical, can also
With difference.
The resource link of multiple Resource Server 103 can be handed down at least one end by flow scheduling server 102
End 101, the resource link issued for Resource Server 103 is more, and the flow generated on Resource Server 103 may will be got over
It is more, therefore flow scheduling server 102 is linked by down distributing resource, realizes the flow scheduling to multiple Resource Servers 103.
In a kind of possible implementation, at least one 101 installation targets applications client of terminal passes through the target application
Client is associated with flow scheduling server 102 and multiple Resource Servers 103, is answered by flow scheduling server 102 for target
It is linked with client down distributing resource, provides resource by multiple Resource Servers 103 for target application client.
Wherein, which can be any applications client with resource access function, such as short-sighted frequency
Applications client, information show client, instant messaging application client etc..
Fig. 2 is a kind of flow chart for issuing rate processing method shown according to an exemplary embodiment, as shown in Fig. 2, should
The executing subject of open embodiment is any Resource Server as shown in Figure 1, this method comprises:
201, it obtains first requested in first time period to flow dispatch server and issues rate, the rate that issues is flow scheduling
In the resource link that server is issued at least one terminal, ratio shared by the resource link of target resource server;
202, the first flow in first time period is obtained, first flow is by least one terminal access target resource service
It is generated when the resource link of device;
203, the target flow in second time period is obtained, second time period is next period of first time period;
204, ratio and target flow between rate and first flow are issued according to first, determine in second time period to
The second of flow scheduling server request issues rate.
The method that the embodiment of the present disclosure provides obtains first requested in first time period to flow dispatch server and issues
Rate generates first-class when obtaining the resource link in first time period by least one terminal access target resource server
Amount obtains the target flow in second time period, issues ratio and target flow between rate and first flow according to first,
Determine that request in second time period to flow dispatch server second issues rate.This method can according in a upper period to
The mesh for issuing rate, the flow actually generated in a upper period and subsequent time period and needing to generate of flow scheduling server request
Flow is marked, rate will be issued to what flow scheduling server was requested by determining in subsequent time period, can be to the flow of subsequent time period
Situation is prejudged, and realizes the control to the flow of subsequent time period, avoids the problem of flow overflows.And without preparing
More bandwidth resources avoid the waste of bandwidth resources, improve the utilization rate of bandwidth resources.
In a kind of possible implementation, obtains first requested in first time period to flow dispatch server and issue rate
Before, this method further include:
Rate is issued by first and is sent to flow scheduling server, and flow scheduling server is used to issue rate according to first, right
The resource link of target resource server is issued.
In alternatively possible implementation, the ratio and target stream between rate and first flow are issued according to first
Amount determines that request in second time period to flow dispatch server second issues rate, comprising:
The ratio and target flow issued between rate and first flow according to first determines second using following formula
Second requested in period to flow dispatch server issues rate:
Wherein, r2Rate, r are issued for second1Rate, b are issued for first2For target flow, b1For first flow.
In alternatively possible implementation, the ratio and target stream between rate and first flow are issued according to first
Amount determines that request in second time period to flow dispatch server second issues rate, comprising:
The ratio and target flow issued between rate and first flow according to first determines second using following formula
Second requested in period to flow dispatch server issues rate:
Wherein, r1Rate, b are issued for first1For first flow, r2Rate, b are issued for second2For target flow, Δ () is
Preset function, t are preset duration, the preset duration be at the time of flow scheduling server issues any resource link with any money
Time interval between at the time of linking sources are accessed.
In alternatively possible implementation, the ratio and target stream between rate and first flow are issued according to first
Amount determines that request in second time period to flow dispatch server second issues rate, comprising:
When first flow exceeds the preset flow upper limit, the ratio and mesh between rate and first flow are issued according to first
Flow is marked, using following formula, determines that request in second time period to flow dispatch server second issues rate:
a1=r1× 10%;
Wherein, r1Rate, r are issued for first2Rate, b are issued for second1For first flow, b2For target flow, a1For by first
What the rate of issuing obtained after being inhibited issues rate, a2Rate, avg (a are issued to issue obtain after rate is inhibited another by first1
+a2) it is a1With a2Average value, ρ is default inhibiting factor, and t is preset duration, which is under flow scheduling server
Time interval between at the time of sending out resource link any and at the time of any resource link is accessed.
In alternatively possible implementation, the ratio and target stream between rate and first flow are issued according to first
Amount determines after issuing rate to the second of the request of flow dispatch server in second time period, this method further include:
Rate is issued by second and is sent to flow scheduling server, and flow scheduling server is used to issue rate according to second, right
The resource link of target resource server is issued.
Fig. 3 is the flow chart that another kind shown according to an exemplary embodiment issues rate processing method, as shown in figure 3,
The interaction agent of the disclosure embodiment is at least one terminal, flow scheduling server and multiple Resource Servers, this method packet
It includes:
301, target resource server obtains first requested in first time period to flow dispatch server and issues rate.
The embodiment of the present disclosure is applied in scheduling system, and scheduling system includes flow scheduling server and multiple resource services
Device.Target resource server can be any Resource Server in scheduling system.
It issues in the resource link that rate issues for flow scheduling server at least one terminal, target resource server
Ratio shared by resource link.For each period, target resource server can determine the rate that issues in the period, hair
Flow scheduling server is given, request flow scheduling server during this period of time, issues rate to target resource service according to this
The resource link of device is issued.
Target resource server was arranged at least two periods according to the fixed cycle, and the time span of each period is equal to
The fixed cycle.Target resource server every time can be according to the flow production of a upper period, when determining next
Between section issue rate, to realize the periodical setting for the rate of issuing.The fixed cycle can be according to target resource server more
The demand for newly issuing rate is configured, such as can be 1 second, 1 minute or 1 hour.
Optionally, in the initial time of each period, target resource server determines the rate that issues in the period, hair
Give flow scheduling server.In the initial time of next period, when target resource server determines that this is next again
Between issue rate in section, be sent to flow scheduling server.
Also, determine that this is issued rate storage in the database by target resource server, next when issuing rate every time
Period needs to use when issuing rate of period, and upper one is called directly from the database of the target resource server
A period issues rate.
The embodiment of the present disclosure determined for the second time by taking first time period and second time period as an example, to according to first time period
The process for issuing rate in section is illustrated, and first time period can be any time period, which is at the first time
Next period of section, and determine that the process for issuing rate in other times section is similar with the embodiment of the present disclosure, herein no longer
It repeats one by one.
The rate that issues in the first time period that target resource server determines is known as first and issues rate, the second time determined
The rate that issues in section is known as second and issues rate.This first issue rate can for target resource server according to the upper of first time period
It issues what rate obtained in one period, issues rate acquisition second according to first in acquisition modes and subsequent step and issue rate
Process is similar, wouldn't explain herein.Alternatively, target resource server is in first time period offer service for the first time, first
Between section be target resource server initial time section, then by this first issue rate be determined as it is default issue rate, this is default to issue
What rate can determine at random for target resource server issues rate, or determined according to the flux lower limit of target resource server
Issue rate etc..
302, target resource server obtains the first flow in first time period.
First flow is generated by the resource link of at least one terminal access target Resource Server in first time period.
Optionally, in first time period, each target resource server receives the access request of any terminal transmission
When, according to the resource link that the access request carries, the corresponding resource of the resource link is obtained, is sent to the terminal, and
The flow that generation can be counted during sending resource, records the flow, so as to count total stream in first time period
Amount, as first flow.Target resource server stores the first flow of statistics, in order to subsequent calls.
303, target resource server obtains the target flow in second time period.
Target flow determines by target resource server according to the flow for needing to generate in second time period, can be by target
The maintenance personnel of Resource Server is configured, or by target resource server by being calculated.
Optionally, target resource server configured bandwidth resource, the flow that the upper limit of the bandwidth resources can be supported are
The flow rate upper limit of target resource server, but in target resource server actual moving process, in order to guarantee service invariant, institute
The flow reached is less than the flow rate upper limit.Therefore the stream reached under the premise of target resource server being guaranteed service invariant
Amount is determined as target flow.
For example, the bandwidth resources of target resource server are 100,000,000, which is no more than 90,000,000 in flow
When be capable of providing stable service, then the target flow of the target resource server is 90,000,000.
It should be noted that in each period, the target flow of target resource server setting can be identical, can also be with
It is different.For example, identical target flow can be set in target resource server in most of the time section, and sometime
When there are abnormal conditions in section, target flow can be adjusted according to demand.
304, target resource server issues ratio and target flow between rate and first flow according to first, determines
Second requested in second time period to flow dispatch server issues rate.
In the embodiment of the present disclosure, in section at the same time, under target resource server is requested to flow scheduling server
After hair rate, flow scheduling server issues rate down distributing resource according to this and links, to generate flow on target resource server.
Therefore, this issues between rate and the flow that there are incidence relations.
But since target resource server can not know that flow scheduling server in each period is issued in advance
The total quantity of resource link, may be unexpected by when terminal accesses to the resource link after getting resource link, because
This, which can not accurately be determined, issues between rate and flow that there are which kind of incidence relations.
It is identical in view of issuing the incidence relation between rate and flow in different time sections, therefore can be using at the first time
The incidence relation between rate and flow is issued in section, to estimate the incidence relation issued between rate and flow in second time period.
For this purpose, target resource server, which obtains first, issues ratio between rate and first flow, indicated with the ratio
The incidence relation between rate and flow is issued in first time period, and target resource server has determined in second time period
Target flow, therefore issue ratio and target flow between rate and first flow according to first, that is, when can determine second
Between second issue rate in section.
Optionally, step 304 may comprise steps of any one of 3041-3043:
3041, the ratio and target flow issued according to first between rate and first flow is determined using following formula
Second requested in second time period to flow dispatch server issues rate:
Wherein, r2Rate, r are issued for second1Rate, b are issued for first2For target flow, b1For first flow.
Using above-mentioned formula determine second issue rate the reason of be:
Assuming that the total quantity for the resource link that flow scheduling server issues is m, the rate that issues of target resource server is
R, transformation ratio λ, the transformation ratio indicate in the resource link of target resource server that terminal receives, terminal access
Ratio shared by resource link, by repeatedly testing available λ ∈ (0.06~0.15), the target resource of terminal actual access
The quantity of the resource link of server is n, and the flow that the resource link of terminal access target resource server generates is b, flow
Coefficient is β, which indicates the ratio between one resource link of access and the flow actually generated, by repeatedly testing
Available β ∈ (3~8).
Then there is following incidence relation:
N=m × r × λ;
B=n × β;
Second time period is compared with first time period, it is assumed that the sum for the resource link that flow scheduling server issues
It is constant to measure m, therefore, available following incidence relation:
b1=m × r1×λ×β;
b2=m × r2×λ×β;
It that is to say:
3042, the ratio and target flow issued according to first between rate and first flow is determined using following formula
Second requested in second time period to flow dispatch server issues rate:
Wherein, r1Rate, b are issued for first1For first flow, r2Rate, b are issued for second2For target flow, Δ () is
Preset function, t are preset duration, the preset duration be at the time of flow scheduling server issues any resource link with any money
Time interval between at the time of linking sources are accessed.
In view of, according to rate is issued, issuing the resource chain of target resource server in certain time period flow scheduling server
After connecing, there is delay in the process of terminal access resource link.I.e. during this period of time, some resource links are accessed, thus
Flow is produced on target resource server, but some resource links are temporarily not visited, temporarily not on target resource server
Flow is generated, in the period after that period of time, once these resource links are accessed, still can be taken in target resource
Flow is generated on business device.So, ratio between rate and first flow is issued according only to first, can not accurately embodies the rate of issuing
Incidence relation between flow, it is also necessary to consider the influence of time delay.
Therefore preset duration is introduced in above-mentioned steps 3042, which can be by a large amount of resource link
The time interval statistics for issuing the moment and accessing between the moment determines, will issue rate and assigns in the preset duration, to realize
The dynamic of flow adjusts.
For example, the time span of each period is 1 minute, terminal receives flow scheduling service in first period
10 resource links that device issues, and within first period, 1 resource link is only had accessed, target resource server is real
The flow that border generates only accesses the flow of this 1 resource link generation.Also, user accesses this 10 resource links and consumes in total
7 minutes are taken, across 7 periods, generated flow is dispersed in this 7 periods.
For another example, experimental data shows that, for the resource link issued, there are about 50% flows in 3 minutes after issuing
It comes into force, there are about 95% or more flows to come into force in 7 minutes.
3043, when first flow exceeds the preset flow upper limit, the ratio between rate and first flow is issued according to first
And target flow determines that request in second time period to flow dispatch server second issues rate using following formula:
a1=r1× 10%;
Wherein, r1Rate, r are issued for first2Rate, b are issued for second1For first flow, b2For target flow, a1For by first
What the rate of issuing obtained after being inhibited issues rate, a2Rate, avg (a are issued to issue obtain after rate is inhibited another by first1
+a2) it is a1With a2Average value, ρ is default inhibiting factor, and t is preset duration, which is under flow scheduling server
Time interval between at the time of sending out resource link any and at the time of any resource link is accessed.
Wherein, the preset flow upper limit is the maximum that target resource server can reach under the premise of guaranteeing service invariant
Flow, when the flow of target resource server is less than the preset flow upper limit, target resource server is capable of providing stable
Service needs to issue rate to target resource server when the flow of target resource server is greater than the preset flow upper limit
It is effectively controlled, so that the target resource server be made to be less than in the preset flow in the flow that subsequent time period generates
Limit.
In addition, preset flow lower limit can also be arranged in target resource server, which can be according to target
The minimum discharge when bandwidth resources of Resource Server are utilized effectively is configured.
When the flow of target resource server exceeds the preset flow upper limit, the rate of issuing is pressed down using above-mentioned formula
System, wherein issue rate for first and obtain a multiplied by 10%1, rate, which is issued, to first plays inhibiting effect, therefore, a1For by first
What the rate of issuing obtained after being inhibited issues rate, can generate stronger inhibitory effect to the rate that issues, realize high inhibition.Also,
A is obtained multiplied by default inhibiting factor ρ by the rate that issues that rate, first flow and target flow obtain is issued by first2, using another
A kind of mode issues rate to first and plays inhibiting effect, therefore, a2For first is issued obtained after rate is inhibited it is another
Rate is issued, weaker inhibitory effect can be generated to the rate that issues, weak inhibition is realized, under comprehensively considering after high inhibition and weak inhibition
Hair rate obtains second and issues rate.
Optionally, detect whether the flow in each period exceeds the preset flow upper limit, when continuous preset quantity
When flow in period exceeds the preset flow upper limit, just issue by the way of above-mentioned steps 3043 inhibition of rate.And
When the flow in the period of continuous preset quantity is not detected beyond the preset flow upper limit, above-mentioned steps 3043 are not used,
But employing mode determination issues rate.Can guarantee that the bandwidth of only duration is crossed the border so just will do it the inhibition for the rate of issuing,
And avoid to cross the border to provisional bandwidth and issue the inhibition of rate, the influence that provisional bandwidth is crossed the border is preferably minimized.
It should be noted that above-mentioned steps 3041-3043 is optional step, can execute or not execute.In addition, mesh
Mark Resource Server can also obtain second using other modes and issue rate, and the embodiment of the present disclosure issues the tool of rate to acquisition second
Body mode is without limitation.
305, target resource server issues rate for second and is sent to flow scheduling server.
Get second issue rate after, target resource server issues rate for second and is sent to flow scheduling server,
To request flow scheduling server second to issue rate according to this, the resource link of target resource server is issued.
It should be noted that above-mentioned steps 301-305 can be executed at the beginning of second time period, or can be with
Preset duration before at the beginning of second time period executes at the time of correspondence, which is less than the time of period
Span, such as can be 0.01 second, 0.1 second etc..
306, flow scheduling server issues rate according to second, and the resource link of target resource server is handed down at least
One terminal.
What flow scheduling server received the transmission of target resource server second issues rate, according to this second issue rate into
Row flow scheduling is linked at least one terminal down distributing resource, the resource chain of target resource server in the resource link issued
Rate should be issued for second by connecing shared ratio.
About the detailed process of flow scheduling server down distributing resource link, following embodiment illustrated in fig. 4 are referred to.
307, it when at least one terminal detects the trigger action to the resource link of target resource server, is provided to target
Source server sends the resource request for carrying the resource link.
Terminal shows the resource link after receiving the resource link that flow scheduling server issues, and user can be right
The resource link carries out trigger action, when terminal detects the trigger action, sends to target resource server and carries the resource
The resource request of link.
Wherein, which can be clicking operation, slide etc..
Optionally, one or more resources are stored on target resource server, and the resource identification of each resource, root are set
Different resources can be distinguished according to resource identification.The resource may include a plurality of types of moneys such as text, video, picture, audio
Source, the resource identification can be resource name, the storage address of resource or resource number etc..
The resource link of target resource server includes that the address information of target resource server is corresponding with the resource link
Resource resource identification, terminal can take according to the address information in resource link to the corresponding target resource of the address information
Business device sends the resource request for carrying the resource link.
After the terminal display resource link, user can carry out trigger action to the resource link immediately, can also be one
After the section time, trigger action just is carried out to the resource link.The embodiment of the present disclosure does not limit the opportunity for triggering the resource link
It is fixed.
308, when target resource server receives resource request, the corresponding resource of the resource link is obtained, end is sent to
End, and the transmission resource process generates flow on target resource server.
After target resource server receives the resource request, the resource according to included by resource link in resource request
Mark, gets the corresponding resource of the resource identification, which is sent to terminal, is shown by terminal.Also, the resource
Transmission process flow can be also generated on target resource server, target resource server can count this resource and be transmitted across
The flow that journey generates.
It should be noted that the embodiment of the present disclosure is only by taking the target resource server in scheduling system as an example, to determination
The process for issuing rate is illustrated, and target resource server can be any resource service in above-mentioned multiple Resource Servers
Device.And other Resource Servers determine that the process for the rate that issues is similar with the embodiment of the present disclosure, this is no longer going to repeat them.
In the related technology, the multiple Resource Servers connected including dispatch server with dispatch server in scheduling system,
Terminal sends resource request to dispatch server, when dispatch server receives the resource request, using global load balancing
Scheduling mode chooses target resource server, by the IP (Internet of the target resource server from multiple Resource Servers
Protocol, Internet protocol) address is sent to the terminal, and which sends according to the IP address to target resource server
Resource request obtains resource from target resource server, and the process of the acquisition resource can generate stream on target resource server
Amount.But the scheduling system that this mode is suitble to building large-scale, to the more demanding of Resource Server, Resource Server needs pre-
First prepare enough bandwidth resources.But if the practical flow generated of Resource Server is not up to the band of Resource Server
The wide resource upper limit, and will cause the waste of bandwidth resources, cause the utilization rate of bandwidth resources not high.
And the method that the embodiment of the present disclosure provides, target resource server obtain in first time period to flow dispatch service
The first of device request issues rate, obtains the resource link in first time period by least one terminal access target resource server
When the first flow that generates, obtain the target flow in second time period, the ratio between rate and first flow issued according to first
Example and target flow determine that requested in second time period to flow dispatch server second issues rate, this second is issued
Rate is sent to flow scheduling server, second issues the money that rate issues target resource server according to this by flow scheduling server
Linking sources.This method can issue rate, reality in a upper period according to what is requested in a upper period to flow dispatch server
The target flow that the flow and subsequent time period that border generates need to generate, determining will be to flow scheduling server in subsequent time period
Request issues rate, regains the initiative, under the premise of guaranteeing service invariant, can traffic conditions to subsequent time period into
Row anticipation, realizes the control to the flow of subsequent time period, avoids the problem of flow overflows, improves the sensitivity of traffic aware
Degree.And the control that bandwidth resources are realized by adjusting the mode of flow, it is not necessary that flow is high-incidence and prepares excessive in order to prevent
Bandwidth resources, avoid the waste of bandwidth resources, improve the utilization rate of bandwidth resources.
Also, it also proposed in the related technology a kind of by DNS (Domain Name System, domain name system) server
The scheme for carrying out flow scheduling sends domain name analysis request from terminal to dns server, is provided by dns server according to terminal
Domain name the IP address of a Resource Server is chosen from the corresponding multiple IP address of the domain name according to load balancing,
It is sent to terminal, the resource provided on the Resource Server is accessed according to the IP address of the Resource Server by terminal.But this
Kind mode needs to be affected by operator DNS server by operator.And the method that the embodiment of the present disclosure provides,
Dns server can be bypassed, avoids dns server bring from influencing, directly acts in terminal, realize accurately flow control
System, to improve utilization rate of equipment and installations.
Flow scheduling is carried out using the method for usual manner and embodiment of the present disclosure offer in the related technology respectively, is obtained
Scheduling result is as follows:
When using usual manner in the related technology come schedules traffic, stream that Resource Server generates within each period
Curve is measured as shown in figure 4, abscissa indicates the time, ordinate indicates the flow accounting generated, and the flow curve is in part-time
The flow that section generates is higher, and lower in the flow that partial time period generates, in order to make Resource Server in the flow higher time
It is also capable of providing stable service in section, needs to prepare enough bandwidth resources, and these bandwidth resources are lower in flow
Utilization rate in period is relatively low, causes the waste of bandwidth resources.
When using the method that the embodiment of the present disclosure provides come schedules traffic, what Resource Server was requested within each period
Rate curve is issued as shown in figure 5, abscissa indicates the time, ordinate indicates the resource accounting issued, and Resource Server is each
The flow curve generated in period is as shown in Figure 6.Resource Server is provided with 32% bandwidth resources, steady in order to provide
Fixed service controls the bandwidth upper limit 31%.
Comparison diagram 5 and Fig. 6, when Resource Server generate flow it is higher when, subsequent time period determine one it is lower under
Hair rate is reduced by reducing the flow that the rate that issues generates Resource Server.When the flow that Resource Server generates is lower, under
One period determined the higher flow increase for issuing rate, generating Resource Server by increasing the rate that issues.Pass through this
Kind control mode can keep the steady fluctuation of flow, by flow control in the bandwidth upper limit hereinafter, without preparing excessive bandwidth
Resource improves bandwidth availability ratio.
Fig. 7 is a kind of flow chart of traffic scheduling method shown according to an exemplary embodiment, as shown in fig. 7, the public affairs
The interaction agent of embodiment is opened as at least one terminal, flow scheduling server and multiple Resource Servers, this method comprises:
701, multiple Resource Servers issue rate to the transmission of flow scheduling server.
In each period, the rate that issues respectively determined is sent to flow scheduling server by multiple Resource Servers, no
The rate that issues with Resource Server can be the same or different.
702, what flow scheduling server received that multiple Resource Servers send issues rate.
703, flow scheduling server stores the rate that issues of multiple Resource Servers.
Optionally, each Resource Server has corresponding address information, and flow scheduling server can be by each resource
Server issues that rate is corresponding with address information to be stored in database profession, so that distinguishes different Resource Servers issues rate.
Optionally, flow scheduling server receive that multiple Resource Servers send it is multiple issue rate after, to multiple
It issues rate and carries out summation process.When being equal to 100% with value of rate is issued when multiple, flow scheduling server is multiple to what is received
The rate that issues of Resource Server is stored, before receive that the multiple Resource Servers of subsequent time period send issues rate,
Rate is issued according to multiple Resource Servers of this storage, the resource link of multiple Resource Servers is issued respectively.
When issuing when being not equal to 100% with value of rate when multiple, flow scheduling server obtains multiple issue between rate
Proportionate relationship re-starts calculating to the rate that issues of multiple Resource Servers, makes after recalculating according to the proportionate relationship
Multiple issue rate and values are equal to 100%.And issue rate each of after recalculating and return to corresponding Resource Server, often
A Resource Server by store before issue rate replace with flow scheduling server return issue rate, flow scheduling server
The rate that issues of multiple Resource Servers after recalculating is stored, the multiple Resource Servers of subsequent time period are being received
Before what is sent issues rate, rate is issued according to multiple Resource Servers of this storage, respectively to multiple Resource Servers
Resource link is issued.
For example, in a period of time, rate will be issued there are three Resource Server and be sent to flow scheduling server, often
It is as shown in table 1 that rate is issued transmitted by a Resource Server:
Table 1
Resource Server | Issue rate |
Resource Server 1 | 40% |
Resource Server 2 | 30% |
Resource Server 3 | 50% |
The sum of the rate that issues of three Resource Servers is 120%, and flow scheduling server is according to three resource services at this time
The proportionate relationship of device issued between rate recalculates and obtains that new to issue rate as shown in table 2:
Table 2
Resource Server | Issue rate |
Resource Server 1 | 33.3% |
Resource Server 2 | 25% |
Resource Server 3 | 41.7% |
The rate that issues after flow scheduling server will recalculate is sent to corresponding Resource Server, each resource service
Device by store before issue rate replace with flow scheduling server transmission issue rate, as Resource Server 1 is replaced with 33.3%
Change original 40%.
704, flow scheduling server chooses one of Resource Server according to the rate that issues of multiple Resource Servers, will
The resource link of the Resource Server of selection is handed down at least one terminal.
Optionally, which may include step 7041 or 7042:
7041, when receiving the resource request of any terminal transmission, rate is issued according to the request of multiple Resource Servers
One of Resource Server is chosen, resource link corresponding with the resource request on the Resource Server of selection is handed down to end
End.
In each period, flow scheduling server can count during this period of time during down distributing resource links
In the resource link issued, the respective shared ratio of the resource link of multiple Resource Servers, i.e., multiple Resource Servers
What is had reached during this period of time issues rate.Then when flow scheduling server receives the resource request of any terminal transmission
When, the difference issued between rate for issuing rate and having reached of each Resource Server request is obtained, from multiple resource services
In, select difference to be greater than 0 any one Resource Server, by money corresponding with the resource request on the Resource Server of selection
Linking sources are handed down to terminal, or the selection maximum Resource Server of difference, by the Resource Server of selection with the money
Corresponding resource link is requested to be handed down to terminal in source.
Wherein, flow scheduling server can store the resource link that each Resource Server provides, the resource link packet
Include resource identification.And resource identification to be requested is carried in the resource request of terminal transmission, therefore flow scheduling server is chosen
After Resource Server, obtain in the resource link that the Resource Server provides, the resource link including the resource identification is handed down to
Terminal.
7042, rate is issued according to the request of multiple Resource Servers, the resource link of multiple Resource Servers is handed down to
At least one terminal.
The flow scheduling server can recommend resource link according to Generalization bounds at least one terminal.
By taking the flow scheduling server will recommend resource for a certain terminal as an example, in each period, flow scheduling service
Device can count in the resource link issued during this period of time, the respective shared ratio of the resource link of multiple Resource Servers
Example, i.e., what multiple Resource Servers had reached during this period of time issues rate.Flow scheduling server can be by multiple resources
What server had reached, which issue rate, is compared, select it is the smallest issues Resource Server corresponding to rate, which is taken
Resource link on business device is handed down to terminal;The ratio issued between rate that can also be had reached according to multiple Resource Servers
The resource link that ratio is corresponded on each Resource Server is handed down to terminal by the inverse of relationship.
Alternatively, obtain the difference issued between rate for issuing rate and having reached of each Resource Server request, from more
In a resource service, difference is selected to be greater than 0 any one Resource Server, by the resource link on the Resource Server of selection
It is handed down to terminal, or the selection maximum Resource Server of difference, it will be under the resource link on the Resource Server of selection
Issue terminal.
Wherein, flow scheduling server can store the resource link that each Resource Server provides, and issue every time a certain
When the resource link of Resource Server, it can be selected from the resource link that the Resource Server provides according to Generalization bounds
It takes.
The method that the embodiment of the present disclosure provides, can be by flow scheduling server according under the request of multiple Resource Servers
Hair rate issues the resource link of multiple Resource Servers, and Resource Server can be according to upper period indraft
The target for issuing rate, the flow actually generated in a upper period and subsequent time period and needing to generate of amount dispatch server request
Flow, rate will be issued to what flow scheduling server was requested by determining in subsequent time period, being capable of flow feelings to subsequent time period
Condition is prejudged, and realizes the control to the flow of subsequent time period, avoids the problem of flow overflows.And it is excessive without preparing
Bandwidth resources, avoid the waste of bandwidth resources, improve the utilization rate of bandwidth resources.
Fig. 8 is a kind of block diagram for issuing rate processing unit shown according to an exemplary embodiment, as shown in figure 8, the dress
It sets and includes:
Rate acquiring unit 801 is issued, is configured as obtaining first requested in first time period to flow dispatch server
Rate is issued, is issued in the resource link that rate issues for flow scheduling server at least one terminal, target resource server
Ratio shared by resource link;
First flow acquiring unit 802 is configured as obtaining the first flow in first time period, and first flow is by least
It is generated when the resource link of one terminal access target resource server;
Second flow acquiring unit 803, for obtaining the target flow in second time period, when second time period is first
Between section next period;
Rate determination unit 804 is issued, is configured as issuing the ratio and target between rate and first flow according to first
Flow determines that request in second time period to flow dispatch server second issues rate.
In a kind of possible implementation, as shown in figure 9, the device further include:
First transmission unit 805, is configured as issuing rate for first and is sent to flow scheduling server, flow scheduling service
Device is used to issue rate according to first, issues to the resource link of target resource server.
In alternatively possible implementation, rate determination unit 804 is issued, comprising:
First determines subelement 8041, is configured as issuing the ratio and target between rate and first flow according to first
Flow determines that request in second time period to flow dispatch server second issues rate using following formula:
Wherein, r2Rate, r are issued for second1Rate, b are issued for first2For target flow, b1For first flow.
In alternatively possible implementation, rate determination unit 804 is issued, comprising:
Second determines subelement 8042, is configured as issuing the ratio and target between rate and first flow according to first
Flow determines that request in second time period to flow dispatch server second issues rate using following formula:
Wherein, r1Rate, b are issued for first1For first flow, r2Rate, b are issued for second2For target flow, Δ () is
Preset function, t are preset duration, the preset duration be at the time of flow scheduling server issues any resource link with any money
Time interval between at the time of linking sources are accessed.
In alternatively possible implementation, rate determination unit 804 is issued, comprising:
Third determines subelement 8043, is configured as issuing when first flow is beyond the preset flow upper limit according to first
Ratio and target flow between rate and first flow are determined in second time period and are taken to flow scheduling using following formula
The second of business device request issues rate:
a1=r1× 10%;
Wherein, r1Rate, r are issued for first2Rate, b are issued for second1For first flow, b2For target flow, a1For by first
What the rate of issuing obtained after being inhibited issues rate, a2Rate, avg (a are issued to issue obtain after rate is inhibited another by first1
+a2) it is a1With a2Average value, ρ is default inhibiting factor, and t is preset duration, which is under flow scheduling server
Time interval between at the time of sending out resource link any and at the time of any resource link is accessed.
In alternatively possible implementation, the device further include:
Second transmission unit 806, is configured as issuing rate for second and is sent to flow scheduling server, flow scheduling service
Device is used to issue rate according to second, issues to the resource link of target resource server.
It should be understood that the rate processing unit provided by the above embodiment that issues is when issue rate processing, only more than
The division progress of each functional unit is stated for example, can according to need and in practical application by above-mentioned function distribution by difference
Functional unit complete, i.e., the internal structure of Resource Server is divided into different functional units, it is described above to complete
All or part of function.In addition, provided by the above embodiment issue rate processing unit and issue rate processing method embodiment category
In same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
About the device in above-described embodiment, wherein each unit executes the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Figure 10 is a kind of block diagram of terminal shown according to an exemplary embodiment.The terminal 1000 is for executing above-mentioned reality
Step performed by terminal in example is applied, can be portable mobile termianl, such as: smart phone, tablet computer, MP3 player
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3),
MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level
4) player, laptop or desktop computer.Terminal 1000 is also possible to referred to as user equipment, portable terminal, on knee
Other titles such as terminal, terminal console.
In general, terminal 1000 includes: one or more processors 1001 and one or more memories 1002.
Processor 1001 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 1001 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 1001 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 1001 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1001 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 1002 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 1002 may also include volatile memory or nonvolatile memory, such as one or more magnetic
Disk storage device, flash memory device.In some embodiments, the non-transient computer-readable storage medium in memory 1002
Matter is for storing at least one instruction, at least one instruction by processor 1001 for being had to realize method in the application
What embodiment provided issues rate processing method.
In some embodiments, terminal 1000 is also optional includes: peripheral device interface 1003 and at least one periphery are set
It is standby.It can be connected by bus or signal wire between processor 1001, memory 1002 and peripheral device interface 1003.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1003.Specifically, peripheral equipment includes:
In radio circuit 1004, touch display screen 1005, camera 1006, voicefrequency circuit 1007, positioning component 1008 and power supply 1009
At least one.
Peripheral device interface 1003 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 1001 and memory 1002.In some embodiments, processor 1001, memory 1002 and periphery
Equipment interface 1003 is integrated on same chip or circuit board;In some other embodiments, processor 1001, memory
1002 and peripheral device interface 1003 in any one or two can be realized on individual chip or circuit board, this implementation
Example is not limited this.
Radio circuit 1004 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.
Radio circuit 1004 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1004 is by telecommunications
Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit
1004 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution
Code chipset, user identity module card etc..Radio circuit 1004 can by least one wireless communication protocol come with it is other
Terminal is communicated.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and
13G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio frequency
Circuit 1004 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this Shen
Please this is not limited.
Display screen 1005 is for showing UI (User Interface, user interface).The UI may include figure, text,
Icon, video and its their any combination.When display screen 1005 is touch display screen, display screen 1005 also there is acquisition to exist
The ability of the touch signal on the surface or surface of display screen 1005.The touch signal can be used as control signal and be input to place
Reason device 1001 is handled.At this point, display screen 1005 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press
Button and/or soft keyboard.In some embodiments, display screen 1005 can be one, and the front panel of terminal 1000 is arranged;Another
In a little embodiments, display screen 1005 can be at least two, be separately positioned on the different surfaces of terminal 1000 or in foldover design;
In still other embodiments, display screen 1005 can be flexible display screen, is arranged on the curved surface of terminal 1000 or folds
On face.Even, display screen 1005 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1005 can be with
Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,
Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1006 is for acquiring image or video.Optionally, CCD camera assembly 1006 includes front camera
And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.?
In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively
As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide
Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle
Shooting function.In some embodiments, CCD camera assembly 1006 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light
Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for
Light compensation under different-colour.
Voicefrequency circuit 1007 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and
It converts sound waves into electric signal and is input to processor 1001 and handled, or be input to radio circuit 1004 to realize that voice is logical
Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1000 to be multiple.
Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1001 or radio frequency will to be come from
The electric signal of circuit 1004 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking
Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action
Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1007 may be used also
To include earphone jack.
Positioning component 1008 is used for the current geographic position of positioning terminal 1000, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 1008 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union
The positioning component of Galileo system.
Power supply 1009 is used to be powered for the various components in terminal 1000.Power supply 1009 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 1009 includes rechargeable battery, which can support wired
Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1000 further includes having one or more sensors 1010.One or more sensing
Device 1010 includes but is not limited to: acceleration transducer 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensing
Device 1014, optical sensor 1015 and proximity sensor 1016.
Acceleration transducer 1011 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1000
Size.For example, acceleration transducer 1011 can be used for detecting component of the acceleration of gravity in three reference axis.Processor
The 1001 acceleration of gravity signals that can be acquired according to acceleration transducer 1011, control touch display screen 1005 with transverse views
Or longitudinal view carries out the display of user interface.Acceleration transducer 1011 can be also used for game or the exercise data of user
Acquisition.
Gyro sensor 1012 can detecte body direction and the rotational angle of terminal 1000, gyro sensor 1012
Acquisition user can be cooperateed with to act the 3D of terminal 1000 with acceleration transducer 1011.Processor 1001 is according to gyro sensors
The data that device 1012 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped
Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1005 in terminal 1000 can be set in pressure sensor 1013.When
When the side frame of terminal 1000 is arranged in pressure sensor 1013, user can detecte to the gripping signal of terminal 1000, by
Reason device 1001 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1013 acquires.Work as pressure sensor
1013 when being arranged in the lower layer of touch display screen 1005, is grasped by processor 1001 according to pressure of the user to touch display screen 1005
Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,
At least one of icon control, menu control.
Fingerprint sensor 1014 is used to acquire the fingerprint of user, is collected by processor 1001 according to fingerprint sensor 1014
Fingerprint recognition user identity, alternatively, by fingerprint sensor 1014 according to the identity of collected fingerprint recognition user.Knowing
Not Chu user identity be trusted identity when, by processor 1001 authorize the user have relevant sensitive operation, sensitivity grasp
Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1014 can be set
Set the front, the back side or side of terminal 1000.When being provided with physical button or manufacturer Logo in terminal 1000, fingerprint sensor
1014 can integrate with physical button or manufacturer's mark.
Optical sensor 1015 is for acquiring ambient light intensity.In one embodiment, processor 1001 can be according to light
The ambient light intensity that sensor 1015 acquires is learned, the display brightness of touch display screen 1005 is controlled.Specifically, work as ambient light intensity
When higher, the display brightness of touch display screen 1005 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1005 is turned down
Show brightness.In another embodiment, the ambient light intensity that processor 1001 can also be acquired according to optical sensor 1015, is moved
The acquisition parameters of state adjustment CCD camera assembly 1006.
Proximity sensor 1016, also referred to as range sensor are generally arranged at the front panel of terminal 1000.Proximity sensor
1016 for acquiring the distance between the front of user Yu terminal 1000.In one embodiment, when proximity sensor 1016 is examined
When measuring the distance between the front of user and terminal 1000 and gradually becoming smaller, by processor 1001 control touch display screen 1005 from
Bright screen state is switched to breath screen state;When proximity sensor 1016 detect the distance between front of user and terminal 1000 by
When gradual change is big, touch display screen 1005 is controlled by processor 1001 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1000 of structure shown in Figure 10
Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
Figure 11 is a kind of structural schematic diagram of server shown according to an exemplary embodiment, which can be because
Configuration or performance are different and generate bigger difference, may include one or more processors (central
Processing units, CPU) 1101 and one or more memory 1102, wherein it is deposited in the memory 1102
At least one instruction is contained, at least one instruction is loaded by the processor 1101 and executed to realize above-mentioned each method
The method that embodiment provides.Certainly, which can also have wired or wireless network interface, keyboard and input and output to connect
The components such as mouth, to carry out input and output, which can also include other components for realizing functions of the equipments, herein not
It repeats.
Server 1100, which can be used for executing, above-mentioned issues step performed by Resource Server in rate processing method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when in storage medium
Instruction by issue rate processing unit processor execute when so that the rate processing unit of issuing be able to carry out it is above-mentioned issue rate processing
Step performed by Resource Server in method.
In the exemplary embodiment, a kind of computer program product is additionally provided, when the instruction in computer program product
When processor by issuing rate processing unit executes, so that the rate processing unit of issuing is able to carry out above-mentioned issue in rate processing method
Step performed by Resource Server.
Those skilled in the art will readily occur to other realities of the disclosure after considering specification and practicing disclosure herein
Apply scheme.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or suitable
The variation of answering property follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or used
Use technological means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following right
It is required that pointing out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. one kind issues rate processing method, which is characterized in that applied to the target resource server in scheduling system, the scheduling
System includes flow scheduling server and multiple Resource Servers, the flow scheduling server and the multiple Resource Server
Connection, which comprises
It obtains first requested in first time period to the flow scheduling server and issues rate, the rate that issues is the flow
In the resource link that dispatch server is issued at least one terminal, ratio shared by the resource link of the target resource server
Example;
Obtain the first flow in the first time period, first flow target as described at least one described terminal access
It is generated when the resource link of Resource Server;
The target flow in second time period is obtained, the second time period is next period of the first time period;
Ratio and the target flow between rate and the first flow are issued according to described first, when determining described second
Between the introversive flow scheduling server request of section second issue rate.
2. the method according to claim 1, wherein being taken in the acquisition first time period to the flow scheduling
Before the first of business device request issues rate, the method also includes:
Rate is issued by described first and is sent to the flow scheduling server, and the flow scheduling server is used for according to described the
One issues rate, issues to the resource link of the target resource server.
3. the method according to claim 1, wherein described issue rate and the first flow according to described first
Between ratio and the target flow, determine second requested in the second time period to the flow scheduling server
Issue rate, comprising:
Ratio and the target flow between rate and the first flow are issued according to described first, using following formula,
Determine that request in the second time period to the flow scheduling server second issues rate:
Wherein, r2Rate, r are issued for described second1Rate, b are issued for described first2For the target flow, b1It is described first-class
Amount.
4. the method according to claim 1, wherein described issue rate and the first flow according to described first
Between ratio and the target flow, determine second requested in the second time period to the flow scheduling server
Issue rate, comprising:
Ratio and the target flow between rate and the first flow are issued according to described first, using following formula,
Determine that request in the second time period to the flow scheduling server second issues rate:
Wherein, r1Rate, b are issued for described first1For the first flow, r2Rate, b are issued for described second2For the target stream
Amount, Δ () are preset function, and t is preset duration, and the preset duration is that the flow scheduling server issues any resource
Time interval between at the time of link and at the time of any resource link is accessed.
5. the method according to claim 1, wherein described issue rate and the first flow according to described first
Between ratio and the target flow, determine second requested in the second time period to the flow scheduling server
Issue rate, comprising:
When the first flow exceeds the preset flow upper limit, the ratio between rate and the first flow is issued according to described first
Example and the target flow are determined in the second time period and are requested to the flow scheduling server using following formula
Second issue rate:
a1=r1× 10%;
Wherein, r1Rate, r are issued for described first2Rate, b are issued for described second1For the first flow, b2For the target stream
Amount, a1To issue the rate that issues obtained after rate is inhibited, a for described first2It is obtained after rate is inhibited to be issued described first
To another issue rate, avg (a1+a2) it is a1With a2Average value, ρ is default inhibiting factor, and t is preset duration, described default
At the time of flow scheduling server described in Shi Changwei issues accessed with any resource link at the time of any resource link
Between time interval.
6. the method according to claim 1, wherein described issue rate and the first flow according to described first
Between ratio and the target flow, determine second requested in the second time period to the flow scheduling server
After issuing rate, the method also includes:
Rate is issued by described second and is sent to the flow scheduling server, and the flow scheduling server is used for according to described the
Two issue rate, issue to the resource link of the target resource server.
7. one kind issues rate processing unit, which is characterized in that applied to the target resource server in scheduling system, the scheduling
System includes flow scheduling server and multiple Resource Servers, the flow scheduling server and the multiple Resource Server
Connection, described device include:
Rate acquiring unit is issued, is configured as obtaining first requested in first time period to the flow scheduling server and issues
Rate, described to issue in the resource link that rate issues for the flow scheduling server at least one terminal, the target resource
Ratio shared by the resource link of server;
First flow acquiring unit is configured as obtaining the first flow in the first time period, and the first flow is by institute
Generation when stating the resource link of target resource server described at least one terminal access;
Second flow acquiring unit is configured as obtaining the target flow in second time period, and the second time period is described
Next period of first time period;
Rate determination unit is issued, is configured as issuing ratio between rate and the first flow and described according to described first
Target flow determines that request in the second time period to the flow scheduling server second issues rate.
8. device according to claim 7, which is characterized in that described to issue rate determination unit, comprising:
First determines subelement, is configured as issuing ratio between rate and the first flow and described according to described first
Target flow determines that request in the second time period to the flow scheduling server second issues using following formula
Rate:
Wherein, r2Rate, r are issued for described second1Rate, b are issued for described first2For the target flow, b1It is described first-class
Amount.
9. a kind of Resource Server, which is characterized in that the Resource Server includes:
One or more processors;
For storing the volatibility or nonvolatile memory of one or more of processor executable commands;
Wherein, one or more of processors be configured as executing as claim 1 to claim 6 it is described in any item under
Hair rate processing method.
10. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by Resource Server
When managing device execution, so that the Resource Server, which is able to carry out, issues rate to claim 6 is described in any item such as claim 1
Processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910734906.9A CN110365545B (en) | 2019-08-09 | 2019-08-09 | Distribution rate processing method, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910734906.9A CN110365545B (en) | 2019-08-09 | 2019-08-09 | Distribution rate processing method, device, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110365545A true CN110365545A (en) | 2019-10-22 |
CN110365545B CN110365545B (en) | 2022-08-09 |
Family
ID=68223654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910734906.9A Active CN110365545B (en) | 2019-08-09 | 2019-08-09 | Distribution rate processing method, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365545B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111970132A (en) * | 2020-06-29 | 2020-11-20 | 百度在线网络技术(北京)有限公司 | OTA data packet issuing flow control method, device and server |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6600930B1 (en) * | 1997-07-11 | 2003-07-29 | Sony Corporation | Information provision system, information regeneration terminal, and server |
US20070195700A1 (en) * | 2005-09-20 | 2007-08-23 | Fujitsu Limited | Routing control method, apparatus and system |
US20110019551A1 (en) * | 2009-07-27 | 2011-01-27 | Razoom, Inc. | FLOW STATE AWARE MANAGEMENT OF QoS WITH A DISTRIBUTED CLASSIFIER |
CN105306539A (en) * | 2015-09-22 | 2016-02-03 | 北京金山安全软件有限公司 | Service information display control method and device and Internet service information display platform |
CN107872402A (en) * | 2017-11-15 | 2018-04-03 | 北京奇艺世纪科技有限公司 | The method, apparatus and electronic equipment of global traffic scheduling |
CN108830572A (en) * | 2018-06-15 | 2018-11-16 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus, storage medium and equipment |
US20180343176A1 (en) * | 2016-02-05 | 2018-11-29 | Huawei Technologies Co., Ltd. | Method For Traffic Engineering In Communications Network And Controller |
-
2019
- 2019-08-09 CN CN201910734906.9A patent/CN110365545B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6600930B1 (en) * | 1997-07-11 | 2003-07-29 | Sony Corporation | Information provision system, information regeneration terminal, and server |
US20070195700A1 (en) * | 2005-09-20 | 2007-08-23 | Fujitsu Limited | Routing control method, apparatus and system |
US20110019551A1 (en) * | 2009-07-27 | 2011-01-27 | Razoom, Inc. | FLOW STATE AWARE MANAGEMENT OF QoS WITH A DISTRIBUTED CLASSIFIER |
CN105306539A (en) * | 2015-09-22 | 2016-02-03 | 北京金山安全软件有限公司 | Service information display control method and device and Internet service information display platform |
US20180343176A1 (en) * | 2016-02-05 | 2018-11-29 | Huawei Technologies Co., Ltd. | Method For Traffic Engineering In Communications Network And Controller |
CN107872402A (en) * | 2017-11-15 | 2018-04-03 | 北京奇艺世纪科技有限公司 | The method, apparatus and electronic equipment of global traffic scheduling |
CN108830572A (en) * | 2018-06-15 | 2018-11-16 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus, storage medium and equipment |
Non-Patent Citations (3)
Title |
---|
I-SHYAN HWANG等: "Genetic expression programming: A new approach for QoS traffic prediction in EPONs", 《2012 FOURTH INTERNATIONAL CONFERENCE ON UBIQUITOUS AND FUTURE NETWORKS (ICUFN)》 * |
罗刚毅等: "一种基于网络感知的虚拟机再调度算法", 《计算机学报》 * |
黎才茂等: "可扩展Spider负载均衡策略的研究与实现", 《计算机与数字工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111970132A (en) * | 2020-06-29 | 2020-11-20 | 百度在线网络技术(北京)有限公司 | OTA data packet issuing flow control method, device and server |
CN111970132B (en) * | 2020-06-29 | 2023-05-26 | 百度在线网络技术(北京)有限公司 | Control method, device and server for OTA data packet issuing flow |
Also Published As
Publication number | Publication date |
---|---|
CN110365545B (en) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110401715B (en) | Resource collection task management method, device, storage medium and system | |
CN108259945B (en) | Method and device for processing playing request for playing multimedia data | |
EP4009187A1 (en) | Block processing method and apparatus, and data query method and apparatus based on blockchain | |
CN109284445A (en) | Recommended method, device, server and the storage medium of Internet resources | |
CN110022373A (en) | Method for distributing business, device, server and storage medium | |
CN111144822A (en) | Warehouse-out time length determining method and device, computer equipment and storage medium | |
CN110380904B (en) | Bandwidth allocation method and device, electronic equipment and storage medium | |
CN110147503B (en) | Information issuing method and device, computer equipment and storage medium | |
CN110147380A (en) | Data-updating method, device, server and storage medium | |
CN110535890B (en) | File uploading method and device | |
CN108900925A (en) | The method and apparatus of live streaming template are set | |
CN113069760A (en) | Resource allocation method, device, computing equipment and computer readable storage medium | |
CN109697113A (en) | Request method, apparatus, equipment and the readable storage medium storing program for executing retried | |
CN112052096A (en) | Resource processing method and device, server and terminal | |
CN110365545A (en) | Issue rate processing method, device, server and storage medium | |
CN110471614A (en) | A kind of method of storing data, the method and device for detecting terminal | |
CN110825465B (en) | Log data processing method and device, electronic equipment and storage medium | |
CN110727894B (en) | Target material setting method, device, equipment and storage medium | |
CN110149408A (en) | Business datum display methods, device, terminal and server | |
CN113949678B (en) | Flow control method, flow control device, electronic equipment and computer readable storage medium | |
CN113377647B (en) | Page processing method, device, server, terminal and readable storage medium | |
CN113098781B (en) | Session list processing method, device, server and storage medium | |
CN111694521B (en) | Method, device and system for storing file | |
CN113051494A (en) | Information display method and device, electronic equipment and storage medium | |
CN112052153B (en) | Product version testing method and device |
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 |