A kind of flow prompt method and system
Technical field
The present invention relates to internet arena, especially relate to a kind of flow prompt method and system.
Background technology
Along with the development of the Internet broadband technology, the stream that user is used on the mobile terminals such as mobile phone
Amount is more and more, and therefore, mobile terminal usually points out traffic conditions, enables a user to basis
The traffic conditions of prompting carries out flow-control to mobile terminal.
Existing mobile terminal can only prompt the user with the traffic conditions used at present, such as, to user
The use flow on prompting mobile telephone set same day, of that month use flow or history use flow summation.And for
Having the user of flow application plan, such as, have subscribed the user of flow monthly package, mobile terminal is the most not
For flow application plan, mobile terminal future usage flow can be pointed out.
Obviously, need the one can be for flow application plan, to mobile terminal future usage traffic conditions
Carry out the mode pointed out.
Summary of the invention
The invention provides a kind of flow prompt method and system, it is achieved can for flow application plan,
Prompting mobile terminal future traffic service condition.
To this end, the technical scheme that the embodiment of the present invention solves technical problem is:
The invention provides a kind of flow prompt method, described method includes:
The prompting request of mobile terminal transmitted traffic is to traffic statistics server;The prompting request of described flow has
There is the mark of described mobile terminal;
Described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each target
The historical traffic of statistics application is detailed, calculates respectively according to the historical traffic detail that each object statistics is applied
What each object statistics was applied averagely uses flow, averagely uses flow based on what each object statistics was applied
Sum, calculates all application and meets the flow prompting result of prompting design conditions, by described flow prompting knot
Fruit sends to described mobile terminal so that described mobile terminal display flow points out result;Wherein, described
The prompting corresponding with mobile terminal that according to prompting design conditions, the mark of described mobile terminal obtains calculates
Condition.
Preferably, described prompting design conditions are plan flow value or plan elapsed time;
When described prompting design conditions are for plan flow value, all application of described calculating meet prompting and calculate bar
The flow prompting result of part includes: calculates the flow consumption of all application from first scheduled time and is equal to meter
Draw the prompt time of flow value;
When described prompting design conditions are for plan elapsed time, all application of described calculating meet prompting and calculate
The flow prompting result of condition includes: when calculating all application arrival plans consumption from second scheduled time
Between time consume prompting flow.
Preferably, described traffic statistics server obtains the historical traffic detail bag of each object statistics application
Include:
Traffic statistics server obtains each object statistics and applies to point out the initial time history as starting point
Flow is detailed.
Preferably, described method also includes: described mobile terminal is periodically sent out to described traffic statistics server
The historical traffic giving each application of this mobile terminal is detailed;
Traffic statistics server is according to the mark of this mobile terminal, and the historical traffic that record receives is detailed;
Described traffic statistics server obtains the historical traffic detail of each object statistics application and includes:
The historical traffic detail that traffic statistics server records on described traffic statistics server obtain each
The historical traffic of individual object statistics application is detailed.
Preferably, described method also includes: multiple mobile terminals periodically send each to traffic statistics server
The historical traffic of each application of individual mobile terminal is detailed, and traffic statistics server is according to each mobile terminal
Mark, the historical traffic that receives of record is detailed;
Described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each target
Also include during the historical traffic detail of statistics application:
Traffic statistics server, according to other marks in addition to the mark in described request, obtains each target
All historical traffic of statistics application are detailed;
The described historical traffic detail applied according to each object statistics calculates the application of each object statistics respectively
Average use flow to include:
Traffic statistics server passes through according to the mark in described request, and according to except the mark in described request
The historical traffic detail of each object statistics application that other marks outside knowledge obtain calculates each target respectively
Statistics application averagely use flow;
Wherein, calculate either objective statistics application average use flow time, according in described request
Described mark obtain this object statistics application historical traffic detail the first weight is set, according to remove
The historical traffic of this object statistics application that other marks outside the described mark in described request obtain is detailed
Second weight is set, by the first weight, the second weight, obtains according to the described mark in described request
The detailed meansigma methods of the historical traffic of this object statistics application and according to except described in described request
This mesh of mean value calculation of the historical traffic detail of this object statistics application that other marks outside mark obtain
That marks statistics application averagely uses flow.
Preferably, described traffic statistics server obtains the historical traffic detail bag of each object statistics application
Include:
The historical traffic that described traffic statistics server obtains the application of each object statistics at operator is bright
Carefully.
Preferably, described traffic statistics server obtains the history of each object statistics application at operator
Also include after flow detail:
The historical traffic that each object statistics obtained at operator is applied by described traffic statistics server
Detailed transmission is to mobile terminal.
Preferably, the mark of described mobile terminal is specially SIM number and/or the hardware string number of mobile terminal.
Present invention also offers a kind of flow prompt system, described system includes: mobile terminal and flow system
Meter server;
Described mobile terminal is asked to traffic statistics server for transmitted traffic prompting, and display is described
The flow prompting result that traffic statistics server sends;The prompting request of described flow have described mobile whole
The mark of end;
Described traffic statistics server, for the mark according to the mobile terminal in described request, obtains each
The historical traffic of object statistics application is detailed, the historical traffic detail difference applied according to each object statistics
Calculate the application of each object statistics averagely uses flow, the average use applied based on each object statistics
Flow sum, calculates all application and meets the flow prompting result of prompting design conditions, carried by described flow
Show that result sends to described mobile terminal;Wherein, described mobile terminal according to described prompting design conditions
The prompting design conditions corresponding with mobile terminal that obtain of mark.
Preferably, described prompting design conditions are plan flow value or plan elapsed time;
When described prompting design conditions are for plan flow value, all application of described calculating meet prompting and calculate bar
The flow prompting result of part includes: calculates the flow consumption of all application from first scheduled time and is equal to meter
Draw the prompt time of flow value;
When described prompting design conditions are for plan elapsed time, all application of described calculating meet prompting and calculate
The flow prompting result of condition includes: when calculating all application arrival plans consumption from second scheduled time
Between time consume prompting flow.
Preferably, described mobile terminal is additionally operable to periodically send this to described traffic statistics server and moves end
The historical traffic of each application of end is detailed;
Traffic statistics server is additionally operable to the mark according to this mobile terminal, the historical traffic that record receives
Detailed;
The most described traffic statistics server is for obtaining the historical traffic detail bag of each object statistics application
Include:
Traffic statistics server obtains in the historical traffic detail of record on described traffic statistics server
The historical traffic applied to each object statistics is detailed.
Preferably, described system includes multiple mobile terminal;
The plurality of mobile terminal is respectively used to periodically send each mobile terminal to traffic statistics server
The historical traffic of each application is detailed;
Traffic statistics server is additionally operable to the mark according to each mobile terminal, the history stream that record receives
Amount detail;
The most described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each mesh
When marking the historical traffic detail of statistics application, traffic statistics server is additionally operable to according to except in described request
Other marks outside mark, all historical traffic obtaining the application of each object statistics are detailed;
Described traffic statistics server by the historical traffic detail applied according to each object statistics respectively based on
Calculating the average of each object statistics application uses flow to include:
Described traffic statistics server is used for according to the mark in described request, and according to except in described request
Mark outside other mark obtain each object statistics application historical traffic details calculate each respectively
What object statistics was applied averagely uses flow;
Wherein, when calculating the average use flow of either objective statistics application, traffic statistics server is
The historical traffic detail that this object statistics obtained according to the described mark in described request is applied arranges first
Weight, according in addition to the described mark in described request other mark obtain this object statistics application
Historical traffic detail the second weight is set, according to the first weight, the second weight, according in described request
The detailed meansigma methods of the historical traffic of this object statistics application that obtains of described mark and according to except institute
State the historical traffic detail of this object statistics application that other marks outside the described mark in request obtain
What this object statistics of mean value calculation was applied averagely uses flow.
By technique scheme, the traffic statistics server in the present invention is according to flow prompting request
In the mark of mobile terminal, the historical traffic obtaining the application of each object statistics is detailed, according to obtain
Historical traffic detail can calculate all application and meet the flow prompting result of prompting design conditions, finally
Show that this result, the flow that prompting design conditions are corresponding with this mobile terminal make to use tricks by mobile terminal
Draw, it is achieved thereby that for flow application plan prompting mobile terminal future usage traffic conditions.
Accompanying drawing explanation
The schematic flow sheet of the specific embodiment of the flow prompt method that Fig. 1 provides for the present invention;
The schematic flow sheet of another specific embodiment of the flow prompt method that Fig. 2 provides for the present invention;
The schematic flow sheet of another specific embodiment of the flow prompt method that Fig. 3 provides for the present invention;
The schematic flow sheet of another specific embodiment of the flow prompt method that Fig. 4 provides for the present invention;
The structural representation of the specific embodiment of the flow prompt system that Fig. 5 provides for the present invention.
Detailed description of the invention
In prior art, can only prompt the user with, at mobile terminals such as mobile phones, the flow that mobile terminal has used
Situation, such as, prompts the user with using flow, of that month use flow or going through of the mobile terminal same day
History uses flow summation, wherein it is possible to be the use flow pointing out all application, it is also possible to be each
Application use flow respectively.The traffic conditions that user has used according to the mobile terminal of prompting, to movement
The flow of terminal is controlled, and uses for example, it is possible to select to close some application etc. to reduce flow, or
Person is that foradownloaded video etc. is with consumed flow.
And for having the user of certain flow application plan, such as, customized flow monthly payment or bag year
For the user of set meal or the plan regular period interior user using certain flow value, due to movement
Terminal only provides a user with the traffic conditions used, and uses feelings without the flow following to mobile terminal
Condition is pointed out, and user can only know employed how many flows at present, it is impossible to learns according to mesh accurately
Front service condition, to using how many flows account day (such as last day at the end of month), or at present
Set meal flow when can all use.
The invention provides one can be for flow application plan, according to the flow used, to movement
Terminal future usage traffic conditions is pointed out.
Embodiment one
Refer to Fig. 1, the invention provides a specific embodiment of flow prompt method, in the present embodiment,
Described method includes:
The prompting request of S101: mobile terminal transmitted traffic is to traffic statistics server;The prompting of above-mentioned flow please
There is in asking the mark of described mobile terminal.
Mobile terminal can be to monitor execution S101 after specific user operation, and specific user operation can
Think trigger action or the power-on operation of user such as the click of user, slip.Such as, moving
A client icon it is provided with, when, after the icon monitoring user and clicking on this client, performing in terminal
S101.Or when, after the power-on operation monitoring user, performing S101 with some cycles circulation.
The mark of mobile terminal can be the SIM in hardware string number, i.e. IMEI number, and/or mobile terminal
Card number, i.e. IMSI number.The authority set by system can installed according to mobile terminal, goes to read phase
The mark answered.
S102: described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each
The historical traffic of individual object statistics application is detailed.
Object statistics application is installed by described mobile terminal, or the application being currently in use.Object statistics
The application message of application can be sent to traffic statistics server by flow prompting request, or is pre-stored in
In traffic statistics server.
The historical traffic detail of each object statistics application can be that traffic statistics server is remembered from this server
The historical traffic detail of record obtains, it is also possible to be according to cooperation or the mode such as priority assignation at operator
Obtain.
The historical traffic detail that S103: traffic statistics server is applied according to each object statistics calculates respectively
What each object statistics was applied averagely uses flow, averagely uses flow based on what each object statistics was applied
Sum, calculates all application and meets the flow prompting result of prompting design conditions.Wherein, described prompting meter
The prompting design conditions corresponding with mobile terminal that according to calculation condition, the mark of described mobile terminal obtains.
Prompting design conditions are set according to flow application plan, are specifically as follows plan flow value or meter
Cancellation time-consuming.Prompting design conditions can prestore on mobile terminals, or is inputed to by user
Mobile terminal, now can will be prompted to design conditions and be sent to traffic statistics service by flow prompting request
Device;Prompting design conditions can also be pre-stored on traffic statistics server, during storage and mobile terminal
Mark corresponding.
The historical traffic detail applied according to each object statistics in step S103 calculates each target system respectively
When averagely using flow of meter application, it is also possible to be that the abnormal flow situation rejected in historical traffic detail is entered
Row calculates, and abnormal flow situation refers to be more than first threshold with the difference or ratio that averagely use flow
Situation, or with the average difference using flow or ratio less than the situation of Second Threshold.Concrete rejecting
In the historical traffic detail of arbitrary application, the mode of abnormal flow situation can be to calculate the average of this application
After using flow, remove the average difference using flow with this application in the historical traffic detail of this application
Value or ratio are more than first threshold or the flow detail less than Second Threshold, according to remaining historical traffic
What detail recalculated this application averagely uses flow.
In step S103, traffic statistics server obtains the historical traffic detail of each object statistics application specifically
Can be that traffic statistics server obtains the application of each object statistics to point out initial time going through as starting point
History flow is detailed.Prompting initial time can be that of that month first day, first day then or user set voluntarily
Fixed initial time, this is not limited by the present invention.
Step S103 calculate the application of each object statistics average use flow time, can be with hour,
My god, week, the moon or user-defined time period be unit.
Step S103 calculates all application meet prompting design conditions flow prompting result can be calculating
All application meet the flow prompting result of prompting design conditions from the scheduled time.It should be noted that
Because being set according to flow application plan, in order to ensure that the flow calculated carries during prompting design conditions
Show that result is following flow service condition, therefore, when pointing out design conditions for plan flow value, meter
Draw flow value to should be greater than playing the use flow of current time from the scheduled time, when prompting design conditions are meter
During cancellation time-consuming, plan elapsed time should be after current time.
S104: traffic statistics server by calculate flow prompting result send to described mobile terminal with
Make described mobile terminal display flow prompting result.Thus the stream that user can show according to mobile terminal
The flow of mobile terminal is preferably controlled by amount prompting result.
By technique scheme, the traffic statistics server in the present embodiment please according to flow prompting
The mark of the mobile terminal in asking, the historical traffic obtaining the application of each object statistics is detailed, according to obtaining
Historical traffic detail can calculate all application and meet the flow prompting result of prompting design conditions, logical
Crossing mobile terminal and show this result, prompting design conditions are the flow application plan corresponding with this mobile terminal,
It is achieved thereby that for flow application plan prompting mobile terminal future usage traffic conditions.
Further, the present invention is realized pointing out result to calculated flow rate by traffic statistics server, thus without
Extra computational burden is increased to mobile terminal.
The mobile terminal transmitted traffic prompting request of the present invention and the function of display flow prompting result can be
Realize by installing client on mobile terminals, and after client is installed in mobile terminal,
Can run as the daemon of mobile terminal.
Before step S101 of the present embodiment, described method can also include:
Mobile terminal is registered at traffic statistics server by the mark of described mobile terminal.
After this mobile terminal is registered, traffic statistics server can be deposited according to the mark of mobile terminal
The historical traffic of each application storing up described mobile terminal is detailed.Described mark can be hardware string number and/or
S I M card number, wherein, when described be designated S I M card number time, on described server storage historical traffic bright
Thin correspondence is S I M card number, when S I M card is inserted in other mobile terminals, it is also possible to find this S I M card
Number historical traffic detailed, accordingly even when be moved the situations such as terminal loss time, it is also possible to according to user
The historical traffic detail calculated flow rate prompting result before used.
For having the user of flow application plan, the present invention can be by prompt time or prompting stream
Future usage flow is pointed out by amount two ways, such as, for having customized the user of monthly package,
The present invention can be detailed according to the historical traffic used, and the flow value prediction in prompting set meal can specifically exist
Which day makes to be finished, or prompting dope to during the end of month use total flow value.And when implementing
By arrange prompting design conditions be plan flow value or plan elapsed time realize two kinds different
Mode, is illustrated by two embodiments separately below.First illustrate by the way of prompt time pair
Future usage flow carries out the specific embodiment pointed out.
Embodiment two
Refer to Fig. 2, the invention provides another specific embodiment of flow prompt method, in the present embodiment,
Described method includes:
The prompting request of S201: mobile terminal transmitted traffic is to traffic statistics server;The prompting of above-mentioned flow please
There is in asking the mark of described mobile terminal.
S202: described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each
The historical traffic of individual object statistics application is detailed.
The historical traffic detail difference that S203: described traffic statistics server is applied according to each object statistics
Calculate the application of each object statistics averagely uses flow, the average use applied based on each object statistics
Flow sum, calculates the flow consumption of all application carrying equal to plan flow value from first scheduled time
Show the time.Wherein, according to described plan flow value the mark of described mobile terminal obtain with mobile eventually
The prompting design conditions that end is corresponding.Prompt time is the flow prompting result calculated in the present embodiment.
In the present embodiment, prompting design conditions specially plan flow value, and described plan flow value is permissible
Prestore on mobile terminals, such as, prestore monthly package value 100M on mobile terminals,
Can also be prompting user input flow value, the flow value that the user received is inputted, such as 100M,
As plan flow value.Now plan flow value can be to point out request to send out by the flow in step S201
Give traffic statistics server.Described plan flow value can also be to be stored in advance in traffic statistics server
On.
First scheduled time can be to prestore on mobile terminals or on traffic statistics server,
And could be arranged to the regular hour, such as of that month first day or receive working as of flow prompting request
My god.
The historical traffic detail obtaining the application of each object statistics in step S203 can be to obtain each target
The statistics application historical traffic with prompting initial time as starting point is detailed, below by with of that month 1st day
For step S203 being illustrated as a example by the historical traffic detail of starting point.Such as, object statistics application has:
Wechat, Q Q, browser and map, plan flow value is 100M, and first scheduled time was of that month 1st day,
First 6 days historical traffic in this month of aforementioned four application are detailed as shown in table 1.Form in the present invention
In, flow with million (M) as unit.
Table 1
|
1 day |
2 days |
3 days |
4 days |
5 days |
6 days |
Wechat |
0.5 |
0.6 |
0.4 |
0.8 |
0.7 |
0.4 |
QQ |
0.3 |
0.8 |
0.6 |
0.4 |
0.7 |
0.7 |
Browser |
2.3 |
1.3 |
1.6 |
1.4 |
4.7 |
1.3 |
Map |
1.5 |
2.5 |
4.2 |
1.6 |
2.4 |
2.3 |
In step S203, traffic statistics server calculates the per day use flow of wechat respectively and is
The per day use flow of 0.57M, QQ is 0.58M, and the per day use flow of browser is 2.1M, ground
The per day use flow of figure is 2.42M, and the average use flow sum of each application is 5.67M, therefore
It is equal to meter according to the average flow consumption using flow sum to calculate all application that each object statistics is applied
The prompt time drawing flow value is 17, say, that this month 17 will be intended to flow value 100M's
All flows make to be finished, the numerical value after having cast out arithmetic point when calculating, naturally it is also possible to by result of calculation
It is accurate to a certain moment.
S204: traffic statistics server the prompt time that calculates is sent to described mobile terminal so that
The described mobile terminal display reminding time.
In the most above-mentioned example, on the prompt time this month 17 calculated, is sent to described by statistical server
Mobile terminal is so that described this month 17 mobile terminal display reminding time.User i.e. would know that with at present
Flow service condition, this month 17 will be intended to all flows of flow value 100M to be made to be finished.
In this embodiment, flow value is specially planned by prompting design conditions, it is achieved that according to each
The flow histories that application has used is detailed, calculates flow consumption the carrying equal to plan flow value of all application
Show the time.
The specific embodiment pointed out future usage flow by the way of prompting flow is described below.
Embodiment three
Refer to Fig. 3, the invention provides another specific embodiment of flow prompt method, in the present embodiment,
Described method includes:
The prompting request of S301: mobile terminal transmitted traffic is to traffic statistics server;The prompting of above-mentioned flow please
There is in asking the mark of described mobile terminal.
S302: described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each
The historical traffic of individual object statistics application is detailed.
The historical traffic detail that S303: traffic statistics server is applied according to each object statistics calculates respectively
What each object statistics was applied averagely uses flow, averagely uses flow based on what each object statistics was applied
Sum, calculates the prompting flow consumed during all application arrival plan elapsed times from second scheduled time.
Wherein, according to described plan elapsed time the mark of described mobile terminal obtain corresponding with mobile terminal
Prompting design conditions.Prompting flow is the flow prompting result calculated in the present embodiment.
In the present embodiment, prompting design conditions specially plan elapsed time, described plan elapsed time
Value can prestore on mobile terminals, and such as, the plan that prestores on mobile terminals consumes
Time is last 1 day of this month, it is also possible to is to point out user input time, the user received is inputted
Time, such as this month 30, as plan elapsed time.Now plan elapsed time can be by step
Flow prompting request in rapid S302 is sent to traffic statistics server.Described plan elapsed time can also
It is to be stored in advance on traffic statistics server.
Second scheduled time can be to be stored in advance on mobile terminal or traffic statistics server, also
Could be arranged to the regular hour, such as of that month first day or receive same day of flow prompting request.
The historical traffic detail obtaining the application of each object statistics in step S303 can be to obtain each target
The statistics application historical traffic with prompting initial time as starting point is detailed, below by from of that month 1st day
For step S303 being illustrated as a example by the historical traffic detail of starting point.Such as, object statistics application has:
Wechat, Q Q, browser and map, plan elapsed time is this month 30, this month of aforementioned four application
First 6 days interior historical traffic are detailed as shown in table 1.
In step S303, traffic statistics server calculates the per day use flow of wechat respectively and is
The per day use flow of 0.57M, QQ is 0.58M, and the per day use flow of browser is 2.1M, ground
The per day use flow of figure is 2.42M, and the average use flow sum of each application is 5.67M, therefore
All application arrival plan elapsed times are calculated according to the average use flow sum that each object statistics is applied
Time consume prompting flow be 170.1M.It is to say, on this month 30, will use the flow of 170.1M.
S304: traffic statistics server the prompting flow that calculates is sent to described mobile terminal so that
Described mobile terminal display reminding flow.
In the most above-mentioned example, the prompting flow 170.1M calculated is sent to described shifting by statistical server
Dynamic terminal is so that described mobile terminal display reminding flow 170.1M.User i.e. would know that with current stream
Measuring service condition, on this month 30, will use the flow of 170.1M.
In this embodiment, elapsed time is specially planned by prompting design conditions, it is achieved that according to respectively
The flow histories that individual application has used is detailed, calculates prompting stream during all application arrival plan elapsed times
Amount.
In the above two embodiments, describe prompt time and the mode of prompting flow respectively, it practice,
Prompting design conditions can also be judged, when pointing out design conditions for plan flow value, according to the
The mode of two embodiments calculates, when pointing out design conditions for plan elapsed time, real according to the 3rd
The mode executing example calculates.
In any of the embodiments of the present invention, traffic statistics server can obtain each in several ways
The historical traffic of object statistics application is detailed, and such as, on traffic statistics server, record has mobile terminal
The historical traffic of each application is detailed, then traffic statistics server obtains each from the history detail of record
The historical traffic of object statistics application is detailed.The most such as, traffic statistics server obtains respectively at operator
The historical traffic of individual object statistics application is detailed.Separately below both of these case is described in detail.
The historical traffic having each object statistics to apply firstly, for traffic statistics server record is detailed,
Can be that described method also includes in any of the embodiments of the present invention when implementing:
Described mobile terminal periodically sends each application of this mobile terminal to described traffic statistics server
Historical traffic is detailed;Traffic statistics server is according to the mark of this mobile terminal, the history that record receives
Flow is detailed;
The most described traffic statistics server obtains the historical traffic detail of each object statistics application and includes:
The historical traffic detail that traffic statistics server records on described traffic statistics server obtain each
The historical traffic of individual object statistics application is detailed.
Secondly, traffic statistics server is obtained at operator to the history stream of each object statistics application
Amount detail, can be in any of the embodiments of the present invention when implementing, described traffic statistics server
The historical traffic detail obtaining the application of each object statistics includes: described traffic statistics server is from operator
The historical traffic that place obtains the application of each object statistics is detailed.
The historical traffic that described traffic statistics server obtains the application of each object statistics at operator is detailed
Can also include afterwards: described traffic statistics server should by each object statistics obtained at operator
Historical traffic detail send to mobile terminal, enable a user to know and obtain at operator
The historical traffic of each application accurately is detailed.The calculation using flow is all by prior art
The calculation carried according to mobile terminal self, this calculation is it is difficult to ensure that accuracy, and this is excellent
Select in mode, detailed by the historical traffic being applied at operator, it is ensured that to have used flow
Accuracy.
Can also be by detailed, to institute for the historical traffic of each object statistics application obtained at operator
State the traffic statistics detail of storage in server to calibrate.Can be will to obtain at operator during calibration
Data directly replace in server the data of storage.
In the present invention, traffic statistics server can store the traffic conditions that multiple mobile terminal uses,
Historical traffic is managed by unification.Especially when a newly installed application of mobile terminal, for
, there is not the historical traffic of newly installed application in this terminal, averagely making of this application now calculated
Also inevitable inaccurate with flow, in order to improve the average use flow of the newly installed application of this mobile terminal
Accuracy, it may be considered that this applies the flow service condition at other mobile terminals.Below by a tool
Body embodiment is illustrated.
Embodiment four
Refer to Fig. 4, the invention provides a specific embodiment of flow prompt method, in the present embodiment,
Described method includes:
The prompting request of S401: mobile terminal transmitted traffic is to traffic statistics server;The prompting of above-mentioned flow please
There is in asking the mark of described mobile terminal.
S402: described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each
The historical traffic of individual object statistics application is detailed, and according to other marks in addition to the mark in described request
Knowing, all historical traffic obtaining the application of each object statistics are detailed.
Such as, the described mark in flow prompting request specially identifies A, remembers in traffic statistics server
Record has the historical traffic detail of wechat, QQ, browser, map and microblogging corresponding for mark A, and target is united
Meter application has wechat, QQ, browser and map.
Then traffic statistics server described in S402 are according to the mark of the mobile terminal in described request, obtain
The historical traffic of each object statistics application is detailed, is specially the history stream at traffic statistics server record
The historical traffic of wechat, QQ, browser and the map corresponding for mark A obtained in amount detail is detailed, tool
Body is as shown in table 2.
Table 2
|
1 day |
2 days |
3 days |
4 days |
5 days |
6 days |
Wechat |
0.5 |
0.6 |
0.4 |
0.8 |
0.7 |
0.4 |
QQ |
0.3 |
0.8 |
0.6 |
0.4 |
0.7 |
0.7 |
Browser |
2.3 |
1.3 |
1.6 |
1.4 |
4.7 |
1.3 |
Map |
0 |
0 |
0 |
0 |
0 |
2.3 |
Identifying according to other in addition to the mark in described request in S402, obtaining each object statistics should
All historical traffic detailed specifically, in the historical traffic detail of traffic statistics server record
Other marks arrived, such as, identify B, C, D, the most corresponding each object statistics application, i.e. wechat,
Q Q, browser, the historical traffic detail of map, such as, the map that mark B, C, D are the most corresponding
Historical traffic is detailed as shown in table 3:
Table 3
|
1 day |
2 days |
3 days |
4 days |
5 days |
6 days |
Mark B |
2.2 |
3.6 |
2.3 |
3.8 |
2.7 |
4.4 |
Mark C |
4.3 |
5.8 |
3.3 |
6.3 |
7.6 |
3.4 |
Mark D |
1.6 |
1.8 |
0.7 |
1.0 |
1.9 |
1.7 |
S403: traffic statistics server passes through, each target system obtained according to the mark in described request
The historical traffic of meter application is detailed, and according to other marks in addition to the mark in described request obtain each
The historical traffic of individual object statistics application is detailed, and calculate the application of each object statistics respectively averagely uses stream
Amount.The average use flow sum applied based on each object statistics, calculates all application and meets prompting meter
The flow prompting result of calculation condition.Wherein, the mark of described mobile terminal according to described prompting design conditions
Know the prompting design conditions corresponding with this mobile terminal obtained.
Wherein, calculate either objective statistics application average use flow time, according in described request
Described mark obtain this object statistics application historical traffic detail the first weight is set, according to remove
The historical traffic of this object statistics application that other marks outside the described mark in described request obtain is detailed
Second weight is set, by the first weight, the second weight, obtains according to the described mark in described request
The detailed meansigma methods of the historical traffic of this object statistics application and according to except described in described request
This mesh of mean value calculation of the historical traffic detail of this object statistics application that other marks outside mark obtain
That marks statistics application averagely uses flow.
Specifically, calculate average to use flow can be (the first weight × according in described request
The meansigma methods of the historical traffic detail of this object statistics application that described mark obtains)+(the second weight × root
Historical traffic according to this object statistics application that other marks in addition to the described mark in described request obtain
Detailed meansigma methods).Such as, for calculating when averagely using flow of map, arranging the first weight is
0.1, arranging the second weight is 0.9, and according to table 1, the historical traffic of the map that mark A is corresponding is bright
Thin daily mean is 0.38, according to table 3, other marks in addition to mark A, i.e. identify B, C,
The daily mean of the historical traffic detail of the map that D is corresponding is 3.24.Therefore, the average use calculated
Flow is (0.1 × 0.38)+(0.9 × 3.24)=2.95.
First weight and the second weight can use this object statistics to apply according to the mobile terminal initiating request
Time be configured, namely according to this mobile terminal in traffic statistics server corresponding this target system
The initial time that the historical traffic of meter application is detailed is configured, and the most early, the first weight is more for this initial time
Greatly, the second weight is the least, and this initial time is the most late, and the first weight is the least, and the second weight is the biggest.Such as,
When being current time between when initiated, say, that the mobile terminal initiating request has just begun to use this target
During statistics application, can arrange the first weight is 0, is now based entirely on other and moves the flow to this application
Service condition calculates and averagely uses flow.
First weight and the second weight constantly can be adjusted by the behavior of study user.
S404: traffic statistics server by calculate flow prompting result send to described mobile terminal with
Make described mobile terminal display flow prompting result.
Described method also includes: multiple mobile terminals periodically send each to traffic statistics server and move end
Historical traffic of each application of end is detailed, traffic statistics server according to the mark of each mobile terminal,
The historical traffic that record receives is detailed.
It can be seen that in this embodiment, when calculating the average use flow of arbitrary application, not only according to
The described mobile terminal initiating the to ask history service condition to this application, always according to other mobile terminals pair
The period of history situation of this application, such that make some application in mobile terminal not have historical traffic bright
Carefully, or the data of historical traffic detail are little, also can calculate the result of flow prompting the most accurately.
Embodiment five
Refer to Fig. 5, present invention also offers a specific embodiment of flow prompt system, described system bag
Include: mobile terminal 501 and traffic statistics server 502.
Described mobile terminal 501 is asked to traffic statistics server for transmitted traffic prompting, and display
The flow prompting result that described traffic statistics server sends;The prompting request of described flow has described shifting
The mark of dynamic terminal.
Described traffic statistics server 502, for the mark according to the mobile terminal in described request, obtains
The historical traffic of each object statistics application is detailed, detailed according to the historical traffic that each object statistics is applied
Calculate respectively each object statistics application averagely use flow, based on each object statistics apply average
Use flow sum, calculate all application and meet the flow prompting result of prompting design conditions, by described stream
Amount prompting result sends to described mobile terminal;Wherein, described movement according to described prompting design conditions
The prompting design conditions corresponding with mobile terminal that the mark of terminal obtains.
Mobile terminal and traffic statistics server can be to be transmitted by wireless.Described mobile terminal
Mark is specifically as follows SIM number and/or the hardware string number of mobile terminal.
Wherein, described prompting design conditions can be plan flow value or plan elapsed time.
When described prompting design conditions are for plan flow value, all application of described calculating meet prompting and calculate bar
The flow prompting result of part includes: calculates the flow consumption of all application from first scheduled time and is equal to meter
Draw the prompt time of flow value.When described prompting design conditions are for plan elapsed time, described calculating is owned
Application meets the flow prompting result of prompting design conditions and includes: calculating is all from second scheduled time should
With the prompting flow consumed when arriving plan elapsed time.
Preferably, described traffic statistics server is bright for the historical traffic obtaining the application of each object statistics
Carefully include: it is initial that traffic statistics server is used for obtaining the application of each object statistics with prompting initial time
The historical traffic of point is detailed.
Preferably, described mobile terminal is additionally operable to periodically send this to described traffic statistics server and moves end
The historical traffic of each application of end is detailed;
Traffic statistics server is additionally operable to the mark according to this mobile terminal, the historical traffic that record receives
Detailed;
The most described traffic statistics server is for obtaining the historical traffic detail bag of each object statistics application
Include: traffic statistics server obtains in the historical traffic detail of record on described traffic statistics server
The historical traffic applied to each object statistics is detailed.
Preferably, described traffic statistics server is bright for the historical traffic obtaining the application of each object statistics
Carefully include: described traffic statistics server is for obtaining the history of each object statistics application at operator
Flow is detailed.At operator, the history of each object statistics application is obtained at described traffic statistics server
After flow detail, described traffic statistics server can be also used for each mesh that will obtain at operator
The historical traffic detail of mark statistics application sends to mobile terminal.
Preferably, described system includes multiple mobile terminal;The plurality of mobile terminal is respectively used to periodically
The historical traffic detail of each application of each mobile terminal is sent to traffic statistics server.
Then traffic statistics server is additionally operable to the mark according to each mobile terminal, the history that record receives
Flow is detailed;
Described traffic statistics server, according to the mark of the mobile terminal in described request, obtains each target
During the historical traffic detail of statistics application, traffic statistics server is additionally operable to according to except the mark in described request
Other marks outside knowledge, all historical traffic obtaining the application of each object statistics are detailed;
Described traffic statistics server by the historical traffic detail applied according to each object statistics respectively based on
Calculating the average of each object statistics application uses flow to include: described traffic statistics server is for according to institute
State the mark in request, and identify each target obtained according to other in addition to the mark in described request
Statistics application historical traffic detail calculate respectively each object statistics application averagely use flow.
Wherein, when calculating the average use flow of either objective statistics application, traffic statistics server is
The historical traffic detail that this object statistics obtained according to the described mark in described request is applied arranges first
Weight, according in addition to the described mark in described request other mark obtain this object statistics application
Historical traffic detail the second weight is set, according to the first weight, the second weight, according in described request
The detailed meansigma methods of the historical traffic of this object statistics application that obtains of described mark and according to except institute
State the historical traffic detail of this object statistics application that other marks outside the described mark in request obtain
What this object statistics of mean value calculation was applied averagely uses flow.
Between each embodiment in this specification, identical similar part sees mutually, each enforcement
What example stressed is all the difference with other embodiments.For system embodiment,
Owing to it is substantially similar to embodiment of the method, so describing fairly simple, it is real that relevant part sees method
The part executing example illustrates.System embodiment described above is only schematically, wherein said
The unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or also may be used
To be distributed on multiple NE.Some or all of mould therein can be selected according to the actual needs
Block realizes the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creative work
In the case of, i.e. it is appreciated that and implements.
The above is only the preferred embodiment of the present invention, it is noted that for the art
For those of ordinary skill, under the premise without departing from the principles of the invention, it is also possible to make some improvement
And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.