Summary of the invention
The embodiment of the present invention provides a kind of data service billing method, PCEF equipment, OCS and system, with
Phase slows down the pressure of data link between PCEF equipment and OCS, reduces the performance loss of OCS.
Embodiment of the present invention first aspect discloses a kind of data service billing method, including:
What strategy and charge execution function PCEF equipment receiving terminal apparatus sent carries described terminal unit
Data service account packet data protocol PDP Context request;
Described PCEF equipment Inspection to the service condition of the data service account of described terminal unit for freezing shape
State, described PCEF equipment refuses the request of described PDP Context.
In the first possible implementation of embodiment of the present invention first aspect,
Described PCEF equipment stores to have and includes the data service account of described terminal unit and described data industry
The status list of the service condition mark of business account, wherein, described service condition mark includes frozen state mark
Know and defrosting status indicator;Described PCEF equipment Inspection is to the industry of the data service account of described terminal unit
Business state is frozen state, including:
In PCEF equipment described in described PCEF equipment query, the described status list of storage, inquires described number
It is designated frozen state mark according to the service condition of business account;
Or,
Described PCEF equipment stores to have and includes the data service account of described terminal unit and described data industry
The permissions list of the Operational Visit permission type of business account, wherein, described Operational Visit permission type includes awarding
Power type and Limit Type;Described PCEF equipment Inspection is to the industry of the data service account of described terminal unit
Business state is frozen state, including:
In PCEF equipment described in described PCEF equipment query, the described permissions list of storage, inquires described number
It is Limit Type according to the Operational Visit permission type of business account.
In conjunction with the first possible implementation of embodiment of the present invention first aspect or first aspect, at this
In the implementation that the second of bright embodiment first aspect is possible, described PCEF equipment receiving terminal apparatus
After the PDP Context request of the data service account carrying described terminal unit sent, described method
Also include:
Described PCEF equipment Inspection is defrosting shape to the service condition of the data service account of described terminal unit
State, described PCEF equipment sends charging quota request message to Online Charging System OCS, and, receive
The response message that described OCS responds described charging quota request message and sends, and according to described response message
Perform charging and control operation.
In conjunction with the implementation that the second of embodiment of the present invention first aspect is possible, in the embodiment of the present invention
In the third possible implementation on the one hand,
Described response message is charging quota response message, described according to the execution charging control of described response message
Operation includes: the stream consumed according to the charging policy in described charging quota response message and described terminal unit
Amount determines flow rate, and wherein, described charging quota response message is that described OCS is detecting described charging
The data service account of the described terminal unit in quota request message meet pre-conditioned in the case of, to institute
State what PCEF equipment sent;Or,
Described response message is business freeze request message, described according to the execution charging control of described response message
Operation includes: according to described business freeze request message by the business of the data service account of described terminal unit
State is revised as frozen state by thawed state, and refuses the request of described PDP Context, wherein, described industry
Business freeze request message is that the described OCS described terminal in described charging quota request message being detected sets
Standby data service account be unsatisfactory for pre-conditioned in the case of, to described PCEF equipment send.
In conjunction with the first possible implementation of embodiment of the present invention first aspect or first aspect, at this
In 4th kind of possible implementation of bright embodiment first aspect, described method also includes:
Described PCEF equipment receives the business defrosting request message that OCS sends, and described business defrosting request disappears
Breath is the data service account carrying described terminal unit that described OCS receives that rear end IT system sends
Account supplement with money and send after message;
Described PCEF equipment thaws request message by the data service account of described terminal unit according to described business
Number service condition be revised as thawed state by frozen state.
In conjunction with the embodiment that the second of embodiment of the present invention first aspect is possible, in the embodiment of the present invention
In the 5th kind of possible implementation on the one hand, described PCEF equipment receives described OCS and responds described meter
The response message taking quota request message and send, including:
Described PCEF equipment receives described OCS and responds described charging quota request message by standard Gy interface
And the response message sent;Or,
Described PCEF equipment receives described OCS and responds described charging quota request message by Web Service
Interface and the response message that sends.
Embodiment of the present invention second aspect discloses a kind of data service billing method, including:
OCS receives the charging quota request message that PCEF equipment sends;
Described OCS detects the data service account of the described terminal unit in described charging quota request message
Number being unsatisfactory for pre-conditioned, send business freeze request message to described PCEF equipment, described business is freezed
Request message is for indicating described PCEF equipment by the service condition of the data service account of described terminal unit
It is revised as frozen state, meets described pre-conditioned in described data service account refusing described terminal unit
The PDP Context request of front initiation.
In the first possible implementation of embodiment of the present invention second aspect, described pre-conditioned bag
Include:
The account balance of the data service account of the described terminal unit in described charging quota request message is big
In or equal to preset account balance;
Or,
The Operational Visit power of the data service account of the described terminal unit in described charging quota request message
Limit type is authorization type, and described Operational Visit permission type includes authorization type and Limit Type.
The embodiment of the present invention third aspect discloses a kind of PCEF equipment, including:
Receiver module, the data service account carrying described terminal unit sent for receiving terminal apparatus
PDP Context request;
Request refusal module, for detecting that the service condition of the data service account of described terminal unit is for freezing
Knot state, refuses the request of described PDP Context.
In the first possible implementation of the embodiment of the present invention third aspect,
Described PCEF equipment stores to have and includes the data service account of described terminal unit and described data industry
The status list of the service condition mark of business account, wherein, described service condition mark includes frozen state mark
Know and defrosting status indicator;Described request refusal module specifically for:
Inquire about the described status list of storage in described PCEF equipment, inquire described data service account
Service condition is designated frozen state mark;
Or,
Described PCEF equipment stores to have and includes the data service account of described terminal unit and described data industry
The permissions list of the Operational Visit permission type of business account, wherein, described Operational Visit permission type includes awarding
Power type and Limit Type;Described request refusal module specifically for:
Inquire about the described permissions list of storage in described PCEF equipment, inquire described data service account
Operational Visit permission type is Limit Type.
In conjunction with the first possible implementation of the embodiment of the present invention third aspect or the third aspect, at this
In the implementation that the second of the bright embodiment third aspect is possible, described PCEF equipment also includes:
Sending module, carries described terminal unit for send at described receiver module receiving terminal apparatus
Data service account PDP Context request after, the data service account of described terminal unit detected
Service condition be thawed state, to OCS send charging quota request message;
Receive control module, for sending charging quota request message at described sending module to described OCS
After, receive described OCS and respond described charging quota request message and the response message that sends, and according to described
Response message performs charging and controls operation.
In conjunction with the implementation that the second of the embodiment of the present invention third aspect is possible, in the embodiment of the present invention
In the third possible implementation of three aspects,
Described response message is charging quota response message, described reception control module specifically for: according to institute
The flow stating the charging policy in charging quota response message and the consumption of described terminal unit determines flow rate,
Wherein, described charging quota response message is that described OCS is in described charging quota request message being detected
The data service account of described terminal unit meet pre-conditioned in the case of, send out to described reception control module
Send;Or,
Described response message is business freeze request message, described reception control module specifically for: according to institute
State the business freeze request message service condition by the data service account of described terminal unit by thawed state
It is revised as frozen state, and refuses the request of described PDP Context, wherein, described business freeze request message
It it is the data service account of the described OCS described terminal unit in described charging quota request message being detected
Number be unsatisfactory for pre-conditioned in the case of, send to described reception control module.
Embodiment of the present invention fourth aspect discloses a kind of OCS, including:
Receiver module, for receiving the charging quota request message that PCEF equipment sends;
Sending module, for detecting the institute in the described charging quota request message that described receiver module receives
The data service account stating terminal unit is unsatisfactory for pre-conditioned, sends business to described PCEF equipment and freezes
Request message, described business freeze request message is for indicating described PCEF equipment by described terminal unit
The service condition of data service account is revised as frozen state, to refuse described terminal unit in described data industry
Business account meets the described pre-conditioned front PDP Context request initiated.
In the first possible implementation of embodiment of the present invention fourth aspect, described pre-conditioned bag
Include:
The account balance of the data service account of the described terminal unit in described charging quota request message is big
In or equal to preset account balance;
Or,
The Operational Visit power of the data service account of the described terminal unit in described charging quota request message
Limit type is authorization type, and described Operational Visit permission type includes authorization type and Limit Type.
The embodiment of the present invention the 5th aspect discloses a kind of data service billing system, including terminal unit,
PCEF equipment and OCS, wherein,
Described terminal unit, for sending the data industry carrying described terminal unit to described PCEF equipment
The PDP Context request of business account;
Described PCEF equipment, for detecting that the service condition of the data service account of described terminal unit is
Frozen state, refuses the request of described PDP Context.
In the first possible implementation of the embodiment of the present invention the 5th aspect,
Described PCEF equipment stores to have and includes the data service account of described terminal unit and described data industry
The status list of the service condition mark of business account, wherein, described service condition mark includes frozen state mark
Know and defrosting status indicator;Described PCEF equipment specifically for:
Inquire about the described status list of storage in described PCEF equipment, inquire described data service account
Service condition is designated frozen state mark;
Or,
Described PCEF equipment stores to have and includes the data service account of described terminal unit and described data industry
The permissions list of the Operational Visit permission type of business account, wherein, described Operational Visit permission type includes awarding
Power type and Limit Type;Described PCEF equipment specifically for:
Inquire about the described permissions list of storage in described PCEF equipment, inquire described data service account
Operational Visit permission type is Limit Type.
In conjunction with the embodiment of the present invention the 5th aspect or the first possible implementation of the 5th aspect, at this
In the implementation that the second of bright embodiment the 5th aspect is possible,
Described PCEF equipment, is additionally operable to detect the service condition of the data service account of described terminal unit
For thawed state, send charging quota request message to OCS;
Described OCS, for detecting the data industry of the described terminal unit in described charging quota request message
Business account is unsatisfactory for pre-conditioned, sends business freeze request message to described PCEF equipment;
Described PCEF equipment, is additionally operable to the number of described terminal unit according to described business freeze request message
It is revised as frozen state according to the service condition of business account by thawed state, and refuses described terminal unit in institute
State data service account and meet the described pre-conditioned front PDP Context request initiated.
In the embodiment of the present invention, PCEF equipment receives the data service account carrying UE of UE transmission
After PDP Context request, the business of the data service account of PCEF equipment Inspection to described terminal unit
State is frozen state, the most directly refuses the PDP Context request of UE, and PCEF equipment refusal UE's
In the case of PDP Context request, PCEF equipment will not send charging quota request message to OCS, therefore
And advantageously reduce the charging authentication interaction message repeated between OCS and PCEF equipment, thus slow down PCEF
The pressure of data link between equipment and OCS, reduces the performance loss of OCS.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is only the embodiment of a present invention part, and not
It it is whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound
The every other embodiment obtained under the property made work premise, all should belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of data service billing method, PCEF equipment, OCS and system, with
Phase slows down the pressure of data link between PCEF equipment and OCS, reduces the loss of OCS performance.
For the ease of understanding the embodiment of the present invention, the most first the network architecture of the embodiment of the present invention is retouched
State.Referring to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram disclosed in the embodiment of the present invention.As it is shown in figure 1,
The network architecture of the embodiment of the present invention can include UE, wireless base station, PCEF equipment, OCS equipment, after
End IT system and server (being provided by data service provider), wherein, PCEF equipment is used for realizing UE
The detection of business data flow, strategy execution and based on stream charging, this functional entity may be located at gateway,
The packet count of support node GGSN, 4G core net EPC of such as general packet radio service technology GPRS
According to the packet data gateway PDG in net gateway P-GW, WLAN WLAN, it is possible to independent deployment,
The most external deep-packet detection DPI equipment, the concrete form of PCEF equipment is not limited by the embodiment of the present invention
Fixed.Wherein, rear end IT system such as can include operator deployment voucher center (Voucher Center,
VC), data service account balance is not enough or in the case of arrearage, user can be supplemented with money by multiple channel,
Such as utilize interactive voice answering (Interactive Voice Response, IVR), SMS (Short Message Service) (Short
Message Service, SMS), unstructured supplementary data traffic (Unstructured Supplementary
Service Data, USSD), the third party application (Application, APP) of smart mobile phone, door
Websites, family (Web portal) etc. are supplemented with money by buying rechargeable card request, or can also utilize APP, Web
Portal etc. are supplemented with money by the interface requests of the Third-party payment such as the credit card, and charging request can be sent to VC,
VC can supplement with money to OCS in authentication by rear.OCS is for realizing the tune to UE data services network rate
Whole, specifically can include that some rear ends automatically process program, such as monthly closing entry processing routine, can be in periodicity account
At the end of phase, automatically deduct fees and resetting user overall data business account and specific data service account.OCS
Being connected with PCEF equipment by Gy interface, Gy interface is that the online charging between PCEF equipment and OCS connects
Mouth (for credit line control, pre-payment etc.).UE sends establishment by wireless base station to PCEF equipment
PDP Context is asked, this PDP Context for providing procotol connective to UE, be one based on bag
Protocol-dependent connection, the server provided by this connection UE and data service provider carries out data
Exchange.UE can include cell phone, panel computer (as used the online of wireless rate card), individual digital
Assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile Internet
Device, MID), all kinds of uses such as Intelligent worn device (such as intelligent watch, Intelligent bracelet) move logical
The UE of communication network.
In the network architecture shown in Fig. 1, the data service that UE accesses can be the media sector that server provides
Business (such as QQ speech business, like strange skill video traffic, UC browser business, etc.), UE accesses service
The charge on traffic operation of the data service that device provides is completed by PCEF equipment and OCS, and PCEF equipment receives UE
After the PDP Context request of the data service account carrying UE sent, PCEF equipment Inspection is to institute
The service condition of the data service account stating terminal unit is frozen state, then PCEF equipment directly refuses UE
PDP Context request, and refusal UE PDP Context request in the case of, PCEF equipment will not
Charging quota request message is sent, so advantageously reducing repetition between OCS and PCEF equipment to OCS
Charging authentication interaction message.Visible, that PCEF equipment sends without receiving UE every time PDP Context request
All send the charging quota request message of data service to OCS, thus slow down between PCEF equipment and OCS
The pressure of data link, reduces the performance loss of OCS.
In the embodiment of the present invention, the data service account of UE can be the smart card (Subscriber of UE
Identity Module, SIM) card number, or international mobile subscriber identity (International Mobile
Subscriber Identification Number, IMSI), or, mobile station identity number is (usually said
Phone number) (Mobile Subscriber International ISDN/PSTN number, MSISDN) etc.
Association user's overall data service condition overall business account, this entirety business account such as can with generally
Mobile phone monthly payment flow account corresponding, i.e. under this entirety business account, user utilizes UE to carry out surfing the Net,
The flow that the daily uses such as mail, chat, file transmission, video are consumed all counts this entirety business account
In corresponding flow rate;The data service account of above-mentioned UE can also is that QQ music freely listens flow bag, green
Bore and freely listen flow bag, the happy specific transactions regarding association user's specific data service states such as video content flow bag
Account, under the business corresponding to this specific transactions account, user uses this business by UE and consumes
Flow only counts this specific transactions account, and without counting above-mentioned overall business account, such as certain user buys
QQ music freely listens flow bag, then OCS system should generate one and freely listens business pair with the QQ music of this user
The specific transactions account answered, the form of this specific transactions account can be such as
765367XXX_QQ_music_VIP。
The service condition of above-mentioned data service account can include frozen state and thawed state, above-mentioned data industry
The service condition of business account is in frozen state, and Sorry, your ticket has not enough value or number such as can to include data service account
It is the situations such as Limit Type according to the Operational Visit permission type of business account, the business of above-mentioned data service account
State is in thawed state, such as, can include that the remaining sum of data service account is sufficient or data service account
Operational Visit permission type is the situations such as authorization type.Wherein, the form that the implements example of above-mentioned frozen state
As being the frozen state mark in respective data field, what above-mentioned thawed state identified implements form
Can be such as the thawed state mark in respective data field, such as, the industry in respective data field is set
Business status indicator position is " 1 " interval scale thawed state mark, when arranging this service condition flag for " 0 "
Represent frozen state mark.Additionally, the concrete form of above-mentioned frozen state mark or thawed state mark also may be used
To be other data structure form, the concrete form of above-mentioned status indicator is not done unique restriction by the present invention.This
The follow-up service condition that will be described in detail according to data service account of inventive embodiments performs service billing operation
Implement process, be not first described herein.
Further below the PCEF equipment related in the embodiment of the present invention is described.Refer to Fig. 2, figure
2 is the structural representation of a kind of PCEF equipment disclosed in the embodiment of the present invention.As in figure 2 it is shown, this PCEF sets
For may include that at least one processor 1001, such as CPU, at least one network interface 1002, storage
Device 1003, at least one communication bus 1004.Communication bus 1004 is for realizing the connection between these assemblies
Communication.Wherein, network interface 1002 includes wave point, can also include line interface further, wireless
Interface (also referred to as RF interface) wirelessly provides functionality, network interface to PCEF equipment, according to
Communication protocol (such as, wireless standard IEEEE802.11a, 802.11b, 802.11g, 802.11n or 802.15.1)
Communicating with equipment such as UE, OCS, wireline interface is (such as, Ethernet cable) by the way of wired
Network interface performance is provided.Memorizer 1003 may comprise high-speed RAM memorizer, it is also possible to also includes non-
Volatile memory (non-volatile memory), for example, at least one disk memory.Memorizer 1003
Optionally can comprise at least one storage device being located remotely from aforementioned processor 1001.
In some embodiments, memorizer 1003 stores following element, executable module or number
According to structure, or their subset, or their superset:
Operating system 10031, comprises various system program, is used for realizing various basic business and processing base
Task in hardware;
Application program 10032, comprises equipment and controls the various application such as service routine, device identification service program
Program, is used for realizing various applied business.
Specifically, processor 1001 operation below calling the program of storage in memorizer 1003, performing:
Receive the PDP Context request of the data service account carrying UE that UE sends;
The service condition data service account of UE being detected is frozen state, the PDP Context of refusal UE
Request.
In the embodiment of the present invention, processor 1001 can receive UE and carry UE by what wireless base station sent
Data service account PDP Context request, this PDP Context request send operation can be by user couple
The data service of UE accesses operation (such as web page browsing, video-see, content download, instant communication information
Alternately, etc.) trigger, it is also possible to asked (such as hundred by the data interaction of the application program of the running background of UE
Degree map background update, everyday music player push song recommendations, etc.) trigger.
Above-mentioned memorizer 1003 such as can store data service account and the data service account including UE
Number service condition mark status list, wherein, service condition mark include frozen state mark and thaw
Status indicator;After processor 1001 detects the PDP Context request that UE sends, above-mentioned PCEF can be inquired about
The above-mentioned status list of storage in equipment, and with the unique index information of the data service account of UE for inquiry
Foundation, inquires the service condition of the data service account corresponding with above-mentioned unique index information and is designated and freezes
Knot status indicator.
Above-mentioned memorizer 1003 can also store data service account and the data service account including UE
The permissions list of Operational Visit permission type, wherein, Operational Visit permission type includes authorization type and limit
Type processed;After processor 1001 detects the PDP Context request that UE sends, above-mentioned PCEF can be inquired about
The above-mentioned permissions list of storage in equipment, and with the unique index information of the data service account of UE for inquiry
Foundation, inquires the Operational Visit authority of the above-mentioned data service account corresponding with above-mentioned unique index information
Type is Limit Type.
Optionally, in the embodiment of the present invention, processor 1001 receives the data industry carrying UE that UE sends
After the PDP Context request of business account, detect that the service condition of data service account of UE is for thawing
State, PCEF equipment sends charging quota request message to Online Charging System OCS, and, receive OCS
The response message responding charging quota request message and send, and perform charging control behaviour according to response message
Make.
In one embodiment, response message is charging quota response message, and processor 1001 is according to response message
Perform charging to control the concrete mode of operation and include: according to the charging policy in charging quota response message and
The flow of UE consumption determines that flow rate, wherein charging quota response message are that OCS is detecting that charging is joined
The data service account of UE in volume request message meet pre-conditioned in the case of, send to PCEF equipment
's;Wherein, the data service of the above-mentioned pre-conditioned UE that may is that in above-mentioned charging quota request message
The account balance of account is more than or equal to presetting account balance;Or, in above-mentioned charging quota request message
The Operational Visit permission type of the data service account of UE is authorization type, above-mentioned Operational Visit permission type
Including authorization type and Limit Type.
In another embodiment, response message is business freeze request message, and processor 1001 disappears according to response
Breath performs the concrete mode of charging control operation and includes: according to business freeze request message by the data industry of UE
The service condition of business account is revised as frozen state by thawed state, and refuses PDP Context request, wherein,
Business freeze request message is the data service account of OCS UE in charging quota request message being detected
Be unsatisfactory for pre-conditioned in the case of, to PCEF equipment send.
In implementing, the above-mentioned service condition by the data service account of UE is revised as freezing by thawed state
The specific implementation of knot state such as may is that the service condition of the data service account of UE is identified by
Thawed state mark is revised as frozen state mark, or, by the Operational Visit of the data service account of UE
Permission type is revised as Limit Type by authorization type.
Optionally, in the embodiment of the present invention, processor 1001 receive OCS response charging quota request message and
The concrete mode of the response message sent may include that
Receive the response message that OCS response charging quota request message is sent by standard Gy interface, its
In, the normative document of standard Gy interface reference can be such as 3GPP TS 32.299,3GPP TS
32.215,3GPP TS 32.251, any one in IETF RFC 4006, IETFRFC 3588, this
The international norm document that a little documents are Gy interface and agreement is mainly deferred to;Or, receive OCS and respond charging
The response message that quota request message is sent by Web Service interface.
It can be seen that the PCEF equipment shown in Fig. 2 receives the data service carrying UE that UE sends
After the PDP Context request of account, the business shape of the data service account of PCEF equipment Inspection to UE
State is frozen state, the most directly refuses the PDP Context request of UE, and refuses UE at PCEF equipment
PDP Context request in the case of, PCEF equipment will not to OCS send charging quota request message,
So advantageously reducing the charging authentication interaction message repeated between OCS and PCEF equipment, thus slow down
The pressure of data link between PCEF equipment and OCS, reduces the performance loss of OCS.
Optionally, in the embodiment of the present invention, processor 1001 can also carry out following operation:
Receiving the business defrosting request message that OCS sends, business defrosting request message is that OCS receives rear end
The account of the data service account carrying UE that IT system sends sends after supplementing message with money;
Thawing according to business asks message to be revised by frozen state by the service condition of the data service account of UE
For thawed state.In implementing, the above-mentioned service condition by the data service account of UE is by frozen state
The specific implementation being revised as thawed state such as may is that the business shape of the data service account of UE
State mark is revised as thawed state mark by frozen state mark, or, by the data service account of UE
Operational Visit permission type is revised as Limit Type by authorization type.
It can be seen that in above-mentioned optional embodiment, PCEF equipment thaws according to the business that OCS sends please
The service condition seeking the data service account of message real-time update UE is thawed state, and UE is again to PCEF
When equipment sends PDP Context request, beneficially PCEF equipment receives the PDP Context that UE initiates in time
Request, and traffic rate operation after the charging quota response message obtaining OCS, shorten user and supplement with money
The time that rear wait data service communications link reconnects, thus improve data communication efficiency, promote Consumer's Experience.
Additionally, due to the data service account in business defrosting message can be specific transactions account, this makes
PCEF equipment thaw this specific transactions account time, still freeze other data service accounts, thus realize accurately
Operational Visit control.
The network architecture and PCEF equipment to the embodiment of the present invention are described, further below above
Method disclosed in the embodiment of the present invention is described.Referring to Fig. 3, Fig. 3 is a kind of number disclosed in the embodiment of the present invention
Schematic flow sheet according to business charging method.Wherein, the method described by Fig. 3 is to come from PCEF equipment side
It is described.As it is shown on figure 3, the method may comprise steps of:
S301, PCEF equipment receives the PDP Context of the data service account carrying UE that UE sends please
Ask.
In the embodiment of the present invention, UE can according to the data service interactive operation of user (as web page browsing,
Video-see, content are downloaded, instant messaging interaction message, etc.) send PDP Context to PCEF equipment
Request, or, according to the data interaction request of the application program of running background (as Baidu's map background update,
Music player pushes song recommendations everyday, etc.) send PDP Context request to PCEF equipment.
S302, PCEF equipment Inspection is frozen state to the service condition of the data service account of UE, PCEF
Equipment refusal PDP Context request.
In the embodiment of the present invention, the concrete form of the service condition of the data service account of above-mentioned UE can be
Service condition mark or Operational Visit permission type.
In one embodiment, above-mentioned PCEF equipment can store the data service account sum including UE
The status list identified according to the service condition of business account, wherein, above-mentioned service condition mark includes freezing shape
State mark and defrosting status indicator;Above-mentioned PCEF equipment Inspection is to the service condition of the data service account of UE
Specific implementation for frozen state may is that the above-mentioned shape of storage in PCEF equipment query PCEF equipment
State list, and with the unique index information of the data service account of UE for inquiry foundation, inquire with above-mentioned
The service condition of the above-mentioned data service account that unique index information is corresponding is designated frozen state mark.
In another embodiment, above-mentioned PCEF equipment can also store the data service account including UE
With the permissions list of the Operational Visit permission type of data service account, wherein, above-mentioned Operational Visit authority class
Type includes authorization type and Limit Type;Above-mentioned PCEF equipment Inspection is to the business of the data service account of UE
State is that the specific implementation of frozen state may is that the upper of storage in PCEF equipment query PCEF equipment
State permissions list, and with the unique index information of the data service account of UE for inquiry foundation, inquire with
The Operational Visit permission type of the above-mentioned data service account that above-mentioned unique index information is corresponding is restricted
Type.
Implementing the method described by Fig. 3, PCEF equipment receives the data service account carrying UE that UE sends
Number PDP Context request after, the service condition of the data service account of PCEF equipment Inspection to UE is
Frozen state, the most directly refuses the PDP Context request of UE, and on the PDP of PCEF equipment refusal UE
Hereafter in the case of request, PCEF equipment will not send charging quota request message to OCS, so favorably
In reducing the charging authentication interaction message repeated between OCS and PCEF equipment, thus slow down PCEF equipment with
The pressure of data link between OCS, reduces the performance loss of OCS.
Optionally, in the embodiment of the present invention, above-mentioned PCEF equipment receives the data carrying UE that UE sends
After the PDP Context request of business account, the business of the data service account of PCEF equipment Inspection to UE
State is thawed state, then PCEF equipment sends charging quota request message to Online Charging System OCS,
And, the response message that reception OCS responds charging quota request message and sends, and hold according to response message
Row charging controls operation.
In one embodiment, above-mentioned response message is charging quota response message, performs meter according to response message
Expense controls operation and includes: determine according to the flow that the charging policy in charging quota response message and UE consume
Flow rate, wherein, charging quota response message is that OCS is in charging quota request message being detected
The data service account of UE meet pre-conditioned in the case of, to PCEF equipment send;Wherein, above-mentioned
Pre-conditioned include: more than the account of the data service account of the above-mentioned UE in above-mentioned charging quota request message
Volume is more than or equal to presetting account balance;Or, the number of the above-mentioned UE in above-mentioned charging quota request message
Being authorization type according to the Operational Visit permission type of business account, above-mentioned Operational Visit permission type includes authorizing
Type and Limit Type.
In implementing, the data service account of above-mentioned OCS UE in charging quota request message being detected
Number meet pre-conditioned specific implementation and may is that OCS is detecting more than the account of data service account
In the case of volume is more than or equal to presetting account balance, determine that above-mentioned data service account meets pre-conditioned,
Wherein, this default account balance can be changeless value, it is also possible to become according to the credit rating of user
Dynamic, as the highest in user credit degree, it is the lowest that this default account balance can be arranged, it might even be possible to is that negative value is (right
Answer arrearage).Or, OCS is authorization type at Operational Visit permission type data service account being detected
In the case of, determine that above-mentioned data service account meets pre-conditioned.
For example, OCS detects that the account balance of the data service account of UE is 20 yuan, is in and does not owes
Take state, then OCS sends charging quota response message to PCEF equipment.
In another embodiment, response message is business freeze request message, performs charging according to response message
Control operation to include: according to business freeze request message by the service condition of the data service account of UE by solving
Freezing status modifier is frozen state, and refuses PDP Context request, and wherein, business freeze request message is
The account balance of the data service account of OCS UE in charging quota request message being detected is unsatisfactory for pre-
If in the case of condition, send to PCEF equipment;Wherein, above-mentioned OCS is detecting that charging quota please
The data service account seeking the UE in message is unsatisfactory for pre-conditioned specific implementation and may is that OCS
In the case of account balance data service account being detected is less than and presets account balance, determine above-mentioned data
Business account is unsatisfactory for pre-conditioned, or, OCS is detecting the Operational Visit authority of data service account
In the case of type is Limit Type, determine that above-mentioned data service account is unsatisfactory for pre-conditioned.
For example, OCS detects-15 yuan, account balance position (the i.e. arrearage 15 of data service account of UE
Unit), it is assumed that the default account balance of the data service account of this UE is-10 yuan, and (the highest arrearage value is 10
Unit), then OCS sends business freeze request message to PCEF equipment.
Optionally, in the embodiment of the present invention, above-mentioned PCEF equipment receives OCS response charging quota request and disappears
The specific implementation of the response message ceased and send may include that PCEF equipment receives OCS and responds charging
The response message that quota request message is sent by standard Gy interface;Or, receive OCS and respond charging
The response message that quota request message is sent by Web Service interface.
Optionally, in the embodiment of the present invention, above-mentioned PCEF equipment can also receive the business solution that OCS sends
Freeze request message, this business thaw request message be OCS receive that rear end IT system sends carry UE
The account of data service account supplement message with money after send;PCEF equipment disappears according to this business defrosting request
The service condition of the data service account of UE is revised as thawed state by frozen state by breath.
Wherein, the service condition of the data service account of UE is revised as by frozen state the tool of thawed state
Body implementation such as may is that and identifies the service condition of the data service account of UE by frozen state mark
Know be revised as thawed state mark, or, by the Operational Visit permission type of the data service account of UE by
Limit Type is revised as authorization type.
For example, user A applies the QQ flow bag business account to UE2 by the online business hall in UE1
Number supplementing 10 yuan with money, rear end IT system updates the QQ flow bag business account of UE2, and this account is supplemented with money and disappear
Breath sends and receives after this account supplements message with money to OCS, OCS, supplements information updating storage with money according to this account
The account balance of QQ flow bag business account of UE2, and send business defrosting request to PCEF equipment and disappear
Breath, after PCEF equipment receives this business defrosting request message, by the QQ flow bag business account of the UE2 of storage
Number service condition mark be updated to thawed state mark.QQ flow bag business in user uses UE2
Account and to provide QQ application data services server request data mutual time, PCEF equipment Inspection is arrived
The PDP Context request that UE2 sends, and the service condition mark of the QQ flow bag business account of UE2 detected
Know and identify for thawed state, then the charging of the QQ application data services that PCEF equipment sends UE2 to OCS is joined
Volume request message, after OCS receives the charging quota request message of QQ application of UE2, detects this UE2
QQ flow bag business account balance sufficient, OCS returns charging quota response message, PCEF to PCEF
Equipment is that UE2 creates PDP Context, and UE2 is according to this PDP Context and offer QQ application data services
Server carries out data interaction, PCEF equipment according to the charging policy in this charging quota response message and
The QQ flow of UE2 real consumption determines flow rate.
In implementing, that sets up between above-mentioned OCS and PCEF equipment disappears for business transferring freeze request
Breath and business are thawed and are asked the message interface of message, can be realized by following several ways.
The first, by the RAR message of standard Gy interface, (Re-Auth-Request re-authenticates/authorizes
Request, this order can be sent to provide the access device (such as PCEF equipment) of conversational services by OCS, come
Request carries out re-authentication/mandate to user) realize, specifically can utilize in RAR message
Re-Auth-Request-Type field identification business frozen state or business thawed state, as increased
Subscription-Status AVP for transmit business freeze request message based on data service account or
Business is thawed and is asked message, the Subscription-Status AVP of above-mentioned RAR message possible composition side
Formula is as shown in table 1, and wherein, AVP (Attribute-Value-Pair) is the message body of Diameter message
The unit divided, Diameter is encapsulated the various information relevant to a piece of news, so with AVP one by one
After end to end convergence one by one.AVP Code is the classification of AVP, is used for identifying AVP.Such as Original-Host
The Code value of AVP is 264.
Subscription-Status::=<AVP Header:30000>
{Subscription-Id-Type}
{Subscription-Id-Data}
{Subscription-Id-Status}
*{Service-Status}
Service-Status::=<AVP Header:30002>
{Service-Identifier}
{Service–Id-Status}
AVP field signal in table 1.Gy interface RAR message
In table 1: in the case of RAR message can not create Gy session for user, OCS notify
PCEF directly revises the service condition mark of the data service account of UE in PCEF.Wherein,
[Subscription-Id-Type] (AVP Code=450) is user account identity type,
[Subscription-Id-Data] (AVP Code=444) is then the particular content of overall business account, such as
Subscription-Id-Type value be the type of 0 interval scale entirety business account be MSISDN, this kind of situation
The corresponding typing subscriber phone number of lower Subscription-Id-Data meeting, such as 13813800001, such as
Subscription-Id-Type value be the type of 1 interval scale entirety business account be IMSI, in such cases
The corresponding typing UE identification code of Subscription-Id-Data meeting, such as 460-00-4777770001, etc..
The second, by CCA message (Credit-Control-Answer, the diameter credit control of standard Gy interface
Response) realize, specifically can by extend CCA message identifier data service account service condition, as
CCA message increases Subscription-Id-Status AVP for transmitting business based on data service account
Freeze request or business are thawed and are asked.
In one embodiment, can extend in CCA message PS-Information AVP, as increased
Service-Status AVP thaws for transmitting business freeze request based on specific transactions account or business
Request, as shown in table 2.
AVP field signal in table 2.Gy interface CCA message
In table 2, adding boldface type is new field, owing to CCA message is conversation-based, disappears at CCR
Having comprised Subscriber Number in breath, CCA message is as the return message of CCR, it is not necessary to the overall industry of extension
The particular content field of business account, it is only necessary to increase service condition and the specific transactions account of overall business account
Particular content and service condition 2 class field.Service Status AVP is used for identifying specific transactions
The service condition of account, increases, as the newly-increased letter of PS business information at PS-Information AVP
Breath.
In another embodiment, it is also possible to increase Service-Status in the MSCC AVP of CCA message
AVP thaws ask, such as table 2 institute for transmitting business freeze request based on data service account or business
Show.
AVP field signal in table 3.Gy interface CCA message
In table 3, adding boldface type is new field, because CCA message is conversation-based, disappears at CCR
Having comprised Subscriber Number in breath, CCA message is as the return message of CCR, it is not necessary to the overall industry of extension
The particular content field of business account, it is only necessary to increase service condition and the specific transactions account of overall business account
Number particular content and service condition 2 class field.MSCC AVP originally can in Gy chargeable session
To identify a concrete business, state AVP of activating business in MSCC AVP, can naturally associate phase
The service condition answered.
AVP in above-mentioned table 2, table 3 may be incorporated for identifying the service condition of data service account, should
Service condition can select according to implementing of PCEF or OCS, for expanding in MSCC AVP
The Service-Status AVP of exhibition, the particular content of its corresponding business account, both can be by MSCC
Service-Identifier (AVP Code=439) in AVP determines, it is also possible to by Service-Status
Interior Service-Identifier (AVP Code=30003) determines.Additionally, described in the embodiment of the present invention
Definition simply citing, the value of this AVP Code or the operator code of association of AVP Code
The value of Vendor-ID can be arranged according to implementing of PCEF and OCS.
The third, realize business transferring freeze request by other interfaces (such as Web service interface) and disappear
Breath and business are thawed request message, and a kind of possible constituted mode of message field is as shown in table 4.
Table 4. data service is freezed or the signal of defrosting notification field
Table 5.Service-Status-List data service status list field is illustrated
Referring to Fig. 4, Fig. 4 is the flow process of another kind of data service billing method disclosed in the embodiment of the present invention
Schematic diagram.Wherein, the method described by Fig. 4 is described from OCS side.As shown in Figure 4,
The method may comprise steps of:
S401, OCS receive the charging quota request message that PCEF equipment sends.
In the embodiment of the present invention, above-mentioned charging quota request message is that PCEF equipment is receiving UE transmission
The PDP Context request of the data service account carrying UE, and the data service account of UE detected
Number service condition be thawed state in the case of, to OCS send.
In implementing, UE can be according to the data service interactive operation of user (such as web page browsing, video
Viewing, content are downloaded, instant messaging interaction message, etc.) sending PDP Context to PCEF equipment please
Ask, or, according to the data interaction request of the application program of running background (as Baidu's map background update,
Music player pushes song recommendations everyday, etc.) send PDP Context request to PCEF equipment.
S402, OCS detect that the above-mentioned data service account of the UE in charging quota request message is unsatisfactory for
Pre-conditioned, send business freeze request message to PCEF equipment, above-mentioned business freeze request message is used
In indicating above-mentioned PCEF equipment that the service condition of the data service account of UE is revised as frozen state, with
Refusal UE above-mentioned data service account meet above-mentioned pre-conditioned before initiate PDP Context ask.
In the embodiment of the present invention, above-mentioned pre-conditioned include: the UE's in above-mentioned charging quota request message
The account balance of data service account is more than or equal to presetting account balance;Or, above-mentioned charging quota request
The Operational Visit permission type of the data service account of the UE in message is authorization type, above-mentioned Operational Visit
Permission type includes authorization type and Limit Type.
In implementing, above-mentioned OCS detects the above-mentioned data industry of the UE in charging quota request message
Business account is unsatisfactory for pre-conditioned specific implementation and may is that above-mentioned OCS detects that charging quota please
Ask the account balance of above-mentioned data service account of the UE in message less than presetting account balance.Such as, OCS
-15 yuan, the account balance position (i.e. arrearage 15 yuan) of the data service account of UE detected, it is assumed that this UE
The default account balance of data service account be-10 yuan (the highest arrearage value is 10 yuan), then OCS
Business freeze request message is sent to PCEF equipment.
Above-mentioned OCS detects that the above-mentioned data service account of the UE in charging quota request message is unsatisfactory for
Pre-conditioned specific implementation is it may also is that above-mentioned OCS detects in charging quota request message
The Operational Visit permission type of the above-mentioned data service account of UE is Limit Type.Such as, OCS detects
The QQ music of UE freely listens the Operational Visit permission type of flow bag to be Limit Type, then OCS is to PCEF
Equipment sends the business freeze request message freely listening flow bag business for the QQ music freezing above-mentioned UE.
By implementing the method described by Fig. 4, OCS please in the charging quota receiving the transmission of PCEF equipment
After seeking message, detect that the data service account of the UE in charging quota request message is unsatisfactory for presetting bar
Part, sends business freeze request message to PCEF equipment, and PCEF equipment is according to business freeze request message
The service condition of the data service account of UE is revised as frozen state by thawed state, and directly refuses
The PDP Context request of UE.And the situation of the PDP Context request at PCEF equipment refusal UE
Under, PCEF equipment will not to OCS send charging quota request message, so advantageously reduce OCS and
The charging authentication interaction message repeated between PCEF equipment, thus slow down number between PCEF equipment and OCS
According to the pressure of link, reduce the performance loss of OCS.
Optionally, in the embodiment of the present invention, above-mentioned OCS can also receive carrying of rear end IT system transmission
The account having the data service account of UE supplements message with money, supplements message with money according to account and sends to PCEF equipment
Business is thawed and is asked message, in order to PCEF equipment thaws request message by the data industry of UE according to business
The service condition of business account is revised as thawed state by frozen state.
It can be seen that above-mentioned optional embodiment, OCS can supplement message real-time informing PCEF with money according to UE
The service condition of the data service account of renewal of the equipment UE, beneficially PCEF equipment receives UE's in time
PDP Context is asked, and traffic rate operation after the charging quota response message obtaining OCS,
Shorten after user supplements with money and wait the time that data path reconnects, thus improve data communication efficiency, promote and use
Family is experienced.
Additionally, due to the data service account in business defrosting message can be specific transactions account, this makes
PCEF equipment thaw this specific transactions account time, still freeze other data service accounts, thus realize accurately
Operational Visit control.
Referring to Fig. 5, Fig. 5 is that disclosed in the embodiment of the present invention, the flow process of a kind of data service billing method is shown
It is intended to.Wherein, the method described by Fig. 5 is to be described from the many sides of UE, PCEF equipment and OCS
's.As it is shown in figure 5, the method may comprise steps of:
The PDP Context that S501, UE send, to PCEF equipment, the data service account carrying UE is asked
Ask.
S502, PCEF detect that the service condition of the data service account of UE is frozen state, PCEF
Equipment refuses the request of above-mentioned PDP Context.
Wherein, implementing the method described by Fig. 5, what PCEF equipment reception UE sent carries UE's
After the PDP Context request of data service account, the data service account of PCEF equipment Inspection to UE
Service condition be frozen state, the most directly refuse the PDP Context request of UE, and at PCEF equipment
In the case of the PDP Context request of refusal UE, PCEF equipment will not send charging quota to OCS
Request message, so advantageously reducing the charging authentication interaction message repeated between OCS and PCEF equipment,
Thus slow down the pressure of data link between PCEF equipment and OCS, reduce the performance loss of OCS.
As shown in Figure 6, above-mentioned steps S501UE sends the data service carrying UE to PCEF equipment
After the PDP Context request of account, optionally, the data service billing method in the present embodiment also may be used
To comprise the following steps:
S601, PCEF equipment Inspection is thawed state to the service condition of the data service account of UE.
In the embodiment of the present invention, the service condition of the data service account of above-mentioned PCEF equipment Inspection to UE
Specific implementation for thawed state may include that the PCEF equipment Inspection data service account to UE
Service condition be designated thawed state mark, or, the data service account of PCEF equipment Inspection to UE
Number Operational Visit permission type be authorization type, etc..
S602, PCEF equipment sends charging quota request message to Online Charging System OCS.
S603, OCS receive charging quota request message, the UE in charging quota request message detected
Data service account be unsatisfactory for pre-conditioned.
S604, OCS send business freeze request message to PCEF equipment.
S605, PCEF equipment receives above-mentioned business freeze request message, by the data service account of UE
Service condition is revised as frozen state by thawed state.
S606, UE initiate PDP Context request again to PCEF equipment.
S607, PCEF equipment receives the PDP Context request that UE initiates again, the number of UE detected
It is frozen state according to the service condition of business account, the PDP Context request of refusal UE.
S608, UE IT system to the back-end sends the account charging request of the data service account of UE.
S609, rear end IT system receives above-mentioned account charging request, sends account to OCS and supplements message with money.
S610, OCS receive above-mentioned account and supplement message with money, send business defrosting request to PCEF equipment and disappear
Breath.
S611, PCEF equipment receives business defrosting request message, by the business of the data service account of UE
State is revised as thawed state by frozen state.
S612, UE initiate PDP Context request again to PCEF equipment.
S613, PCEF equipment Inspection is thawed state to the service condition of the data service account of UE.
S614, PCEF equipment again sends charging quota request message to OCS.
S615, OCS receive the charging quota request message that above-mentioned PCEF equipment is initiated again, detect
The data service account of the UE in above-mentioned charging quota request message meets pre-conditioned.
S616, OCS send charging quota response message to PCEF equipment.
S617, PCEF equipment sets up the data path between UE and server, and joins according to above-mentioned charging
Charging policy and the flow of UE consumption in volume response message determine flow rate.
It can be seen that the method described by enforcement Fig. 6, OCS can supplement message real-time informing with money according to UE
The service condition of the data service account of PCEF renewal of the equipment UE, beneficially PCEF equipment receives in time
The PDP Context request of UE, and traffic rate after the charging quota response message obtaining OCS
Operation, shortens the time that data service communications link reconnects that waits after user supplements with money, thus improves data and lead to
Letter efficiency, promotes Consumer's Experience.
Additionally, due to the data service account in business defrosting message can be specific transactions account, this makes
PCEF equipment thaw this specific transactions account time, still freeze other data service accounts, thus realize accurately
Operational Visit control.
Referring to Fig. 7, Fig. 7 is the modular diagram of a kind of PCEF equipment disclosed in the embodiment of the present invention.
As it is shown in fig. 7, this PCEF equipment can include receiver module 701, request refusal module 702, wherein:
Above-mentioned receiver module 701, for receiving the PDP of the data service account carrying UE that UE sends
Context request;
In the embodiment of the present invention, above-mentioned receiver module 701 can receive UE by carrying that wireless base station sends
Having the PDP Context request of the data service account of UE, the operation that UE sends PDP Context request is permissible
By user, the data service of UE is accessed operation (as web page browsing, video-see, content are downloaded, immediately
Communication interaction message, etc.) trigger, it is also possible to please by the data interaction of the application program of the running background of UE
Ask (as Baidu's map background update, everyday music player push song recommendations, etc.) trigger.
Above-mentioned request refusal module 702, for detecting that the service condition of the data service account of UE is for freezing
State, refusal PDP Context request.
In the embodiment of the present invention, in above-mentioned PCEF equipment, storage has and includes the data service account of UE and above-mentioned
The status list of the service condition mark of data service account, wherein, above-mentioned service condition mark includes freezing
Status indicator and defrosting status indicator;Above-mentioned request refusal module 702 specifically for:
Inquire about in above-mentioned PCEF equipment the above-mentioned status list of storage, and with the data service account of UE only
One index information is inquiry foundation, inquires the above-mentioned data service account corresponding with above-mentioned unique index information
Number service condition be designated frozen state mark;
Or,
In above-mentioned PCEF equipment, storage has and includes the data service account of UE and above-mentioned data service account
The permissions list of Operational Visit permission type, wherein, above-mentioned Operational Visit permission type include authorization type and
Limit Type;Above-mentioned request refusal module 702 specifically for:
Inquire about in above-mentioned PCEF equipment the above-mentioned permissions list of storage, and with the data service account of UE only
One index information is inquiry foundation, inquires the above-mentioned data service account corresponding with above-mentioned unique index information
Number Operational Visit permission type be Limit Type.
It can be seen that the receiver module 701 of the PCEF equipment shown in Fig. 7 receive UE send carry UE
Data service account PDP Context request after, the request of PCEF equipment refusal module 702 detects
The service condition of the data service account of UE is frozen state, the most directly refuses the PDP Context request of UE,
And in the case of request refusal module 702 refuses the PDP Context request of UE, PCEF equipment will not be to
OCS sends charging quota request message, so advantageously reducing the meter repeated between OCS and PCEF equipment
Take authentication interaction message, thus slow down the pressure of data link between PCEF equipment and OCS, reduce OCS
Performance loss.
Optionally, in the embodiment of the present invention, above-mentioned PCEF equipment can also include:
Sending module, for receiving the data service account carrying UE of UE transmission at receiver module
After PDP Context request, detect that the service condition of the data service account of UE is thawed state, to
OCS sends charging quota request message.
Receive control module, be used for, at sending module after OCS sends charging quota request message, receiving
The response message that OCS responds charging quota request message and sends, and perform charging control according to response message
Operation.
In one embodiment, above-mentioned response message is charging quota response message, and above-mentioned reception control module has
Body is used for: determine flow rate according to the flow that the charging policy in charging quota response message and UE consume,
Wherein, charging quota response message is the data industry of OCS UE in charging quota request message being detected
Business account meet pre-conditioned in the case of, to receive control module send.
In another embodiment, above-mentioned response message is business freeze request message, above-mentioned reception control module
Specifically for: according to business freeze request message by the service condition of the data service account of UE by the shape that thaws
State is revised as frozen state, and refuses PDP Context request, and wherein, business freeze request message is OCS
The data service account of the UE in charging quota request message being detected is unsatisfactory for pre-conditioned situation
Under, to receiving what control module sent.
In implementing, above-mentioned reception control module receives above-mentioned OCS and responds above-mentioned charging quota request message
And the specific implementation of the response message sent may is that the above-mentioned OCS of reception responds above-mentioned charging quota and asks
Seek the response message that message is sent by standard Gy interface;Or, receive above-mentioned OCS and respond above-mentioned meter
The response message that expense quota request message is sent by Web Service interface.
Optionally, in the embodiment of the present invention, above-mentioned PCEF equipment can also include:
Thaw request receiver module, and for receiving the business defrosting request message that OCS sends, business is thawed please
Seeking message is that OCS receives the account of the data service account carrying UE that rear end IT system sends and supplements with money
Send after message.
Defrosting module, for thawing request message by the service condition of the data service account of UE according to business
It is revised as thawed state by frozen state.
In above-mentioned optional embodiment, the reception control module of PCEF equipment can be according to business freeze request
The service condition of the data service account of UE is revised as frozen state, PCEF equipment by thawed state by message
Defrosting module can according to business thaw request message by the service condition of the data service account of UE by freezing
Knot status modifier is thawed state, is advantageously implemented accurate Operational Visit and controls.
Referring to Fig. 8, Fig. 8 is the modular diagram of a kind of OCS disclosed in the embodiment of the present invention, uses
In realizing data service billing method disclosed in the embodiment of the present invention.As shown in Figure 8, the embodiment of the present invention is public
A kind of OCS opened includes receiver module 801, sending module 802:
Above-mentioned receiver module 801, for receiving the charging quota request message that PCEF equipment sends.
Wherein, to be PCEF equipment carry UE receive that UE sends to above-mentioned charging quota request message
The PDP Context request of data service account, and the service condition of the data service account of UE detected
In the case of being thawed state, send to receiver module;
Above-mentioned sending module 802, for detecting the UE in the charging quota request message that receiver module receives
Data service account be unsatisfactory for pre-conditioned, to PCEF equipment send business freeze request message, above-mentioned
Business freeze request message is for indicating above-mentioned PCEF equipment by the service condition of the data service account of UE
Be revised as frozen state, with refuse UE above-mentioned data service account meet above-mentioned pre-conditioned before initiate
PDP Context is asked.
Wherein, above-mentioned pre-conditioned include: the data service account of the UE in above-mentioned charging quota request message
Number account balance more than or equal to preset account balance;Or, in above-mentioned charging quota request message
The Operational Visit permission type of the data service account of UE is authorization type, above-mentioned Operational Visit permission type
Including authorization type and Limit Type.
Optionally, in the embodiment of the present invention, above-mentioned message transmission module 802 sends business to PCEF equipment and freezes
The specific implementation of knot request message may include that and sends business by standard Gy interface to PCEF equipment
Freeze request message;Or, send business freeze request by Web Service interface to PCEF equipment and disappear
Breath.
Optionally, in the embodiment of the present invention, above-mentioned OCS can also include:
Supplement message reception module with money, for receiving the data service account carrying UE that rear end IT system sends
Number account supplement message with money;
Defrosting request sending module, for according to supplement with money message reception module receive account supplement with money message to
PCEF equipment sends business defrosting request message, in order to PCEF equipment thaws request message according to business will
The service condition of the data service account of UE is revised as thawed state by frozen state.
Wherein, the OCS shown in Fig. 8 receive PCEF equipment send charging quota request message after,
Detect that the data service account of the UE in charging quota request message is unsatisfactory for pre-conditioned, set to PCEF
Preparation send business freeze request message, PCEF equipment according to business freeze request message by the data service of UE
The service condition of account is revised as frozen state by thawed state, and refuses PDP Context request.And
In the case of the PDP Context request of PCEF equipment refusal UE, PCEF equipment will not send charging to OCS
Quota request message, disappears alternately so advantageously reducing the charging authentication repeated between OCS and PCEF equipment
Breath, thus slow down the pressure of data link between PCEF equipment and OCS, reduce the performance loss of OCS.
Additionally, OCS can supplement the data service account of message real-time informing PCEF renewal of the equipment UE with money according to UE
Number service condition, beneficially PCEF equipment receive in time UE PDP Context request, and obtain OCS
Charging quota response message after traffic rate operation, shorten user supplement with money after wait data service communications
The time that link reconnects, thus improve data communication efficiency, promote Consumer's Experience.
Referring to Fig. 9, Fig. 9 is that disclosed in the embodiment of the present invention, the framework of a kind of data service billing system shows
It is intended to, is used for performing data service billing method disclosed in the embodiment of the present invention.As it is shown in figure 9, these data
Service billing system includes UE, PCEF equipment and OCS equipment.Wherein:
Above-mentioned UE, upper and lower for sending the PDP of the data service account carrying UE to PCEF equipment
Literary composition request;
Above-mentioned PCEF equipment, for detecting that the service condition of the data service account of above-mentioned UE is for freezing
State, refusal PDP Context request.
In one embodiment, in above-mentioned PCEF equipment storage have include above-mentioned UE data service account and
The status list of the service condition mark of above-mentioned data service account, wherein, above-mentioned service condition mark bag
Include frozen state mark and defrosting status indicator;Above-mentioned PCEF equipment specifically for:
Inquire about in above-mentioned PCEF equipment the above-mentioned status list of storage, and with the data service account of UE only
One index information is inquiry foundation, inquires the above-mentioned data service account corresponding with above-mentioned unique index information
Number service condition be designated frozen state mark;
In another embodiment.In above-mentioned PCEF equipment, storage has and includes the data service account of UE and above-mentioned
The permissions list of the Operational Visit permission type of data service account, wherein, above-mentioned Operational Visit permission type
Including authorization type and Limit Type;Above-mentioned PCEF equipment specifically for:
Inquire about in above-mentioned PCEF equipment the above-mentioned permissions list of storage, and with the data service account of UE
Unique index information is inquiry foundation, inquires the above-mentioned data industry corresponding with above-mentioned unique index information
The Operational Visit permission type of business account is Limit Type.
Optionally, in the embodiment of the present invention, PCEF equipment is additionally operable to detect the data service account of UE
Service condition is thawed state, sends charging quota request message to OCS.
Above-mentioned OCS, for detecting that the data service account of the UE in charging quota request message is unsatisfactory for
Pre-conditioned, send business freeze request message to PCEF equipment.
Above-mentioned PCEF equipment, is additionally operable to the industry of the data service account of UE according to business freeze request message
Business state is revised as frozen state by thawed state, and refuses PDP Context request.
Wherein, in the data service billing system shown in Fig. 9, UE sends to PCEF equipment and carries UE's
After the PDP Context request of data service account, the data service account of PCEF equipment Inspection to UE
Service condition is frozen state, the most directly refuses the PDP Context request of UE, and refuses at PCEF equipment
In the case of the PDP Context request of UE, PCEF equipment will not send charging quota request message to OCS,
So advantageously reducing the charging authentication interaction message repeated between OCS and PCEF equipment, thus slow down
The pressure of data link between PCEF equipment and OCS, reduces the performance loss of OCS.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer can
Reading in storage medium, storage medium may include that flash disk, read only memory (Read-Only
Memory, ROM), random access device (Random Access Memory, RAM), disk or
CD etc..
Above to data service billing method a kind of disclosed in the embodiment of the present invention, PCEF equipment, OCS and
System is described in detail, and principle and the embodiment of the present invention are carried out by specific case used herein
Illustrating, the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;With
Time, for one of ordinary skill in the art, according to the thought of the present invention, in detailed description of the invention and application
All will change in scope, in sum, this specification content should not be construed as limitation of the present invention.