CN103024716B - A kind of WiFi flow statistical method, device and system - Google Patents

A kind of WiFi flow statistical method, device and system Download PDF

Info

Publication number
CN103024716B
CN103024716B CN201210490671.1A CN201210490671A CN103024716B CN 103024716 B CN103024716 B CN 103024716B CN 201210490671 A CN201210490671 A CN 201210490671A CN 103024716 B CN103024716 B CN 103024716B
Authority
CN
China
Prior art keywords
user terminal
flow value
random number
traffic statistics
flow
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.)
Active
Application number
CN201210490671.1A
Other languages
Chinese (zh)
Other versions
CN103024716A (en
Inventor
张桂兰
李建勇
周煜申
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210490671.1A priority Critical patent/CN103024716B/en
Publication of CN103024716A publication Critical patent/CN103024716A/en
Priority to PCT/CN2013/081807 priority patent/WO2013189376A1/en
Application granted granted Critical
Publication of CN103024716B publication Critical patent/CN103024716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/58Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/80Rating or billing plans; Tariff determination aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The invention discloses a kind of WiFi flow statistical method, device and system, described method comprises: user terminal is after passing through WiFi access authentication, obtain the traffic statistics strategy including measurement period information, and according to described traffic statistics strategy, the flow value in each measurement period is added up and reports; Traffic statistics server receives the flow value of described user terminal to send up and preserves, and manages the flow value of each user terminal preserved.The present invention can the WiFi flow of counting user terminal accurately, for WiFi communication mode provides rates ground effectively.

Description

A kind of WiFi flow statistical method, device and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of WiFi flow statistical method, device and system.
Background technology
WiFi is that one can by PC, handheld device (as PDA(Personal Digital Assistant, palmtop PC), mobile phone) etc. the technology that is wirelessly connected to each other of terminal.Be exactly the another name of IEEE802.11b in simple terms in fact, by " wireless ethernet compatibility alliance " (Wireless EthernetCompatibility Alliance by name, WECA) the industry term that tissue is issued, it is a kind of short range wireless transmission technology, can support the radio signal of linking Internet within the scope of hundreds of feet.Along with the development of technology, and the appearance of the standard such as IEEE802.11a and IEEE802.11g, this standard of present IEEE802.11 is collectively referred to as WiFi.It can help user to access Email, Web and streaming video.Its broadband internet wireless for user provides is accessed.Meanwhile, it be also at home, office or quick, the approach easily of surfing the Net on the road.The wireless network that WiFi wireless network is made up of AP (Access Point) and wireless network card.In open region, communication distance can reach 305 meters; In closure region, communication distance is 76 meters to 122 meters, and convenient and existing wired ethernet network is integrated, and the cost of networking is lower.WiFi, with himself plurality of advantages, is subject to people and praises highly.
But undeniable, many difficulties have been encountered in the commercialization of WiFi technology at present.On the one hand the restriction being limited by WiFi technology self, such as its roaming property, fail safe and how charging etc. all also do not obtain adequate solution.On the other hand, because the profit model of WiFi is indefinite, if managed as single network by WiFi, the deficiency of business user can make the investment return of networking lower, therefore also have impact on the enthusiasm of telecom operators.
In charging, it is to deduct fees charging way by duration that current operator comprises two kinds: one for the charge method of WiFi, and namely user uses duration to deduct fees by duration by reality, " first use, then deduct fees "; Two is set meal charging ways, selects set meal type, deduct fees in advance by the set meal amount of money by user.But above-mentioned charge method does not all consider the actual flow service condition of WiFi, cause charge benchmark clear and definite not.So, how the mechanism of a set of statistics WiFi flow is provided, for WiFi charge provides foundation, becomes technical problem urgently to be resolved hurrily at present.
Summary of the invention
The invention provides a kind of WiFi flow statistical method, device and system, in order to solve the problem can not carrying out effectively statistics in prior art to WiFi flow.
In order to solve the problem, the technical solution used in the present invention is as follows:
On the one hand, the invention provides a kind of WiFi flow statistical method, comprising:
User terminal, by after WiFi access authentication, obtains the traffic statistics strategy including measurement period information, and according to described traffic statistics strategy, adds up and report the flow value in each measurement period;
Traffic statistics server receives the flow value of described user terminal to send up and preserves, and manages the flow value of each user terminal preserved.
Alternatively, in the method for the invention, described traffic statistics strategy also comprises: the maximum that in random number and/or each measurement period, single reports;
When traffic statistics strategy comprises random number, after described user terminal gets described traffic statistics strategy, when reporting flow value, based on described random number, the flow value in measurement period is encrypted;
When traffic statistics strategy comprises the maximum that single in each measurement period reports, described user terminal, when reporting the flow value in measurement period, if described flow value is greater than the maximum that described single reports, then reports several times.
Alternatively, in the method for the invention, after described user terminal is encrypted the flow value in measurement period based on described random number, the flow value after encryption is reported to described traffic statistics server, and receive the random number for encryption next time that described statistical server issues.
Alternatively, described user terminal is encrypted the flow value reported based on random number, specifically comprise: described user terminal according to a preconcerted arrangement insert rule, the flow value obtained in measurement period is inserted the specific bit in described random number, realizes the encryption to flow value.
Preferably, in the method for the invention, described user terminal obtains the numerical value of N of described random number highest order, and the individual position adding up the flow value obtained is positioned over the N position of described random number, ten that add up the flow value obtained is positioned over the N+1 position of described random number; Wherein, the figure place of described random number is 11.
Alternatively, in the method for the invention, described traffic statistics server is after the flow value receiving described user terminal to send up, according to the random number of the described flow value of encryption, validation verification is carried out to the information of user terminal to send up, if be proved to be successful, then return successfully response message to user terminal; Otherwise, return failure response message to user terminal.
Alternatively, in the method for the invention, described user terminal, when receiving failure response message, obtains new random number again at described traffic statistics server side, is again encrypted flow value and reports based on described new random number;
Alternatively, in the method for the invention, described traffic statistics server is for same user terminal when the number of times of authentication failed exceedes the threshold value of setting, and notice accessing control server AC makes described user terminal roll off the production line.
On the other hand, the present invention also provides a kind of user terminal, comprising:
Strategy acquisition module, for after user terminal passes through WiFi access authentication, obtains the traffic statistics strategy including measurement period information;
Flow reporting module, for according to described traffic statistics strategy, adds up the flow value in each measurement period and reports.
Alternatively, in user terminal of the present invention, the traffic statistics strategy that described tactful acquisition module obtains also comprises: the maximum that in random number and/or each measurement period, single reports;
When traffic statistics strategy comprises random number, described flow reporting module, also for after getting described traffic statistics strategy, when reporting flow value, is encrypted the flow value in measurement period based on described random number;
When traffic statistics strategy comprises the maximum that single in each measurement period reports, described flow reporting module, also for when reporting the flow value in measurement period, if described flow value is greater than the maximum that described single reports, then reports several times.
Alternatively, in user terminal of the present invention, described flow reporting module, is further used for the flow value after by encryption and reports to described traffic statistics server, and receive the random number for encryption next time that described statistical server issues.
Alternatively, described flow reporting module, be further used for according to a preconcerted arrangement insert rule, the flow value obtained in measurement period is inserted the specific bit in described random number, realizes the encryption to flow value.
Wherein, described flow reporting module, specifically for obtaining the numerical value of N of described random number highest order, and is positioned over the N position of described random number by the individual position adding up the flow value obtained, ten that add up the flow value obtained are positioned over the N+1 position of described random number, realize the encryption to flow value; Wherein, the figure place of described random number is 11.
Alternatively, in user terminal of the present invention, described flow reporting module, also for when receiving the failure response message of described traffic statistics server feedback, again obtain new random number at described traffic statistics server side, and again flow value be encrypted based on described new random number and report.
3rd, the present invention also provides a kind of traffic statistics server, comprising:
Flow receiver module, for receiving the flow value reported in each measurement period of user terminal;
Traffic management module, for preserving the flow value received, and manages the flow value of each user terminal preserved.
Alternatively, traffic statistics server of the present invention also comprises: tactful sending module, for after described user terminal passes through WiFi access authentication, the pre-configured traffic statistics strategy including measurement period information is sent to described user terminal.
Alternatively, in traffic statistics server of the present invention, the traffic statistics strategy that described tactful sending module sends also comprises: the maximum that in random number and/or each measurement period, single reports.
Alternatively, in traffic statistics server of the present invention, described flow receiver module, be further used for after receiving the flow value of user terminal to send up, according to the random number of the described flow value of encryption, validation verification is carried out to the information of user terminal to send up, if be proved to be successful, then returns successfully response message to user terminal; Otherwise, return failure response message to user terminal;
Described flow receiver module, is further used for for same user terminal when the number of times of authentication failed exceedes the threshold value of setting, and notice accessing control server AC makes described user terminal roll off the production line.
4th, the embodiment of the present invention also provides a kind of WiFi flow statistical system, comprising: user terminal and traffic statistics server;
Described user terminal, comprising: tactful acquisition module, for after user terminal passes through WiFi access authentication, obtains the traffic statistics strategy including measurement period information; Flow reporting module, for according to described traffic statistics strategy, adds up the flow value in each measurement period and reports;
Described traffic statistics server, comprising: flow receiver module, for receiving the flow value reported in each measurement period of user terminal; Traffic management module, for preserving the flow value received, and manages the flow value of each user terminal preserved.
Beneficial effect of the present invention is as follows:
The method of the invention, device and system, can the WiFi flow of counting user terminal accurately, for WiFi communication mode provides rates ground effectively.Further, the present invention effectively can also prevent terminal distorting arbitrarily to WiFi flow value, the accuracy of Deterministic service device traffic statistics.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of a kind of WiFi flow statistical method that Fig. 1 provides for the embodiment of the present invention one;
Fig. 2 is the system architecture diagram of method application described in the embodiment of the present invention two;
The structured flowchart of the user terminal that Fig. 3 provides for the embodiment of the present invention three;
The structured flowchart of the traffic statistics server that Fig. 4 provides for the embodiment of the present invention four;
The structured flowchart of the WiFi flow statistical system that Fig. 5 provides for the embodiment of the present invention five.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to solve the problem can not carrying out effectively statistics in prior art to WiFi flow, the embodiment of the present invention provides a kind of WiFi flow statistical method, device and system, it not only can be added up the WiFi flow of user terminal effectively, but also can prevent hacker from arbitrarily revising the WiFi flow of terminal thus ensureing the accurate statistics to WiFi flow.From methods, devices and systems several aspect, expansion explanation is carried out to technical solutions according to the invention respectively below.
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of WiFi flow statistical method, specifically comprises:
Step S101, user terminal, by after WiFi access authentication, obtains the traffic statistics strategy including measurement period information, and according to described traffic statistics strategy, adds up and report the flow value in each measurement period;
Wherein, user terminal preferably obtains traffic statistics strategy from traffic statistics server side; Further, the traffic statistics strategy of acquisition preferably also comprises: the maximum that in random number and/or each measurement period, single reports.Certainly, also only can comprise the figure place of random number in traffic statistics strategy, user terminal after getting statistics strategy, then obtains the random number corresponding with random number figure place to traffic statistics server.
When comprising random number in traffic statistics strategy, after described user terminal gets traffic statistics strategy, when reporting flow value, based on random number, the flow value in measurement period is encrypted.Can be encrypted with this random number after user terminal gets random number always, but more preferably, user terminal after reporting flow value at every turn, again the random number of encryption next time is obtained at traffic statistics server side, thus improve the fail safe of encryption further, specific implementation is: after user terminal is encrypted the flow value in measurement period based on random number, flow value after encryption is reported to described traffic statistics server, and receives the random number for encryption next time that described statistical server issues.
Wherein, user terminal comprises the mode that the flow value reported is encrypted based on random number: described user terminal according to a preconcerted arrangement insert rule, the flow value obtained in measurement period is inserted the specific bit in described random number, realizes the encryption to flow value.Concrete implementation can be: the figure place of described random number is 11, user terminal obtains the numerical value of N of described random number highest order, and the individual position adding up the flow value obtained is positioned over the N position of described random number, ten that add up the flow value obtained are positioned over the N+1 position of described random number.Certainly, if also have hundred, then the process that rounds up can be carried out.From above-mentioned cipher mode, in the embodiment of the present invention, the flow value obtained is positioned over adjacent two of random number, makes it be submerged in random number, can ensure that the flow value obtained can not be effectively recognized like this, thus prevent that malice is carried out to flow value and distort.
Further, when comprising the maximum that single in each measurement period reports in traffic statistics strategy, described user terminal, when reporting the flow value in measurement period, if described flow value is greater than the maximum that described single reports, then reports several times.
Step S102, traffic statistics server receives the flow value of described user terminal to send up and preserves, and manages the flow value of each user terminal preserved.
When user terminal in step S101 is encrypted the flow value reported, in this step, traffic statistics server is after the flow value receiving described user terminal to send up, according to the random number of the described flow value of encryption, validation verification is carried out to the information of user terminal to send up, if be proved to be successful, then return successfully response message (new random number now, can be carried for user terminal encryption next time) to user terminal; Otherwise, return failure response message (new random number now, can be carried for user terminal re-encrypted) to user terminal.Wherein, the mode of carrying out validation verification comprises: the random number being used for encrypting this flow value that the random number carrying flow value information received and traffic statistics server side are preserved is compared by traffic statistics server, when removing other numerical value of flow value position and being identical with the numerical value of the corresponding position of the random number of preservation, be judged to be proved to be successful.
Further, user terminal, when receiving failure response message, obtains new random number again at described traffic statistics server side, and is again encrypted flow value based on new random number and reports; Traffic statistics server is verified again to the information reported, when failing the authentication, again return failure response message, until traffic statistics server for same user terminal when the number of times of authentication failed exceedes the threshold value of setting, notice accessing control server AC described user terminal is rolled off the production line.
Further, in this step, the flow value of traffic statistics server to each user terminal preserved manages and mainly comprises: for each user terminal, carry out the flow value in the setting-up time section received to gather obtaining the actual flow value of each user terminal in setting-up time section.Flow value, when getting actual flow value, according to predetermined interactive mode, can be sent to third party charging server, with thinking that charging provides foundation by traffic statistics server.Certainly, traffic statistics server also can built-in accounting module, and now, the flow value information that traffic statistics server can obtain based on self carry out billing operation.
Wherein, the actual flow value of user terminal deducts flow value (such as reporting flow shared in the information interactive process such as flow value) shared by statistics WiFi flow for: the flow value summation reported.
In sum, method described in the embodiment of the present invention can the WiFi flow of counting user terminal accurately, for WiFi communication mode provides rates ground effectively.Further, method described in the embodiment of the present invention effectively can also prevent terminal distorting arbitrarily to WiFi flow value, the accuracy of Deterministic service device traffic statistics.
Embodiment two
The embodiment of the present invention provides a kind of WiFi flow statistical method, the method is further elaborated scheme described in embodiment one in conjunction with concrete implementation detail, it should be noted that, ins and outs mentioned in the present embodiment in order to explain the present invention and and be not used in and uniquely limit the present invention.Be specifically related to following content:
The system architecture diagram of method application described in the embodiment of the present invention as shown in Figure 2, in described method, WiFi user terminal is by after the certification of access controller AC completing user, user terminal obtains traffic statistics strategy, the maximum that content mainly comprises measurement period, single reports flow of this traffic statistics strategy and the figure place to the random number that flow value is encrypted at traffic statistics server side.According to the traffic statistics strategy obtained, the user terminal WiFi flow that computing terminal uses in each measurement period, simultaneously user terminal is encrypted according to obtaining the flow of random number to terminal, to distort WiFi flow to prevent hacker; After wherein user terminal counts on flow value in measurement period, lose to prevent statistics after power-off, can be kept at adding up the flow value that obtains in the memory of setting in advance, and after by flow value successful synchronization to traffic statistics server, by the information deletion stored in memory.
User terminal when reporting flow value, if exceed single allow report maximum, several times to traffic statistics server report statistics result.After traffic statistics server receives the statistical report of user terminal, carry out validation verification and WiFi flow is added up, recording the uninterrupted of this network exchange simultaneously.This statistics is then deleted after receiving the success response of traffic statistics server by user terminal.For traffic statistics server, whenever bill generates day, the WiFi flow of each user cuts simultaneously and carries out mutual flow with network, and to the flow value that central authentication server Radius synchronously counts on, finally completes WiFi billing function by Radius.
Set forth based on above-mentioned principle, below whole operation flow is described in detail, in this operation flow, user terminal and traffic statistics server carry out can adopting HTTP(Hypertext transferprotocol alternately, HTTP) or TCP(Transmission Control Protocol, transmission control protocol), in order to security consideration needs to adopt SSL/TLS to be encrypted transferring content.The present embodiment is for the HTTP of HTTPS(based on SSL/TLS) whole WiFi traffic statistics flow process is described, when adopting HTTPS to carry out terminal and server mutual, can XML format be adopted, shown in specific as follows about measurement period, the flow maximum of single statistics and the policy conferring of random number figure place:
Based on above-mentioned host-host protocol and policy conferring form, the WiFi flow statistical method described in the embodiment of the present invention specifically comprises:
Step 1, WiFi user terminal is by the certification of AC completing user;
Step 2, after the certification of user terminal completing user, sends to traffic statistics server the traffic statistics strategy that HTTPS GET obtains server side;
Step 3, the traffic statistics strategy of user terminal to flow statistical server side carries out parsing acquisition measurement period, single flow reports maximum and random number figure place (such as 11);
Step 4, user terminal sends HTTPS GET acquisition request first 11 random number to traffic statistics server;
Step 5, traffic statistics server generates random number after receiving user terminal requests and returns to user terminal, and to preserve this random number be current effective value, records this user HTTPS simultaneously and asks and the message size of response;
Step 6, after the random number that user terminal reading flow statistical server returns, start, according to measurement period every 60S, traffic statistics are carried out to terminal and start traffic statistics, and when measurement period arrives, according to the random number read, the flow value counted on is encrypted, and by the result of encryption stored in the memory pre-set, then by HTTPS PUT request, the traffic statistics result after encryption is sent to traffic statistics server;
Wherein, encryption policy is: if the numerical value of the highest order of random number is N(0<N<=9), then the N position of random number is the individual position of WiFi flow value, and N+1 is the tenths of WiFi flow value, if there is hundredths, rounds up.
Step 7, the statistical information after encryption is reported to traffic statistics server by user terminal; In this step, user terminal gives the correct time upper, and the single whether flow value that detection reports exceedes setting reports maximum 10M, if so, several times to traffic statistics server report statistics result;
Step 8, traffic statistics server, according to current effective random value, carries out validation verification to the information reported of user terminal, if checking is correct, performs step 9; Otherwise perform step 10;
In this step, proof procedure is: current effective random number that the statistics value of terminal and server side are preserved compared, and whether other positions detected except N and N+1 position are equal, if equal, is then judged to be that checking is correct; Otherwise be judged to be authentication error.
Step 9, traffic statistics server takes out the value that N position and N+1 position obtain real WiFi actual flow, and flow is carried out to active user add up, return user terminal 200OK and carry a new random value to terminal, recording this user HTTPS simultaneously and ask and the message size of response;
Step 10, traffic statistics server returns user terminal 400, and this time statistics is invalid for informing user terminal, and carries up-to-date random value:
Step 11, time statistics of this in memory, when receiving the 200OK message that traffic statistics server sends, is deleted by user terminal, and takes out up-to-date random number and be encrypted statistics next time;
Step 12, for terminal when receiving 400 of the transmission of traffic statistics server, from memory, then take out this statistics be decrypted and re-start encryption according to the up-to-date random number of carrying in 400, and delete the invalid statistics after encryption last time from data memory module, then perform step 7;
Step 13, the number of times of traffic statistics server record active user statistics exception, if exceed the threshold value that presets 3 times, then traffic statistics server forces this user offline by AC controller, and notifies user;
Step 14, the flow of each user to carry out cumulative and automatically cuts the HTTPS message flow that statistics WiFi flow uses by traffic statistics server when bill generates in every month, obtain the WiFi flow in this user this month and inform central authentication server and generate bill;
Step 15, last traffic statistics server resets active user WiFi flow.
In sum, the embodiment of the present invention is in conjunction with the specific implementation process between user terminal and traffic statistics server, illustrate the implementation of scheme of the present invention, visible, utilize method described in the embodiment of the present invention can the WiFi flow of counting user terminal accurately, for WiFi communication mode provides rates ground effectively.Further, method described in the embodiment of the present invention effectively can also prevent terminal distorting arbitrarily to WiFi flow value, the accuracy of Deterministic service device traffic statistics.
Embodiment three
As shown in Figure 3, the embodiment of the present invention provides a kind of user terminal, specifically comprises:
Strategy acquisition module 310, for after user terminal passes through WiFi access authentication, obtains the traffic statistics strategy including measurement period information;
Flow reporting module 320, for according to described traffic statistics strategy, adds up the flow value in each measurement period and reports.
Preferably, the traffic statistics strategy that above-mentioned tactful acquisition module 310 obtains also comprises: the maximum that in random number and/or each measurement period, single reports;
When traffic statistics strategy comprises random number, flow reporting module 320, also for after getting described traffic statistics strategy, when reporting flow value, is encrypted the flow value in measurement period based on described random number;
When traffic statistics strategy comprises the maximum that single in each measurement period reports, flow reporting module 320, also for when reporting the flow value in measurement period, if described flow value is greater than the maximum that described single reports, then reports several times.
In order to improve the fail safe of encryption further, preferably, flow reporting module 320, also for the flow value after encryption is reported to described traffic statistics server, and receives the random number for encryption next time that described statistical server issues.
Further, the encryption mode that above-mentioned flow reporting module 320 is taked is: according to a preconcerted arrangement insert rule, the flow value obtained in measurement period is inserted the specific bit in described random number, realizes the encryption to flow value.A kind of specific implementation is: the numerical value of N obtaining described random number highest order, and the N position individual position adding up the flow value obtained being positioned over described random number, ten that add up the flow value obtained are positioned over the N+1 position of described random number; Wherein, the figure place of described random number is 11.
Further, flow reporting module 320, also for after reporting statistics, if receive the failure response message of described traffic statistics server feedback, again obtain new random number at described traffic statistics server side, and again flow value be encrypted based on described new random number and report.
In sum, the user terminal described in the embodiment of the present invention is added up the WiFi flow that user uses by obtaining traffic statistics strategy in advance, achieves and reports the fact of customer flow; And by the cipher mode preset, flow value is encrypted, effective prevention terminal distorting arbitrarily to WiFi flow value, the accuracy of Deterministic service device traffic statistics.
Embodiment four
As shown in Figure 4, the embodiment of the present invention provides a kind of traffic statistics server, specifically comprises:
Flow receiver module 410, for receiving the flow value reported in each measurement period of user terminal;
Traffic management module 420, for preserving the flow value received, and manages the flow value of each user terminal preserved.
Preferably, traffic statistics server also comprises: tactful sending module 430, for after user terminal passes through WiFi access authentication, the pre-configured traffic statistics strategy including measurement period information is sent to described user terminal.
Further, the traffic statistics strategy that tactful sending module 430 sends preferably also comprises: the maximum that in random number and/or each measurement period, single reports.
Further, after subscriber terminal side takes encryption, flow receiver module 410, after the flow value receiving described user terminal to send up, according to the random number of the described flow value of encryption, validation verification is carried out, if be proved to be successful to the information of user terminal to send up, then return successfully response message (new random number now, can be carried for user terminal encryption next time) to user terminal; Otherwise, return failure response message (new random number now, can be carried for user terminal re-encrypted) to user terminal;
Further, flow receiver module 410, is further used for for same user terminal when the number of times of authentication failed exceedes the threshold value of setting, and notice accessing control server AC makes described user terminal roll off the production line.
Further, in the embodiment of the present invention, the flow value of traffic management module 420 to each user terminal preserved manages and mainly comprises: for each user terminal, carry out the flow value in the setting-up time section received to gather obtaining the actual flow value of each user terminal in setting-up time section.Flow value, when getting actual flow value, according to predetermined interactive mode, can be sent to third party charging server, with thinking that charging provides foundation by traffic management module 420.Certainly, traffic statistics server also can built-in accounting module, and now, the flow value information that traffic statistics server can obtain based on self carry out billing operation.
Wherein, the actual flow value of user terminal deducts flow value (such as reporting flow shared in the information interactive process such as flow value) shared by statistics WiFi flow for: the flow value summation reported.
In sum, mutual by with user terminal of traffic statistics server described in the embodiment of the present invention, the WiFi flow of subscriber terminal side counting user terminal accurately can be realized, and by providing encryption mechanism for user terminal, effectively can prevent terminal distorting arbitrarily to WiFi flow value, the accuracy of Deterministic service device traffic statistics.
Embodiment five
As shown in Figure 5, the embodiment of the present invention provides a kind of WiFi flow statistical system, and this system specifically comprises: the user terminal described in embodiment three and the traffic statistics server described in embodiment four.System described in the embodiment of the present invention can the WiFi flow of counting user terminal accurately, for WiFi communication mode provides rates ground effectively.Further, system described in the embodiment of the present invention effectively can also prevent terminal distorting arbitrarily to WiFi flow value, the accuracy of Deterministic service device traffic statistics.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (16)

1. a WiFi flow statistical method, is characterized in that, comprising:
User terminal, by after WiFi access authentication, obtains traffic statistics strategy; Described traffic statistics strategy comprises: measurement period and random number;
User terminal, according to described traffic statistics strategy, is added up the flow value in each measurement period, and reports after being encrypted the flow value in measurement period based on described random number;
Traffic statistics server receives the flow value of described user terminal to send up, and according to encrypting the random number of described flow value, validation verification is carried out to the flow value of user terminal to send up, and preserves after being verified, and the flow value of each user terminal preserved is managed.
2. the method for claim 1, is characterized in that, described traffic statistics strategy also comprises: the maximum that in each measurement period, single reports;
Described user terminal, when reporting the flow value in measurement period, also comprises: if described flow value is greater than the maximum that described single reports, then report several times.
3. the method for claim 1, it is characterized in that, after described user terminal is encrypted the flow value in measurement period based on described random number, flow value after encryption is reported to described traffic statistics server, and receives the random number for encryption next time that described traffic statistics server issues.
4. the method for claim 1, it is characterized in that, described user terminal is encrypted the flow value reported based on random number, specifically comprise: described user terminal according to a preconcerted arrangement insert rule, the flow value obtained in measurement period is inserted the specific bit in described random number, realizes the encryption to flow value.
5. method as claimed in claim 4, it is characterized in that, described user terminal obtains the numerical value of N of described random number highest order, and the individual position adding up the flow value obtained is positioned over the N position of described random number, ten that add up the flow value obtained is positioned over the N+1 position of described random number; Wherein, the figure place of described random number is 11.
6. the method as described in any one of claim 1 to 5, it is characterized in that, described traffic statistics server is after the flow value receiving described user terminal to send up, according to the random number of the described flow value of encryption, validation verification is carried out to the information of user terminal to send up, if be proved to be successful, then return successfully response message to user terminal; Otherwise, return failure response message to user terminal.
7. method as claimed in claim 6, is characterized in that,
Described user terminal, when receiving failure response message, obtains new random number again at described traffic statistics server side, is again encrypted flow value and reports based on described new random number;
Described traffic statistics server is for same user terminal when the number of times of authentication failed exceedes the threshold value of setting, and notice accessing control server AC makes described user terminal roll off the production line.
8. a user terminal, is characterized in that, comprising:
Strategy acquisition module, for after user terminal passes through WiFi access authentication, obtains traffic statistics strategy; Described traffic statistics strategy comprises: measurement period and random number;
Flow reporting module, for according to described traffic statistics strategy, adds up the flow value in each measurement period, and reports after being encrypted the flow value in measurement period based on described random number.
9. user terminal as claimed in claim 8, is characterized in that,
The traffic statistics strategy that described tactful acquisition module obtains also comprises: the maximum that in each measurement period, single reports;
When traffic statistics strategy comprises the maximum that single in each measurement period reports, described flow reporting module, also for when reporting the flow value in measurement period, if described flow value is greater than the maximum that described single reports, then reports several times.
10. user terminal as claimed in claim 8, is characterized in that, described flow reporting module, is further used for the flow value after by encryption and reports to traffic statistics server, and receives the random number for encryption next time that described traffic statistics server issues.
11. user terminals as claimed in claim 8, is characterized in that, described flow reporting module, be further used for according to a preconcerted arrangement insert rule, the flow value obtained in measurement period is inserted the specific bit in described random number, realizes the encryption to flow value.
12. user terminals as claimed in claim 11, it is characterized in that, described flow reporting module, be further used for the numerical value of N obtaining described random number highest order, and the individual position adding up the flow value obtained is positioned over the N position of described random number, ten that add up the flow value obtained are positioned over the N+1 position of described random number, realize the encryption to flow value; Wherein, the figure place of described random number is 11.
13. user terminals as described in any one of claim 8 to 12, it is characterized in that, described flow reporting module, also for when receiving the failure response message of traffic statistics server feedback, again obtain new random number at described traffic statistics server side, and again flow value be encrypted based on described new random number and report.
14. 1 kinds of traffic statistics servers, is characterized in that, comprising:
Strategy sending module, for after user terminal passes through WiFi access authentication, is sent to described user terminal by pre-configured traffic statistics strategy; Described traffic statistics strategy comprises: measurement period and random number;
Flow receiver module, for receiving the flow value reported in each measurement period of user terminal, according to the random number of the described flow value of encryption, carrying out validation verification to the information of user terminal to send up, if be proved to be successful, then returning successfully response message to user terminal; Otherwise, return failure response message to user terminal;
Traffic management module, for preserving the flow value be proved to be successful received, and manages the flow value of each user terminal preserved.
15. traffic statistics servers as claimed in claim 14, is characterized in that,
The traffic statistics strategy that described tactful sending module sends also comprises: the maximum that in each measurement period, single reports;
Described flow receiver module, is further used for for same user terminal when the number of times of authentication failed exceedes the threshold value of setting, and notice accessing control server AC makes described user terminal roll off the production line.
16. 1 kinds of WiFi flow statistical system, is characterized in that, comprising: user terminal and traffic statistics server;
Described user terminal, comprising:
Strategy acquisition module, for after user terminal passes through WiFi access authentication, obtains traffic statistics strategy; Described traffic statistics strategy comprises: measurement period and random number;
Flow reporting module, for according to described traffic statistics strategy, adds up the flow value in each measurement period, and reports after being encrypted the flow value in measurement period based on described random number;
Described traffic statistics server, comprising:
Strategy sending module, for after user terminal passes through WiFi access authentication, is sent to described user terminal by pre-configured traffic statistics strategy; Described traffic statistics strategy comprises: measurement period and random number;
Flow receiver module, for receiving the flow value reported in each measurement period of user terminal, according to the random number of the described flow value of encryption, carrying out validation verification to the information of user terminal to send up, if be proved to be successful, then returning successfully response message to user terminal; Otherwise, return failure response message to user terminal;
Traffic management module, for preserving the flow value be proved to be successful received, and manages the flow value of each user terminal preserved.
CN201210490671.1A 2012-11-27 2012-11-27 A kind of WiFi flow statistical method, device and system Active CN103024716B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210490671.1A CN103024716B (en) 2012-11-27 2012-11-27 A kind of WiFi flow statistical method, device and system
PCT/CN2013/081807 WO2013189376A1 (en) 2012-11-27 2013-08-19 Wifi traffic statistics method, device, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210490671.1A CN103024716B (en) 2012-11-27 2012-11-27 A kind of WiFi flow statistical method, device and system

Publications (2)

Publication Number Publication Date
CN103024716A CN103024716A (en) 2013-04-03
CN103024716B true CN103024716B (en) 2015-10-07

Family

ID=47972756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210490671.1A Active CN103024716B (en) 2012-11-27 2012-11-27 A kind of WiFi flow statistical method, device and system

Country Status (2)

Country Link
CN (1) CN103024716B (en)
WO (1) WO2013189376A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024716B (en) * 2012-11-27 2015-10-07 中兴通讯股份有限公司 A kind of WiFi flow statistical method, device and system
CN103581044A (en) * 2013-11-04 2014-02-12 汉柏科技有限公司 Flow statistic method and device
CN103906026B (en) * 2014-03-27 2018-03-27 华为技术有限公司 Charging method, device and system
CN105306287A (en) * 2014-06-23 2016-02-03 西安中兴新软件有限责任公司 Method and equipment for counting user flow
CN105227391B (en) * 2014-06-30 2017-11-21 腾讯科技(深圳)有限公司 The traffic statistic function method of testing and system of application program
WO2018028359A1 (en) * 2016-08-08 2018-02-15 腾讯科技(深圳)有限公司 Service processing method and device, and storage medium and electronic device
CN106330574B (en) * 2016-10-24 2019-11-12 杭州迪普科技股份有限公司 Flow analysis method and device
CN108259207B (en) * 2016-12-29 2021-04-27 北京国双科技有限公司 Traffic statistical method, client, server and system
CN108810915B (en) * 2018-05-29 2022-01-25 努比亚技术有限公司 WiFi hotspot flow control method and device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159630A (en) * 2007-11-09 2008-04-09 华为技术有限公司 Flux monitoring method, system and broadband accessing server
CN101582808A (en) * 2009-06-10 2009-11-18 中兴通讯股份有限公司南京分公司 Method, terminal and system for P2P up-down flow statistical management
CN101719832A (en) * 2009-06-02 2010-06-02 中兴通讯股份有限公司 Method and system for implementing trigger of intermediate charge

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8687482B2 (en) * 2007-09-07 2014-04-01 Wichorus, Inc. Apparatus and method for controlling traffic flow in backhaul link in wireless communication network
CN101562541B (en) * 2009-05-19 2012-05-23 杭州华三通信技术有限公司 Unified management method and device thereof
CN101600186B (en) * 2009-06-12 2013-11-06 中兴通讯股份有限公司 Method and device for traffic statistics and automatic computation of network charge
CN103024716B (en) * 2012-11-27 2015-10-07 中兴通讯股份有限公司 A kind of WiFi flow statistical method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159630A (en) * 2007-11-09 2008-04-09 华为技术有限公司 Flux monitoring method, system and broadband accessing server
CN101719832A (en) * 2009-06-02 2010-06-02 中兴通讯股份有限公司 Method and system for implementing trigger of intermediate charge
CN101582808A (en) * 2009-06-10 2009-11-18 中兴通讯股份有限公司南京分公司 Method, terminal and system for P2P up-down flow statistical management

Also Published As

Publication number Publication date
CN103024716A (en) 2013-04-03
WO2013189376A1 (en) 2013-12-27

Similar Documents

Publication Publication Date Title
CN103024716B (en) A kind of WiFi flow statistical method, device and system
CN110050439B (en) System and method for calculating service contribution degree of scattered network nodes
US11601555B2 (en) Methods and apparatuses for service layer charging correlation with underlying networks
CN104754560B (en) A kind of location privacy protection method, apparatus and system
CN109474977A (en) A kind of monitoring method of equipment, apparatus and system
CN107529160A (en) A kind of VoWiFi method for network access and system, terminal and wireless access points equipment
Klaine et al. Privacy-preserving contact tracing and public risk assessment using blockchain for COVID-19 pandemic
CN105191210B (en) Method for policy control and charge for D2D service
EP3087702B1 (en) Providing toll-free application data access
CN106412113A (en) Energy cloud service system and communication method thereof
RU2014129938A (en) SYSTEMS AND METHODS OF REMOTE MONITORING OF MEDICAL DEVICES
US20140225742A1 (en) System and method to manage utility meter communications
CN102143492B (en) Method for establishing virtual private network (VPN) connection, mobile terminal and server
US11915330B2 (en) Secure tokens for controlling access to a resource in a resource distribution network
CA3157850C (en) Secure tokens for controlling access to a resource in a resource distribution network
CN108876950B (en) Attendance tracking method, device, terminal, server and storage medium
CN110866261A (en) Data processing method and device based on block chain and storage medium
CN106878965B (en) A kind of method and apparatus for assessing mobile terminal performance
CN105228114A (en) A kind of Encrypted short message receive-transmit system based on power failure navigation system and method
CA3157852A1 (en) Secure tokens for controlling access to a resource in a resource distribution network
CN102232305A (en) Service processing method, system and device
CN111770094A (en) Access control method of wireless network and related device
Heins NB-IoT Use Cases and Devices
GB2551357A (en) Network edge data monitoring
CN106911789A (en) A kind of data transmission method based on user collaborative environment, Transmission system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant