WO2011157123A2 - 在线计费方法、在线计费系统及策略和计费规则功能实体 - Google Patents

在线计费方法、在线计费系统及策略和计费规则功能实体 Download PDF

Info

Publication number
WO2011157123A2
WO2011157123A2 PCT/CN2011/074969 CN2011074969W WO2011157123A2 WO 2011157123 A2 WO2011157123 A2 WO 2011157123A2 CN 2011074969 W CN2011074969 W CN 2011074969W WO 2011157123 A2 WO2011157123 A2 WO 2011157123A2
Authority
WO
WIPO (PCT)
Prior art keywords
service
balance
quota
user account
pcef
Prior art date
Application number
PCT/CN2011/074969
Other languages
English (en)
French (fr)
Other versions
WO2011157123A3 (zh
Inventor
蔡慧
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201180000656.8A priority Critical patent/CN102918800B/zh
Priority to PCT/CN2011/074969 priority patent/WO2011157123A2/zh
Publication of WO2011157123A2 publication Critical patent/WO2011157123A2/zh
Publication of WO2011157123A3 publication Critical patent/WO2011157123A3/zh

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1467Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network involving prepayment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/66Policy and charging system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • the present invention relates to the field of communications, and in particular, to an online charging method, an online charging system, and a policy and charging rule function entity. Background technique
  • PCRF Policy icy and Charging Rules Function, policy and charging rules
  • the functional entity the AF (Appl ication Function) connected to the PCRF through the Rx reference point
  • PCEF Policy icy and Charging Enforcement Function
  • the Sy reference point is connected to the PCRF (OSI (Onl ine Charging System)), where the PCEF is connected to the 0CS through the Gy reference point.
  • a bearer layer connection is established between the UE (User Equipment) and the AF PCRF and the PCEF of the bearer network.
  • the AF passes the Rx reference point to the PCRF.
  • the policy control information is provided.
  • the PCRF is mainly responsible for the PCC rule (Polic icy and Charging Control rule, policy control information formulation policy and charging control rule) provided by the AF, and then the PCRF sends the PCC rule to the PCEF through the Gx reference point.
  • the PCC rule is executed by the PCEF, and the accounting information is exchanged with the 0CS, and the online charging is completed by the 0CS.
  • the online charging function mainly refers to real-time charging for the provided service.
  • the PCEF applies the quota to the 0CS in real time, and the 0CS is determined according to the user information and the amount in the user account. Whether the user is allowed to perform the service, if allowed, the user quota is extracted from the user account to deliver the PCEF in real time, thereby implementing online charging.
  • the online charging mode specifically, the three modes of immediate event charging, unit reserved event charging, or unit reserved session charging are used. Which one is decided by PCEF or PCRF, there is no specific specification in the prior art.
  • PCEF applies for quotas to the 0CS.
  • the quota for each application is the quota used by the business.
  • the application for the next phase of the quota is applied.
  • the PCEF fails to apply for the quota, and the service is interrupted.
  • the embodiment of the present invention provides an online charging method, an online charging system, and a policy and charging rule function entity.
  • the technical solution is as follows:
  • An online charging method comprising:
  • An online charging system ocs including:
  • the first total quota obtaining module is configured to obtain total quota information required by the service
  • a first determining module configured to determine, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generate a determination result
  • the online charging module is configured to perform quota management when the determination result is yes, and implement online charging.
  • a policy and charging rule function entity PCRF including:
  • a second total quota obtaining module configured to receive policy control information sent by the application function entity AF, and obtain total quota information required by the service from the policy control information;
  • a balance obtaining module configured to receive a balance of a user account sent by the online charging system 0CS; a second determining module, configured to determine, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generate a determination result;
  • the rule processing module is configured to generate a PCC rule and send it to the policy and charging execution function entity PCEF when the judgment result is yes.
  • the online charging system 0CS determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, only when the user account The balance is sufficient for the business to perform the quota management, and the quota is issued to realize the online charging. Compared with the prior art, the tariff dispute will not be generated, and the user experience is improved. DRAWINGS
  • FIG. 1 is a schematic diagram of a 3GPP online charging networking structure provided by the prior art
  • FIG. 2 is a flowchart of an embodiment of an online charging method according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of an embodiment of an online charging method according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of an embodiment of an online charging method according to Embodiment 4 of the present invention.
  • FIG. 7 is a flowchart of an embodiment of an online charging method according to Embodiment 6 of the present invention.
  • FIG. 6 is a flowchart of an embodiment of an online charging method according to Embodiment 5 of the present invention.
  • Embodiment 8 is a flowchart of an embodiment of an online charging method according to Embodiment 7 of the present invention.
  • Embodiment 8 of the present invention is a flowchart of an embodiment of an online charging method according to Embodiment 8 of the present invention.
  • FIG. 10 is a flowchart of an embodiment of an online charging method according to Embodiment 9 of the present invention.
  • FIG. 11 is a flowchart of an embodiment of an online charging method according to Embodiment 10 of the present invention.
  • FIG. 12 is a first schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 11 of the present invention
  • FIG. 12B is a second schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 11 of the present invention
  • FIG. 13 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 12 of the present invention
  • FIG. 14 is a first schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 13 of the present invention
  • FIG. 14 is a third schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 13 of the present invention
  • FIG. 12 is a first schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 11 of the present invention
  • FIG. 12B is a second schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 11 of the present invention
  • FIG. 13 is a schematic structural diagram of an embodiment of an online
  • FIG. 14d is a schematic diagram of a second structure of an online charging system 0CS according to Embodiment 13 of the present invention
  • FIG. 15 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 14 of the present invention
  • FIG. 16 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 14 of the present invention
  • FIG. 17 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 16 of the present invention
  • FIG. 18 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 17 of the present invention
  • FIG. 19 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 18 of the present invention
  • Figure 20b is a schematic diagram showing a second structure of an embodiment of a policy and charging rule function entity PCRF according to Embodiment 19 of the present invention.
  • FIG. 21 is a schematic structural diagram of an embodiment of a policy and charging rule function entity PCRF according to Embodiment 20 of the present invention. detailed description
  • Embodiments of the present invention provide an online charging method, an online charging system, and a policy and charging rule function entity.
  • FIG. 2 is a flowchart of an embodiment of an online charging method according to Embodiment 1 of the present invention, where the online charging method includes:
  • S202 Determine, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generate a determination result.
  • the quota management is performed between the PCEF and the 0CS to implement the online charging function.
  • the 0CS obtains the first quota from the quota application message sent by the PCEF, where the user The first quota is allocated to the PCEF, and the online charging is performed between the PCEF and the 0CS according to the first quota.
  • the first quota is a real-time application volume according to the service demand of the user. .
  • the first quota may be a total quota required by the service, or may be part of a total quota required by the service.
  • the online charging mode is the Event Event charging with Reservation
  • the first quota is a total quota required by the service.
  • the online charging mode is the session charging with the reservation
  • the first quota may be a total quota required by the service; or the quota applied in real time may be a part of the total quota required by the service.
  • the quota is determined according to the total quota information required by the service and the balance of the user account. Regardless of which online charging mode is adopted, the quota management is performed only when the balance of the user account is sufficient for the service. The quota is issued to realize online charging; compared with the prior art, the tariff dispute is not generated, and the user experience is improved.
  • Example 2
  • FIG. 3 is a flowchart of an embodiment of an online charging method according to Embodiment 2 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS, thereby implementing the online charging function.
  • the total quota information required by the service is carried in the quota application message sent by the PCEF.
  • the online charging method includes:
  • S301 Establish a connection of a bearer layer between the user equipment UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S302 Perform service activation between the UE and the AF.
  • S303 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes the total quota information required by the service, the service type, the description information of the service data flow, the QoS (Quality of Service) information, and the charging related policy information (including the charging identifier of the service layer AF). (AF-Charging ID)) and so on.
  • the total quota information required by the service may be at least one of the following information: the traffic information, the duration information, and the tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the PCRF determines, according to the policy control information, a control policy of the service data flow in the bearer layer, and generates a PCC rul1.
  • the PCC rule includes total quota information, service data flow information, decision QoS information, and adopted charging policy information required by the service.
  • the PCEF executes the PCC rule, and sends a quota application message to the 0CS, where the quota application message carries the total quota information required by the service.
  • S307 The 0CS acquires total quota information required by the service and a balance of a user account.
  • the 0CS receives a quota application message sent by the PCEF, where the quota application message carries the total quota information required by the service and the first quota, where the first quota is when the UE initiates a service, according to the user.
  • the service demand is obtained by the PCEF in real time from the PCCS; the total quota information required by the service is obtained from the application quota message; the 0CS queries the user account, and the user is obtained according to the user account. The balance of the account.
  • the 0CS determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generates a determination result. Determining, according to the total quota information required by the service, the balance of the user account, whether the balance of the user account is sufficient to complete the service, specifically, the total service quota in the total quota information required by the service is greater than the total.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • the 0CS performs quota management according to the first quota, and implements online charging. Specifically, the 0CS balances the user account according to the quota application message. The first quota is sent to the PCEF, and the online charging is performed according to the first quota. When the quota application is successful, the business data stream begins to transmit. In practical applications, the process of performing quota management is the process of implementing credit management for online charging.
  • the AF belongs to the service gateway
  • the PCRF belongs to the policy gateway
  • the PCEF belongs to the data gateway
  • the 0CS belongs to the charging gateway; wherein, the service gateway, the policy gateway, the data gateway, and the charging gateway are all It is a network side gateway.
  • the 0CS directly deducts or reserves the total quota required by the service in the balance of the user account according to the total quota information required by the service. Specifically, the total quota required for deduction or reservation of business is determined according to the online charging mode.
  • 0CS decides whether to perform quota management according to the total quota information required by the service and the balance of the user account. Regardless of which online charging mode is adopted, the quota management is performed only when the balance of the user account is sufficient for the business. , the quota is issued, when the balance of the user account is insufficient, the quota application fails; compared with the prior art, the tariff dispute is not generated, and the user experience is improved.
  • Example 3 Example 3:
  • FIG. 4 is a flowchart of an embodiment of an online charging method according to Embodiment 3 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS.
  • the balance of the user account is sufficient and the quota application message carries relevant indication information that the service cannot be interrupted, the balance of the user account is deducted or pre-paid.
  • the online charging method includes:
  • S401 Establish a connection of a bearer layer between the user equipment UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S402 Perform service activation between the UE and the AF.
  • S403 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be at least one of the following information: traffic information, duration information, and tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include the service uninterruptible indication information; or the policy control information may further include an immediate event charging indication information or a unit reserved event charging indication information, where the immediate event charging indication information Or the unit reserved event charging indication information is used to indicate that the service one-time application quota is uninterruptible, and its role is similar to the service uninterruptible indication information.
  • the policy control information includes the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information, the following process is performed.
  • the PCRF determines, according to the policy control information, a control strategy of the service data flow in the bearer layer, and generates a PCC rul-1.
  • the PCC rule includes total quota information, service data flow information, decision QoS information, and adopted charging policy information required by the service; the PCC rule further includes a service uninterruptible indication information or an immediate event charging indication.
  • the information or unit reserves event charging indication information.
  • the PCEF executes the PCC rule, and sends a quota application message to the 0CS.
  • the quota application message carries the total quota information required by the service; the quota application message further carries the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information.
  • the 0CS acquires total quota information required by the service and a balance of a user account.
  • the 0CS receives a quota application message sent by the PCEF, where the quota application message carries the total quota information required by the service and the first quota; and obtains the required service from the quota application message. Total quota information; the 0CS queries the user account, and obtains the balance of the user account according to the user account.
  • S408 The 0CS determines whether the balance of the user account is sufficient to complete the service according to the total quota information required by the service and the balance of the user account. If yes, execute S409; if no, execute S411.
  • the balance of the user account Determining, according to the total quota information required by the service, the balance of the user account, whether the balance of the user account is sufficient to complete the service, specifically, the total service quota in the total quota information required by the service is greater than the total
  • the generated judgment result is no;
  • the total service quota in the total quota information required by the service is less than or equal to the balance of the user account, the balance of the user account can complete the service, and the generated judgment result is yes.
  • S409 The 0CS deducts or reserves the total quota required by the service in the balance of the user account.
  • the 0CS determines whether the quota application message carries one of the following information: service uninterruptible indication information, immediate event charging indication information, and unit reserved event charging indication information, If yes, the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information is obtained from the quota application message.
  • the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information may indicate that the service must be completely executed and cannot be interrupted.
  • the online charging mode may be Immediate Event Charging ⁇ Event charging with Reservation or Session charging with Reservation.
  • the PCRF or the PCEF is determined according to the non-interruptible indication information. If the session is charging with the reservation, the first quota when the first application is specified is the business requirement. Total quota
  • the online charging mode is Immediate Event Charging or Event charging with Reservation, respectively, and the online charging mode is described by AF decision.
  • the online charging mode is Event charging with Reservation or Session charging with Reservation
  • the total quota required by the service is reserved in the balance of the user account.
  • the session charging service can be converted from the Session charging with Reservation mode to the Event charging with Reservation mode by using the Session charging with Reservation mode. achieve.
  • the OCS extracts the first quota from the total quota required for the deducted or reserved service, and sends the first quota to the PCEF to implement online charging.
  • the 0CS sends the first quota to the PCEF according to the quota request message, and the first quota is sent to the PCEF, so that the first quota is initiated by the user equipment.
  • the quota applied by the PCEF to the 0CS in real time according to the requirements of the user equipment. After the quota application is successful, the number of businesses The flow begins to transmit.
  • the quota application message may not be sent to the 0CS, but the total quota information required by the service is first sent to the 0CS; The total quota information required by the service and the balance of the user account determine that the balance of the user account is sufficient to complete the service.
  • the PCEF sends a quota application message again, and the quota application message is not carried.
  • the total quota information required by the service is implemented by the PCEF and the 0CS according to the first quota carried in the quota application message to implement online charging.
  • the total quota information required by the service is in the user account.
  • the total quota required for the service is deducted or reserved; when the quota application message sent by the PCEF is not received within the preset time, the total quota required for deducting or reserving the service is released to the user. In the balance of the account.
  • the online charging system determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only when the balance of the user account is sufficient for the business. Issuing quotas; compared with the prior art, there will be no disputes over tariffs, which will improve the user experience.
  • the online charging mode adopted in the prior art is determined by the PCRF or the PCEF, and there is no specification.
  • which online charging mode can be adopted by the AF decision, and the Immediate Event Charging is adopted by the AF decision.
  • Event charging with Reservation you can also use the problem of using Session charging with Reservation in the existing technology, which also improves the user's business experience.
  • FIG. 5 is a flowchart of an embodiment of an online charging method according to Embodiment 4 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS, where the total quota information required by the service is carried in the quota application message sent by the PCEF; when the balance of the user account is insufficient, the 0CS is Or the PCRF or PCEF decides to reject the request for the service, and notifies other network element devices to reject the request for the service.
  • the online charging method includes:
  • S501 Establish a connection of a bearer layer between the user equipment UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S502 Perform service activation between the UE and the AF.
  • S503 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be the traffic information or the duration information or the tariff information, or may be other representations of the quota.
  • the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • the PCRF determines, according to the policy control information, a control strategy of the service data flow in the bearer layer, and generates a PCC rul1.
  • the PCC rule includes total quota information, service data flow information, decision QoS information, and adopted charging policy information required by the service;
  • the PCC rule further includes service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • the PCEF executes the PCC rule, and sends a quota application message to the 0CS.
  • the quota application message carries the total quota information required by the service
  • the quota application message further carries service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • the 0CS acquires total quota information required by the service and a balance of a user account.
  • the 0CS receives a quota application message sent by the PCEF, where the quota application message carries the total quota information required by the service and the first quota; and obtains the required service from the quota application message. Total quota information; the 0CS queries the user account, and obtains the balance of the user account according to the user account.
  • S508 The 0CS determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and if yes, execute S509; if not, execute S510.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • the 0CS performs a quota management process according to the first quota, specifically, drawing the first in the balance of the user account according to the quota application message.
  • the quota is sent to the PCEF, so as to implement an online charging function; when the first quota is when the user equipment initiates a service, the PCEF sends the Ocs real-time application quota.
  • the business data stream begins to transmit.
  • the quota application message carries the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information
  • the total amount of the business needs is deducted or reserved in the balance of the user account.
  • the quota is obtained by the first quota from the total quota required for the deducted or reserved service, and is sent to the PCEF to implement online charging.
  • S409 and S410 in Embodiment 3, and no longer Narration.
  • S510 The 0CS decides to reject the request for the service and notifies the PCEF to reject the request for the service.
  • the PCEF deletes the related record of the service on the device according to the received notification of rejecting the service request, and notifies the PCRF to reject the request for the service.
  • the PCRF deletes the related record of the service on the own device according to the received notification of the request to reject the service, and notifies the AF to reject the request for the service.
  • the decision and subsequent processing may be performed in any of the following manners, specifically:
  • the 0CS does not decide, the 0CS notifies the PCEF that the balance of the user account is insufficient; the PCEF rejects the request for the service according to a notification decision that the balance of the user account is insufficient, and notifies the 0CS and the The PCRF rejects the request for the service; the PCRF notifies the AF to reject the request for the service.
  • the 0CS does not make a decision, and the PCEF is notified that the balance of the user account is insufficient; the PCEF notifies the PCRF that the balance of the user account is insufficient; and the PCRF rejects the notification according to the insufficient balance of the user account.
  • a request for the service and notifying the AF and the PCEF to reject the request for the service; the PCEF notifying the 0CS to reject the request for the service.
  • the PCEF may not send the quota application message to the 0CS, but first send the total quota information required by the service to the 0CS, and the subsequent processing flow is performed by the 0CS. Referring to the related description of Embodiment 3, details are not described herein again.
  • the online charging system determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only when the balance of the user account is sufficient for the business. Issuing quotas; compared with the prior art, there will be no disputes over tariffs, which will improve the user experience.
  • FIG. 6 is a flowchart of an embodiment of an online charging method according to Embodiment 5 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS, where the total quota information required by the service is carried in the quota application message sent by the PCEF; when the balance of the user account is insufficient, the notification message platform is performed.
  • the notification message platform is performed.
  • the online charging method includes:
  • S601 Establish a connection of a bearer layer between the UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S602 Perform service activation between the UE and the AF.
  • S603 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be at least one of the following information: traffic information, duration information, and tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • the PCRF determines, according to the policy control information, a control policy of the service data flow in the bearer layer, and generates a PCC rul1.
  • the PCC rule includes total quota information, service data flow information, decision QoS information, and adopted charging policy information required by the service;
  • the PCC rule further includes service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • the PCEF executes the PCC rule, and sends a quota application message to the 0CS.
  • the quota application message carries the total quota information required by the service
  • the quota application message further carries service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • the 0CS acquires total quota information required by the service and a balance of a user account.
  • the 0CS receives a quota application message sent by the PCEF, where the quota application message carries the total quota information required by the service and the first quota; and obtains the required service from the quota application message. Total quota information; the 0CS queries the user account, and obtains the balance of the user account according to the user account.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • S609 The 0CS sends a first quota to the PCEF.
  • the 0CS performs a quota management process according to the first quota, specifically, extracting the first from the balance of the user account according to the quota application message. Quota sent to the stated
  • the PCEF is configured to implement an online charging function.
  • the first quota is a quota applied by the PCEF to the 0CS in real time when the user equipment initiates a service.
  • the business data stream begins to transmit.
  • the quota application message carries the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information
  • the total amount of the business needs is deducted or reserved in the balance of the user account.
  • the quota is obtained by the first quota from the total quota required for the deducted or reserved service, and is sent to the PCEF to implement online charging.
  • S409 and S410 in Embodiment 3, where No longer.
  • the recharge message platform is any platform that the network side and the user equipment interact with.
  • the recharge message platform notifies the UE that the balance of the user account is insufficient.
  • S612 The UE determines whether the user equipment is recharged and whether the service continues, generates a user decision result, and sends the user decision result to the recharge message platform.
  • the UE determines whether the user equipment is recharged and the service continues according to the insufficient balance of the user account, and generates a user decision result.
  • the user decision result includes the user equipment charging and the service continues, or the user equipment does not recharge.
  • the service continues, or the user equipment does not recharge and the service does not continue.
  • the performing, by the 0CS, the predetermined processing according to the user decision result is specifically:
  • the 0CS determines the result of the user decision.
  • the 0CS obtains the recharged user account, and determines whether the balance of the recharged user account is sufficient.
  • the service if yes, performs quota management to implement online charging. Specifically, the first quota is allocated to the PCEF in the balance of the recharged user account.
  • the balance of the user account is sent to the PCEF to implement online charging; at this time, although the balance of the user account is insufficient to complete the The service, because the UE insists on continuing the service, in this embodiment, the balance of the user account is sent to the PCEF under the premise of ignoring whether the service is completely completed.
  • the insufficient balance information is sent to the PCEF, and the quota application fails.
  • the PCEF may not send the quota application message to the 0CS, but first send the total quota information required by the service to the 0CS, and the subsequent processing flow is performed by the 0CS. Referring to the related description of Embodiment 3, details are not described herein again.
  • the online charging system determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only when the balance of the user account is sufficient for the business. Issuing quotas; compared with the prior art, there will be no disputes over tariffs, which will improve the user experience.
  • FIG. 7 is a flowchart of an embodiment of an online charging method according to Embodiment 6 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS, where the total quota information required by the service is carried in the quota application message sent by the PCEF; when the balance of the user account is insufficient, the PCEF or the PCRF Notify the refill message platform to perform subsequent processing.
  • the online charging method includes:
  • S701 Establish a bearer layer connection between the user equipment UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S702 Perform service activation between the UE and the AF.
  • S703 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes the total quota information required by the service, the service type, the description information of the service data flow, the QoS (Quality of Service) information, and the charging related policy information (including the charging of the service layer AF). Identification (AF-Charging ID)) and so on.
  • the total quota information required by the service may be at least one of the following information: the traffic information, the duration information, and the tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control The information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • the PCRF determines, according to the policy control information, a control policy of the service data flow in the bearer layer, and generates a PCC rul1.
  • the PCC rule includes total quota information, service data flow information, decision QoS information, and adopted charging policy information required by the service;
  • the PCC rule further includes service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • the PCEF executes the PCC rule, and sends a quota application message to the 0CS.
  • the quota application message carries the total quota information required by the service
  • the quota application message further carries service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • S707 The 0CS acquires total quota information required by the service and a balance of a user account.
  • the 0CS receives a quota application message sent by the PCEF, where the quota application message carries the total quota information required by the service and the first quota; and obtains the required service from the quota application message. Total quota information; the 0CS queries the user account, and obtains the balance of the user account according to the user account.
  • S708 The 0CS determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and if yes, execute S709; if not, execute S710.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • S709 The 0CS extracts the first quota from the balance of the user account and sends the first quota to the PCEF.
  • the 0CS when the result of the determination is YES, the 0CS sends the first quota from the balance of the user account to the PCEF according to the quota application message, thereby implementing an online charging function;
  • the first quota is a quota applied by the PCEF to the 0CS in real time when the user equipment initiates a service.
  • the service data stream begins to transmit.
  • the quota application message carries the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information
  • the total amount of the business needs is deducted or reserved in the balance of the user account.
  • quota The first quota is allocated from the total quota required for the deducted or reserved service to the PCEF, and the online charging is implemented.
  • S714 The UE determines whether the user equipment is recharged and whether the service continues, generates a user decision result, and sends the user decision result to the recharge message platform.
  • the UE determines whether the user equipment is recharged and the service continues according to the insufficient balance information, and generates a user decision result; the user decision result includes the user equipment charging and the service continues, or the user equipment does not recharge and the service continues. Or the user equipment does not recharge and the business does not continue.
  • S715 The recharge message platform sends the user decision result to the PCRF.
  • the PCRF determines the user decision result, and when the user decision result is that the user equipment is recharged and the service continues, the PCEF user equipment is notified to recharge and the service continues; when the user decision result is that the user equipment does not When the refilling and the service is continued, the PCEF user equipment is notified that the PCEF user equipment is not recharged and the service is continued; when the user decision result is that the user equipment does not recharge and the service does not continue, the request for the service is rejected and the PCEF is notified to reject the service. Request.
  • the PCRF deletes the related record of the service on the PCRF, and rejects the request for the service.
  • the 0CS receives the notification sent by the PCEF, and performs predetermined processing according to the notification.
  • the 0CS performs predetermined processing according to the notification, specifically:
  • the 0CS user equipment After the PCEF receives the notification that the user equipment is recharged and the service is continued, the 0CS user equipment is notified to recharge and the service continues; the 0CS obtains the recharged user account, and determines whether the balance of the recharged user account is sufficient. The service is completed, and if so, the first quota is drawn from the balance of the user account and sent to the PCEF.
  • the PCEF receives the notification that the user equipment does not recharge and the service continues, notifying the 0CS user equipment that the user equipment is not recharged and the service continues; the 0CS sends the balance of the user account to the PCEF.
  • the PCEF When the PCEF receives the notification of rejecting the request for the service, it notifies the 0CS to reject the request for the service. After receiving the notification of rejecting the service request, the PCEF deletes the related record of the service on the PCEF, rejects the request for the service; and the 0CS receives the notification of rejecting the service request After that, the related record of the service described above is deleted, and the request for the service is rejected.
  • the PCEF may not notify the PCRF that the balance of the user account is insufficient, but directly Notifying the recharge message platform that the balance of the user account is insufficient; the recharge message platform performs a corresponding processing process, and the corresponding process is specifically referred to refer to S713-S715; the difference is that the recharge message platform sends the user decision result to the location
  • the PCEF is notified by the PCEF according to the result of the user decision, and the subsequent process is performed by the 0CS.
  • S717 the related description in S717, and details are not described herein again.
  • the PCEF may not send the quota application message to the 0CS, but first send the total quota information required by the service to the 0CS, and the subsequent processing flow is performed by the 0CS. Referring to the related description of Embodiment 3, details are not described herein again.
  • the online charging system determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only when the balance of the user account is sufficient for the business. Issuing quotas; compared with the prior art, there will be no disputes over tariffs, which will improve the user experience.
  • FIG. 8 is a flowchart of an embodiment of an online charging method according to Embodiment 7 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS, wherein the total quota information required by the service is sent by the PCRF; when the balance of the user account is sufficient, the PCRF formulates the PCC rule, and executes the subsequent quota. Process.
  • the online charging method includes:
  • S801 Establish a connection of a bearer layer between the UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S802 Perform service activation between the UE and the AF.
  • S803 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be at least one of the following information: traffic information, duration information, and tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • the PCRF obtains total quota information required by the service according to the policy control information, and sends total quota information required by the service to the 0CS.
  • Information exchange between the PCRF and the OCS is performed through the Sy interface, wherein the Sy interface is promoted by Ericsson in the 3GPP standard organization, and standardization has not yet been completed.
  • S805 The 0CS acquires total quota information required by the service and a balance of the user account.
  • the 0CS receives the total quota information required by the service, so as to obtain the total quota information required by the service; the 0CS queries the user account, and acquires the balance of the user account according to the user account.
  • the 0CS determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generates a determination result.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • the 0CS sends predetermined information to the PCRF according to the determination result, where the predetermined information includes remaining sufficient information and insufficient balance information.
  • the balance is sent enough information to the PCRF; when the result of the determination is No, the insufficient balance information is sent to the PCRF.
  • S808 The PCRF performs predetermined processing according to the predetermined information.
  • the PCRF When the predetermined information is balance sufficient information, the PCRF generates a PCC rule according to the policy control information and transmits the PCC rule to the PCEF.
  • the PCC rule includes the service data flow information, the determined QoS information, and the adopted charging policy information.
  • the PCC rule further includes a service uninterruptible indication information or an immediate event charging indication information or a unit reserved event. Billing indication information.
  • the PCRF decides to reject the request for the service, and notifies the AF to reject the request for the service.
  • the PCEF and the 0CS perform quota management according to the PCC rule.
  • S809-S810 perform quota management according to the PCC rule.
  • the PCEF executes the PCC rule, and sends a quota application message to the OCS.
  • the quota application message carries a first quota
  • the quota application message carries service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • the 0CS sends the first quota to the PCEF according to the quota application message.
  • the ocs sends a first quota to the PCEF from the balance of the user account according to the quota application message, thereby implementing an online charging function.
  • the first quota is a quota applied by the PCEF to the 0CS in real time when the user equipment initiates a service.
  • the business data stream begins to transmit.
  • the quota application message carries the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information
  • the total amount of the business needs is deducted or reserved in the balance of the user account.
  • the quota is obtained by the first quota from the total quota required for the deducted or reserved service, and is sent to the PCEF to implement online charging.
  • S409 and S410 in Embodiment 3, and no longer Narration.
  • the quota request message is sent to the 0CS, where the quota application message carries the total quota information required by the service and the first quota; the 0CS from the quota application message Obtaining total quota information required by the service, determining whether the balance of the user account is sufficient to complete the service according to the total quota information required by the service and the balance of the user account, and if yes, in the balance of the user account Deducting or reserving the total quota required by the service, and sending the total quota required for the deducted or reserved service to the PCRF to implement online charging; the PCRF receives the total quota required by the service, according to the service requirement
  • the PCC rule is sent to the PCEF, and the PCC rule includes a notification that the PCRF has received the total quota required by the service, so that the PCEF does not need to apply for a quota to the 0CS.
  • the PCEF is sent to the PCEF, and the PCC rule includes a notification
  • the 0CS after the 0CS obtains the total quota information required by the service, the total quota required for the service is deducted or reserved in the balance of the user account; after the 0CS performs the judgment, when the judgment result is yes And sending the balance sufficient information to the PCRF, where the PCRF generates a quota application message according to the balance sufficient information, and sends the quota application message to the 0CS, where the quota application message carries the first quota; the 0CS sends the content according to the quota application message.
  • the first quota is sent to the PCRF; the PCRF receives the first quota, and sends a PCC rule to the PCEF according to the first quota generation, where the PCC rule includes a notification that the PCRF has received the first quota, so that the PCEF does not need to be used. Then apply for a quota to 0CS; PCEF executes the PCC rule to complete the subsequent process.
  • the PCRF directly sends the total quota information required by the service to the 0CS, and the 0CS decides whether to issue the quota according to the total quota information required by the service and the balance of the user account, and only when the balance of the user account is sufficient for the service, the PCRF Only after the PCC rule is established, the subsequent quota issuance process is executed; compared with the prior art, the tariff dispute will not be generated, and the user experience of the user is improved.
  • FIG. 9 is a flowchart of an embodiment of an online charging method according to Embodiment 8 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the 0CS, where the total quota information required by the service is obtained.
  • the method is sent by the PCRF.
  • the PCRF or the 0CS notification message platform executes the subsequent process.
  • the online charging method includes:
  • S901 Establish a connection of a bearer layer between the user equipment UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S902 Perform service activation between the UE and the AF.
  • S903 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be at least one of the following information: traffic information, duration information, and tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • the PCRF obtains the total quota information required by the service according to the policy control information, and sends the total quota information required by the service to the 0CS.
  • S905 The 0CS acquires total quota information required by the service and a balance of the user account.
  • the 0CS receives the total quota information required by the service, so as to obtain the total quota information required by the service; the 0CS queries the user account, and acquires the balance of the user account according to the user account.
  • the 0CS determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generates a determination result.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • the 0CS sends predetermined information to the PCRF according to the determination result, where the predetermined information includes remaining sufficient information and insufficient balance information.
  • the balance is sent enough information to the PCRF; when the result of the determination is No, the insufficient balance information is sent to the PCRF.
  • the PCRF performs predetermined processing according to the predetermined information.
  • the PCRF generates a PCC rule according to the policy control information, and sends the PCC rule to the PCEF.
  • the PCC rule is executed by the PCEF, and the quota application message is sent to the 0CS, where the quota application message further carries the first
  • the quota is sent from the balance of the user account to the PCEF according to the quota application message.
  • the PCRF sends the insufficient balance information to the refill message platform.
  • S910 The UE determines whether the user equipment is recharged and whether the service continues, generates a user decision result, and sends the user decision result to the recharge message platform.
  • the UE determines whether the user equipment is recharged and the service continues according to the insufficient balance information, and generates a user decision result; the user decision result includes the user equipment charging and the service continues, or the user equipment does not recharge and the service continues. Or the user equipment does not recharge and the business does not continue.
  • the PCRF determines the user decision result, and when the user decision result is that the user equipment is recharged and the service continues, the PCEF user equipment is notified to recharge and the service continues; when the user decision result is that the user equipment is not When the refilling and the service is continued, the PCEF user equipment is notified that the PCEF user equipment is not recharged and the service is continued; when the user decision result is that the user equipment does not recharge and the service does not continue, the request for the service is rejected and the PCEF is notified to reject the service. Request.
  • the PCRF deletes the related record of the service on the PCRF, and rejects the request for the service.
  • the 0CS receives the notification sent by the PCEF, and performs predetermined processing according to the notification.
  • the 0CS performs predetermined processing according to the notification, specifically:
  • the 0CS user equipment After the PCEF receives the notification that the user equipment is recharged and the service is continued, the 0CS user equipment is notified to recharge and the service continues; the 0CS obtains the recharged user account, and determines whether the balance of the recharged user account is sufficient. The service is completed, and if so, the first quota is drawn from the balance of the user account and sent to the PCEF.
  • the PCEF receives the notification that the user equipment does not recharge and the service continues, notifying the 0CS user equipment that the user equipment is not recharged and the service continues; the 0CS sends the balance of the user account to the PCEF.
  • the 0CS After the PCEF receives the notification of rejecting the request for the service, the 0CS is notified to reject the request for the service. After receiving the notification of rejecting the service request, the PCEF deletes the related record of the service on the PCEF, rejects the request for the service; and the 0CS receives the notification of rejecting the service request After, put it on The related record of the service is deleted, and the request for the service is rejected.
  • the subsequent processing performed by the 0CS in the foregoing S907 according to the determination result may also be implemented in the following manner. Specifically, when the judgment result generated by the 0CS is NO, the balance of the user account of the refill message platform is directly notified by the 0CS, and the balance is different. The balance of the user account of the refill message platform is notified by the PCRF in S907 is insufficient.
  • the refill message platform performs subsequent processing, and the related process may refer to S909-S911, where the difference is that the recharge message platform sends the user decision result to the 0CS, and the 0CS performs according to the user decision result.
  • the subsequent processing refer to related descriptions in S913, and details are not described here.
  • the PCRF directly sends the total quota information required by the service to the 0CS, and the 0CS decides whether to issue the quota according to the total quota information required by the service and the balance of the user account, and only when the balance of the user account is sufficient for the service, the PCRF Only after the PCC rule is established, the subsequent quota issuance process is executed; compared with the prior art, the tariff dispute will not be generated, and the user experience of the user is improved.
  • FIG. 10 is a flowchart of an embodiment of an online charging method according to Embodiment 9 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the PCRF, and the online charging function is implemented by the 0CS when the balance of the user account is sufficient.
  • the online charging method includes:
  • S1001 A connection between a user equipment UE and a bearer network is established.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S1002 Perform service activation between the UE and the AF.
  • S1003 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be at least one of the following information: traffic information, duration information, and tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • the PCRF acquires total quota information required by the service and a balance of the user account.
  • the PCRF receives policy control information sent by the AF, and obtains total quota information required by the service from the policy control information;
  • the PCRF receives the balance of the user account sent by the 0CS, thereby obtaining the balance of the user account.
  • the PCRF determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and if yes, generates a PCC rule according to the policy control information, and sends the PCC. Rule to PCEF; if not, the PCRF decides to reject the request for the service and notifies the AF to reject the request for the service.
  • the PCC rule includes the service data flow information, the determined QoS information, and the adopted charging policy information.
  • the PCC rule further includes a service uninterruptible indication information or an immediate event charging indication information or a unit reserved event. Billing indication information.
  • the PCEF and the 0CS perform quota management according to the PCC rule. For details, refer to the description of the following steps in this embodiment.
  • the quota application message further carries a first quota
  • the quota application message carries service uninterruptible indication information or immediate event charging indication information or unit reserved event charging indication information.
  • S1008 The 0CS sends the first quota to the PCEF according to the quota application message.
  • the 0CS sends the first quota from the balance of the user account to the PCEF according to the quota application message, and implements an online charging function.
  • the first quota is a quota applied by the PCEF to the 0CS in real time when the user equipment initiates a service.
  • the business data stream begins to transmit.
  • the quota application message carries the service uninterruptible indication information or the immediate event charging indication information or the unit reserved event charging indication information
  • the total amount of the business needs is deducted or reserved in the balance of the user account.
  • the quota is obtained by the first quota from the total quota required for the deducted or reserved service, and is sent to the PCEF to implement online charging.
  • S409 and S410 in Embodiment 3, and no longer Narration.
  • the PCRF determines whether to issue a quota according to the total quota information required by the service and the balance of the user account.
  • the PCRF only formulates the PCC rule when the balance of the user account is sufficient for the service, and executes the subsequent quota issuance process; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • Example 10 Referring to FIG. 11, FIG. 11 is a flowchart of an embodiment of an online charging method according to Embodiment 10 of the present invention.
  • the total quota information required by the service and the balance of the user account are obtained by the PCRF.
  • the recharge message platform is notified to perform subsequent processing.
  • the online charging method includes:
  • a connection of a bearer layer is established between the user equipment UE and the bearer network.
  • a bearer layer connection is established between the UE and the AF, PCRF, and PCEF of the bearer network.
  • S1102 Perform service activation between the UE and the AF.
  • S1103 The AF sends policy control information of the service data flow to the PCRF of the bearer layer.
  • the policy control information includes total quota information required by the service, service type, description information of the service data flow, QoS information, and charging related policy information (including an AF-Charging ID of the service layer AF). .
  • the total quota information required by the service may be at least one of the following information: traffic information, duration information, and tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the policy control information may further include service uninterruptible indication information, or the policy control information may further include a service uninterruptible indication information immediate event charging indication information or a unit reserved event charging indication information.
  • S1104 0CS querying the user account, obtaining the balance of the user account, and sending the balance of the user account to the PCRF o
  • S1105 The PCRF acquires total quota information required by the service and a balance of the user account.
  • the PCRF receives policy control information sent by the AF, and obtains total quota information required by the service from the policy control information;
  • the PCRF receives the balance of the user account sent by the 0CS, thereby obtaining the balance of the user account.
  • S1106 The PCRF determines, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generates a determination result.
  • the PCRF When the determination result is yes, the PCRF generates a PCC rule according to the policy control information, and sends the PCC rule to the PCEF.
  • the PCEF and the 0CS perform the quota management according to the PCC rule.
  • the PCEF executes the PCC rule, and sends a quota application message to the OCS, where the quota application message further carries the first
  • the quota is sent from the balance of the user account to the PCEF according to the quota application message.
  • the insufficient balance information is sent to the refill message platform.
  • the refill message platform notifies the UE that the user account has insufficient balance.
  • S 1109 The UE determines whether the user equipment is recharged and whether the service continues, generates a user decision result, and sends the user decision result to the recharge message platform.
  • the UE determines whether the user equipment is recharged and the service continues according to the insufficient balance information, and generates a user decision result; the user decision result includes the user equipment charging and the service continues, or the user equipment does not recharge and the service continues. Or the user equipment does not recharge and the business does not continue.
  • the PCRF determines the user decision result, and when the user decision result is that the user equipment is recharged and the service continues, the PCEF user equipment is notified to recharge and the service continues; when the user decision result is the user equipment Not recharging and continuing the service, notifying the PCEF user equipment that the user does not recharge and the service continues; when the user decision result is that the user equipment does not recharge and the service does not continue, the request for the service is rejected and the PCEF is notified to reject the Business request.
  • the PCRF deletes the related record of the service on the PCRF, and rejects the request for the service.
  • the 0CS receives the notification sent by the PCEF, and performs predetermined processing according to the notification.
  • the 0CS performs predetermined processing according to the notification, specifically:
  • the 0CS user equipment After the PCEF receives the notification that the user equipment is recharged and the service is continued, the 0CS user equipment is notified to recharge and the service continues; the 0CS obtains the recharged user account, and determines whether the balance of the recharged user account is sufficient. The service is completed, and if so, the first quota is drawn from the balance of the user account and sent to the PCEF.
  • the PCEF receives the notification that the user equipment does not recharge and the service continues, notifying the 0CS user equipment that the user equipment is not recharged and the service continues; the 0CS sends the balance of the user account to the PCEF.
  • the PCEF When the PCEF receives the notification of rejecting the request for the service, it notifies the 0CS to reject the request for the service. After receiving the notification of rejecting the service request, the PCEF deletes the related record of the service on the PCEF, rejects the request for the service; and the 0CS receives the notification of rejecting the service request After that, the related record of the service described above is deleted, and the request for the service is rejected.
  • the PCRF determines whether to issue a quota according to the total quota information required by the service and the balance of the user account.
  • the PCRF only formulates the PCC rule when the balance of the user account is sufficient for the service, and executes the subsequent quota issuance process; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • the PCRF notifies the refill message platform to perform a process such as subsequent refilling, so that the user's service experience is improved.
  • FIG. 12a is a schematic diagram of a first structure of an online charging system 0CS according to Embodiment 11 of the present invention.
  • the online charging system 0CS includes:
  • the first total quota obtaining module 1201 is configured to obtain total quota information required by the service.
  • the total quota information required by the service may be one of the following information: the traffic information, the duration information, and the tariff information; and may be other representations of the quota, and the embodiment of the present invention is not limited thereto.
  • the first determining module 1202 is configured to determine, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generate a determination result.
  • the balance of the user account indicates that the balance of the user account cannot complete the service, and the generated judgment result is no; when the total service quota in the total quota information required by the service is less than or equal to the balance of the user account , indicating that the balance of the user account can complete the service, and the generated judgment result is yes.
  • the online charging module 1203 is configured to perform quota management when the determination result is yes, and implement online charging.
  • the 0CS performs quota management, and implements online charging.
  • the 0CS draws the first quota in the balance of the user account according to the quota application message.
  • the first quota is the amount of traffic that the PCEF applies to the 0CS in real time according to the service requirement of the user, and may be carried by the quota application message.
  • the business data stream begins to transmit.
  • the first determining module 1202 includes a balance obtaining unit and a determining unit, as shown in FIG. 12b.
  • the balance obtaining unit 1202a is configured to query a user account, and obtain a balance of the user account according to the user account.
  • the determining unit 1202b is configured to determine, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generate a determination result.
  • the online charging system determines whether to perform quota management according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only when the balance of the user account is sufficient for the business. Quota management, issuing quotas; Compared with the prior art, there will be no disputes over tariffs, which will improve the user experience.
  • Example 12
  • FIG. 13 is a first schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 12 of the present invention.
  • the first total quota obtaining module 1201 and the online charging are performed on the basis of Embodiment 11 in this embodiment.
  • Module 1203 has been improved.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b and the balance obtaining unit 1202a and the determining unit in Embodiment 11
  • the function of the 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total balance obtaining module 1201 includes a first total quota obtaining unit 1201a; correspondingly, the online charging module 1203 includes a first sending unit 1203a and a first online charging unit 1203b;
  • the first total quota obtaining unit 1201a is configured to receive total quota information required by the policy and the charging rule function entity PCRF;
  • the first sending unit 1203a is configured to: when the determination result is yes, send sufficient balance information to the PCRF, so that the PCRF generates and sends a policy and charging control PCC rule to the policy according to the sufficient balance information.
  • billing execution function entity PCEF billing execution function entity
  • the first online charging unit 1203b is configured to perform quota management with the PCEF according to the PCC rule.
  • the first total balance obtaining module 1201 may include a first total quota acquiring unit; correspondingly, the online charging module 1203 may include a first total quota processing unit, a sufficient balance sending unit, and a first quota management unit;
  • the first total quota obtaining unit is configured to receive total quota information required by the service sent by the policy and charging rule function entity PCRF;
  • the first total quota processing unit is configured to deduct or reserve a total quota required by the service in the balance of the user account according to the total quota information required by the service;
  • the balance is sufficient for the sending unit to send sufficient balance information to the PCRF, so that the PCRF generates and sends a quota application message to the 0CS according to the remaining sufficient information;
  • the first quota management unit performs quota management according to the quota application message and the total quota required for the deducted or reserved business.
  • the first total balance obtaining module 1201 may include a quota application receiving unit and a second total quota obtaining unit.
  • the online charging module may specifically include a second total quota processing unit and a second quota management. Unit
  • the quota application receiving unit is configured to receive a quota application message sent by the PCRF, where the quota application message carries total quota information required by the service;
  • the second total quota obtaining unit is configured to obtain, from the quota application message, total quota information required by the service;
  • the second total quota processing unit deducts or reserves a total quota required for the service in the balance of the user account according to the total quota information required by the service;
  • the second quota management unit performs quota management according to the quota application message and the total quota required for the deducted or reserved service.
  • the online charging system 0CS further includes:
  • the sending module 1204 is configured to: when the determining result is no, send insufficient balance information to the PCRF, so that the PCRF decides to reject the request for the service and notify the AF to reject the request for the service.
  • the PCRF directly sends the total quota information required by the service to the 0CS, and the 0CS decides whether to issue the quota according to the total quota information required by the service and the balance of the user account, and only when the balance of the user account is sufficient for the service, the PCRF Only after the PCC rule is established, the subsequent quota issuance process is executed; compared with the prior art, the tariff dispute will not be generated, and the user experience of the user is improved.
  • FIG. 14a is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 13 of the present invention.
  • This embodiment improves the first total quota acquisition module 1201 on the basis of the embodiment 11.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b and the balance obtaining unit 1202a and the determining unit in Embodiment 11
  • the function of the 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total quota obtaining module 1201 includes:
  • the first receiving unit 1201b is configured to receive a quota application message sent by the PCEF, where the quota application message carries total quota information required by the service;
  • the third total quota obtaining unit 1201c is configured to obtain the total quota information required by the service from the quota application message.
  • the online charging system 0CS further includes an application failure module 1205:
  • the application failure module 1205 is configured to send the insufficient balance information to the PCEF when the determination result is no, and the quota application fails.
  • FIG. 14b is a second schematic structural diagram of an online charging system 0CS according to Embodiment 13 of the present invention:
  • the decision notification module 1206 is configured to: when the determination result is no, decide to reject the request for the service, and notify the PCEF, the PCRF, and the application function entity AF to reject the request for the service.
  • the online charging system 0CS further includes a first notification module 1207, as shown in FIG. 14c, and FIG. 14c is a third schematic structural diagram of an online charging system 0CS according to Embodiment 13 of the present invention:
  • the first notification module 1207 is configured to notify the PCEF that the balance of the user account is insufficient when the determination result is negative, and cause the PCEF to decide to reject the service request and notify the 0CS, PCRF and AF rejection A request for a business.
  • FIG. 14d is a fourth schematic structural diagram of an online charging system 0CS according to Embodiment 13 of the present invention:
  • the second notification module 1208 is configured to notify the PCEF that the balance of the user account is insufficient when the determination result is no, so that the PCRF rejects the notification according to the insufficient balance of the user account sent by the PCEF.
  • the request for the service notifies the AF, the PCEF, and the 0CS to reject the request for the service.
  • the 0CS determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only issues the quota when the balance of the user account is sufficient for the business; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • FIG. 15 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 14 of the present invention.
  • the embodiment improves the first total quota obtaining module 1201 and the online charging module 1203 on the basis of the embodiment 11.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b and the balance obtaining unit 1202a and the determining unit in Embodiment 11
  • the function of the 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total quota acquisition module 1201 includes a first total quota acquisition unit 1201a.
  • the function of the first total quota acquisition unit 1201a is similar to that of the first total quota acquisition unit 1201a in the embodiment 12.
  • the online charging module 1203 includes a first sending unit 1203a and a first online charging unit 1203b, and the functions of the first sending unit 1203a and the first online charging unit 1203b and the first in the embodiment 12
  • the function of the sending unit 1203a and the first online charging unit 1203b are similar. For details, refer to the related description in Embodiment 12, and details are not described herein again.
  • the first total balance obtaining module 1201 may include a first total quota acquiring unit, and the function of the first total quota obtaining unit is similar to the function of the first total quota obtaining unit in the embodiment 12;
  • the online charging module 1203 may include a first total quota processing unit, a sufficient balance sending unit, and a first quota management unit, and functions and implementations of the first total quota processing unit, the balance sufficient sending unit, and the first quota management unit.
  • the functions of the first total quota processing unit, the balance sufficient sending unit, and the first quota management unit are similar in the example 12; for details, refer to the related description in Embodiment 12, and details are not described herein again.
  • the first total balance obtaining module 1201 may include a quota application receiving unit and a second total quota obtaining unit, and the functions of the quota application receiving unit and the second total quota obtaining unit are the same as those in the embodiment 12.
  • the function of the application receiving unit and the second total quota obtaining unit is similar.
  • the online charging module may specifically include a second total quota processing unit and a second quota management unit, and the second total quota processing unit and the second The functions of the quota management unit are similar to those of the second total quota processing unit and the second quota management unit in the embodiment 12. For details, refer to the related description in the embodiment 12, and details are not described herein again.
  • the online charging system 0CS further includes:
  • a third notification module 1209 configured to notify the refill message platform that the balance of the user account is insufficient when the determination result is negative;
  • the first receiving module 1210 is configured to receive a user decision result sent by the refill message platform
  • the first processing module 1211 is configured to determine, according to the user decision result, when the user decision result is that the UE is recharged and the service continues, obtaining the recharged user account, and determining whether the balance of the recharged user account is sufficient. Completing the service, if yes, drawing the first quota to the PCEF in the balance of the recharged user account; when the user decision result is that the UE does not recharge and the service continues, the The balance of the user account is sent to the PCEF; when the result of the user decision is that the UE does not recharge and the service does not continue, the insufficient balance information is sent to the PCEF, and the quota application fails.
  • the PCRF directly sends the total quota information required by the service to the 0CS, and the 0CS decides whether to issue the quota according to the total quota information required by the service and the balance of the user account, and only when the balance of the user account is sufficient for the service, the PCRF Only after the PCC rule is established, the subsequent quota issuance process is executed; compared with the prior art, the tariff dispute will not be generated, and the user experience of the user is improved.
  • Example 15 when the balance of the user account is insufficient, the notification message platform performs a subsequent processing flow, which also increases the user's business experience.
  • FIG. 16 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 15 of the present invention.
  • the embodiment improves the first total quota obtaining module 1201 and the online charging module 1203 on the basis of the embodiment 11.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b and the balance obtaining unit 1202a and the determining unit in Embodiment 11
  • the function of the 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total quota obtaining module 1201 includes a first total quota acquiring unit 1201a; the first total matching
  • the function of the amount obtaining unit 1201a is similar to that of the first total quota acquiring unit 1201a in the embodiment 12.
  • the online charging module 1203 includes a first sending unit 1203a and a first online charging unit 1203b, and the functions of the first sending unit 1203a and the first online charging unit 1203b and the first in the embodiment 12
  • the function of the sending unit 1203a and the first online charging unit 1203b are similar.
  • the first total balance obtaining module 1201 may include a first total quota acquiring unit, and the function of the first total quota obtaining unit is similar to the function of the first total quota obtaining unit in the embodiment 12;
  • the online charging module 1203 may include a first total quota processing unit, a sufficient balance sending unit, and a first quota management unit, and functions and implementations of the first total quota processing unit, the balance sufficient sending unit, and the first quota management unit.
  • the functions of the first total quota processing unit, the balance sufficient sending unit, and the first quota management unit are similar in the example 12; for details, refer to the related description in Embodiment 12, and details are not described herein again.
  • the first total balance obtaining module 1201 may include a quota application receiving unit and a second total quota obtaining unit, and the functions of the quota application receiving unit and the second total quota obtaining unit are the same as those in the embodiment 12.
  • the function of the application receiving unit and the second total quota obtaining unit is similar.
  • the online charging module may specifically include a second total quota processing unit and a second quota management unit, and the second total quota processing unit and the second The functions of the quota management unit are similar to those of the second total quota processing unit and the second quota management unit in the embodiment 12. For details, refer to the related description in the embodiment 12, and details are not described herein again.
  • the online charging system 0CS further includes:
  • the fourth notification module 1212 is configured to notify, by the PCRF, that the balance of the user account of the refill message platform is insufficient when the determination result is negative;
  • the second processing module 1213 is configured to: when receiving the notification that the UE is recharged by the PCEF and the service continues, obtain the recharged user account, and determine whether the balance of the recharged user account is sufficient to complete the service, if Yes, performing quota management to implement online charging; when receiving the notification that the UE is not recharged and the service continues to be sent by the PCEF, the balance of the user account is sent to the PCEF to implement online charging; When the PCEF sends the notification of the request rejecting the service, the request for the service is rejected.
  • the PCRF directly sends the total quota information required by the service to the 0CS, and the 0CS decides whether to issue the quota according to the total quota information required by the service and the balance of the user account, and only when the balance of the user account is sufficient for the service, the PCRF Only after the PCC rule is established, the subsequent quota issuance process is executed; compared with the prior art, the tariff dispute will not be generated, and the user experience of the user is improved.
  • FIG. 17 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 16 of the present invention.
  • the present embodiment improves the first total balance acquisition module 1201 on the basis of the embodiment 11.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b and the balance obtaining unit 1202a and the determining unit in Embodiment 11
  • the function of the 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total balance obtaining module 1201 includes: a first receiving unit 1201b and a third total quota acquiring unit 1201c; functions of the first receiving unit 1201b and the third total quota acquiring unit 1201c and the third embodiment
  • the functions of a receiving unit 1201b and the third total quota acquiring unit 1201c are similar. For details, refer to the related description in Embodiment 13, and details are not described herein again.
  • the online charging system 0CS further includes:
  • the fifth notification module 1214 is configured to notify the refill message platform that the balance of the user account is insufficient when the determination result is no.
  • the second receiving module 1215 is configured to receive a user decision result sent by the refill message platform.
  • the third processing module 1216 is configured to determine, according to the user decision result, when the user decision result is that the UE is recharged and the service continues, obtaining the recharged user account, and determining whether the balance of the recharged user account is sufficient. Completing the service, if yes, performing quota management to implement online charging; when the user decision result is that the UE does not recharge and the service continues, the balance of the user account is sent to the PCEF to implement online charging; When the result of the user decision is that the UE does not recharge and the service does not continue, the insufficient balance information is sent to the PCEF, and the quota application fails.
  • the online charging system determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only when the balance of the user account is sufficient for the business. Issuing quotas; compared with the prior art, there will be no disputes over tariffs, which will improve the user experience.
  • FIG. 18 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 17 of the present invention.
  • This embodiment improves the first total quota acquisition module 1201 on the basis of the embodiment 11.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b are different from the balance obtaining unit 1202a in the eleventh embodiment.
  • the function of the disconnecting unit 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total balance obtaining module 1201 includes: a first receiving unit 1201b and a third total quota acquiring unit 1201c; functions of the first receiving unit 1201b and the third total quota acquiring unit 1201c and the third embodiment
  • the functions of a receiving unit 1201b and the third total quota acquiring unit 1201c are similar. For details, refer to the related description in Embodiment 13, and details are not described herein again.
  • the online charging system 0CS further includes:
  • the sixth notification module 1217 is configured to notify, by the PCEF, that the balance of the user account of the refill message platform is insufficient when the determination result is no.
  • the fourth processing module 1218 is configured to: when receiving the notification of the UE recharging and the service continuation, obtain the recharged user account, determine whether the recharged user account balance is sufficient to complete the service, and if yes, execute the quota Management, implementing online charging; when receiving the notification that the UE does not recharge and the service continues, sending the balance of the user account to the PCEF to implement online charging; when receiving the request for rejecting the service At the time of notification, the request for the business is rejected.
  • the 0CS determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only issues the quota when the balance of the user account is sufficient for the business; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • FIG. 19 is a schematic structural diagram of an embodiment of an online charging system 0CS according to Embodiment 18 of the present invention.
  • This embodiment improves the first total quota acquisition module 1201 on the basis of the embodiment 11.
  • the first determining module 1202 in this embodiment may include a balance obtaining unit 1202a and a determining unit 1202b, and the functions of the balance obtaining unit 1202a and the determining unit 1202b and the balance obtaining unit 1202a and the determining unit in Embodiment 11
  • the function of the 1202b is similar. For details, refer to the related description in Embodiment 11, and details are not described herein again.
  • the first total balance obtaining module 1201 includes: a first receiving unit 1201b and a third total quota acquiring unit 1201c; functions of the first receiving unit 1201b and the third total quota acquiring unit 1201c and the third embodiment
  • the functions of a receiving unit 1201b and the third total quota acquiring unit 1201c are similar. For details, refer to the related description in Embodiment 13, and details are not described herein again.
  • the online charging system 0CS further includes:
  • the seventh notification module 1219 is configured to notify, by using the PCEF and the PCRF, the recharge cancellation when the determination result is no The balance of the user account of the interest platform is insufficient.
  • the fifth processing module 1220 is configured to: when receiving the notification that the UE is recharged by the PCEF and the service continues, obtain the recharged user account, and determine whether the balance of the recharged user account is sufficient to complete the service, if Yes, performing quota management to implement online charging; when receiving the notification that the UE is not recharged and the service continues to be sent by the PCEF, the balance of the user account is sent to the PCEF to implement online charging; When the PCEF sends the notification of the request rejecting the service, the request for the service is rejected.
  • the 0CS determines whether to issue a quota according to the total quota information required by the service and the balance of the user account, regardless of which online charging mode is adopted, and only issues the quota when the balance of the user account is sufficient for the business; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • the PCRF notifies the refill message platform to perform the subsequent refill processing process, which also improves the user experience of the user.
  • FIG. 20a is a schematic structural diagram of an embodiment of a policy and charging rule function entity PCRF according to Embodiment 19 of the present invention.
  • the policy and charging rule function entity PCRF includes:
  • the second total quota obtaining module 2001 is configured to receive policy control information sent by the application function entity AF, and obtain total quota information required by the service from the policy control information.
  • the balance obtaining module 2002 is configured to receive a balance of a user account sent by the online charging system 0CS.
  • the second determining module 2003 is configured to determine, according to the total quota information required by the service and the balance of the user account, whether the balance of the user account is sufficient to complete the service, and generate a determination result.
  • the rule processing module 2004 is configured to generate a PCC rule and send it to the policy and charging execution function entity PCEF when the judgment result is yes.
  • the PCRF further includes a sixth processing module 2005, as shown in Figure 20b:
  • the sixth processing module 1905 is configured to: when the determining result is no, send the insufficient balance information to the AF, so that the AF rejects the request for the service.
  • the PCRF determines whether to issue a quota according to the total quota information required by the service and the balance of the user account.
  • the PCRF only formulates the PCC rule when the balance of the user account is sufficient for the service, and executes the subsequent quota issuance process; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • FIG. 21 is a schematic diagram of a policy and charging rule function entity PCRF according to Embodiment 20 of the present invention.
  • the second embodiment of the policy and the charging rule function entity PCRF includes: a second total quota obtaining module 2001, a balance obtaining module 2002, a second determining module 2003, and a rule processing module 2004, wherein the second total quota obtaining module 2001.
  • the related description in Embodiment 19 and details are not described herein again.
  • the policy and charging rule function entity PCRF further includes:
  • the eighth notification module 2006 is configured to notify the refill message platform that the balance of the user account is insufficient when the determination result is no.
  • the third receiving module 2007 is configured to receive a user decision result sent by the refill message platform.
  • the determining notification module 2008 is configured to determine the user decision result, and when the user decision result is that the UE is recharged and the service continues, the PCEF UE is notified to recharge and the service continues; when the user decision result is that the UE does not recharge And when the service continues, the PCEF UE is notified that the PCEF UE does not recharge and the service continues; when the user decision result is that the UE does not recharge and the service does not continue, the PCEF is notified to reject the request for the service.
  • the PCRF determines whether to issue a quota according to the total quota information required by the service and the balance of the user account.
  • the PCRF only formulates the PCC rule when the balance of the user account is sufficient for the service, and executes the subsequent quota issuance process; Compared with the prior art, there is no dispute of tariffs and the user experience is improved.
  • the PCRF notifies the refill message platform to perform a process such as subsequent refilling, so that the user's service experience is improved.
  • the device type embodiment since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Meter Arrangements (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例提供了在线计费方法、在线计费系统及策略和计费规则功能实体,涉及通信领域,所述在线计费方法包括:获取业务需要的总配额信息(S201);根据所述业务需要的总配额信息和用户账户的余额判断所述用户账户的余额是否足够完成所述业务,生成判断结果(S202);当所述判断结构为是时,执行配额管理,实现在线计费(S203)。所述在线计费系统包括:第一总配额获取模块、第一判断模块和在线计费模块。所述策略和计费规则功能实体包括:第二总配额获取模块、余额获取模块、第二判断模块和规则处理模块。本发明实施例使用户的业务体验度提高。

Description

在线计费方法、 在线计费系统及策略和计费规则功能实体 技术领域
本发明涉及通信领域, 特别涉及在线计费方法、 在线计费系统及策略和计费规则功能 实体。 背景技术
目前, 3GPP ( 3rd Generation Partnership Project , 第三代合作伙伴计划) 网络的 在线计费组网架构如图 1所示, 具体包括如下逻辑实体: PCRF (Pol icy and Charging Rules Function, 策略和计费规则功能实体), 通过 Rx参考点与 PCRF连接的 AF (Appl ication Function, 应用功能实体), 通过 Gx参考点与 PCRF连接的 PCEF (Pol icy and Charging Enforcement Function, 策略和计费执行功能实体), 通过 Sy参考点与 PCRF连接的 0CS ( Onl ine Charging System, 在线计费系统), 其中, PCEF通过 Gy参考点与 0CS连接。
基于上述在线计费组网架构, UE (User Equipment , 用户设备 ) 和承载网的 AF PCRF 和 PCEF之间建立承载层的连接, UE和 AF之间进行业务激活后, AF通过 Rx参考点向 PCRF 提供策略控制信息, PCRF主要负责根据 AF提供的 PCC rule (Pol icy and Charging Control rule,策略控制信息制定策略和计费控制规则),然后 PCRF通过 Gx参考点将制定的 PCC rule 下发给 PCEF, 由 PCEF执行 PCC rule, 并与 0CS进行计费信息的交互, 由 0CS完成在线计 费。
其中, 所述在线计费功能主要是指对所提供的业务进行实时的计费; 当在线计费用户 发起业务时, PCEF向 0CS实时申请配额, 0CS将根据用户信息和用户帐户中的金额决定是 否允许该用户进行所述业务, 如果允许, 则从用户帐户中划取用户配额对 PCEF进行实时下 发, 从而实现在线计费。
在线计费模式下, PCEF向 0CS申请配额有三种方式:
1 ) 立即事件计费 ( I ediate Event Charging), 0CS收到 PCEF的配额申请请求后, 一次性扣除相应的费用; 这种方式适用于事件类业务, 例如短消息。
2 ) 单位预留事件计费 (Event charging with Reservation), PCEF—次向 OCS申请配 额, OCS赋予 PCEF—定的配额, 同时锁定相应的配额额度, 但并不真正扣除。 如果用户在 配额用光以前终止了业务, PCEF将剩余信用重传给 0CS, 0CS做相应的扣款。
3 ) 单位预留会话计费 (Session charging with Reservation ) 适用于会话类业务, PCEF多次向 0CS申请配额, 0CS赋予 PCEF—定的配额, 同时锁定相应的配额额度, 但并不 真正扣除。 如果用户在配额用光以前终止了业务, PCEF将剩余信用重传给 0CS, 0CS做相应 扣款。如果用户并没有终止服务,在先前信用耗完之前 0CS增补赋予 PCEF—定量的新配额。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 在线计费模式下, 具体使用立即事件计费、 单位预留事件计费或单位预留会话计费三种模式中的哪一种是由 PCEF或 PCRF决策的,在现有技术中没有具体规范。如果使用基于 Session模式的在线计费, PCEF向 0CS申请配额是分段进行的, 每次申请的配额为业务当次使用的配额, 当次配额消 耗完, 再进行业务下一阶段配额的申请, 当 0CS中用户账户余额不足时, PCEF申请配额失 败, 本次业务中断; 但是已经使用的业务配额已经向用户进行了计费,例如:下载一部电影, 下载到一半时, 发现 0CS 中用户账户余额不足, 业务中断, 但是已经下载的流量已经向用 户进行了计费, 这样的计费机制易产生资费纠纷, 使得用户的业务体验度降低。 发明内容
为了提高用户的业务体验度, 本发明实施例提供了在线计费方法、 在线计费系统及策 略和计费规则功能实体。 所述技术方案如下:
一种在线计费方法, 所述方法包括:
获取业务需要的总配额信息;
根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余额是否足够 完成所述业务, 生成判断结果;
当所述判断结果为是时, 执行配额管理, 实现在线计费。
一种在线计费系统 ocs, 包括:
第一总配额获取模块, 用于获取业务需要的总配额信息;
第一判断模块, 用于根据所述业务需要的总配额信息和用户账户的余额判断所述用户 帐户的余额是否足够完成所述业务, 生成判断结果;
在线计费模块, 用于当所述判断结果为是时, 执行配额管理, 实现在线计费。
一种策略和计费规则功能实体 PCRF, 包括:
第二总配额获取模块, 用于接收由应用功能实体 AF发送的策略控制信息, 从所述策略 控制信息中获取业务需要的总配额信息;
余额获取模块, 用于接收由在线计费系统 0CS发送的用户账户的余额; 第二判断模块, 用于根据所述业务需要的总配额信息和所述用户账户的余额判断所述 用户帐户的余额是否足够完成所述业务, 生成判断结果;
规则处理模块, 用于当所述判断结果为是时, 生成 PCC规则并发送至策略和计费执行 功能实体 PCEF。
本发明实施例提供的技术方案的有益效果是: 在线计费系统 0CS 根据业务需要的总配 额信息和用户账户的余额来决策是否下发配额, 不论采用哪种在线计费模式, 只有当用户 账户的余额足够业务需要时才执行配额管理, 下发配额, 从而实现在线计费; 相比较现有 技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。 附图说明
图 1是现有技术提供的 3GPP在线计费组网架构示意图;
图 2是本发明实施例 1提供的一种在线计费方法实施例的流程图;
图 3是本发明实施例 2提供的一种在线计费方法实施例的流程图;
图 4是本发明实施例 3提供的一种在线计费方法实施例的流程图;
图 5是本发明实施例 4提供的一种在线计费方法实施例的流程图;
图 7是本发明实施例 6提供的一种在线计费方法实施例的流程图;
图 6是本发明实施例 5提供的一种在线计费方法实施例的流程图;
图 8是本发明实施例 7提供的一种在线计费方法实施例的流程图;
图 9是本发明实施例 8提供的一种在线计费方法实施例的流程图;
图 10是本发明实施例 9提供的一种在线计费方法实施例的流程图;
图 11是本发明实施例 10提供的一种在线计费方法实施例的流程图;
图 12a是本发明实施例 11提供的一种在线计费系统 0CS实施例的第一结构示意图; 图 12b是本发明实施例 11提供的一种在线计费系统 0CS实施例的第二结构示意图; 图 13是本发明实施例 12提供的一种在线计费系统 0CS实施例的结构示意图; 图 14a是本发明实施例 13提供的一种在线计费系统 0CS实施例的第一结构示意图; 图 14b是本发明实施例 13提供的一种在线计费系统 0CS实施例的第二结构示意图; 图 14c是本发明实施例 13提供的一种在线计费系统 0CS实施例的第三结构示意图; 图 14d是本发明实施例 13提供的一种在线计费系统 0CS实施例的第四结构示意图; 图 15是本发明实施例 14提供的一种在线计费系统 0CS实施例的结构示意图; 图 16是本发明实施例 15提供的一种在线计费系统 0CS实施例的结构示意图; 图 17是本发明实施例 16提供的一种在线计费系统 0CS实施例的结构示意图; 图 18是本发明实施例 17提供的一种在线计费系统 0CS实施例的结构示意图; 图 19是本发明实施例 18提供的一种在线计费系统 0CS实施例的结构示意图; 图 20a是本发明实施例 19提供的一种策略和计费规则功能实体 PCRF实施例的第一结 构示意图;
图 20b是本发明实施例 19提供的一种策略和计费规则功能实体 PCRF实施例的第二结 构示意图;
图 21是本发明实施例 20提供的一种策略和计费规则功能实体 PCRF实施例的结构示意 图。 具体实施方式
本发明实施例提供在线计费方法、 在线计费系统及策略和计费规则功能实体。
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。
实施例 1
参考图 2, 图 2为本发明实施例 1提供的一种在线计费方法实施例的流程图, 所述在线 计费方法包括:
S201 : 获取业务需要的总配额信息。
S202: 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余额是 否足够完成所述业务, 生成判断结果。
S203: 当所述判断结果为是时, 执行配额管理, 实现在线计费。
实际应用中, 当所述判断结果为是时, 在 PCEF和 0CS之间执行配额管理, 实现在线计 费功能; 具体地, 0CS从 PCEF发送的配额申请消息中获取第一配额, 在所述用户账户的余 额中划取第一配额发送至所述 PCEF, 根据所述第一配额在 PCEF和 0CS之间进行在线计费; 其中, 所述第一配额为根据用户的业务需求实时申请的业务量。
所述第一配额可以是业务需要的总配额, 也可以是业务需要的总配额的一部分。 具体 地, 当在线计费模式是 Immediate Event Charging禾口 Event charging with Reservation 时, 所述第一配额就是业务需要的总配额。 当在线计费模式是 Session charging with Reservation时, 所述第一配额可以是业务需要的总配额; 也可以是实时申请的配额, 则是 业务需要的总配额的一部分。
在本实施例中, 根据业务需要的总配额信息和用户账户的余额来决策是否下发配额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时 0CS才执行配额管理, 下发配额, 从而实现在线计费; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的 业务体验度。 实施例 2:
参考图 3, 图 3为本发明实施例 2提供的一种在线计费方法实施例的流程图。本实施例 由 0CS 获取业务需要的总配额信息和用户账户的余额, 从而实现在线计费功能; 其中, 所 述业务需要的总配额信息由 PCEF发送的配额申请消息中携带。
所述在线计费方法包括:
S301 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S302: 所述 UE和 AF之间进行业务激活。
S303: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS (Quality of Service, 服务质量) 信息和计费相关策略信息 (包含业务层 AF 的计费标识 (AF-Charging ID)) 等。 所述业务需要的总配额信息可以为以下信息中的至少 一种: 流量信息、 时长信息和资费信息; 也可以为配额的其他表现形式, 本发明实施例不 局限于此。
S304:所述 PCRF根据所述策略控制信息决策业务数据流在承载层的控制策略,生成 PCC rul㊀。
其中, 所述 PCC rule包括所述业务需要的总配额信息、 业务数据流信息、 决策的 QoS 信息和采用的计费策略信息等。
S305: 所述 PCRF发送所述 PCC rule至所述 PCEF。
S306: 所述 PCEF执行所述 PCC rule, 发送配额申请消息至 0CS, 所述配额申请消息中 携带所述业务需要的总配额信息。
S307: 所述 0CS获取所述业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS接收由所述 PCEF发送的配额申请消息, 所述配额申请消息携带 业务需要的总配额信息和第一配额, 所述第一配额为所述 UE发起业务时, 根据用户的业务 需求由所述 PCEF向所述 0CS实时申请的业务量; 从所述申请配额消息中获取所述业务需要 的总配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。
S308: 所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 生成判断结果。 根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S309: 所述 0CS根据所述判断结果实现在线计费。
实际应用中, 当所述判断结果为是时, 所述 0CS 根据所述第一配额执行配额管理, 实 现在线计费; 具体地, 所述 0CS 根据所述配额申请消息在所述用户帐户的余额中划取所述 第一配额发送至所述 PCEF, 根据所述第一配额进行在线计费。 当配额申请成功后, 业务数 据流开始传输。 实际应用中, 执行配额管理的过程, 就是实现在线计费的信用管理的过程。
当所述判断结果为否时, 发送余额不足信息至 PCEF, 配额申请失败。
在本实施例中,具体采用 Immediate Event Charging Event charging with Reservation 或 Session charging with Reservation三种在线计费模式中的哪一种是由 PCEF或 PCRF 决策的, 此部分与现有技术类似, 在此不再赘述。
在本实施例中, 所述 AF属于业务网关, 所述 PCRF属于策略网关, 所述 PCEF属于数据 网关, 所述 0CS 属于计费网关; 其中, 业务网关、 策略网关、 数据网关和计费网关都是网 络侧网关。
优选的, 本实施例中, 当所述判断结果为是时, 所述 0CS 根据所述业务需要的总配额 信息在所述用户账户的余额中直接扣除或预留业务需要的总配额。 具体是扣除还是预留业 务需要的总配额, 根据在线计费模式来确定。
在本实施例中, 0CS根据业务需要的总配额信息和用户账户的余额来决策是否执行配额 管理, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时 0CS 才执行配 额管理, 下发配额, 当用户账户的余额不足时, 配额申请失败; 相比较现有技术而言, 不 会产生资费纠纷, 提高了用户的业务体验度。 实施例 3:
参考图 4, 图 4为本发明实施例 3提供的一种在线计费方法实施例的流程图。本实施例 由 0CS 获取业务需要的总配额信息和用户账户的余额, 当用户账户的余额足够且配额申请 消息中携带业务不可中断的相关指示信息时, 在所述用户账户的余额中扣除或预留业务需 要的总配额。 所述在线计费方法包括:
S401 : 用户设备 UE和承载网之间建立承载层的连接。 实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S402: 所述 UE和 AF之间进行业务激活。
S403: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少一种: 流量信息、 时长信息和资费信 息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
所述策略控制信息还可以包括业务不可中断指示信息; 或者, 所述策略控制信息还可 以包括立即事件计费指示信息或单位预留事件计费指示信息, 其中, 所述立即事件计费指 示信息或单位预留事件计费指示信息用于表示业务一次性申请配额, 不可中断, 其作用和 业务不可中断指示信息的作用类似。
当所述策略控制信息中包括业务不可中断指示信息或立即事件计费指示信息或单位预 留事件计费指示信息时, 执行下述流程。
S404:所述 PCRF根据所述策略控制信息决策业务数据流在承载层的控制策略,生成 PCC rul㊀。
其中, 所述 PCC rule包括所述业务需要的总配额信息、 业务数据流信息、 决策的 QoS 信息和采用的计费策略信息; 所述 PCC rule还包括业务不可中断指示信息或立即事件计费 指示信息或单位预留事件计费指示信息。
S405: 所述 PCRF发送所述 PCC rule至所述 PCEF。
S406: 所述 PCEF执行所述 PCC rule, 发送配额申请消息至 0CS。
其中, 所述配额申请消息中携带所述业务需要的总配额信息; 所述配额申请消息中还 携带业务不可中断指示信息或立即事件计费指示信息或单位预留事件计费指示信息。
S407: 所述 0CS获取所述业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS接收由所述 PCEF发送的配额申请消息, 其中, 所述配额申请消 息携带业务需要的总配额信息和第一配额; 从所述配额申请消息中获取所述业务需要的总 配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。
S408: 所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 如果是, 执行 S409; 如果否, 执行 S411。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S409: 所述 0CS在所述用户帐户的余额中扣除或预留业务需要的总配额。
当所述判断结果为是时, 所述 0CS 判断所述配额申请消息中是否携带以下信息中的一 种: 业务不可中断指示信息、 立即事件计费指示信息和单位预留事件计费指示信息, 如果 是, 从所述配额申请消息中获取业务不可中断指示信息或立即事件计费指示信息或单位预 留事件计费指示信息。 其中, 所述业务不可中断指示信息或立即事件计费指示信息或单位 预留事件计费指示信息均可以表示业务必须完整执行, 不可中断。
如果从所述配额申请信息中获取的是不可中断指示信息, 表示所述业务必须完整执行, 不支持续传, 则在线计费模式可以是 Immediate Event Charging^ Event charging with Reservation或 Session charging with Reservation三禾中中的任——禾中, 具体由所述 PCRF 或 PCEF根据所述不可中断指示信息进行决策, 如果是 Session charging with Reservation 时, 则指定其第一次申请时的第一配额就是业务需要的总配额;
或者,
如果从所述配额申请信息中获取的是立即事件计费指示信息或单位预留事件计费指示 信息, 则在线计费模式分别是 Immediate Event Charging 或 Event charging with Reservation, 在线计费模式由所述 AF决策。
当从所述配额申请信息中获取不可中断指示信息, 或立即事件计费指示信息, 或单位 预留事件计费指示信息后, 具体地, 当在线计费模式是 Immediate Event Charging时, 在 所述用户帐户的余额中扣除业务需要的总配额;
或者,
当在线计费模式是 Event charging with Reservation 或 Session charging with Reservation时, 在所述用户帐户的余额中预留业务需要的总配额。
此外, 对于现有技术中采用 Session charging with Reservation模式的会话类业务, 在本实施例中也可以将所述会话类业务的在线计费模式由 Session charging with Reservation模式转换为 Event charging with Reservation模式来实现。
S410: 所述 OCS 从所述扣除或预留的业务需要的总配额中划取所述第一配额发送至所 述 PCEF, 实现在线计费。
所述 0CS 根据所述配额申请消息从所述扣除或预留的业务需要的总配额中划取所述第 一配额向 PCEF发送, 从而实现在线计费功能; 所述第一配额为用户设备发起业务时, 根据 所述用户设备的需求由所述 PCEF向所述 0CS实时申请的配额。 当配额申请成功后, 业务数 据流开始传输。
S411 : 发送余额不足信息至 PCEF, 配额申请失败。
本实施例中, 对于 S406中所述 PCEF执行所述 PCC rule后, 可以先不发送配额申请消 息至 0CS, 而是先发送所述业务需要的总配额信息至 0CS; 由所述 0CS根据所述业务需要的 总配额信息和用户账户的余额判断所述用户账户的额余额足够完成所述业务时, 0CS发送余 额足够信息至 PCEF后, PCEF再发送配额申请消息, 所述配额申请消息中不携带业务需要的 总配额信息, 由所述 PCEF和 0CS根据所述配额申请消息中携带的第一配额执行配额管理, 实现在线计费。 优选的, 当所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判 断所述用户账户的额余额足够完成所述业务时, 根据所述业务需要的总配额信息在所述用 户账户的余额中扣除或预留所述业务需要的总配额; 当在预设时间内未收到 PCEF发送的配 额申请消息时, 释放所述扣除或预留所述业务需要的总配额至所述用户账户的余额中。
在本实施例中, 在线计费系统根据业务需要的总配额信息和用户账户的余额来决策是 否下发配额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发 配额; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 现有技术中采用哪种在线计费模式由 PCRF或 PCEF决策, 具体没有规范, 而在 本实施例中, 可以由 AF决策采用哪种在线计费模式, 且由 AF决策采用 Immediate Event Charging 或 Event charging with Reservation , 也可以克月艮现有技术中采用 Session charging with Reservation出现的问题, 同样使得用户的业务体验度提高。 实施例 4:
参考图 5, 图 5为本发明实施例 4提供的一种在线计费方法实施例的流程图。本实施例 由 0CS 获取业务需要的总配额信息和用户账户的余额, 其中, 所述业务需要的总配额信息 由 PCEF发送的配额申请消息中携带; 当所述用户账户的余额不足时, 由 0CS或者 PCRF或 者 PCEF决策拒绝所述业务的请求, 并通知其他网元设备拒绝所述业务的请求。
所述在线计费方法包括:
S501 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S502: 所述 UE和 AF之间进行业务激活。
S503: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为流量信息或时长信息或资费信息, 也可以为配额的其他 表现形式, 本发明实施例不局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S504:所述 PCRF根据所述策略控制信息决策业务数据流在承载层的控制策略,生成 PCC rul㊀。
其中, 所述 PCC rule包括所述业务需要的总配额信息、 业务数据流信息、 决策的 QoS 信息和采用的计费策略信息;
优选地, 所述 PCC rule还包括业务不可中断指示信息或立即事件计费指示信息或单位 预留事件计费指示信息。
S505: 所述 PCRF发送所述 PCC rule至所述 PCEF。
S506: 所述 PCEF执行所述 PCC rule, 发送配额申请消息至 0CS。
其中, 所述配额申请消息中携带所述业务需要的总配额信息;
优选地, 所述配额申请消息中还携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息。
S507: 所述 0CS获取所述业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS接收由所述 PCEF发送的配额申请消息, 其中, 所述配额申请消 息携带业务需要的总配额信息和第一配额; 从所述配额申请消息中获取所述业务需要的总 配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。
S508: 所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 如果是, 执行 S509; 如果否, 执行 S510。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S509: 所述 0CS发送第一配额至所述 PCEF。
实际应用中, 当所述判断结果为是时, 所述 0CS根据所述第一配额执行配额管理流程, 具体地, 根据所述配额申请消息在所述用户帐户的余额中划取所述第一配额发送至所述 PCEF, 从而实现在线计费功能; 所述第一配额为用户设备发起业务时, 由所述 PCEF向所述 ocs实时申请的配额。 当配额申请成功后, 业务数据流开始传输。
优选地, 当所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息时, 在所述用户帐户的余额中扣除或预留业务需要的总配额, 从所述扣除或预留的业务需要的总配额中划取第一配额向 PCEF发送, 实现在线计费; 具体 地, 可以参考实施例 3中 S409和 S410的相关描述, 在此不再赘述。
S510: 所述 0CS决策拒绝所述业务的请求并通知所述 PCEF拒绝所述业务的请求。
S511 : 所述 PCEF通知所述 PCRF拒绝所述业务的请求。
所述 PCEF根据接收到的拒绝所述业务的请求的通知, 将自身设备上所述业务的相关记 录删除, 并通知所述 PCRF拒绝所述业务的请求。
S512 : 所述 PCRF通知所述 AF拒绝所述业务的请求。
所述 PCRF根据接收到的拒绝所述业务的请求的通知, 将自身设备上所述业务的相关记 录删除, 并通知所述 AF拒绝所述业务的请求。
除了 S510中的决策方式及后续处理外, 还可以采用以下方式中的任一种方式进行决策 和后续处理, 具体为:
1 ) 所述 0CS不决策, 所述 0CS通知所述 PCEF所述用户帐户的余额不足; 所述 PCEF根 据用户帐户的余额不足的通知决策拒绝所述业务的请求, 并通知所述 0CS和所述 PCRF拒绝 所述业务的请求; 所述 PCRF通知所述 AF拒绝所述业务的请求。
2 )所述 0CS不决策,通知所述 PCEF所述用户帐户的余额不足;所述 PCEF通知所述 PCRF 所述用户帐户的余额不足; 所述 PCRF根据所述用户帐户的余额不足的通知决策拒绝所述业 务的请求, 并通知 AF和所述 PCEF拒绝所述业务的请求; 所述 PCEF通知所述 0CS拒绝所述 业务的请求。
本实施例中, 在所述 PCEF执行所述 PCC rule后, 可以先不发送配额申请消息至 0CS, 而是先发送所述业务需要的总配额信息至 0CS, 由 0CS执行后续处理流程, 具体可参照实施 例 3的相关描述, 在此不再赘述。
在本实施例中, 在线计费系统根据业务需要的总配额信息和用户账户的余额来决策是 否下发配额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发 配额; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 0CS或者 PCEF或者 PCRF决策拒绝所述业务的请 求, 并通知其他网元设备拒绝所述业务的请求, 使得用户的业务体验度提高。 实施例 5 : 参考图 6, 图 6为本发明实施例 5提供的一种在线计费方法实施例的流程图。本实施例 由 0CS 获取业务需要的总配额信息和用户账户的余额, 其中, 所述业务需要的总配额信息 由 PCEF发送的配额申请消息中携带; 当用户账户的余额不足时, 通知消息平台进行后续处 理。
所述在线计费方法包括:
S601 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S602: 所述 UE和 AF之间进行业务激活。
S603: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少一种: 流量信息、 时长信息和资费信 息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S604:所述 PCRF根据所述策略控制信息决策业务数据流在承载层的控制策略,生成 PCC rul㊀。
其中, 所述 PCC rule包括所述业务需要的总配额信息、 业务数据流信息、 决策的 QoS 信息和采用的计费策略信息;
优选地, 所述 PCC rule还包括业务不可中断指示信息或立即事件计费指示信息或单位 预留事件计费指示信息。
S605: 所述 PCRF发送所述 PCC rule至所述 PCEF。
S606: 所述 PCEF执行所述 PCC rule, 发送配额申请消息至 0CS。
其中, 所述配额申请消息中携带所述业务需要的总配额信息;
优选地, 所述配额申请消息中还携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息。
S607: 所述 0CS获取所述业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS接收由所述 PCEF发送的配额申请消息, 其中, 所述配额申请消 息携带业务需要的总配额信息和第一配额; 从所述配额申请消息中获取所述业务需要的总 配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。 S608 : 所述 OCS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 如果是, 执行 S609; 如果否, 执行 S610。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S609: 所述 0CS发送第一配额至所述 PCEF。
实际应用中, 当所述判断结果为是时, 所述 0CS根据所述第一配额执行配额管理流程, 具体地, 根据所述配额申请消息从所述用户账户的余额中划取所述第一配额发送至所述
PCEF, 从而实现在线计费功能; 所述第一配额为用户设备发起业务时, 由所述 PCEF向所述 0CS实时申请的配额。 当配额申请成功后, 业务数据流开始传输。
优选地, 当所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息时, 在所述用户帐户的余额中扣除或预留业务需要的总配额, 从所述扣除或预留的业务需要的总配额中划取所述第一配额向 PCEF发送, 实现在线计费; 具体地, 可以参考实施例 3中 S409和 S410的相关描述, 在此不再赘述。
S610: 所述 0CS通知充值消息平台所述用户账户的余额不足。
所述充值消息平台为网络侧和用户设备交互的任意平台。
S611 : 所述充值消息平台通知所述 UE所述用户账户的余额不足。
S612 : 所述 UE决策用户设备是否充值和业务是否继续, 生成用户决策结果, 发送所述 用户决策结果至充值消息平台。
实际应用中, 所述 UE根据所述用户账户的余额不足的通知决策用户设备是否充值和业 务是否继续, 生成用户决策结果; 所述用户决策结果包括用户设备充值且业务继续, 或用 户设备不充值且业务继续, 或用户设备不充值且业务不继续。
S613 : 充值消息平台发送所述用户决策结果至所述 0CS。
S614: 所述 0CS根据所述用户决策结果执行预定处理。
实际应用中, 所述 0CS根据所述用户决策结果执行预定处理具体为:
所述 0CS 对所述用户决策结果进行判断, 当所述用户决策结果为用户设备充值且业务 继续时, 所述 0CS 获取充值后的用户账户, 判断所述充值后的用户账户的余额是否足够完 成所述业务, 如果是, 执行配额管理, 实现在线计费, 具体的, 在所述充值后的用户帐户 的余额中划取所述第一配额发送至所述 PCEF。 当所述用户决策结果为用户设备不充值且业务继续时, 将所述用户账户的余额发送至 所述 PCEF, 实现在线计费; 此时, 虽然所述用户账户的余额不足以完整完成所述业务, 由 于所述 UE执意使业务继续, 本实施例在忽略业务是否完整完成的前提下, 将所述用户账户 的余额发送所述 PCEF。
当所述用户决策结果为用户设备不充值且业务不继续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
本实施例中, 在所述 PCEF执行所述 PCC rule后, 可以先不发送配额申请消息至 0CS, 而是先发送所述业务需要的总配额信息至 0CS, 由 0CS执行后续处理流程, 具体可参照实施 例 3的相关描述, 在此不再赘述。
在本实施例中, 在线计费系统根据业务需要的总配额信息和用户账户的余额来决策是 否下发配额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发 配额; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 0CS通知消息平台执行后续充值等处理, 使得用户的 业务体验度提高。 实施例 6:
参考图 7, 图 7为本发明实施例 6提供的一种在线计费方法实施例的流程图。本实施例 由 0CS 获取业务需要的总配额信息和用户账户的余额, 其中, 所述业务需要的总配额信息 由 PCEF发送的配额申请消息中携带; 当用户账户的余额不足时, 由 PCEF或者 PCRF通知充 值消息平台执行后续处理流程。
所述在线计费方法包括:
S701 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S702: 所述 UE和 AF之间进行业务激活。
S703: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 服务质量 (QoS, Qual ity of Service ) 信息和计费相关策略信息 (包含业务层 AF 的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少 一种: 流量信息、 时长信息和资费信息; 也可以为配额的其他表现形式, 本发明实施例不 局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S704:所述 PCRF根据所述策略控制信息决策业务数据流在承载层的控制策略,生成 PCC rul㊀。
其中, 所述 PCC rule包括所述业务需要的总配额信息、 业务数据流信息、 决策的 QoS 信息和采用的计费策略信息;
优选地, 所述 PCC rule还包括业务不可中断指示信息或立即事件计费指示信息或单位 预留事件计费指示信息。
S705: 所述 PCRF发送所述 PCC rule至所述 PCEF。
S706: 所述 PCEF执行所述 PCC rule, 发送配额申请消息至 0CS。
其中, 所述配额申请消息中携带所述业务需要的总配额信息;
优选地, 所述配额申请消息中还携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息。
S707: 所述 0CS获取所述业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS接收由所述 PCEF发送的配额申请消息, 其中, 所述配额申请消 息携带业务需要的总配额信息和第一配额; 从所述配额申请消息中获取所述业务需要的总 配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。
S708: 所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 如果是, 执行 S709; 如果否, 执行 S710。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S709: 所述 0CS从所述用户账户的余额中划取所述第一配额发送至所述 PCEF。
实际应用中, 当所述判断结果为是时, 所述 0CS 根据所述配额申请消息从所述用户账 户的余额中划取所述第一配额发送至所述 PCEF, 从而实现在线计费功能; 所述第一配额为 用户设备发起业务时, 由所述 PCEF向所述 0CS实时申请的配额。 当配额申请成功后, 业务 数据流开始传输。
优选地, 当所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息时, 在所述用户帐户的余额中扣除或预留业务需要的总配额, 从所述扣除或预留的业务需要的总配额中划取第一配额向 PCEF发送, 实现在线计费; 具体 地, 可以参考实施例 3中 S409和 S410的相关描述, 在此不再赘述。
S710: 所述 0CS通知所述 PCEF所述用户帐户的余额不足。
S711 : 所述 PCEF通知所述 PCRF所述用户帐户的余额不足。
S712 : 所述 PCRF通知充值消息平台所述用户帐户的余额不足。
S713 : 所述充值消息平台通知所述 UE所述用户帐户的余额不足。
S714: 所述 UE决策用户设备是否充值和业务是否继续, 生成用户决策结果, 发送所述 用户决策结果至充值消息平台。
实际应用中, 所述 UE根据所述余额不足信息决策用户设备是否充值和业务是否继续, 生成用户决策结果; 所述用户决策结果包括用户设备充值且业务继续, 或用户设备不充值 且业务继续, 或用户设备不充值且业务不继续。
S715 : 所述充值消息平台发送所述用户决策结果至所述 PCRF。
S716 : 所述 PCRF对所述用户决策结果进行判断, 当所述用户决策结果为用户设备充值 且业务继续时, 通知所述 PCEF用户设备充值且业务继续; 当所述用户决策结果为用户设备 不充值且业务继续时, 通知所述 PCEF用户设备不充值且业务继续; 当所述用户决策结果为 用户设备不充值且业务不继续时, 拒绝所述业务的请求并通知所述 PCEF拒绝所述业务的请 求。
当所述用户决策结果为用户设备不充值且业务不继续时, 所述 PCRF将所述 PCRF上所 述业务的相关记录删除, 拒绝所述业务的请求。
S717 : 所述 0CS接收由所述 PCEF发送的通知, 根据所述通知执行预定处理。
实际应用中, 所述 0CS根据所述通知执行预定处理具体为:
当所述 PCEF接收所述用户设备充值且业务继续的通知后, 通知所述 0CS用户设备充值 且业务继续; 所述 0CS 获取充值后的用户账户, 判断所述充值后的用户账户的余额是否足 够完成所述业务, 如果是, 从所述用户账户的余额中划取所述第一配额发送至所述 PCEF。
当所述 PCEF接收所述用户设备不充值且业务继续的通知后, 通知所述 0CS用户设备不 充值且业务继续; 所述 0CS将所述用户账户的余额发送至所述 PCEF。
当所述 PCEF接收拒绝所述业务的请求的通知后, 通知所述 0CS拒绝所述业务的请求。 所述 PCEF接收所述拒绝所述业务的请求的通知后, 将所述 PCEF上所述业务的相关记 录删除, 拒绝所述业务的请求; 所述 0CS 接收所述拒绝所述业务的请求的通知后, 将其上 所述业务的相关记录删除, 拒绝所述业务的请求。
在上述 S711中, 所述 PCEF可以不通知所述 PCRF所述用户账户的余额不足, 而是直接 通知充值消息平台所述用户账户的余额不足; 所述充值消息平台执行相应处理处理, 所述 相应处理具体看参照 S713-S715;不同之处是所述充值消息平台发送所述用户决策结果至所 述 PCEF, 由所述 PCEF根据所述用户决策结果通知所述 0CS, 由所述 0CS执行后续处理流程, 具体可参考 S717中相关描述, 在此不再赘述。
本实施例中, 在所述 PCEF执行所述 PCC rule后, 可以先不发送配额申请消息至 0CS, 而是先发送所述业务需要的总配额信息至 0CS, 由 0CS执行后续处理流程, 具体可参照实施 例 3的相关描述, 在此不再赘述。
在本实施例中, 在线计费系统根据业务需要的总配额信息和用户账户的余额来决策是 否下发配额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发 配额; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 PCEF或者 PCRF通知充值消息平台执行后续充值 处理流程, 同样提高了用户的业务体验度。 实施例 7:
参考图 8, 图 8为本发明实施例 7提供的一种在线计费方法实施例的流程图。本实施例 由 0CS 获取业务需要的总配额信息和用户账户的余额, 其中, 所述业务需要的总配额信息 由 PCRF发送; 当用户账户的余额足够时, PCRF才制定 PCC rule, 执行后续配额下发流程。
所述在线计费方法包括:
S801 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S802: 所述 UE和 AF之间进行业务激活。
S803: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少一种: 流量信息、 时长信息和资费信 息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S804: 所述 PCRF根据所述策略控制信息获取业务需要的总配额信息, 发送所述业务需 要的总配额信息至 0CS。 所述 PCRF和所述 OCS之间通过 Sy接口进行信息交互, 其中, 所述 Sy接口在 3GPP标 准组织中由爱立信推动, 目前还未完成标准化。
S805: 所述 0CS获取业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS 接收所述业务需要的总配额信息, 从而获取所述业务需要的总 配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。
S806: 所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 生成判断结果。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S807: 所述 0CS根据所述判断结果, 发送预定信息至所述 PCRF, 所述预定信息包括余 额足够信息和余额不足信息。
当所述判断结果为是时, 发送余额足够信息至所述 PCRF; 当所述判断结果为否时, 发 送余额不足信息至所述 PCRF。
S808: 所述 PCRF根据所述预定信息执行预定处理。
当所述预定信息为余额足够信息时, 所述 PCRF根据所述策略控制信息生成 PCC rule 并发送所述 PCC rule至所述 PCEF。
其中, 所述 PCC rule包括业务数据流信息、 决策的 QoS信息和采用的计费策略信息; 优选地, 所述 PCC rule还包括业务不可中断指示信息或立即事件计费指示信息或单位 预留事件计费指示信息。
当所述预定信息为余额不足信息时, 所述 PCRF决策拒绝所述业务的请求, 并通知所述 AF拒绝所述业务的请求。
所述 PCEF与所述 0CS根据所述 PCC 规则执行配额管理, 具体地可参照本实施例下述 S809-S810的描述。
S809: 所述 PCEF执行所述 PCC rule, 发送配额申请消息至所述 OCS。
其中, 所述配额申请消息携带第一配额;
优选地, 所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息或 单位预留事件计费指示信息。
S810: 所述 0CS根据所述配额申请消息发送所述第一配额至所述 PCEF。 实际应用中, 所述 ocs 根据所述配额申请消息从所述用户账户的余额中划取所属第一 配额发送至所述 PCEF, 从而实现在线计费功能。 其中, 所述第一配额为用户设备发起业务 时, 由所述 PCEF向所述 0CS实时申请的配额。 当配额申请成功后, 业务数据流开始传输。
优选地, 当所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息时, 在所述用户帐户的余额中扣除或预留业务需要的总配额, 从所述扣除或预留的业务需要的总配额中划取第一配额向 PCEF发送, 实现在线计费; 具体 地, 可以参考实施例 3中 S409和 S410的相关描述, 在此不再赘述。
优选地, 当 PCRF获取业务需要的总配额信息后, 发送配额申请消息至 0CS, 所述配额 申请消息中携带所述业务需要的总配额信息和第一配额; 所述 0CS 从所述配额申请消息中 获取所述业务需要的总配额信息, 根据所述业务需要的总配额信息和用户账户的余额判断 所述用户账户的余额是否足够完成所述业务, 如果是, 在所述用户账户的余额中扣除或预 留业务需要的总配额, 将所述扣除或预留的业务需要的总配额发送至 PCRF, 实现在线计费; 所述 PCRF接收所述业务需要的总配额, 根据所述业务需要的总配额生成 PCC rule发送至 PCEF, 所述 PCC rule中包含了 PCRF已接收业务需要的总配额的通知, 使得 PCEF不用再向 0CS申请配额; PCEF执行所述 PCC rule, 完成后续流程。
或者,
优选地, 本实施例中 0CS 获取业务需要的总配额信息后, 在所述用户账户的余额中扣 除或预留业务需要的总配额; 所述 0CS 执行完判断后, 当所述判断结果为是时, 发送余额 足够信息至 PCRF, 由所述 PCRF根据余额足够信息生成配额申请消息发送至所述 0CS, 所述 配额申请消息中携带第一配额; 所述 0CS 根据所述配额申请消息发送所述第一配额至所述 PCRF; 所述 PCRF接收所述第一配额, 根据所述第一配额生成 PCC rule发送至 PCEF, 所述 PCC rule中包含了 PCRF已接收第一配额的通知, 使得 PCEF不用再向 0CS申请配额; PCEF 执行所述 PCC rule, 完成后续流程。
在本实施例中, PCRF直接将业务需要的总配额信息发送至 0CS, 0CS根据业务需要的总 配额信息和用户账户的余额来决策是否下发配额, 只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule, 执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。 实施例 8
参考图 9, 图 9为本发明实施例 8提供的一种在线计费方法实施例的流程图。本实施例 8由 0CS获取业务需要的总配额信息和用户账户的余额, 其中, 所述业务需要的总配额信息 由 PCRF发送; 本实施例在实施例 7的基础上, 当用户账户的余额不足时, 由 PCRF或 0CS 通知消息平台执行后续流程。
所述在线计费方法包括:
S901 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S902: 所述 UE和 AF之间进行业务激活。
S903 : 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID ) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少一种: 流量信息、 时长信息和资费信 息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S904: 所述 PCRF根据所述策略控制信息获取业务需要的总配额信息, 发送所述业务需 要的总配额信息至 0CS。
S905 : 所述 0CS获取业务需要的总配额信息和用户账户的余额。
实际应用中, 所述 0CS 接收所述业务需要的总配额信息, 从而获取所述业务需要的总 配额信息; 所述 0CS查询用户账户, 根据所述用户账户获取所述用户账户的余额。
S906 : 所述 0CS 根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户 的余额是否足够完成所述业务, 生成判断结果。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
S907 : 所述 0CS根据所述判断结果, 发送预定信息至所述 PCRF, 所述预定信息包括余 额足够信息和余额不足信息。
当所述判断结果为是时, 发送余额足够信息至所述 PCRF; 当所述判断结果为否时, 发 送余额不足信息至所述 PCRF。
S908 : 所述 PCRF根据所述预定信息执行预定处理。 当所述预定信息为余额足够信息时, 所述 PCRF根据所述策略控制信息生成 PCC rule , 发送所述 PCC rule至所述 PCEF。 由所述 PCEF与所述 0CS根据所述 PCC规则执行配额管理, 具体地, 由所述 PCEF执行所述 PCC rule , 发送配额申请消息至所述 0CS, 其中, 所述配额 申请消息还携带第一配额; 所述 0CS 根据所述配额申请消息从所述用户账户的余额中划取 所述第一配额发送至所述 PCEF。 此部分与实施例 7中相关内容类似, 可参考实施例 7的相 关描述, 在此不再赘述。
当所述预定信息为余额不足信息时, 所述 PCRF发送余额不足信息至充值消息平台。
S909: 所述充值消息平台通知所述 UE所述用户账户的余额不足。
S910: 所述 UE决策用户设备是否充值和业务是否继续, 生成用户决策结果, 发送所述 用户决策结果至充值消息平台。
实际应用中, 所述 UE根据所述余额不足信息决策用户设备是否充值和业务是否继续, 生成用户决策结果; 所述用户决策结果包括用户设备充值且业务继续, 或用户设备不充值 且业务继续, 或用户设备不充值且业务不继续。
S911 : 所述充值消息平台发送所述用户决策结果至所述 PCRF。
S912 : 所述 PCRF对所述用户决策结果进行判断, 当所述用户决策结果为用户设备充值 且业务继续时, 通知所述 PCEF用户设备充值且业务继续; 当所述用户决策结果为用户设备 不充值且业务继续时, 通知所述 PCEF用户设备不充值且业务继续; 当所述用户决策结果为 用户设备不充值且业务不继续时, 拒绝所述业务的请求并通知所述 PCEF拒绝所述业务的请 求。
当所述用户决策结果为用户设备不充值且业务不继续时, 所述 PCRF将所述 PCRF上所 述业务的相关记录删除, 拒绝所述业务的请求。
S913 : 所述 0CS接收由所述 PCEF发送的通知, 根据所述通知执行预定处理。
实际应用中, 所述 0CS根据所述通知执行预定处理具体为:
当所述 PCEF接收所述用户设备充值且业务继续的通知后, 通知所述 0CS用户设备充值 且业务继续; 所述 0CS 获取充值后的用户账户, 判断所述充值后的用户账户的余额是否足 够完成所述业务, 如果是, 从所述用户账户的余额中划取所述第一配额发送至所述 PCEF。
当所述 PCEF接收所述用户设备不充值且业务继续的通知后, 通知所述 0CS用户设备不 充值且业务继续; 所述 0CS将所述用户账户的余额发送至所述 PCEF。
当所述 PCEF接收拒绝所述业务的请求的通知后, 通知所述 0CS拒绝所述业务的请求。 所述 PCEF接收所述拒绝所述业务的请求的通知后, 将所述 PCEF上所述业务的相关记 录删除, 拒绝所述业务的请求; 所述 0CS 接收所述拒绝所述业务的请求的通知后, 将其上 所述业务的相关记录删除, 拒绝所述业务的请求。
上述 S907中 0CS根据判断结果执行的后续处理还可以通过以下方式实现, 具体地, 当 所述 0CS生成的判断结果为否时, 由所述 0CS直接通知充值消息平台用户账户的余额不足, 而不同于 S907中由所述 PCRF通知充值消息平台用户账户的余额不足。 所述充值消息平台 执行后续处理, 其相关流程可参考 S909-S911 , 其不同之处是所述充值消息平台发送所述用 户决策结果至所述 0CS, 由所述 0CS根据所述用户决策结果执行后续处理流程, 具体可参考 S913中相关描述, 在此不再赘述。
在本实施例中, PCRF直接将业务需要的总配额信息发送至 0CS, 0CS根据业务需要的总 配额信息和用户账户的余额来决策是否下发配额, 只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule, 执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 PCRF或者 0CS通知消息平台执行后续处理流程, 同样使得用户的业务体验度提高。 实施例 9
参考图 10, 图 10为本发明实施例 9提供的一种在线计费方法实施例的流程图。本实施 例由 PCRF获取业务需要的总配额信息和用户账户的余额, 进行判断, 从而当用户账户的余 额足够时由 0CS实现在线计费功能。
所述在线计费方法包括:
S1001 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S1002: 所述 UE和 AF之间进行业务激活。
S1003: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少一种: 流量信息、 时长信息和资费信 息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S1004: 0CS 查询用户账户, 获取所述用户账户的余额, 发送所述用户账户的余额至所 述 PCRF o
S1005: 所述 PCRF获取业务需要的总配额信息和用户账户的余额。
所述 PCRF接收由所述 AF发送的策略控制信息, 从所述策略控制信息中获取业务需要 的总配额信息;
所述 PCRF接收由所述 0CS发送的用户账户的余额, 从而获取所述用户账户的余额。
S1006: 所述 PCRF根据所述业务需要的总配额信息和用户账户的余额判断所述用户账 户的余额是否足够完成所述业务, 如果是, 根据所述策略控制信息生成 PCC rule, 发送所 述 PCC rule至 PCEF; 如果否, PCRF决策拒绝所述业务的请求, 并通知所述 AF拒绝所述业 务的请求。
其中, 所述 PCC rule包括业务数据流信息、 决策的 QoS信息和采用的计费策略信息; 优选地, 所述 PCC rule还包括业务不可中断指示信息或立即事件计费指示信息或单位 预留事件计费指示信息。
所述 PCEF与所述 0CS根据所述 PCC规则执行配额管理, 具体地可参照本实施例中下述 步骤的描述。
S1007: 所述 PCEF执行所述 PCC rule后, 发送配额申请消息至所述 0CS。
其中, 所述配额申请消息还携带第一配额;
优选地, 所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息或 单位预留事件计费指示信息。
S1008: 所述 0CS根据所述配额申请消息发送所述第一配额至所述 PCEF。
实际应用中, 所述 0CS 根据所述配额申请消息从所述用户账户的余额中划取所述第一 配额发送至所述 PCEF, 实现在线计费功能。 所述第一配额为用户设备发起业务时, 由所述 PCEF向所述 0CS实时申请的配额。 当配额申请成功后, 业务数据流开始传输。
优选地, 当所述配额申请消息中携带业务不可中断指示信息或立即事件计费指示信息 或单位预留事件计费指示信息时, 在所述用户帐户的余额中扣除或预留业务需要的总配额, 从所述扣除或预留的业务需要的总配额中划取第一配额向 PCEF发送, 实现在线计费; 具体 地, 可以参考实施例 3中 S409和 S410的相关描述, 在此不再赘述。
在本实施例中, PCRF根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额,只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule,执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。 实施例 10 参考图 11, 图 11为本发明实施例 10提供的一种在线计费方法实施例的流程图。 本实 施例由 PCRF获取业务需要的总配额信息和用户账户的余额, 当用户账户的余额不足时, 通 知充值消息平台执行后续处理。
所述在线计费方法包括:
S1101 : 用户设备 UE和承载网之间建立承载层的连接。
实际应用中, UE和承载网的 AF、 PCRF和 PCEF之间建立承载层的连接。
S1102: 所述 UE和 AF之间进行业务激活。
S1103: 所述 AF向承载层的 PCRF发送业务数据流的策略控制信息。
其中, 所述策略控制信息包括业务需要的总配额信息、 业务类型、 业务数据流的描述 信息、 QoS信息和计费相关策略信息 (包含业务层 AF的计费标识 (AF-Charging ID) ) 等。 所述业务需要的总配额信息可以为以下信息中的至少一种: 流量信息、 时长信息和资费信 息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
优选地, 所述策略控制信息还可以包括业务不可中断指示信息, 或者, 所述策略控制 信息还可以包括业务不可中断指示信息立即事件计费指示信息或单位预留事件计费指示信 息。
S1104: 0CS 查询用户账户, 获取所述用户账户的余额, 发送所述用户账户的余额至所 述 PCRF o
S1105: 所述 PCRF获取业务需要的总配额信息和用户账户的余额。
所述 PCRF接收由所述 AF发送的策略控制信息, 从所述策略控制信息中获取业务需要 的总配额信息;
所述 PCRF接收由所述 0CS发送的用户账户的余额, 从而获取所述用户账户的余额。 S1106: 所述 PCRF根据所述业务需要的总配额信息和用户账户的余额判断所述用户账 户的余额是否足够完成所述业务, 生成判断结果。
S1107: 所述 PCRF根据所述判断结果执行预定处理。
当所述判断结果为是时, 所述 PCRF根据所述策略控制信息生成 PCC rule, 发送所述 PCC rule至所述 PCEF。 由所述 PCEF与所述 0CS根据所述 PCC规则执行配额管理, 具体地, 由所述 PCEF执行所述 PCC rule, 发送配额申请消息至所述 OCS, 其中, 所述配额申请消息 还携带第一配额; 所述 0CS 根据所述配额申请消息从所述用户账户的余额中划取所述第一 配额发送至所述 PCEF。 此部分与实施例 7中相关内容类似, 可参考实施例 7的相关描述, 在此不再赘述。
当所述判断结果为否是, 发送余额不足信息至充值消息平台。 S 1108 : 所述充值消息平台通知所述 UE用户账户的余额不足。
S 1109: 所述 UE 决策用户设备是否充值和业务是否继续, 生成用户决策结果, 发送所 述用户决策结果至充值消息平台。
实际应用中, 所述 UE根据所述余额不足信息决策用户设备是否充值和业务是否继续, 生成用户决策结果; 所述用户决策结果包括用户设备充值且业务继续, 或用户设备不充值 且业务继续, 或用户设备不充值且业务不继续。
S 1110: 所述充值消息平台发送所述用户决策结果至所述 PCRF。
S 1111 : 所述 PCRF对所述用户决策结果进行判断, 当所述用户决策结果为用户设备充 值且业务继续时, 通知所述 PCEF用户设备充值且业务继续; 当所述用户决策结果为用户设 备不充值且业务继续时, 通知所述 PCEF用户设备不充值且业务继续; 当所述用户决策结果 为用户设备不充值且业务不继续时, 拒绝所述业务的请求并通知所述 PCEF拒绝所述业务的 请求。
当所述用户决策结果为用户设备不充值且业务不继续时, 所述 PCRF将所述 PCRF上所 述业务的相关记录删除, 拒绝所述业务的请求。
S 1112 : 所述 0CS接收由所述 PCEF发送的通知, 根据所述通知执行预定处理。
实际应用中, 所述 0CS根据所述通知执行预定处理具体为:
当所述 PCEF接收所述用户设备充值且业务继续的通知后, 通知所述 0CS用户设备充值 且业务继续; 所述 0CS 获取充值后的用户账户, 判断所述充值后的用户账户的余额是否足 够完成所述业务, 如果是, 从所述用户账户的余额中划取所述第一配额发送至所述 PCEF。
当所述 PCEF接收所述用户设备不充值且业务继续的通知后, 通知所述 0CS用户设备不 充值且业务继续; 所述 0CS将所述用户账户的余额发送至所述 PCEF。
当所述 PCEF接收拒绝所述业务的请求的通知后, 通知所述 0CS拒绝所述业务的请求。 所述 PCEF接收所述拒绝所述业务的请求的通知后, 将所述 PCEF上所述业务的相关记 录删除, 拒绝所述业务的请求; 所述 0CS 接收所述拒绝所述业务的请求的通知后, 将其上 所述业务的相关记录删除, 拒绝所述业务的请求。
在本实施例中, PCRF根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额,只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule ,执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, PCRF通知充值消息平台执行后续充值等处理流程, 使得用户的业务体验度提高。 实施例 11
参考图 12a, 图 12a为本发明实施例 11提供的一种在线计费系统 0CS实施例的第一结 构示意图, 所述在线计费系统 0CS包括:
第一总配额获取模块 1201, 用于获取业务需要的总配额信息。
其中, 所述业务需要的总配额信息可以为以下信息中的一种: 流量信息、 时长信息和 资费信息; 也可以为配额的其他表现形式, 本发明实施例不局限于此。
第一判断模块 1202, 用于根据所述业务需要的总配额信息和用户账户的余额判断所述 用户帐户的余额是否足够完成所述业务, 生成判断结果。
根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户账户的余额是否 足够完成所述业务, 具体地, 当所述业务需要的总配额信息中的业务总配额大于所述用户 账户的余额时, 说明所述用户账户的余额不能够完成所述业务, 生成的判断结果为否; 当 所述业务需要的总配额信息中的业务总配额小于等于所述用户账户的余额时, 说明所述用 户账户的余额能够完成所述业务, 生成的判断结果为是。
在线计费模块 1203, 用于当所述判断结果为是时, 执行配额管理, 实现在线计费。 实际应用中, 当所述判断结果为是时, 所述 0CS 执行配额管理, 实现在线计费, 具体 地, 所述 0CS 根据所述配额申请消息在所述用户帐户的余额中划取第一配额发送至所述 PCEF, 根据所述第一配额进行在线计费。 所述第一配额为用户发起业务时, 根据用户的业 务需求由所述 PCEF向所述 0CS实时申请的业务量, 具体地, 可以由配额申请消息携带。 当 配额申请成功后, 业务数据流开始传输。
所述第一判断模块 1202包括余额获取单元和判断单元, 参照图 12b所示。
所述余额获取单元 1202a,用于查询用户账户,根据所述用户账户获取用户账户的余额。 所述判断单元 1202b,用于根据所述业务需要的总配额信息和所述用户账户的余额判断 所述用户帐户的余额是否足够完成所述业务, 生成判断结果。
在本实施例中, 在线计费系统根据业务需要的总配额信息和用户账户的余额来决策是 否执行配额管理, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才 执行配额管理, 下发配额; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务 体验度。 实施例 12
参考图 13, 图 13为本发明实施例 12提供的一种在线计费系统 0CS实施例的第一结构 示意图。 本实施例在实施例 11 的基础上对所述第一总配额获取模块 1201和所述在线计费 模块 1203进行了改进。其中,本实施例中的第一判断模块 1202可以包括余额获取单元 1202a 和判断单元 1202b, 所述余额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所 述余额获取单元 1202a和判断单元 1202b的功能类似,具体可参照实施例 11中的相关描述, 在此不再赘述。
其中, 所述第一总余额获取模块 1201包括第一总配额获取单元 1201a; 相应的, 所述 在线计费模块 1203包括第一发送单元 1203a和第一在线计费单元 1203b ;
所述第一总配额获取单元 1201a, 用于接收由策略和计费规则功能实体 PCRF发送的业 务需要的总配额信息;
所述第一发送单元 1203a,用于当所述判断结果为是时,发送余额足够信息至所述 PCRF, 使所述 PCRF根据所述余额足够信息生成并发送策略和计费控制 PCC规则至策略和计费执行 功能实体 PCEF;
所述第一在线计费单元 1203b, 用于与所述 PCEF根据所述 PCC 规则执行配额管理。 或者, 所述第一总余额获取模块 1201可以包括第一总配额获取单元; 相应的, 所述在 线计费模块 1203可以包括第一总配额处理单元、 余额足够发送单元和第一配额管理单元; 所述第一总配额获取单元, 用于接收由策略和计费规则功能实体 PCRF发送的业务需要 的总配额信息;
所述第一总配额处理单元, 用于根据所述业务需要的总配额信息在所述用户账户的余 额中扣除或预留业务需要的总配额;
所述余额足够发送单元, 用于发送余额足够信息至所述 PCRF, 使所述 PCRF根据所述余 额足够信息生成并发送配额申请消息至所述 0CS ;
所述第一配额管理单元, 根据所述配额申请消息和所述扣除或预留的业务需要的总配 额执行配额管理。
或者, 所述所述第一总余额获取模块 1201可以包括配额申请接收单元和第二总配额获 取单元, 相应的, 所述在线计费模块具体可以包括第二总配额处理单元和第二配额管理单 元;
所述配额申请接收单元, 用于接收由 PCRF发送的配额申请消息, 所述配额申请消息携 带业务需要的总配额信息;
所述第二总配额获取单元, 用于从所述配额申请消息中获取所述业务需要的总配额信 息;
所述第二总配额处理单元, 根据所述业务需要的总配额信息在所述用户账户的余额中 扣除或预留业务需要的总配额; 所述第二配额管理单元, 根据所述配额申请消息和所述扣除或预留的业务需要的总配 额执行配额管理。
所述在线计费系统 0CS进一步包括:
发送模块 1204, 用于当所述判断结果为否时, 发送余额不足信息至所述 PCRF, 使所述 PCRF决策拒绝所述业务的请求并通知 AF拒绝所述业务的请求。
在本实施例中, PCRF直接将业务需要的总配额信息发送至 0CS, 0CS根据业务需要的总 配额信息和用户账户的余额来决策是否下发配额, 只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule, 执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。 实施例 13
参考图 14a, 图 14a为本发明实施例 13提供的一种在线计费系统 0CS实施例的结构示 意图。 本实施例在实施例 11的基础上对所述第一总配额获取模块 1201进行了改进。 其中, 本实施例中的第一判断模块 1202可以包括余额获取单元 1202a和判断单元 1202b, 所述余 额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所述余额获取单元 1202a和判 断单元 1202b的功能类似, 具体可参照实施例 11中的相关描述, 在此不再赘述。
所述第一总配额获取模块 1201包括:
第一接收单元 1201b, 用于接收由 PCEF发送的配额申请消息, 所述配额申请消息携带 业务需要的总配额信息;
第三总配额获取单元 1201c, 用于从所述配额申请消息中获取业务需要的总配额信息。 所述在线计费系统 0CS进一步包括申请失败模块 1205:
所述申请失败模块 1205,用于当所述判断结果为否时,发送余额不足信息至所述 PCEF, 配额申请失败。
或者, 所述在线计费系统 0CS进一步包括决策通知模块 1206, 如图 14b所示, 图 14b 为本发明实施例 13提供的一种在线计费系统 0CS实施例的第二结构示意图:
所述决策通知模块 1206, 用于当所述判断结果为否时, 决策拒绝所述业务的请求, 并 通知所述 PCEF、 所述 PCRF和应用功能实体 AF拒绝所述业务的请求。
或者, 所述在线计费系统 0CS进一步包括第一通知模块 1207, 如图 14c所示, 图 14c 为本发明实施例 13提供的一种在线计费系统 0CS实施例的第三结构示意图:
所述第一通知模块 1207, 用于当所述判断结果为否时, 通知所述 PCEF所述用户帐户的 余额不足, 使所述 PCEF决策拒绝所述业务的请求并通知所述 0CS、 所述 PCRF和 AF拒绝所 述业务的请求。
或者, 所述在线计费系统 0CS进一步包括第二通知模块 1208, 如图 14d所示, 图 14d 为本发明实施例 13提供的一种在线计费系统 0CS实施例的第四结构示意图:
所述第二通知模块 1208, 用于当所述判断结果为否时, 通知所述 PCEF所述用户帐户的 余额不足, 使 PCRF根据所述 PCEF发送的所述用户账户的余额不足的通知决策拒绝所述业 务的请求并通知 AF、 所述 PCEF和所述 0CS拒绝所述业务的请求。
在本实施例中, 0CS 根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发配额; 相 比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 0CS或者 PCEF或者 PCRF决策拒绝所述业务的请 求, 并通知其他网元设备拒绝所述业务的请求, 使得用户的业务体验度提高。 实施例 14
参考图 15, 图 15为本发明实施例 14提供的一种在线计费系统 0CS实施例的结构示意 图。 本实施例在实施例 11 的基础上对所述第一总配额获取模块 1201和所述在线计费模块 1203进行了改进。其中, 本实施例中的第一判断模块 1202可以包括余额获取单元 1202a和 判断单元 1202b, 所述余额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所述 余额获取单元 1202a和判断单元 1202b的功能类似, 具体可参照实施例 11中的相关描述, 在此不再赘述。
其中, 所述第一总配额获取模块 1201包括第一总配额获取单元 1201a; 所述第一总配 额获取单元 1201a的功能与实施例 12中第一总配额获取单元 1201a的功能类似, 具体可以 参照实施例 12中的相关描述, 在此不再赘述。 相应的, 所述在线计费模块 1203包括第一 发送单元 1203a和第一在线计费单元 1203b,所述第一发送单元 1203a和第一在线计费单元 1203b的功能与实施例 12中的第一发送单元 1203a和第一在线计费单元 1203b的功能类似, 具体可参照实施例 12中的相关描述, 在此不再赘述。
或者, 所述第一总余额获取模块 1201可以包括第一总配额获取单元, 所述第一总配额 获取单元的功能与实施例 12中所述第一总配额获取单元的功能类似; 相应的, 所述在线计 费模块 1203可以包括第一总配额处理单元、 余额足够发送单元和第一配额管理单元, 所述 第一总配额处理单元、 余额足够发送单元和第一配额管理单元的功能与实施例 12中所述所 述第一总配额处理单元、 余额足够发送单元和第一配额管理单元的功能类似; 具体可以参 照实施例 12中的相关描述, 在此不再赘述。 或者, 所述所述第一总余额获取模块 1201可以包括配额申请接收单元和第二总配额获 取单元, 所述配额申请接收单元和第二总配额获取单元的功能与实施例 12中所述配额申请 接收单元和第二总配额获取单元的功能类似; 相应的, 所述在线计费模块具体可以包括第 二总配额处理单元和第二配额管理单元, 所述第二总配额处理单元和第二配额管理单元的 功能与实施例 12中所述第二总配额处理单元和第二配额管理单元的功能类似; 具体可以参 照实施例 12中的相关描述, 在此不再赘述。
所述在线计费系统 0CS进一步包括:
第三通知模块 1209, 用于当所述判断结果为否时, 通知充值消息平台所述用户帐户的 余额不足;
第一接收模块 1210, 用于接收充值消息平台发送的用户决策结果;
第一处理模块 1211, 用于对所述用户决策结果进行判断, 当所述用户决策结果为 UE充 值且业务继续时, 获取充值后的用户帐户, 判断所述充值后的用户帐户的余额是否足够完 成所述业务, 如果是, 在所述充值后的用户帐户的余额中划取所述第一配额发送至所述 PCEF; 当所述用户决策结果为 UE不充值且业务继续时, 将所述用户账户的余额发送至所述 PCEF; 当所述用户决策结果为 UE不充值且业务不继续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
在本实施例中, PCRF直接将业务需要的总配额信息发送至 0CS, 0CS根据业务需要的总 配额信息和用户账户的余额来决策是否下发配额, 只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule, 执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时,通知消息平台执行后续处理流程, 同样使得用户的业 务体验度提高。 实施例 15
参考图 16, 图 16为本发明实施例 15提供的一种在线计费系统 0CS实施例的结构示意 图。 本实施例在实施例 11 的基础上对所述第一总配额获取模块 1201和所述在线计费模块 1203进行了改进。其中, 本实施例中的第一判断模块 1202可以包括余额获取单元 1202a和 判断单元 1202b, 所述余额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所述 余额获取单元 1202a和判断单元 1202b的功能类似, 具体可参照实施例 11中的相关描述, 在此不再赘述。
其中, 所述第一总配额获取模块 1201包括第一总配额获取单元 1201a; 所述第一总配 额获取单元 1201a的功能与实施例 12中第一总配额获取单元 1201a的功能类似, 具体可以 参照实施例 12中的相关描述, 在此不再赘述。 相应的, 所述在线计费模块 1203包括第一 发送单元 1203a和第一在线计费单元 1203b,所述第一发送单元 1203a和第一在线计费单元 1203b的功能与实施例 12中的第一发送单元 1203a和第一在线计费单元 1203b的功能类似, 具体可参照实施例 12中的相关描述, 在此不再赘述。
或者, 所述第一总余额获取模块 1201可以包括第一总配额获取单元, 所述第一总配额 获取单元的功能与实施例 12中所述第一总配额获取单元的功能类似; 相应的, 所述在线计 费模块 1203可以包括第一总配额处理单元、 余额足够发送单元和第一配额管理单元, 所述 第一总配额处理单元、 余额足够发送单元和第一配额管理单元的功能与实施例 12中所述所 述第一总配额处理单元、 余额足够发送单元和第一配额管理单元的功能类似; 具体可以参 照实施例 12中的相关描述, 在此不再赘述。
或者, 所述所述第一总余额获取模块 1201可以包括配额申请接收单元和第二总配额获 取单元, 所述配额申请接收单元和第二总配额获取单元的功能与实施例 12中所述配额申请 接收单元和第二总配额获取单元的功能类似; 相应的, 所述在线计费模块具体可以包括第 二总配额处理单元和第二配额管理单元, 所述第二总配额处理单元和第二配额管理单元的 功能与实施例 12中所述第二总配额处理单元和第二配额管理单元的功能类似; 具体可以参 照实施例 12中的相关描述, 在此不再赘述。
所述在线计费系统 0CS进一步包括:
第四通知模块 1212, 用于当所述判断结果为否时, 通过所述 PCRF通知充值消息平台所 述用户帐户的余额不足;
第二处理模块 1213, 用于当接收由 PCEF发送的所述 UE充值且业务继续的通知时, 获 取充值后的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在线计费; 当接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 将所述用户账户的余额发送至所述 PCEF, 实现在线计费; 当接收由 PCEF发送的所述拒绝所 述业务的请求的通知时, 拒绝所述业务的请求。
在本实施例中, PCRF直接将业务需要的总配额信息发送至 0CS, 0CS根据业务需要的总 配额信息和用户账户的余额来决策是否下发配额, 只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule, 执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 PCRF通知消息平台执行后续处理流程, 同样使得 用户的业务体验度提高。 实施例 16
参考图 17, 图 17为本发明实施例 16提供的一种在线计费系统 0CS实施例的结构示意 图。 本实施例在实施例 11 的基础上对所述第一总余额获取模块 1201进行了改进。 其中, 本实施例中的第一判断模块 1202可以包括余额获取单元 1202a和判断单元 1202b, 所述余 额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所述余额获取单元 1202a和判 断单元 1202b的功能类似, 具体可参照实施例 11中的相关描述, 在此不再赘述。
其中, 所述第一总余额获取模块 1201包括: 第一接收单元 1201b和第三总配额获取单 元 1201c; 所述第一接收单元 1201b和第三总配额获取单元 1201c的功能与实施例 13中第 一接收单元 1201b和第三总配额获取单元 1201c的功能类似, 具体可以参照实施例 13中的 相关描述, 在此不再赘述。
所述在线计费系统 0CS进一步包括:
第五通知模块 1214, 用于当所述判断结果为否时, 通知充值消息平台所述用户帐户的 余额不足。
第二接收模块 1215, 用于接收所述充值消息平台发送的用户决策结果。
第三处理模块 1216, 用于对所述用户决策结果进行判断, 当所述用户决策结果为 UE充 值且业务继续时, 获取充值后的用户帐户, 判断所述充值后的用户帐户的余额是否足够完 成所述业务, 如果是, 执行配额管理, 实现在线计费; 当所述用户决策结果为 UE不充值且 业务继续时, 将所述用户账户的余额发送至所述 PCEF, 实现在线计费; 当所述用户决策结 果为 UE不充值且业务不继续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
在本实施例中, 在线计费系统根据业务需要的总配额信息和用户账户的余额来决策是 否下发配额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发 配额; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 0CS通知消息平台执行后续充值等处理, 使得用户的 业务体验度提高。 实施例 17
参考图 18, 图 18为本发明实施例 17提供的一种在线计费系统 0CS实施例的结构示意 图。 本实施例在实施例 11 的基础上对所述第一总配额获取模块 1201进行了改进。 其中, 本实施例中的第一判断模块 1202可以包括余额获取单元 1202a和判断单元 1202b, 所述余 额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所述余额获取单元 1202a和判 断单元 1202b的功能类似, 具体可参照实施例 11中的相关描述, 在此不再赘述。 其中, 所述第一总余额获取模块 1201包括: 第一接收单元 1201b和第三总配额获取单 元 1201c; 所述第一接收单元 1201b和第三总配额获取单元 1201c的功能与实施例 13中第 一接收单元 1201b和第三总配额获取单元 1201c的功能类似, 具体可以参照实施例 13中的 相关描述, 在此不再赘述。
所述在线计费系统 0CS进一步包括:
第六通知模块 1217, 用于当所述判断结果为否时, 通过所述 PCEF通知充值消息平台所 述用户帐户的余额不足。
第四处理模块 1218, 用于当接收所述 UE充值且业务继续的通知时, 获取充值后的用户 账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在线计费; 当接收所述 UE不充值且业务继续的通知时, 将所述用户账户的余额发送至 所述 PCEF, 实现在线计费; 当接收所述拒绝所述业务的请求的通知时, 拒绝所述业务的请 求。
在本实施例中, 0CS 根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发配额; 相 比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 PCEF通知充值消息平台执行后续充值处理流程, 同样提高了用户的业务体验度。 实施例 18
参考图 19, 图 19为本发明实施例 18提供的一种在线计费系统 0CS实施例的结构示意 图。 本实施例在实施例 11 的基础上对所述第一总配额获取模块 1201进行了改进。 其中, 本实施例中的第一判断模块 1202可以包括余额获取单元 1202a和判断单元 1202b, 所述余 额获取单元 1202a和判断单元 1202b的功能与实施例 11中的所述余额获取单元 1202a和判 断单元 1202b的功能类似, 具体可参照实施例 11中的相关描述, 在此不再赘述。
其中, 所述第一总余额获取模块 1201包括: 第一接收单元 1201b和第三总配额获取单 元 1201c; 所述第一接收单元 1201b和第三总配额获取单元 1201c的功能与实施例 13中第 一接收单元 1201b和第三总配额获取单元 1201c的功能类似, 具体可以参照实施例 13中的 相关描述, 在此不再赘述。
所述在线计费系统 0CS进一步包括:
第七通知模块 1219, 用于当所述判断结果为否时, 通过所述 PCEF和 PCRF通知充值消 息平台所述用户帐户的余额不足。
第五处理模块 1220, 用于当接收由 PCEF发送的所述 UE充值且业务继续的通知时, 获 取充值后的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在线计费; 当接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 将所述用户账户的余额发送至所述 PCEF, 实现在线计费; 当接收由 PCEF发送的所述拒绝所 述业务的请求的通知时, 拒绝所述业务的请求。
在本实施例中, 0CS 根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额, 不论采用哪种在线计费模式, 只有当用户账户的余额足够业务需要时才下发配额; 相 比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, 由 PCRF通知充值消息平台执行后续充值处理流程, 同样提高了用户的业务体验度。 实施例 19
参考图 20a,图 20a为本发明实施例 19提供的一种策略和计费规则功能实体 PCRF实施 例的结构示意图, 所述策略和计费规则功能实体 PCRF包括:
第二总配额获取模块 2001, 用于接收由应用功能实体 AF发送的策略控制信息, 从所述 策略控制信息中获取业务需要的总配额信息。
余额获取模块 2002, 用于接收由在线计费系统 0CS发送的用户账户的余额。
第二判断模块 2003, 用于根据所述业务需要的总配额信息和所述用户账户的余额判断 所述用户帐户的余额是否足够完成所述业务, 生成判断结果。
规则处理模块 2004, 用于当所述判断结果为是时, 生成 PCC规则并发送至策略和计费 执行功能实体 PCEF。
所述 PCRF进一步包括第六处理模块 2005, 如图 20b所示:
第六处理模块 1905, 用于当所述判断结果为否时, 发送余额不足信息至 AF, 使所述 AF 拒绝所述业务的请求。
在本实施例中, PCRF根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额,只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule ,执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。 实施例 20
参考图 21,图 21为本发明实施例 20提供的一种策略和计费规则功能实体 PCRF实施例 的结构示意图, 所述策略和计费规则功能实体 PCRF包括: 第二总配额获取模块 2001、 余额 获取模块 2002、 第二判断模块 2003和规则处理模块 2004, 其中所述第二总配额获取模块 2001、余额获取模块 2002、第二判断模块 2003和规则处理模块 2004的功能与实施例 19中 所述第二总配额获取模块 2001、 余额获取模块 2002、 第二判断模块 2003和规则处理模块 2004的功能类似, 具体可参照实施例 19中的相关描述, 在此不再赘述。
所述策略和计费规则功能实体 PCRF进一步包括:
第八通知模块 2006, 用于当所述判断结果为否时, 通知充值消息平台所述用户帐户的 余额不足。
第三接收模块 2007, 用于接收充值消息平台发送的用户决策结果。
判断通知模块 2008, 用于对所述用户决策结果进行判断, 当所述用户决策结果为 UE充 值且业务继续时, 通知所述 PCEF UE充值且业务继续; 当所述用户决策结果为 UE不充值且 业务继续时, 通知所述 PCEF UE不充值且业务继续; 当所述用户决策结果为 UE不充值且业 务不继续时, 通知所述 PCEF拒绝所述业务的请求。
在本实施例中, PCRF根据业务需要的总配额信息和用户账户的余额来决策是否下发配 额,只有当用户账户的余额足够业务需要时 PCRF才制定 PCC rule ,执行后续配额下发流程; 相比较现有技术而言, 不会产生资费纠纷, 提高了用户的业务体验度。
此外, 当用户账户的余额不足时, PCRF通知充值消息平台执行后续充值等处理流程, 使得用户的业务体验度提高。 需要说明的是, 本说明书中的各个实施例均采用递进的方式描述, 每个实施例重点说 明的都是与其他实施例的不同之处, 各个实施例之间相同相似的部分互相参见即可。 对于 装置类实施例而言, 由于其与方法实施例基本相似, 所以描述的比较简单, 相关之处参见 方法实施例的部分说明即可。
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将一个实体或 者操作与另一个实体或操作区分开来, 而不一定要求或者暗示这些实体或操作之间存在任 何这种实际的关系或者顺序。 而且, 术语 "包括"、 "包含"或者其任何其他变体意在涵盖 非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者设备不仅包括那些要 素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过程、 方法、 物品或者设 备所固有的要素。 在没有更多限制的情况下, 由语句 "包括一个…… " 限定的要素, 并不 排除在包括所述要素的过程、 方法、 物品或者设备中还存在另外的相同要素。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤可以通过硬件 来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读 存储介质中。 上述提到的存储介质可以是只读存储器、 磁盘或光盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种在线计费方法, 其特征在于, 所述方法包括:
获取业务需要的总配额信息;
根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余额是否足够完 成所述业务, 生成判断结果;
当所述判断结果为是时, 执行配额管理, 实现在线计费。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取业务需要的总配额信息包括: 在线计费系统 0CS接收由策略和计费规则功能实体 PCRF发送的业务需要的总配额信息, 所述业务需要的总配额信息由应用功能实体 AF发送至所述 PCRF;
相应的, 所述根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务具体包括:
所述 0CS查询用户账户, 根据所述用户账户获取用户账户的余额;
所述 0CS根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务;
相应的, 执行配额管理具体为:
所述 0CS发送余额足够信息至所述 PCRF, 使所述 PCRF根据所述余额足够信息生成并发 送策略和计费控制 PCC 规则至策略和计费执行功能实体 PCEF;
所述 PCEF与所述 0CS根据所述 PCC 规则执行配额管理。
3、 根据权利要求 1所述的方法, 其特征在于, 所述获取业务需要的总配额信息包括: 0CS接收由 PCRF发送的业务需要的总配额信息, 所述业务需要的总配额信息由 AF发送 至所述 PCRF;
相应的, 所述根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务具体包括:
所述 0CS查询用户账户, 根据所述用户账户获取用户账户的余额;
所述 0CS根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务;
相应的, 执行配额管理具体为:
所述 0CS根据所述业务需要的总配额信息在所述用户账户的余额中扣除或预留业务需要 的总配额, 发送余额足够信息至所述 PCRF, 使所述 PCRF根据所述余额足够信息生成并发送 配额申请消息至所述 OCS ;
所述 OCS根据所述配额申请消息和所述扣除或预留的业务需要的总配额执行配额管理。
4、 根据权利要求 1所述的方法, 其特征在于, 所述获取业务需要的总配额信息包括: 0CS接收由 PCRF发送的配额申请消息, 所述配额申请消息携带业务需要的总配额信息; 所述 0CS从所述配额申请消息中获取所述业务需要的总配额信息;
相应的, 所述根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务具体包括:
所述 0CS查询用户账户, 根据所述用户账户获取用户账户的余额;
所述 0CS根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务;
相应的, 执行配额管理具体为:
所述 0CS根据所述业务需要的总配额信息在所述用户账户的余额中扣除或预留业务需要 的总配额, 所述 0CS根据所述配额申请消息和所述扣除或预留的业务需要的总配额执行配额 管理。
5、 根据权利要求 2-4任一项所述的方法, 其特征在于, 所述方法进一步包括: 当所述判断结果为否时, 所述 0CS发送余额不足信息至所述 PCRF, 使所述 PCRF决策拒 绝所述业务的请求并通知所述 AF拒绝所述业务的请求。
6、 根据权利要求 1所述的方法, 其特征在于, 所述获取业务需要的总配额信息包括: 0CS接收由 PCEF发送的配额申请消息, 所述配额申请消息携带业务需要的总配额信息, 所述业务需要的总配额信息由 AF通过 PCRF发送至 PCEF;
所述 0CS从所述配额申请消息中获取业务需要的总配额信息;
相应的, 所述根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务具体包括:
所述 0CS查询用户账户, 根据所述用户账户获取用户账户的余额;
所述 0CS根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务。
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时,所述 0CS决策拒绝所述业务的请求,并通知所述 PCEF、所述 PCRF 和 AF拒绝所述业务的请求;
或者, 当所述判断结果为否时,所述 0CS通知所述 PCEF所述用户帐户的余额不足,使所述 PCEF 决策拒绝所述业务的请求并通知所述 0CS、 所述 PCRF和 AF拒绝所述业务的请求;
或者,
当所述判断结果为否时, 所述 0CS通知所述 PCEF所述用户帐户的余额不足, 使 PCRF根 据所述 PCEF发送的所述用户账户的余额不足的通知决策拒绝所述业务的请求并通知 AF、 所 述 PCEF和所述 0CS拒绝所述业务的请求。
8、 根据权利要求 1所述的方法, 其特征在于, 所述获取业务需要的总配额信息包括: PCRF接收由 AF发送的策略控制信息, 从所述策略控制信息中获取业务需要的总配额信 息;
相应的, 所述根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余 额是否足够完成所述业务具体包括:
所述 PCRF接收由 0CS发送的用户账户的余额;
根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐户的余额是否足够完 成所述业务;
相应的, 所述执行配额管理具体为:
所述 PCRF生成并发送 PCC规则至 PCEF;
所述 PCEF与所述 0CS根据所述 PCC 规则执行配额管理。
9、 根据权利要求 8所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时, 所述 PCRF发送余额不足信息至所述 AF, 使所述 AF拒绝所述业 务的请求。
10、 根据权利要求 1-9任一项所述的方法, 其特征在于, 所述执行配额管理包括:
0CS 判断配额申请消息中是否携带业务不可中断指示信息, 如果是, 当在线计费模式是 立即事件计费时,在所述用户帐户的余额中扣除业务需要的总配额,所述配额申请消息是 PCEF 根据 PCC规则生成并发送至 0CS ;
所述 PCEF和所述 0CS根据所述扣除的业务需要的总配额执行配额管理;
或者,
0CS 判断配额申请消息中是否携带业务不可中断指示信息, 如果是, 当在线计费模式是 单位预留事件计费或单位预留会话计费时,在所述用户帐户的余额中预留业务需要的总配额, 所述配额申请消息是 PCEF根据 PCC规则生成并发送至 0CS ;
所述 PCEF和所述 0CS根据所述预留的业务需要的总配额执行配额管理; 其中, 所述在线计费模式由 PCRF或 PCEF根据所述业务不可中断指示信息进行决策。
11、 根据权利要求 1-9任一项所述的方法, 其特征在于, 所述执行配额管理包括:
0CS 判断配额申请消息中是否携带立即事件计费指示信息, 如果是, 在所述用户帐户的 余额中扣除业务需要的总配额, 所述配额申请消息是 PCEF根据 PCC规则生成并发送至 0CS ; 所述 PCEF和所述 0CS根据所述扣除的业务需要的总配额执行配额管理;
或者,
0CS 判断配额申请消息中是否携带单位预留事件计费指示信息, 如果是, 在所述用户帐 户的余额中预留业务需要的总配额, 所述配额申请消息是 PCEF根据 PCC规则生成并发送至 0CS ;
所述 PCEF和所述 0CS根据所述预留的业务需要的总配额执行配额管理。
12、 根据权利要求 2-4所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时, 所述 0CS通知充值消息平台所述用户帐户的余额不足; 所述充值消息平台通知 UE所述用户帐户的余额不足, 使得所述 UE进行决策并发送用户 决策结果至所述充值消息平台;
所述充值消息平台接收所述用户决策结果并发送至所述 0CS;
所述 0CS对所述用户决策结果进行判断, 当所述用户决策结果为 UE充值且业务继续时, 获取充值后的用户帐户, 判断所述充值后的用户帐户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在线计费; 当所述用户决策结果为 UE不充值且业务继续时, 将所述用户 账户的余额发送至所述 PCEF, 实现在线计费; 当所述用户决策结果为 UE不充值且业务不继 续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
13、 根据权利要求 2-4所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时,所述 0CS通过所述 PCRF通知充值消息平台所述用户帐户的余额 不足;
所述充值消息平台通知 UE所述用户帐户的余额不足, 使得所述 UE进行决策并发送用户 决策结果至所述充值消息平台;
所述充值消息平台接收所述用户决策结果并发送至所述 PCRF;
所述 PCRF对所述用户决策结果进行判断,当所述用户决策结果为 UE充值且业务继续时, 通知所述 PCEF UE充值且业务继续; 当所述用户决策结果为 UE不充值且业务继续时, 通知所 述 PCEF UE不充值且业务继续; 当所述用户决策结果为 UE不充值且业务不继续时, 通知所述 PCEF拒绝所述业务的请求; 当所述 OCS接收由 PCEF发送的所述 UE充值且业务继续的通知时, 所述 0CS获取充值后 的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额 管理, 实现在线计费;
当所述 0CS接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 所述 0CS将所述用 户账户的余额发送至所述 PCEF, 实现在线计费;
当所述 0CS接收由 PCEF发送的所述拒绝所述业务的请求的通知时,拒绝所述业务的请求。
14、 根据权利要求 6所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时, 所述 0CS通知充值消息平台所述用户帐户的余额不足; 所述充值消息平台通知用户设备 UE所述用户帐户的余额不足, 使得所述 UE进行决策并 发送用户决策结果至所述充值消息平台;
所述充值消息平台接收所述用户决策结果并发送至所述 0CS;
所述 0CS对所述用户决策结果进行判断, 当所述用户决策结果为 UE充值且业务继续时, 获取充值后的用户帐户, 判断所述充值后的用户帐户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在线计费; 当所述用户决策结果为 UE不充值且业务继续时, 将所述用户 账户的余额发送至所述 PCEF, 实现在线计费; 当所述用户决策结果为 UE不充值且业务不继 续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
15、 根据权利要求 6所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时,所述 0CS通过所述 PCEF通知充值消息平台所述用户帐户的余额 不足;
所述充值消息平台通知 UE所述用户帐户的余额不足, 使得所述 UE进行决策并发送用户 决策结果至所述充值消息平台;
所述充值消息平台接收所述用户决策结果并发送至所述 PCEF;
所述 PCEF对所述用户决策结果进行判断,当所述用户决策结果为 UE充值且业务继续时, 通知所述 OCS UE充值且业务继续; 当所述用户决策结果为 UE不充值且业务继续时, 通知所 述 OCS UE不充值且业务继续; 当所述用户决策结果为 UE不充值且业务不继续时, 通知所述 0CS拒绝所述业务的请求;
当所述 0CS接收所述 UE充值且业务继续的通知时, 所述 0CS获取充值后的用户账户, 判 断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在线 计费;
当所述 0CS接收所述 UE不充值且业务继续的通知时,所述 0CS将所述用户账户的余额发 送至所述 PCEF, 实现在线计费;
当所述 0CS接收所述拒绝所述业务的请求的通知时, 拒绝所述业务的请求。
16、 根据权利要求 6所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时, 所述 0CS通过所述 PCEF和 PCRF通知充值消息平台所述用户帐 户的余额不足;
所述充值消息平台通知 UE所述用户帐户的余额不足, 使得所述 UE进行决策并发送用户 决策结果至所述充值消息平台;
所述充值消息平台接收所述用户决策结果并发送至所述 PCRF;
所述 PCRF对所述用户决策结果进行判断,当所述用户决策结果为 UE充值且业务继续时, 通知所述 PCEF UE充值且业务继续; 当所述用户决策结果为 UE不充值且业务继续时, 通知所 述 PCEF UE不充值且业务继续; 当所述用户决策结果为 UE不充值且业务不继续时, 通知所述 PCEF拒绝所述业务的请求;
当所述 0CS接收由 PCEF发送的所述 UE充值且业务继续的通知时, 所述 0CS获取充值后 的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额 管理, 实现在线计费;
当所述 0CS接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 所述 0CS将所述用 户账户的余额发送至所述 PCEF, 实现在线计费;
当所述 0CS接收由 PCEF发送的所述拒绝所述业务的请求的通知时,拒绝所述业务的请求。
17、 根据权利要求 8所述的方法, 其特征在于, 所述方法进一步包括:
当所述判断结果为否时, 所述 PCRF通知充值消息平台所述用户帐户的余额不足; 所述充值消息平台通知 UE所述用户帐户的余额不足, 使得所述 UE进行决策并发送用户 决策结果至所述充值消息平台;
所述充值消息平台接收所述用户决策结果并发送至所述 PCRF;
所述 PCRF对所述用户决策结果进行判断,当所述用户决策结果为 UE充值且业务继续时, 通知所述 PCEF UE充值且业务继续; 当所述用户决策结果为 UE不充值且业务继续时, 通知所 述 PCEF UE不充值且业务继续; 当所述用户决策结果为 UE不充值且业务不继续时, 通知所述 PCEF拒绝所述业务的请求;
当所述 0CS接收由 PCEF发送的所述 UE充值且业务继续的通知时, 所述 0CS获取充值后 的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额 管理, 实现在线计费; 当所述 OCS接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 所述 0CS将所述用 户账户的余额发送至所述 PCEF, 实现在线计费;
当所述 0CS接收由 PCEF发送的所述拒绝所述业务的请求的通知时,拒绝所述业务的请求。
18、 一种在线计费系统 0CS, 其特征在于, 包括:
第一总配额获取模块, 用于获取业务需要的总配额信息;
第一判断模块, 用于根据所述业务需要的总配额信息和用户账户的余额判断所述用户帐 户的余额是否足够完成所述业务, 生成判断结果;
在线计费模块, 用于当所述判断结果为是时, 执行配额管理, 实现在线计费。
19、 根据权利要求 18所述的 0CS, 其特征在于, 所述第一判断模块包括:
余额获取单元, 用于查询用户账户, 根据所述用户账户获取用户账户的余额; 判断单元, 用于根据所述业务需要的总配额信息和所述用户账户的余额判断所述用户帐 户的余额是否足够完成所述业务, 生成判断结果。
20、 根据权利要求 18或 19所述的 0CS, 其特征在于, 所述第一总配额获取模块包括: 第一总配额获取单元,用于接收由策略和计费规则功能实体 PCRF发送的业务需要的总配 额信息, 所述业务需要的总配额信息由应用功能实体 AF发送至所述 PCRF;
相应的, 所述在线计费模块具体包括:
第一发送单元,用于当所述判断结果为是时,发送余额足够信息至所述 PCRF,使所述 PCRF 根据所述余额足够信息生成并发送策略和计费控制 PCC 规则至策略和计费执行功能实体 PCEF;
第一在线计费单元, 用于与所述 PCEF根据所述 PCC 规则执行配额管理。
21、 根据权利要求 18或 19所述的 0CS, 其特征在于, 所述第一总配额获取模块包括: 第一总配额获取单元, 用于接收由 PCRF发送的业务需要的总配额信息, 所述业务需要的 总配额信息由 AF发送至所述 PCRF;
相应的, 所述在线计费模块具体包括:
第一总配额处理单元, 用于根据所述业务需要的总配额信息在所述用户账户的余额中扣 除或预留业务需要的总配额;
余额足够发送单元, 用于发送余额足够信息至所述 PCRF, 使所述 PCRF根据所述余额足 够信息生成并发送配额申请消息至所述 0CS ;
第一配额管理单元, 根据所述配额申请消息和所述扣除或预留的业务需要的总配额执行 配额管理。
22、 根据权利要求 18或 19所述的 0CS, 其特征在于, 所述第一总配额获取模块包括: 配额申请接收单元, 用于接收由 PCRF发送的配额申请消息, 所述配额申请消息携带业务 需要的总配额信息;
第二总配额获取单元, 用于从所述配额申请消息中获取所述业务需要的总配额信息; 相应的, 所述在线计费模块具体包括:
第二总配额处理单元, 根据所述业务需要的总配额信息在所述用户账户的余额中扣除或 预留业务需要的总配额;
第二配额管理单元, 根据所述配额申请消息和所述扣除或预留的业务需要的总配额执行 配额管理。
23、 根据权利要求 20-22任一项所述的 0CS, 其特征在于, 进一步包括:
发送模块, 用于当所述判断结果为否时, 发送余额不足信息至所述 PCRF, 使所述 PCRF 决策拒绝所述业务的请求并通知 AF拒绝所述业务的请求。
24、 根据权利要求 18或 19所述的 0CS, 其特征在于, 所述第一总配额获取模块包括: 第一接收单元, 用于接收由 PCEF发送的配额申请消息, 所述配额申请消息携带业务需要 的总配额信息, 所述业务需要的总配额信息由 AF通过 PCRF发送至 PCEF;
第三总配额获取单元, 用于从所述配额申请消息中获取业务需要的总配额信息。
25、 根据权利要求 24所述的 0CS, 其特征在于, 进一步包括:
决策通知模块,用于当所述判断结果为否时,决策拒绝所述业务的请求,并通知所述 PCEF、 所述 PCRF和应用功能实体 AF拒绝所述业务的请求;
或者,
第一通知模块, 用于当所述判断结果为否时, 通知所述 PCEF所述用户帐户的余额不足, 使所述 PCEF决策拒绝所述业务的请求并通知所述 0CS、所述 PCRF和 AF拒绝所述业务的请求; 或者,
第二通知模块, 用于当所述判断结果为否时, 通知所述 PCEF所述用户帐户的余额不足, 使 PCRF根据所述 PCEF发送的所述用户账户的余额不足的通知决策拒绝所述业务的请求并通 知 AF、 所述 PCEF和所述 0CS拒绝所述业务的请求。
26、 根据权利要求 20-22任一项所述的 0CS, 其特征在于, 进一步包括:
第三通知模块, 用于当所述判断结果为否时, 通知充值消息平台所述用户帐户的余额不 足;
第一接收模块, 用于接收充值消息平台发送的用户决策结果; 第一处理模块, 用于对所述用户决策结果进行判断, 当所述用户决策结果为 UE充值且业 务继续时, 获取充值后的用户帐户, 判断所述充值后的用户帐户的余额是否足够完成所述业 务, 如果是, 在所述充值后的用户帐户的余额中划取所述第一配额发送至所述 PCEF; 当所述 用户决策结果为 UE不充值且业务继续时, 将所述用户账户的余额发送至所述 PCEF; 当所述 用户决策结果为 UE不充值且业务不继续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
27、 根据权利要求 20-22任一项所述的 0CS, 其特征在于, 进一步包括:
第四通知模块, 用于当所述判断结果为否时, 通过所述 PCRF通知充值消息平台所述用户 帐户的余额不足;
第二处理模块, 用于当接收由 PCEF发送的所述 UE充值且业务继续的通知时, 获取充值 后的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配 额管理, 实现在线计费; 当接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 将所述 用户账户的余额发送至所述 PCEF, 实现在线计费; 当接收由 PCEF发送的所述拒绝所述业务 的请求的通知时, 拒绝所述业务的请求。
28、 根据权利要求 24所述的 0CS, 其特征在于, 进一步包括:
第五通知模块, 用于当所述判断结果为否时, 通知充值消息平台所述用户帐户的余额不 足;
第二接收模块, 用于接收所述充值消息平台发送的用户决策结果;
第三处理模块, 用于对所述用户决策结果进行判断, 当所述用户决策结果为 UE充值且业 务继续时, 获取充值后的用户帐户, 判断所述充值后的用户帐户的余额是否足够完成所述业 务,如果是,执行配额管理, 实现在线计费; 当所述用户决策结果为 UE不充值且业务继续时, 将所述用户账户的余额发送至所述 PCEF, 实现在线计费; 当所述用户决策结果为 UE不充值 且业务不继续时, 发送余额不足信息至所述 PCEF, 配额申请失败。
29、 根据权利要求 24所述的 0CS, 其特征在于, 进一步包括:
第六通知模块, 用于当所述判断结果为否时, 通过所述 PCEF通知充值消息平台所述用户 帐户的余额不足;
第四处理模块, 用于当接收所述 UE充值且业务继续的通知时, 获取充值后的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配额管理, 实现在 线计费;当接收所述 UE不充值且业务继续的通知时,将所述用户账户的余额发送至所述 PCEF, 实现在线计费; 当接收所述拒绝所述业务的请求的通知时, 拒绝所述业务的请求。
30、 根据权利要求 24所述的 0CS, 其特征在于, 进一步包括: 第七通知模块, 用于当所述判断结果为否时, 通过所述 PCEF和 PCRF通知充值消息平台 所述用户帐户的余额不足;
第五处理模块, 用于当接收由 PCEF发送的所述 UE充值且业务继续的通知时, 获取充值 后的用户账户, 判断所述充值后的用户账户的余额是否足够完成所述业务, 如果是, 执行配 额管理, 实现在线计费; 当接收由 PCEF发送的所述 UE不充值且业务继续的通知时, 将所述 用户账户的余额发送至所述 PCEF, 实现在线计费; 当接收由 PCEF发送的所述拒绝所述业务 的请求的通知时, 拒绝所述业务的请求。
31、 一种策略和计费规则功能实体 PCRF, 其特征在于, 包括:
第二总配额获取模块, 用于接收由应用功能实体 AF发送的策略控制信息, 从所述策略控 制信息中获取业务需要的总配额信息;
余额获取模块, 用于接收由在线计费系统 0CS发送的用户账户的余额;
第二判断模块, 用于根据所述业务需要的总配额信息和所述用户账户的余额判断所述用 户帐户的余额是否足够完成所述业务, 生成判断结果;
规则处理模块, 用于当所述判断结果为是时, 生成 PCC规则并发送至策略和计费执行功 能实体 PCEF。
32、 根据权利要求 31所述的 PCRF, 其特征在于, 进一步包括:
第六处理模块, 用于当所述判断结果为否时, 发送余额不足信息至 AF, 使所述 AF拒绝 所述业务的请求。
33、 根据权利要求 31所述的 PCRF, 其特征在于, 进一步包括:
第八通知模块, 用于当所述判断结果为否时, 通知充值消息平台所述用户帐户的余额不 足;
第三接收模块, 用于接收充值消息平台发送的用户决策结果;
判断通知模块, 用于对所述用户决策结果进行判断, 当所述用户决策结果为 UE充值且业 务继续时, 通知所述 PCEF UE充值且业务继续; 当所述用户决策结果为 UE不充值且业务继续 时,通知所述 PCEF UE不充值且业务继续;当所述用户决策结果为 UE不充值且业务不继续时, 通知所述 PCEF拒绝所述业务的请求。
PCT/CN2011/074969 2011-05-31 2011-05-31 在线计费方法、在线计费系统及策略和计费规则功能实体 WO2011157123A2 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180000656.8A CN102918800B (zh) 2011-05-31 2011-05-31 在线计费方法和在线计费系统
PCT/CN2011/074969 WO2011157123A2 (zh) 2011-05-31 2011-05-31 在线计费方法、在线计费系统及策略和计费规则功能实体

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074969 WO2011157123A2 (zh) 2011-05-31 2011-05-31 在线计费方法、在线计费系统及策略和计费规则功能实体

