WO2006050670A1 - A method for processing a charging key - Google Patents

A method for processing a charging key Download PDF

Info

Publication number
WO2006050670A1
WO2006050670A1 PCT/CN2005/001898 CN2005001898W WO2006050670A1 WO 2006050670 A1 WO2006050670 A1 WO 2006050670A1 CN 2005001898 W CN2005001898 W CN 2005001898W WO 2006050670 A1 WO2006050670 A1 WO 2006050670A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
tpf
ocs
credit
key
Prior art date
Application number
PCT/CN2005/001898
Other languages
French (fr)
Chinese (zh)
Inventor
Xiaoqin Duan
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2006050670A1 publication Critical patent/WO2006050670A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications

Definitions

  • the present invention relates to the field of packet data charging, and more particularly to a method for processing a charging rule by a transport plane functional entity. Background of the invention
  • FIG. 1 shows a packet data protocol context (PDP Context, Packet Data Protocol Context) activation, a data transmission, and a deactivation flowchart.
  • PDP Context Packet Data Protocol Context
  • PDN Packet Data Network
  • deactivating the PDP Context includes the following steps:
  • Step 101 The mobile terminal (MS) sends a PDP Context Request (Active PDP Context Request) to the Serving GPRS Support Node (SGSN), where the Activate PDP Context Request carries the network layer service access point.
  • Information NSAPI, Network Layer Service Access Point Identifier
  • PDP type Access Point Name
  • API Access Point Name
  • QoS Quality of Service
  • TI Transaction Identifier
  • the SGSN and the Gateway GPRS Support Node (GGSN) are used as part of the Tunnel Identifier (TID) to identify the PDP Context.
  • the PDP type includes the end-to-end protocol (PPP, Peer).
  • APN can be provided by the MS to the SGSN, and the SGSN is addressed to the corresponding GGSN according to the APN, and the GGSN The MS may not provide the APN to the SGSN according to the APN.
  • the SGSN may select the default APN according to the subscription information of the MS user.
  • the QoS parameter is the quality requirement of the packet data service specified by the MS.
  • Step 102 After receiving the Activate PDP Context Request, the SGSN performs security check and encryption with the MS. This step is optional.
  • Step 103 The SGSN parses the address information of the GGSN according to the APN. If the SGSN can parse the address information of the GGSN according to the AP, the TEID is created for the PDP Context, and the TEED can be an International Mobile Subscriber Identity (MSI) and an NSAPI.
  • the SGSN sends a PDP Context Request to the GGSN.
  • the PDP Context Request contains the PDP type, PDP address, APN, QoS parameters, TEID, and selection mode.
  • the PDP address can be MS.
  • the IP address is an optional parameter.
  • the PDP Context creation request may not carry the PDP address.
  • the GGSN may assign an IP address to the MS in the subsequent processing, or may assign an IP to the MS by the PDN that finally establishes a connection with the MS. Address;
  • the selection mode refers to the APN selection mode, that is, whether the APN is selected by the MS or selected by the SGSN. If the SGSN cannot resolve the address information of the GGSN according to the APN, the SGSN rejects the PDP Context activation request initiated by the MS.
  • Step 104 After receiving the PDP Context creation request, the GGSN determines an external PDN according to the APN, then allocates a charging identifier (Charging ED), starts charging, and negotiates QoS. If the GGSN can meet the quality of service requirements of the QoS parameter, The SGSN returns a PDP Context Response (Create PDP Context Response), and the PDP Context creation response carries information such as a TEID, a PDP address, a Backbone Bearer protocol, an agreed QoS parameter, and a Charging ID. If the GGSN cannot meet the quality of service requirements of the QoS parameters, the GGSN rejects the PDP Context creation request initiated by the SGSN. The SGSN then rejects the PDP Context activation request initiated by the MS.
  • a charging identifier Charging ED
  • Step 105 After receiving the PDP Context creation response, the SGSN inserts an NSAPI and GGSN address information for identifying the PDP Context in the PDP Context, and then selects a radio priority according to the agreed QoS parameter, and then returns a PDP Context activation response to the MS. (Activate PDP Context Accept), the PDP Context activation response carries information such as PDP type, PDP address, T-defined QoS parameters, wireless priority, and PDP configuration options. And, the SGSN starts charging. Upon receiving the PDP Context activation response, the MS has established a direct route between the MS and the GGSN, and can perform packet data transmission.
  • Step 106 The MS performs packet data interaction through the SGSN, the GGSN, and the PDN.
  • Step 108 After receiving the PDP Context deactivation request, the SGSN performs security check and encryption with the MS. This step is an optional step.
  • Steps 109 to 111 The SGSN sends a PDP Context Request to the GGSN, and the PDP Context Delete Request carries the TEID.
  • the GGSN After receiving the PDP Context deletion request, the GGSN ends the charging of the MS, deletes the PDP Context corresponding to the TEID, and then sends a PDP Context Delete Response (PDP Context Response) to the SGSN, where the PDP Context deletion response carries the SG SGSN.
  • PDP Context Delete Response PDP Context Delete Response
  • the charging of the MS is ended, the PDP Context corresponding to the TEID is deleted, and then the PDP Context Deactivation PDP Context Response is sent to the MS, and the PDP Context deactivation response carries the TI. After the MS receives the PDP Context deactivation response, it deletes the PDP Context corresponding to ⁇ .
  • the charging termination point is set in the PDP Context.
  • the MS can perform multiple services based on an activated PDP Context, that is, if the PDN can provide multiple services, such as email (email), Based on the WAP (Wireless Application Protocol) browsing service and the file transfer protocol (FTP) file transfer service, the MS can pass an activated PDP after establishing a transmission channel with the PDN.
  • email email
  • WAP Wireless Application Protocol
  • FTP file transfer protocol
  • the Context carries various services that the PDN can provide.
  • the charging mode of the operator for various services is likely to adopt different charging methods.
  • the e-mail receiving and sending events may be triggered by the secondary charging, and the WAP browsing service may be based on the flow accounting fee.
  • the rate of the WAP browsing service and the rate of the file transfer service are different according to the flow rate. Therefore, according to the existing GPRS charging system, different services carried by the same PDP Context cannot be performed at all. Perform differentiated billing.
  • IP-based billing data streams (FBC, Flow Based Charging) 0 for a packet data service, MS users
  • IP Flow IP-based billing data streams
  • FBC Flow Based Charging
  • All IP data streams (IP Flow) transmitted and received may also be IP packets, which are collectively referred to as Service Data Flow, that is, the service data stream is multiple IP data.
  • the set of flows is composed, so the charging based on the IP data stream can truly reflect the occupation of resources by a certain service data flow.
  • the charging based on the rp data stream can be considered as filtering out the different data flows of different services carried in the same PDP Context through filters of similar filters, and then separately filtering the IP data flows filtered by different filters.
  • the granularity of the IP data-based charging is much smaller than the charging granularity based on a PDP Context.
  • the granularity can be regarded as the size of the screening hole.
  • the charging granularity based on a PDP Context is a PDP Context.
  • the meshing granularity based on the IP data stream is an IP service data stream is a sieve hole, that is, a plurality of sieve holes are included for one PDP Context, and therefore, the charging and ratio based on the IP data stream is based on Compared to the charging of a PDP Context, the billing based on the EP data stream can provide a more abundant charging means for the operator or the service provider.
  • the 3GPP describes the system structure, functional requirements, and message interaction procedures of the FBC.
  • the FBC system structure supporting online charging is shown in Figure 2A.
  • the customized application based on mobile network enhanced logic (CAMEL, Customised Application for Mobile Network Enhanced Logic (SCP) Service Control Point (SCP) and Service Data Flow Based Credit Control Function (CCF) 202 constitute an online charging system (OCS, Online Charging System ) 206.
  • the CCF 202 communicates with the Service Data Flow Based Charging Rule Function (CRF) 203 through the Rx interface, and the CRF 203 communicates with the Application Function Entity (AF) through the Rx interface.
  • the CRF 203 communicates with the Traffic Plane Function (TPF) 205 through the Gx interface, and the CCF 202 communicates with the TEF 205 through the Gy interface.
  • CCF Service Data Flow Based Charging Rule Function
  • the structure of the FBC system supporting offline charging is as shown in FIG. 2B.
  • the CRF 203 communicates with the AF 204 through the Rx interface, the CRF 203 communicates with the TPF 205 through the Gx interface, and the TPF 205 communicates with the charging gateway function entity through the Gz interface (CGF, Charging).
  • the Gateway Function 207 is interworking with a Charging Collection Function (CCF) 208.
  • CCF Charging Collection Function
  • the TPF 205 carries the IP data stream.
  • the TPF 205 sends a charging rule request to the CRP 203 through the Gx interface, where the charging rule request carries information related to the user and the MS, bearer characteristics, and Network related information, etc., wherein the information related to the user and the MS may be a mobile station international number (MSISDN), an international mobile subscriber identity (IMSI), etc., and the network related information may be a mobile network coding (MNC), a mobile country. Code (MCC), etc.
  • MSISDN mobile station international number
  • IMSI international mobile subscriber identity
  • MNC mobile network coding
  • MCC mobile country. Code
  • the charging rules may be different, such as the corresponding rate of the QoS parameter falling. Also fell.
  • the TPF 205 may resend the charging rule request to the CRF 203 to request a new charging rule when the bearer is modified; the CRF 203 selects an appropriate charging rule according to the above input information provided by the TPF 205, and returns to the TPF 205.
  • the selected charging rule includes the charging mechanism, the charging type, the charging key, the service data stream filter, and the charging rule priority.
  • the charging mechanism may be online charging or offline charging; the charging type may be charging based on the length of time or based on data traffic; the charging button is a parameter related to the rate, and the CRF 203 may not be directly
  • the TPF 205 is provided with a rate, and only the rate-related parameters are provided to the TPF 205; the service data filter is used to indicate which IP data streams the TPF 205 filters, and then the TPF 205 filters the filtered IP data according to the charging rules.
  • the service data filter may include an IP5 tuple.
  • the IP5 tuple may include source/destination IP address, source/destination port number (Port Number), protocol identifier (Protocol ID), and the like.
  • CRF 203 indicates TPF 205 to source address. Filters the IP data stream of 10.0.0.1, the destination address is 10.0.0.2, the source/destination port number is 20, and the protocol type is Transmission Control Protocol (TCP), and the filtered IP data stream is calculated according to the charging rule. fee
  • the CRF 203 may provide a trigger event (Event Trigger) to the TPF 205 to request the THF 205 to request a new charging rule from the CRF 205 when a specific event occurs, such as the CRF 203 requiring the TPF 205 to perform an event modification on some bearer. At the time, a new charging rule is requested from the CRF 203. Trigger events can be thought of as events related to billing rules.
  • the 3GPP specification describes the charging mode of the CRF that controls the TPF through the triggering event reporting mechanism, that is, after the triggering event is detected, the CRF is reported to the CRF, and the CR detects the change of the bearer through the triggering event reported by the TPF, and then determines the corresponding meter.
  • Trigger events defined in the 3GPP specifications may include: Common Land Mobile Communication Network (PLMN) changes (PLMN) Change event, QoS changes event, radio access technology (RAT) type change (RAT type change) event, transport stream template (TFT) change (TFT change) event.
  • PLMN Common Land Mobile Communication Network
  • RAT radio access technology
  • TFT transport stream template
  • the CRP 203 may also select an appropriate charging rule based on the input information of the AF 204 or the OCS 206, such as the AF 204 notifying the CRF 203 of the service currently used by the user.
  • CRF 203 selects the corresponding charging rule according to the type of service.
  • the OCS 206 is an online charging system, and is composed of two functional entities: SCP 201 and CCF (Service Data Flow Based Credit Control Function) 202.
  • the CCF (Service Data Flow Based Credit Control Function) 202 is a functional entity that performs credit control. Applying only to the online billing system can be achieved by adding new features to the existing OCS 206.
  • the CCF (Service Data Flow Based Credit Control Function) 202 manages and controls the user credit.
  • the CCF (Service Data Flow Based Credit Control Function) 202 is in the user credit pool.
  • the credit is authenticated, and the credit that the user can use is delivered to the TPF 205 through the Gy interface.
  • OCS 206 may require TPF 205 to report to the re-authorisation triggers when they occur, and then OCS 206 re-authenticates the user based on the corresponding re-authentication event on TPF 205, and possibly Recalculate the user's credit. For example, after the user credit provided by the OCS 206 to the TPF 205 is used, the TPF 205 needs to report the allowed user credit usage expiration event to the OCS 206 according to the allowed credit expiration event in the re-authentication event, and the OCS 206 according to the remaining user account. Information, recalculate the credits allowed to be used by the user.
  • the OCS 206 determines the rate according to the current location of the user, and calculates the credit of the user according to the rate; when the user moves to another location, if the PLMN changes, the 205 needs to be re-examined. PLMN change event in the right event, The OMC 206 reports the occurrence of the PLMN change event, and the OCS 206 re-determines the rate based on the current location of the user after updating, and recalculates the user's credit.
  • the OCS 206 determines the rate according to the current QoS parameter of the service used by the user
  • the TPF 205 needs to report the occurrence of the bearer modification event to the OCS 206 according to the bearer modification event in the re-authentication event.
  • the OCS 206 determines the rate based on the modified QoS parameters of the user and recalculates the credit of the user.
  • the 3GPP specification also describes the use of the re-authentication event by the OCS to control the credit usage of the TPF. That is, the TPF reports the re-authentication event reported by the TCS to the OCS after the re-authentication event occurs.
  • the credit usage of the user and the change of the bearer are known, and the credit of the user is recalculated and sent to the TPF.
  • the re-authentication events defined in the 3GPP specifications may include: a credit authorization lifetime expiry event, a user idle state timeout event, a charging rule is changed event, a PLMN history event, QoS parameter change event, RAT type change event, transport stream template change event, and the like.
  • the TPF 205 is a GGSN
  • the AF is a service gateway or a service server in the PDN
  • the CRF 203 is a new logical entity.
  • TPF 205 is the enforcement point of the charging rule
  • CRF 203 is the control point of the charging rule.
  • the method for requesting the credit line described in the 3GHP specification is performed based on each charging rule (Charging Rule), and the specific implementation process is as follows:
  • the TPF receives the CF provided After the charging rule, according to the online charging mechanism in the charging rule, when determining that the credit quota needs to be requested for the charging rule for the charging rule, the TPF directly requests the OCS for the credit quota for the charging rule.
  • the charging granularity of the charging rules provided by the CRP to the TPF is for different service data flows.
  • the TF needs to perform online charging interaction for each service data flow, that is, for each service data flow.
  • TPF needs to request credit line from OCS, OCS According to the TPF credit request, each service data stream needs to be assigned a corresponding credit line and sent to the TPF.
  • an object of the present invention is to provide a method for processing a charging key to improve the processing performance of TPF and OCS.
  • the present invention provides a method for processing a charging key.
  • the method includes the step TPF determining whether the charging key is based on the charging key in the charging rule. A credit line for the charging button has been requested from the OCS, and if not, the TPF sends a credit request to the OCS.
  • the TPF determines that the credit limit for the charging button has been requested from the OCS, and further includes: 1 F does not send a credit request to the OCS, and directly uses the requested credit limit for the charging button.
  • the TPF directly uses the requested credit limit for the charging button, and further includes: the TPF records the charging rule information corresponding to the charging button of the requested credit line.
  • the TPF sends a credit request to the OCS in step A, and then further includes step A1:
  • the OCS returns a credit line to the TPF.
  • the step A1 further includes: the TPF records charging key information that has requested a credit line from the OCS.
  • the step A1 further includes: the TPF records the charging rule information corresponding to the charging button of the requested credit line.
  • the present invention also provides a method for processing a charging button, and the OCS provides a needle to the TPF.
  • the method further includes the step B: the TPF returns the charging key consumption credit corresponding to the re-authentication event to the OCS. Remaining credit line.
  • the step B further includes: the TPF records re-authentication event information corresponding to the charging button.
  • the step B further includes: the OCS performs re-authentication, and then provides the TPF with a newly calculated credit line for the charging button.
  • the step B further includes: the TPF providing the OCS with corresponding input information for the OCS to determine the credit information.
  • the invention also provides a method for processing a charging button, in the case of online charging,
  • the method includes the step C: the TPF determines, according to the charging button in the charging rule, whether there is a charging rule other than the charging rule that needs to be deleted, and uses the credit amount requested for the charging button. If not, the TPF returns the remaining credit limit for the charging button to the OCS.
  • the step C further includes: deleting the charging rule that needs to be deleted by the TPF.
  • the manner in which the TPF requests a credit line is based on each billing key. Since different service data flows may have the same billing rate, that is, different billing rules may have the same billing key, the granularity of the credit limit request based on each billing key is greater than per billing. Regular credit line request. In this way, by implementing the processing procedure in which the TPF requests the credit limit based on each charging key, the interaction between the TPF and the OCS can be effectively reduced, the processing performance of the TPF and the OCS is improved, and the practicability of the entire online charging processing process is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
  • Figure 1 shows a PDP Context activation, data transfer, deactivation flowchart
  • 2A shows a structural diagram of an FBC system supporting online charging
  • Figure 2B shows a block diagram of an FBC system supporting offline charging
  • FIG. 3 is a schematic diagram showing a process of processing a credit limit based on a charge key in the present invention
  • FIG. 4 is a schematic diagram showing a process of re-authentication processing based on a charge key in the present invention. Mode for carrying out the invention
  • the manner in which the TPF requests the credit limit is performed based on each charging key, that is, the TPF uses the charging key as an index of the charging rule, and records the charging rule having the same charging key, so that the TPM is established.
  • the charging rules can be batch processed according to the same charging key, and the processing procedure of the TPF requesting the credit limit based on each charging key is realized.
  • the TPF After the TPF receives the charging rules provided by the CRP, if the new charging rule needs to be established, the TPF first determines whether the charging mechanism in the charging rule to be established is online charging, and if it is online charging, further based on The charging key in the charging rule determines whether a credit line has been requested to the OCS for the charging key. If the credit amount is not requested to the OCS for the charging key, the TPF sends a credit request to the OCS, where the credit request is Carrying the charging button, the OCS calculates a credit line of the user according to the charging button, and returns a credit response to the TPF, where the credit response carries a credit line allocated for the charging button.
  • the TPF records the charging key of the requested credit line and the corresponding relationship with the corresponding charging rule, and can further record the credit amount allocated by the OCS for the charging key.
  • the TPF establishes an online charging interaction information list, in the list, the charging key item of the requested credit line, and records the charging key, such as Charging Key A, and the corresponding "credit quota item" record OCS is allocated for Charging Key A.
  • the credit line corresponds to the "accounting rule item" record charging rule identifier, such as Charging If Rule L has requested a credit line to the OCS for the charging key, for example, the TPF has the charging key, such as Charging Key A, in the "Receiving Key Item of the Requested Credit Line" in the online charging interaction information list. If it is determined that the credit line has been requested from the OCS according to the charging key, the TPF no longer requests the credit line from the OCS, and directly uses the credit amount previously requested for the charging key to the OCS, that is, the online charging interaction information list.
  • the credit limit of the "credit key item" corresponding to the "requested credit limit" is 100M.
  • the TPF records the charging key of the requested credit line and the corresponding relationship with the charging rule, that is, in the established online charging interaction information list, the charging key item with the requested credit line is Charging Key A.
  • the identifier of the charging rule is recorded in the corresponding "Accounting Rule Item", such as Charging Rule 2.
  • the service data flow filtered by the charging rule Charging Rule 1 and the charging rule Charging Rule 2 will consume the credit limit corresponding to the Charging Key A 100M, for example, at a certain moment.
  • the TPF When the TPF detects that the sum of the traffic data traffic filtered by Charging Rule 1 and the traffic data traffic filtered by Charging Rule 2 reaches the credit limit of 100M, the TPF will initiate a re-authentication process, send a credit request to the OCS, and request the OCS as Charging. Key A assigns the corresponding credit limit.
  • the TPF After the TPF receives the charging rule provided by the CRF, if the charging rule needs to be deleted, the TPF first determines whether the charging mechanism in the charging rule to be deleted is online charging, and if it is online charging, further according to the The charging key in the charging rule determines whether there are other charging rules other than the charging rule to be deleted, and uses the credit amount requested for the charging key, such as in the charging rule Charging Rule 1 to be deleted.
  • the TPF determines the charging rule recorded in the "Accounting Rule Item" corresponding to the "Charging Key Item of the Requested Credit Line" Charging Key A in the online charging interaction information list. Indicates whether there are other charging rule identifiers besides Charging Rule 1.
  • the TPF deletes the charging rule specified by the CRF.
  • the service data flow specified by the charging rule is filtered, and the corresponding information in the online charging interaction information list is updated, for example, the charging key Charging Key A in the "receiving key amount of the requested credit line" and its corresponding "
  • the credit limit item "in the credit line and the charging rule item," the charging rule identifier, and the TPF returns the remaining credit line corresponding to the charging button to the OCS, ending the charging button between the TPF and the OCS
  • the interaction operation if the TPF determines that there are other charging rules using the credit line requested for the charging key, that is, the charging key of the "requested credit line” charging key in the online charging interaction information list
  • the charging rule identifier recorded by the "Accounting Rule Item" corresponding to Key A has other charging rule identifiers besides Charging Rule 1.
  • the TPF deletes the charging rule specified by CF, such as Charging Rule 1, and no longer
  • the service data flow specified by the charging rule is filtered, and the corresponding information in the online charging interaction information list is updated, for example, deleting the charging key with the "receiving credit amount of the requested credit line" is Charging Key A Corresponding to "charging rule item" in the charging rule identifier Charging Rule 1, does not return the credit remaining charging key corresponding to the OCS.
  • the processing of the re-authentication process may also be based on each charging key.
  • the OCS may further provide a re-authentication event in addition to providing a credit line to the TPF.
  • the TPF can record the charging key of the requested credit line and the corresponding relationship with the corresponding re-authentication event, for example, the charging key recorded for the "receiving key item of the requested credit line" in the online charging interaction information list.
  • the re-authentication event sent by the OCS is recorded in the corresponding re-recognition event item, and the re-authentication event may be one or more, such as a PLMN change event, a TFT change event, and the like.
  • the OCS can issue the same re-authentication event for different charging keys ; for example, the OCS issues a re-authentication event for the PLMN change for both the Charging Key A and the Charging Key B.
  • the TPF detects that the re-authentication event occurs, the TPF searches for the charging key corresponding to the re-authentication event that occurred, and then returns to the OCS the remaining credit line after the charging key consumes the credit line.
  • the PLMN changes the event, and the TPF searches for the Charging Key A and the Charging Key B corresponding to the PLMN change event according to the information recorded in the online charging interaction information list, and the TPF stops the charging corresponding to the Charging Key A and the Charging Key B respectively.
  • the filtering of the service data flow specified by the rule, calculating the remaining credit limit for the Charging Key A and the Charging Key B to consume the credit line and returning to the OCS, requesting the OCS to reallocate the re-authentication event for the Charging Key A and the Charging Key B's credit limit.
  • the TPF After the OCS performs the re-authentication, the TPF is provided with a recalculated credit line for the charging button, and then the TPF uses the new credit line to monitor the credit usage of the service data stream specified by the charging rule corresponding to the charging button. For example, the OCS provides the TPF with the credit line calculated for the Charging Key A and the Charging Key B respectively. After the TPF obtains the new credit limit for the Charging Key A, the TPF specifies the service data for the charging rule corresponding to the Charging Key A. The flow is filtered to monitor whether the service data flow reaches the credit limit.
  • the TPF After the credit limit is reached, the allowed credit expiration re-authentication event is triggered, and the TPF re-executes the re-authentication process, requesting the OCS to recalculate the new credit limit for the Charging Key A. Similarly, after the TPF obtains a new credit limit for the Charging Key B, the TPF performs an operation similar to that for the Charging Key A, and will not be described here.
  • FIG. 3 is a schematic diagram showing a process of processing a credit line based on a charge key in the present invention. As shown in FIG. 3, the process of requesting a credit line based on a charge button includes the following steps:
  • the CRF may "receive information from an external entity, for example, the CRP receives a message from the TPF, such as the establishment, modification, or deletion of the bearer, or the CRF receives the information provided by the AP or the OCS related to the charging rule.
  • the input information, the charging rule that needs to be provided to the TPF, the CRF may require the TPF to establish a new charging rule, or the TPF may be required to delete the original charging rule, and the TPF may be required to modify the original charging rule.
  • the selected charging rule is provided to the TPF, and the TPF is instructed to perform corresponding operations on the charging rule.
  • Step 303 to step 304 After receiving the charging rule, the TPF operates according to the charging rule. Perform corresponding operations on the charging rules, such as establishing, modifying, or deleting charging rules.
  • the TTPF establishes a new charging rule or modifies the original charging rule, it determines whether the credit line has been requested from the OCS according to the charging button in the charging rule. If yes, the TPF no longer requests a credit line from the OCS, directly using the credit amount previously requested for the charging key to the OCS, that is, the service data stream will consume the credit amount previously requested by the TPF for the charging key to the OCS.
  • the TPF records the charging rule information corresponding to the charging key of the requested credit line, such as the charging rule identifier; otherwise, step 305 is performed.
  • the TPF deletes the original charging rule, it determines whether there are other charging rules using the credit amount requested for the charging button according to the charging button in the charging rule, such as determining and Whether the charging rule corresponding to the charging button has other charging rules in addition to the charging rule to be deleted, and if so, directly deleting the charging rule, and the service specified by the charging rule is no longer specified.
  • the data stream is filtered; otherwise, the TPF stops filtering the service data flow specified by the charging rule, deletes the charging rule, and returns the remaining credit limit for the charging button to the OCS, ending the relationship between the TPF and the OCS.
  • the interaction of the billing key is filtered; otherwise, the TPF stops filtering the service data flow specified by the charging rule, deletes the charging rule, and returns the remaining credit limit for the charging button to the OCS, ending the relationship between the TPF and the OCS.
  • Step 305 to step 306 The TPF sends a credit request (Credit Request) to the OCS, where the credit request carries a charging button of the charging rule, and requests the OCS to provide a credit line for the charging button, and further provides a corresponding input. Information for OCS to determine credit information. After receiving the credit request, the OCS calculates the credit line of the user according to the charging button, and then returns a credit response (Credit Response) to the TPF, where the credit response carries the assigned credit line. After receiving the credit response, the TPF uses the received credit limit to monitor the credit usage of the service data stream specified by the charging rule corresponding to the charging button.
  • Credit Response Credit Response
  • FIG. 4 is a schematic diagram showing a process of re-authentication processing based on a charging key in the present invention. As shown in FIG. 4, the process of re-authenticating based on a charging key includes the following steps:
  • Step 401 The TPF monitors whether the re-authentication event occurs, and if yes, step 402 is performed; Otherwise, return to step 401.
  • Steps 402 to 403 The TPF searches for a charging button corresponding to the re-authentication event that occurs, and then sends a credit request and re-authorisation request to the OCS, the credit and re-authentication request.
  • the remaining credit line after the credit key is consumed by the charging key and the corresponding input information are carried in the OCS to determine the credit information.
  • the OCS After receiving the credit and re-authentication request, the OCS performs the re-authentication right, recalculates the credit line for the charging button, and then returns a credit response and re-authorisation response to the TPF. And the re-authentication response carries a new credit line.
  • the TPF uses the new credit limit to monitor the credit usage of the service data flow specified by the charging rule corresponding to the charging button.

Abstract

A method for processing a charging key includes: in the case of the online charging, when the TPF creates the charging rules, it determines whether the TPF has requested the credit threshold relative to the charging key to the OCS according to the charging key of the charging rules, if not, the TPF sends the Credit Request to the OCS; when the TPF deletes the charging rules, according to the charging key of the charging rules, it determines whether there are the charging rules except for the charging rules needed to be deleted using the credit threshold requested relative to the charging key, if not, the TPF returns the remain credit threshold relative to the charging key to the OCS; otherwise, the OCS provides the re-authorization event relative to the charging key to the TPF, when the TPF monitors the re-authorization event occurring, it returns the credit threshold to the OCS which is remained after the charging key corresponding to the re-authorization event consumes the credit threshold. The solution of the invention can decrease effectively the interaction between the TPF and the OCS, increase the processing capability of the TPF and the OCS, and enhance the practicality of the processing course of the whole online charging.

Description

一种对计费键进行处理的方法  Method for processing billing key
技术领域  Technical field
本发明涉及分组数据计费领域, 特别是指一种传输面功能实体对计 费规则进行处理的方法。 发明背景  The present invention relates to the field of packet data charging, and more particularly to a method for processing a charging rule by a transport plane functional entity. Background of the invention
随着分组数据业务庶用的逐渐广泛, 如何准确合理地对分组数据业 务进行计费, 已成为运营商普遍关注的问题。 ·  With the gradual adoption of packet data services, how to accurately and reasonably charge packet data services has become a common concern of operators. ·
图 1示出了分组数据协议上下文(PDP Context, Packet Data Protocol Context )激活、 敢据传输、 去激活流程图, 如图 1所示, 在通用分组无 线业务 ( GPRS, General Packet Radio Service ) 中, 激活 PDP Contexts 与外部分组数据网络(PDN, Packet Data Network )进行数据交互、 去 激活该 PDP Context的实现过程包括以下步骤:  FIG. 1 shows a packet data protocol context (PDP Context, Packet Data Protocol Context) activation, a data transmission, and a deactivation flowchart. As shown in FIG. 1, in a general packet radio service (GPRS), The process of activating PDP Contexts to interact with an external packet data network (PDN, Packet Data Network) and deactivating the PDP Context includes the following steps:
步骤 101 : 移动终端 ( MS ) 向服务通用分组无线业务支持节点 、 ( SGSN, Serving GPRS Support Node )发送 PDP Context激活请求 ( Activate PDP Context Request ), 该 Activate PDP Context Request中携 带有网络层业务访问点标识( NSAPI, Network Layer Service Access Point Identifier )、 PDP类型、 接入点名称(APN, Access Point Name )、 要求 的服务质量( QoS )参数、 事务标识( TI, Transaction Identifier )等信息, 其中, NSAPI在 SGSN和网关通用分组无线业务支持节点 (GGSN, Gateway GPRS Support Node )之间作为隧道标识( TID, Tunnel Identifier ) 的组成部分, 用于标识 PDP Context; PDP类型包括端对端协议( PPP, Peer-Peer Protocol )类型、 网际协议 ( IP, Internet Protocol )类型等; APN 可由 MS向 SGSN提供, SGSN根据 APN寻址到相应 GGSN, GGSN才艮 据 APN确定 MS所要访问的外部网络, MS也可不向 SGSN提供 APN, 此时, 由 SGSN根据 MS用户的签约信息选择缺省的 APN; QoS参数为 MS指定的分组数据业务所要达到的质量要求; TI用于 MS标识某个 PDP context = Step 101: The mobile terminal (MS) sends a PDP Context Request (Active PDP Context Request) to the Serving GPRS Support Node (SGSN), where the Activate PDP Context Request carries the network layer service access point. Information (NSAPI, Network Layer Service Access Point Identifier), PDP type, Access Point Name (APN, Access Point Name), required Quality of Service (QoS) parameters, Transaction Identifier (TI), etc., where NSAPI The SGSN and the Gateway GPRS Support Node (GGSN) are used as part of the Tunnel Identifier (TID) to identify the PDP Context. The PDP type includes the end-to-end protocol (PPP, Peer). -Peer Protocol) type, Internet Protocol (IP) type, etc.; APN can be provided by the MS to the SGSN, and the SGSN is addressed to the corresponding GGSN according to the APN, and the GGSN The MS may not provide the APN to the SGSN according to the APN. The SGSN may select the default APN according to the subscription information of the MS user. The QoS parameter is the quality requirement of the packet data service specified by the MS. TI is used for MS identification of a PDP context =
步骤 102: SGSN收到 Activate PDP Context Request后, 与 MS进行 安全性检查和加密, 该步骤为可选步骤。  Step 102: After receiving the Activate PDP Context Request, the SGSN performs security check and encryption with the MS. This step is optional.
步骤 103: SGSN根据 APN解析 GGSN的地址信息, 如果 SGSN能 够根据 AP 解析出 GGSN的地址信息, 则为 PDP Context创建 TEID, 该 TEED可为国际移动用户标识( MSI, International Mobile Subscriber Identity )与 NSAPI的组合, 然后 SGSN向 GGSN发送 PDP Context创 建请求( Create PDP Context Request ), 该 PDP Context创建请求中携带 有 PDP类型、 PDP地址、 APN、 QoS参数、 TEID, 选择模式等, 其中, PDP地址可为 MS的 IP地址, 为可选参数, PDP Context创建请求中可 不携带 PDP地址, 此时, 在后续的处理过程中, 可由 GGSN为 MS分 配 IP地址, 也可由最终与 MS建立连接的 PDN为 MS分配 IP地址; 选 择模式是指 APN的选择模式, 即 APN是由 MS选定的还是由 SGSN选 定的。 如果 SGSN无法根据 APN解析出 GGSN的地址信息, 则 SGSN 拒绝 MS发起的 PDP Context激活请求。  Step 103: The SGSN parses the address information of the GGSN according to the APN. If the SGSN can parse the address information of the GGSN according to the AP, the TEID is created for the PDP Context, and the TEED can be an International Mobile Subscriber Identity (MSI) and an NSAPI. The SGSN sends a PDP Context Request to the GGSN. The PDP Context Request contains the PDP type, PDP address, APN, QoS parameters, TEID, and selection mode. The PDP address can be MS. The IP address is an optional parameter. The PDP Context creation request may not carry the PDP address. In this case, the GGSN may assign an IP address to the MS in the subsequent processing, or may assign an IP to the MS by the PDN that finally establishes a connection with the MS. Address; The selection mode refers to the APN selection mode, that is, whether the APN is selected by the MS or selected by the SGSN. If the SGSN cannot resolve the address information of the GGSN according to the APN, the SGSN rejects the PDP Context activation request initiated by the MS.
步驟 104: GGSN收到 PDP Context创建奇求后, 根据 APN确定外 部 PDN, 然后分配计费标识(Charging ED )、 启动计费, 并且协商 QoS, 如果 GGSN能够满足 QoS参数的服务质量要求, 则向 SGSN返回 PDP Context创建响应 ( Create PDP Context Response ), 该 PDP Context创建 响应中携带有 TEID、 PDP地址、 链路承载 ( Backbone Bearer )协议、 商定的 QoS参数、 Charging ID等信息。 如果 GGSN无法满足 QoS参数 的服务质量要求, 则 GGSN拒绝 SGSN发起的 PDP Context创建请求, 然后 SGSN拒绝 MS发起的 PDP Context激活请求。 Step 104: After receiving the PDP Context creation request, the GGSN determines an external PDN according to the APN, then allocates a charging identifier (Charging ED), starts charging, and negotiates QoS. If the GGSN can meet the quality of service requirements of the QoS parameter, The SGSN returns a PDP Context Response (Create PDP Context Response), and the PDP Context creation response carries information such as a TEID, a PDP address, a Backbone Bearer protocol, an agreed QoS parameter, and a Charging ID. If the GGSN cannot meet the quality of service requirements of the QoS parameters, the GGSN rejects the PDP Context creation request initiated by the SGSN. The SGSN then rejects the PDP Context activation request initiated by the MS.
步驟 105: SGSN收到 PDP Context创建响应后, 在 PDP Context中 插入用于标识 PDP Context的 NSAPI和 GGSN地址信息,并才艮据商定的 QoS 参数选择无线优先权, 然后向 MS 返回 PDP Context激活响应 ( Activate PDP Context Accept ),该 PDP Context激活响应中携带有 PDP 类型、 PDP地址、 T 商定的 QoS参数、 无线优先 、 PDP配置选项等 信息。 并且, SGSN启动计费。 MS收到 PDP Context激活响应, 就已经 建立了 MS与 GGSN直接的路由, 可以进行分組数据的传输了。  Step 105: After receiving the PDP Context creation response, the SGSN inserts an NSAPI and GGSN address information for identifying the PDP Context in the PDP Context, and then selects a radio priority according to the agreed QoS parameter, and then returns a PDP Context activation response to the MS. (Activate PDP Context Accept), the PDP Context activation response carries information such as PDP type, PDP address, T-defined QoS parameters, wireless priority, and PDP configuration options. And, the SGSN starts charging. Upon receiving the PDP Context activation response, the MS has established a direct route between the MS and the GGSN, and can perform packet data transmission.
步骤 106: MS通过 SGSN、 GGSN与 PDN进行分组数据的交互。 步骤 107: 结束分组数据交互后, MS向 SGSN发送 PDP Context去 激活请求( Deactivate PDP Context Request ),该 PDP Context去激活请求 中携带有 TI。  Step 106: The MS performs packet data interaction through the SGSN, the GGSN, and the PDN. Step 107: After the packet data interaction is ended, the MS sends a PDP Context Deactivation Request (Deactivate PDP Context Request) to the SGSN, where the PDP Context Deactivation Request carries the TI.
步驟 108: SGSN收到 PDP Context去激活请求后, 与 MS进行安全 性检查和加密, 该步骤为可选步骤。  Step 108: After receiving the PDP Context deactivation request, the SGSN performs security check and encryption with the MS. This step is an optional step.
步骤 109〜步骤 111: SGSN向 GGSN发送 PDP Context删除请求 ( Delete PDP Context Request ),该 PDP Context删除请求中携带有 TEID。 GGSN收到 PDP Context删除请求后, 结束对 MS的计费, 删除对应于 TEID的 PDP Context, 然后向 SGSN发送 PDP Context删除响应( Delete PDP Context Response ),该 PDP Context删除响应中携带有 ΤΕΠ SGSN 收到 PDP Context删除响应后,结束对 MS的计费,删除对应于 TEID的 PDP Context, 然后向 MS发送 PDP Context去激活响应( Deactivate PDP Context Response ), 该 PDP Context去激活响应中携带有 TI。 MS收到 PDP Context去激活响应后 , 删除对应于 ΤΙ的 PDP Context  Steps 109 to 111: The SGSN sends a PDP Context Request to the GGSN, and the PDP Context Delete Request carries the TEID. After receiving the PDP Context deletion request, the GGSN ends the charging of the MS, deletes the PDP Context corresponding to the TEID, and then sends a PDP Context Delete Response (PDP Context Response) to the SGSN, where the PDP Context deletion response carries the SG SGSN. After the PDP Context deletes the response, the charging of the MS is ended, the PDP Context corresponding to the TEID is deleted, and then the PDP Context Deactivation PDP Context Response is sent to the MS, and the PDP Context deactivation response carries the TI. After the MS receives the PDP Context deactivation response, it deletes the PDP Context corresponding to ΤΙ.
由图 1描述的实现过程可见, 当前的 GPRS计费系统中, 由于计费 的起始点设置在 PDP Context激活时,计费的终止点设置在 PDP Context 删除时, 因此只能根据 PDP Context传输的数据流量进行计费, 或是根 据 PDP Context处于激活状态的时间长度进行计费。 然而, 在实际应用 中, MS与 PDN进行数据交互后,该 MS可以基于一个激活的 PDP Context 进行多种业务, 也就是说, 如果 PDN能够提供多种业务, 如电子邮件 ( Email ) 收发业务、 基于无线应用协议的 (WAP, Wireless Application Protocol )的浏览业务、基于文件传输协议 ( FTP, File Transfer Protocol ) 的文件传输等业务,则 MS在与该 PDN建立传输通道后,可通过一个激 活的 PDP Context承载该 PDN能够提供的各种业务。 但是, 运营商对于 各种业务的计费模式很可能采用不同的计费方式, 如对于 Email收发业 务可基于 Email接收和发送事件的触发按次计费, 对于 WAP浏览业务 可根据流量计费,对于文件传输业务也可根据流量计费, WAP浏览业务 的费率与文件传输业务的费率却不尽相同, 这样, 根据现有的 GPRS计 费系统, 根本无法对同一 PDP Context承载的不同业务进行区分计费。 As can be seen from the implementation process described in FIG. 1, in the current GPRS charging system, since the starting point of charging is set when the PDP Context is activated, the charging termination point is set in the PDP Context. When deleting, it can only be charged according to the data traffic transmitted by the PDP Context, or according to the length of time the PDP Context is activated. However, in actual applications, after the MS interacts with the PDN, the MS can perform multiple services based on an activated PDP Context, that is, if the PDN can provide multiple services, such as email (email), Based on the WAP (Wireless Application Protocol) browsing service and the file transfer protocol (FTP) file transfer service, the MS can pass an activated PDP after establishing a transmission channel with the PDN. The Context carries various services that the PDN can provide. However, the charging mode of the operator for various services is likely to adopt different charging methods. For example, for the E-mail receiving and receiving service, the e-mail receiving and sending events may be triggered by the secondary charging, and the WAP browsing service may be based on the flow accounting fee. For the file transfer service, the rate of the WAP browsing service and the rate of the file transfer service are different according to the flow rate. Therefore, according to the existing GPRS charging system, different services carried by the same PDP Context cannot be performed at all. Perform differentiated billing.
针对上述情况, 第三代合作伙伴计划 (3GPP, Hie 3rd Generation Partnership Project )目前正在讨论如何实现基于 IP数据流的计费( FBC, Flow Based Charging )0 对于一个分组数据业务而言, MS的用户使用该 业务时,传输和接收到的所有 IP数据流(IP Flow ),也可为 IP分组包(IP packet ), 总称为业务数据流( Service Data Flow ), 即业务数据流是多个 IP数据流组成的集合, 因此基于 IP数据流的计费能够真实反映某个业 务数据流对资源的占用情况。基于 rp数据流的计费可被认为是通过一些 类似筛子的过滤器将同一 PDP Context中承载的不同业务的 Π>数据流分 别筛选出来, 然后针对不同过滤器过滤出的 IP数据流进行分别计费, 以 达到对不同的业务数据流分别计费的目的。这样,基于 IP数据流的计费 粒度要远远小于基于一个 PDP Context的计费粒度, 粒度可看作是筛子 孔的大小,基于一个 PDP Context的计费粒度是一个 PDP Context就是一 个筛子孔, 而基于 IP数据流的计费粒度则是一个 IP业务数据流则为一 个筛子孔, 即针对一个 PDP Context中包含多个筛子孔, 因此, 基于 IP 数据流的计费与比基于一个 PDP Context的计费相比,基于 EP数据流的 计费能够为运营商或业务提供者提供更为丰富的计费手段。 For the above, the third Generation Partnership Project (3GPP, Hie 3rd Generation Partnership Project ) is currently discussing how to implement IP-based billing data streams (FBC, Flow Based Charging) 0 for a packet data service, MS users When using this service, all IP data streams (IP Flow) transmitted and received may also be IP packets, which are collectively referred to as Service Data Flow, that is, the service data stream is multiple IP data. The set of flows is composed, so the charging based on the IP data stream can truly reflect the occupation of resources by a certain service data flow. The charging based on the rp data stream can be considered as filtering out the different data flows of different services carried in the same PDP Context through filters of similar filters, and then separately filtering the IP data flows filtered by different filters. Fees, in order to achieve separate billing for different business data streams. In this way, the granularity of the IP data-based charging is much smaller than the charging granularity based on a PDP Context. The granularity can be regarded as the size of the screening hole. The charging granularity based on a PDP Context is a PDP Context. The meshing granularity based on the IP data stream is an IP service data stream is a sieve hole, that is, a plurality of sieve holes are included for one PDP Context, and therefore, the charging and ratio based on the IP data stream is based on Compared to the charging of a PDP Context, the billing based on the EP data stream can provide a more abundant charging means for the operator or the service provider.
3GPP中对 FBC的系统结构、 功能要求以及消息交互流程等方面均 进行了描述, 支持在线计费的 FBC系统结构如图 2A所示, 基于移动网 络增强逻辑的客户化应用 (CAMEL, Customised Application for Mobile Network Enhanced Logic ) 的业务控制点 ( SCP, Service Control Point ) 201和基于业务数据流计费的信用控制功能实体( CCF, Service Data Flow Based Credit Control Function ) 202组成了在线计费系统( OCS , Online Charging System ) 206。 CCF 202通过 Rx接口与基于业务数据流计费的 计费规则功能实体 ( CRF , Service Data Flow Based Charging Rule Function ) 203 互通, CRF 203 通过 Rx接口与应用功能实体 ( AF, Application Function ) 204互通, CRF 203通过 Gx接口与传输面功能实 体( TPF , Traffic Plane Function ) 205互通, CCF 202通过 Gy接口与 TEF 205互通。  The 3GPP describes the system structure, functional requirements, and message interaction procedures of the FBC. The FBC system structure supporting online charging is shown in Figure 2A. The customized application based on mobile network enhanced logic (CAMEL, Customised Application for Mobile Network Enhanced Logic (SCP) Service Control Point (SCP) and Service Data Flow Based Credit Control Function (CCF) 202 constitute an online charging system (OCS, Online Charging System ) 206. The CCF 202 communicates with the Service Data Flow Based Charging Rule Function (CRF) 203 through the Rx interface, and the CRF 203 communicates with the Application Function Entity (AF) through the Rx interface. The CRF 203 communicates with the Traffic Plane Function (TPF) 205 through the Gx interface, and the CCF 202 communicates with the TEF 205 through the Gy interface.
支持离线计费的 FBC系统结构如图 2B所示, CRF 203通过 Rx接 口与 AF 204互通, CRF 203通过 Gx接口与 TPF 205互通, TPF 205通 过 Gz接口分别与计费网关功能实体( CGF, Charging Gateway Function ) 207和计费釆集功能实体( CCF, Charging Collection Function ) 208互通。  The structure of the FBC system supporting offline charging is as shown in FIG. 2B. The CRF 203 communicates with the AF 204 through the Rx interface, the CRF 203 communicates with the TPF 205 through the Gx interface, and the TPF 205 communicates with the charging gateway function entity through the Gz interface (CGF, Charging). The Gateway Function 207 is interworking with a Charging Collection Function (CCF) 208.
TPF 205承载 IP数据流, 当 IP数据流的承载建立时, TPF 205通过 Gx接口向 CRP 203发送计费规则请求, 该计费规则请求中携带有与用 户和 MS相关的信息、 承载特性以及与网络相关的信息等, 其中与用户 和 MS相关的信息可为移动台国际号码(MSISDN )、 国际移动用户标识 ( IMSI )等, 与网络相关的信息可为移动网络编码(MNC )、 移动国家 码(MCC )等。 另外, 由于在 IP数据流传输过程中, 会对承载进行修 改, 如对 QoS参数进行重新协商, 当用户使用同一业务的 QoS参数不 同时, 计费规则可能不同, 如 QoS参数下降相应的费率也下降。 此时, TPF 205可在承载修改时, 重新向 CRF 203发送计费规则请求, 请求新 的计费规则; CRF 203根据 TPF 205提供的上述输入信息选择适当的计 费规则,并向 TPF 205返回选定的计费规则 ,计费规则中包括计费机制、 计费类型、 计费键(Charging Key )、 业务数据流过滤器、 计费规则优先 级等信息。 其中, 计费机制可为采用在线计费还是离线计费; 计费类型 可为基于时间长度进行计费还是基于数据流量进行计费; 计费键是与费 率相关的参数, CRF 203可不直接向 TPF 205提供费率, 而只是向 TPF 205提供与费率相关的参数; 业务数据过滤器用于指示 TPF 205对哪些 IP数据流进行过滤, 然后 TPF 205根据计费规则对过滤出的 IP数据流 进行计费。 业务数据过滤器可包含 IP5元组, IP5元组可包括源 /目的 IP 地址、 源 /目的端口号(Port Number )、 协议标识( Protocol ID )等信息, 例如, CRF 203指示 TPF 205对源地址为 10.0.0.1、 目的地址为 10.0.0.2、 源 /目的端口号为 20、 协议类型为传输控制协议 ( TCP ) 的 IP数据流进 行过滤, 并根据计费规则对过滤出的 IP数据流进行计费。 The TPF 205 carries the IP data stream. When the bearer of the IP data stream is established, the TPF 205 sends a charging rule request to the CRP 203 through the Gx interface, where the charging rule request carries information related to the user and the MS, bearer characteristics, and Network related information, etc., wherein the information related to the user and the MS may be a mobile station international number (MSISDN), an international mobile subscriber identity (IMSI), etc., and the network related information may be a mobile network coding (MNC), a mobile country. Code (MCC), etc. In addition, since the bearer is modified during the IP data stream transmission process, such as renegotiating the QoS parameters, when the QoS parameters of the same service are different, the charging rules may be different, such as the corresponding rate of the QoS parameter falling. Also fell. At this time, the TPF 205 may resend the charging rule request to the CRF 203 to request a new charging rule when the bearer is modified; the CRF 203 selects an appropriate charging rule according to the above input information provided by the TPF 205, and returns to the TPF 205. The selected charging rule includes the charging mechanism, the charging type, the charging key, the service data stream filter, and the charging rule priority. The charging mechanism may be online charging or offline charging; the charging type may be charging based on the length of time or based on data traffic; the charging button is a parameter related to the rate, and the CRF 203 may not be directly The TPF 205 is provided with a rate, and only the rate-related parameters are provided to the TPF 205; the service data filter is used to indicate which IP data streams the TPF 205 filters, and then the TPF 205 filters the filtered IP data according to the charging rules. Billing. The service data filter may include an IP5 tuple. The IP5 tuple may include source/destination IP address, source/destination port number (Port Number), protocol identifier (Protocol ID), and the like. For example, CRF 203 indicates TPF 205 to source address. Filters the IP data stream of 10.0.0.1, the destination address is 10.0.0.2, the source/destination port number is 20, and the protocol type is Transmission Control Protocol (TCP), and the filtered IP data stream is calculated according to the charging rule. fee.
CRF 203可向 TPF 205提供触发事件( Event Trigger ),用以要求 THF 205在特定事件发生时, 向 CRF 205请求新的计费规则, 如 CRF 203要 求 TPF 205在某些承载进行修改的事件发生时, 向 CRF 203请求新的计 费规则。 触发事件可视为与计费规则相关的事件。 目前, 3GPP规范中 对 CRF通过触发事件上报机制控制 TPF的计费方式进行了描述,即 监测到触发事件发生后向 CRF上报, CR 通过 TPF上报的触发事件获 知承载发生变化, 然后确定相应的计费规则并下发给 TPF。 3GPP规范 中定义的触发事件可包括:公用陆地移动通信网络( PLMN )变化( PLMN change )事件, QoS参数变化( QoS changes )事件,无线接入技术( RAT ) 类型变化( RAT type change )事件,传输流模板 ( TFT )变化( TFT change ) 事件。 The CRF 203 may provide a trigger event (Event Trigger) to the TPF 205 to request the THF 205 to request a new charging rule from the CRF 205 when a specific event occurs, such as the CRF 203 requiring the TPF 205 to perform an event modification on some bearer. At the time, a new charging rule is requested from the CRF 203. Trigger events can be thought of as events related to billing rules. At present, the 3GPP specification describes the charging mode of the CRF that controls the TPF through the triggering event reporting mechanism, that is, after the triggering event is detected, the CRF is reported to the CRF, and the CR detects the change of the bearer through the triggering event reported by the TPF, and then determines the corresponding meter. The fee rules are issued to the TPF. Trigger events defined in the 3GPP specifications may include: Common Land Mobile Communication Network (PLMN) changes (PLMN) Change event, QoS changes event, radio access technology (RAT) type change (RAT type change) event, transport stream template (TFT) change (TFT change) event.
CRP 203除了根据 TPF 205提供的输入信息选择适当的计费规则之 外, CRP 203还可根据 AF 204或 OCS 206的输入信息选择适当的计费 规则, 如 AF 204通知 CRF 203用户当前使用的业务类型, CRF 203根 据该业务类型选择相应的计费规则。  In addition to selecting an appropriate charging rule based on the input information provided by the TPF 205, the CRP 203 may also select an appropriate charging rule based on the input information of the AF 204 or the OCS 206, such as the AF 204 notifying the CRF 203 of the service currently used by the user. Type, CRF 203 selects the corresponding charging rule according to the type of service.
OCS 206作为在线计费系统, 由 SCP 201和 CCF ( Service Data Flow Based Credit Control Function )202两个功能实体组成,其中 , CCF( Service Data Flow Based Credit Control Function ) 202是执行信用控制的功能实 体, 仅应用于在线计费系统, 可通过在现有的 OCS 206中增加新的功能 来实现。在在线计费过程中, CCF( Service Data Flow Based Credit Control Function ) 202对用户信用进行管理和控制, 当用户使用业务时, CCF ( Service Data Flow Based Credit Control Function ) 202对该用户信用池 中的信用进行鉴权, 并通过 Gy接口向 TPF 205下发用户能够使用的信 用。  The OCS 206 is an online charging system, and is composed of two functional entities: SCP 201 and CCF (Service Data Flow Based Credit Control Function) 202. The CCF (Service Data Flow Based Credit Control Function) 202 is a functional entity that performs credit control. Applying only to the online billing system can be achieved by adding new features to the existing OCS 206. In the online charging process, the CCF (Service Data Flow Based Credit Control Function) 202 manages and controls the user credit. When the user uses the service, the CCF (Service Data Flow Based Credit Control Function) 202 is in the user credit pool. The credit is authenticated, and the credit that the user can use is delivered to the TPF 205 through the Gy interface.
另外, OCS 206 可要求 TPF 205 在重鉴权事件(Re-authorisation triggers )发生时向其上报, 然后 OCS 206根据 TPF 205上^ =艮的相应重鉴 权事件对用户进行重鉴权,并可能重新计算用户的信用。例如, OCS 206 向 TPF 205提供的用户信用使用完毕, TPF 205需根据重鉴权事件中的 允许信用过期事件, 向 OCS 206上报其允许的用户信用使用过期事件的 发生, OCS 206根据用户剩余帐户信息, 重新对允许用户使用的信用进 行计算。 又例如, 分区域计费时, OCS 206根据用户当前所在位置确定 费率, 并根据该费率计算用户的信用; 当用户移动至另一位置时, 如 PLMN发生变化, ΊΊΨ 205需要根据重鉴权事件中的 PLMN变化事件, 向 OCS 206上报 PLMN变化事件的发生, OCS 206根据用户更新后的当 前所在位置重新确定费率,并重新计算用户的信用。又例如,当 OCS 206 根据用户使用业务的当前 QoS参数确定费率, 当用户对 QoS参数进行 修改, TPF 205需要根据重鉴权事件中的承载修改事件, 向 OCS 206上 报承载修改事件的发生, OCS 206根据用户修改后的 QoS参数确定费率, 并重新计算用户的信用。 In addition, OCS 206 may require TPF 205 to report to the re-authorisation triggers when they occur, and then OCS 206 re-authenticates the user based on the corresponding re-authentication event on TPF 205, and possibly Recalculate the user's credit. For example, after the user credit provided by the OCS 206 to the TPF 205 is used, the TPF 205 needs to report the allowed user credit usage expiration event to the OCS 206 according to the allowed credit expiration event in the re-authentication event, and the OCS 206 according to the remaining user account. Information, recalculate the credits allowed to be used by the user. For another example, when sub-area charging, the OCS 206 determines the rate according to the current location of the user, and calculates the credit of the user according to the rate; when the user moves to another location, if the PLMN changes, the 205 needs to be re-examined. PLMN change event in the right event, The OMC 206 reports the occurrence of the PLMN change event, and the OCS 206 re-determines the rate based on the current location of the user after updating, and recalculates the user's credit. For example, when the OCS 206 determines the rate according to the current QoS parameter of the service used by the user, when the user modifies the QoS parameter, the TPF 205 needs to report the occurrence of the bearer modification event to the OCS 206 according to the bearer modification event in the re-authentication event. The OCS 206 determines the rate based on the modified QoS parameters of the user and recalculates the credit of the user.
另外, 3GPP规范中还对 OCS通过重鉴权事件上报的机制控制 TPF 的信用使用情况进行了描述, 即 TPF监测到重鉴权事件发生后向 OCS 上报, OCS通过 TPF上报的重鉴权事件,获知用户的信用使用情况以及 承载的变化, 对用户的信用重新进行计算并下发给 TPF。 3GPP规范中 定义的重鉴权事件可包括: 允许信用过期 (credit authorization lifetime expiry )事件, 用户空闲状态超时(idle timeout ) 事件, 计费规则变化 ( charging rule is changed )事件, PLMN史化事件 , QoS参数变化事件, RAT类型变化事件 ·, 传输流模板变化事件等。  In addition, the 3GPP specification also describes the use of the re-authentication event by the OCS to control the credit usage of the TPF. That is, the TPF reports the re-authentication event reported by the TCS to the OCS after the re-authentication event occurs. The credit usage of the user and the change of the bearer are known, and the credit of the user is recalculated and sent to the TPF. The re-authentication events defined in the 3GPP specifications may include: a credit authorization lifetime expiry event, a user idle state timeout event, a charging rule is changed event, a PLMN history event, QoS parameter change event, RAT type change event, transport stream template change event, and the like.
对应于 GPRS网络, TPF 205为 GGSN, AF为 PDN中的一个业务 网关或业务服务器, CRF 203为新增的逻辑实体。 TPF 205为计费规则 的执行点, CRF 203为计费规则的控制点。  Corresponding to the GPRS network, the TPF 205 is a GGSN, the AF is a service gateway or a service server in the PDN, and the CRF 203 is a new logical entity. TPF 205 is the enforcement point of the charging rule, and CRF 203 is the control point of the charging rule.
对于基于业务数据流的计费,在线计费过程中, 3GHP规范中描述的 请求信用额度的方式是基于每个计费规则 (Charging Rule )进行的, 具 体实现过程为: TPF收到 C F提供的计费规则后,根据计费规则中的在 线计费机制, 确定需要为该计费规则向 OCS请求信用额度时, TPF直 接向 OCS请求针对该计费规则的信用额度。  For the service data flow-based charging, in the online charging process, the method for requesting the credit line described in the 3GHP specification is performed based on each charging rule (Charging Rule), and the specific implementation process is as follows: The TPF receives the CF provided After the charging rule, according to the online charging mechanism in the charging rule, when determining that the credit quota needs to be requested for the charging rule for the charging rule, the TPF directly requests the OCS for the credit quota for the charging rule.
但是, CRP向 TPF提供的计费规则的计费粒度是针对不同的业务数 据流, 这样, 在线计费时, T F需要针对每个业务数据流进行在线计费 交互, 即针对每个业务数据流 TPF都需要向 OCS请求信用额度, OCS 根据 TPF的信用请求, 需要对每个业务数据流都分配相应的信用额度, 并下发给 TPF, 由于同一用户同时可以使用多个业务, 从而产生多个业 务数据流, 因此, 这种基于不同的业务数据流进行在线计费交互的处理 机制必然会使得 TPF与 OCS的交互过于频繁,导致 TFF与 OCS的处理 性能下降, 从而使整个在线计费处理过程的实用性大大降低。 发明内容 ' However, the charging granularity of the charging rules provided by the CRP to the TPF is for different service data flows. Thus, in the case of online charging, the TF needs to perform online charging interaction for each service data flow, that is, for each service data flow. TPF needs to request credit line from OCS, OCS According to the TPF credit request, each service data stream needs to be assigned a corresponding credit line and sent to the TPF. Since the same user can use multiple services at the same time, multiple service data streams are generated, so this is based on different The processing mechanism of the online data exchange interaction of the service data flow inevitably makes the interaction between the TPF and the OCS too frequent, resulting in a decrease in the processing performance of the TFF and the OCS, thereby greatly reducing the practicability of the entire online charging processing process. SUMMARY OF THE INVENTION
有鉴于此, 本发明的目的在于提供一种对计费键进行处理的方法, 提高 TPF .和 OCS的处理性能。  In view of the above, an object of the present invention is to provide a method for processing a charging key to improve the processing performance of TPF and OCS.
为了达到上述目的, 本发明提供了一种对计费键进行处理的方法, 在线计费情况下, ΉΨ建立计费规则时, 该方法包含步 TPF根据 计费规则中的计费键,判断是否已向 OCS请求了针对该计费键的信用额 度, 如果不是, 则 TPF向 OCS发送信用请求。  In order to achieve the above object, the present invention provides a method for processing a charging key. In the case of online charging, when the charging rule is established, the method includes the step TPF determining whether the charging key is based on the charging key in the charging rule. A credit line for the charging button has been requested from the OCS, and if not, the TPF sends a credit request to the OCS.
其中, 所述 TPF判断出已向 OCS请求了针对该计费键的信用额度, 之后进一步包括: 1 F不向 OCS发送信用请求,直接使用请求到的针对 该计费键的信用额度。  The TPF determines that the credit limit for the charging button has been requested from the OCS, and further includes: 1 F does not send a credit request to the OCS, and directly uses the requested credit limit for the charging button.
所述 TPF直接使用请求到的针对该计费键的信用额度,进一步包括: TPF记录与已请求信用额度的所述计费键相对应的计费规则信息。  The TPF directly uses the requested credit limit for the charging button, and further includes: the TPF records the charging rule information corresponding to the charging button of the requested credit line.
步骤 A中所述 TPF向 OCS发送信用请求 ,之后进一步包括步骤 A1: OCS向 TPF返回信用额度。  The TPF sends a credit request to the OCS in step A, and then further includes step A1: The OCS returns a credit line to the TPF.
所述步骤 A1之后进一步包括: TPF记录已向 OCS请求信用额度的 计费键信息。  The step A1 further includes: the TPF records charging key information that has requested a credit line from the OCS.
所述步骤 A1之后进一步包括: TPF记录与已请求信用额度的所述 计费键相对应的计费规则信息。  The step A1 further includes: the TPF records the charging rule information corresponding to the charging button of the requested credit line.
本发明还提供了一种对计费键进行处理的方法, OCS向 TPF提供针 对计费键的重鉴权事件, TPF益测到重鉴权事件发生时, 该方法进一步 包括步骤 B: TPF向 OCS返回所述与重鉴权事件相对应的计费键消耗信 用额度后的剩余信用额度。 The present invention also provides a method for processing a charging button, and the OCS provides a needle to the TPF. When the re-authentication event of the charging key occurs, the method further includes the step B: the TPF returns the charging key consumption credit corresponding to the re-authentication event to the OCS. Remaining credit line.
其中, 所述步驟 B之前进一步包括: TPF记录与所述计费键相对应 的重鉴权事件信息。  The step B further includes: the TPF records re-authentication event information corresponding to the charging button.
所述步驟 B之后进一步包括: OCS进行重鉴权,然后向 TPF提供重 新计算的针对该计费键的信用额度。  The step B further includes: the OCS performs re-authentication, and then provides the TPF with a newly calculated credit line for the charging button.
所述步骤 B进一步包括: TPF向 OCS提供相应的输入信息, 以供 OCS决定信用信息。  The step B further includes: the TPF providing the OCS with corresponding input information for the OCS to determine the credit information.
本发明还提供了一种对计费键进行处理的方法, 在线计费情况下, The invention also provides a method for processing a charging button, in the case of online charging,
TPF删除计费规则时, 该方法包含步骤 C: TPF根据计费规则中的计费 键, 判断是否存在除需要删除的计费规则以外的计费规则使用针对该计 费键请求到的信用额度, 如果不是, 则 TPF向 OCS返回针对该计费键 的剩余信用额度。 When the TPF deletes the charging rule, the method includes the step C: the TPF determines, according to the charging button in the charging rule, whether there is a charging rule other than the charging rule that needs to be deleted, and uses the credit amount requested for the charging button. If not, the TPF returns the remaining credit limit for the charging button to the OCS.
其中,所述步骤 C之后进一步包括: TPF删除需要删除的计费规则。 根据本发明提出的方法, TPF请求信用额度的方式是基于每个计费 键进行的。 由于不同的业务数据流可以具有相同的计费费率, 即, 对于 不同的计费规则可以具有相同的计费键, 因此, 基于每个计费键的信用 额度请求的粒度大于基于每计费规则的信用额度请求。 这样, 通过实现 TPF基于每个计费键请求信用额度的处理过程, 可以有效减少 TPF 与 OCS之间的交互, 提升 TPF与 OCS的处理性能, 增强整个在线计费处 理过程的实用性。 附图简要说明  The step C further includes: deleting the charging rule that needs to be deleted by the TPF. According to the method proposed by the present invention, the manner in which the TPF requests a credit line is based on each billing key. Since different service data flows may have the same billing rate, that is, different billing rules may have the same billing key, the granularity of the credit limit request based on each billing key is greater than per billing. Regular credit line request. In this way, by implementing the processing procedure in which the TPF requests the credit limit based on each charging key, the interaction between the TPF and the OCS can be effectively reduced, the processing performance of the TPF and the OCS is improved, and the practicability of the entire online charging processing process is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
图 1示出了 PDP Context激活、 数据传输、 去激活流程图; 图 2A示出了支持在线计费的 FBC系统结构图; Figure 1 shows a PDP Context activation, data transfer, deactivation flowchart; 2A shows a structural diagram of an FBC system supporting online charging;
图 2B示出了支持离线计费的 FBC系统结构图;  Figure 2B shows a block diagram of an FBC system supporting offline charging;
图 3示出了本发明中基于计费键请求信用额度处理过程示意图; 图 4示出了本发明中基于计费键的重鉴权处理过程示意图。 实施本发明的方式  FIG. 3 is a schematic diagram showing a process of processing a credit limit based on a charge key in the present invention; FIG. 4 is a schematic diagram showing a process of re-authentication processing based on a charge key in the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点更加清楚, 下面结合附图对本 发明作进一步的详细描述。  In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings.
本发明中, TPF请求信用额度的方式是基于每个计费键进行的, 即 TPF以计费键作为计费规则的索引, 对具有相同的计费键的计费规则进 行记录, 使得在建立计费规则、 删除计费规则以及上报重鉴权事件时, 能够根据相同的计费键对计费规则进行批量处理, 实现了 TPF基于每个 计费键请求信用额度的处理过程。  In the present invention, the manner in which the TPF requests the credit limit is performed based on each charging key, that is, the TPF uses the charging key as an index of the charging rule, and records the charging rule having the same charging key, so that the TPM is established. When charging rules, deleting charging rules, and reporting re-authentication events, the charging rules can be batch processed according to the same charging key, and the processing procedure of the TPF requesting the credit limit based on each charging key is realized.
TPF收到 CRP提供的计费规则后, 如果需要建立新的计费规则, 则 TPF首先判断需要建立的计费规则中的计费机制是否为在线计费, 如果 为在线计费, 则进一步根据该计费规则中的计费键, 判断是否已针对该 计费键向 OCS请求了信用额度, 如果未针对该计费键向 OCS请求信用 额度, 则 TPF向 OCS发送信用请求, 该信用请求中携带有该计费键, OCS根据该计费键计算出用户的信用额度后, 向 TPF返回信用响应,该 信用响应中携带有为该计费键分配的信用额度。 此时, TPF记录已请求 信用额度的计费键以及与相应计费规则的对应关系, 并可进一步记录 OCS针对该计费键分配的信用额度。 例如, TPF建立在线计费交互信息 列表,列表中 "已请求信用额度的计费键项,,记录该计费键,如 Charging Key A, 对应的 "信用额度项" 记录 OCS针对 Charging Key A分配的信 用额度,如 100M,对应的 "计费规则项"记录计费规则标识,如 Charging Rule L如果已针对该计费键向 OCS请求了信用额度, 例如 TPF根据在 线计费交互信息列表中的 "已请求信用额度的计费键项" 中存在该计费 键, 如 Charging Key A, 则判断出先前已根据该计费键向 OCS请求了信 用额度, 则 TPF不再向 OCS请求信用额度, 直接使用先前针对该计费 键向 OCS请求到的信用额度, 即在线计费交互信息列表中与 "已请求信 用额度的计费键项" 为 Charging Key A相对应的 "信用额度项" 中信用 额度 100M。 然后, TPF记录已请求信用额度的计费键以及与该计费规 则的对应关系, 即在建立的在线计费交互信息列表中, 与 "已请求信用 额度的计费键项" 为 Charging Key A相对应的 "计费规则项" 中记录该 计费规则的标识, 如 Charging Rule 2。 这样, 根据在线计费交互信息列 表,针对计费规则 Charging Rule 1和计费规则 Charging Rule 2过滤出的 业务数据流都将消耗 Charging Key A所对应的信用额度 100M, 如在某 一个时刻,当 TPF监测到 Charging Rule 1过滤出的业务数据流量大小与 Charging Rule 2过滤出的业务数据流量大小之和达到信用额度 100M时, TPF将发起重鉴权流程, 向 OCS发送信用请求, 请求 OCS为 Charging Key A分配相应的信用额度。 After the TPF receives the charging rules provided by the CRP, if the new charging rule needs to be established, the TPF first determines whether the charging mechanism in the charging rule to be established is online charging, and if it is online charging, further based on The charging key in the charging rule determines whether a credit line has been requested to the OCS for the charging key. If the credit amount is not requested to the OCS for the charging key, the TPF sends a credit request to the OCS, where the credit request is Carrying the charging button, the OCS calculates a credit line of the user according to the charging button, and returns a credit response to the TPF, where the credit response carries a credit line allocated for the charging button. At this time, the TPF records the charging key of the requested credit line and the corresponding relationship with the corresponding charging rule, and can further record the credit amount allocated by the OCS for the charging key. For example, the TPF establishes an online charging interaction information list, in the list, the charging key item of the requested credit line, and records the charging key, such as Charging Key A, and the corresponding "credit quota item" record OCS is allocated for Charging Key A. The credit line, such as 100M, corresponds to the "accounting rule item" record charging rule identifier, such as Charging If Rule L has requested a credit line to the OCS for the charging key, for example, the TPF has the charging key, such as Charging Key A, in the "Receiving Key Item of the Requested Credit Line" in the online charging interaction information list. If it is determined that the credit line has been requested from the OCS according to the charging key, the TPF no longer requests the credit line from the OCS, and directly uses the credit amount previously requested for the charging key to the OCS, that is, the online charging interaction information list. The credit limit of the "credit key item" corresponding to the "requested credit limit" is 100M. Then, the TPF records the charging key of the requested credit line and the corresponding relationship with the charging rule, that is, in the established online charging interaction information list, the charging key item with the requested credit line is Charging Key A. The identifier of the charging rule is recorded in the corresponding "Accounting Rule Item", such as Charging Rule 2. In this way, according to the online charging interaction information list, the service data flow filtered by the charging rule Charging Rule 1 and the charging rule Charging Rule 2 will consume the credit limit corresponding to the Charging Key A 100M, for example, at a certain moment. When the TPF detects that the sum of the traffic data traffic filtered by Charging Rule 1 and the traffic data traffic filtered by Charging Rule 2 reaches the credit limit of 100M, the TPF will initiate a re-authentication process, send a credit request to the OCS, and request the OCS as Charging. Key A assigns the corresponding credit limit.
TPF 收到 CRF提供的计费规则后, 如果需要删除计费规则时, 则 TPF首先判断需要删除的计费规则中的计费机制是否为在线计费, 如果 为在线计费, 则进一步根据该计费规则中的计费键, 判断是否存在除需 删除的计费规则以外的其他计费规则使用针对该计费键请求到的信用 额度, 如当需删除的计费规则 Charging Rule 1 中的计费键为 Charging Key A时, TPF判断在线计费交互信息列表中与 "已请求信用额度的计 费键项" 计费键 Charging Key A相对应的 "计费规则项" 记录的计费规 则标识是否除了 Charging Rule 1之外, 还有其他的计费规则标识, 如果 没有其他计费规则标识, 则 TPF删除 CRF指定的计费规则, 不再对该 计费规则指定的业务数据流进行过滤, 更新在线计费交互信息列表中的 相应信息, 如删除 "已请求信用额度的计费键项" 中的计费键 Charging Key A以及其所对应的 "信用额度项" 中信用额度和 "计费规则项,, 中 的计费规则标识, 并且 TPF向 OCS返回与该计费键相对应的剩余信用 额度, 结束 TPF和 OCS之间针对该计费键的交互操作; 如果 TPF判断 出还有其他计费规则使用针对该计费键请求到的信用额度, 即在线计费 交互信息列表中与 "已请求信用额度的计费键项"计费键 Charging Key A 相对应的 "计费规则项"记录的计费规则标识除了 Charging Rule 1之外 还有其他计费规则标识,则 TPF删除 C F指定的计费规则,如 Charging Rule 1 , 不再对该计费规则指定的业务数据流进行过滤, 更新在线计费 交互信息列表中的相应信息, 如删除与 "已请求信用额度的计费键项" 中计费键为 Charging Key A相对应的 "计费规则项" 中的计费规则标识 Charging Rule 1 , 并不向 OCS返回该计费键所对应的剩余信用额度。 After the TPF receives the charging rule provided by the CRF, if the charging rule needs to be deleted, the TPF first determines whether the charging mechanism in the charging rule to be deleted is online charging, and if it is online charging, further according to the The charging key in the charging rule determines whether there are other charging rules other than the charging rule to be deleted, and uses the credit amount requested for the charging key, such as in the charging rule Charging Rule 1 to be deleted. When the charging key is Charging Key A, the TPF determines the charging rule recorded in the "Accounting Rule Item" corresponding to the "Charging Key Item of the Requested Credit Line" Charging Key A in the online charging interaction information list. Indicates whether there are other charging rule identifiers besides Charging Rule 1. If there is no other charging rule identifier, the TPF deletes the charging rule specified by the CRF. The service data flow specified by the charging rule is filtered, and the corresponding information in the online charging interaction information list is updated, for example, the charging key Charging Key A in the "receiving key amount of the requested credit line" and its corresponding " The credit limit item "in the credit line and the charging rule item," the charging rule identifier, and the TPF returns the remaining credit line corresponding to the charging button to the OCS, ending the charging button between the TPF and the OCS The interaction operation; if the TPF determines that there are other charging rules using the credit line requested for the charging key, that is, the charging key of the "requested credit line" charging key in the online charging interaction information list The charging rule identifier recorded by the "Accounting Rule Item" corresponding to Key A has other charging rule identifiers besides Charging Rule 1. The TPF deletes the charging rule specified by CF, such as Charging Rule 1, and no longer The service data flow specified by the charging rule is filtered, and the corresponding information in the online charging interaction information list is updated, for example, deleting the charging key with the "receiving credit amount of the requested credit line" is Charging Key A Corresponding to "charging rule item" in the charging rule identifier Charging Rule 1, does not return the credit remaining charging key corresponding to the OCS.
另外, 根据以上基于每个计费键请求信用额度的处理方式, 重鉴权 流程的处理也可以是基于每个计费键的。 当 TPF向 OCS发送信用请求, OCS向 TPF返回信用响应时, OCS除了向 TPF提供信用额度之外, 还 可进一步提供重鉴权事件。此时 TPF可记录已请求信用额度的计费键以 及与相应重鉴权事件的对应关系, 例如, 针对在线计费交互信息列表中 "已请求信用额度的计费键项" 记录的计费键, 如 Charging Key A , 与 其相对应的 "重鉴权事件项" 中记录 OCS下发的重鉴权事件, 该重鉴权 事件可以是一个或多个, 如 PLMN变化事件、 TFT变化事件等。 OCS 可针对不同的计费键下发相同的重鉴权事 ;牛,如 OCS针对 Charging Key A和 Charging Key B均下发 PLMN变化的重鉴权事件。 当 TPF监测到 重鉴权事件发生时, TPF查找与发生的重鉴权事件相对应的计费键, 然 后向 OCS 返回该计费键消耗信用额度后的剩余信用额度。 如发生了 PLMN变化事件, TPF根据在线计费交互信息列表中记录的信息查找到 与该 PLMN变化事件相对应的 Charging Key A和 Charging Key B, 则 TPF停止对 Charging Key A和 Charging Key B分别对应的计费规则指定 的业务数据流的过滤, 计算出针对 Charging Key A和 Charging Key B消 耗信用额度后的剩余信用额度并向 OCS返回, 请求 OCS针对该重鉴权 事件重新分配针对于 Charging Key A和 Charging Key B的信用额度。 OCS执行完重鉴权后, 向 TPF提供重新计算的针对于计费键的信用额 度,然后 TPF使用新的信用额度监控计费键相对应的计费规则指定的业 务数据流的信用使用情况。例如, OCS分别向 TPF提供针对 Charging Key A和 Charging Key B计算出的信用额度, TPF获得针对 Charging Key A 的新的信用额度后, TPF针对与 Charging Key A相对应的计费规则指定 的业务数据流进行过滤, 监控业务数据流是否达到信用额度, 达到信用 额度后, 触发允许的信用过期重鉴权事件, TPF再度执行重鉴权流程, 请求 OCS针对 Charging Key A重新计算新的信用额度。同样,对于 TPF 获得针对 Charging Key B的新的信用额度后, TPF执行与针对 Charging Key A相类似的操作, 这里不再赘述。 In addition, according to the above processing method of requesting the credit limit based on each charging key, the processing of the re-authentication process may also be based on each charging key. When the TPF sends a credit request to the OCS and the OCS returns a credit response to the TPF, the OCS may further provide a re-authentication event in addition to providing a credit line to the TPF. At this time, the TPF can record the charging key of the requested credit line and the corresponding relationship with the corresponding re-authentication event, for example, the charging key recorded for the "receiving key item of the requested credit line" in the online charging interaction information list. For example, the re-authentication event sent by the OCS is recorded in the corresponding re-recognition event item, and the re-authentication event may be one or more, such as a PLMN change event, a TFT change event, and the like. The OCS can issue the same re-authentication event for different charging keys ; for example, the OCS issues a re-authentication event for the PLMN change for both the Charging Key A and the Charging Key B. When the TPF detects that the re-authentication event occurs, the TPF searches for the charging key corresponding to the re-authentication event that occurred, and then returns to the OCS the remaining credit line after the charging key consumes the credit line. If it happened The PLMN changes the event, and the TPF searches for the Charging Key A and the Charging Key B corresponding to the PLMN change event according to the information recorded in the online charging interaction information list, and the TPF stops the charging corresponding to the Charging Key A and the Charging Key B respectively. The filtering of the service data flow specified by the rule, calculating the remaining credit limit for the Charging Key A and the Charging Key B to consume the credit line and returning to the OCS, requesting the OCS to reallocate the re-authentication event for the Charging Key A and the Charging Key B's credit limit. After the OCS performs the re-authentication, the TPF is provided with a recalculated credit line for the charging button, and then the TPF uses the new credit line to monitor the credit usage of the service data stream specified by the charging rule corresponding to the charging button. For example, the OCS provides the TPF with the credit line calculated for the Charging Key A and the Charging Key B respectively. After the TPF obtains the new credit limit for the Charging Key A, the TPF specifies the service data for the charging rule corresponding to the Charging Key A. The flow is filtered to monitor whether the service data flow reaches the credit limit. After the credit limit is reached, the allowed credit expiration re-authentication event is triggered, and the TPF re-executes the re-authentication process, requesting the OCS to recalculate the new credit limit for the Charging Key A. Similarly, after the TPF obtains a new credit limit for the Charging Key B, the TPF performs an operation similar to that for the Charging Key A, and will not be described here.
图 3示出了本发明中基于计费键请求信用额度处理过程示意图, 如 图 3所示, 基于计费键请求信用额度的处理过程包括以下步驟:  FIG. 3 is a schematic diagram showing a process of processing a credit line based on a charge key in the present invention. As shown in FIG. 3, the process of requesting a credit line based on a charge button includes the following steps:
步骤 301〜步骤 302: CRF可 1 "收到的来自外部实体的信息,例如, CRP收到来自 TPF的承载建立、 修改或删除等消息, 或 CRF收到 AP 或 OCS提供的与计费规则相关的输入信息, 选择需要向 TPF提供的计 费规则, CRF可要求 TPF建立新的计费规则, 也可要求 TPF删除原来 的计费规则, 还可要求 TPF对原来的计费规则进行修改。 CRF向 TPF 提供选定的计费规则, 并指示 TPF对计费规则进行相应操作。  Steps 301 to 302: The CRF may "receive information from an external entity, for example, the CRP receives a message from the TPF, such as the establishment, modification, or deletion of the bearer, or the CRF receives the information provided by the AP or the OCS related to the charging rule. The input information, the charging rule that needs to be provided to the TPF, the CRF may require the TPF to establish a new charging rule, or the TPF may be required to delete the original charging rule, and the TPF may be required to modify the original charging rule. The selected charging rule is provided to the TPF, and the TPF is instructed to perform corresponding operations on the charging rule.
步骤 303~步骤 304: TPF收到计费规则后, 根据计费规则操作指示 对计费规则进行相应操作, 如建立、 修改或删除计费规则。 在线计费情 况下, 如果 TTPF是建立新的计费规则或修改原来的计费规则, 则根据该 计费规则中的计费键,判断是否已根据相应计费键向 OCS请求了信用额 度, 如果是, 则 TPF不再向 OCS请求信用额度, 直接使用先前针对该 计费键向 OCS请求到的信用额度, 即该业务数据流将消耗 TPF先前针 对该计费键向 OCS请求到的信用额度, 然后 TPF记录与已请求信用额 度的计费键相对应的计费规则信息, 如计费规则标识; 否则, 执行步骤 305。 在线计费情况下, 如果 TPF是删除原来的计费规则, 则根据该计 费规则中的计费键, 判断是否存在其他计费规则使用针对该计费键请求 到的信用额度, 如判断与该计费键相对应的计费规则是否除需删除的计 费规则之夕卜还有其他的计费规则, 如果是, 则直接删除该计费规则, 不 再对该计费规则指定的业务数据流进行过滤; 否则, TPF停止对该计费 规则指定的业务数据流进行过滤,删除该计费规则,并向 OCS返回针对 该计费键的剩余信用额度, 结束 TPF和 OCS之间针对该计费键的交互 操作。 Step 303 to step 304: After receiving the charging rule, the TPF operates according to the charging rule. Perform corresponding operations on the charging rules, such as establishing, modifying, or deleting charging rules. In the case of online charging, if the TTPF establishes a new charging rule or modifies the original charging rule, it determines whether the credit line has been requested from the OCS according to the charging button in the charging rule. If yes, the TPF no longer requests a credit line from the OCS, directly using the credit amount previously requested for the charging key to the OCS, that is, the service data stream will consume the credit amount previously requested by the TPF for the charging key to the OCS. Then, the TPF records the charging rule information corresponding to the charging key of the requested credit line, such as the charging rule identifier; otherwise, step 305 is performed. In the case of online charging, if the TPF deletes the original charging rule, it determines whether there are other charging rules using the credit amount requested for the charging button according to the charging button in the charging rule, such as determining and Whether the charging rule corresponding to the charging button has other charging rules in addition to the charging rule to be deleted, and if so, directly deleting the charging rule, and the service specified by the charging rule is no longer specified. The data stream is filtered; otherwise, the TPF stops filtering the service data flow specified by the charging rule, deletes the charging rule, and returns the remaining credit limit for the charging button to the OCS, ending the relationship between the TPF and the OCS. The interaction of the billing key.
步骤 305〜步骤 306: TPF向 OCS发送信用请求( Credit Request ), 该信用请求中携带有该计费规则的计费键,请求 OCS针对该计费键提供 信用额度, 并可进一步提供相应的输入信息以供 OCS决定信用信息。 OCS 收到信用请求后, 根据计费键计算用户的信用额度, 然后向 TPF 返回信用响应(Credit Response ), 该信用响应中携带分配的信用额度。 TPF收到信用响应后, 使用收到的信用额度监控与计费键相对应的计费 规则指定的业务数据流的信用使用情况。  Step 305 to step 306: The TPF sends a credit request (Credit Request) to the OCS, where the credit request carries a charging button of the charging rule, and requests the OCS to provide a credit line for the charging button, and further provides a corresponding input. Information for OCS to determine credit information. After receiving the credit request, the OCS calculates the credit line of the user according to the charging button, and then returns a credit response (Credit Response) to the TPF, where the credit response carries the assigned credit line. After receiving the credit response, the TPF uses the received credit limit to monitor the credit usage of the service data stream specified by the charging rule corresponding to the charging button.
图 4示出了本发明中基于计费键的重鉴权处理过程示意图, 如图 4 所示, 基于计费键进行重鉴权的处理过程包括以下步驟:  FIG. 4 is a schematic diagram showing a process of re-authentication processing based on a charging key in the present invention. As shown in FIG. 4, the process of re-authenticating based on a charging key includes the following steps:
步驟 401: TPF监测重鉴权事件是否发生,如果是,则执行步骤 402; 否则, 返回执行步骤 401。 Step 401: The TPF monitors whether the re-authentication event occurs, and if yes, step 402 is performed; Otherwise, return to step 401.
步驟 402〜步驟 403: TPF查找与发生的重鉴权事件相对应的计费键, 然后向 OCS发送信用及重鉴权清求 ( Credit Request and re-authorisation Request ) , 该信用及重鉴权请求中携带有该计费键消耗信用额度后的剩 余信用额度、 以及相应的输入信息以供 OCS决定信用信息。 OCS收到 信用及重鉴权奇求后,执行重鉴权,重新计算针对该计费键的信用额度, 然后向 TPF返回信用及重答权响应 ( Credit Response and re-authorisation Response ),该信用及重鉴权响应中携带有新的信用额度。 TPF收到信用 及重鉴权响应后, 使用新的信用额度监控与计费键相对应的计费规则指 定的业务数据流的信用使用情况。  Steps 402 to 403: The TPF searches for a charging button corresponding to the re-authentication event that occurs, and then sends a credit request and re-authorisation request to the OCS, the credit and re-authentication request. The remaining credit line after the credit key is consumed by the charging key and the corresponding input information are carried in the OCS to determine the credit information. After receiving the credit and re-authentication request, the OCS performs the re-authentication right, recalculates the credit line for the charging button, and then returns a credit response and re-authorisation response to the TPF. And the re-authentication response carries a new credit line. After receiving the credit and re-authentication response, the TPF uses the new credit limit to monitor the credit usage of the service data flow specified by the charging rule corresponding to the charging button.
总之, 以上所述仅为本发明的较佳实施例而已, 并非用于限定本发 明的保护范围。  In summary, the above description is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种对计费键进行处理的方法, 其特征在于, 在线计费情况下, TPF建立计费规则时, 该方法包含:  A method for processing a charging key, characterized in that, in the case of online charging, when the TPF establishes a charging rule, the method includes:
A、 TPF根据计费规则中的计费键, 判断是否已向 OCS请求了针对 该计费键的信用额度, 如果不是, 则 TPF向 OCS发送信用请求。  A. The TPF determines whether the credit limit for the charging key has been requested from the OCS according to the charging key in the charging rule. If not, the TPF sends a credit request to the OCS.
2、 根据权利要求 1所述的方法, 其特征在于, 所述 TPF判断出已 向 OCS请求了针对该计费键的信用额度, 之后进一步包括: TPF不向 OCS发送信用请求, 直接使用请求到的针对该计费键的信用额度。  2. The method according to claim 1, wherein the TPF determines that a credit line for the charging button has been requested from the OCS, and then further includes: the TPF does not send a credit request to the OCS, directly using the request to The credit line for the billing button.
3、 根据权利要求 2所述的方法, 其特征在于, 所述 TPF直接使用 请求到的针对该计费键的信用额度, 进一步包括: TPF记录与已请求信 用额度的所述计费键相对应的计费规则信息。  The method according to claim 2, wherein the TPF directly uses the requested credit limit for the charging button, and further includes: the TPF record corresponds to the charging button of the requested credit line. Billing rule information.
4、 根据权利要求 1所述的方法, 其特征在于, 步骤 A中所述 TPF 向 OCS发送信用请求, 之后进一步包括:  The method according to claim 1, wherein the TPF sends a credit request to the OCS in step A, and then further includes:
Al、 OCS向 TPF返回信用额度。  Al, OCS returns the credit limit to the TPF.
5、根据权利要求 4所述的方法, 其特征在于, 所述步驟 A1之后进 一步包括: TPF记录已向 OCS请求信用额度的计费键信息。  The method according to claim 4, wherein the step A1 further comprises: the TPF records charging key information that has requested a credit line from the OCS.
6、根据权利要求 4或 5所述的方法, 其特征在于, 所述步骤 A1之 后进一步包括: TPF记录与已请求信用额度的所述计费键相对应的计费 规则信息。  The method according to claim 4 or 5, wherein the step A1 further comprises: the TPF recording the charging rule information corresponding to the charging button of the requested credit line.
7、 一种对计费键进行处理的方法, 其特征在于, OCS向 THF提供 针对计费键的重鉴权事件, TPF监测到重鉴权事件发生时, 该方法进一 步包括:  A method for processing a charging key, wherein the OCS provides a re-authentication event for the charging key to the THF, and the TPF detects that the re-authentication event occurs, the method further comprising:
B、 TPF向 OCS返回所述与重鉴权事件相对应的计费键消耗信用额 度后的剩余信用额度。 B. The TPF returns, to the OCS, the remaining credit line after the charging key corresponding to the re-authentication event consumes the credit line.
8、 根据权利要求 7所述的方法, 其特征在于, 所述步骤 B之前进 一步包括: TPF记录与所述计费键相对应的重鉴权事件信息。 The method according to claim 7, wherein the step B further comprises: the TPF recording re-authentication event information corresponding to the charging button.
9、 根据权利要求 7所述的方法, 其特征在于, 所述步骤 B之后进 一步包括: OCS进行重鉴权,然后向 TPF提供重新计算的针对该计费键 的信用额度。  9. The method according to claim 7, wherein the step B further comprises: the OCS performing re-authentication, and then providing the TPF with a recalculated credit line for the charging button.
10、根据权利要求 7所述的方法, 其特征在于, 所述步驟 B进一步 包括: TPF向 OCS提供相应的输入信息, 以供 OCS决定信用信息。  The method according to claim 7, wherein the step B further comprises: the TPF providing the OCS with corresponding input information for the OCS to determine the credit information.
11、一种对计费键进行处理的方法, 其特征在于,在线计费情况下, TPF删除计费规则时, 该方法包含:  A method for processing a charging key, characterized in that, in the case of online charging, when the TPF deletes the charging rule, the method includes:
C、 TPF根据计费规则中的计费键, 判断是否存在除需要删除的计 费规则以外的计费规则使用针对该计费键请求到的信用额度, 如果不 是, 则 TPF向 OCS返回针对该计费键的剩余信用额度。  C. The TPF determines, according to the charging button in the charging rule, whether there is a charging rule other than the charging rule that needs to be deleted, and uses the credit amount requested for the charging button. If not, the TPF returns to the OCS for the The remaining credit limit of the billing button.
12、 根据权利要求 11所述的方法, 其特征在于, 所述步 C之后 进一步包括: TPF删除需要删除的计费规则。  The method according to claim 11, wherein the step C further comprises: deleting, by the TPF, a charging rule that needs to be deleted.
PCT/CN2005/001898 2004-11-10 2005-11-10 A method for processing a charging key WO2006050670A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB200410090928XA CN100438412C (en) 2004-11-10 2004-11-10 Method for processing charge metering key
CN200410090928.X 2004-11-10

Publications (1)

Publication Number Publication Date
WO2006050670A1 true WO2006050670A1 (en) 2006-05-18

Family

ID=36336214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/001898 WO2006050670A1 (en) 2004-11-10 2005-11-10 A method for processing a charging key

Country Status (2)

Country Link
CN (1) CN100438412C (en)
WO (1) WO2006050670A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455735A (en) * 2013-09-03 2013-12-18 百度在线网络技术(北京)有限公司 Electronic payment document processing method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895857A (en) * 2010-07-09 2010-11-24 中国联合网络通信集团有限公司 Telecommunication service application amount-based real-time charging method and system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001091446A2 (en) * 2000-05-24 2001-11-29 Nokia Corporation Common charging identifier for communication networks
JP2003134111A (en) * 2001-10-26 2003-05-09 Nec Corp System, method and program for rule-based rating
US20030152039A1 (en) * 2002-02-08 2003-08-14 Timothy Roberts Customer billing in a communications network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE494695T1 (en) * 2002-10-15 2011-01-15 Ericsson Telefon Ab L M SYSTEM FOR PROVIDING FLEXIBLE CHARGING IN A NETWORK

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001091446A2 (en) * 2000-05-24 2001-11-29 Nokia Corporation Common charging identifier for communication networks
JP2003134111A (en) * 2001-10-26 2003-05-09 Nec Corp System, method and program for rule-based rating
US20030152039A1 (en) * 2002-02-08 2003-08-14 Timothy Roberts Customer billing in a communications network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455735A (en) * 2013-09-03 2013-12-18 百度在线网络技术(北京)有限公司 Electronic payment document processing method and device

Also Published As

Publication number Publication date
CN1773921A (en) 2006-05-17
CN100438412C (en) 2008-11-26

Similar Documents

Publication Publication Date Title
WO2006047965A1 (en) A method for processing the online charging
US7889650B2 (en) Method for establishing diameter session for packet flow based charging
JP4402714B2 (en) How to handle event triggers and re-authentication triggers in flow-based billing
JP5190085B2 (en) Charge control method for packet data service
US8798575B2 (en) Method for improving service data flow based charging and system thereof
EP1777871B1 (en) A method for reducing the load of tpf
EP1804419B1 (en) A method for processing the re-authorisation based on the charging of the packet data flow
JP4891223B2 (en) Method of strengthening charging rules for packet data service and method of functioning thereof
WO2005109748A1 (en) A method for selecting the charging rule for users
WO2006050669A1 (en) A process method for charging based on the packet data flow
WO2007112657A1 (en) Deciding method and system for service information in mobile communication system
WO2009021462A1 (en) Method and device for ip-can session establishment
WO2014094488A1 (en) Charging policy method and device for roaming local service
WO2005101734A1 (en) A method for achieving packet data service charging and service data flow access control
WO2006015543A1 (en) A processing method for re-authorization and re-authorization event and event triggers
WO2006060964A1 (en) A system and processing method for charging based on the packet data flow
WO2006050670A1 (en) A method for processing a charging key
WO2011017974A1 (en) Gateway, system and method for counting flow in course of resources application
WO2007079682A1 (en) A method and system using the policy and charging control of the application function service
WO2012041149A1 (en) A method and system for monitoring volume usage
WO2012041148A1 (en) Method and system for monitoring volume usage
WO2006015550A1 (en) A method for distributing the dialog number of the charging based on the packet data flow
CN101145917A (en) A processing method for billing key

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KM KN KP KR KZ LC LK LR LS LT LU LV LY MA MD MG MK MN MW MX MZ NA NG NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU LV MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase

Ref document number: 05808311

Country of ref document: EP

Kind code of ref document: A1