CN105101286B - A kind of flow statistical method and gateway, the method and system for accessing network - Google Patents

A kind of flow statistical method and gateway, the method and system for accessing network Download PDF

Info

Publication number
CN105101286B
CN105101286B CN201510377731.2A CN201510377731A CN105101286B CN 105101286 B CN105101286 B CN 105101286B CN 201510377731 A CN201510377731 A CN 201510377731A CN 105101286 B CN105101286 B CN 105101286B
Authority
CN
China
Prior art keywords
mobile terminal
data
flow
communication
proxy server
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
CN201510377731.2A
Other languages
Chinese (zh)
Other versions
CN105101286A (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.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510377731.2A priority Critical patent/CN105101286B/en
Publication of CN105101286A publication Critical patent/CN105101286A/en
Application granted granted Critical
Publication of CN105101286B publication Critical patent/CN105101286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention discloses a kind of flow statistical method and gateways, the method and system for accessing network, available mobile terminal accesses the communication data in network development process by the network of mobile communication carrier, whether detection includes that flow identifier is exempted from online in the communication data, if comprising, flow identifier is then exempted from based on the online, the corresponding data traffic of the communication data is completely or partially included in specified services quotient.In mobile terminal network visiting, what is expended is the data traffic of specified service provider, data traffic without expending mobile terminal, thus it solves the technical issues of needing to expend the flow of mobile terminal when accessing network in the prior art, has reached the technical effect that mobile terminal exempts from flow access network.

Description

A kind of flow statistical method and gateway, the method and system for accessing network
Technical field
The present invention relates to a kind of methods of field of communication technology more particularly to flow statistical method and gateway, access network And system.
Background technique
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various conveniences of development in science and technology bring.Present people can be by various types of mobile whole End is enjoyed as development in science and technology bring is comfortably lived.For example, the mobile terminals such as smart phone, tablet computer have become people Live in an important component part, the mobile terminals such as smart phone, tablet computer can be used to listen to music, play in user Game etc., to mitigate pressure brought by modern fast pace life.
Under normal conditions, mobile terminal all has network access functions, and mobile terminal needs to consume when accessing network The data traffic of the user of mobile terminal is paid the fees according to the data traffic of consumption to the operator for providing network service.Due to existing Charging can only be carried out to the data traffic that user uses by operator by having in technology, so cause in the prior art, it is mobile whole The customer access network at end needs to expend a large amount of data traffic of mobile terminal;And since the network flow of mobile terminal is more high It is expensive, thus, it forces the user of mobile terminal to have to pay a large amount of expense thus, so, significantly reduces user's visit The enthusiasm for asking network is unfavorable for the universal and development of mobile interchange technology.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the flow statistical method and gateway, the method and system for accessing network of problem.
One aspect of the present invention provides a kind of flow statistical method, comprising:
Obtain the communication data in the network access network development process that mobile terminal passes through mobile communication carrier;
Whether detection includes that flow identifier is exempted from online in the communication data;
If comprising exempting from flow identifier based on the online, by the corresponding data traffic whole of the communication data or portion Divide and is included in specified services quotient.
It is optionally, described that the communication data division is included in specified services quotient, comprising:
The data traffic of special ratios in the communication data is counted into the specified services quotient;Or
Data traffic certain amount of in the communication data is counted into the specified services quotient;Or
The data traffic of the communication data specific content is counted into the specified services quotient.
It is optionally, described to be included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
Optionally, the communication data, comprising:
The data access request that the mobile terminal is sent to the proxy server;And
The requested date that the proxy server is sent to the mobile terminal, the requested date are the agency The data corresponding with the data access request that server is obtained from Resource Server.
Optionally, described that the corresponding data traffic of the communication data is completely or partially included in specified services quotient, packet It includes:
When exempting from flow identifier comprising described in the data access request, exempt from flow identifier based on described, by the number It is completely or partially included in the specified services quotient according to data traffic corresponding to access request;And/or
When exempting from flow identifier comprising described in the requested date, exempts from flow identifier based on described, asked described The data traffic of data is asked completely or partially to be included in the data traffic of the given server consumption.
Optionally, flow identifier is exempted from the online, comprising:
The default label that the proxy server is sent to the mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
Optionally, described that the corresponding data traffic of the communication data is completely or partially included in specified services quotient, packet It includes:
It is when in determining the communication data comprising default label, the corresponding data traffic of the communication data is whole Or part is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, will flow through described in the preset IP address The corresponding data traffic of communication data is completely or partially included in the specified services quotient.
Optionally, whether the detection includes that flow identifier is exempted from online in the communication data, comprising:
It is obtained from the predeterminated position in the communication data and exempts from flow identifier ciphertext, and exempt from flow identifier ciphertext to described It is decrypted, obtains exempting from flow identifier in plain text;Exempt from described in judgement flow identifier in plain text whether be it is default exempt from flow identifier, if It is, it is determined that exempt from flow identifier comprising the online in the communication data.
Another aspect of the present invention provides a kind of method for accessing network, comprising:
Proxy server receives the data access request that mobile terminal accesses network by the network of mobile communication carrier, It include the communication identifier of the mobile terminal in the data access request, the communication identifier has online and exempts from flow permission;
The proxy server obtains corresponding according to the data access request from mobile terminal from Resource Server Requested date, and the requested date is passed through into the network transmission of mobile communication carrier to the mobile terminal;
Wherein, the communication data during the mobile terminal network visiting is being flowed through positioned at the mobile terminal and described When the gateway of the mobile communication carrier between proxy server, if exempting from flux scale comprising online in the communication data Know, then the communication data will be completely or partially included in specified services quotient by the gateway.
Optionally, further includes:
Whether it includes that flow identifier is exempted from the online that the gateway detects in the communication data;
If comprising the gateway exempts from flow identifier based on described, and the corresponding data traffic of the communication data is whole Or part is included in specified services quotient.
Optionally, the gateway exempts from flow identifier based on described, and the corresponding data traffic part of the communication data is counted Enter in specified services quotient, comprising:
The gateway exempts from flow identifier described in being based on, and the corresponding certain amount of data traffic of the communication data is included in In data traffic spent by the specified services quotient.
Optionally, the gateway be based on it is described exempt from flow identifier, by the corresponding data traffic of the communication data all or Part is included in specified services quotient, comprising:
When exempting from flow identifier comprising described in the data access request that the mobile terminal is sent, the gateway is based on institute It states and exempts from flow identifier, data traffic corresponding to the data access request is completely or partially included in the specified services quotient In;And/or
Exempt from flow identifier in the requested date comprising described, the gateway exempts from flow identifier based on described, will The data traffic of the requested date is completely or partially included in the data traffic of the given server consumption.
Optionally, the proxy server receives the number that mobile terminal accesses network by the network of mobile communication carrier Before access request, further includes:
The proxy server sends default label to the mobile terminal, during the mobile terminal network visiting The default label is carried when carrying out data transmission, the default label exempts from flow identifier to be described;Alternatively,
The IP address of the proxy server of preset IP address exempts from flow identifier described in being, the proxy server is for receiving The data access request.
Optionally, the gateway is based on the flow identifier of exempting from by the data flow during the mobile terminal network visiting Amount is all or part of to be included in specified services quotient, comprising:
When the gateway includes the default label in determining the data in the communication data, by the communication number It is completely or partially included in specified services quotient according to corresponding data traffic;Or
The communication data passes through the proxy server of the preset IP address, and the gateway will be with will flowing through the default IP The communication data corresponding data flow of location is completely or partially included in the specified services quotient.
Optionally, whether it includes that flow identifier is exempted from the online that the gateway detects in the communication data, comprising:
The gateway is obtained from the predeterminated position in the communication data exempts from flow identifier ciphertext, and exempts from flow to described Mark ciphertext is decrypted, and obtains exempting from flow identifier in plain text;
Whether be preset exempt from flow identifier, if it is, described in determining if exempting from flow identifier described in the gateway judgement in plain text Exempt from flow identifier comprising the online in communication data.
Optionally, further includes:
The proxy server according to preset measurement period count the mobile terminal spent by data traffic information, Know that the mobile terminal has the newest free residual flow information for exempting from flow permission.
Optionally, further includes:
Data traffic information spent by the mobile terminal is sent to the distribution server by the proxy server;
The distribution server determines the mobile terminal tool based on data traffic information spent by the mobile terminal The standby newest free residual flow information for exempting from flow permission.
Optionally, further includes:
Whether the proxy server judgement receives any data access of the mobile terminal within a preset period of time Request;And
If being not received by any data access request of the mobile terminal within a preset period of time, described in prompt Mobile terminal has dropped out login.
Optionally, further includes:
The distribution server receives the communication identifier and authentication information of the mobile terminal;
Communication identifier and authentication information of the distribution server based on the mobile terminal verify the communication mark Know whether to have and exempts from flow permission;
The distribution server determine the communication identifier have it is described exempt from flow permission when, for the mobile terminal point With the proxy server.
Optionally, the distribution server determine the communication identifier have it is described exempt from flow permission when, be the shifting Proxy server described in dynamic terminal distribution, comprising:
The distribution server obtains the free residual flow information of the communication identifier;
The distribution server judges the free residual flow of the communication identifier based on the free residual flow information Whether predetermined amount is greater than;
The distribution server distributes institute when the free residual flow is greater than the predetermined amount, for the mobile terminal State proxy server.
Optionally, further includes:
The distribution server generates interim verification information, and the interim verification information is sent to the mobile terminal And the proxy server;
The data access request for receiving mobile terminal, comprising: the proxy server receives the mobile terminal hair Send to the carrying communication identifier, the interim verification information the data access request;
It is described to obtain corresponding requested date from Resource Server, comprising: the proxy server faces by described When verification information verify the data access request it is legal when, obtain the requested date from the Resource Server.
Optionally, after the proxy server prompts the mobile terminal to have dropped out login, the distribution server nullifies institute State interim verification information.
Optionally, if the proxy server prompts the mobile terminal to have dropped out login, further include:
The proxy server by the starting surf time of the mobile terminal, terminate the data of surf time and consumption Flow information is sent to the distribution server;
The distribution server exempts from the mobile terminal based on the data traffic information that the proxy server is sent Expense residual flow is counted.
Optionally, the distribution server is described mobile whole when the free residual flow is greater than the predetermined amount End is distributed after the proxy server, further includes:
The free residual flow information is sent to the proxy server by the distribution server;
It is described to obtain corresponding requested date from Resource Server, comprising: the proxy server receive it is described After data access request, the newest free residual flow for judging the mobile terminal based on the free residual flow information is It is no to be greater than predetermined amount;When the newest free residual flow information is greater than the predetermined amount, obtained from the Resource Server The requested date.
Another aspect of the present invention provides a kind of gateway, comprising:
First obtains module, is accessed in network development process for obtaining mobile terminal by the network of mobile communication carrier Communication data;
Whether detection module includes that flow identifier is exempted from online in the communication data for detecting;
First statistical module, if for comprising, based on it is described online exempt from flow identifier, the communication data is corresponding Data traffic is completely or partially included in specified services quotient.
Optionally, first statistical module is specifically used for:
The data traffic of special ratios in the communication data is counted into the specified services quotient;Or
Data traffic certain amount of in the communication data is counted into the specified services quotient;Or
The data traffic of the communication data specific content is counted into the specified services quotient.
It is optionally, described to be included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
Optionally, the communication data, comprising:
The data access request that the mobile terminal is sent to the proxy server;And
The requested date that the proxy server is sent to the mobile terminal, the requested date are the agency The data corresponding with the data access request that server is obtained from Resource Server.
Optionally, first statistical module is specifically used for:
When exempting from flow identifier comprising described in the data access request, exempt from flow identifier based on described, by the number It is completely or partially included in the specified services quotient according to data traffic corresponding to access request;And/or
When exempting from flow identifier comprising described in the requested date, exempts from flow identifier based on described, asked described The data traffic of data is asked completely or partially to be included in the data traffic of the given server consumption.
Optionally, flow identifier is exempted from the online, comprising:
The default label that the proxy server is sent to the mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
Optionally, first statistical module is also used to:
It is when in determining the communication data comprising default label, the corresponding data traffic of the communication data is whole Or part is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, will flow through described in the preset IP address The corresponding data traffic of communication data is completely or partially included in the specified services quotient.
Optionally, the detection module, which is specifically used for obtaining from the predeterminated position in the communication data, exempts from flow identifier Ciphertext, and the flow identifier ciphertext of exempting from is decrypted, obtain exempting from flow identifier in plain text;Exempt from flow identifier described in judgement in plain text Whether it is to preset to exempt from flow identifier, exempts from flow identifier comprising the online if it is, determining in the communication data.
Another aspect of the present invention provides a kind of proxy server characterized by comprising
First receiving module is visited for receiving mobile terminal by the data that the network of mobile communication carrier accesses network It asks request, includes the communication identifier of the mobile terminal in the data access request, the communication identifier has online and exempts to flow Measure permission;
Second obtains module, for being obtained from Resource Server according to the data access request from mobile terminal Corresponding requested date, and the requested date is whole to the movement by the network transmission of mobile communication carrier End;
Wherein, the communication data during the mobile terminal network visiting is being flowed through positioned at the mobile terminal and described When the gateway of the mobile communication carrier between proxy server, if exempting from flux scale comprising online in the communication data Know, then the communication data will be completely or partially included in specified services quotient by the gateway.
Optionally, the proxy server further include:
First sending module is visited for receiving mobile terminal by the data that the network of mobile communication carrier accesses network Before asking request, Xiang Suoshu mobile terminal sends default label, and data biography is carried out during the mobile terminal network visiting The default label is carried when defeated, the default label exempts from flow identifier to be described;Or the proxy server of preset IP address IP address be it is described exempt from flow identifier, first receiving module is for receiving the data access request.
Optionally, the proxy server further includes the second statistical module, for counting institute according to preset measurement period Data traffic information spent by mobile terminal is stated, knows that the mobile terminal has the newest free residual stream for exempting from flow permission Measure information.
Another aspect of the present invention provides a kind of system for accessing network characterized by comprising
Proxy server as described in the above technical scheme;First sending module is for being consumed the mobile terminal The data traffic information of expense is sent to the distribution server;
The distribution server comprises determining that module, for based on data traffic information spent by the mobile terminal, Determine that the mobile terminal has the newest free residual flow information for exempting from flow permission.
Optionally, the proxy server further include:
First judgment module, any data for whether receiving the mobile terminal within a preset period of time, which accesses, asks It asks;And
Cue module, if any data access for being not received by the mobile terminal within a preset period of time is asked It asks, then the mobile terminal is prompted to have dropped out login.
Optionally, the distribution server further include:
Second receiving module, for receiving the communication identifier and authentication information of the mobile terminal;
Authentication module, for communication identifier and the authentication information verifying communication identifier based on the mobile terminal Whether have and exempts from flow permission;
Distribution module, for determine the communication identifier have it is described exempt from flow permission when, for the mobile terminal point With the proxy server.
Optionally, the distribution module includes:
Third obtains module, for obtaining the free residual flow information of the communication identifier;
Second judgment module, for judging the free residual stream of the communication identifier based on the free residual flow information Whether amount is greater than predetermined amount;
The distribution module is used to distribute when the free residual flow is greater than the predetermined amount for the mobile terminal The proxy server.
Optionally, the distribution server further include:
Generation module is sent to the mobile terminal for generating interim verification information, and by the interim verification information And the proxy server;
First receiving module, specifically for receiving the carrying communication identifier, the institute that the mobile terminal is sent to State the data access request of interim verification information;
Described first obtains module, is specifically used for the proxy server by described in the interim verification information verifying When data access request is legal, the requested date is obtained from the Resource Server.
Optionally, the distribution server further include:
Cancellation module, it is described interim for nullifying after the cue module prompts the mobile terminal to have dropped out login Verification information.
Optionally, if the cue module prompts the mobile terminal to have dropped out login, first sending module It is also used to for the starting surf time of the mobile terminal, the data traffic information for terminating surf time and consumption being sent to point Send out server;
The distribution server includes third statistical module, the data traffic for being sent based on first sending module Information counts the free residual flow of the mobile terminal.
Optionally, the distribution server further include:
Second sending module, for, when the free residual flow is greater than the predetermined amount, being in the distribution module The mobile terminal distributes after the proxy server, and the free residual flow information is sent to the agency service Device;
Described second obtains module, specifically for the proxy server after receiving the data access request, Judge whether the newest free residual flow of the mobile terminal is greater than predetermined amount based on the free residual flow information;Institute When stating newest free residual flow information greater than the predetermined amount, the requested date is obtained from the Resource Server.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
A kind of flow statistical method according to the present invention, the network that available mobile terminal passes through mobile communication carrier Access network development process in communication data, detection in the communication data whether comprising online exempt from flow identifier, if comprising, Exempt from flow identifier based on the online, the corresponding data traffic of the communication data is completely or partially included in specified services quotient In.In mobile terminal network visiting, consuming is the data traffic for specifying service provider, the number without expending mobile terminal According to flow, thus solves the technical issues of needing to expend the flow of mobile terminal when accessing network in the prior art, reach Mobile terminal exempts from the technical effect of flow access network;Thus, mobile terminal is without paying campus network, it will be able to which realization exempts to flow The technical effect of amount downloading Web content.Thereby, it is possible to significantly improve the enthusiasm of user's downloading, to be conducive on internet Web content wide-scale distribution.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of system architecture diagram for accessing network according to an embodiment of the invention;
Fig. 2 shows a kind of exchange method figures for accessing network according to an embodiment of the invention;
Fig. 3 shows the method flow diagram of the statistics flow of gateway side according to an embodiment of the invention;
Fig. 4 shows the access network of proxy server side and the distribution server side according to an embodiment of the invention Method flow diagram;
Fig. 5 shows a kind of gateway figure according to an embodiment of the invention;
Fig. 6 shows a kind of proxy server composition figure according to an embodiment of the invention;
Fig. 7 shows a kind of system composition figure for accessing network according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of flow statistical method and gateways, a kind of method, agency service for accessing network Device and system, when mobile terminal network visiting to solve the prior art, need to expend a large amount of data traffic of mobile terminal Technical problem.
The exchange method for the access network that the embodiment of the present invention is introduced, as shown in Figure 1, be the interaction figure of this method, it should Equipment involved in method includes: mobile terminal, the distribution server, proxy server and Resource Server, wherein mobile terminal Such as are as follows: mobile phone, tablet computer etc., the user of mobile terminal are terminal user;The distribution server is mainly used for moving Dynamic terminal provides authentication, selection proxy server;Proxy server is mainly used for having online and exempting from flow permission Mobile terminal provides network access service;Resource Server is usually provided by internet content provider, for utilizing internet Internet resources provide rich and varied Web content for terminal user, such as: video, webpage, picture etc..
Referring to FIG. 2, the exchange method of the access network the following steps are included:
Step S110: proxy server receives the data that mobile terminal accesses network by the network of mobile communication carrier Access request, includes the communication identifier of mobile terminal in data access request, and communication identifier has online and exempts from flow permission;
Step S120: proxy server obtains phase according to the data access request from mobile terminal, from Resource Server The requested date answered;
Step S130: requested date is transmitted to mobile whole by proxy server by the network of mobile communication carrier End;
Wherein, the communication data during above-mentioned mobile terminal network visiting is being flowed through positioned at mobile terminal and agency service When the gateway of the mobile communication carrier between device, if exempting from flow identifier comprising online in communication data, communication data will be by Gateway is completely or partially included in specified services quotient.
Wherein, as a kind of optional embodiment, before proxy server receives data access request, mobile terminal is needed It is determined as it and proxy server of network access service is provided, wherein mobile terminal can be directly communicated mark and send The distribution server, judges whether the communication identifier has by the distribution server and exempts from flow permission, determines its tool in the distribution server It is not otherwise mobile terminal assignment agent server for when exempting from flow permission, being mobile terminal assignment agent server.
Specifically, gateway first obtains mobile terminal and accesses leading in network development process by the network of mobile communication carrier Letter data, and detect in communication data whether comprising online exempt from flow identifier, if comprising, based on online exempt from flow identifier, The corresponding data traffic of communication data is completely or partially included in specified services quotient, wherein mobile terminal is asked in network development process Communication data include that data access request that mobile terminal is sent to proxy server and proxy server are sent out to mobile terminal The requested date sent.And from safety considerations, above-mentioned communication data is transmitted using cipher mode, and gateway can be from communication It is obtained on predeterminated position in data and exempts from flow identifier ciphertext, and be decrypted to flow identifier ciphertext is exempted from, obtain exempting from flux scale Know in plain text, then judge whether exempt from flow identifier in plain text is to preset to exempt from flow identifier, if it is, determining in communication data comprising upper Net exempts from flow identifier.
And the communication identifier of mobile terminal is falsely used in order to prevent, improves the safety of network access, as a kind of optional Embodiment, determine the process of proxy server with continued reference to FIG. 2, the following steps are included:
Step S101: the communication identifier and authentication information of the distribution server reception mobile terminal;
Step S102: communication identifier and authentication information verifying communication identifier of the distribution server based on mobile terminal are It is no have exempt from flow permission;
Step S103: the distribution server determine communication identifier have exempt from flow permission when, be mobile terminal assignment agent Server.
For example, before step S101, mobile terminal can by first pass through in advance registration etc. in a manner of the distribution server bind The communication identifier of mobile terminal, such as: mobile terminal can exempt from traffic service, the distribution server to the distribution server application first After receiving the application of mobile terminal, according to some prerequisites (such as: initiate this application software whether be make a reservation for it is soft Part, the mobile terminal whether used predetermined software, the communication identifier whether specified services quotient registration etc.) determine whether to Flow permission is exempted from the communication identifier distribution of the mobile terminal, if the distribution server, which is determined, exempts from flow power to mobile terminal distribution Limit, then the distribution server can send a UserKey (user password) to mobile terminal and be used as authentication information;Further , the distribution server can then give communication identifier to guarantee that the communication identifier of mobile terminal is not falsely used by other users first An identifying code is sent, after the user of mobile terminal successfully fills in the identifying code, just gives mobile terminal distribution authentication letter Breath;In addition, the access network development process for mobile terminal provide exempt from stream service when, can be not present flow restriction, can also deposit In flow restriction, accumulated in access network development process using more wherein being referred to there is no flow restriction regardless of the mobile terminal Few flow, exempts from flow permission to its offer as long as meeting the requirement for exempting from stream;There are flow restrictions to refer to for movement end It holds and distributes particular flow rate in every section of predetermined time, if mobile terminal, which accumulates the total flow used in access network development process, not to be had Beyond the particular flow rate, then its meet exempt from traffic requirement in the case where, exempt from flow permission to its distribution, and if mobile terminal The total flow used in access network development process is more than particular flow rate, then does not exempt from flow permission to its distribution, such as;For shifting Dynamic terminal can be with the free flow of a month distribution 30M, the free flow of 50M etc..
If mobile terminal needs to access network in turn, such as: detect that the user of mobile terminal starts the behaviour of browser Make, then the communication identifier of oneself and authentication information can be sent to the distribution server by mobile terminal.
In addition, the distribution server provided for mobile terminal network visiting process exempt from stream service when, flow can be not present Limitation, there may also be flow restrictions, wherein there is no flow restrictions to refer to regardless of the mobile terminal is in access network development process Middle accumulation uses how many flow, exempts to exempt from flow permission to its offer as long as stream requires as long as meeting, such as: the distribution server can be Certain mobile terminals device identification (such as: particular vendors production mobile terminal, use the shifting of certain types of operating system Dynamic terminal etc.) setting VIP identity, and then the device identification that is supplied to these mobile terminals is endless exempts to flow;And it is directed to non-VIP User may exist flow restriction, and there are flow restrictions to refer to for the specific stream of distribution in every section of predetermined time of the mobile terminal Amount meets if mobile terminal accumulates the total flow that uses without departing from the particular flow rate in access network development process at it In the case where exempting from stream requirement, exempt from flow permission to its distribution, and if mobile terminal is total used in access network development process Flow is more than particular flow rate, then does not exempt from flow permission to its distribution, such as;It can be exempted from for mobile terminal with a month distribution 30M Take free flow of flow, 50M etc..
In an alternative embodiment, if the distribution server distributes to the free flow of mobile terminal, there are Flow Limits System, then the user of mobile terminal can also obtain the data traffic of the distribution server reward by some activities, such as: movement is eventually Endpoint hits pre-determined advertisement, click predetermined webpage, the predetermined APP of downloading etc., and in this case, the distribution server, which can increase, is The data traffic of mobile terminal distribution, such as: 30M, 40M etc..
In step S102, the authentication information for the communication identifier that the distribution server judgement receives is led to this prestored Whether the authentication information that beacon is known matches, and if matching, illustrates that corresponding mobile terminal has and exempts from flow permission, Otherwise illustrate that corresponding mobile terminal does not have and exempt from flow permission.
In step S103, if the flow permission of exempting from that the distribution server is mobile terminal distribution does not have flow restriction, divide Hair server can directly be its assignment agent server after determining that mobile terminal has and exempts from flow permission, and if The distribution server is that the flow permission of exempting from of mobile terminal distribution has flow restriction, then the distribution server is determining mobile terminal tool It is standby exempt from flow permission after, it is also necessary to judge its residual flow whether more than one threshold value, just give shifting when being more than this threshold value Dynamic terminal distribution proxy server, treatment process is specifically includes the following steps: the distribution server acquisition communication identifier uses and refers to The charging mode for determining service provider carries out the free residual flow information of charging;Communication identifier is judged based on free residual flow information Free residual flow whether be greater than predetermined amount (threshold value of such as front);When free residual flow is greater than predetermined amount, for movement Terminal distribution proxy server.
Under normal conditions, one of the effect of the distribution server is exactly to count the free residual flow information of communication identifier, in advance If amount is for example are as follows: 0M, 1M, 512K etc. illustrate under normal conditions, to be somebody's turn to do if free residual flow is greater than predetermined amount Exempting from stream residual flow can satisfy the access of this network, so its assignment agent server can be given;And if free residual stream Amount then illustrates under normal conditions that it is impossible to meet the access of this network for the free residual flow no more than if predetermined amount, so Do not give its assignment agent server.
Wherein, the distribution server can be selected when giving mobile terminal assignment agent server from multiple proxy servers It selects the proxy server nearest apart from mobile terminal physical position and distributes to that mobile terminal, also to can choose network load most light The proxy server that proxy server distributes to mobile terminal or selects network delay minimum distributes to mobile terminal etc. Deng, or comprehensively considered using at least two strategies in above-mentioned multiple distribution policies to select, the distribution server is used Which kind of mode is mobile terminal assignment agent server, and the embodiment of the present invention no longer itemizes, and with no restriction.
Wherein, as a kind of optional embodiment, there is no flow restriction in the flow permission of exempting from for mobile terminal distribution In the case where, if mobile terminal, which has, exempts from flow permission, interim verification information (token) use is can be generated in the distribution server In this network access procedure of mobile terminal;Or there are flow restrictions in the flow permission of exempting from for mobile terminal distribution In the case where, if mobile terminal has and exempts from flow permission and mobile terminal has free residual flow, the distribution server Interim verification information can be generated.
In addition, the distribution server is needed some numbers in order to guarantee that subsequent movement terminal can be connected to proxy server According to proxy server is sent to, four kinds of data therein are set forth below and are introduced, it is certainly, in the specific implementation process, unlimited In following four situation.1. the communication identifier of mobile terminal is sent to proxy server by the distribution server;2. the distribution server The communication identifier of mobile terminal, interim verification information are sent to proxy server;3. the distribution server is led to mobile terminal Beacon is known, free residual flow is sent to proxy server;4. the distribution server is by the communication identifier of mobile terminal, free remaining Flow, interim verification information are sent to proxy server.
In addition, the address information of proxy server is also required to be supplied to mobile terminal, wherein the address of proxy server is believed Breath can be sent directly to mobile terminal by the distribution server;It can also be by proxy server in the communication for receiving mobile terminal After mark, mobile terminal is sent it to by the communication identifier of mobile terminal.Step S104 as shown in Figure 2, for by dividing The process for the mobile terminal that the address information of proxy server is sent to by hair server.
After completing above-mentioned preparation, in step S110, if the distribution server in step S101~S103 simultaneously Interim verification information is not distributed for this network access procedure, then mobile terminal will directly carry the data access for exempting from flow identifier Request is sent to proxy server;If the distribution server is assigned in step S101~S103 for this network access procedure Interim verification information, then mobile terminal will flow identifier be exempted from carrying, the data access request of interim verification information is sent to agency Server.
Wherein, exempt from flow identifier can for it is a variety of it is various forms of exempt from flow identifier, be set forth below it is therein two kinds progress It introduces, certainly, in the specific implementation process, is not limited to following two situation.
1. proxy server is after receiving the communication identifier of mobile terminal of the distribution server transmission and is receiving Before the data access request that mobile terminal is sent, default label is sent to mobile terminal, in mobile terminal network visiting process In default label is carried when carrying out data transmission, default label is to exempt from flow identifier.
2. the distribution server is that the IP address of the proxy server of mobile terminal distribution is preset IP address, preset IP address As this exempts from flow identifier.
In step S120, proxy server can be just straight after the data access request for receiving mobile terminal transmission It connects from Resource Server and obtains corresponding requested date, and based on the difference sent before the distribution server to proxy server Information, proxy server can also first carry out some verification process, and three kinds of verification process therein are set forth below and are introduced, when So, in the specific implementation process, following three kinds of situations are not limited to.
1. the data that the distribution server is sent to proxy server include that the communication identifier of mobile terminal and interim verifying are believed Breath, in this case, the data access request that mobile terminal is sent also can include interim verification information, then proxy server exists When legal by interim verification information verify data access request, requested date is obtained from Resource Server.Wherein, agency's clothes Business device matches the interim verification information that mobile terminal is sent and the interim verification information that the distribution server is sent, if matching If success, then illustrates that the data access request is legal, otherwise illustrate that the data access request is illegal.Through the above scheme can Enough guarantee the safety of this network access procedure.
2. the distribution server be sent to proxy server data include mobile terminal communication identifier and free residual stream Information is measured, then proxy server is primarily based on free residual flow information judgement movement after receiving data access request Whether the newest free residual flow of terminal is greater than predetermined amount;When newest free residual flow information is greater than predetermined amount, from money Source server obtains requested date, and if newest free residual flow information is not more than predetermined amount, inform mobile terminal, Allow mobile terminal by other access path access Resource Server (such as: directly by data access request be sent to resource clothes Business device).Through the above scheme, specified services quotient can be made to provide the free data flow of specific quantity to mobile terminal.
Wherein, if judging that the free residual flow of mobile terminal was greater than predetermined amount in the distribution server, clothes are acted on behalf of Device be engaged in when receiving data access request for the first time, does not need to judge newest free residual flow (namely the distribution server hair The free residual flow sent) whether it is greater than predetermined amount;But the data traffic of this network access request consuming is directly counted, so It is subtracted into the data traffic from the free residual flow that the distribution server is sent afterwards, then available newest free data stream Amount;It can be determined whether by judging whether newest free data flow is greater than predetermined amount by data access request in subsequent It is sent to Resource Server.
In addition, proxy server can also the data traffic letter according to spent by preset measurement period statistics mobile terminal Breath, knows that mobile terminal has the newest free residual flow information for exempting from flow permission.
For example, preset measurement period is for example are as follows: preset statistics time interval, preset statistics time interval example Timer can be set in for example 30s, 50s, 1min etc., proxy server, and every prefixed time interval just obtains its statistics Mobile terminal data traffic spent in current time interval, and mobile terminal is obtained most based on the data flux statistics New free residual flow information.
Preset measurement period in another example are as follows: preset statistics flow, preset statistics flow are 512k, 1M etc., generation Reason server can be monitored data traffic spent by the mobile terminal, every to expend preset statistics flow, then basis The preset statistics flow determines the newest free residual flow information of mobile terminal.
Through the above scheme, it can guarantee the newest residual flow information for obtaining mobile terminal in time.
Certainly, proxy server, can also after measurement period counts data traffic information spent by mobile terminal To be sent to the distribution server, the newest free residual flow information of mobile terminal is counted by the distribution server.
Wherein, it after the distribution server obtains data traffic information spent by mobile terminal, can also be sent to move Dynamic terminal is informed in mobile terminal enquiry;Or the distribution server is in the newest free residue for determining mobile terminal After flow information, mobile terminal can also be sent it to, so enable mobile terminal to present flow rate service condition into And a understanding, then select preferable network access policies.Or it is informed in mobile terminal enquiry.
3. the data that the distribution server is sent to proxy server include the communication identifier of mobile terminal, free residual flow Information and interim verification information, in this case, then proxy server is verifying the visit of this data by interim verification information It asks and legal and newest free residual flow information is requested to be greater than predetermined amount, requested date is obtained using Resource Server.Pass through The program can either guarantee the safety of this network access procedure, and can guarantee that specified services quotient only provides to mobile terminal The free flow of predetermined amount.
In step S130, the data during mobile terminal network visiting include upstream data and downlink data, wherein on Row data are the data (namely data access request) that Resource Server is sent to by mobile terminal, and downlink data is by providing Source server is sent to the data (namely requested date) of mobile terminal, wherein at least one in upstream data and downlink data The data traffic of kind data is counted into the data traffic of given server consumption.
For example, comprising exempting from flow identifier, the data access request in the data access request that the mobile terminal is sent Corresponding data traffic is exempted from flow identifier based on described in and is included in the specified services quotient;Exempt from flow another example is: carrying The data access request of mark is sent to after Resource Server, also can be comprising exempting from flux scale in the requested date returned Know, so the data traffic of requested date by based on exempt from flow identifier be included in given server consume data traffic in.
In the specific implementation process, it can be counted by the gateway being set between mobile mobile terminal and proxy server Data traffic in network access procedure.
It is corresponding gateway (or the charge system being connected with corresponding network) In the case where presetting IP for flow identifier is exempted from After the data access request for receiving mobile terminal transmission, the IP of next node corresponding to the data access request is judged Whether it is default IP, if it is default IP, its data traffic is included in the data traffic of specified services quotient, corresponding gateway (or The charge system that person is connected with corresponding network) after the requested date for receiving proxy server transmission, judge the agency Whether the IP of server is to preset IP its data traffic is included in the data traffic of specified services quotient if it is default IP;Needle It is in the case where presetting label to flow identifier is exempted from, corresponding gateway (or the charge system being connected with corresponding network) is receiving After the data access request (or the requested date for receiving proxy server transmission) that mobile terminal is sent, it is judged as this Whether comprising default label in data access request (or requested date), if comprising presetting label, by its data flow Meter enters the data traffic of specified services quotient.
In the specific implementation process, mobile terminal accesses the partial data stream generated in network development process by proxy server Amount is exempted from flow identifier based on described in by Mobile Network Operator and is included in specified services quotient, may exist a variety of situations, under Face is enumerated three kinds therein and is introduced, and certainly, in the specific implementation process, is not limited to following three kinds of situations.
The first, the data traffic of special ratios is counted into the specified services during the mobile terminal network visiting Quotient.
For example, special ratios are for example are as follows: 50%, 70% etc., wherein have during mobile terminal network visiting It is standby when exempting from flow permission (such as: data transmission, which carries, exempts from flow identifier), corresponding gateway (or the charging being connected with corresponding network System) its special ratios is included in specified services quotient, and remaining ratio is included in the communication identifier, and such as: assuming that this net Mobile terminal expends the flow of 10M, special ratios altogether in network access process are as follows: and 50%, then charge system is in charging, by 5M's Flow is included in specified services quotient, and the flow of remaining 5M is included in the communication identifier of the mobile terminal.Certainly, above data is only As an example, it is not intended as limiting.
Second, certain amount of data traffic is counted into the specified services during the mobile terminal network visiting Shang Zhong.
For example, specific quantity is for example are as follows: 10M, 20M etc., wherein have during mobile terminal network visiting When exempting from flow permission, corresponding gateway (or the charge system being connected with corresponding network) terminates it in this access network development process Afterwards, whether the data traffic for judging this access network development process is more than the specific quantity, if being not above, will be owned Data traffic be all included in specified services quotient;If it exceeds will then be not above the data traffic of part if specific quantity It is included in specified services quotient, overage is included in the communication identifier of the mobile terminal.
The third, the data traffic of specific content is counted into the specified services during the mobile terminal network visiting Quotient.
For example, specific content is for example are as follows: text, picture etc., wherein have during mobile terminal network visiting For when exempting from flow permission, corresponding gateway (or the charge system being connected with corresponding network) obtains what access network development process was transmitted Data, then determine the data such as text, picture from the data transmitted of access network development process, and by its corresponding data flow Meter enters in specified services quotient;And it is directed to other kinds of content, and such as: its corresponding data traffic is then included in shifting by video In the communication identifier of dynamic terminal.
It is described to be included in specified services quotient as a kind of possible implementation, comprising: to generate corresponding data flow Expense is calculated as the expense of the account consumption of specified services quotient.
For example, since corresponding data flow has been included in specified services quotient, and mobile communication carrier will not be directed to Primary network access process carries out repetition charging, so corresponding data traffic will not be counted into the mark of the mobile terminal, because , in mobile communication carrier's charging, the expense that can be generated is calculated as the expense of the account consumption of specified services quotient for this, thus It charges to specified services quotient.
As a kind of optional embodiment, with continued reference to FIG. 2, method further include:
Step S140: whether proxy server judgement receives any data access of mobile terminal within a preset period of time Request;
Step S150: it if being not received by any data access request of mobile terminal within a preset period of time, mentions Show that mobile terminal has dropped out login.
For example, preset time period is for example are as follows: 10min, 30min, 40min etc., if proxy server is default The arbitrary data access request that mobile terminal transmission is not received in period then illustrates that this time network accessed mobile terminal Journey is over, so can produce a corresponding prompt information.Further, proxy server is generating the prompt information Later, which can also be sent to the distribution server.
In this case, if the distribution server is that this network access procedure distributed interim verification information before Words, then the distribution server nullifies interim verification information based on the prompt information that proxy server is sent, in addition, proxy server Nullify interim verification information.With this solution, it can guarantee that the interim verification information distributed can only be accessed as this network The verification information of process, next interim verification information network access or need generation new, to improve the peace of network access Quan Xing.
As a kind of optional embodiment, if proxy server prompting mobile terminal has dropped out login, please continue to refer to Fig. 2, method further include:
Step S160: proxy server by the starting surf time of mobile terminal, terminate the number of surf time and consumption The distribution server is sent to according to flow information;
Step S170: the distribution server remains the free of mobile terminal based on the data traffic information that proxy server is sent Residual current amount is counted.
For example, proxy server can send information as shown in Table 1 to the distribution server:
Table 1
Assuming that the distribution server is total free data flow of mobile terminal distribution are as follows: 30M, and the mobile terminal exists 20M flow has been consumed before the access of this network, then can determine that the mobile terminal was accessed by this network Free residual flow after journey are as follows: 10M-1.6M=8.4M.Certainly, above data flow is not intended as just citing Limitation.
Based on the exchange method for accessing network provided by the embodiment of the present invention, the embodiment of the present invention also provides another stream Statistical method is measured, this method is applied to gateway, referring to FIG. 3, this method comprises:
Step S201: the communication number in the network access network development process that mobile terminal passes through mobile communication carrier is obtained According to;
Step S202: whether detection includes that flow identifier is exempted from online in communication data;
Step S203: if comprising exempting from flow identifier based on online, by the corresponding data traffic whole of communication data or portion Divide and is included in specified services quotient.
As a kind of optional embodiment, communication data division is included in specified services quotient, comprising: will be in communication data The data traffic of special ratios is counted into specified services quotient;Or data traffic certain amount of in communication data is counted into finger Determine in service provider;Or the data traffic of communication data specific content is counted into specified services quotient.
It as a kind of optional embodiment, is included in specified services quotient, comprising: the expense meter for generating corresponding data flow The expense consumed for the account of specified services quotient.
As a kind of optional embodiment, communication data, comprising: the data access that mobile terminal is sent to proxy server Request;And the requested date that proxy server is sent to mobile terminal, requested date are that proxy server takes from resource The data corresponding with data access request that business device obtains.
As a kind of optional embodiment, the corresponding data traffic of communication data is completely or partially counted in step S203 Enter in specified services quotient, comprising: comprising based on flow identifier is exempted from, data being visited when exempting from flow identifier in data access request Ask that the corresponding data traffic of request is completely or partially included in specified services quotient;And/or comprising exempting to flow in requested date When amount mark, based on flow identifier is exempted from, the data traffic of requested date is completely or partially included in given server consumption In data traffic.
As a kind of optional embodiment, flow identifier is exempted from online, comprising: proxy server sends pre- to mobile terminal Bidding label;Alternatively, the IP address of the proxy server of preset IP address.
As a kind of optional embodiment, the corresponding data traffic of communication data is completely or partially counted in step S203 Enter in specified services quotient, comprising: when in determining communication data comprising default label, by the corresponding data traffic of communication data Completely or partially it is included in specified services quotient;Or communication data passes through the proxy server of preset IP address, it is default by flowing through The corresponding data traffic of the communication data of IP address is completely or partially included in specified services quotient.
As a kind of optional embodiment, whether detection includes that flux scale is exempted from online in communication data in step S202 Know, comprising: obtained from the predeterminated position in communication data and exempt from flow identifier ciphertext, and solved to flow identifier ciphertext is exempted from It is close, obtain exempting from flow identifier in plain text;Whether it is to preset to exempt from flow identifier that judgement exempts from flow identifier in plain text, if it is, determining logical Exempt from flow identifier comprising online in letter data.
The distribution server and proxy server that the embodiment of the present invention is introduced can be completely independent for two physical locations Server;Or two different function modules of same server, with no restriction to this embodiment of the present invention.
Based on the exchange method for accessing network provided by the embodiment of the present invention, the embodiment of the present invention provides another access The method of network, this method are applied to proxy server and the distribution server, referring to FIG. 4, this method comprises:
Step S301: proxy server receives the data that mobile terminal accesses network by the network of mobile communication carrier Access request, includes the communication identifier of mobile terminal in data access request, and communication identifier has online and exempts from flow permission;
Step S302: proxy server obtains phase according to the data access request from mobile terminal, from Resource Server The requested date answered, and requested date is passed through into the network transmission of mobile communication carrier to mobile terminal;
Wherein, the communication data during mobile terminal network visiting flow through positioned at mobile terminal and proxy server it Between mobile communication carrier gateway when, if in communication data comprising online exempt from flow identifier, communication data will be by gateway Completely or partially it is included in specified services quotient.
As a kind of optional embodiment, gateway is based on exempting from flow identifier, by the corresponding data traffic part of communication data It is included in specified services quotient, comprising: gateway is based on exempting from flow identifier, by the corresponding certain amount of data flow meter of communication data Enter in data traffic spent by specified services quotient.
As a kind of optional embodiment, gateway is based on exempting from flow identifier, and the corresponding data traffic of communication data is whole Or part is included in specified services quotient, comprising: includes net when exempting from flow identifier in the data access request that mobile terminal is sent It closes based on flow identifier is exempted from, data traffic corresponding to data access request is completely or partially included in specified services quotient;With/ Or, gateway is based on exempting from flow identifier, and the data traffic of requested date is complete comprising exempting from flow identifier in requested date Portion or part are included in the data traffic of given server consumption.
As a kind of optional embodiment, mobile terminal is received based on step S301 proxy server and is transported by mobile communication It seeks before the data access request of network access network of quotient, further includes: proxy server sends default label to mobile terminal, Default label is carried when carrying out data transmission during mobile terminal network visiting, default label is to exempt from flow identifier;Alternatively, The IP address of the proxy server of preset IP address is to exempt from flow identifier, proxy server access request for receiving data.
As a kind of optional embodiment, gateway is based on exempting from flow identifier for the data during mobile terminal network visiting Flow is completely or partially included in specified services quotient, comprising: gateway includes pre- bidding in determining the data in communication data When label, the corresponding data traffic of communication data is completely or partially included in specified services quotient;Or communication data is by default IP The communication data corresponding data flow for flowing through preset IP address is completely or partially included in specified by the proxy server of address, gateway In service provider.
As a kind of optional embodiment, this method further include:
Proxy server data traffic information according to spent by preset measurement period statistics mobile terminal, knows movement Terminal has the newest free residual flow information for exempting from flow permission.
As a kind of optional embodiment, method further include: proxy server is by data flow spent by mobile terminal Amount information is sent to the distribution server;
The distribution server is determined that mobile terminal has and is exempted from flow permission based on data traffic information spent by mobile terminal Newest free residual flow information.
As a kind of optional embodiment, this method further include: whether proxy server judgement connects within a preset period of time Receive any data access request of mobile terminal;And if it is not received by any of mobile terminal within a preset period of time Data access request, then prompting mobile terminal has dropped out login.
As a kind of optional embodiment, this method further include: the distribution server receive mobile terminal communication identifier and Authentication information;Whether communication identifier and authentication information verifying communication identifier of the distribution server based on mobile terminal have It is standby to exempt from flow permission;The distribution server determine communication identifier have exempt from flow permission when, be the service of mobile terminal assignment agent Device.
As a kind of optional embodiment, this method further include: the distribution server exempts from flow determining that communication identifier has It is mobile terminal assignment agent server when permission, comprising: the distribution server obtains the free residual flow letter of communication identifier Breath;The distribution server judges whether the free residual flow of communication identifier is greater than predetermined amount based on free residual flow information;Point Server is sent out when free residual flow is greater than predetermined amount, is mobile terminal assignment agent server.
As a kind of optional embodiment, this method further include: the distribution server generates interim verification information, and will be interim Verification information is sent to mobile terminal and proxy server;Receive the data access request of mobile terminal, comprising: agency service Device receives the data access request for carrying communication identifier, interim verification information that mobile terminal is sent to;It is obtained from Resource Server Take corresponding requested date, comprising: proxy server when legal by interim verification information verify data access request, from Resource Server obtains requested date.
As a kind of optional embodiment, this method further include: have dropped out login in proxy server prompting mobile terminal Afterwards, the distribution server nullifies interim verification information.
As a kind of optional embodiment, this method further include: stepped on if proxy server prompting mobile terminal has dropped out Record, then further include: proxy server by the starting surf time of mobile terminal, terminate the data traffic of surf time and consumption Information is sent to the distribution server;
The data traffic information that the distribution server is sent based on proxy server to the free residual flow of mobile terminal into Row statistics.
As a kind of optional embodiment, this method further include: the distribution server is greater than predetermined amount in free residual flow When, for after mobile terminal assignment agent server, further includes: free residual flow information is sent to agency by the distribution server Server;Obtain corresponding requested date from Resource Server, comprising: proxy server receive data access request it Afterwards, judge whether the newest free residual flow of mobile terminal is greater than predetermined amount based on free residual flow information;Exempt from newest When taking residual flow information greater than predetermined amount, requested date is obtained from Resource Server.
Based on the exchange method of mobile terminal network visiting provided by the embodiment of the present invention, the embodiment of the present invention provides one Kind gateway, as shown in Figure 5, comprising:
First obtains module 41, is accessed in network development process for obtaining mobile terminal by the network of mobile communication carrier Communication data;
Whether detection module 42 includes that flow identifier is exempted from online in communication data for detecting;
First statistical module 43, if for comprising exempting from flow identifier based on online, by the corresponding data flow of communication data Amount is all or part of to be included in specified services quotient.
As a kind of optional embodiment, which is specifically used for:
The data traffic of special ratios in communication data is counted into specified services quotient;Or
Data traffic certain amount of in communication data is counted into specified services quotient;Or
The data traffic of communication data specific content is counted into specified services quotient.
As a kind of optional embodiment, this is included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
As a kind of optional embodiment, the communication data, comprising:
The data access request that mobile terminal is sent to proxy server;And
The requested date that proxy server is sent to mobile terminal, requested date are proxy server from resource service The data corresponding with data access request that device obtains.
As a kind of optional embodiment, which is specifically used for:
In data access request comprising exempt from flow identifier when, will be corresponding to data access request based on flow identifier is exempted from Data traffic be completely or partially included in specified services quotient;And/or
It include when exempting from flow identifier, based on flow identifier is exempted from, by the data traffic of requested date in requested date It is completely or partially included in the data traffic of given server consumption.
As a kind of optional embodiment, which exempts from flow identifier, comprising:
The default label that proxy server is sent to mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
Optionally, the first statistical module 43 is also used to:
When in determining communication data comprising default label, the corresponding data traffic of communication data is completely or partially counted Enter in specified services quotient;Or
Communication data passes through the proxy server of preset IP address, the corresponding number of communication data that will flow through preset IP address It is completely or partially included in specified services quotient according to flow.
As a kind of optional embodiment, which is specifically used for obtaining from the predeterminated position in communication data Exempt from flow identifier ciphertext, and be decrypted to flow identifier ciphertext is exempted from, obtains exempting from flow identifier in plain text;It is bright that flow identifier is exempted from judgement Whether text is to preset to exempt from flow identifier, exempts from flow identifier comprising online if it is, determining in communication data.
Based on the exchange method of mobile terminal network visiting provided by the embodiment of the present invention, the embodiment of the present invention provides one Kind proxy server, as shown in Figure 6, comprising:
First receiving module 51 passes through the data of the network access network of mobile communication carrier for receiving mobile terminal Access request, includes the communication identifier of mobile terminal in data access request, and communication identifier has online and exempts from flow permission;
Second obtains module 52, for obtaining phase from Resource Server according to the data access request from mobile terminal The requested date answered, and requested date is passed through into the network transmission of mobile communication carrier to mobile terminal;
Wherein, the communication data during mobile terminal network visiting flow through positioned at mobile terminal and proxy server it Between mobile communication carrier gateway when, if in communication data comprising online exempt from flow identifier, communication data will be by gateway Completely or partially it is included in specified services quotient.
As a kind of optional embodiment, the proxy server further include:
First sending module is visited for receiving mobile terminal by the data that the network of mobile communication carrier accesses network Before asking request, default label, carrying when carrying out data transmission during mobile terminal network visiting are sent to mobile terminal Default label, default label are to exempt from flow identifier;Or the IP address of the proxy server of preset IP address is to exempt from flow identifier, First receiving module 51 access request for receiving data.
As a kind of optional embodiment, which further includes the second statistical module, for according to preset system Data traffic information spent by period statistics mobile terminal is counted, knows that mobile terminal has and exempts from the newest free surplus of flow permission Remaining flow information.
Based on the exchange method of mobile terminal network visiting provided by the embodiment of the present invention, the embodiment of the present invention provides one The system of kind access network, as shown in fig. 7, comprises:
Proxy server 6a as described in above-described embodiment;First sending module is used for data spent by mobile terminal Flow information is sent to the distribution server 6b;
The distribution server 6b comprises determining that module 61, for determining based on data traffic information spent by mobile terminal Mobile terminal has the newest free residual flow information for exempting from flow permission.
As a kind of optional embodiment, proxy server 6a further include:
First judgment module, for whether receiving any data access request of mobile terminal within a preset period of time; And
Cue module, if any data access request for being not received by mobile terminal within a preset period of time, Then prompting mobile terminal has dropped out login.
As a kind of optional embodiment, the distribution server 6b further include:
Second receiving module, for receiving the communication identifier and authentication information of mobile terminal;
Authentication module, for based on mobile terminal communication identifier and authentication information verifying communication identifier whether have Exempt from flow permission;
Distribution module, for determine communication identifier have exempt from flow permission when, be mobile terminal assignment agent server 6a。
As a kind of optional embodiment, which includes:
Third obtains module, for obtaining the free residual flow information of communication identifier;
Second judgment module, for judging whether the free residual flow of communication identifier is big based on free residual flow information In predetermined amount;
Distribution module is used for when free residual flow is greater than predetermined amount, is mobile terminal assignment agent server 6a.
As a kind of optional embodiment, the distribution server 6b further include:
Generation module is sent to mobile terminal and agency for generating interim verification information, and by interim verification information Server 6a;
First receiving module 51, specifically for receiving carrying communication identifier, the interim verification information that mobile terminal is sent to Data access request;
First obtains module 41, is specifically used for proxy server 6a and is passing through interim verification information verify data access request When legal, requested date is obtained from Resource Server.
As a kind of optional embodiment, the distribution server 6b further include:
Cancellation module, for nullifying interim verification information after cue module prompting mobile terminal has dropped out login.
As a kind of optional embodiment, if being somebody's turn to do cue module prompting mobile terminal has dropped out login, first is sent Module is also used to for the starting surf time of mobile terminal, the data traffic information for terminating surf time and consumption being sent to point Send out server 6b;
The distribution server 6b includes third statistical module, the data traffic information pair for being sent based on the first sending module The free residual flow of mobile terminal is counted.
As a kind of optional embodiment, the distribution server 6b further include:
Second sending module, for, when free residual flow is greater than predetermined amount, being distributed in distribution module for mobile terminal After proxy server 6a, free residual flow information is sent to proxy server 6a;
Second obtains module 52, specifically for proxy server 6a after receiving data access request, based on free Residual flow information judges whether the newest free residual flow of mobile terminal is greater than predetermined amount;Believe in newest free residual flow When breath is greater than predetermined amount, requested date is obtained from Resource Server.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
A kind of flow statistical method according to the present invention, the network that available mobile terminal passes through mobile communication carrier Access network development process in communication data, detection in the communication data whether comprising online exempt from flow identifier, if comprising, Exempt from flow identifier based on the online, the corresponding data traffic of the communication data is completely or partially included in specified services quotient In.In mobile terminal network visiting, consuming is the data traffic for specifying service provider, the number without expending mobile terminal According to flow, thus solves the technical issues of needing to expend the flow of mobile terminal when accessing network in the prior art, reach Mobile terminal exempts from the technical effect of flow access network;Thus, mobile terminal is without paying campus network, it will be able to which realization exempts to flow The technical effect of amount downloading Web content.Thereby, it is possible to significantly improve the enthusiasm of user's downloading, to be conducive on internet Web content wide-scale distribution.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, In Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of flow statistical method characterized by comprising
Obtain the communication data in the network access network development process that mobile terminal passes through mobile communication carrier;
Whether detection includes that flow identifier is exempted from online in the communication data;
If comprising exempting from flow identifier based on the online, by the corresponding data traffic whole of the communication data or portion Divide and is included in specified services quotient.
A2, method as described in a1, which is characterized in that it is described that the communication data division is included in specified services quotient, Include:
The data traffic of special ratios in the communication data is counted into the specified services quotient;Or
Data traffic certain amount of in the communication data is counted into the specified services quotient;Or
The data traffic of the communication data specific content is counted into the specified services quotient.
A3, method as described in a1, which is characterized in that described to be included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
A4, method as described in a1, which is characterized in that the communication data, comprising:
The data access request that the mobile terminal is sent to the proxy server;And
The requested date that the proxy server is sent to the mobile terminal, the requested date are the agency The data corresponding with the data access request that server is obtained from Resource Server.
A5, the method as described in A3, which is characterized in that described by the corresponding data traffic whole of the communication data or portion Divide and be included in specified services quotient, comprising:
When exempting from flow identifier comprising described in the data access request, exempt from flow identifier based on described, by the number It is completely or partially included in the specified services quotient according to data traffic corresponding to access request;And/or
When exempting from flow identifier comprising described in the requested date, exempts from flow identifier based on described, asked described The data traffic of data is asked completely or partially to be included in the data traffic of the given server consumption.
A6, method as described in a1, which is characterized in that flow identifier is exempted from the online, comprising:
The default label that the proxy server is sent to the mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
A7, method as described in a5, which is characterized in that described by the corresponding data traffic whole of the communication data or portion Divide and be included in specified services quotient, comprising:
It is when in determining the communication data comprising default label, the corresponding data traffic of the communication data is whole Or part is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, will flow through described in the preset IP address The corresponding data traffic of communication data is completely or partially included in the specified services quotient.
A8, the method as described in A1~A7 is any, which is characterized in that it is described detection in the communication data whether include Flow identifier is exempted from online, comprising:
It is obtained from the predeterminated position in the communication data and exempts from flow identifier ciphertext, and exempt from flow identifier ciphertext to described It is decrypted, obtains exempting from flow identifier in plain text;Exempt from described in judgement flow identifier in plain text whether be it is default exempt from flow identifier, if It is, it is determined that exempt from flow identifier comprising the online in the communication data.
B9, a kind of method for accessing network characterized by comprising
Proxy server receives the data access request that mobile terminal accesses network by the network of mobile communication carrier, It include the communication identifier of the mobile terminal in the data access request, the communication identifier has online and exempts from flow permission;
The proxy server obtains corresponding according to the data access request from mobile terminal from Resource Server Requested date, and the requested date is passed through into the network transmission of mobile communication carrier to the mobile terminal;
Wherein, the communication data during the mobile terminal network visiting is being flowed through positioned at the mobile terminal and described When the gateway of the mobile communication carrier between proxy server, if exempting from flux scale comprising online in the communication data Know, then the communication data will be completely or partially included in specified services quotient by the gateway.
B10, the method as described in B9, which is characterized in that further include:
Whether it includes that flow identifier is exempted from the online that the gateway detects in the communication data;
If comprising the gateway exempts from flow identifier based on described, and the corresponding data traffic of the communication data is whole Or part is included in specified services quotient.
The method that B11, such as B10 are stated, which is characterized in that the gateway exempts from flow identifier based on described, by the communication number It is included in specified services quotient according to corresponding data traffic part, comprising:
The gateway exempts from flow identifier described in being based on, and the corresponding certain amount of data traffic of the communication data is included in In data traffic spent by the specified services quotient.
B12, the method as described in B9, which is characterized in that the gateway exempts from flow identifier based on described, by the communication number It is completely or partially included in specified services quotient according to corresponding data traffic, comprising:
When exempting from flow identifier comprising described in the data access request that the mobile terminal is sent, the gateway is based on institute It states and exempts from flow identifier, data traffic corresponding to the data access request is completely or partially included in the specified services quotient In;And/or
Exempt from flow identifier in the requested date comprising described, the gateway exempts from flow identifier based on described, will The data traffic of the requested date is completely or partially included in the data traffic of the given server consumption.
B13, the method as described in B9, which is characterized in that the proxy server receives mobile terminal and passes through mobile communication Before the data access request of the network access network of operator, further includes:
The proxy server sends default label to the mobile terminal, during the mobile terminal network visiting The default label is carried when carrying out data transmission, the default label exempts from flow identifier to be described;Alternatively,
The IP address of the proxy server of preset IP address exempts from flow identifier described in being, the proxy server is for receiving The data access request.
B14, the method as described in B13, which is characterized in that the gateway is based on the flow identifier of exempting from will be described mobile whole Data traffic in end access network development process is completely or partially included in specified services quotient, comprising:
When the gateway includes the default label in determining the data in the communication data, by the communication number It is completely or partially included in specified services quotient according to corresponding data traffic;Or
The communication data passes through the proxy server of the preset IP address, and the gateway will be with will flowing through the default IP The communication data corresponding data flow of location is completely or partially included in the specified services quotient.
B15, the method as described in B9~B14 is any, which is characterized in that the gateway detect in the communication data whether Exempt from flow identifier comprising the online, comprising:
The gateway is obtained from the predeterminated position in the communication data exempts from flow identifier ciphertext, and exempts from flow to described Mark ciphertext is decrypted, and obtains exempting from flow identifier in plain text;
Whether be preset exempt from flow identifier, if it is, described in determining if exempting from flow identifier described in the gateway judgement in plain text Exempt from flow identifier comprising the online in communication data.
B16, the method as described in B9, which is characterized in that further include:
The proxy server according to preset measurement period count the mobile terminal spent by data traffic information, Know that the mobile terminal has the newest free residual flow information for exempting from flow permission.
B17, the method as described in B16, which is characterized in that further include:
Data traffic information spent by the mobile terminal is sent to the distribution server by the proxy server;
The distribution server determines the mobile terminal tool based on data traffic information spent by the mobile terminal The standby newest free residual flow information for exempting from flow permission.
B18, the method as described in any one of B9 to B17, which is characterized in that further include:
Whether the proxy server judgement receives any data access of the mobile terminal within a preset period of time Request;And
If being not received by any data access request of the mobile terminal within a preset period of time, described in prompt Mobile terminal has dropped out login.
B19, the method as described in B9, which is characterized in that further include:
The distribution server receives the communication identifier and authentication information of the mobile terminal;
Communication identifier and authentication information of the distribution server based on the mobile terminal verify the communication mark Know whether to have and exempts from flow permission;
The distribution server determine the communication identifier have it is described exempt from flow permission when, for the mobile terminal point With the proxy server.
B20, the method as described in B19, which is characterized in that the distribution server is determining that the communication identifier has institute It states when exempting from flow permission, distributes the proxy server for the mobile terminal, comprising:
The distribution server obtains the free residual flow information of the communication identifier;
The distribution server judges the free residual flow of the communication identifier based on the free residual flow information Whether predetermined amount is greater than;
The distribution server distributes institute when the free residual flow is greater than the predetermined amount, for the mobile terminal State proxy server.
B21, the method as described in B20, which is characterized in that further include:
The distribution server generates interim verification information, and the interim verification information is sent to the mobile terminal And the proxy server;
The data access request for receiving mobile terminal, comprising: the proxy server receives the mobile terminal hair Send to the carrying communication identifier, the interim verification information the data access request;
It is described to obtain corresponding requested date from Resource Server, comprising: the proxy server faces by described When verification information verify the data access request it is legal when, obtain the requested date from the Resource Server.
B22, the method as described in B18, which is characterized in that prompt the mobile terminal to have dropped out in the proxy server After login, the distribution server nullifies the interim verification information.
B23, the method as described in B18, which is characterized in that if the proxy server prompts the mobile terminal to move back It logs in out, then further include:
The proxy server by the starting surf time of the mobile terminal, terminate the data of surf time and consumption Flow information is sent to the distribution server;
The distribution server exempts from the mobile terminal based on the data traffic information that the proxy server is sent Expense residual flow is counted.
B24, the method as described in B20, which is characterized in that the distribution server is greater than institute in the free residual flow When stating predetermined amount, distributed after the proxy server for the mobile terminal, further includes:
The free residual flow information is sent to the proxy server by the distribution server;
It is described to obtain corresponding requested date from Resource Server, comprising: the proxy server receive it is described After data access request, the newest free residual flow for judging the mobile terminal based on the free residual flow information is It is no to be greater than predetermined amount;When the newest free residual flow information is greater than the predetermined amount, obtained from the Resource Server The requested date.
C25, a kind of gateway characterized by comprising
First obtains module, is accessed in network development process for obtaining mobile terminal by the network of mobile communication carrier Communication data;
Whether detection module includes that flow identifier is exempted from online in the communication data for detecting;
First statistical module, if for comprising, based on it is described online exempt from flow identifier, the communication data is corresponding Data traffic is completely or partially included in specified services quotient.
C26, the gateway as described in C25, which is characterized in that first statistical module is specifically used for:
The data traffic of special ratios in the communication data is counted into the specified services quotient;Or
Data traffic certain amount of in the communication data is counted into the specified services quotient;Or
The data traffic of the communication data specific content is counted into the specified services quotient.
C27, the gateway as described in C25, which is characterized in that described to be included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
C28, the gateway as described in C25, which is characterized in that the communication data, comprising:
The data access request that the mobile terminal is sent to the proxy server;And
The requested date that the proxy server is sent to the mobile terminal, the requested date are the agency The data corresponding with the data access request that server is obtained from Resource Server.
C29, the gateway as described in C28, which is characterized in that first statistical module is specifically used for:
When exempting from flow identifier comprising described in the data access request, exempt from flow identifier based on described, by the number It is completely or partially included in the specified services quotient according to data traffic corresponding to access request;And/or
When exempting from flow identifier comprising described in the requested date, exempts from flow identifier based on described, asked described The data traffic of data is asked completely or partially to be included in the data traffic of the given server consumption.
C30, the gateway as described in C25, which is characterized in that flow identifier is exempted from the online, comprising:
The default label that the proxy server is sent to the mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
C31, the gateway as described in C29, which is characterized in that first statistical module is also used to:
It is when in determining the communication data comprising default label, the corresponding data traffic of the communication data is whole Or part is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, will flow through described in the preset IP address The corresponding data traffic of communication data is completely or partially included in the specified services quotient.
C32, the gateway as described in any claim in C25~31, which is characterized in that the detection module is specifically used for from described It is obtained on predeterminated position in communication data and exempts from flow identifier ciphertext, and the flow identifier ciphertext of exempting from is decrypted, obtained Exempt from flow identifier in plain text;Whether be preset exempt from flow identifier, if it is, determining described logical if exempting from flow identifier described in judgement in plain text Exempt from flow identifier comprising the online in letter data.
D33, a kind of proxy server characterized by comprising
First receiving module is visited for receiving mobile terminal by the data that the network of mobile communication carrier accesses network It asks request, includes the communication identifier of the mobile terminal in the data access request, the communication identifier has online and exempts to flow Measure permission;
Second obtains module, for being obtained from Resource Server according to the data access request from mobile terminal Corresponding requested date, and the requested date is whole to the movement by the network transmission of mobile communication carrier End;
Wherein, the communication data during the mobile terminal network visiting is being flowed through positioned at the mobile terminal and described When the gateway of the mobile communication carrier between proxy server, if exempting from flux scale comprising online in the communication data Know, then the communication data will be completely or partially included in specified services quotient by the gateway.
D34, the proxy server as described in D33, which is characterized in that the proxy server further include:
First sending module is visited for receiving mobile terminal by the data that the network of mobile communication carrier accesses network Before asking request, Xiang Suoshu mobile terminal sends default label, and data biography is carried out during the mobile terminal network visiting The default label is carried when defeated, the default label exempts from flow identifier to be described;Or the proxy server of preset IP address IP address be it is described exempt from flow identifier, first receiving module is for receiving the data access request.
D35, the proxy server as described in D33, which is characterized in that the proxy server further includes the second statistics mould Block, for according to preset measurement period count the mobile terminal spent by data traffic information, know it is described it is mobile eventually End has the newest free residual flow information for exempting from flow permission.
E36, a kind of system for accessing network characterized by comprising
Proxy server as described in any claim of E33-E25;First sending module is used for the mobile terminal Spent data traffic information is sent to the distribution server;
The distribution server comprises determining that module, for based on data traffic information spent by the mobile terminal, Determine that the mobile terminal has the newest free residual flow information for exempting from flow permission.
E37, the system as described in E36, which is characterized in that the proxy server further include:
First judgment module, any data for whether receiving the mobile terminal within a preset period of time, which accesses, asks It asks;And
Cue module, if any data access for being not received by the mobile terminal within a preset period of time is asked It asks, then the mobile terminal is prompted to have dropped out login.
E38, the system as described in E36, which is characterized in that the distribution server further include:
Second receiving module, for receiving the communication identifier and authentication information of the mobile terminal;
Authentication module, for communication identifier and the authentication information verifying communication identifier based on the mobile terminal Whether have and exempts from flow permission;
Distribution module, for determine the communication identifier have it is described exempt from flow permission when, for the mobile terminal point With the proxy server.
E39, the system as described in E38, which is characterized in that the distribution module includes:
Third obtains module, for obtaining the free residual flow information of the communication identifier;
Second judgment module, for judging the free residual stream of the communication identifier based on the free residual flow information Whether amount is greater than predetermined amount;
The distribution module is used to distribute when the free residual flow is greater than the predetermined amount for the mobile terminal The proxy server.
E40, the system as described in E38, which is characterized in that the distribution server further include:
Generation module is sent to the mobile terminal for generating interim verification information, and by the interim verification information And the proxy server;
First receiving module, specifically for receiving the carrying communication identifier, the institute that the mobile terminal is sent to State the data access request of interim verification information;
Described first obtains module, is specifically used for the proxy server by described in the interim verification information verifying When data access request is legal, the requested date is obtained from the Resource Server.
E41, the system as described in E37, which is characterized in that the distribution server further include:
Cancellation module, it is described interim for nullifying after the cue module prompts the mobile terminal to have dropped out login Verification information.
E42, the system as described in E37, which is characterized in that if the cue module prompts the mobile terminal to have dropped out It logs in, then first sending module is also used to the starting surf time of the mobile terminal, terminates the surf time and disappear The data traffic information of consumption is sent to the distribution server;
The distribution server includes third statistical module, the data traffic for being sent based on first sending module Information counts the free residual flow of the mobile terminal.
E43, the system as described in E39, which is characterized in that the distribution server further include:
Second sending module, for, when the free residual flow is greater than the predetermined amount, being in the distribution module The mobile terminal distributes after the proxy server, and the free residual flow information is sent to the agency service Device;
Described second obtains module, specifically for the proxy server after receiving the data access request, Judge whether the newest free residual flow of the mobile terminal is greater than predetermined amount based on the free residual flow information;Institute When stating newest free residual flow information greater than the predetermined amount, the requested date is obtained from the Resource Server.

Claims (40)

1. a kind of flow statistical method characterized by comprising
Obtain the communication data in the network access network development process that mobile terminal passes through mobile communication carrier;
Whether detection includes that flow identifier is exempted from online in the communication data, and the mobile terminal passes through mobile communication carrier Network access network development process in communication data include upstream data and downlink data, wherein the upstream data be by moving Terminal is sent to the data access request of Resource Server, and the downlink data is to be sent to mobile terminal by Resource Server Requested date;
If comprising exempting from flow identifier based on the online, the corresponding data traffic of the communication data completely or partially being counted Enter in specified services quotient, comprising: when exempting from flow identifier comprising described in the data access request, exempt from flux scale based on described Know, data traffic corresponding to the data access request is completely or partially included in the specified services quotient;And/or In When exempting from flow identifier comprising described in the requested date, exempt from flow identifier based on described, by the number of the requested date It is completely or partially included according to flow in the data traffic of the given server consumption.
2. the method as described in claim 1, which is characterized in that described that the communication data division is included in specified services quotient In, comprising:
The data traffic of special ratios in the communication data is counted into the specified services quotient;Or
Data traffic certain amount of in the communication data is counted into the specified services quotient;Or
The data traffic of the communication data specific content is counted into the specified services quotient.
3. the method as described in claim 1, which is characterized in that described to be included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
4. the method as described in claim 1, which is characterized in that the communication data, comprising:
The data access request that the mobile terminal is sent to proxy server;And
The requested date that the proxy server is sent to the mobile terminal, the requested date are the agency service The data corresponding with the data access request that device is obtained from Resource Server.
5. the method as described in claim 1, which is characterized in that flow identifier is exempted from the online, comprising:
The default label that proxy server is sent to the mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
6. method as claimed in claim 5, which is characterized in that it is described by the corresponding data traffic of the communication data all or Part is included in specified services quotient, comprising:
When in determining the communication data comprising default label, by the corresponding data traffic whole of the communication data or portion Divide and is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, will flow through the communication of the preset IP address The corresponding data traffic of data is completely or partially included in the specified services quotient.
7. the method as described in claim 1~6 is any, which is characterized in that whether the detection wraps in the communication data Exempt from flow identifier containing online, comprising:
It is obtained from the predeterminated position in the communication data and exempts from flow identifier ciphertext, and the flow identifier ciphertext of exempting from is carried out Decryption obtains exempting from flow identifier in plain text;Exempt from described in judgement flow identifier in plain text whether be it is default exempt from flow identifier, if it is, It determines in the communication data and exempts from flow identifier comprising the online.
8. a kind of method for accessing network characterized by comprising
Proxy server receives the data access request that mobile terminal accesses network by the network of mobile communication carrier, described It include the communication identifier of the mobile terminal in data access request, the communication identifier has online and exempts from flow permission;
The proxy server obtains corresponding requested according to the data access request from mobile terminal from Resource Server Data, and the requested date is passed through into the network transmission of mobile communication carrier to the mobile terminal;
Wherein, it includes uplink that the mobile terminal, which accesses the communication data in network development process by the network of mobile communication carrier, Data and downlink data, wherein the upstream data is the data access request for being sent to Resource Server by mobile terminal, institute Stating downlink data is the requested date that mobile terminal is sent to by Resource Server, during the mobile terminal network visiting Communication data in the net for flowing through the mobile communication carrier between the mobile terminal and the proxy server Guan Shi, if exempting from flow identifier comprising online in the communication data, the communication data will be all or part of by the gateway It is included in specified services quotient, comprising: when exempting from flow identifier comprising described in the data access request, exempt from flow based on described Mark, data traffic corresponding to the data access request is completely or partially included in the specified services quotient;And/or When exempting from flow identifier comprising described in the requested date, exempt from flow identifier based on described, by the requested date Data traffic is completely or partially included in the data traffic of the given server consumption.
9. method according to claim 8, which is characterized in that further include:
Whether it includes that flow identifier is exempted from the online that the gateway detects in the communication data;
If comprising the gateway exempts from flow identifier based on described, by the corresponding data traffic whole of the communication data or portion Divide and is included in specified services quotient.
10. method as claimed in claim 9, which is characterized in that the gateway exempts from flow identifier based on described, by the communication The corresponding data traffic part of data is included in specified services quotient, comprising:
The gateway exempts from flow identifier described in being based on, and the corresponding certain amount of data traffic of the communication data is included in described In data traffic spent by specified services quotient.
11. method according to claim 8, which is characterized in that the proxy server receives mobile terminal and led to by mobile Before the data access request of network access network for believing operator, further includes:
The proxy server sends default label to the mobile terminal, carries out during the mobile terminal network visiting Data carry the default label when transmitting, the default label exempts from flow identifier to be described;Alternatively,
The IP address of the proxy server of preset IP address exempts from flow identifier described in being, the proxy server is described for receiving Data access request.
12. method as claimed in claim 11, which is characterized in that the gateway exempts from flow identifier for the movement based on described Data traffic during terminal access network is completely or partially included in specified services quotient, comprising:
When the gateway includes the default label in determining the data in the communication data, by the communication data pair The data traffic answered completely or partially is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, and the gateway will flow through the preset IP address The communication data corresponding data flow is completely or partially included in the specified services quotient.
13. the method as described in claim 8~12 is any, which is characterized in that the gateway, which detects in the communication data, is It is no to exempt from flow identifier comprising the online, comprising:
The gateway is obtained from the predeterminated position in the communication data exempts from flow identifier ciphertext, and exempts from flow identifier to described Ciphertext is decrypted, and obtains exempting from flow identifier in plain text;
Whether be preset exempt from flow identifier, if it is, determining the communication if exempting from flow identifier described in the gateway judgement in plain text Exempt from flow identifier comprising the online in data.
14. method according to claim 8, which is characterized in that further include:
The proxy server according to preset measurement period count the mobile terminal spent by data traffic information, know The mobile terminal has the newest free residual flow information for exempting from flow permission.
15. method as claimed in claim 14, which is characterized in that further include:
Data traffic information spent by the mobile terminal is sent to the distribution server by the proxy server;
The distribution server is determined that the mobile terminal has and is exempted from based on data traffic information spent by the mobile terminal The newest free residual flow information of flow permission.
16. the method as described in any one of claim 8 to 12, which is characterized in that further include:
Whether the proxy server judgement receives any data access request of the mobile terminal within a preset period of time; And
If being not received by any data access request of the mobile terminal within a preset period of time, the movement is prompted Terminal has dropped out login.
17. method according to claim 8, which is characterized in that further include:
The distribution server receives the communication identifier and authentication information of the mobile terminal;
Communication identifier and authentication information of the distribution server based on the mobile terminal, which verify the communication identifier, is It is no have exempt from flow permission;
The distribution server determine the communication identifier have it is described exempt from flow permission when, be mobile terminal distribution institute State proxy server.
18. method as claimed in claim 17, which is characterized in that the distribution server is determining that the communication identifier has It is described when exempting from flow permission, the proxy server is distributed for the mobile terminal, comprising:
The distribution server obtains the free residual flow information of the communication identifier;
The distribution server based on the free residual flow information judge the communication identifier free residual flow whether Greater than predetermined amount;
The distribution server distributes the generation when the free residual flow is greater than the predetermined amount, for the mobile terminal Manage server.
19. method as claimed in claim 18, which is characterized in that further include:
The distribution server generates interim verification information, and by the interim verification information be sent to the mobile terminal and The proxy server;
The data access request for receiving mobile terminal, comprising: the proxy server receives the mobile terminal and is sent to The carrying communication identifier, the interim verification information the data access request;
It is described to obtain corresponding requested date from Resource Server, comprising: the proxy server is temporarily tested by described When data access request described in card Information Authentication is legal, the requested date is obtained from the Resource Server.
20. method as claimed in claim 19, which is characterized in that prompt the mobile terminal to move back in the proxy server After logging in out, the distribution server nullifies the interim verification information.
21. the method described in claim 16, which is characterized in that if the proxy server has prompted the mobile terminal It logs off, then further include:
The proxy server by the starting surf time of the mobile terminal, terminate the data traffic of surf time and consumption Information is sent to the distribution server;
The distribution server remains the free of the mobile terminal based on the data traffic information that the proxy server is sent Residual current amount is counted.
22. method as claimed in claim 18, which is characterized in that the distribution server is greater than in the free residual flow When the predetermined amount, distributed after the proxy server for the mobile terminal, further includes:
The free residual flow information is sent to the proxy server by the distribution server;
It is described to obtain corresponding requested date from Resource Server, comprising: the proxy server is receiving the data After access request, judge whether the newest free residual flow of the mobile terminal is big based on the free residual flow information In predetermined amount;When the newest free residual flow information is greater than the predetermined amount, described in Resource Server acquisition Requested date.
23. a kind of gateway characterized by comprising
First obtains module, for obtaining the communication in the network access network development process that mobile terminal passes through mobile communication carrier Data;
Whether detection module includes that flow identifier is exempted from online in the communication data for detecting, and the mobile terminal passes through Communication data in the network access network development process of mobile communication carrier includes upstream data and downlink data, wherein on described Row data mobile terminal of serving as reasons is sent to the data access request of Resource Server, and the downlink data is to be sent out by Resource Server It send to the requested date of mobile terminal, comprising: when exempting from flow identifier comprising described in the data access request, be based on institute It states and exempts from flow identifier, data traffic corresponding to the data access request is completely or partially included in specified services quotient;With/ Or, exempting from flow identifier based on described, by the requested date when exempting from flow identifier comprising described in the requested date Data traffic be completely or partially included in the data traffic of given server consumption;
First statistical module, if for comprising exempting from flow identifier based on the online, by the corresponding data of the communication data Flow is completely or partially included in specified services quotient.
24. gateway as claimed in claim 23, which is characterized in that first statistical module is specifically used for:
The data traffic of special ratios in the communication data is counted into the specified services quotient;Or
Data traffic certain amount of in the communication data is counted into the specified services quotient;Or
The data traffic of the communication data specific content is counted into the specified services quotient.
25. gateway as claimed in claim 23, which is characterized in that described to be included in specified services quotient, comprising:
The expense that corresponding data flow generates is calculated as to the expense of the account consumption of specified services quotient.
26. gateway as claimed in claim 23, which is characterized in that the communication data, comprising:
The data access request that the mobile terminal is sent to proxy server;And
The requested date that the proxy server is sent to the mobile terminal, the requested date are the agency service The data corresponding with the data access request that device is obtained from Resource Server.
27. gateway as claimed in claim 23, which is characterized in that flow identifier is exempted from the online, comprising:
The default label that proxy server is sent to the mobile terminal;Alternatively,
The IP address of the proxy server of preset IP address.
28. gateway as claimed in claim 27, which is characterized in that first statistical module is also used to:
When in determining the communication data comprising default label, by the corresponding data traffic whole of the communication data or portion Divide and is included in specified services quotient;Or
The communication data passes through the proxy server of the preset IP address, will flow through the communication of the preset IP address The corresponding data traffic of data is completely or partially included in the specified services quotient.
29. the gateway as described in any claim of claim 23~28, which is characterized in that the detection module is specifically used for from institute It states to obtain on the predeterminated position in communication data and exempts from flow identifier ciphertext, and the flow identifier ciphertext of exempting from is decrypted, obtain To exempt from flow identifier in plain text;Whether be preset exempt from flow identifier, if it is, described in determining if exempting from flow identifier described in judgement in plain text Exempt from flow identifier comprising the online in communication data.
30. a kind of proxy server characterized by comprising
First receiving module is asked for receiving mobile terminal by the data access that the network of mobile communication carrier accesses network It asks, includes the communication identifier of the mobile terminal in the data access request, the communication identifier has online and exempts from flow power Limit;
Second obtains module, for obtaining quilt accordingly from Resource Server according to the data access request from mobile terminal Request data, and the requested date is passed through into the network transmission of mobile communication carrier to the mobile terminal;
Wherein, it includes uplink that the mobile terminal, which accesses the communication data in network development process by the network of mobile communication carrier, Data and downlink data, wherein the upstream data is the data access request for being sent to Resource Server by mobile terminal, institute Stating downlink data is the requested date that mobile terminal is sent to by Resource Server, during the mobile terminal network visiting Communication data in the net for flowing through the mobile communication carrier between the mobile terminal and the proxy server Guan Shi, if exempting from flow identifier comprising online in the communication data, the communication data will be all or part of by the gateway It is included in specified services quotient, comprising: when exempting from flow identifier comprising described in the data access request, exempt from flow based on described Mark, data traffic corresponding to the data access request is completely or partially included in the specified services quotient;And/or When exempting from flow identifier comprising described in the requested date, exempt from flow identifier based on described, by the requested date Data traffic is completely or partially included in the data traffic of the given server consumption.
31. proxy server as claimed in claim 30, which is characterized in that the proxy server further include:
First sending module is asked for receiving mobile terminal by the data access that the network of mobile communication carrier accesses network Before asking, Xiang Suoshu mobile terminal sends default label, when carrying out data transmission during the mobile terminal network visiting The default label is carried, the default label exempts from flow identifier to be described;Or the IP of the proxy server of preset IP address Flow identifier is exempted from described in being in address, and first receiving module is for receiving the data access request.
32. proxy server as claimed in claim 30, which is characterized in that the proxy server further includes the second statistics mould Block, for according to preset measurement period count the mobile terminal spent by data traffic information, know it is described it is mobile eventually End has the newest free residual flow information for exempting from flow permission.
33. a kind of system for accessing network characterized by comprising
Proxy server as claimed in claim 31;First sending module is used for number spent by the mobile terminal The distribution server is sent to according to flow information;
The distribution server comprises determining that module, for determining based on data traffic information spent by the mobile terminal The mobile terminal has the newest free residual flow information for exempting from flow permission.
34. system as claimed in claim 33, which is characterized in that the proxy server further include:
First judgment module, for whether receiving any data access request of the mobile terminal within a preset period of time; And
Cue module, if any data access request for being not received by the mobile terminal within a preset period of time, The mobile terminal is then prompted to have dropped out login.
35. system as claimed in claim 34, which is characterized in that the distribution server further include:
Second receiving module, for receiving the communication identifier and authentication information of the mobile terminal;
Authentication module, for based on the mobile terminal communication identifier and authentication information whether verify the communication identifier Have and exempts from flow permission;
Distribution module, for determine the communication identifier have it is described exempt from flow permission when, be mobile terminal distribution institute State proxy server.
36. system as claimed in claim 35, which is characterized in that the distribution module includes:
Third obtains module, for obtaining the free residual flow information of the communication identifier;
Second judgment module, for judging that the free residual flow of the communication identifier is based on the free residual flow information It is no to be greater than predetermined amount;
The distribution module is used for when the free residual flow is greater than the predetermined amount, for described in mobile terminal distribution Proxy server.
37. system as claimed in claim 35, which is characterized in that the distribution server further include:
Generation module, for generating interim verification information, and by the interim verification information be sent to the mobile terminal and The proxy server;
First receiving module, specifically for receiving the carrying communication identifier that the mobile terminal is sent to, described temporarily testing Demonstrate,prove the data access request of information;
First obtains module, is specifically used for the proxy server and is verifying the data access by the interim verification information When requesting legal, the requested date is obtained from the Resource Server.
38. system as claimed in claim 37, which is characterized in that the distribution server further include:
Cancellation module, for nullifying the interim verifying after the cue module prompts the mobile terminal to have dropped out login Information.
39. system as claimed in claim 34, which is characterized in that if the cue module prompts the mobile terminal to move back Log in out, then first sending module be also used to by the starting surf time of the mobile terminal, terminate the surf time and The data traffic information of consumption is sent to the distribution server;
The distribution server includes third statistical module, the data traffic information for being sent based on first sending module The free residual flow of the mobile terminal is counted.
40. system as claimed in claim 36, which is characterized in that the distribution server further include:
Second sending module is used in the distribution module when the free residual flow is greater than the predetermined amount, is described Mobile terminal distributes after the proxy server, and the free residual flow information is sent to the proxy server;
The second acquisition module is based on specifically for the proxy server after receiving the data access request The free residual flow information judges whether the newest free residual flow of the mobile terminal is greater than predetermined amount;It is described most When new free residual flow information is greater than the predetermined amount, the requested date is obtained from the Resource Server.
CN201510377731.2A 2015-06-30 2015-06-30 A kind of flow statistical method and gateway, the method and system for accessing network Active CN105101286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510377731.2A CN105101286B (en) 2015-06-30 2015-06-30 A kind of flow statistical method and gateway, the method and system for accessing network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510377731.2A CN105101286B (en) 2015-06-30 2015-06-30 A kind of flow statistical method and gateway, the method and system for accessing network

Publications (2)

Publication Number Publication Date
CN105101286A CN105101286A (en) 2015-11-25
CN105101286B true CN105101286B (en) 2019-12-03

Family

ID=54580588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510377731.2A Active CN105101286B (en) 2015-06-30 2015-06-30 A kind of flow statistical method and gateway, the method and system for accessing network

Country Status (1)

Country Link
CN (1) CN105101286B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108293026B (en) * 2015-12-31 2021-09-28 柏思科技有限公司 Method and system for limiting data usage on network devices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841204A (en) * 2014-03-14 2014-06-04 北京奇虎科技有限公司 Traffic-free downloading method, device and system based on mobile terminal
CN104506644A (en) * 2014-12-30 2015-04-08 北京奇虎科技有限公司 Method, device and mobile terminal for accessing network data
CN104572969A (en) * 2014-12-31 2015-04-29 乐视致新电子科技(天津)有限公司 Cross-application related resource information acquisition method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150039531A1 (en) * 2013-08-02 2015-02-05 John H. Dayani, SR. Computer-based investment and fund analyzer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841204A (en) * 2014-03-14 2014-06-04 北京奇虎科技有限公司 Traffic-free downloading method, device and system based on mobile terminal
CN104506644A (en) * 2014-12-30 2015-04-08 北京奇虎科技有限公司 Method, device and mobile terminal for accessing network data
CN104572969A (en) * 2014-12-31 2015-04-29 乐视致新电子科技(天津)有限公司 Cross-application related resource information acquisition method and device

Also Published As

Publication number Publication date
CN105101286A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN104967624B (en) It is a kind of based on method, mobile terminal and the system of exempting from flow platform access network
CN105323240B (en) A kind of method and mobile terminal of monitoring data flow
CN104954490B (en) A kind of method and mobile terminal carrying out network access under defaulting subscriber state
CN104902030B (en) It is a kind of applied to the control method of intelligent remote controller, proxy server and control system
CN104954488B (en) A kind of method for network access control, the distribution server and network access system
CN105142124B (en) A kind of Network Access Method and mobile terminal applied to mobile terminal
CN104902453B (en) A kind of network access authority control method and mobile terminal for mobile terminal
CN104980342B (en) A kind of method of pushed information, proxy server and system
CN104980958B (en) A kind of method and mobile terminal carrying out network login
CN104954493B (en) A kind of method, proxy server and system accessing game server
CN104980957B (en) A kind of method, the distribution server and system carrying out network login
CN105120444B (en) A kind of image transfer method, proxy server and network access system
CN105162754B (en) Access the method and mobile terminal of game server
CN105120445B (en) A kind of network access authority control method, the distribution server and network access system
CN105101286B (en) A kind of flow statistical method and gateway, the method and system for accessing network
CN104933614B (en) It is a kind of applied to the purchase method of mobile terminal, proxy server and system
CN104902462B (en) A kind of method and mobile terminal saving stream access network for mobile terminal
CN104967977B (en) A kind of communication means, mobile terminal and system
CN105101142B (en) A kind of method that advertiser pays out flow
CN104980444B (en) A kind of network telephone call method, proxy server and communication system applied to mobile terminal
CN105162753B (en) A kind of method and mobile terminal for mobile terminal to access network resources
CN105101144B (en) A kind of acquisition data method and mobile terminal for mobile terminal
CN104967623B (en) A method of network is accessed for dual-SIM-card dual-standby mobile terminal
CN105101143B (en) A method of network is accessed by account information
CN104994490B (en) A kind of database operation method and database for mobile terminal network visiting

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220729

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230714

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

TR01 Transfer of patent right