Publications (2)

Publication Number Publication Date
WO2011157123A2 true WO2011157123A2 (zh) 2011-12-22
WO2011157123A3 WO2011157123A3 (zh) 2012-05-03

Family

ID=45348614

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074969 WO2011157123A2 (zh) 2011-05-31 2011-05-31 在线计费方法、在线计费系统及策略和计费规则功能实体

Country Status (2)

Country Link
CN (1) CN102918800B (zh)
WO (1) WO2011157123A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120959A1 (zh) * 2016-12-28 2018-07-05 华为技术有限公司 一种配额管理方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035002A (zh) * 2007-01-10 2007-09-12 华为技术有限公司 信用控制客户端、信用控制服务器、计费系统及计费方法
CN101431420A (zh) * 2008-11-25 2009-05-13 中兴通讯股份有限公司 策略和计费控制方法和系统
CN101616392A (zh) * 2009-06-26 2009-12-30 中兴通讯股份有限公司 一种增值业务提供系统和方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232385B (zh) * 2007-01-22 2012-06-27 华为技术有限公司 在微波接入全球互通系统中进行计费的方法及系统
US7937300B2 (en) * 2008-07-10 2011-05-03 Bridgewater Systems Corp. System and method for providing interoperability between diameter policy control and charging in a 3GPP network
CN101645782B (zh) * 2009-02-10 2012-05-23 中国科学院声学研究所 一种基于用户业务量的在线计费方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035002A (zh) * 2007-01-10 2007-09-12 华为技术有限公司 信用控制客户端、信用控制服务器、计费系统及计费方法
CN101431420A (zh) * 2008-11-25 2009-05-13 中兴通讯股份有限公司 策略和计费控制方法和系统
CN101616392A (zh) * 2009-06-26 2009-12-30 中兴通讯股份有限公司 一种增值业务提供系统和方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120959A1 (zh) * 2016-12-28 2018-07-05 华为技术有限公司 一种配额管理方法及装置
EP3554004A4 (en) * 2016-12-28 2019-12-11 Huawei Technologies Co., Ltd. PROCESS AND DEVICE FOR QUOTA MANAGEMENT
US11330114B2 (en) 2016-12-28 2022-05-10 Huawei Technologies Co., Ltd. Quota management method and apparatus

