The content of the invention
The embodiment of the present invention provides a kind of method of adjustment of Internet resources presentation mode, cannot be high to solve prior art
Effect ground analysis network condition, timely addressing network problems, and then lead to not to adjust in time the presentation mode of Internet resources and ask
Topic.
The embodiment of the present invention provides a kind of method of adjustment of Internet resources presentation mode, including:
Determine that network traffics occupancy reaches the first threshold value, or/and, if service request quantity reaches the second threshold value
Dry business;
Determined according to the message transmission rate of the service request quantity and business of each business in some business
Corresponding service quality, and corresponding resource is determined according to the network traffics occupancy of each business in some business
Consumption;
According to each self-corresponding service quality of each business and consumed resource in some business, phase is determined respectively
The business answered provides efficiency;
Business of the efficiency less than the 3rd threshold value is provided for business, corresponding Internet resources presentation mode is adjusted.
The embodiment of the present invention provides a kind of adjusting apparatus of Internet resources presentation mode, including:
Service selection module, for determining that network traffics occupancy reaches the first threshold value, or/and, service request quantity
Reach some business of the second threshold value;
Efficiency determination module, for service request quantity and the number of business according to each business in some business
The corresponding service quality of acquisition is determined according to transfer rate, and is accounted for according to the network traffics of each business in some business
Corresponding consumed resource is determined with rate;According to each self-corresponding service quality of each business and money in some business
Source consumption, determines that corresponding business provides efficiency respectively;
Mode adjusting module, for providing business of the efficiency less than the 3rd threshold value for business, adjusts corresponding network
Resource provider formula.
In the embodiment of the present invention, determine that network traffics occupancy reaches the first threshold value, or/and, service request quantity reaches
To some business of the second threshold value, so as to select some larger to whole network Influence to operation business, and according to determination
The each self-corresponding service quality of some business for going out and consumed resource, it is determined that corresponding business provides efficiency, adjustment business is carried
The Internet resources presentation mode of the business of the 3rd threshold value is less than for efficiency, so as to quick positioning service provides efficiency too low industry
Business, to reach the Internet resources presentation mode of adjustment corresponding service in time, the purpose of rapid Optimum network.
Specific embodiment
The method of adjustment and device of a kind of Internet resources presentation mode are embodiments provided, efficiently can be analyzed
Network condition, quick positioning service provide efficiency too low business, so as to adjust the offer of the Internet resources of corresponding service in time
Mode, reaches the purpose of rapid Optimum network.
The preferred embodiments of the present invention are illustrated below in conjunction with the accompanying drawings.
Refering to shown in Fig. 2, a kind of method of adjustment of Internet resources presentation mode of embodiment of the present invention design, including it is as follows
Step.
Step 201:Determine that network traffics occupancy reaches the first threshold value, or/and, service request quantity reaches second
Some business of limit value.
In practical application, it is also possible to combine Qi Pufu(Zipf)Law determines above-mentioned some business, used as needing to compare
Corresponding business provides the business of efficiency.This is because the network traffics occupancy or service request quantity of business, with the business
The constant power of ranking there is simple inverse relation.
For example, the network traffics occupancy of all of business in network is arranged according to order from big to small, is selected
The some business for being arranged in front 20% are selected out, or/and,
The service request quantity of all of business in network is arranged according to order from big to small, arrangement is selected
In front 20% some business, as the business for needing execution subsequent step.
In practical application, service request quantity can be the number of the domain name mapping request of the corresponding service that server is received
Amount.
Step 202:According to the data transfer speed of the service request quantity and business of each business in above-mentioned some business
Rate determines corresponding service quality, and determines phase according to the network traffics occupancy of each business in above-mentioned some business
The consumed resource answered.
First, can be, but not limited to the service quality of business is determined using following preferably modes.
For above-mentioned some business, according to the service request quantity of each business, it is determined that corresponding quality weight coefficient,
Wherein, the corresponding quality weight coefficient of each business is directly proportional to the service request quantity of the business, and above-mentioned some business
In the corresponding quality weight coefficient of each business summation be 1;;
According to the message transmission rate and corresponding quality weight coefficient of any one business, any one business is determined
Service quality.
In general, service request quantity is bigger, and corresponding quality weight coefficient is also bigger, and this indicates that corresponding service
Service quality it is higher, it is higher that the business of corresponding service provides efficiency.
For example, directly by the message transmission rate of business and the product of quality weight coefficient can service as corresponding
Quality.Again for example, can using ln (speed × a) as business service quality, wherein, speed represents the maximum biography of the business
Defeated speed, a are the quality weight coefficient of the business.
In Fig. 3, vertical coordinate is service quality, and abscissa is message transmission rate, during different coordinate points represent practical application
A certain business is represented and is close to the one of these coordinate points in the different corresponding service quality of message transmission rate, the camber line in Fig. 3
Individual ln(x)The curve of function.
Refering to shown in Fig. 3, a certain business message transmission rate when to a certain degree, lift message transmission rate pair
The effect for lifting service quality gradually can weaken, and ask log then embody this rule using logarithmic function, and can lead to
Cross and change the truth of a matter of logarithmic function to show power that message transmission rate affects service quality, therefore, it can by following
Formula more accurately calculates service quality:
Wherein, speed represents the peak transfer rate of any one business, and average_speed represents above-mentioned some
The average transmission rate of business, a are the corresponding quality weight coefficient of any one business, and truth of a matter x in above-mentioned formula is should
The transfer rate variability index of any one business.
Above-mentioned x can be determined according to the power that message transmission rate is affected on service quality.
Based on difference of the message transmission rate in practical situation to service quality degree of influence, different public affairs can be selected
Formula, calculates the service quality of business according to the message transmission rate of business.
Second, can be, but not limited to the consumed resource of business is determined using following preferably modes.
For above-mentioned some business, according to the network traffics occupancy of each business, it is determined that corresponding flow weighting system
Number, wherein, the corresponding flow weight coefficient of each business is directly proportional to the service request quantity of the business, and above-mentioned some industry
The summation of the corresponding flow weight coefficient of each business in business is 1;
According to the network flow consumption amount and corresponding flow weight coefficient of any one business, any one industry is determined
The consumed resource of business.
In general, network traffics occupancy is higher, and corresponding flow weight coefficient is bigger, and this indicates that corresponding service
Consumed resource is bigger, and the business offer efficiency of corresponding service is lower.
For example, can using traffic cost × b as business consumed resource, wherein traffic cost represent this
The network flow consumption amount of business, b are the flow weight coefficient of the business.
As the impact of the consumption to consumed resource of network traffics is very big, certain journey is reached in network flow consumption amount
When spending, the trickle growth of network flow consumption amount increases in which often may all cause consumed resource geometry multiple, therefore, it can
By following formula more accurately computational resource consumption:
Wherein, traffic cost represent the network flow consumption amount of any one business, average_traffic
Cost represents the average discharge consumption of above-mentioned some business, and the index b in above-mentioned formula is the flow of any one business
Weight coefficient.
Step 203:According to each self-corresponding service quality of each business and consumed resource in above-mentioned some business, point
Do not determine that corresponding business provides efficiency.
It is preferred that after the service quality and consumed resource of the business that determines, can be, but not limited to the clothes of the business
Business quality and the ratio of consumed resource, provide efficiency as the business of the business.
Step 204:Business of the efficiency less than the 3rd threshold value is provided for business, corresponding Internet resources provider is adjusted
Formula.
In practical application, the business that can calculate benchmark service provides efficiency, as the 3rd threshold value, it is also possible to
Efficiency is provided by above-mentioned some business each self-corresponding business to arrange according to order from big to small, the absolute value of difference is more than
Two business of predetermined threshold value provide the relatively low numerical value in efficiency, used as the 3rd threshold value.
It is preferred that realizing that the entity of said method flow process can be server.For example, server can be it is determined that a certain industry
When the business of business provides efficiency less than three threshold values, corresponding Internet resources presentation mode is replaced by from IDC presentation modes
CDN presentation modes.
Based on same mentality of designing, the embodiment of the present invention have also been devised a kind of adjusting apparatus of Internet resources presentation mode,
Refering to shown in Fig. 4, the device includes:
Service selection module 401, for determining that network traffics occupancy reaches the first threshold value, or/and, service request number
Amount reaches some business of the second threshold value;
Efficiency determination module 402, for service request quantity and business according to each business in some business
Message transmission rate determine corresponding service quality, and accounted for according to the network traffics of each business in some business
Corresponding consumed resource is determined with rate;According to each self-corresponding service quality of each business and money in above-mentioned some business
Source consumption, determines that corresponding business provides efficiency respectively;
Mode adjusting module 403, for providing business of the efficiency less than the 3rd threshold value for business, adjusts corresponding net
Network resource provider formula.
It is preferred that above-mentioned efficiency determination module 402 is specifically for for above-mentioned some business, according to each business
Service request quantity, it is determined that corresponding quality weight coefficient, wherein, the corresponding quality weight coefficient of each business and the business
Service request quantity be directly proportional, and in above-mentioned some business the corresponding quality weight coefficient of each business summation be 1;Root
According to the message transmission rate and corresponding quality weight coefficient of any one business, the Service Quality of above-mentioned any one business is determined
Amount.
Further, above-mentioned efficiency determination module 402 is specifically for determining above-mentioned any one business based on following formula
Service quality:
Wherein, speed represents the peak transfer rate of any one business, and average_speed represents above-mentioned some
The average transmission rate of business, truth of a matter x in above-mentioned formula are the transfer rate variability index of any one business, and a is should
The corresponding quality weight coefficient of any one business.
It is preferred that above-mentioned efficiency determination module 402, specifically for:
For above-mentioned some business, according to the network traffics occupancy of each business, it is determined that corresponding flow weighting system
Number, wherein, the corresponding flow weight coefficient of each business is directly proportional to the service request quantity of the business, and above-mentioned some industry
The summation of the corresponding flow weight coefficient of each business in business is 1;According to the network flow consumption amount of any one business
With corresponding flow weight coefficient, the consumed resource of above-mentioned any one business is determined.
Further, above-mentioned efficiency determination module 402, specifically for determining above-mentioned any one business based on following formula
Service quality:
Wherein, traffic cost represent the network flow consumption amount of any one business, average_traffic
Cost represents the average discharge consumption of above-mentioned some business, and the index b in above-mentioned formula is the flow of any one business
Weight coefficient.
Above-mentioned efficiency determination module 402 is specifically for for any one business in above-mentioned some business, by above-mentioned
The service quality of one business of meaning and the ratio of consumed resource, provide effect as the corresponding business of above-mentioned any one business
Rate.
The adjusting apparatus of above-mentioned Internet resources presentation mode can be server, or other realities outside server
Body device.
In the embodiment of the present invention, determine that network traffics occupancy reaches the first threshold value, or/and, service request quantity reaches
To some business of the second threshold value, so as to select some larger to whole network Influence to operation business, and according to determination
The each self-corresponding service quality of some business for going out and consumed resource, it is determined that corresponding business provides efficiency, adjustment business is carried
The Internet resources presentation mode of the business of the 3rd threshold value is less than for efficiency, so as to quick positioning service provides efficiency too low industry
Business, to reach the Internet resources presentation mode of adjustment corresponding service in time, the purpose of rapid Optimum network.
The present invention is with reference to method according to embodiments of the present invention, equipment(System), and computer program flow process
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
The combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be provided
The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into the had altered of the scope of the invention and change.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these modifications of the embodiment of the present invention and modification belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.