A kind of adaptive terminal network flux modification method
Technical field
The present invention relates to communication technical field, relate in particular to a kind of adaptive terminal network flux modification method.
Background technology
The software of existing wireless terminal traffic statistics generally is that the api function that utilizes system to provide can obtain the local flow that use at the terminal, and is accumulated into a moon flow.But because local packets also exists winding flow and problems such as some re-transmissions, the packet of losing and load factor; The packet that causes an application program to send; With not of uniform size the causing of seeing at operator charge system place of packet, so every month flow that this locality counts can not be identical with every month real traffic that operator comes out.
One Chinese patent application discloses a kind of artificial synthesis and device of network traffics for CN201180000307.6 number; From real traffic, extract the first real traffic composition parameter sequence and the second real traffic composition parameter sequence, generate first flow composition parameter sequence; Obtain the coefficient of relationship between the first flow composition parameter and the second flow composition parameter, and generate the second artificial flow composition parameter sequence; According to the first artificial flow composition parameter sequence and the synthetic artificial flow of the second artificial flow parameter composition sequence.This scheme exists following not enough: it can't regulate the value of synthetic artificial flow according to user's use habit.One Chinese patent application discloses self adaptive network traffic prediction and the abnormal alarm method of a kind of utilization based on genetic algorithm for CN2004100009855 number.It is based on the genetic algorithm flow of certain time period of prediction, and its emphasis is the flow of certain time dimension of prediction.
Summary of the invention
The object of the present invention is to provide a kind of adaptive terminal network flux modification method, make the local flow that comes out come the real traffic of the charge system statistics of convergence different operators, be shown to the user through correction calculation.
Another object of the present invention is to provide a kind of adaptive terminal network flux modification method, can come the value of dynamic adjustments flow according to user's use habit, thereby improve user satisfaction, and then can improve the network flow statistic competitiveness of product.
The objective of the invention is to realize through following technical scheme.
A kind of adaptive terminal network flux modification method comprises:
The proportion that accounts for total flow according to application program weights and local application flow calculates the corresponding calibrated flow of total flow;
Adjustment application program weights are to each application assigned initial weight.
Preferably, the calculating of said calibrated flow specifically comprises step:
The flow that s1, local each application program of record are used adds up local total flow information simultaneously;
S2, obtain and upgrade the weights (r of application program from high in the clouds
1..., r
n);
The flow of s3, local each application program use of calculating respectively and the ratio of local total flow obtain (b
1..., b
n);
S4, calibrated flow=local flow * (b
1* r
1+ b
2* r
2+ ... B
n* r
n);
Wherein, n is a natural number.
Preferably, if the application program weights of giving tacit consent to are taked in not output of high in the clouds among the step s2 so.
Preferably, said adjustment application program weights specifically comprise step:
A, user are to operator's inquiry this month use traffic, and this part is a real traffic;
B, user select to proofread and correct adjustment application program weights;
C, will do ratio from real traffic and local flow information that operator obtains;
D, the weights of this ratio and application program are done level and smooth computation of mean values, be uploaded to high in the clouds.
Preferably, said real traffic is for through the network of operator, and the flow that is come out by operator's charge system.
Preferably, said local flow be application software through the local network flow that system's API Calls reads out, comprise the total flow information that reads, the local flow informations such as flow of each application.
Preferably, the real traffic value of said calibrated flow for going out according to local volume forecasting.
Preferably, said application program weights are according to the ratio of using data protocol in the application program, comprehensively a mean parameter obtaining of its corresponding load rate.
Preferably, said terminal comprises mobile phone, net book and portable terminal product.
The embodiment of the invention compared with prior art, the present invention is through to each application assigned initial weight, makes the use habit that calibrated flow can adaptive user; Because the calibrated flow that calculates can be used the size of use traffic along with certain; And dynamically adjust its size, thereby can adapt to the preference of different user, make the user needn't be more initiatively to operator's inquiry real traffic; The real traffic that just can estimate from calibrated flow; The real traffic of this real traffic convergence operator statistics, thus user satisfaction improved, and then can improve the network flow statistic competitiveness of product.
Description of drawings
Fig. 1 is the calculation flow chart of calibrated flow in the implementation method of the present invention.
Fig. 2 is the adjustment flow process of the weights of application program in the implementation method of the present invention.
Embodiment
Core concept of the present invention: comprise that the proportion that accounts for total flow according to application program weights and local application flow calculates the corresponding calibrated flow of total flow.The step that also comprises adjustment application program weights simultaneously; Through to each application assigned initial weight; Make the calibrated flow that calculates to use the size of use traffic along with certain, and dynamically adjust its size, thereby can adapt to different use crowds' use habit; The user needn't be more initiatively to operator's inquiry real traffic, the real traffic that just can estimate from calibrated flow.
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In the present embodiment, realize that adaptive terminal network flux modification method comprises the calculating of calibrated flow and two processing procedures of adjustment of application program weights:
See also Fig. 1, the calculating of calibrated flow comprises the steps:
101. at first the flow of local each application program use of record adds up local total flow information simultaneously.
102. obtain and upgrade the weights (r of application program from high in the clouds
1..., r
n), n is a natural number.
Wherein, if the application program weights of giving tacit consent to are taked in not output of high in the clouds in the step 102 so.
103. calculate the flow of local each application program use and the ratio of local total flow respectively, obtain (b
1..., b
n), n is a natural number.
104. calibrated flow=local flow * (b
1* r
1+ b
2* r
2+ ... B
n* r
n), n is a natural number.
See also Fig. 2, the adjustment of application program weights comprises the steps:
201. the user is to operator inquiry this month use traffic, this part is a real traffic.
202. the user selects to proofread and correct, and proofreaies and correct and then carries out the adjustment of application program weights, does not proofread and correct then process ends.
203. will do ratio from real traffic and local flow information that operator obtains.
204. the weights of this ratio and application program are done level and smooth computation of mean values, are uploaded to high in the clouds.
Said real traffic refers to the network through operator, and the flow that is come out by operator's charge system.
Said local flow is meant that application software through the local network flow that system's API Calls reads out, comprises the total flow information that reads, the local flow informations such as flow of each application.
Said calibrated flow is meant the real traffic value that goes out according to local volume forecasting, is called calibrated flow.
Said application program weights are according to the ratio of using data protocol in the application program, comprehensively a mean parameter obtaining of its corresponding load rate.Such as, when the user browsed a wap webpage, the data of user request were very little, but the bag that is packaged into that really is transferred on the link maybe be very big, and at this time the bag seen of operator is just inconsistent with local bag.
Wherein, said terminal comprises that mobile phone, net book, module and portable terminal etc. use the product of carrier network.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.