Also Published As

Publication number Publication date
CN102918800A (zh) 2013-02-06
CN102918800B (zh) 2015-11-25
WO2011157123A3 (zh) 2012-05-03

Similar Documents

Publication Publication Date Title
CN102884757B (zh) 基于被请求的数据服务的服务数据流计费方法的选择
JP4842317B2 (ja) オンライン課金管理サーバー
EP2553949B1 (en) Local roaming charging in lte/epc networks
US8516545B2 (en) Method and system for session modification
KR101558115B1 (ko) Sy 기반 통합 정책 및 과금 제어
WO2009124441A1 (zh) 会话终结触发方法、实现方法及系统
WO2009105949A1 (zh) 一种漫游在线计费的方法、设备及控制系统
CN104584600B (zh) 临时禁用超出信用额度pcc规则
CN102984768A (zh) 一种实时调整共享计费规则下在线用户带宽的方法及装置
CN105101136B (zh) 一种数据业务的计费方法、装置及系统
WO2014183282A1 (zh) 群组计费方法、网关设备、计费设备以及通信系统
WO2009026827A1 (fr) Procédé, système et dispositif d'ouverture de la capacité de données comptables de facturation
JP2013520051A (ja) 改善されたクレジット検証のためのノード
US20130036032A1 (en) Service plan negotiations with end users for policy and charging control (pcc)
WO2011082644A1 (zh) 在线计费方法及装置
EP3389218B1 (en) Data service charging method, device and system
EP3895409A1 (en) Method and function for handling a subscriber's communication services
WO2011140891A1 (zh) 预付费计费的方法、装置及系统
WO2009149610A1 (zh) 在线计费方法和装置
WO2011157123A2 (zh) 在线计费方法、在线计费系统及策略和计费规则功能实体
WO2010069270A1 (zh) 一种在线充值的方法、系统及设备
KR101470750B1 (ko) 스팬딩 리밋 제어 시의 트래픽 부하 감소를 위한 장치, 방법, 및 기록 매체
CN112383405B (zh) 一种数据业务计费方法、装置和系统
WO2015109753A1 (zh) 计费系统的切换方法及装置
WO2007140700A1 (fr) Procédé et appareil pour transmettre des informations de facturation

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000656.8

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11795089

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11795089

Country of ref document: EP

Kind code of ref document: A2