WO2017000242A1 - 计费方法、网络设备及计费系统 - Google Patents

计费方法、网络设备及计费系统 Download PDF

Info

Publication number
WO2017000242A1
WO2017000242A1 PCT/CN2015/082875 CN2015082875W WO2017000242A1 WO 2017000242 A1 WO2017000242 A1 WO 2017000242A1 CN 2015082875 W CN2015082875 W CN 2015082875W WO 2017000242 A1 WO2017000242 A1 WO 2017000242A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
offline
policy
entity
ocs
Prior art date
Application number
PCT/CN2015/082875
Other languages
English (en)
French (fr)
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 EP15896773.7A priority Critical patent/EP3301957B1/en
Priority to CN201580026907.8A priority patent/CN106465084B/zh
Priority to PCT/CN2015/082875 priority patent/WO2017000242A1/zh
Priority to BR112017028042A priority patent/BR112017028042A2/pt
Priority to JP2017565904A priority patent/JP6552071B2/ja
Priority to AU2015400545A priority patent/AU2015400545B2/en
Publication of WO2017000242A1 publication Critical patent/WO2017000242A1/zh
Priority to US15/855,616 priority patent/US10425539B2/en

Links

Images

Classifications

    • 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/65Off-line charging system
    • 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/41Billing record details, i.e. parameters, identifiers, structure of call data record [CDR]
    • 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/62Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on trigger specification
    • 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
    • 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/70Administration or customization aspects; Counter-checking correct charges
    • 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/70Administration or customization aspects; Counter-checking correct charges
    • H04M15/74Backing up
    • 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/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/852Low balance or limit reached
    • 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/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/853Calculate maximum communication time or volume
    • 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/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/854Available credit
    • 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 mobile communications, and in particular, to a charging method, a network device, and a charging system.
  • the billing system is one of its important functional components and is an important guarantee for operators to achieve revenue.
  • the user when the online charging system is unavailable, the user can switch to offline charging, thereby ensuring that the service can continue to be used, improving the user experience and avoiding losses to the operator.
  • the duration of the offline is generally set by keeping the timer. After the timeout expires, the user is deactivated. If the OCS is restored when the user goes online again, the online charging is resumed, otherwise the offline charging is continued. After the user transfers the offline billing, the generated bill contains the offline sign, and the billing system (BS, Billing System) can finally perform the supplementary deduction for the bill carrying the offline billing flag.
  • BS Billing System
  • the embodiment of the invention provides a charging method, a network device and a charging system, which can reduce the risk of user account overdraft and improve the user experience.
  • an embodiment of the present invention provides a method for charging, including:
  • the policy and charging execution function PCEF entity performs online charging on the user equipment UE; the PCEF entity learns that the online charging system OCS is unavailable; the PCEF entity switches the UE from online charging to offline charging, and starts an offline timer, offline timing Used to indicate the most offline charging to deactivation of the UE For a long time; if the PCEF entity learns that the OCS is restored to be available before the offline timer expires, the PCEF entity restores the UE from offline charging to online charging.
  • the PCEF entity learns that the OCS is restored to be applicable, including: the PCEF entity sends a request message to the OCS, and the PCEF entity receives the success response message sent by the OCS, where the success response message is sent. In response to the request message, it is used to indicate that the OCS has been restored to be available.
  • the method further includes: The PCEF entity sends a first update message to the policy and charging rule function PCRF entity, where the first update message is used to indicate that the UE has been switched to offline charging; the PCEF entity receives the first update response message sent by the PCRF entity, and the first update response The message carries a second control charging policy, where the second control charging policy is a control charging policy of the UE adjusted by the PCRF entity according to the first update message; and the PCEF entity performs a second control charging policy for the UE.
  • the first update message includes a first event triggering attribute value pair Event-Trigger AVP, a first Event-Trigger AVP
  • the first parameter value is included, and the first parameter value is used to indicate that the UE has been switched to offline charging.
  • the method further includes: sending, by the PCEF entity, the PCRF entity a second update message, the second update message is used to indicate that the UE has been restored to the online charging; the PCEF entity receives the second update response message sent by the PCRF entity, and the second update response message carries the first control charging policy, the first control
  • the charging policy is a control charging policy of the UE that is restored by the PCRF entity according to the second update message; the PCEF entity performs a first control charging policy on the UE.
  • the second update message includes a second Event-Trigger AVP
  • the second Event-Trigger AVP includes the second parameter.
  • the value, the second parameter value is used to indicate that the UE has been restored to online charging.
  • the quality of service QoS in the second control charging policy is lower than the QoS in the first control charging policy.
  • the PCEF is configured to learn that the online charging system OCS is unavailable, and the PCEF entity learns that the link between the OCS and the OCS is faulty.
  • the sending, by the PCEF entity, the request message to the OCS includes: sending, by the PCEF entity, a request message to the OCS after the link failure between the sensing and the OCS is recovered;
  • the PCEF entity learns that the OCS does not respond or receives an error code sent by the OCS; and the PCEF entity sends the request message to the OCS, including: the PCEF entity periodically sends a request message to the OCS.
  • the PCEF entity switches the UE from the online charging to the offline charging, including: the PCEF entity performs the CDR splitting to generate the offline CDR, the offline CDR carries the offline offline flag, and the offline offline flag is used to identify the charging system BS to the offline call. A separate accounting process is performed.
  • the PCEF entity recovers the UE from offline charging to online charging.
  • the PCEF entity performs the splitting of the bills so that the newly generated offline bills no longer carry the offline offline flag.
  • the request message is The credit control request initiates a CCR-I message; the success response message initiates a CCA-I message for the credit control response.
  • an embodiment of the present invention provides a method for charging, including:
  • the policy and charging execution function PCEF entity switches the user equipment UE from online charging to offline charging; the PCEF entity sends a first update message to the policy and charging rule function PCRF entity, where the first update message is used to indicate that the UE has been switched.
  • the PCEF entity receives the first update response message sent by the PCRF entity, where the first update response message carries the second control charging policy, and the second control charging policy is adjusted by the PCRF entity according to the first update message.
  • the control charging policy of the UE; the PCEF entity performs a second control charging policy on the UE.
  • the first update message includes a first event triggering attribute value pair Event-Trigger AVP, where the first Event-Trigger AVP includes the first parameter value, the first The parameter value is used to indicate that the UE has been switched to offline charging.
  • the UE After the offline charging is restored to the online charging, the PCEF entity sends a second update message to the PCRF entity, where the second update message is used to indicate that the UE has been restored to online charging; and the PCEF entity receives the second update response message sent by the PCEF entity.
  • the second update response message carries the first control charging policy, where the first control charging policy is a control charging policy of the UE that is restored by the PCRF entity according to the second update message; and the PCEF entity performs the first control charging policy on the UE.
  • the second update message includes a second Event-Trigger AVP
  • the second Event-Trigger AVP includes the second parameter value.
  • the second parameter value is used to indicate that the UE has been restored to online charging.
  • the quality of service QoS in the second control charging policy Lower than the QoS in the first control charging policy.
  • an embodiment of the present invention provides a method for charging, including:
  • the policy and charging rule function PCRF entity receives the first update message sent by the PCEF, where the first update message is used to indicate that the UE has been switched.
  • the PCRF entity adjusts the first control charging policy of the UE to the second control charging policy according to the first update message; the PCRF entity sends a first update response message to the PCEF entity, where the first update response message carries the first And controlling the charging policy, so that the PCEF entity performs the second control charging policy on the UE after receiving the first update response message.
  • the first update message includes a first event triggering attribute value pair Event-Trigger AVP, where the first Event-Trigger AVP includes the first parameter value, the first The parameter value is used to indicate that the UE has switched to offline charging.
  • the PCRF entity receives the second update message sent by the PCEF, where the second update message is used. Instructing the UE to be restored to online charging; the PCRF entity restores the second control charging policy of the UE to the first control charging policy according to the second update message; the PCRF entity sends a second update response message to the PCEF entity, and second The update response message carries the first control charging policy, so that the PCEF entity performs the first control charging policy on the UE after receiving the second update response message.
  • the second update message includes a second Event-Trigger AVP
  • the second Event-Trigger AVP includes a second parameter value, where the second parameter value is used to indicate that the UE has resumed online charging.
  • the first possible implementation of the third aspect or any one of the possible implementations of the third possible implementation of the third aspect, in a fourth possible implementation of the third aspect
  • the quality of service QoS in the second control charging policy is lower than the QoS in the first control charging policy.
  • an embodiment of the present invention provides a network device, including:
  • the processing unit is configured to perform online charging on the user equipment UE, and learn that the online charging system OCS is unavailable, and then switch the UE from online charging to offline charging, and start an offline timer, and the offline timer is used to indicate the pair.
  • the network device further includes: a sending unit, configured to send a request message to the OCS, and a receiving unit, configured to receive the success response message sent by the OCS, where the success is successful.
  • the reply message is a response to the request message and is used to indicate that the OCS has been restored to be available.
  • the sending unit is further configured to: at the processing unit, switch the UE from online charging to an offline meter After the fee, the first update message is sent to the policy and charging rule function PCRF entity, where the first update message is used to indicate that the UE has been switched to offline charging, and the receiving unit is further configured to receive the first update response message sent by the PCRF entity.
  • the first update response message carries a second control charging policy, where the second control charging policy is a control charging policy of the UE that is adjusted by the PCRF entity according to the first update message, and the processing unit is further configured to perform the first Second, control the charging strategy.
  • the sending unit is further configured to: after the processing unit restores the UE from offline charging to online charging, The PCRF entity sends a second update message, where the second update message is used to indicate that the UE has been restored to the online charging, and the receiving unit is further configured to receive the second update response message sent by the PCEF entity, where the second update response message carries the first control a charging policy, the first control charging policy is a control charging policy of the UE after the PCRF entity recovers according to the second update message, and the processing unit is further configured to perform the first Control the billing strategy.
  • the processing unit is specifically configured to: when the link between the OCS and the OCS is faulty, send the unit, specifically The sending unit sends a request message to the OCS after the link fault recovery between the sensing and the OCS; or, the processing unit is specifically configured to learn that the OCS does not respond or receives the error code sent by the OCS; The OCS sends a request message.
  • the processing unit is configured to perform the CDR splitting to generate the offline CDR when the UE is switched from the online charging to the offline charging, and the offline CDR carries the offline offline flag, and the offline offline flag is used to identify the charging system BS.
  • the differential billing process is performed on the offline bills.
  • the processing unit is configured to perform bill splitting when the UE is restored from the offline billing to the online billing, so that the newly generated offline bills no longer carry the offline offline flag.
  • the embodiment of the present invention further provides a network device, including:
  • a processing unit configured to switch the user equipment UE from the online charging to the offline charging; the sending unit is configured to send a first update message to the policy and charging rule function PCRF entity, where the first update message is used to indicate that the UE has been switched.
  • the receiving unit is configured to receive a first update response message sent by the PCRF entity, where the first update response message carries a second control charging policy, where the second control charging policy is performed by the PCRF entity according to the first update message.
  • the control unit is configured to control the charging policy of the UE.
  • the processing unit is further configured to perform a second control charging policy on the UE.
  • the network device further includes: a sending unit, configured to send the second to the PCRF entity after the UE recovers the offline charging to the online charging An update message, the second update message is used to indicate that the UE has been restored to the online charging, and the receiving unit is further configured to receive a second update response message sent by the PCRF entity, where the second update response message carries the first control charging policy,
  • the first control charging policy is a control charging policy of the UE that is restored by the PCRF entity according to the second update message
  • the processing unit is further configured to execute the first control charging policy for the UE.
  • the embodiment of the present invention further provides a network device, including:
  • a receiving unit configured to perform user equipment UE from online charging in a policy and charging execution function PCEF After the offline charging is switched, the first update message sent by the PCEF is received, where the first update message is used to indicate that the UE has been switched to offline charging, and the processing unit is configured to: first, the first of the UE according to the first update message received by the receiving unit The control charging policy is adjusted to the second control charging policy; the sending unit is configured to send a first update response message to the PCEF entity, where the first update response message carries the second control charging policy, so that the PCEF entity receives the first After updating the response message, the second control charging policy is performed on the UE.
  • the receiving unit is further configured to: after the PCEF restores the UE from the offline charging to the online charging, receive the second update message sent by the PCEF, where The second update message is used to indicate that the UE has been restored to the online charging; the processing unit is further configured to restore the second control charging policy of the UE to the first control charging policy according to the second update message received by the receiving unit; And the second update response message is sent to the PCEF entity, where the second update response message carries the first control charging policy, so that the PCEF entity performs the first control charging policy on the UE after receiving the second update response message.
  • the embodiment of the present invention further provides a charging system, including:
  • the PCEF entity is configured to perform online charging on the user equipment UE.
  • the UE When the OCS is unavailable, the UE is switched from online charging to offline charging, and an offline timer is started.
  • the offline timer is used to indicate offline charging to the UE. The longest time to deactivate; if the OCS is recovered to be available before the offline timer expires, the UE is restored from offline charging to online charging.
  • an embodiment of the present invention further provides a charging system, including:
  • a PCEF entity configured to switch the user equipment UE from online charging to offline charging, and send a first update message to the PCRF entity, where the first update message is used to indicate that the UE has been switched to offline charging;
  • the PCRF entity is configured to receive a first update message sent by the PCEF entity, adjust the first control charging policy of the UE to the second control charging policy according to the first update message, and send a first update response message to the PCEF entity, where The second response charging policy is carried in the update response message;
  • the PCEF entity is further configured to receive a first update response message sent by the PCRF entity, and perform a second control charging policy on the UE.
  • the UE in the process of online charging by the PCEF entity to the user equipment UE, if it is known that the online charging system OCS is unavailable, the UE is switched from online charging to offline charging, and an offline timer is started. After that, after the PCEF entity in the prior art waits for the offline timer to expire, the offline charging of the UE is stopped and the UE is deactivated, but before the timer expires, if the OCS is restored to be available, Then the PCEF entity restores the UE from offline charging to online charging.
  • the solution can restore the online charging function in time when the OCS is available, thereby reducing the risk of user account overdraft that may exist in the offline charging process, and the solution can avoid deactivating the user. Improved user experience.
  • FIG. 1 is a network diagram of a charging system in a packet switched domain according to an embodiment of the present invention
  • FIG. 2 is a system architecture diagram of an embodiment of the present invention
  • FIG. 3 is a flowchart of a charging method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of signaling interaction of online charging automatic recovery according to an embodiment of the present invention.
  • FIG. 6 is another flow chart of signaling interaction for online charging automatic recovery according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of adjusting a control charging policy when online charging to offline charging is performed according to an embodiment of the present invention
  • FIG. 8 is a flowchart of adjusting a control charging policy when offline charging to online charging according to an embodiment of the present invention
  • FIG. 9 is a flowchart of signaling interaction of adjusting a control charging policy when online charging earns offline charging according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an embodiment of a network device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of another embodiment of a network device according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another embodiment of a network device according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic diagram of another embodiment of a network device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a hardware of a network device according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another hardware structure of a network device according to an embodiment of the present invention.
  • FIG. 16 is a schematic diagram of another hardware structure of a network device according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of an embodiment of a charging system according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of another embodiment of a charging system according to an embodiment of the present invention.
  • the terms “comprises” and “comprises” and “the” and “the” are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or modules is not necessarily limited to Those steps or modules, but may include other steps or modules not explicitly listed or inherent to such processes, methods, products or devices, the division of the modules presented herein is merely a logical division. There may be additional divisions in the implementation of the actual application, for example, multiple modules may be combined or integrated into another system, or some features may be ignored, or not executed, and the displayed or discussed mutual coupling.
  • the direct coupling or the communication connection may be through some interfaces, and the indirect coupling or communication connection between the modules may be electrical or the like, which is not limited herein.
  • the module or the sub-module described as the separate component may or may not be physically separated, may not be a physical module, or may not be divided into a plurality of circuit modules, and may select a part thereof according to actual needs or All modules are used to achieve the objectives of the embodiments of the present invention.
  • the GPRS Service Support Node forwards the input/output IP packet for the mobile device (UE, User Equipment) of the SGSN service area, which tracks the location of the UE, performs security functions and access control, and gateway GPRS
  • the GGSN Gateway GPRS Support node
  • OCS Online Charging System
  • OCS Online Charging
  • charging gateway CG, Charging Gateway
  • BS Billing System
  • the GGSN implements the online charging reference point between a PCEF and an OCS through the Policy and Charging Enforcement Function (PCEF).
  • PCEF Policy and Charging Enforcement Function
  • the Diameter protocol is used to interact with the OCS to implement online charging.
  • OCS can perform real-time credit control on users' services based on user account status.
  • the GGSN sends the CDRs generated by the GGSN to the CG to implement the offline charging function by using the GTP' protocol to transmit the CDRs from the packet to the PCEF and the CG for CDR transfer.
  • the CG After the CDR is pre-processed, the CG sends the CDR file transfer from the Packet Switched CG to the BS to the BS by using a reference point for the CDR file transfer from the Packet Switched CG to the BS.
  • the BS completes the final chargeback processing.
  • Offline billing information can be used as reconciliation to confirm the accuracy of online billing.
  • the offline charging information can be used as a basis for supplemental deduction after the online charging system fails.
  • the PCEF is located at the gateway, and may be a GPRS GGSN, which is used for providing routing and encapsulation of data packets between the GPRS and the external data network, and performing a control and charging policy delivered by the PCRF entity to complete the charging function; the PCEF may also be The EPC's PDN gateway (PGW, PDN GateWay) is used to provide routing and encapsulation of data packets between the UMTS network and the external data network, and implements the control and charging policies delivered by the PCRF entity to complete the charging function.
  • PGW PDN GateWay
  • the functions of the OCS include: transaction processing, rating, online association, and management of the user account balance, and cooperate with the PCEF to complete online charging;
  • the CG is responsible for collecting, merging, and pre-processing the CDRs generated by each SGSN/GGSN, and Providing an interface for communication with the billing center, and performing offline charging with the PCEF;
  • the PCRF entity performs dynamic QoS policy control and dynamic flow-based charging control functions, and also provides authorization control function based on user subscription information,
  • the PCEF delivers control and accounting policies.
  • the embodiments of the present invention can be applied to other similar systems that have both online charging and offline charging functions. After online charging to offline charging, the online charging can be resumed without interrupting the service.
  • the embodiment of the present invention can also be used for other similar systems in which the PCRF entity, the online charging, and the offline charging function are simultaneously deployed, and the control and charging policies can be implemented when the online charging to the offline charging and the online charging recovery are implemented. Adjustment.
  • the following describes the method for restoring online charging without interrupting the service after the online charging to offline charging in the embodiment of the present invention.
  • a charging method in the embodiment of the present invention includes:
  • the PCEF entity performs online charging on the UE.
  • the UE sends a service request to the PCEF entity.
  • the PCEF entity interacts with the OCS to perform activation authentication to complete the activation of the UE.
  • the PCEF entity interacts with the OCS to start online charging for the UE.
  • the UE applies the quota to the OCS through the PCEF entity or reports the used quota.
  • the OCS can pass the quota management and quota.
  • the real-time delivery is performed to control the state of the user account corresponding to the UE, thereby real-time credit control for the user using the service.
  • the PCEF entity learns that the online charging system OCS is unavailable
  • the PCEF entity applies for quotas or reports the used quotas to the OCS during the online charging process. If the quota application is unsuccessful or the quota is unsuccessful due to OCS failure or other reasons, the PCEF entity can know that the OCS is unavailable.
  • the PCEF entity switches the UE from online charging to offline charging, and starts an offline timer.
  • the PCEF entity When the PCEF learns that the OCS is unavailable, the PCEF entity switches the UE from online charging to offline charging, thereby ensuring that the service can continue to be used and improving the user experience.
  • the PCEF entity will When the UE switches from online charging to offline charging, an offline timer is set, and the offline timer is used to set the length of time that the UE goes offline, that is, the maximum time for offline charging of the UE until deactivation, when the offline timing When the device times out, the UE will be deactivated, thereby interrupting the service currently used by the user.
  • the PCEF entity restores the UE from offline charging to online charging.
  • the PCEF entity attempts to resume communication with the OCS. If the PCEF entity learns that the OCS is restored to be available before the offline timer expires, it indicates that the OCS can interact with the PCEF entity to implement the online charging function. Therefore, the PCEF entity restores the UE from offline charging to online charging so that the system can revert to the online charging function without interrupting the service that the user is using.
  • the UE in the process of online charging by the PCEF entity to the user equipment UE, if it is known that the online charging system OCS is unavailable, the UE is switched from online charging to offline charging, and an offline timer is started. After that, after the PCEF entity in the prior art waits for the offline timer to expire, the offline charging of the UE is stopped and the UE is deactivated, but before the timer expires, if the OCS is restored to be available, Then the PCEF entity restores the UE from offline charging to online charging.
  • the solution can restore the online charging function in time when the OCS is available after the offline charging, thereby reducing the risk of user account overdraft that may exist in the offline charging process, and the solution can avoid deactivating the user. , which enhances the user experience.
  • the PCRF entity can subscribe the online charging switch to the offline charging and online charging recovery events to the PCEF entity, and adjust the control charging policy to increase the flexibility of the policy control.
  • an online charging method in the embodiment of the present invention includes:
  • the PCEF entity performs online charging on the UE.
  • the UE sends a service request to the PCEF entity.
  • the PCEF entity interacts with the OCS to perform activation authentication, and interacts with the PCRF entity to obtain a control charging policy to complete the UE. activation.
  • the control charging policy used by the UE in the online charging process is referred to as a first control charging policy.
  • the PCEF entity interacts with the OCS to start online charging for the UE.
  • the UE applies the quota to the OCS through the PCEF entity or reports the used quota.
  • the OCS can pass quota management and quota. It is sent in real time to control the state of the user account corresponding to the UE, so as to perform real-time credit control on the user using the service.
  • the PCEF entity learns that the OCS is unavailable
  • the PCEF entity When the PCEF entity requests the OCS to apply for a quota or reports the used quota, the PCEF entity can learn that the OCS is unavailable if the quota application is unsuccessful or the quota is unsuccessful due to the OCS failure or other reasons.
  • OCS is not available and can be divided into the following scenarios:
  • the PCEF entity When the PCEF entity sends a message to the OCS to apply for a quota or report the used quota, the PCEF entity detects that the communication link with the OCS is faulty, and then determines that the OCS is unavailable.
  • the communication link fault between the PCEF entity and the OCS is detected in the prior art, and may be detected in the form of a heartbeat packet, which is not described in detail herein.
  • the OCS does not respond after receiving the message sent by the PCEF entity.
  • the PCEF entity sends a message to the OCS to apply for a quota or report the used quota.
  • the PCEF entity receives the response message sent by the OCS within the preset time, it can determine that the OCS is unavailable.
  • the PCEF entity When the OCS is overloaded, the PCEF entity is notified that the service cannot be processed by sending the error code Result-Code. When the PCEF entity receives the Result-Code, it can determine that the OCS is unavailable.
  • the PCEF entity switches the UE from online charging to offline charging, and starts an offline timer.
  • the PCEF entity If the PCEF entity requests the OCS to apply for a quota or reports the used quota, and finds that the OCS is unavailable, the PCEF entity switches the UE from online charging to offline charging, thereby ensuring that the service can continue to be used and improving the user experience, but to avoid When the user goes offline, the user uses the service for a long time to cause the account to overdraw.
  • the offline timer is set. The offline timer is used to set the duration of the UE to offline. The maximum time for offline charging until deactivation, when the offline timer expires, the UE will be deactivated, thereby interrupting the service currently used by the user.
  • the PCEF entity sends a first update message to the PCRF entity.
  • the PCEF entity After the PCEF entity switches the UE from the online charging to the offline charging or after the PCEF entity switches the UE from the online charging to the offline charging, the PCEF entity interacts with the PCRF entity to obtain a control charging policy. At this time, the PCEF entity sends a first update message to the PCRF entity to report the UE to switch from the online charging to the offline charging event to the PCRF entity. After receiving the first update message, the PCRF entity uses the UE from the online charging. The first control charging policy is adjusted to a second control charging policy to reduce the risk of user account overdraft.
  • the first update message sent by the PCEF entity to the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the PCEF entity sends a CCR-U message to the PCRF entity through a Gx interface that communicates with the PCRF entity.
  • the CCR-U message carries an event-trigger attribute value pair (Event-Trigger AVP, Event-Trigger Attribute). Value Pair), the Event-Trigger AVP is used to report events to the PCRF entity, so that the PCRF entity generates different control charging policies according to different events.
  • Event-Trigger AVP Event-Trigger Attribute
  • Value Pair Event-Trigger AVP
  • one of the parameter values indicates that the online charging is switched to an offline charging event, and the parameter value is referred to as a first parameter value.
  • the PCRF entity generates a corresponding control charging policy according to the first parameter value in the Event-Trigger AVP in the CCR-U message of the UE, and is referred to as a second control charging policy.
  • the PCRF entity adjusts the first control charging policy used by the UE during online charging to the second control charging policy when offline charging, and may be an adjustment control charging policy.
  • the QoS Quality of Service
  • the QoS parameters such as delay, jitter or peak rate are implemented such that the QoS in the second control charging policy is lower than the QoS in the first control charging policy, thereby reducing the risk of user account overdraft.
  • the control charging may also be adjusted.
  • Other parameters in the policy are used to reduce the risk of user account overdraft. For example, the billing rate is adjusted.
  • the specific adjustment method is not limited here.
  • the PCEF entity receives a first update response message sent by the PCRF entity.
  • the PCRF entity After the PCEF entity sends the first update message to the PCRF entity, the PCRF entity adjusts the first control charging policy of the UE to the second control charging policy, and the PCRF entity sends the second control charging policy by using the first update response message. To the PCEF entity, the PCEF entity receives the first update response message sent by the PCRF entity.
  • the first update response message that is sent by the PCRF entity to the PCEF entity may be a CCS-U (Credit-Control-Answer Update) message, or may be other messages, which is not limited herein.
  • CCS-U Clear-Control-Answer Update
  • the PCEF entity performs a second control charging policy on the UE.
  • the PCEF entity After receiving the first update response message sent by the PCRF entity, the PCEF entity performs a second control charging policy on the UE.
  • the manner in which the PCRF entity adjusts the control charging policy is to reduce the QoS of the UE, after the PCEF entity performs the second control charging policy on the UE, the QoS of the UE in the offline charging process is reduced, thereby reducing the overdraft of the user account. risk.
  • the PCEF entity sends a request message to the OCS.
  • the PCEF entity After the PCEF entity switches the UE from online charging to offline charging, the PCEF entity sends a request message to the OCS to reestablish the session with the OCS before the offline timer expires.
  • the manner in which the PCEF entity sends a request message to the OCS is as follows:
  • the PCEF entity immediately sends a request message to the OCS when it is aware that the OCS is available;
  • the PCEF entity determines that the OCS is unavailable. In this case, if the PCEF entity detects the link failure recovery with the OCS, it immediately sends a request message to the OCS to reconstruct. A session with OCS.
  • the PCEF entity detects that the link fault between the OCS and the OCS is restored to the prior art, and can be detected by sending a heartbeat packet, which is not described in detail herein.
  • the PCEF entity periodically sends a request message to the OCS.
  • the PCEF entity determines that the OCS is unavailable, in which case the PCEF entity periodically sends a request message to the OCS to reestablish the session with the OCS. .
  • the PCEF entity detects that the link failure between the OCSs is restored to the prior art and will not be described in detail herein.
  • the request message sent by the PCEF entity to the OCS may be a CCR-I (Credit-Control-Request Intial) message.
  • step 405 there is no clear chronological relationship between step 405 and step 402, step 403, and step 404, which may be performed synchronously.
  • the PCEF entity restores the UE from offline charging to online charging.
  • the PCEF entity After the PCEF entity sends a request message to the OCS to reestablish the session, if the PCEF entity receives the success response message sent by the OCS before the offline timer expires, the success response message is a response of the OCS to the request message sent by the PCEF entity, indicating OCS It has been restored to be available and can interact with the PCEF entity to implement online charging.
  • the PCEF entity restores the UE from offline charging to online charging, so that the system can restore the online charging function without interrupting the service that the user is using.
  • the success response message sent by the PCEF entity to the OCS may be a credit control response initialization (CCA-I, Credit-Control-Answer Intial) message.
  • CCA-I Credit-Control-Answer Intial
  • the PCEF entity sends a second update message to the PCRF entity.
  • the PCEF entity restores the UE from the offline charging to the online charging
  • the PCEF entity interacts with the PCRF entity to obtain a control charging policy to restore the control charging policy of the UE.
  • the PCEF entity sends a second update message to the PCRF entity to report the UE to the PCRF entity to resume the online charging event.
  • the PCRF entity recovers the second control charging policy used by the UE from offline charging.
  • the second update message sent by the PCEF entity to the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the PCEF entity sends a CCR-U message to the PCRF entity through a Gx interface that communicates with the PCRF entity, and extends the parameter value of the Event-Trigger AVP in the CCR-U message by using the extended parameter value.
  • the online charging recovery event refers to this parameter value as the second parameter value.
  • the PCRF entity restores the control charging policy of the UE to the first control charging policy according to the second parameter value in the Event-Trigger AVP in the CCR-U message of the UE.
  • the PCRF entity adjusts the control charging policy by reducing the QoS of the UE, and the PCRF entity restores the second control charging policy of the UE to the first control charging policy, that is, recovery.
  • the QoS of the UE is the QoS of the UE.
  • the PCEF entity receives, by the PCRF entity, a second update response message.
  • the PCRF entity restores the second control charging policy of the UE to the first control charging policy, and the PCRF entity sends the first control charging policy by using the second update response message.
  • the PCEF entity receives the second update response message sent by the PCRF entity.
  • the second update response message sent by the PCRF entity to the PCEF entity may be a CCA-U (Credit-Control-Answer) message, or may be other messages, which is not limited herein.
  • CCA-U Clear-Control-Answer
  • the PCEF entity performs a first control charging policy on the UE.
  • the PCEF entity After receiving the second update response message sent by the PCRF entity, the PCEF entity performs a first control charging policy on the UE to restore the control charging policy used by the UE for online charging.
  • the specific manner of the PCRF entity adjusting the control charging policy of the UE is to reduce the QoS in the control charging policy, and after the PCEF entity performs the first control charging policy on the UE, the UE QoS recovery.
  • the PCEF entity sends an update message carrying the online charging to offline charging event and the online charging recovery event to the PCRF entity, PCRF, when the online charging is switched to the offline charging and the online charging recovery.
  • the entity adjusts the control charging policy of the UE according to the message, thereby further reducing the risk of user account overdraft.
  • the user is not required to be deactivated, and the user who goes offline can restore the online charging only through the signaling interaction between the PCEF entity and the OCS without leaving the network (not offline). Can reduce signaling overhead.
  • the CDR splitting is required, and the CDRs generated during the offline charging are carried and the offline identification is supplemented. The basis for the deduction.
  • the PCEF entity performs the splitting of the bills, and considers the splitting of the bill as the first bill splitting.
  • the CDRs generated in the subsequent offline charging process carry the offline offline flag, which is used to identify that the charging system BS needs to perform differential processing on the offline CDR, that is, to supplement Deduction fee.
  • the PCEF entity restores the UE from offline charging to online charging.
  • the PCEF entity performs the splitting of the bill, and considers the splitting of the bill as the second time. The words are split.
  • the subsequent offline CDRs are no longer carried with the offline offline flag, indicating that online charging is performed subsequently.
  • the subsequent offline CDRs are only used for reconciliation, and are not used as the basis for deduction.
  • the CDRs generated during the offline charging are carried to the offline marking by the CDR splitting, thereby implementing the offline charging process.
  • the supplementary deduction fee is increased, which improves the achievability of the scheme.
  • the UE When the UE is activated, the UE sends a Packet Data Protocol (PDP, Packet Data Protocol) creation request to the PCEF entity.
  • PDP Packet Data Protocol
  • the PCEF entity After receiving the PDP creation request of the UE, the PCEF entity sends a CCR-I message to the PCRF entity to obtain a control charging policy of the UE.
  • the PCRF entity After receiving the CCR-I message sent by the PCEF entity, the PCRF entity sends a CCA-I message to the PCEF entity, and sends the control and charging policy of the UE to the PCEF entity.
  • the PCEF entity After receiving the PDP creation request of the UE, the PCEF entity sends a CCR-I message to the OCS for activation authentication.
  • the OCS After receiving the CCR-I message sent by the PCEF entity, the OCS returns a CCA-I message to the PCEF entity to notify the PCEF entity to complete activation authentication for the UE.
  • the PCEF entity obtains a control charging policy of the UE from the PCRF entity, and after the activation verification is performed by the OCS, sends a PDP creation success response message to the UE to complete the activation of the UE.
  • the PCEF entity After the UE is successfully activated, the PCEF entity performs online charging on the service used by the UE. In this process, if the communication link between the PCEF entity and the OCS fails.
  • the PCEF entity sends a CCR-U message to the OCS in real time to apply for a quota or report the used quota.
  • the CCR-U message will be sent, and the PCEF entity will perform the offline processing of the UE, and the UE switches from online charging to offline charging.
  • the PCEF entity switches the UE from the online charging to the offline charging, the PCEF entity starts the offline timer Holding-Timer, and the PCEF entity performs the splitting of the bill to inform the CG that the UE enters the offline charging.
  • the Hold-Timer is used to set the length of time that the UE goes offline, that is, the maximum time for the UE to perform offline charging to deactivation.
  • the offline timer expires, the user is deactivated, thereby interrupting the service currently used by the user.
  • the PCEF entity After the PCEF entity switches the UE from online charging to offline charging, in order to reduce the risk of account overdraft in the offline process, the PCEF entity sends a CCR-U message to the PCRF entity, and the CCR-U message is extended by the Event. -Trigger AVP to carry the UE from online charging to offline charging event.
  • the PCRF entity After receiving the CCR-U message sent by the PCEF entity, the PCRF entity adjusts the control charging policy of the UE according to the event that the UE carried by the Event-Trigger AVP in the message changes from the online charging to the offline charging event. Reduce the QoS of the UE.
  • the PCRF entity sends the adjusted control charging policy to the PCEF entity through a CCA-U message.
  • the PCEF entity After receiving the CCA-U message, the PCEF entity performs an adjusted control charging policy on the UE. During the offline of the user, the offline CDRs generated by the PCEF entity carry the offline offline flag, and the PCEF entity sends the CDR with the offline logo to the CG to complete offline charging.
  • the offline offline flag is used to identify that the charging system BS needs to perform differential charging processing on the offline CDR, that is, to perform supplementary charging.
  • the PCEF entity After the PCEF entity detects that the communication link between the OCSs is recovered, the CCR-I message is re-established to the OCS, and the CCR-I message carries a new Session-id.
  • the OCS After receiving the CCR-I message sent by the PCEF entity, the OCS considers that the new user is activated, and sends a CCA-I message to the PCEF entity in response to successfully reestablishing the session with the PCEF entity.
  • the charging-id in the CCR-I message sent by the PCEF entity carries the same charging-id as during the offline charging period to ensure that online charging and offline charging can be successfully reconciled.
  • the CCR-I message carries the UE's real start-time, that is, the UE successfully activates the time in step 506 for subsequent data statistics.
  • the PCEF entity After the session is successfully established between the PCEF entity and the OCS, the PCEF entity is restored from the offline charging to the online charging. In this process, the PCEF entity performs the splitting of the bill to inform the CG that the UE is restored to the online charging, and the offline is closed. Timer Holding-Timer.
  • the PCEF entity After the PCEF entity recovers the UE from the offline charging to the online charging, the control charging policy of the UE needs to be resumed. Therefore, the PCEF entity sends a CCR-U message to the PCRF entity to notify the PCRF entity that the UE has been restored. Online charging, in particular, carrying the UE to resume the online charging event by extending the Event-Trigger AVP in the CCR-U message.
  • the PCRF entity After receiving the CCR-U message sent by the PCEF entity, the PCRF entity restores the online charging event according to the UE carried by the Event-Trigger AVP in the message, and restores the control charging policy of the UE to the control charging before adjustment. Strategy.
  • the PCRF entity passes the recovered control charging policy to the CCA-U.
  • the message is sent to the PCEF entity.
  • the PCEF entity restores the control charging policy of the UE according to the CCA-U message, and informs the CG that the offline CDR generated in the online charging process is no longer carried offline.
  • the mark, that is, the offline CDR generated in the online charging process is only used as a reconciliation, and is not used as a basis for deduction.
  • the UE When the UE is activated, the UE sends a Packet Data Protocol (PDP) creation request to the PCEF entity.
  • PDP Packet Data Protocol
  • the PCEF entity After receiving the PDP creation request of the UE, the PCEF entity sends a CCR-I message to the PCRF entity to obtain a control charging policy of the UE.
  • the PCRF entity After receiving the CCR-I message sent by the PCEF entity, the PCRF entity sends a CCA-I message to the PCEF entity, and sends the control and charging policy of the UE to the PCEF entity.
  • the PCEF entity After receiving the PDP creation request of the UE, the PCEF entity sends a CCR-I message to the OCS for activation authentication.
  • the OCS After receiving the CCR-I message sent by the PCEF entity, the OCS returns a CCA-I message to the PCEF entity to notify the PCEF entity to complete activation authentication for the UE.
  • the PCEF entity obtains a control charging policy of the UE from the PCRF entity, and after the activation verification is performed by the OCS, sends a PDP creation success response message to the UE to complete the activation of the UE.
  • the PCEF entity sends a CCR-U message to the OCS in real time to apply for a quota or report the used quota.
  • the TxTimer set by the PCEF entity times out, that is, the response of the OCS is not received within a preset time, or the OCS returns an error code.
  • the cause of the OCS failure to respond may be an OCS failure, and the reason why the OCS returns an error code may be an OCS overload.
  • the PCEF entity switches the UE from the online charging to the offline charging, the PCEF entity starts the offline timer Holding-Timer, and the PCEF entity performs the splitting of the bill to inform the CG that the UE enters the offline charging.
  • the Hold-Timer is used to set the length of time that the UE goes offline, that is, the maximum time for offline charging and deactivation of the UE. When the offline timer expires, the user is deactivated, thereby interrupting the current user.
  • the PCEF entity starts a timer Recover-Timer.
  • the Recover-Timer times out, the message re-establishment session is sent to the OCS to periodically attempt to resume online charging in the Holding-Timer.
  • the PCEF entity After the PCEF entity switches the UE from online charging to offline charging, in order to reduce the risk of account overdraft in the offline process, the PCEF entity sends a CCR-U message to the PCRF entity, and the CCR-U message is extended by the Event. -Trigger AVP to carry the UE from online charging to offline charging event.
  • the PCRF entity After receiving the CCR-U message sent by the PCEF entity, the PCRF entity adjusts the control charging policy of the UE according to the event that the UE carried by the Event-Trigger AVP in the message changes from the online charging to the offline charging event. Reduce the QoS of the UE.
  • the PCRF entity sends the adjusted control charging policy to the PCEF entity through a CCA-U message.
  • the PCEF entity After receiving the CCA-U message, the PCEF entity performs an adjusted control charging policy on the UE. During the offline of the user, the offline CDRs generated by the PCEF entity carry the offline offline flag, and the PCEF entity sends the CDR with the offline logo to the CG to complete offline charging.
  • the offline offline flag is used to identify that the charging system BS needs to perform differential charging processing on the offline CDR, that is, to perform supplementary charging.
  • the PCEF entity sends a CCR-I message to the OCS to re-establish the session, and the CCR-I message carries a new Session-id.
  • the OCS considers that the CCR-I message sent by the PCEF entity is activated by the new user, sends a CCA-I message to the PCEF entity to respond, and successfully reconstructs with the PCEF entity. Conversation.
  • the charging-id in the CCR-I message sent by the PCEF entity carries the same charging-id as during the offline charging period to ensure that online charging and offline charging can be successfully reconciled.
  • the CCR-I message carries the UE's real start-time, that is, the UE successfully activates the time in step 506 for subsequent data statistics.
  • step 610 to step 615 are performed again.
  • the PCEF entity restores the offline charging to the online charging, and the PCEF entity performs the CDR splitting, and informs the CG that the UE is restored to the online charging, and the offline timer Holding-Timer is closed. .
  • the PCEF entity After the PCEF entity recovers the UE from the offline charging to the online charging, the control charging policy of the UE needs to be resumed. Therefore, the PCEF entity sends a CCR-U message to the PCRF entity to notify the PCRF entity that the UE has been restored. Online charging, in particular, carrying the UE to resume the online charging event by extending the Event-Trigger AVP in the CCR-U message.
  • the PCRF entity After receiving the CCR-U message sent by the PCEF entity, the PCRF entity restores the online charging event according to the UE carried by the Event-Trigger AVP in the message, and restores the control charging policy of the UE to the control charging before adjustment. Strategy.
  • the PCRF entity sends the recovered control charging policy to the PCEF entity through a CCA-U message.
  • the PCEF entity restores the control charging policy of the UE according to the CCA-U message, and informs the CG that the offline CDR generated in the online charging process is no longer carried offline.
  • the mark, that is, the offline CDR generated in the online charging process is only used as a reconciliation, and is not used as a basis for deduction.
  • the following describes the method for the PCRF entity to subscribe to the online charging to offline charging event to the PCEF entity in the embodiment of the present invention, and adjust the control charging policy of the UE according to the event.
  • a charging method in the embodiment of the present invention includes:
  • the PCEF entity switches the UE from online charging to offline charging.
  • the PCEF entity when the OCS is not available, in the process of performing online charging for the UE, if the PCEF entity requests the OCS to apply for a quota or reports the used quota, and finds that the OCS is unavailable, the PCEF entity takes the UE from the online. The billing is switched to offline charging, so that the service can continue to be used and the user experience is improved.
  • the PCEF entity sends a first update message to the PCRF entity.
  • the PCEF entity After the PCEF entity switches the UE from the online charging to the offline charging or after the PCEF entity switches the UE from the online charging to the offline charging, the PCEF entity interacts with the PCRF entity to obtain a control charging policy. At this time, the PCEF entity sends a first update message to the PCRF entity to report to the PCRF entity. The UE switches from the online charging to the offline charging event, and after receiving the first update message, the PCRF entity adjusts the first control charging policy used by the UE from the online charging to the second control charging policy to reduce The risk of user account overdraft.
  • the first update message sent by the PCEF entity to the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the PCEF entity receives a first update response message sent by the PCRF entity.
  • the PCRF entity After the PCEF entity sends the first update message to the PCRF entity, the PCRF entity adjusts the first control charging policy of the UE to the second control charging policy, and the PCRF entity sends the second control charging policy to the first update response message by using the first update response message.
  • the PCEF entity receives the first update response message sent by the PCRF entity.
  • the first update response message that is sent by the PCRF entity to the PCEF entity may be a CCS-U (Credit-Control-Answer Update) message, or may be other messages, which is not limited herein.
  • CCS-U Clear-Control-Answer Update
  • the PCEF entity performs a second control charging policy on the UE.
  • the PCEF entity After receiving the first update response message sent by the PCRF entity, the PCEF entity performs a second control charging policy on the UE to reduce the probability of user account overdraft.
  • the PCEF entity sends an update message to the PCRF entity when the online charging is switched to the offline charging, and the PCRF entity adjusts the control charging policy of the UE according to the update message, so that the risk of user account overdraft can be reduced.
  • the PCEF entity sends a CCR-U message to the PCRF entity through a Gx interface that communicates with the PCRF entity.
  • the CCR-U message carries an event-trigger attribute value pair (Event-Trigger AVP, Event-Trigger Attribute). Value Pair), the Event-Trigger AVP is used to report events to the PCRF entity, so that the PCRF entity generates different control charging policies according to different events.
  • Event-Trigger AVP Event-Trigger Attribute
  • Value Pair Event-Trigger AVP
  • one of the parameter values indicates that the online charging is switched to an offline charging event, and the parameter value is referred to as a first parameter value.
  • the PCRF entity generates a corresponding control charging policy according to the first parameter value in the Event-Trigger AVP in the CCR-U message of the UE, and is referred to as a second control charging policy.
  • the PCRF entity adjusts the first control charging policy used by the UE during online charging to the second control charging policy when offline charging, and may adjust the QoS in the control charging policy.
  • the QoS in the control charging policy is reduced, for example, by controlling QoS parameters such as a stream quality quality level, an uplink rate, a downlink rate, a bit error rate, a packet loss rate, a delay, a jitter, or a peak rate of the UE, So that the QoS in the second control charging policy is lower than the QoS in the first control charging policy, thereby reducing the risk of user account overdraft.
  • the control charging may also be adjusted.
  • Other parameters in the policy are used to reduce the risk of user account overdraft. For example, the billing rate is adjusted.
  • the specific adjustment method is not limited here.
  • the PCEF entity detects that the OCS becomes available, and reestablishes the session with the OCS, the PCEF entity restores the UE from offline charging to online charging, and the PCEF entity re-enters the network.
  • the PCRF entity obtains a control charging policy to restore the control and charging policies of the UE.
  • the PCEF entity restores the UE from the offline charging to the online charging
  • the PCEF entity interacts with the PCRF entity to obtain a control charging policy to restore the control charging policy of the UE.
  • the PCEF entity sends a second update message to the PCRF entity to report the UE to the PCRF entity to resume the online charging event. After receiving the second update message, the PCRF entity recovers the second control charging policy used by the UE from offline charging. The first control charging policy used in online charging. The PCRF entity sends the first control charging policy to the PCEF entity by using the second update response message, and the PCEF entity receives the second update response message sent by the PCRF entity. After receiving the second update response message sent by the PCRF entity, the PCEF entity performs a first control charging policy on the UE to restore the control charging policy used by the UE for online charging.
  • the second update message sent by the PCEF entity to the PCRF entity may be a CCR-U (Credit-Control-Request) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request
  • the second update response message sent by the PCRF entity to the PCEF entity may be a credit control response update (CCA-U, Credit-Control-Answer) message, or may be other Interest, specific here is not limited.
  • CCA-U Credit-Control-Answer
  • the PCEF entity sends a CCR-U message to the PCRF entity through a Gx interface that communicates with the PCRF entity, and extends the parameter value of the Event-Trigger AVP in the CCR-U message by using the extended parameter value.
  • the online charging recovery event refers to this parameter value as the second parameter value.
  • the PCRF entity restores the control charging policy of the UE to the first control charging policy according to the second parameter value in the Event-Trigger AVP in the CCR-U message of the UE.
  • the PCRF entity adjusts the control charging policy by reducing the QoS of the UE, and the PCRF entity restores the second control charging policy of the UE to the first control charging policy, that is, recovery.
  • the QoS of the UE is the QoS of the UE.
  • the above is a method for adjusting the charging policy in the charging process introduced from the PCEF entity side.
  • the PCRF entity in the embodiment of the present invention introduces the online charging to offline charging event to the PCEF entity, and adjusts the UE according to the event.
  • the method of controlling the billing strategy is a method for adjusting the charging policy in the charging process introduced from the PCEF entity side.
  • a charging method in the embodiment of the present invention includes:
  • the PCRF entity After the PCEF entity switches the UE to offline charging from the online charging, the PCRF entity receives the first update message sent by the PCEF entity.
  • the PCEF entity when the OCS is not available, in the process of performing online charging for the UE, if the PCEF entity requests the OCS to apply for a quota or reports the used quota, and finds that the OCS is unavailable, the PCEF entity takes the UE from the online. The billing is switched to offline charging, so that the service can continue to be used and the user experience is improved.
  • the PCEF entity After the PCEF entity switches the UE from the online charging to the offline charging or after the PCEF entity switches the UE from the online charging to the offline charging, the PCEF entity interacts with the PCRF entity to obtain a control charging policy. At this time, the PCEF entity sends a first update message to the PCRF entity, and the UE reports that the UE switches from the online charging to the offline charging event, and the PCRF entity receives the first update message sent by the PCEF.
  • the first update message received by the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the PCRF entity adjusts the first control charging policy of the UE to the second control charging policy according to the first update message.
  • the PCRF entity After receiving the first update message sent by the PCEF entity, the PCRF entity adjusts the first control charging policy used by the UE from the online charging to the second control charging policy to reduce the risk of user account overdraft.
  • the PCRF entity sends a first update response message to the PCEF entity.
  • the second control charging policy is sent to the PCEF entity by using the first update response message, so that the PCEF entity receives the first update response message. Afterwards, the second control charging policy is performed on the UE.
  • the first update response message that is sent by the PCRF entity to the PCEF entity may be a CCS-U (Credit-Control-Answer Update) message, or may be other messages, which is not limited herein.
  • CCS-U Clear-Control-Answer Update
  • the PCRF entity receives the update message sent by the PCEF entity, and the PCRF entity adjusts the control charging policy of the UE according to the update message, and then sends the adjusted control charging policy to the PCEF entity, where the PCEF entity pairs the UE.
  • the adjusted control charging policy is implemented, thereby reducing the risk of user account overdraft.
  • the PCRF entity sends a CCR-U message through a PCEF entity received by the Gx interface that communicates with the PCEF entity.
  • the CCR-U message carries an event-trigger attribute value pair (Event-Trigger AVP, Event-Trigger). Attribute Value Pair), the Event-Trigger AVP is used to report an event to the PCRF entity, so that the PCRF entity generates different control charging policies according to different events.
  • Event-Trigger AVP Event-Trigger AVP
  • one of the parameter values indicates that the online charging is switched to an offline charging event, and the parameter value is referred to as a first parameter value.
  • the PCRF entity generates a corresponding control charging policy according to the first parameter value in the Event-Trigger AVP in the CCR-U message of the UE, and is referred to as a second control charging policy.
  • the PCRF entity adjusts the first control charging policy used by the UE during online charging to the second control charging policy when offline charging, and may adjust the QoS in the control charging policy.
  • the QoS in the control charging policy is reduced, for example, by controlling QoS parameters such as a stream quality quality level, an uplink rate, a downlink rate, a bit error rate, a packet loss rate, a delay, a jitter, or a peak rate of the UE, So that the QoS in the second control charging policy is lower than the QoS in the first control charging policy, thereby reducing the risk of user account overdraft.
  • the control charging may also be adjusted.
  • Other parameters in the policy are used to reduce the risk of user account overdraft. For example, the billing rate is adjusted.
  • the specific adjustment method is not limited here.
  • the PCEF entity restores the UE from offline charging to online charging
  • the PCEF entity re-acquires the control charging policy from the PCRF entity to restore the control and charging of the UE.
  • the PCRF entity receives the second update message sent by the PCEF entity, and the message is used to report to the PCRF entity that the UE resumes the online charging event, and after the PCRF entity receives the second update message, the UE uses the second offline charging. Controlling the charging policy to restore the first control charging policy used in online charging.
  • the PCRF entity sends the first control charging policy to the PCEF entity by using the second update response message, and the PCEF entity receives the second update response message sent by the PCRF entity, so that the PCEF entity performs the first control charging policy on the UE.
  • the control charging policy used when restoring the online charging of the UE.
  • the second update message received by the PCRF entity from the PCEF entity may be a CCR-U (Credit-Control-Request) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request
  • the second update response message sent by the PCRF entity to the PCEF entity may be a CCA-U (Credit-Control-Answer) message, or may be other messages, which is not limited herein.
  • CCA-U Clear-Control-Answer
  • the PCRF entity receives the PCCR entity to send a CCR-U message through a Gx interface that communicates with the PCEF entity, and extends the parameter value of the Event-TriggerAVP in the CCR-U message to represent the online value through the extended parameter value. For the charging recovery event, this parameter value is referred to as the second parameter value.
  • the PCRF entity restores the control charging policy of the UE to the first control charging policy according to the second parameter value in the Event-Trigger AVP in the CCR-U message of the UE.
  • the PCRF entity adjusts the control charging policy by reducing the QoS of the UE, and the PCRF entity restores the second control charging policy of the UE to the first control charging policy, that is, recovery.
  • the QoS of the UE is the QoS of the UE.
  • the following describes the signaling interaction between network elements when the charging policy is adjusted in the offline charging process in the embodiment of the present invention.
  • step 901 to step 906 is the same as step 501 to step 506 in the embodiment shown in FIG. 5, and details are not described herein again.
  • the PCEF entity After the UE is successfully activated, the PCEF entity performs online charging on the service used by the UE. In this process, if the communication link between the PCEF entity and the OCS fails.
  • the PCEF entity sends a CCR-U message to the OCS in real time to apply for a quota or report the used quota.
  • the CCR-U message will be sent, and the PCEF entity will perform the offline processing of the UE, and the UE switches from online charging to offline charging.
  • the PCEF entity When the PCEF entity switches the UE from the online charging to the offline charging, the PCEF entity performs the splitting of the bill to notify the CG that the UE enters the offline charging.
  • the PCEF entity starts an offline timer, the Holding-Timer, which is used to set the length of time that the UE goes offline, that is, the maximum time for the offline charging to deactivate the UE.
  • the offline timer expires, Deactivate the user, thereby disrupting the business that the user is currently using.
  • the PCEF entity After the PCEF entity switches the UE from online charging to offline charging, in order to reduce the risk of account overdraft in the offline process, the PCEF entity sends a CCR-U message to the PCRF entity, and the CCR-U message is extended by the Event. -Trigger AVP to carry the UE from online charging to offline charging event.
  • the PCRF entity After receiving the CCR-U message sent by the PCEF entity, the PCRF entity adjusts the control charging policy of the UE according to the event that the UE carried by the Event-Trigger AVP in the message changes from the online charging to the offline charging event. Reduce the QoS of the UE.
  • the PCRF entity sends the adjusted control charging policy to the PCEF entity through a CCA-U message.
  • the PCEF entity After receiving the CCA-U message, the PCEF entity performs an adjusted control charging policy on the UE. During the offline of the user, the offline CDRs generated by the PCEF entity carry the offline offline flag, and the PCEF entity sends the CDR with the offline logo to the CG to complete offline charging.
  • the offline offline flag is used to identify that the charging system BS needs to perform differential charging processing on the offline CDR, that is, to perform supplementary charging.
  • the Holding-Timer timer expires, and the PCEF entity sends a CCR-T (Credit-Control-Request Terminate) message to the PCRF entity to terminate the information interaction with the PCRF entity.
  • CCR-T Clear-Control-Request Terminate
  • the UE After receiving the PDP Create response message, the UE sends a PDP Create request message to the PCEF entity.
  • the PCRF entity After receiving the CCR-T message sent by the PCEF entity, the PCRF entity replies with a CCA-T (Credit-Control-Answer Terminate) message to the PCEF entity in response to the PCEF entity.
  • CCA-T Clear-Control-Answer Terminate
  • the PCEF entity generates a deactivated CDR to the CG, and the deactivated CDR still carries the offline offline flag.
  • a network device 10 provided in the embodiment of the present invention includes:
  • the processing unit 1001 is configured to perform online charging on the UE, and learn that when the online charging system OCS is unavailable, the UE is switched from online charging to offline charging, and an offline timer is started, and an offline timer is used. Indicates the maximum time for offline charging to deactivation of the UE; before the offline timer expires, if the PCEF entity learns that the OCS is restored to be available, the UE is restored from offline charging to online charging.
  • the UE sends a service request to the network device 10.
  • the network device 10 interacts with the OCS to perform activation authentication to complete the activation of the UE.
  • the processing unit 1001 After the UE is activated, the processing unit 1001 starts to perform online charging with the OCS. In the online charging process, the UE applies the quota to the OCS through the processing unit 1001 or reports the used quota.
  • the OCS can be managed through quotas.
  • the real-time credit control is performed on the user to use the service by controlling the status of the user account corresponding to the UE in real time.
  • the processing unit 1001 can learn that the OCS is unavailable, if the quota application is unsuccessful or the quota is unsuccessful due to the OCS failure or other reasons, the processing unit 1001 can obtain the quota application or report the used quota.
  • the processing unit 1001 When the processing unit 1001 learns that the OCS is unavailable, the processing unit 1001 switches the UE from online charging to offline charging, so as to ensure that the service can continue to be used, thereby improving the user experience, but in order to avoid the account overdraft caused by the user using the service for a long time when going offline,
  • an offline timer is set, and the offline timer is used to set the length of time for the UE to go offline, that is, the maximum time for the UE to perform offline charging until deactivation.
  • the offline timer expires, the UE is deactivated, thereby interrupting the service currently used by the user.
  • processing unit 1001 attempts to resume communication with the OCS. If the processing unit 1001 learns that the OCS is restored to be available before the offline timer expires, it indicates that the OCS can interact with the network device 10 to implement the online charging function. Accordingly, processing unit 1001 restores the UE from offline charging to online charging so that the system reverts to the online charging function without disrupting the service the user is using.
  • the network device 10 restores the UE from offline charging to online charging after the success response message of the OCS, so that the system recovers to the service that the user is using without interrupting the service. Online billing function.
  • the processing unit 1001 in the process of performing online charging by the processing unit 1001 on the user equipment UE, if it is known that the online charging system OCS is unavailable, the UE is switched from online charging to offline charging, and the offline timer is started. After that, after the processing unit 1001 in the prior art waits for the offline timer to expire, the offline charging for the UE is stopped and the UE is deactivated, but the processing unit 1001 knows before the timer expires. The OCS is restored to be available, and the processing unit 1001 restores the UE from offline charging to online charging.
  • the solution can restore the online charging function in time when the OCS is available after the offline charging, thereby reducing the risk of user account overdraft that may exist in the offline charging process, and the solution can avoid deactivating the user. , which enhances the user experience.
  • a network device 11 provided in the embodiment of the present invention includes:
  • the processing unit 1101 is configured to perform online charging on the UE, and learn that when the online charging system OCS is unavailable, the UE is switched from online charging to offline charging, and an offline timer is started.
  • the offline timer is used to indicate the maximum time for offline charging to deactivation of the UE; before the offline timer expires, if the PCEF entity learns that the OCS is restored to be available, the UE is restored from offline charging to online charging.
  • the sending unit 1102 is configured to send a request message to the OCS.
  • the receiving unit 1103 is configured to receive a success response message sent by the OCS, where the success response message is a response to the request message, and is used to indicate that the OCS has been restored to be available.
  • the sending unit 1102 is further configured to: after the processing unit 1101 switches the UE from online charging to offline charging, send a first update message to the policy and charging rule function PCRF entity, where the first update message is used to indicate that the UE has been switched. For offline billing;
  • the receiving unit 1103 is further configured to receive a first update response message sent by the PCRF entity, where the first update response message carries a second control charging policy, where the second control charging policy is adjusted by the PCRF entity according to the first update message.
  • the control charging policy of the UE is further configured to receive a first update response message sent by the PCRF entity, where the first update response message carries a second control charging policy, where the second control charging policy is adjusted by the PCRF entity according to the first update message.
  • the processing unit 1101 is further configured to perform a second control charging policy on the UE.
  • the sending unit 1102 is further configured to: after the processing unit restores the UE from offline charging to online charging, send a second update message to the PCRF entity, where the second update message is used to indicate that the UE has been restored to online charging;
  • the receiving unit 1103 is further configured to receive, by the PCEF entity, a second update response message, where the second update response message carries a first control charging policy, where the first control charging policy is a UE that is restored by the PCRF entity according to the second update message.
  • Control billing strategy
  • the processing unit 1101 is specifically configured to learn that the link between the OCS and the OCS is faulty, and the sending unit 1102 is specifically configured to send a request message to the OCS after the link failure recovery between the sensing and the OCS is performed; or, the processing unit 1101, Specifically, it is used to learn that the OCS does not respond or receives an error code sent by the OCS.
  • the sending unit 1102 is specifically configured to periodically send a request message to the OCS.
  • the UE sends a service request to the network device 11, and after receiving the service request of the UE, the receiving unit 1103 interacts with the OCS to perform activation authentication, and simultaneously acquires a control charging policy with the PCRF entity. To complete the activation of the UE.
  • the control charging policy used by the UE in the online charging process is referred to as a first control charging policy.
  • the processing unit 1101 in the network device 11 initiates online charging with the OCS.
  • the UE applies for quotas to the OCS through the network device 11 or reports the used quota, OCS.
  • the user account status corresponding to the UE can be controlled by real-time delivery of quota management and quotas, thereby real-time credit control for the user using the service.
  • the processing unit 1101 can learn that the OCS is unavailable, if the quota application is unsuccessful or the quota is unsuccessful due to the OCS failure or other reasons, the processing unit 1101 can obtain the quota application or report the used quota.
  • OCS is not available and can be divided into the following scenarios:
  • the communication link between the network device 11 and the OCS is faulty
  • the processing unit 1101 detects a communication link failure with the OCS, and then determines that the OCS is unavailable.
  • the processing unit 1101 detects that the communication link between the OCS and the OCS is in the prior art, and may be detected in the form of a heartbeat packet, which is not described in detail herein.
  • the OCS does not respond after receiving the message sent by the PCEF entity.
  • the sending unit 1102 sends a message to the OCS to apply for a quota or report the used quota.
  • the processing unit 1101 may Make sure the OCS is not available.
  • the network device 11 When the OCS is overloaded, the network device 11 is notified that the service cannot be processed by the error code Result-Code.
  • the processing unit 1101 may determine that the OCS is unavailable.
  • the processing unit 1101 switches the UE from the online charging to the offline charging, thereby ensuring that the service can continue to be used and improving the user experience, but In order to avoid account overdraft caused by the user using the service for a long time when going offline, the processing unit 1101 switches the UE from online charging to offline charging, and at the same time, An offline timer is set, which is used to set the length of time that the UE goes offline, that is, the longest time for the UE to perform offline charging until deactivation. When the offline timer expires, the UE is deactivated, thereby interrupting the current use of the UE. Business.
  • the processing unit 1101 switches the UE from the online charging to the offline charging or after the processing unit 1101 switches the UE from the online charging to the offline charging, the processing unit 1101 and the PCRF entity exchange the control charging policy.
  • the sending unit 1102 sends a first update message to the PCRF entity to report to the PCRF entity that the UE switches from the online charging to the offline charging event, and after the PCRF entity receives the first update message, the UE is charged from the online charging.
  • the first control charging policy used is adjusted to the second control charging policy to reduce the risk of user account overdraft.
  • the first update message sent by the sending unit 1102 to the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the sending unit 1102 sends a CCR-U message to the PCRF entity by using a Gx interface that communicates with the PCRF entity.
  • the CCR-U message carries an event-trigger attribute value pair (Event-Trigger AVP, Event-Trigger). Attribute Value Pair), the Event-Trigger AVP is used to report an event to the PCRF entity, so that the PCRF entity generates different control charging policies according to different events.
  • Event-Trigger AVP Event-Trigger AVP
  • one of the parameter values indicates that the online charging is switched to an offline charging event, and the parameter value is referred to as a first parameter value.
  • the PCRF entity generates a corresponding control charging policy according to the first parameter value in the Event-Trigger AVP in the CCR-U message of the UE, and is referred to as a second control charging policy.
  • the PCRF entity adjusts the first control charging policy used by the UE during online charging to the second control charging policy when offline charging, and may be to adjust the service in the control charging policy.
  • QoS Quality of Service
  • specifically to reduce the QoS in the control charging policy for example, by controlling the flow quality of service level of the UE, the uplink rate, the downlink rate, the bit error rate, the packet loss rate, the delay, the jitter, or
  • the QoS parameters such as the peak rate are implemented such that the QoS in the second control charging policy is lower than the QoS in the first control charging policy, thereby reducing the risk of user account overdraft.
  • the PCRF entity adjusts the first control charging policy used by the UE for online charging to the second control charging policy, in addition to adjusting the QoS in the control charging policy, The risk of user account overdraft is reduced by adjusting other parameters in the control charging policy. For example, the charging rate is adjusted.
  • the specific adjustment method is not limited herein.
  • the PCRF entity After the sending unit 1102 sends the first update message to the PCRF entity, the PCRF entity adjusts the first control charging policy of the UE to the second control charging policy, and the PCRF entity passes the second control charging policy to the first update response message. It is sent to the receiving unit 1103 in the network device 11, and the receiving unit 1103 receives the first update response message sent by the PCRF entity.
  • the first update response message sent by the PCRF entity to the receiving unit 1103 in the network device 11 may be a credit-control-an update (CCA-U) message, or may be other messages. There is no limit here.
  • CCA-U credit-control-an update
  • the receiving unit 1103 After receiving the first update response message sent by the PCRF entity, the receiving unit 1103 performs a second control charging policy on the UE.
  • the manner in which the PCRF entity adjusts the control charging policy is to reduce the QoS of the UE, after the processing unit 1101 performs the second control charging policy on the UE, the QoS of the UE in the offline charging process is reduced, thereby reducing the user account overdraft. risks of.
  • the sending unit 1102 sends a request message to the OCS to reestablish the session with the OCS.
  • the sending unit 1102 sends the request message to the OCS in the following manners:
  • the sending unit 1102 immediately sends a request message to the OCS;
  • the processing unit 1101 determines that the OCS is unavailable. In this case, if the processing unit 1101 detects the link failure recovery with the OCS, the sending unit 1102 immediately The OCS sends a request message to reestablish the session with the OCS.
  • the processing unit 1101 detects that the link fault with the OCS is restored to the prior art, and may specifically detect by sending a heartbeat packet, which is not described in detail herein.
  • the processing unit 1101 periodically sends a request message to the OCS.
  • the processing unit 1101 determines that the OCS is not available, in which case the transmitting unit 1102 periodically times The OCS sends a request message to reestablish the session with the OCS.
  • the processing unit 1101 detects that the link failure between the OCSs is restored to the prior art, and will not be described in detail herein.
  • the request message sent by the sending unit 1102 to the OCS may be a CCR-I (Credit-Control-Request Intial) message.
  • the sending unit 1102 sends a request message to the OCS to reestablish the session
  • the receiving unit 1103 receives the success response message sent by the OCS, and the success response message is a response of the OCS to the request message sent by the PCEF entity.
  • the OCS has been restored to be available, and can interact with the network device 11 to implement an online charging function.
  • the receiving unit 1103 restores the UE from offline charging to online charging, so that the system returns to the online charging function without interrupting the service that the user is using. .
  • the success response message sent by the sending unit 1102 to the OCS may be a credit control response initialization (CCA-I, Credit-Control-Answer Intial) message.
  • CCA-I Credit-Control-Answer Intial
  • the processing unit 1101 restores the UE from the offline charging to the online charging
  • the processing unit 11 interacts with the PCRF entity to obtain a control charging policy to restore the control charging policy of the UE.
  • the sending unit 1102 sends a second update message to the PCRF entity to report to the PCRF entity that the UE resumes the online charging event, and after receiving the second update message, the PCRF entity uses the second control charging policy used by the UE from offline charging.
  • the second update message sent by the sending unit 1102 to the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the sending unit 1102 sends a CCR-U message to the PCRF entity by using a Gx interface that communicates with the PCRF entity, and extends the parameter value of the Event-Trigger AVP in the CCR-U message by using the extended parameter value. Indicates the online charging recovery event.
  • This parameter value is called the second parameter value.
  • the PCRF entity is based on the Event-Trigger AVP in the CCR-U message of the UE.
  • the second parameter value in the UE restores the control charging policy of the UE to the first control charging policy.
  • the PCRF entity adjusts the control charging policy by reducing the QoS of the UE, and the PCRF entity restores the second control charging policy of the UE to the first control charging policy, that is, recovery.
  • the QoS of the UE is the QoS of the UE.
  • the PCRF entity restores the second control charging policy of the UE to the first control charging policy, and the PCRF entity passes the first control charging policy to the second update response message.
  • the receiving unit 1103 of the network device 11 receives the second update response message sent by the PCRF entity.
  • the second update response message sent by the sending unit 1102 to the PCEF entity may be a credit control response update (CCA-U, Credit-Control-Answer) message, or may be other messages, which is not limited herein.
  • CCA-U Credit-Control-Answer
  • the processing unit 1101 After the receiving unit 1103 receives the second update response message sent by the PCRF entity, the processing unit 1101 performs a first control charging policy on the UE to restore the control charging policy used by the UE for online charging.
  • the specific manner of the PCRF entity adjusting the control charging policy of the UE is to reduce the QoS in the control charging policy, and after the processing unit 1101 performs the first control charging policy on the UE, the UE QoS recovery.
  • the sending unit 1102 when the processing unit 1101 switches the UE from the online charging to the offline charging and the online charging recovery, the sending unit 1102 sends an update message carrying the online charging to offline charging and the online charging recovery.
  • the PCRF entity adjusts the control charging policy of the UE according to the message, thereby further reducing the risk of user account overdraft.
  • the user is not required to be deactivated, and the offline user can restore the online charging only through the signaling interaction between the network device and the OCS without leaving the offline (not offline). Can reduce signaling overhead.
  • the processing unit 1101 is specifically configured to perform CDR splitting to generate an offline CDR, and the offline CDR carries the offline offline flag, and the offline offline flag is used to identify the charging system BS pair.
  • the processing unit 1101 is specifically configured to perform CDR splitting when the UE is restored from offline charging to online charging, so that the newly generated offline CDR no longer carries the offline offline flag.
  • the processing unit 1101 In the process that the processing unit 1101 switches the UE from the online charging to the offline charging, the processing unit 1101 performs the CDR splitting, and considers the CDR split as the first CDR split. After the first CDR splitting, the CDRs generated in the subsequent offline charging process carry the offline offline flag, which is used to identify that the charging system BS needs to perform differential processing on the offline CDR, that is, to supplement Deduction fee.
  • the processing unit 1101 restores the UE from the offline charging to the online charging.
  • the processing unit 1101 performs the splitting of the bill, and considers the splitting of the bill as The second order is split.
  • the subsequent offline CDRs are no longer carried with the offline offline flag, indicating that online charging is performed subsequently.
  • the subsequent offline CDRs are only used for reconciliation, and are not used as the basis for deduction.
  • the processing unit 1101 when the online charging is switched to the offline charging and the online charging is resumed, the processing unit 1101 performs the offline billing by using the CDR splitting, so that the CDRs generated during the offline charging period carry the offline offline flag. In the process, the bills are supplemented with deductions, which improves the achievability of the scheme.
  • a network device 12 provided in the embodiment of the present invention includes:
  • the processing unit 1201 is configured to switch the user equipment UE from online charging to offline charging.
  • the sending unit 1202 is configured to send, to the policy and charging rule function PCRF entity, a first update message, where the first update message is used to indicate that the UE has been switched to offline charging;
  • the receiving unit 1203 is configured to receive a first update response message sent by the PCRF entity, where the first update response message carries a second control charging policy, where the second control charging policy is a UE that is adjusted by the PCRF entity according to the first update message.
  • Control billing strategy
  • the processing unit 1201 is further configured to perform a second control charging policy on the UE.
  • the processing unit 1201 of the network device 12 switches the UE from online charging to offline charging, thereby ensuring that the service can continue to be used. user experience.
  • the processing unit 1201 After the processing unit 1201 switches the UE from online charging to offline charging or after the PCEF entity switches the UE from online charging to offline charging, the processing unit 1201 interacts with the PCRF entity to obtain a control charging policy.
  • the sending unit 1202 sends a first update message to the PCRF entity to report to the PCRF entity that the UE switches from the online charging to the offline charging event, and after the PCRF entity receives the first update message, the UE is charged from the online charging.
  • the first control charging policy used is adjusted to the second control charging policy to reduce the risk of user account overdraft.
  • the first update message sent by the sending unit 1202 to the PCRF entity may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the PCRF entity After the sending unit 1202 sends the first update message to the PCRF entity, the PCRF entity adjusts the first control charging policy of the UE to the second control charging policy, and the PCRF entity sends the second control charging policy by using the first update response message.
  • the receiving unit 1203 of the network device 12 receives the first update response message sent by the PCRF entity.
  • the first update response message sent by the sending unit 1202 to the PCEF entity may be a credit-control-an update (CCA-U) message, or may be other messages, which is not limited herein. .
  • CCA-U credit-control-an update
  • the processing unit 1201 After the receiving unit 1203 receives the first update response message sent by the PCRF entity, the processing unit 1201 performs a second control charging policy on the UE to reduce the probability of the user account overdraft.
  • the sending unit 1202 when the processing unit 1201 switches the UE from online charging to offline charging, the sending unit 1202 sends an update message to the PCRF entity, and the PCRF entity adjusts the control charging policy of the UE according to the update message, so that Reduce the risk of user account overdrafts.
  • the sending unit 1202 sends a CCR-U message to the PCRF entity by using a Gx interface that communicates with the PCRF entity.
  • the CCR-U message carries an event-trigger attribute value pair (Event-Trigger AVP, Event-Trigger). Attribute Value Pair), the Event-Trigger AVP is used to report events to the PCRF entity, so that the PCRF entity generates different controls according to different events. Billing strategy.
  • Event-Trigger AVP Event-Trigger AVP
  • Event-Trigger AVP Attribute Value Pair
  • Billing strategy By extending the parameter value of the Event-Trigger AVP, one of the parameter values indicates that the online charging is switched to an offline charging event, and the parameter value is referred to as a first parameter value.
  • the PCRF entity generates a corresponding control charging policy according to the first parameter value in the Event-Trigger AVP in the CCR-U message of the UE, and is referred to as a second control charging policy.
  • the PCRF entity adjusts the first control charging policy used by the UE during online charging to the second control charging policy when offline charging, and may adjust the QoS in the control charging policy.
  • the QoS in the control charging policy is reduced, for example, by controlling QoS parameters such as a stream quality quality level, an uplink rate, a downlink rate, a bit error rate, a packet loss rate, a delay, a jitter, or a peak rate of the UE, So that the QoS in the second control charging policy is lower than the QoS in the first control charging policy, thereby reducing the risk of user account overdraft.
  • the control charging may also be adjusted.
  • Other parameters in the policy are used to reduce the risk of user account overdraft. For example, the billing rate is adjusted.
  • the specific adjustment method is not limited here.
  • the sending unit 1202 is further configured to: after the UE is restored from the offline charging to the online charging, send a second update message to the PCRF entity, where the second update message is used to indicate that the UE has been restored to online charging;
  • the receiving unit 1203 is further configured to receive a second update response message sent by the PCRF entity, where the second update response message carries a first control charging policy, where the second update message is used to indicate that the UE has been restored to online charging;
  • the processing unit 1201 is further configured to perform a first control charging policy on the UE.
  • the processing unit 1201 restores the UE from offline charging to online charging
  • the processing unit 1201 interacts with the PCRF entity to obtain a control charging policy to restore the control charging policy of the UE.
  • the sending unit 1202 sends a second update message to the PCRF entity to report the UE to the PCRF entity to resume the online charging event, and after receiving the second update message, the PCRF entity uses the second control charging policy used by the UE from offline charging.
  • the PCRF entity sends the first control charging policy to the PCEF entity through the second update response message.
  • the PCEF entity receives the second update response message sent by the PCRF entity. After receiving the second update response message sent by the PCRF entity, the PCEF entity performs a first control charging policy on the UE to restore the control charging policy used by the UE for online charging.
  • the second update message sent by the sending unit 1202 to the PCRF entity may be a CCR-U (Credit-Control-Request) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request
  • the second update response message sent by the PCRF entity to the PCEF entity may be a CCA-U (Credit-Control-Answer) message, or may be other messages, which is not limited herein.
  • CCA-U Clear-Control-Answer
  • the sending unit 1202 sends a CCR-U message to the PCRF entity by using a Gx interface that communicates with the PCRF entity, and extends the parameter value of the Event-TriggerAVP in the CCR-U message by using the extended parameter value.
  • the online charging recovery event refers to this parameter value as the second parameter value.
  • the PCRF entity restores the control charging policy of the UE to the first control charging policy according to the second parameter value in the Event-Trigger AVP in the CCR-U message of the UE.
  • the PCRF entity adjusts the control charging policy by reducing the QoS of the UE, and the PCRF entity restores the second control charging policy of the UE to the first control charging policy, that is, recovery.
  • the QoS of the UE is the QoS of the UE.
  • a network device 13 provided in the embodiment of the present invention includes:
  • the receiving unit 1301 is configured to receive a first update message sent by the PCEF after the policy and the charging and performing function PCEF switches the user equipment UE from the online charging to the offline charging, where the first update message is used to indicate that the UE has been switched to offline.
  • the processing unit 1302 is configured to adjust the first control charging policy of the UE to the second control charging policy according to the first update message received by the receiving unit 1301.
  • the sending unit 1303 is configured to send a first update response message to the PCEF entity, where the first update response message carries a second control charging policy, so that the PCEF entity performs the second control meter on the UE after receiving the first update response message. Fee strategy.
  • the PCEF entity when the OCS is not available, in the process of performing online charging for the UE, if the PCEF entity requests the OCS to apply for a quota or reports the used quota, and finds that the OCS is unavailable, the PCEF entity takes the UE from the online. The billing is switched to offline charging, so that the service can continue to be used and the user experience is improved.
  • the PCEF entity After the PCEF entity switches the UE from online charging to offline charging or after the PCEF entity switches the UE from online charging to offline charging, the PCEF entity interacts with the network device 13 to obtain a control charging policy. At this time, the PCEF entity sends a first update message to the network device 13, and the UE reports that the UE switches from the online charging to the offline charging event, and the receiving unit 1301 of the network device 13 receives the first update message sent by the PCEF.
  • the first update message received by the receiving unit 1301 may be a CCR-U (Credit-Control-Request Update) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request Update
  • the processing unit 1302 adjusts the first control charging policy used by the UE from the online charging to the second control charging policy, so as to reduce the risk of user account overdraft. .
  • the sending unit 1303 sends the second control charging policy to the PCEF entity by using the first update response message, so that the PCEF entity receives the first After updating the response message, the second control charging policy is performed on the UE.
  • the first update response message sent by the sending unit 1303 to the PCEF entity may be a credit-control-an update (CCA-U) message, or may be other messages, which is not limited herein. .
  • CCA-U credit-control-an update
  • the receiving unit 1301 in the network device 13 receives the update message sent by the PCEF entity, and the processing unit 1302 adjusts the control charging policy of the UE according to the update message, and the sending unit 1303 then adjusts the adjusted control charging.
  • the policy is sent to the PCEF, and the PCEF performs an adjusted control charging policy on the UE, thereby reducing the risk of user account overdraft.
  • the receiving unit 1301 sends a CCR-U message through a PCEF entity received by the Gx interface that communicates with the PCEF entity, and the CCR-U message carries an event triggering attribute.
  • the Event-Trigger AVP Event-Trigger Attribute Value Pair
  • the processing unit 1302 By extending the parameter value of the Event-Trigger AVP, one of the parameter values indicates that the online charging is switched to an offline charging event, and the parameter value is referred to as a first parameter value.
  • the processing unit 1302 generates a corresponding control charging policy according to the first parameter value in the Event-Trigger AVP in the CCR-U message of the UE, which is referred to as a second control charging policy.
  • the processing unit 1302 adjusts the first control charging policy used by the UE during online charging to the second control charging policy during offline charging, which may be in the adjustment control charging policy.
  • QoS specifically to reduce the QoS in the control charging policy, for example, by controlling the QoS parameters of the UE, such as the stream quality of service level, the uplink rate, the downlink rate, the bit error rate, the packet loss rate, the delay, the jitter, or the peak rate. So that the QoS in the second control charging policy is lower than the QoS in the first control charging policy, thereby reducing the risk of user account overdraft.
  • the processing unit 1302 adjusts the first control charging policy used by the UE for online charging to the second control charging policy, in addition to adjusting the QoS in the control charging policy, the processing unit may also be adjusted.
  • Other parameters in the fee policy are used to reduce the risk of user account overdraft, for example, adjusting the billing rate.
  • the specific adjustment method is not limited here.
  • the receiving unit 1301 is further configured to: after the PCEF recovers the UE from the offline charging to the online charging, receive the second update message sent by the PCEF, where the second update message is used to indicate that the UE has been restored to the online charging;
  • the processing unit 1302 is further configured to restore the second control charging policy of the UE to the first control charging policy according to the second update message received by the receiving unit;
  • the sending unit 1303 is further configured to send a second update response message to the PCEF entity, where the second update response message carries the first control charging policy, so that the PCEF entity performs the first control on the UE after receiving the second update response message. Billing strategy.
  • PCEF entity restores the UE from offline charging to online charging
  • PCEF The entity will re-acquire the control charging policy from the network device 13 to restore the control and charging policies of the UE.
  • the specific process is:
  • the receiving unit 1301 receives the second update message sent by the PCEF entity, and the function of the message is to report the UE to the network device 13 to resume the online charging event.
  • the processing unit 1302 After the receiving unit 1301 of the network device 13 receives the second update message, the processing unit 1302 The second control charging policy used by the UE from offline charging is restored to the first control charging policy used in online charging.
  • the sending unit 1303 sends the first control charging policy to the PCEF entity by using the second update response message, and the PCEF entity receives the second update response message sent by the sending unit 1303 of the network device 13 to enable the PCEF entity to perform the first
  • the charging policy is controlled to restore the control charging policy used by the UE for online charging.
  • the second update message received by the receiving unit 1301 from the PCEF entity may be a CCR-U (Credit-Control-Request) message, or may be other messages, which is not limited herein.
  • CCR-U Clear-Control-Request
  • the second update response message sent by the sending unit 1303 to the PCEF entity may be a credit control response update (CCA-U, Credit-Control-Answer) message, or may be other messages, which is not limited herein.
  • CCA-U Credit-Control-Answer
  • the receiving unit 1301 receives the CCR-U message by using the Gx interface that communicates with the PCEF entity, and extends the parameter value of the Event-Trigger AVP in the CCR-U message by using the extended parameter value. Indicates the online charging recovery event. This parameter value is called the second parameter value.
  • the processing unit 1302 restores the control charging policy of the UE to the first control charging policy according to the second parameter value in the Event-Trigger AVP in the CCR-U message of the UE.
  • the processing unit 1302 adjusts the control charging policy by reducing the QoS of the UE, and the processing unit 1302 restores the second control charging policy of the UE to the first control charging policy, that is, To restore the QoS of the UE.
  • the network device in the embodiment of the present invention is described above from the perspective of a modular functional entity.
  • the following describes the network device in the embodiment of the present invention from the perspective of hardware processing. Referring to FIG. 14, the network device 14 in the embodiment of the present invention is described.
  • Another embodiment includes:
  • the receiver 1401, the transmitter 1402, the processor 1403, and the memory 1404 (wherein the number of the processors 1401 in the network device 14 may be one or more, and one processor 1401 is taken as an example in FIG. 14).
  • the receiver 1401, the transmitter 1402, the processor 1403, and the memory 1404 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the processor 1403 is configured to perform the following steps by calling an operation instruction stored in the memory 1404:
  • the online charging is performed on the UE, and when the OCS is unavailable, the UE is switched from online charging to offline charging when the OCS is unavailable.
  • the offline timer is started, and the offline timer is used to indicate offline charging to the UE. The longest time; if the PCEF entity learns that the OCS is restored to be available before the offline timer expires, the PCEF entity restores the UE from offline charging to online charging.
  • the processor 1403 is further configured to perform the following steps:
  • the request message is sent to the OCS by the transmitter 1402; the success response message sent by the OCS is received by the receiver 1401, wherein the success response message is a response to the request message for indicating that the OCS has been restored to be available.
  • the processor 1403 is further configured to perform the following steps:
  • the receiver 1401 Receiving, by the receiver 1401, the first update response message sent by the PCRF entity, where the first update response message carries the second control charging policy, where the second control charging policy is the UE controlled by the PCRF entity according to the first update message. a charging policy; the PCEF entity performs a second control charging policy on the UE;
  • the processor 1403 is further configured to perform the following steps:
  • the PCEF entity sends a second update response message, where the second update response message carries a first control charging policy, where the first control charging policy is a control charging of the UE that is resumed by the PCRF entity according to the second update message.
  • the processor 1403 is further configured to perform the following steps:
  • the transmitter 1402 When it is known that the OCS is unresponsive or the receiver 1401 receives the error code transmitted by the OCS, the transmitter 1402 periodically transmits a request message to the OCS.
  • the processor 1403 is further configured to perform the following steps:
  • the bill splitting is performed to generate an offline bill, and the offline bill carries the offline sign, and the offline flag is used to identify the billing system BS to perform differential billing processing on the offline bill;
  • the CDR split is performed, so that the newly generated offline CDR no longer carries the offline offline flag.
  • the processor 1403 when the OCS is unavailable, switches the UE from online charging to offline charging, and starts an offline timer. After that, the processor 1403 sends a request message to the OCS to try to resume online charging. If the success response message sent by the OCS is received before the offline timer expires, it indicates that the OCS has been restored to be available, and the UE is restored from offline charging to online charging. Therefore, the solution can restore the online charging function in time when the OCS is available after the offline charging, thereby reducing the risk of user account overdraft that may exist in the offline charging process, and the solution can avoid deactivating the user. , which enhances the user experience.
  • another embodiment of the network device 15 in the embodiment of the present invention includes:
  • the receiver 1501, the transmitter 1502, the processor 1503, and the memory 1504 (wherein the number of the processors 1501 in the network device 15 may be one or more, and one processor 1501 is taken as an example in FIG. 15).
  • the receiver 1501, the transmitter 1502, the processor 1503, and the memory 1504 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the processor 1503 is configured to perform the following steps by calling an operation instruction stored in the memory 1504:
  • the processor 1503 is further configured to perform the following steps:
  • the second update message is sent to the PCRF entity by using the transmitter 1502, where the second update message is used to indicate that the UE has been restored to the online charging.
  • the processor 1503 when the online charging is switched to offline charging, the processor 1503 sends an update message to the PCRF entity by using the transmitter 1502, so that the PCRF entity adjusts the control charging policy of the UE according to the message, and adjusts The subsequent control charging policy is sent to the processor 1403 in the network device 15, and the processor 1403 performs the adjusted control charging policy on the UE.
  • the processor 1503 sends an update message to the PCRF entity by using the transmitter 1502, so that the PCRF entity adjusts the control charging policy of the UE according to the message, and adjusts The subsequent control charging policy is sent to the processor 1403 in the network device 15, and the processor 1403 performs the adjusted control charging policy on the UE.
  • another embodiment of the network device 16 in the embodiment of the present invention includes:
  • the receiver 1601, the transmitter 1602, the processor 1603, and the memory 1604 (wherein the number of the processors 1601 in the network device 16 may be one or more, and one processor 1601 in FIG. 16 is taken as an example).
  • the receiver 1601, the transmitter 1602, the processor 1603, and the memory 1604 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the processor 1603 is configured to perform the following steps by calling an operation instruction stored in the memory 1604:
  • the processor 1603 is further configured to perform the following steps:
  • the receiver 1601 receives the second update message sent by the PCEF.
  • the second update response message is sent to the PCEF entity by using the transmitter 1602.
  • the second update response message carries the first control charging policy, so that the PCEF entity performs the first control charging policy on the UE after receiving the second update response message. .
  • the processor 1603 receives the update message sent by the PCEF entity through the receiver 1601, adjusts the control charging policy of the UE according to the update message, and the processor 1603 passes the adjusted control charging policy to the transmitter 1602.
  • the PCEF entity sends the adjusted control charging policy to the UE by the PCEF entity, thereby reducing the risk of user account overdraft.
  • the charging system 17 includes:
  • PCEF entity 1701 and OCS 1702 are PCEF entity 1701 and OCS 1702;
  • the PCEF entity 1701 is configured to perform online charging on the UE.
  • the OCS 1702 When the OCS 1702 is unavailable, the UE is switched from online charging to offline charging, and an offline timer is started.
  • the offline timer is used to indicate offline charging to the UE. The longest time to deactivate, if the PCEF entity 1701 learns that the OCS 1702 is restored to be available before the offline timer expires, the UE is restored from offline charging to online charging.
  • the PCEF entity is located at the gateway, and may be a GPRS GGSN in actual application.
  • the charging system includes a PCEF entity 1701 and an OCS 1702.
  • the PCEF entity 1701 learns that the OCS 1702 is unavailable
  • the PCEF entity 1701 switches the UE from online charging to offline charging, and starts an offline timer, and the offline timer expires.
  • the PCEF entity 1701 learned that the OCS 1702 was restored to be available, and then restored the UE from offline charging to online charging. Therefore, the solution can restore the online charging function in time when the OCS is available after the user transfers the offline charging, thereby reducing the offline charging.
  • the risk of overdraft of user accounts that may exist in the process, and the solution can avoid deactivating users, thereby improving the user experience.
  • another embodiment of the charging system 18 in the embodiment of the present invention includes:
  • the PCEF entity 1801 is configured to switch the UE from online charging to offline charging, and send a first update message to the PCRF entity 1802.
  • the PCRF entity 1802 is configured to receive the first update message sent by the PCEF entity 1801, adjust the first control charging policy of the UE to the second control charging policy according to the first update message, and then send the first update to the PCEF entity 1801. a response message, where the first update response message carries a second control charging policy;
  • the PCEF entity 1801 is further configured to receive a first update response message sent by the PCRF entity 1802, and perform a second control charging policy on the UE.
  • the charging system includes a PCEF entity 1801 and a PCRF entity 1802.
  • the PCEF entity 1801 sends an update message to the PCRF entity 1802.
  • the PCRF entity 1802 adjusts the UE according to the message.
  • the charging policy is controlled, and the adjusted control charging policy is sent to the PCEF entity 1801, and the PCEF entity performs the adjusted control charging policy on the UE. Thereby further reducing the risk of user account overdraft.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit. It can be electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

本发明实施例公开了一种计费的方法、网络设备及系统,用于在OCS故障恢复时及时恢复在线计费功能,从而降低用户账户透支的风险,并提升了用户体验。本发明实施例方法包括:PCEF实体对UE进行在线计费;在获知在线计费系统OCS不可用时,PCEF实体将UE从在线计费切换到离线计费,并启动离线定时器,若在离线定时器超时之前,PCEF实体获知OCS恢复为可用,则PCEF实体将UE从离线计费恢复到在线计费。本方案能够在用户转离线计费后,当OCS可用时及时恢复在线计费功能,从而降低了在离线计费过程中可能存在的用户账户透支的风险,且本方案能避免去活用户,提升了用户体验。

Description

计费方法、网络设备及计费系统 技术领域
本发明涉及移动通信领域,尤其涉及一种计费的方法、网络设备及计费系统。
背景技术
在第三代合作伙伴计划(3GPP,3rd Generation Partnership Project)描述的电信网络中,计费系统是其重要的功能部件之一,是运营商实现营收的重要保障。
3GPP协议中,定义了在线计费系统不可用时,用户可以转离线计费,从而保证业务可继续使用,提升用户体验,同时避免对运营商造成损失。为避免转离线用户长时间使用业务造成账户透支,一般通过保持定时器来设置转离线的时长。超时后将用户去活,用户再次上线时如果OCS已恢复,则恢复在线计费,否则继续转离线计费。用户转离线计费之后,生成的话单中携带换离线标志,计费系统(BS,Billing System)最终可以针对携带了转离线计费标志的话单进行补充扣费。
现有技术中,在用户转离线后到用户去活过程中,没有在线计费自动恢复机制,会导致在线计费恢复不及时,增加了用户转离线继续使用业务造成账户透支的机率,如果透支部分无法追回,会给运营商造成损失。且在保持定时器超时后会去活用户,用户再次重新激活过程中业务会中断,会影响用户体验。
发明内容
本发明实施例提供了一种计费的方法、网络设备及计费系统,能够降低用户账户透支的风险,并提升用户体验。
第一方面,本发明实施例提供了一种计费的方法,包括:
策略和计费执行功能PCEF实体对用户设备UE进行在线计费;PCEF实体获知在线计费系统OCS不可用;PCEF实体将UE从在线计费切换到离线计费,并启动离线定时器,离线定时器用于指示对UE进行离线计费至去活的最 长时间;若在离线定时器超时之前,PCEF实体获知OCS恢复为可用,则PCEF实体将UE从离线计费恢复到在线计费。
结合第一方面,在第一方面的第一种可能的实现方式中,PCEF实体获知OCS恢复为可用包括:PCEF实体向OCS发送请求消息;PCEF实体接收OCS发送的成功应答消息,其中成功应答消息为对请求消息的响应,用于指示OCS已恢复为可用。
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,PCEF实体将用户设备UE从在线计费切换到离线计费之后还包括:PCEF实体向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;PCEF实体接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;PCEF实体对UE执行第二控制计费策略。
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,第一更新消息包含第一事件触发属性值对Event-Trigger AVP,第一Event-Trigger AVP中包含第一参数值,第一参数值用于表示UE已被切换为离线计费。
结合第一方面的第二种可能的实现方式,在第一方面的第四种可能的实现方式中,PCEF实体将UE从离线计费恢复到在线计费之后还包括:PCEF实体向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复在线计费;PCEF实体接收PCRF实体发送的第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复的UE的控制计费策略;PCEF实体对UE执行第一控制计费策略。
结合第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,第二更新消息包含第二Event-Trigger AVP,第二Event-Trigger AVP中包含第二参数值,第二参数值用于表示UE已被恢复为在线计费。
结合第一方面的第四种可能的实现方式,在第一方面的第六种可能的实现方式中,第二控制计费策略中的服务质量QoS低于第一控制计费策略中的QoS。
结合第一方面的第一种可能的实现方式,在第一方面的第七种可能的实现方式中,PCEF获知在线计费系统OCS不可用包括:PCEF实体获知与OCS之间的链路发生故障;则PCEF实体向OCS发送请求消息包括:PCEF实体在感知与OCS之间的链路故障恢复后向OCS发送请求消息;
或,PCEF实体获知OCS无响应或接收OCS发送的错误码;则PCEF实体向OCS发送请求消息包括:PCEF实体定时向OCS发送请求消息。
结合第一方面,第一方面的第一种可能的实现方式或第一方面的第七种可能的实现中的任一项可能的实现方式,在第一方面的第八种可能的实现方式中,PCEF实体将UE从在线计费切换到离线计费包括:PCEF实体进行话单分割以生成离线话单,离线话单中携带转离线标志,转离线标志用于标识计费系统BS对离线话单进行区别计费处理;PCEF实体将UE从离线计费恢复到在线计费包括:PCEF实体进行话单分割,以使得新生成的离线话单不再携带转离线标志。
结合第一方面的第一种可能的实现方式或第一方面的第七种可能的实现中的任一项可能的实现方式,在第一方面的第九种可能的实现方式中,请求消息为信用控制请求初始化CCR-I消息;成功应答消息为信用控制应答初始化CCA-I消息。
第二方面,本发明实施例提供了一种计费的方法,包括:
策略和计费执行功能PCEF实体将用户设备UE从在线计费切换到离线计费;PCEF实体向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;PCEF实体接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;PCEF实体对UE执行第二控制计费策略。
结合第二方面,在第二方面的第一种可能的实现方式中,第一更新消息包含第一事件触发属性值对Event-Trigger AVP,第一Event-Trigger AVP包含第一参数值,第一参数值用于表示UE已被切换为离线计费。
结合第二方面,在第二方面的第二种可能的实现方式中,在PCEF将UE 从离线计费恢复到在线计费后,PCEF实体向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;PCEF实体接收PCEF实体发送的第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复的UE的控制计费策略;PCEF实体对UE执行第一控制计费策略。
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,第二更新消息包含第二Event-Trigger AVP,第二Event-Trigger AVP包含第二参数值,第二参数值用于表示UE已被恢复为在线计费。
结合第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,第二控制计费策略中的服务质量QoS低于第一控制计费策略中的QoS。
第三方面,本发明实施例提供了一种计费的方法包括:
在策略和计费执行功能PCEF将用户设备UE从在线计费切换离线计费后,策略和计费规则功能PCRF实体接收PCEF发送的第一更新消息,第一更新消息用于指示UE已被切换为离线计费;PCRF实体根据第一更新消息将UE的第一控制计费策略调整为第二控制计费策略;PCRF实体向PCEF实体发送第一更新应答消息,第一更新应答消息中携带第二控制计费策略,以使得PCEF实体在接收第一更新应答消息后,对UE执行第二控制计费策略。
结合第三方面,在第三方面的第一种可能的实现方式中,第一更新消息包含第一事件触发属性值对Event-Trigger AVP,第一Event-Trigger AVP包含第一参数值,第一参数值用于表示UE已切换为离线计费。
结合第三方面,在第三方面的第二种可能的实现方式中,在PCEF将UE从离线计费恢复到在线计费后,PCRF实体接收PCEF发送的第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;PCRF实体根据第二更新消息将UE的第二控制计费策略恢复成第一控制计费策略;PCRF实体向PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,以使得PCEF实体在接收第二更新应答消息后,对UE执行第一控制计费策略。
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现 方式中,第二更新消息包含第二Event-Trigger AVP,第二Event-Trigger AVP包含第二参数值,第二参数值用于表示UE已恢复在线计费。
结合第三方面、第三方面的第一种可能的实现方式至第三方面的第三种可能的实现方式中任一种可能的实现方式,在第三方面的第四种可能的实现方式中,第二控制计费策略中的服务质量QoS低于第一控制计费策略中的QoS。
第四方面,本发明实施例提供了一种网络设备,包括:
处理单元,用于对用户设备UE进行在线计费,并获知在线计费系统OCS不可用,之后,将UE从在线计费切换到离线计费,并启动离线定时器,离线定时器用于指示对UE进行离线计费至去活的最长时间;在离线定时器超时之前,若PCEF实体获知OCS恢复为可用,则将UE从离线计费恢复到在线计费。
结合第四方面,在第四方面的第一种可能的实现方式中,网络设备还包括:发送单元,用于向OCS发送请求消息;接收单元,用于接收OCS发送的成功应答消息,其中成功应答消息为对请求消息的响应,用于指示OCS已恢复为可用。
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,发送单元,还用于在处理单元将UE从在线计费切换到离线计费后,向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;接收单元,还用于接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;处理单元,还用于对UE执行第二控制计费策略。
结合第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,发送单元,还用于在处理单元将UE从离线计费恢复到在线计费后,向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;接收单元,还用于接收PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复后的UE的控制计费策略;处理单元,还用于对UE执行第一 控制计费策略。
结合第四方面的第一种可能的实现方式,在第四方面的第四种可能的实现方式中,处理单元,具体用于获知与OCS之间的链路发生故障时,则发送单元,具体用于在感知与OCS之间的链路故障恢复后向OCS发送请求消息;或,处理单元,具体用于获知OCS无响应或接收OCS发送的错误码时;则发送单元,具体用于定时向OCS发送请求消息。
结合第四方面,第四方面的第一种可能的实现方式或第四方面的第四种可能的实现方式中的任一种可能的实现方式,在第四方面的第五种可能的实现方式中,处理单元在将UE从在线计费切换到离线计费时,具体用于进行话单分割以生成离线话单,离线话单中携带转离线标志,转离线标志用于标识计费系统BS对离线话单进行区别计费处理;处理单元,在将UE从离线计费恢复到在线计费时,具体用于进行话单分割,以使得新生成的离线话单不再携带转离线标志。
第五方面,本发明实施例还提供一种网络设备,包括:
处理单元,用于将用户设备UE从在线计费切换到离线计费;发送单元,用于向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;接收单元,用于接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;处理单元,还用于对UE执行第二控制计费策略。
结合第五方面,在第五方面的第一种可能的实现方式中,网络设备还包括:发送单元,还用于在将UE从离线计费恢复到在线计费后,向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;接收单元,还用于接收PCRF实体发送的第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复后的UE的控制计费策略;处理单元,还用于对UE执行第一控制计费策略。
第六方面,本发明实施例还提供一种网络设备,包括:
接收单元,用于在策略和计费执行功能PCEF将用户设备UE从在线计费 切换离线计费后,接收PCEF发送的第一更新消息,第一更新消息用于指示UE已被切换为离线计费;处理单元,用于根据接收单元接收的第一更新消息将UE的第一控制计费策略调整为第二控制计费策略;发送单元,用于向PCEF实体发送第一更新应答消息,第一更新应答消息中携带第二控制计费策略,以使得PCEF实体在接收第一更新应答消息后,对UE执行第二控制计费策略。
结合第六方面,在第六方面的第一种可能的实现方式中,接收单元,还用于在PCEF将UE从离线计费恢复到在线计费后,接收PCEF发送的第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;处理单元,还用于根据接收单元接收的第二更新消息将UE的第二控制计费策略恢复成第一控制计费策略;发送单元,还用于向PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,以使得PCEF实体在接收第二更新应答消息后,对UE执行第一控制计费策略。
第七方面,本发明实施例还提供一种计费系统,包括:
策略和计费执行功能PCEF实体和在线计费系统OCS;
PCEF实体,用于对用户设备UE进行在线计费,当获知OCS不可用时,将UE从在线计费切换到离线计费,并启动离线定时器,离线定时器用于指示对UE进行离线计费至去活的最长时间;若在离线定时器超时之前,获知OCS恢复为可用,则将UE从离线计费恢复到在线计费。
第八方面,本发明实施例还提供一种计费系统,包括:
策略和计费执行功能PCEF实体和策略和计费规则功能PCRF实体;
PCEF实体,用于将用户设备UE从在线计费切换到离线计费,向PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;
PCRF实体,用于接收PCEF实体发送的第一更新消息,根据第一更新消息将UE的第一控制计费策略调整为第二控制计费策略,向PCEF实体发送第一更新应答消息,第一更新应答消息中携带第二控制计费策略;
PCEF实体,还用于接收PCRF实体发送的第一更新应答消息,对UE执行第二控制计费策略。
从以上技术方案可以看出,本发明实施例的方案具有如下有益效果:
本发明实施例中,在PCEF实体对用户设备UE进行在线计费的过程中,若获知在线计费系统OCS不可用,则将UE从在线计费切换到离线计费,并启动离线定时器,之后,不是采用现有技术中的PCEF实体在等待离线定时器超时后,停止对UE的离线计费并将对UE进行去活处理,而是在定时器超时之前,若获知OCS恢复为可用,则PCEF实体将UE从离线计费恢复到在线计费。本方案能够在用户转离线计费后,当OCS可用时及时恢复在线计费功能,从而降低了在离线计费过程中可能存在的用户账户透支的风险,且本方案能避免去活用户,从而提升了用户体验。
附图说明
图1为本发明实施例中分组交换域的计费系统组网图;
图2为本发明实施例中的一种系统架构图;
图3为本发明实施例中计费方法的一种流程图;
图4为本发明实施例中计费方法的另一种流程图;
图5为本发明实施例中在线计费自动恢复的一种信令交互流程图;
图6为本发明实施例中在线计费自动恢复的另一种信令交互流程图;
图7为本发明实施例中在线计费转离线计费时调整控制计费策略的一种流程图;
图8为本发明实施例中离线计费转在线计费时调整控制计费策略的一种流程图;
图9为本发明实施例中在线计费赚离线计费时调整控制计费策略的信令交互流程图;
图10为本发明实施例中网络设备的一种实施例示意图;
图11为本发明实施例中网络设备的另一种实施例示意图;
图12为本发明实施例中网络设备的另一种实施例示意图;
图13为本发明实施例中网络设备的另一种实施例示意图;
图14为本发明实施例中网络设备的一种硬件结构示意图;
图15为本发明实施例中网络设备的另一种硬件结构示意图;
图16为本发明实施例中网络设备的另一种硬件结构示意图;
图17为本发明实施例中计费系统的一种实施例示意图;
图18为本发明实施例中计费系统的另一种实施例示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块,本文中所出现的模块的划分,仅仅是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块之间的间接耦合或通信连接可以是电性或其他类似的形式,本文中均不作限定。并且,作为分离部件说明的模块或子模块可以是也可以不是物理上的分离,可以是也可以不是物理模块,或者可以分不到多个电路模块中,可以根据实际的需要选择其中的部分或全部模块来实现本发明实施例方案的目的。
在移动通信网络中,分组交换(PS,Packet Switch)域的计费系统的组网图如图1所示:
以通用分组无线服务技术(GPRS,General Packet Radio Service)或通用移动通信系统(UMTS,Universal Mobile Telecommunications System)网络为例, GPRS业务支撑节点(SGSN,Serving GPRS Support Node)为本SGSN服务区域的移动设备(UE,User Equipment)转发输入/输出的IP分组,它跟踪UE的位置,执行安全功能和接入控制;网关GPRS支撑节点(GGSN,Gateway GPRS Support node)提供数据包在GPRS/UMTS网和外部数据网之间的路由和封装,并对用户使用的业务进行控制和计费;在线计费系统(OCS,Online Charging System)是执行实时信用控制的功能实体,它的功能包括:事物处理、批价、在线关联和管理用户账户余额;计费网关(CG,Charging Gateway)负责收集、合并、预处理各SGSN/GGSN产生的话单,并提供和计费中心之间通信的接口;计费系统(BS,Billing System)产生用户可见的话单,根据从CG或OCS获取的计费数据进行处理,产生最终的计费帐单。
以GPRS/UMTS网络为例,GGSN通过策略和计费执行功能(PCEF,Policy and Charging Enforcement Function)与OCS之间的实现在线计费的接口(Gy,Online charging reference point between a PCEF and an OCS)作为客户端使用Diameter协议与OCS进行交互实现在线计费功能。OCS通过配额管理和配额的实时下发,可以根据用户账户状态对用户使用业务进行实时的信用控制。GGSN通过将话单从分组域网关发向计费网关的接口(Ga,Reference point between a PCEF and the CG for CDR transfer)使用GTP’协议将GGSN产生的CDR发送给CG实现离线计费功能。CG在将话单进行预处理后通过将分组域的话单文件从计费网关传输到计费中心的接口(Bp,Reference point for the CDR file transfer from the Packet Switched CG to the BS)发送到BS,BS完成最终的扣费处理。
运营商部署和使用在线计费后,可根据用户的账户状态实时精准地控制用户对业务的使用,提高计费的准确性和及时性。离线计费信息可作为对账使用,确认在线计费的准确无误。此外,当OCS故障或OCS与GGSN之间通信中断后,离线计费信息可作为在线计费系统故障后进行补充扣费的依据。
需要说明的是,本发明实施例及后续的实施例以移动通信系统PS域中的计费场景为例进行说明。
图2为本发明实施例中的一种系统架构图,结合图2,本发明实施例中, PCEF位于网关,可以是GPRS的GGSN,用于提供数据包在GPRS和外部数据网之间的路由和封装,并执行PCRF实体下发的控制和计费策略,完成计费功能;PCEF也可以是EPC的PDN网关(PGW,PDN GateWay),用于提供数据包在UMTS网和外部数据网之间的路由和封装,并执行PCRF实体下发的控制和计费策略,完成计费功能。
本发明实施例中,OCS的功能包括:事物处理、批价、在线关联和管理用户账户余额,与PCEF配合完成在线计费;CG负责收集、合并、预处理各SGSN/GGSN产生的话单,并提供和计费中心之间通信的接口,与PCEF配合完成离线计费;PCRF实体完成动态QoS策略控制和动态的基于流的计费控制功能,同时还提供基于用户签约信息的授权控制功能,向PCEF下发控制和计费策略。
本发明实施例可应用于同时具有在线计费和离线计费功能的其它类似系统,可实现在线计费转离线计费后,在不中断业务的情况下恢复在线计费。
此外,本发明实施例还可以用于同时部署了PCRF实体、在线计费和离线计费功能的其它类似系统,可实现在线计费转离线计费和在线计费恢复时进行控制和计费策略调整。
下面介绍本发明实施例中在在线计费转离线计费后,在不中断业务的情况下恢复在线计费的方法。
结合图3,本发明实施例中的一种计费方法,包括:
301、PCEF实体对UE进行在线计费;
在UE激活过程中,UE向PCEF实体发送业务请求,PCEF实体接收到UE的业务请求后,与OCS交互进行激活鉴权以完成UE的激活。
在UE被激活后,PCEF实体与OCS交互开始对UE进行在线计费,在在线计费过程中,UE会通过PCEF实体向OCS进行配额申请或上报已使用的配额,OCS可以通过配额管理和配额的实时下发来控制UE对应的用户账户状态,从而对用户使用业务进行实时的信用控制。
302、PCEF实体获知在线计费系统OCS不可用;
PCEF实体在在线计费过程中向OCS进行配额申请或上报已使用的配额 时,若由于OCS故障或其他原因导致配额申请不成功或上报配额不成功,则PCEF实体可以获知OCS不可用。
303、PCEF实体将UE从在线计费切换到离线计费,并启动离线定时器;
在PCEF获知OCS不可用时,PCEF实体将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验,但为了避免转离线时用户长时间使用业务造成账户透支,PCEF实体将UE从在线计费切换到离线计费时,同时会设置离线定时器,该离线定时器用来设置UE转离线的时长,即对UE进行离线计费直至去活的最长时间,当该离线定时器超时时,会去活该UE,从而中断用户当前使用的业务。
304、若在离线定时器超时之前,PCEF实体获知OCS恢复为可用,则PCEF实体将UE从离线计费恢复到在线计费。
在离线计费过程中,PCEF实体尝试恢复与OCS的通信,如果在离线定时器超时之前,PCEF实体获知OCS恢复为可用,则表示OCS可以与PCEF实体进行交互实现在线计费功能。因此,PCEF实体将UE从离线计费恢复到在线计费,以使得系统在不中断用户正在使用的业务的情况下恢复到在线计费功能。
本发明实施例中,在PCEF实体对用户设备UE进行在线计费的过程中,若获知在线计费系统OCS不可用,则将UE从在线计费切换到离线计费,并启动离线定时器,之后,不是采用现有技术中的PCEF实体在等待离线定时器超时后,停止对UE的离线计费并将对UE进行去活处理,而是在定时器超时之前,若获知OCS恢复为可用,则PCEF实体将UE从离线计费恢复到在线计费。因此,本方案能够在用户转离线计费后,当OCS可用时及时恢复在线计费功能,从而降低了在离线计费过程中可能存在的用户账户透支的风险,且本方案能避免去活用户,从而提升了用户体验。
在进行离线计费的过程中,PCRF实体可以向PCEF实体订阅在线计费切换到离线计费和在线计费恢复事件,并进行控制计费策略的调整,增加策略控制的灵活性。
请结合图4,本发明实施例中的一种在线计费方法,包括:
401、PCEF实体对UE进行在线计费;
在UE激活过程中,UE向PCEF实体发送业务请求,PCEF实体接收到UE的业务请求后,PCEF实体与OCS交互进行激活鉴权,同时,与PCRF实体交互获取控制计费策略,以完成UE的激活。
将UE在在线计费的过程中使用的控制计费策略称之为第一控制计费策略。
在UE激活后,PCEF实体与OCS交互开始对UE进行在线计费,在在线计费过程中,UE会通过PCEF实体向OCS进行配额申请或上报已使用的配额,OCS可以通过配额管理和配额的实时下发来控制UE对应的用户账户状态,从而对用户使用业务进行实时的信用控制。
402、PCEF实体获知OCS不可用;
PCEF实体在在线计费过程中向OCS进行配额申请或上报已使用的配额时,若由于OCS故障或其他原因导致配额申请不成功或上报配额不成功,则PCEF实体可以获知OCS不可用。
具体的,OCS不可用可分为如下几种场景:
1、PCEF实体与OCS之间的通信链路故障;
PCEF实体向OCS发送消息进行配额申请或上报已使用的配额时,PCEF实体检测到与OCS之间的通信链路故障,则可确定OCS不可用。
需要说明的是,PCEF实体检测到与OCS之间的通信链路故障为现有技术,具体可以通过心跳包的形式进行检测,此处不做详细说明。
2、OCS接收到PCEF实体发送的消息后无响应;
当OCS自身出现故障时,PCEF实体向OCS发送消息进行配额申请或上报已使用的配额时,PCEF实体在预置的时间内接未接收到OCS发送的响应消息时,则可确定OCS不可用。
3、OCS返回错误码。
在OCS过载时,会通过发送错误码Result-Code通知PCEF实体当前无法处理业务,PCEF实体接收到Result-Code时,可以确定OCS不可用。
需要说明的是,OCS不可用的情况除了上述3种外,还可能有其他不可用的情况,具体此处不做限定。
403、PCEF实体将UE从在线计费切换到离线计费,并启动离线定时器;
如果PCEF实体向OCS进行配额申请或上报已使用的配额时,发现OCS不可用,则PCEF实体将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验,但为了避免转离线时用户长时间使用业务造成账户透支,PCEF实体将UE从在线计费切换到离线计费时,同时会设置离线定时器,该离线定时器用来设置UE转离线的时长,即对UE进行离线计费直至去活的最长时间,当该离线定时器超时时,会去活该UE,从而中断用户当前使用的业务。
404、PCEF实体向PCRF实体发送第一更新消息;
在PCEF实体将UE从在线计费切换到离线计费时或在PCEF实体将UE从在线计费切换到离线计费后,PCEF实体与PCRF实体交互获取控制计费策略。此时,PCEF实体向PCRF实体发送第一更新消息,以向PCRF实体上报UE从在线计费切换为离线计费事件,PCRF实体接收到该第一更新消息后,将UE从在线计费时使用的第一控制计费策略调整为第二控制计费策略,以减小用户账户透支的风险。
需要说明的是,PCEF实体向PCRF实体发送的第一更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实施方式,PCEF实体是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,CCR-U消息中携带了事件触发属性值对(Event-Trigger AVP,Event-Trigger Attribute Value Pair),该Event-Trigger AVP用于上报事件给PCRF实体,以使得PCRF实体根据不同的事件生成不同的控制计费策略。通过扩展该Event-Trigger AVP的参数值,通过其中一个参数值表示在线计费切换为离线计费事件,将参数值称之为第一参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第一参数值,生成相对应的控制计费策略,称之为第二控制计费策略。
作为一种具体的实施方式,PCRF实体将UE在在线计费时使用的第一控制计费策略调整为在离线计费时的第二控制计费策略,可以是调整控制计费策 略中的服务质量(QoS,Quality of Service),具体为降低控制计费策略中的QoS,例如:通过控制UE的流服务质量等级、上行速率、下行速率、误码率、丢包率、时延、抖动或峰值速率等QoS参数来实现,以使得第二控制计费策略中的QoS低于第一控制计费策略中的QoS,从而减小用户账户透支的风险。
需要说明的是,PCRF实体将UE的在线计费时使用的第一控制计费策略调整为第二控制计费策略时,除了调整控制计费策略中的QoS以外,还可以通过调整控制计费策略中的其他参数来减小用户账户透支的风险,例如:调整计费费率,具体的调整方法此处不做限定。
405、PCEF实体接收PCRF实体发送的第一更新应答消息;
PCEF实体在向PCRF实体发送第一更新消息后,PCRF实体将UE的第一控制计费策略调整为第二控制计费策略,PCRF实体再将第二控制计费策略通过第一更新应答消息发送给PCEF实体,PCEF实体接收到PCRF实体发送的第一更新应答消息。
需要说明的是,PCRF实体向PCEF实体发送的第一更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer Update)消息,也可以是其他消息,具体此处不做限定。
406、PCEF实体对UE执行第二控制计费策略;
PCEF实体接收PCRF实体发送的第一更新应答消息之后,对UE执行第二控制计费策略。
若PCRF实体调整控制计费策略的方式是降低UE的QoS,则PCEF实体对UE执行第二控制计费策略后,该UE在离线计费过程中的QoS会降低,从而减小用户账户透支的风险。
407、PCEF实体向OCS发送请求消息;
在PCEF实体将UE从在线计费切换到离线计费后,在离线定时器超时之前,PCEF实体向OCS发送请求消息以重建与OCS之间的会话。
作为一种具体的实现方式,PCEF实体向OCS发送请求消息的方式有如下几种:
1、PCEF实体在感知OCS可用时,立即向OCS发送请求消息;
当PCEF实体与OCS之间的链路故障时,PCEF实体确定OCS不可用,在此种情况下,PCEF实体若感知到与OCS之间的链路故障恢复后,立即向OCS发送请求消息以重建与OCS之间的会话。
PCEF实体感知到与OCS之间的链路故障恢复为现有技术,具体可以通过发送心跳包进行检测,此处不做详细的说明。
2、PCEF实体定时向OCS发送请求消息。
在OCS无响应或PCEF实体接收到OCS返回的错误码(Result-Code)时,PCEF实体确定OCS不可用,在此种情况下,PCEF实体定时向OCS发送请求消息以重建与OCS之间的会话。
需要说明的是,OCS不可用的情况除了上述3种外,还可能有其他不可用的情况,对其他不可用的情况,也可以参照上述的方式进行处理。
PCEF实体检测到OCS之间的链路故障恢复为现有技术,此处不再详细说明。
作为一种具体的实现方式,PCEF实体向OCS发送的请求消息可以为信用控制请求初始化(CCR-I,Credit-Control-Request Intial)消息。
需要说明的是,步骤405和步骤402、步骤403以及步骤404之间没有明确的时间先后顺序关系,可以是同步进行。
408、若在离线定时器超时之前,PCEF实体接收到OCS发送的成功应答消息,则PCEF实体将UE从离线计费恢复到在线计费;
在PCEF实体向OCS发送请求消息以重建会话后,如果在离线定时器超时之前,PCEF实体接收到OCS发送的成功应答消息,该成功应答消息为OCS对PCEF实体发送的请求消息的响应,说明OCS已经恢复为可用,可以与PCEF实体进行交互实现在线计费功能。
因此,PCEF实体在接收到OCS的成功应答消息之后,将UE从离线计费恢复到在线计费,以使得系统在不中断用户正在使用的业务的情况下恢复到在线计费功能。
作为一种具体的实现方式,PCEF实体向OCS发送的成功应答消息可以为信用控制应答初始化(CCA-I,Credit-Control-Answer Intial)消息。
409、PCEF实体向PCRF实体发送第二更新消息;
在PCEF实体将UE从离线计费恢复到在线计费后,PCEF实体与PCRF实体交互获取控制计费策略以恢复UE的控制计费策略。
PCEF实体向PCRF实体发送第二更新消息,以向PCRF实体上报UE恢复在线计费事件,PCRF实体接收到该第二更新消息后,将UE从离线计费时使用的第二控制计费策略恢复成在线计费时使用的第一控制计费策略。
需要说明的是,PCEF实体向PCRF实体发送的第二更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实现方式,PCEF实体是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,通过扩展CCR-U消息中的Event-Trigger AVP的参数值,通过扩展的参数值表示在线计费恢复事件,将此参数值称之为第二参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第二参数值,将UE的控制计费策略恢复至第一控制计费策略。
若在线计费切换至离线计费时,PCRF实体调整控制计费策略的方式是降低UE的QoS,则PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,即为恢复该UE的QoS。
410、PCEF实体接收PCRF实体发送第二更新应答消息;
PCEF实体在向PCRF实体发送第二更新消息后,PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,PCRF实体再将第一控制计费策略通过第二更新应答消息发送给PCEF实体,PCEF实体接收到PCRF实体发送的第二更新应答消息。
需要说明的是,PCRF实体向PCEF实体发送的第二更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer)消息,也可以是其他消息,具体此处不做限定。
411、PCEF实体对UE执行第一控制计费策略。
PCEF实体接收PCRF实体发送的第二更新应答消息之后,对UE执行第一控制计费策略,以恢复UE的在线计费时使用的控制计费策略。
若在在线计费切换到离线计费时,PCRF实体调整UE的控制计费策略的具体方式是降低控制计费策略中的QoS,则PCEF实体对UE执行第一控制计费策略后,UE的QoS恢复。
在本发明实施例中,PCEF实体在在线计费切换到离线计费和在线计费恢复时,发送携带了在线计费转离线计费事件和在线计费恢复事件的更新消息给PCRF实体,PCRF实体根据该消息调整UE的控制计费策略,从而进一步降低用户账户透支的风险。
其次,本发明实施例中,不需要去活用户,转离线的用户在不去活(不下线)的前提下,只通过PCEF实体和OCS之间的信令交互就可以恢复在线计费,从而能够减少信令开销。
进一步,在具体的实施中,当将UE从在线计费切换到离线计费,以及恢复在线计费时,需要进行话单分割,在离线计费期间生成的话单携带转离线标识,以作为补充扣费的依据。
在PCEF实体将UE从在线计费切换到离线计费过程中,PCEF实体进行话单分割,将此次话单分割认为是第一次话单分割。在第一次话单分割后,在后续离线计费过程中生成的话单都携带转离线的标志,该转离线标志用于标识计费系统BS需要对该离线话单进行区别处理,即进行补充扣费。
在PCEF实体接收到OCS发送的成功应答消息之后,PCEF实体将UE从离线计费恢复至在线计费,在此过程中,PCEF实体进行话单分割,将此次话单分割认为是第二次话单分割。在第二次话单分割后,在后续生成的离线话单不再携带转离线标志,表示后续进行在线计费,后续产生的离线话单只作为对账使用,不作为扣费的依据。
在本发明实施例中,在在线计费转离线计费和恢复在线计费时,通过话单分割,使得在离线计费期间生成的话单携带转离线标志,从而实现对离线计费过程中的话单进行补充扣费,提升了方案的可实现性。
下面结合具体的信令交互流程对本发明实施例中的计费方法进行描述,按照OCS不可用的具体情况,可以分为如下几种实现方式:
一、PCEF实体和OCS之间的通信链路故障:
501、UE激活时,UE向PCEF实体发送分组数据协议(PDP,Packet DataProtocol)创建请求。
502、PCEF实体在接收到UE的PDP创建请求后,向PCRF实体发送CCR-I消息以获取UE的控制计费策略。
503、PCRF实体在接收到PCEF实体发送的CCR-I消息后,向PCEF实体回复CCA-I消息,将UE的控制和计费策略发送给PCEF实体。
504、PCEF实体在接收到UE的PDP创建请求后,向OCS发送CCR-I消息以进行激活鉴权。
505、OCS在接收到PCEF实体发送的CCR-I消息后,向PCEF实体回复CCA-I消息以通知PCEF实体完成对UE的激活鉴权。
506、PCEF实体在从PCRF实体获取到UE的控制计费策略,从OCS完成激活鉴权后,向UE发送PDP创建成功应答消息,以完成UE的激活。
507、UE被成功激活后,PCEF实体对UE使用的业务进行在线计费,在此过程中若PCEF实体与OCS之间的通信链路发生故障。
508、在在线计费过程中,PCEF实体实时向OCS发送CCR-U消息进行配额申请或上报已使用的配额。当PCEF实体与OCS之间的通信链路发生故障时,CCR-U消息将发送失败,则PCEF实体将UE进行转离线处理,UE从在线计费切换到离线计费。
509、PCEF实体将UE从在线计费切换到离线计费时,PCEF实体启动离线定时器Holding-Timer,同时,PCEF实体进行话单分割,告知CG该UE进入离线计费。
该Holding-Timer用来设置UE转离线的时长,即对该UE进行离线计费至去活的最长时间,当该离线定时器超时时,会去活用户,从而中断用户当前使用的业务。
510、在PCEF实体将UE从在线计费切换到离线计费后,为了降低用户在离线过程中的账户透支风险,PCEF实体向PCRF实体发送CCR-U消息,该CCR-U消息中通过扩展Event-Trigger AVP来携带该UE从在线计费转离线计费事件。
511、PCRF实体在接收到PCEF实体发送的CCR-U消息后,根据该消息中的Event-Trigger AVP携带的UE从在线计费转离线计费事件,调整UE的控制计费策略,具体可以为降低该UE的QoS。PCRF实体将调整后的控制计费策略通过CCA-U消息发送给PCEF实体。
512、PCEF实体在接收到该CCA-U消息后,对UE执行调整后的的控制计费策略。在用户转离线期间,PCEF实体生成的离线话单都携带转离线标志,PCEF实体将该带有离线标志的话单发送给CG以完成离线计费。该转离线标志用于标识计费系统BS需要对该离线话单进行区别计费处理,即进行补充扣费。
513、PCEF实体与OCS之间的通讯链路故障恢复。
514、PCEF实体感知到OCS之间的通讯链路故障恢复后,向OCS发送CCR-I消息重建会话,CCR-I消息中携带新的Session-id。
515、OCS在接收到PCEF实体发送的CCR-I消息后,OCS认为是新用户激活,向PCEF实体发送CCA-I消息以响应,与PCEF实体之间成功重建会话。
需要说明的是,PCEF实体发送的CCR-I消息中的charging-id携带与离线计费期间相同的charging-id,以保证在线计费和离线计费可以成功对账。CCR-I消息中携带UE真实的激活时间(start-time),即该UE的在步骤506中成功激活时间,以用于后续进行数据统计。
516、PCEF实体与OCS之间成功创建会话后,PCEF实体从离线计费恢复成在线计费,在此过程中,PCEF实体进行话单分割,告知CG该UE恢复为在线计费,同时关闭离线定时器Holding-Timer。
517、在PCEF实体将UE从离线计费恢复至在线计费后,需要重新恢复该UE的控制计费策略,因此,PCEF实体向PCRF实体发送CCR-U消息以告知PCRF实体该UE已恢复为在线计费,具体是在该CCR-U消息中通过扩展Event-Trigger AVP携带该UE恢复在线计费事件。
518、PCRF实体在接收到PCEF实体发送的CCR-U消息后,根据该消息中的Event-Trigger AVP携带的UE恢复在线计费事件,将UE的控制计费策略恢复成调整前的控制计费策略。PCRF实体将恢复的控制计费策略通过CCA-U 消息发送给PCEF实体。
519、PCEF实体接收到PCRF实体发送的CCA-U消息后,根据该CCA-U消息恢复该UE的控制计费策略,告知CG后续在在线计费过程中生成的离线话单不再携带转离线标志,即在在线计费过程中产生的离线话单只作为对账使用,不作为扣费的依据。
二、OCS无响应或OCS返回错误码:
601、UE激活时,UE向PCEF实体发送分组数据协议(PDP,Packet Data Protocol)创建请求;
602、PCEF实体在接收到UE的PDP创建请求后,向PCRF实体发送CCR-I消息以获取UE的控制计费策略。
603、PCRF实体在接收到PCEF实体发送的CCR-I消息后,向PCEF实体回复CCA-I消息,将UE的控制和计费策略发送给PCEF实体。
604、PCEF实体在接收到UE的PDP创建请求后,向OCS发送CCR-I消息以进行激活鉴权。
605、OCS在接收到PCEF实体发送的CCR-I消息后,向PCEF实体回复CCA-I消息以通知PCEF实体完成对UE的激活鉴权。
606、PCEF实体在从PCRF实体获取到UE的控制计费策略,从OCS完成激活鉴权后,向UE发送PDP创建成功应答消息,以完成UE的激活。
607、在在线计费过程中,PCEF实体实时向OCS发送CCR-U消息进行配额申请或上报已使用的配额。
608、PCEF实体设置的TxTimer超时,即在预置的时间内,没有接收到OCS的响应,或OCS返回错误码。其中导致OCS无响应的原因可能为OCS故障,OCS返回错误码的原因可能为OCS过载。
609、PCEF实体将UE从在线计费切换到离线计费时,PCEF实体启动离线定时器Holding-Timer,同时,PCEF实体进行话单分割,告知CG该UE进入离线计费。
该Holding-Timer用来设置UE转离线的时长,即对该UE进行离线计费至去活的最长时间,当该离线定时器超时时,会去活用户,从而中断用户当前 使用的业务。
610、PCEF实体启动定时器Recover-Timer,当Recover-Timer超时时,向OCS发送消息重建会话,以在Holding-Timer内进行定时尝试恢复在线计费。
611、在PCEF实体将UE从在线计费切换到离线计费后,为了降低用户在离线过程中的账户透支风险,PCEF实体向PCRF实体发送CCR-U消息,该CCR-U消息中通过扩展Event-Trigger AVP来携带该UE从在线计费转离线计费事件。
612、PCRF实体在接收到PCEF实体发送的CCR-U消息后,根据该消息中的Event-Trigger AVP携带的UE从在线计费转离线计费事件,调整UE的控制计费策略,具体可以为降低该UE的QoS。PCRF实体将调整后的控制计费策略通过CCA-U消息发送给PCEF实体。
613、PCEF实体在接收到该CCA-U消息后,对UE执行调整后的的控制计费策略。在用户转离线期间,PCEF实体生成的离线话单都携带转离线标志,PCEF实体将该带有离线标志的话单发送给CG以完成离线计费。该转离线标志用于标识计费系统BS需要对该离线话单进行区别计费处理,即进行补充扣费。
614、Recover-Timer超时,PCEF实体向OCS发送CCR-I消息以重建会话,CCR-I消息中携带新的Session-id。
615、若OCS故障恢复,或OCS过载恢复时,OCS在接收到PCEF实体发送的CCR-I消息后认为是新用户激活,向PCEF实体发送CCA-I消息以响应,与PCEF实体之间成功重建会话。
需要说明的是,PCEF实体发送的CCR-I消息中的charging-id携带与离线计费期间相同的charging-id,以保证在线计费和离线计费可以成功对账。CCR-I消息中携带UE真实的激活时间(start-time),即该UE的在步骤506中成功激活时间,以用于后续进行数据统计。
若OCS故障未恢复,或OCS过载未恢复时,PCEF实体向OCS发送的CCR-I消息后,在预置的时间内仍将无法收到OCS的发送的CCA-I消息,或将会接收到OCS发送的错误码,此时,PCEF实体重启Recover-Timer定时器, 重新执行步骤610至步骤615的操作。
616、PCEF实体与OCS之间成功创建会话后,PCEF实体从离线计费恢复成在线计费,PCEF实体进行话单分割,告知CG该UE恢复为在线计费,同时关闭离线定时器Holding-Timer。
617、在PCEF实体将UE从离线计费恢复至在线计费后,需要重新恢复该UE的控制计费策略,因此,PCEF实体向PCRF实体发送CCR-U消息以告知PCRF实体该UE已恢复为在线计费,具体是在该CCR-U消息中通过扩展Event-Trigger AVP携带该UE恢复在线计费事件。
618、PCRF实体在接收到PCEF实体发送的CCR-U消息后,根据该消息中的Event-Trigger AVP携带的UE恢复在线计费事件,将UE的控制计费策略恢复成调整前的控制计费策略。PCRF实体将恢复的控制计费策略通过CCA-U消息发送给PCEF实体。
619、PCEF实体接收到PCRF实体发送的CCA-U消息后,根据该CCA-U消息恢复该UE的控制计费策略,告知CG后续在在线计费过程中生成的离线话单不再携带转离线标志,即在在线计费过程中产生的离线话单只作为对账使用,不作为扣费的依据。
下面介绍本发明实施例中PCRF实体向PCEF实体订阅在线计费转离线计费事件,并根据事件调整UE的控制计费策略的方法。
结合图7,本发明实施例中的一种计费方法,包括:
701、PCEF实体将UE从在线计费切换到离线计费;
在3GPP协议中,定义了OCS不可用时,在对UE进行在线计费的过程中,如果PCEF实体向OCS进行配额申请或上报已使用的配额时,发现OCS不可用,则PCEF实体将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验。
702、PCEF实体向PCRF实体发送第一更新消息;
在PCEF实体将UE从在线计费切换到离线计费时或在PCEF实体将UE从在线计费切换到离线计费后,PCEF实体与PCRF实体交互获取控制计费策略。此时,PCEF实体向PCRF实体发送第一更新消息,以向PCRF实体上报 UE从在线计费切换为离线计费事件,PCRF实体接收到该第一更新消息后,将UE从在线计费时使用的第一控制计费策略调整为第二控制计费策略,以减小用户账户透支的风险。
需要说明的是,PCEF实体向PCRF实体发送的第一更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
703、PCEF实体接收PCRF实体发送的第一更新应答消息;
PCEF实体在向PCRF实体发送第一更新消息后,PCRF实体将UE的第一控制计费策略调整为第二控制计费策略,PCRF实体将第二控制计费策略通过第一更新应答消息发送给PCEF实体,PCEF实体接收到PCRF实体发送的第一更新应答消息。
需要说明的是,PCRF实体向PCEF实体发送的第一更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer Update)消息,也可以是其他消息,具体此处不做限定。
704、PCEF实体对UE执行第二控制计费策略。
PCEF实体接收PCRF实体发送的第一更新应答消息之后,对UE执行第二控制计费策略,以降低用户账户透支的几率。
在本发明实施例中,PCEF实体在在线计费切换到离线计费时,向PCRF实体发送更新消息,PCRF实体根据该更新消息调整UE的控制计费策略,从而可以降低用户账户透支的风险。
作为一种具体的实施方式,PCEF实体是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,CCR-U消息中携带了事件触发属性值对(Event-Trigger AVP,Event-Trigger Attribute Value Pair),该Event-Trigger AVP用于上报事件给PCRF实体,以使得PCRF实体根据不同的事件生成不同的控制计费策略。通过扩展该Event-Trigger AVP的参数值,通过其中一个参数值表示在线计费切换为离线计费事件,将参数值称之为第一参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第一参数值,生成相对应的控制计费策略,称之为第二控制计费策略。
作为一种具体的实施方式,PCRF实体将UE在在线计费时使用的第一控制计费策略调整为在离线计费时的第二控制计费策略,可以是调整控制计费策略中的QoS,具体为降低控制计费策略中的QoS,例如:通过控制UE的流服务质量等级、上行速率、下行速率、误码率、丢包率、时延、抖动或峰值速率等QoS参数来实现,以使得第二控制计费策略中的QoS低于第一控制计费策略中的QoS,从而减小用户账户透支的风险。
需要说明的是,PCRF实体将UE的在线计费时使用的第一控制计费策略调整为第二控制计费策略时,除了调整控制计费策略中的QoS以外,还可以通过调整控制计费策略中的其他参数来减小用户账户透支的风险,例如:调整计费费率,具体的调整方法此处不做限定。
进一步,作为另一个实施例,在离线计费过程中,若PCEF实体检测到OCS变为可用后,与OCS重建会话,PCEF实体将UE从离线计费恢复到在线计费,PCEF实体会重新从PCRF实体获取控制计费策略以恢复UE的控制和计费策略。具体过程如下:
在PCEF实体将UE从离线计费恢复到在线计费后,PCEF实体与PCRF实体交互获取控制计费策略以恢复UE的控制计费策略。
PCEF实体向PCRF实体发送第二更新消息,以向PCRF实体上报UE恢复在线计费事件,PCRF实体接收到该第二更新消息后,将UE从离线计费时使用的第二控制计费策略恢复成在线计费时使用的第一控制计费策略。PCRF实体再将第一控制计费策略通过第二更新应答消息发送给PCEF实体,PCEF实体接收到PCRF实体发送的第二更新应答消息。PCEF实体接收PCRF实体发送的第二更新应答消息之后,对UE执行第一控制计费策略,以恢复UE的在线计费时使用的控制计费策略。
需要说明的是,PCEF实体向PCRF实体发送的第二更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request)消息,也可以是其他消息,具体此处不做限定。
需要说明的是,PCRF实体向PCEF实体发送的第二更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer)消息,也可以是其他消 息,具体此处不做限定。
作为一种具体的实现方式,PCEF实体是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,通过扩展CCR-U消息中的Event-Trigger AVP的参数值,通过扩展的参数值表示在线计费恢复事件,将此参数值称之为第二参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第二参数值,将UE的控制计费策略恢复至第一控制计费策略。
若在线计费切换至离线计费时,PCRF实体调整控制计费策略的方式是降低UE的QoS,则PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,即为恢复该UE的QoS。
上面是从PCEF实体侧介绍的在计费过程中调整计费策略的方法,下面从PCRF侧介绍本发明实施例中PCRF实体向PCEF实体订阅在线计费转离线计费事件,并根据事件调整UE的控制计费策略的方法。
结合图8,本发明实施例中的一种计费方法,包括:
801、PCEF实体将UE从在线计费切换离线计费后,PCRF实体接收PCEF实体发送的第一更新消息;
在3GPP协议中,定义了OCS不可用时,在对UE进行在线计费的过程中,如果PCEF实体向OCS进行配额申请或上报已使用的配额时,发现OCS不可用,则PCEF实体将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验。
在PCEF实体将UE从在线计费切换到离线计费时或在PCEF实体将UE从在线计费切换到离线计费后,PCEF实体与PCRF实体交互获取控制计费策略。此时,PCEF实体向PCRF实体发送第一更新消息,以上报UE从在线计费切换为离线计费事件,PCRF实体接收到PCEF发送的第一更新消息。
需要说明的是PCRF实体接收到的第一更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
802、PCRF实体根据第一更新消息将UE的第一控制计费策略调整为第二控制计费策略;
PCRF实体接收到PCEF实体发送的第一更新消息后,将UE从在线计费时使用的第一控制计费策略调整为第二控制计费策略,以减小用户账户透支的风险。
803、PCRF实体向PCEF实体发送第一更新应答消息。
PCRF实体将UE的第一控制计费策略调整为第二控制计费策略之后,将第二控制计费策略通过第一更新应答消息发送给PCEF实体,以使得PCEF实体在接收第一更新应答消息后,对UE执行第二控制计费策略。
需要说明的是,PCRF实体向PCEF实体发送的第一更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer Update)消息,也可以是其他消息,具体此处不做限定。
在本发明实施例中,PCRF实体接收PCEF实体发送的更新消息,PCRF实体根据该更新消息调整UE的控制计费策略,再将调整后的控制计费策略发送给PCEF实体,由PCEF实体对UE执行调整后的控制计费策略,从而可以降低用户账户透支的风险。
作为一种具体的实施方式,PCRF实体是通过与PCEF实体通信的Gx接口接收的PCEF实体发送CCR-U消息,CCR-U消息中携带了事件触发属性值对(Event-Trigger AVP,Event-Trigger Attribute Value Pair),该Event-Trigger AVP用于上报事件给PCRF实体,以使得PCRF实体根据不同的事件生成不同的控制计费策略。通过扩展该Event-Trigger AVP的参数值,通过其中一个参数值表示在线计费切换为离线计费事件,将参数值称之为第一参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第一参数值,生成相对应的控制计费策略,称之为第二控制计费策略。
作为一种具体的实施方式,PCRF实体将UE在在线计费时使用的第一控制计费策略调整为在离线计费时的第二控制计费策略,可以是调整控制计费策略中的QoS,具体为降低控制计费策略中的QoS,例如:通过控制UE的流服务质量等级、上行速率、下行速率、误码率、丢包率、时延、抖动或峰值速率等QoS参数来实现,以使得第二控制计费策略中的QoS低于第一控制计费策略中的QoS,从而减小用户账户透支的风险。
需要说明的是,PCRF实体将UE的在线计费时使用的第一控制计费策略调整为第二控制计费策略时,除了调整控制计费策略中的QoS以外,还可以通过调整控制计费策略中的其他参数来减小用户账户透支的风险,例如:调整计费费率,具体的调整方法此处不做限定。
进一步,作为另一个实施例,在离线计费过程中,若PCEF实体将UE从离线计费恢复到在线计费,PCEF实体会重新从PCRF实体获取控制计费策略以恢复UE的控制和计费策略。具体过程如下:
PCRF实体接收PCEF实体发送的第二更新消息,该消息的作用是向PCRF实体上报UE恢复在线计费事件,PCRF实体接收到该第二更新消息后,将UE从离线计费时使用的第二控制计费策略恢复成在线计费时使用的第一控制计费策略。PCRF实体再将第一控制计费策略通过第二更新应答消息发送给PCEF实体,PCEF实体接收到PCRF实体发送的第二更新应答消息,以使得PCEF实体对UE执行第一控制计费策略,以恢复UE的在线计费时使用的控制计费策略。
需要说明的是,PCRF实体从PCEF实体接收的第二更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request)消息,也可以是其他消息,具体此处不做限定。
需要说明的是,PCRF实体向PCEF实体发送的第二更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实现方式,PCRF实体是通过与PCEF实体通信的Gx接口接收PCEF实体发送CCR-U消息,通过扩展CCR-U消息中的Event-TriggerAVP的参数值,通过扩展的参数值表示在线计费恢复事件,将此参数值称之为第二参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第二参数值,将UE的控制计费策略恢复至第一控制计费策略。
若在线计费切换至离线计费时,PCRF实体调整控制计费策略的方式是降低UE的QoS,则PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,即为恢复该UE的QoS。
下面对本发明实施例中在离线计费过程中调整计费策略时各网元之间的信令交互进行详细的说明。
步骤901至步骤906为UE激活的过程,与图5所示的实施例中的步骤501至步骤506相同,此处不再赘述。
907、UE被成功激活后,PCEF实体对UE使用的业务进行在线计费,在此过程中若PCEF实体与OCS之间的通信链路发生故障。
908、在在线计费过程中,PCEF实体实时向OCS发送CCR-U消息进行配额申请或上报已使用的配额。当PCEF实体与OCS之间的通信链路发生故障时,CCR-U消息将发送失败,则PCEF实体将UE进行转离线处理,UE从在线计费切换到离线计费。
909、PCEF实体将UE从在线计费切换到离线计费时,PCEF实体进行话单分割,告知CG该UE进入离线计费。
910、PCEF实体启动离线定时器Holding-Timer,该Holding-Timer用来设置UE转离线的时长,即对该UE进行离线计费至去活的最长时间,当该离线定时器超时时,会去活用户,从而中断用户当前使用的业务。
911、在PCEF实体将UE从在线计费切换到离线计费后,为了降低用户在离线过程中的账户透支风险,PCEF实体向PCRF实体发送CCR-U消息,该CCR-U消息中通过扩展Event-Trigger AVP来携带该UE从在线计费转离线计费事件。
912、PCRF实体在接收到PCEF实体发送的CCR-U消息后,根据该消息中的Event-Trigger AVP携带的UE从在线计费转离线计费事件,调整UE的控制计费策略,具体可以为降低该UE的QoS。PCRF实体将调整后的控制计费策略通过CCA-U消息发送给PCEF实体。
913、PCEF实体在接收到该CCA-U消息后,对UE执行调整后的的控制计费策略。在用户转离线期间,PCEF实体生成的离线话单都携带转离线标志,PCEF实体将该带有离线标志的话单发送给CG以完成离线计费。该转离线标志用于标识计费系统BS需要对该离线话单进行区别计费处理,即进行补充扣费。
914、Holding-Timer计时器超时,PCEF实体向UE发起用户去活消息(PDP Create response)。
915、Holding-Timer计时器超时,PCEF实体向PCRF实体发送信用控制请求终止(CCR-T,Credit-Control-Request Terminate)消息给PCRF实体以终止和PCRF实体的信息交互。
916、UE接收到PDP Create response消息后,向PCEF实体发送PDP Create request消息。
917、PCRF实体在接收到PCEF实体发送的CCR-T消息后,回复信用控制应答终止CCA-T(CCA-T,Credit-Control-Answer Terminate)消息给PCEF实体以响应PCEF实体。
918、PCEF实体生成去活话单给CG,该去活话单中仍然携带转离线标志。
以上是本发明实施例中对计费方法的描述,下面从模块化功能实体角度对本发明实施例中的网络设备进行描述。
结合图10,本发明实施例中提供的一种网络设备10,包括:
处理单元1001,用于对所述UE进行在线计费,并获知当在线计费系统OCS不可用,之后,将UE从在线计费切换到离线计费,并启动离线定时器,离线定时器用于指示对UE进行离线计费至去活的最长时间;在离线定时器超时之前,若PCEF实体获知OCS恢复为可用,则将UE从离线计费恢复到在线计费。
下面以一个具体的应用场景对本发明网络设备中各单元模块之间的交互进行描述:
在UE激活过程中,UE向网络设备10发送业务请求,网络设备10在接收到UE的业务请求后,网络设备10中的处理单元1001与OCS交互进行激活鉴权以完成UE的激活。
在UE被激活后,处理单元1001与OCS交互开始对UE进行在线计费,在在线计费过程中,UE会通过处理单元1001向OCS进行配额申请或上报已使用的配额,OCS可以通过配额管理和配额的实时下发来控制UE对应的用户账户状态,从而对用户使用业务进行实时的信用控制。
处理单元1001在在线计费过程中向OCS进行配额申请或上报已使用的配额时,若由于OCS故障或其他原因导致配额申请不成功或上报配额不成功,则处理单元1001可以获知OCS不可用。
在处理单元1001获知OCS不可用时,处理单元1001将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验,但为了避免转离线时用户长时间使用业务造成账户透支,处理单元1001将UE从在线计费切换到离线计费时,同时会设置离线定时器,该离线定时器用来设置UE转离线的时长,即对UE进行离线计费直至去活的最长时间,当该离线定时器超时时,会去活该UE,从而中断用户当前使用的业务。
在离线计费过程中,处理单元1001尝试恢复与OCS的通信,如果在离线定时器超时之前,处理单元1001获知OCS恢复为可用,则表示OCS可以与网络设备10进行交互实现在线计费功能。因此,处理单元1001将UE从离线计费恢复到在线计费,以使得系统在不中断用户正在使用的业务的情况下恢复到在线计费功能。
因此,网络设备10在接收到OCS的成功应答消息之后,网络设备10的处理单元1001将UE从离线计费恢复到在线计费,以使得系统在不中断用户正在使用的业务的情况下恢复到在线计费功能。
本发明实施例中,在处理单元1001对用户设备UE进行在线计费的过程中,若获知在线计费系统OCS不可用,则将UE从在线计费切换到离线计费,并启动离线定时器,之后,不是采用现有技术中的处理单元1001在等待离线定时器超时后,停止对UE的离线计费并将对UE进行去活处理,而是在定时器超时之前,若处理单元1001获知OCS恢复为可用,则处理单元1001将UE从离线计费恢复到在线计费。因此,本方案能够在用户转离线计费后,当OCS可用时及时恢复在线计费功能,从而降低了在离线计费过程中可能存在的用户账户透支的风险,且本方案能避免去活用户,从而提升了用户体验。
结合图11,本发明实施例中提供的一种网络设备11,包括:
处理单元1101,用于对所述UE进行在线计费,并获知当在线计费系统OCS不可用,之后,将UE从在线计费切换到离线计费,并启动离线定时器, 离线定时器用于指示对UE进行离线计费至去活的最长时间;在离线定时器超时之前,若PCEF实体获知OCS恢复为可用,则将UE从离线计费恢复到在线计费。
发送单元1102,用于向OCS发送请求消息;
接收单元1103,用于接收OCS发送的成功应答消息,其中成功应答消息为对请求消息的响应,用于指示OCS已恢复为可用。
发送单元1102,还用于在处理单元1101将UE从在线计费切换到离线计费后,向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;
接收单元1103,还用于接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;
处理单元1101,还用于对UE执行第二控制计费策略。
发送单元1102,还用于在处理单元将UE从离线计费恢复到在线计费后,向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;
接收单元1103,还用于接收PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复后的UE的控制计费策略;
处理单元1101,具体用于获知与OCS之间的链路发生故障,则发送单元1102,具体用于在感知与OCS之间的链路故障恢复后向OCS发送请求消息;或,处理单元1101,具体用于获知OCS无响应或接收OCS发送的错误码;则发送单元1102,具体用于定时向OCS发送请求消息。
下面以一个具体的应用场景对本发明网络设备11中各单元模块之间的交互进行描述:
在UE激活过程中,UE向网络设备11发送业务请求,接收单元1103在接收到UE的业务请求后,处理单元1101与OCS交互进行激活鉴权,同时,与PCRF实体交互获取控制计费策略,以完成UE的激活。
将UE在在线计费的过程中使用的控制计费策略称之为第一控制计费策略。
在UE激活后,网络设备11中的处理单元1101与OCS交互开始对UE进行在线计费,在在线计费过程中,UE会通过网络设备11向OCS进行配额申请或上报已使用的配额,OCS可以通过配额管理和配额的实时下发来控制UE对应的用户账户状态,从而对用户使用业务进行实时的信用控制。
处理单元1101在在线计费过程中向OCS进行配额申请或上报已使用的配额时,若由于OCS故障或其他原因导致配额申请不成功或上报配额不成功,则处理单元1101可以获知OCS不可用。
具体的,OCS不可用可分为如下几种场景:
1、网络设备11与OCS之间的通信链路故障;
发送单元1102向OCS发送消息进行配额申请或上报已使用的配额时,处理单元1101检测到与OCS之间的通信链路故障,则可确定OCS不可用。
需要说明的是,处理单元1101检测到与OCS之间的通信链路故障为现有技术,具体可以通过心跳包的形式进行检测,此处不做详细说明。
2、OCS接收到PCEF实体发送的消息后无响应;
当OCS自身出现故障时,发送单元1102向OCS发送消息进行配额申请或上报已使用的配额时,接收单元1103在预置的时间内接未接收到OCS发送的响应消息时,处理单元1101则可确定OCS不可用。
3、OCS返回错误码。
在OCS过载时,会通过发送错误码Result-Code通知网络设备11当前无法处理业务,接收单元1103接收到Result-Code时,处理单元1101可以确定OCS不可用。
需要说明的是,OCS不可用的情况除了上述3种外,还可能有其他不可用的情况,具体此处不做限定。
如果处理单元1101向OCS进行配额申请或上报已使用的配额时,发现OCS不可用,则处理单元1101将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验,但为了避免转离线时用户长时间使用业务造成账户透支,处理单元1101将UE从在线计费切换到离线计费时,同时会设 置离线定时器,该离线定时器用来设置UE转离线的时长,即对UE进行离线计费直至去活的最长时间,当该离线定时器超时时,会去活该UE,从而中断用户当前使用的业务。
在处理单元1101将UE从在线计费切换到离线计费时或在处理单元1101将UE从在线计费切换到离线计费后,处理单元1101与PCRF实体交互获取控制计费策略。此时,发送单元1102向PCRF实体发送第一更新消息,以向PCRF实体上报UE从在线计费切换为离线计费事件,PCRF实体接收到该第一更新消息后,将UE从在线计费时使用的第一控制计费策略调整为第二控制计费策略,以减小用户账户透支的风险。
需要说明的是,发送单元1102向PCRF实体发送的第一更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实施方式,发送单元1102是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,CCR-U消息中携带了事件触发属性值对(Event-Trigger AVP,Event-Trigger Attribute Value Pair),该Event-Trigger AVP用于上报事件给PCRF实体,以使得PCRF实体根据不同的事件生成不同的控制计费策略。通过扩展该Event-Trigger AVP的参数值,通过其中一个参数值表示在线计费切换为离线计费事件,将参数值称之为第一参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第一参数值,生成相对应的控制计费策略,称之为第二控制计费策略。
作为一种具体的实施方式,PCRF实体将UE在在线计费时使用的第一控制计费策略调整为在离线计费时的第二控制计费策略,可以是调整控制计费策略中的服务质量(QoS,Quality of Service),具体为降低控制计费策略中的QoS,例如:通过控制UE的流服务质量等级、上行速率、下行速率、误码率、丢包率、时延、抖动或峰值速率等QoS参数来实现,以使得第二控制计费策略中的QoS低于第一控制计费策略中的QoS,从而减小用户账户透支的风险。
需要说明的是,PCRF实体将UE的在线计费时使用的第一控制计费策略调整为第二控制计费策略时,除了调整控制计费策略中的QoS以外,还可以 通过调整控制计费策略中的其他参数来减小用户账户透支的风险,例如:调整计费费率,具体的调整方法此处不做限定。
发送单元1102在向PCRF实体发送第一更新消息后,PCRF实体将UE的第一控制计费策略调整为第二控制计费策略,PCRF实体再将第二控制计费策略通过第一更新应答消息发送给网络设备11中的接收单元1103,接收单元1103接收到PCRF实体发送的第一更新应答消息。
需要说明的是,PCRF实体向网络设备11中的接收单元1103发送的第一更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer Update)消息,也可以是其他消息,具体此处不做限定。
接收单元1103在接收PCRF实体发送的第一更新应答消息之后,处理单元1101对UE执行第二控制计费策略。
若PCRF实体调整控制计费策略的方式是降低UE的QoS,则处理单元1101对UE执行第二控制计费策略后,该UE在离线计费过程中的QoS会降低,从而减小用户账户透支的风险。
在处理单元1101将UE从在线计费切换到离线计费后,在离线定时器超时之前,发送单元1102向OCS发送请求消息以重建与OCS之间的会话。
作为一种具体的实现方式,发送单元1102向OCS发送请求消息的方式有如下几种:
1、处理单元1101在感知OCS可用时,发送单元1102立即向OCS发送请求消息;
当网络设备11与OCS之间的链路故障时,处理单元1101确定OCS不可用,在此种情况下,处理单元1101若感知到与OCS之间的链路故障恢复后,发送单元1102立即向OCS发送请求消息以重建与OCS之间的会话。
处理单元1101感知到与OCS之间的链路故障恢复为现有技术,具体可以通过发送心跳包进行检测,此处不做详细的说明。
2、处理单元1101定时向OCS发送请求消息。
在OCS无响应或接收单元1103接收到OCS返回的错误码(Result-Code)时,处理单元1101确定OCS不可用,在此种情况下,发送单元1102定时向 OCS发送请求消息以重建与OCS之间的会话。
需要说明的是,OCS不可用的情况除了上述3种外,还可能有其他不可用的情况,对其他不可用的情况,也可以参照上述的方式进行处理。
处理单元1101检测到OCS之间的链路故障恢复为现有技术,此处不再详细说明。
作为一种具体的实现方式,发送单元1102向OCS发送的请求消息可以为信用控制请求初始化(CCR-I,Credit-Control-Request Intial)消息。
在发送单元1102向OCS发送请求消息以重建会话后,如果在离线定时器超时之前,接收单元1103接收到OCS发送的成功应答消息,该成功应答消息为OCS对PCEF实体发送的请求消息的响应,说明OCS已经恢复为可用,可以与网络设备11进行交互实现在线计费功能。
因此,接收单元1103在接收到OCS的成功应答消息之后,处理单元1101将UE从离线计费恢复到在线计费,以使得系统在不中断用户正在使用的业务的情况下恢复到在线计费功能。
作为一种具体的实现方式,发送单元1102向OCS发送的成功应答消息可以为信用控制应答初始化(CCA-I,Credit-Control-Answer Intial)消息。
在处理单元1101将UE从离线计费恢复到在线计费后,与PCRF实体交互获取控制计费策略以恢复UE的控制计费策略。
发送单元1102向PCRF实体发送第二更新消息,以向PCRF实体上报UE恢复在线计费事件,PCRF实体接收到该第二更新消息后,将UE从离线计费时使用的第二控制计费策略恢复成在线计费时使用的第一控制计费策略。
需要说明的是,发送单元1102向PCRF实体发送的第二更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实现方式,发送单元1102是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,通过扩展CCR-U消息中的Event-Trigger AVP的参数值,通过扩展的参数值表示在线计费恢复事件,将此参数值称之为第二参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP 中的第二参数值,将UE的控制计费策略恢复至第一控制计费策略。
若在线计费切换至离线计费时,PCRF实体调整控制计费策略的方式是降低UE的QoS,则PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,即为恢复该UE的QoS。
发送单元1102在向PCRF实体发送第二更新消息后,PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,PCRF实体再将第一控制计费策略通过第二更新应答消息发送给网络设备11,网络设备11的接收单元1103接收到PCRF实体发送的第二更新应答消息。
需要说明的是,发送单元1102向PCEF实体发送的第二更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer)消息,也可以是其他消息,具体此处不做限定。
接收单元1103接收PCRF实体发送的第二更新应答消息之后,处理单元1101对UE执行第一控制计费策略,以恢复UE的在线计费时使用的控制计费策略。
若在在线计费切换到离线计费时,PCRF实体调整UE的控制计费策略的具体方式是降低控制计费策略中的QoS,则处理单元1101对UE执行第一控制计费策略后,UE的QoS恢复。
在本发明实施例中,处理单元1101在将UE从在线计费切换到离线计费和在线计费恢复时,发送单元1102发送携带了在线计费转离线计费和在线计费恢复的更新消息给PCRF实体,PCRF实体根据该消息调整UE的控制计费策略,从而进一步降低用户账户透支的风险。
其次,本发明实施例中,不需要去活用户,转离线的用户在不去活(不下线)的前提下,只通过网络设备和OCS之间的信令交互就可以恢复在线计费,从而能够减少信令开销。
进一步,在具体的实施中:
处理单元1101在将UE从在线计费切换到离线计费时,具体用于进行话单分割以生成离线话单,离线话单中携带转离线标志,转离线标志用于标识计费系统BS对离线话单进行区别计费处理;
处理单元1101在将UE从离线计费恢复到在线计费时,具体用于进行话单分割,以使得新生成的离线话单不再携带转离线标志。
下面以一个具体的应用场景进行说明:
在处理单元1101将UE从在线计费切换到离线计费的过程中,处理单元1101进行话单分割,将此次话单分割认为是第一次话单分割。在第一次话单分割后,在后续离线计费过程中生成的话单都携带转离线的标志,该转离线标志用于标识计费系统BS需要对该离线话单进行区别处理,即进行补充扣费。
在接收单元1103接收到OCS发送的成功应答消息之后,处理单元1101将UE从离线计费恢复至在线计费,在此过程中,处理单元1101进行话单分割,将此次话单分割认为是第二次话单分割。在第二次话单分割后,在后续生成的离线话单不再携带转离线标志,表示后续进行在线计费,后续产生的离线话单只作为对账使用,不作为扣费的依据。
在本发明实施例中,在在线计费转离线计费和恢复在线计费时,处理单元1101通过话单分割,使得在离线计费期间生成的话单携带转离线标志,从而实现对离线计费过程中的话单进行补充扣费,提升了方案的可实现性。
以上是本发明实施例中对网络设备用于在线计费自动恢复的描述,下面对网络设备用于调整控制计费策略进行描述。
结合图12,本发明实施例中提供的一种网络设备12,包括:
处理单元1201,用于将用户设备UE从在线计费切换到离线计费;
发送单元1202,用于向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;
接收单元1203,用于接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;
处理单元1201,还用于对UE执行第二控制计费策略。
下面以一个具体的应用场景对本发明网络设备中各单元模块之间的交互进行描述:
在3GPP协议中,定义了OCS不可用时,在对UE进行在线计费的过程中, 如果网络设备12向OCS进行配额申请或上报已使用的配额时,发现OCS不可用,则网络设备12的处理单元1201将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验。
在处理单元1201将UE从在线计费切换到离线计费时或在PCEF实体将UE从在线计费切换到离线计费后,处理单元1201与PCRF实体交互获取控制计费策略。此时,发送单元1202向PCRF实体发送第一更新消息,以向PCRF实体上报UE从在线计费切换为离线计费事件,PCRF实体接收到该第一更新消息后,将UE从在线计费时使用的第一控制计费策略调整为第二控制计费策略,以减小用户账户透支的风险。
需要说明的是,发送单元1202向PCRF实体发送的第一更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
发送单元1202在向PCRF实体发送第一更新消息后,PCRF实体将UE的第一控制计费策略调整为第二控制计费策略,PCRF实体将第二控制计费策略通过第一更新应答消息发送给网络设备12的接收单元1203,接收单元1203接收到PCRF实体发送的第一更新应答消息。
需要说明的是,发送单元1202向PCEF实体发送的第一更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer Update)消息,也可以是其他消息,具体此处不做限定。
接收单元1203接收PCRF实体发送的第一更新应答消息之后,处理单元1201对UE执行第二控制计费策略,以降低用户账户透支的几率。
在本发明实施例中,处理单元1201在将UE从在线计费切换到离线计费时,发送单元1202向PCRF实体发送更新消息,PCRF实体根据该更新消息调整UE的控制计费策略,从而可以降低用户账户透支的风险。
作为一种具体的实施方式,发送单元1202是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,CCR-U消息中携带了事件触发属性值对(Event-Trigger AVP,Event-Trigger Attribute Value Pair),该Event-Trigger AVP用于上报事件给PCRF实体,以使得PCRF实体根据不同的事件生成不同的控 制计费策略。通过扩展该Event-Trigger AVP的参数值,通过其中一个参数值表示在线计费切换为离线计费事件,将参数值称之为第一参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第一参数值,生成相对应的控制计费策略,称之为第二控制计费策略。
作为一种具体的实施方式,PCRF实体将UE在在线计费时使用的第一控制计费策略调整为在离线计费时的第二控制计费策略,可以是调整控制计费策略中的QoS,具体为降低控制计费策略中的QoS,例如:通过控制UE的流服务质量等级、上行速率、下行速率、误码率、丢包率、时延、抖动或峰值速率等QoS参数来实现,以使得第二控制计费策略中的QoS低于第一控制计费策略中的QoS,从而减小用户账户透支的风险。
需要说明的是,PCRF实体将UE的在线计费时使用的第一控制计费策略调整为第二控制计费策略时,除了调整控制计费策略中的QoS以外,还可以通过调整控制计费策略中的其他参数来减小用户账户透支的风险,例如:调整计费费率,具体的调整方法此处不做限定。
进一步,在具体的实施中:
发送单元1202,还用于在将UE从离线计费恢复到在线计费后,向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;
接收单元1203,还用于接收PCRF实体发送的第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第二更新消息用于指示UE已被恢复为在线计费;
处理单元1201,还用于对UE执行第一控制计费策略。
下面以一个具体的应用场景进行说明:
在处理单元1201将UE从离线计费恢复到在线计费后,处理单元1201与PCRF实体交互获取控制计费策略以恢复UE的控制计费策略。
发送单元1202向PCRF实体发送第二更新消息,以向PCRF实体上报UE恢复在线计费事件,PCRF实体接收到该第二更新消息后,将UE从离线计费时使用的第二控制计费策略恢复成在线计费时使用的第一控制计费策略。PCRF实体再将第一控制计费策略通过第二更新应答消息发送给PCEF实体, PCEF实体接收到PCRF实体发送的第二更新应答消息。PCEF实体接收PCRF实体发送的第二更新应答消息之后,对UE执行第一控制计费策略,以恢复UE的在线计费时使用的控制计费策略。
需要说明的是,发送单元1202向PCRF实体发送的第二更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request)消息,也可以是其他消息,具体此处不做限定。
需要说明的是,PCRF实体向PCEF实体发送的第二更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实现方式,发送单元1202是通过与PCRF实体通信的Gx接口向PCRF实体发送CCR-U消息,通过扩展CCR-U消息中的Event-TriggerAVP的参数值,通过扩展的参数值表示在线计费恢复事件,将此参数值称之为第二参数值。PCRF实体根据该UE的CCR-U消息中的Event-Trigger AVP中的第二参数值,将UE的控制计费策略恢复至第一控制计费策略。
若在线计费切换至离线计费时,PCRF实体调整控制计费策略的方式是降低UE的QoS,则PCRF实体将UE的第二控制计费策略恢复成第一控制计费策略,即为恢复该UE的QoS。
下面对本发明实施例中另一种网络设备进行描述。
结合图13,本发明实施例中提供的一种网络设备13,包括:
接收单元1301,用于在策略和计费执行功能PCEF将用户设备UE从在线计费切换离线计费后,接收PCEF发送的第一更新消息,第一更新消息用于指示UE已被切换为离线计费;
处理单元1302,用于根据接收单元1301接收的第一更新消息将UE的第一控制计费策略调整为第二控制计费策略;
发送单元1303,用于向PCEF实体发送第一更新应答消息,第一更新应答消息中携带第二控制计费策略,以使得PCEF实体在接收第一更新应答消息后,对UE执行第二控制计费策略。
下面以一个具体的应用场景对本发明网络设备中各单元模块之间的交互 进行描述:
在3GPP协议中,定义了OCS不可用时,在对UE进行在线计费的过程中,如果PCEF实体向OCS进行配额申请或上报已使用的配额时,发现OCS不可用,则PCEF实体将UE从在线计费切换到离线计费,从而保证业务可继续使用,提升用户体验。
在PCEF实体将UE从在线计费切换到离线计费时或在PCEF实体将UE从在线计费切换到离线计费后,PCEF实体与网络设备13交互以获取控制计费策略。此时,PCEF实体向网络设备13发送第一更新消息,以上报UE从在线计费切换为离线计费事件,网络设备13的接收单元1301接收到PCEF发送的第一更新消息。
需要说明的是,接收单元1301接收到的第一更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request Update)消息,也可以是其他消息,具体此处不做限定。
接收单元1301接收到PCEF实体发送的第一更新消息后,处理单元1302将UE从在线计费时使用的第一控制计费策略调整为第二控制计费策略,以减小用户账户透支的风险。
处理单元1302将UE的第一控制计费策略调整为第二控制计费策略之后,发送单元1303将第二控制计费策略通过第一更新应答消息发送给PCEF实体,以使得PCEF实体在接收第一更新应答消息后,对UE执行第二控制计费策略。
需要说明的是,发送单元1303向PCEF实体发送的第一更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer Update)消息,也可以是其他消息,具体此处不做限定。
在本发明实施例中,网络设备13中的接收单元1301接收到PCEF实体发送的更新消息,处理单元1302根据该更新消息调整UE的控制计费策略,发送单元1303再将调整后的控制计费策略发送给PCEF,由PCEF对UE执行调整后的控制计费策略,从而可以降低用户账户透支的风险。
作为一种具体的实施方式,接收单元1301是通过与PCEF实体通信的Gx接口接收的PCEF实体发送CCR-U消息,CCR-U消息中携带了事件触发属性 值对(Event-Trigger AVP,Event-Trigger Attribute Value Pair),该Event-Trigger AVP用于上报事件给网络设备13中的处理单元1302,以使得网络设备13中的处理单元1302根据不同的事件生成不同的控制计费策略。通过扩展该Event-Trigger AVP的参数值,通过其中一个参数值表示在线计费切换为离线计费事件,将参数值称之为第一参数值。处理单元1302根据该UE的CCR-U消息中的Event-Trigger AVP中的第一参数值,生成相对应的控制计费策略,称之为第二控制计费策略。
作为一种具体的实施方式,处理单元1302将UE在在线计费时使用的第一控制计费策略调整为在离线计费时的第二控制计费策略,可以是调整控制计费策略中的QoS,具体为降低控制计费策略中的QoS,例如:通过控制UE的流服务质量等级、上行速率、下行速率、误码率、丢包率、时延、抖动或峰值速率等QoS参数来实现,以使得第二控制计费策略中的QoS低于第一控制计费策略中的QoS,从而减小用户账户透支的风险。
需要说明的是,处理单元1302将UE的在线计费时使用的第一控制计费策略调整为第二控制计费策略时,除了调整控制计费策略中的QoS以外,还可以通过调整控制计费策略中的其他参数来减小用户账户透支的风险,例如:调整计费费率,具体的调整方法此处不做限定。
进一步,在具体的实施方式中:
接收单元1301,还用于在PCEF将UE从离线计费恢复到在线计费后,接收PCEF发送的第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;
处理单元1302,还用于根据接收单元接收的第二更新消息将UE的第二控制计费策略恢复成第一控制计费策略;
发送单元1303,还用于向PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,以使得PCEF实体在接收第二更新应答消息后,对UE执行第一控制计费策略。
下面以一个具体的应用场景进行说明:
在离线计费过程中,若PCEF实体将UE从离线计费恢复到在线计费,PCEF 实体会重新从网络设备13获取控制计费策略以恢复UE的控制和计费策略。具体过程为:
接收单元1301接收PCEF实体发送的第二更新消息,该消息的作用是向网络设备13上报UE恢复在线计费事件,网络设备13的接收单元1301接收到该第二更新消息后,处理单元1302将UE从离线计费时使用的第二控制计费策略恢复成在线计费时使用的第一控制计费策略。发送单元1303再将第一控制计费策略通过第二更新应答消息发送给PCEF实体,PCEF实体接收到网络设备13的发送单元1303发送的第二更新应答消息,以使得PCEF实体对UE执行第一控制计费策略,以恢复UE的在线计费时使用的控制计费策略。
需要说明的是,接收单元1301从PCEF实体接收的第二更新消息可以为信用控制请求更新(CCR-U,Credit-Control-Request)消息,也可以是其他消息,具体此处不做限定。
需要说明的是,发送单元1303向PCEF实体发送的第二更新应答消息可以为信用控制应答更新(CCA-U,Credit-Control-Answer)消息,也可以是其他消息,具体此处不做限定。
作为一种具体的实现方式,接收单元1301是通过与PCEF实体通信的Gx接口接收PCEF实体发送CCR-U消息,通过扩展CCR-U消息中的Event-Trigger AVP的参数值,通过扩展的参数值表示在线计费恢复事件,将此参数值称之为第二参数值。处理单元1302根据该UE的CCR-U消息中的Event-Trigger AVP中的第二参数值,将UE的控制计费策略恢复至第一控制计费策略。
若在线计费切换至离线计费时,处理单元1302调整控制计费策略的方式是降低UE的QoS,则处理单元1302将UE的第二控制计费策略恢复成第一控制计费策略,即为恢复该UE的QoS。
上面从模块化功能实体的角度对本发明实施例中的网络设备进行描述,下面从硬件处理的角度对本发明实施例中的网络设备进行描述,请参阅图14,本发明实施例中的网络设备14另一实施例包括:
接收器1401、发射器1402、处理器1403和存储器1404(其中网络设备14中的处理器1401的数量可以一个或多个,图14中以一个处理器1401为例)。 在本发明的一些实施例中,接收器1401、发射器1402、处理器1403和存储器1404可通过总线或其它方式连接,其中,图14中以通过总线连接为例。
其中,
通过调用存储器1404存储的操作指令,处理器1403,用于执行如下步骤:
对UE进行在线计费,获知OCS不可用时,在获知OCS不可用时,将UE从在线计费切换到离线计费;并启动离线定时器,离线定时器用于指示对UE进行离线计费至去活的最长时间;若在离线定时器超时之前,PCEF实体获知OCS恢复为可用,则PCEF实体将UE从离线计费恢复到在线计费。
在本发明的一些实施例中,处理器1403还用于执行以下步骤:
利用发射器1402向OCS发送请求消息;利用接收器1401接收OCS发送的成功应答消息,其中成功应答消息为对请求消息的响应,用于指示OCS已恢复为可用。
在本发明的一些实施例中,处理器1403还用于执行以下步骤:
利用发射器1402向PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;
利用接收器1401接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;PCEF实体对UE执行第二控制计费策略;
对UE执行第二控制计费策略。
在本发明的一些实施例中,处理器1403还用于执行以下步骤:
利用发射器1402向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复在线计费;
利用接收器1401接收PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复的UE的控制计费策略;
对UE执行第一控制计费策略。
在本发明的一些实施例中,处理器1403还用于执行以下步骤:
获知与OCS之间的链路发生故障;
在感知与OCS之间的链路故障恢复后利用发射器1402向OCS发送请求消息;
或,
当获知OCS无响应或利用接收器1401接收OCS发送的错误码时,利用发射器1402定时向OCS发送请求消息。
在本发明的一些实施例中,处理器1403还用于执行以下步骤:
进行话单分割以生成离线话单,离线话单中携带转离线标志,转离线标志用于标识计费系统BS对离线话单进行区别计费处理;
在利用接收器1401接收到OCS发送的成功应答消息之后,进行话单分割,以使得新生成的离线话单不再携带转离线标志。
本发明实施例中,处理器1403在OCS不可用时,将UE从在线计费切换到离线计费,并启动离线定时器,之后,处理器1403向OCS发送请求消息以尝试恢复在线计费,在离线定时器超时之前若接收到OCS发送的成功应答消息时,则表示OCS已恢复为可用,则将UE从离线计费恢复到在线计费。因此,本方案能够在用户转离线计费后,当OCS可用时及时恢复在线计费功能,从而降低了在离线计费过程中可能存在的用户账户透支的风险,且本方案能避免去活用户,从而提升了用户体验。
请参阅图15,本发明实施例中的网络设备15另一实施例包括:
接收器1501、发射器1502、处理器1503和存储器1504(其中网络设备15中的处理器1501的数量可以一个或多个,图15中以一个处理器1501为例)。在本发明的一些实施例中,接收器1501、发射器1502、处理器1503和存储器1504可通过总线或其它方式连接,其中,图15中以通过总线连接为例。
其中,
通过调用存储器1504存储的操作指令,处理器1503,用于执行如下步骤:
将用户设备UE从在线计费切换到离线计费;
利用发射器1502向策略和计费规则功能PCRF实体发送第一更新消息,第一更新消息用于指示UE已被切换为离线计费;
利用接收器1501接收PCRF实体发送的第一更新应答消息,第一更新应答消息中携带第二控制计费策略,第二控制计费策略为PCRF实体根据第一更新消息进行调整后的UE的控制计费策略;
对UE执行第二控制计费策略。
在本发明的一些实施例中,处理器1503还用于执行以下步骤:
在将UE从离线计费恢复到在线计费后,利用发射器1502向PCRF实体发送第二更新消息,第二更新消息用于指示UE已被恢复为在线计费;
利用接收器1501接收PCRF实体发送的第二更新应答消息,第二更新应答消息中携带第一控制计费策略,第一控制计费策略为PCRF实体根据第二更新消息进行恢复后的UE的控制计费策略;
对UE执行第一控制计费策略。
在本发明实施例中,处理器1503在在线计费切换到离线计费时,利用发射器1502发送更新消息给PCRF实体,以使得PCRF实体根据该消息调整UE的控制计费策略,并将调整后的控制计费策略发送给网络设备15中的处理器1403,处理器1403在对UE执行该调整后的控制计费策略。从而进一步降低用户账户透支的风险。
请参阅图16,本发明实施例中的网络设备16另一实施例包括:
接收器1601、发射器1602、处理器1603和存储器1604(其中网络设备16中的处理器1601的数量可以一个或多个,图16中以一个处理器1601为例)。在本发明的一些实施例中,接收器1601、发射器1602、处理器1603和存储器1604可通过总线或其它方式连接,其中,图16中以通过总线连接为例。
其中,
通过调用存储器1604存储的操作指令,处理器1603,用于执行如下步骤:
利用接收器1601接收PCEF发送的第一更新消息;
根据接收的第一更新消息将UE的第一控制计费策略调整为第二控制计费策略;
利用发射器1602向PCEF实体发送第一更新应答消息,第一更新应答消息中携带第二控制计费策略,以使得PCEF实体在接收第一更新应答消息后, 对UE执行第二控制计费策略。
在本发明的一些实施例中,处理器1603还用于执行以下步骤:
在PCEF将UE从离线计费恢复到在线计费后,利用接收器1601接收PCEF发送的第二更新消息;
根据接收的第二更新消息将UE的第二控制计费策略恢复成第一控制计费策略;
利用发射器1602向PCEF实体发送第二更新应答消息,第二更新应答消息中携带第一控制计费策略,以使得PCEF实体在接收第二更新应答消息后,对UE执行第一控制计费策略。
在本发明实施例中,处理器1603通过接收器1601接收PCEF实体发送的更新消息,根据该更新消息调整UE的控制计费策略,处理器1603再将调整后的控制计费策略通过发射器1602发送给PCEF实体,由PCEF实体对UE执行调整后的控制计费策略,从而可以降低用户账户透支的风险。
上面对本发明实施例中的网络设备进行了描述,下面对本发明实施例中的计费系统进行描述,请参阅图17,本发明实施例中计费系统一个实施例计费系统17包括:
PCEF实体1701和OCS 1702;
PCEF实体1701,用于对UE进行在线计费,当获知OCS 1702不可用时,将UE从在线计费切换到离线计费,并启动离线定时器,离线定时器用于指示对UE进行离线计费至去活的最长时间,若在离线定时器超时之前,PCEF实体1701获知OCS1702恢复为可用,则将UE从离线计费恢复到在线计费。
需要说明的是,PCEF实体位于网关,在实际应用中具体可以是GPRS的GGSN。
本发明实施例中,计费系统包括PCEF实体1701和OCS 1702,PCEF实体1701在获知OCS 1702不可用时,将UE从在线计费切换到离线计费,并启动离线定时器,在离线定时器超时之前,PCEF实体1701获知OCS1702恢复为可用,则将UE从离线计费恢复到在线计费。因此,本方案能够在用户转离线计费后,当OCS可用时及时恢复在线计费功能,从而降低了在离线计费过 程中可能存在的用户账户透支的风险,且本方案能避免去活用户,从而提升了用户体验。
请参阅图18,本发明实施例中计费系统另一个实施例计费系统18包括:
PCEF实体1801和PCRF实体1802;
PCEF实体1801,用于将UE从在线计费切换到离线计费,向PCRF实体1802发送第一更新消息;
PCRF实体1802,用于接收PCEF实体1801发送的第一更新消息,根据第一更新消息将UE的第一控制计费策略调整为第二控制计费策略,之后,向PCEF实体1801发送第一更新应答消息,第一更新应答消息中携带第二控制计费策略;
PCEF实体1801,还用于接收PCRF实体1802发送的第一更新应答消息,对UE执行第二控制计费策略。
在本发明实施例中,计费系统包括PCEF实体1801和PCRF实体1802,PCEF实体1801在在线计费切换到离线计费时,发送更新消息给PCRF实体1802,PCRF实体1802根据该消息调整UE的控制计费策略,并将调整后的控制计费策略发送给PCEF实体1801,PCEF实体在对UE执行该调整后的控制计费策略。从而进一步降低用户账户透支的风险。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接, 可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上对本发明所提供的计费的方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (32)

  1. 一种计费的方法,其特征在于,包括:
    策略和计费执行功能PCEF实体对用户设备UE进行在线计费;
    所述PCEF实体获知在线计费系统OCS不可用;
    所述PCEF实体将所述UE从在线计费切换到离线计费,并启动离线定时器,所述离线定时器用于指示对所述UE进行离线计费至去活的最长时间;
    若在所述离线定时器超时之前,所述PCEF实体获知所述OCS恢复为可用,则所述PCEF实体将所述UE从离线计费恢复到在线计费。
  2. 根据权利要求1所述的方法,其特征在于,所述PCEF实体获知所述OCS恢复为可用包括:
    所述PCEF实体向所述OCS发送请求消息;
    所述PCEF实体接收所述OCS发送的成功应答消息,其中所述成功应答消息为对所述请求消息的响应,用于指示所述OCS已恢复为可用。
  3. 根据权利要求1或2所述的方法,其特征在于,所述PCEF实体将用户设备UE从在线计费切换到离线计费之后还包括:
    所述PCEF实体向策略和计费规则功能PCRF实体发送第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    所述PCEF实体接收所述PCRF实体发送的第一更新应答消息,所述第一更新应答消息中携带第二控制计费策略,所述第二控制计费策略为所述PCRF实体根据所述第一更新消息进行调整后的UE的控制计费策略;
    所述PCEF实体对所述UE执行所述第二控制计费策略。
  4. 根据权利要求3所述的方法,其特征在于:
    所述第一更新消息包含第一事件触发属性值对Event-Trigger AVP,所述第一Event-Trigger AVP中包含第一参数值,所述第一参数值用于表示所述UE已被切换为离线计费。
  5. 根据权利要求3所述的方法,其特征在于,所述PCEF实体将所述UE从离线计费恢复到在线计费之后还包括:
    所述PCEF实体向所述PCRF实体发送第二更新消息,所述第二更新消息用于指示UE已被恢复为在线计费;
    所述PCEF实体接收所述PCRF实体发送的第二更新应答消息,所述第二更新应答消息中携带第一控制计费策略,所述第一控制计费策略为所述PCRF实体根据所述第二更新消息进行恢复的UE的控制计费策略;
    所述PCEF实体对所述UE执行所述第一控制计费策略。
  6. 根据权利要求5所述的方法,其特征在于:
    所述第二更新消息包含第二Event-Trigger AVP,所述第二Event-Trigger AVP中包含第二参数值,所述第二参数值用于表示所述UE已被恢复为在线计费。
  7. 根据权利要求5所述的方法,其特征在于:
    所述第二控制计费策略中的服务质量QoS低于所述第一控制计费策略中的QoS。
  8. 根据权利要求2所述的方法,其特征在于,所述PCEF实体获知在线计费系统OCS不可用包括:
    所述PCEF实体获知与所述OCS之间的链路发生故障;
    则所述PCEF实体向所述OCS发送请求消息包括:
    所述PCEF实体在感知与所述OCS之间的链路故障恢复后向所述OCS发送所述请求消息;
    或,
    所述PCEF实体获知所述OCS无响应或接收所述OCS发送的错误码;
    则所述PCEF实体向所述OCS发送请求消息包括:
    所述PCEF实体定时向所述OCS发送所述请求消息。
  9. 根据权利要求1、2或8中任一项所述的方法,其特征在于,所述PCEF实体将UE从在线计费切换到离线计费包括:
    所述PCEF实体进行话单分割以生成离线话单,所述离线话单中携带转离线标志,所述转离线标志用于标识计费系统BS对所述离线话单进行区别计费处理;
    所述PCEF实体将所述UE从离线计费恢复到在线计费包括:
    所述PCEF实体进行话单分割,以使得新生成的离线话单不再携带所述转离线标志。
  10. 根据权利要求2或8所述的方法,其特征在于:
    所述请求消息为信用控制请求初始化CCR-I消息;
    所述成功应答消息为信用控制应答初始化CCA-I消息。
  11. 一种计费的方法,其特征在于,包括:
    策略和计费执行功能PCEF实体将用户设备UE从在线计费切换到离线计费;
    所述PCEF实体向策略和计费规则功能PCRF实体发送第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    所述PCEF实体接收所述PCRF实体发送的第一更新应答消息,所述第一更新应答消息中携带第二控制计费策略,所述第二控制计费策略为所述PCRF实体根据所述第一更新消息进行调整后的UE的控制计费策略;
    所述PCEF实体对所述UE执行所述第二控制计费策略。
  12. 根据权利要求11所述的方法,其特征在于:
    所述第一更新消息包含第一事件触发属性值对Event-Trigger AVP,所述第一Event-Trigger AVP包含第一参数值,所述第一参数值用于表示所述UE已被切换为离线计费。
  13. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    在所述PCEF将所述UE从所述离线计费恢复到在线计费后,所述PCEF实体向所述PCRF实体发送第二更新消息,所述第二更新消息用于指示UE已被恢复为在线计费;
    所述PCEF实体接收所述PCEF实体发送的第二更新应答消息,所述第二更新应答消息中携带第一控制计费策略,所述第一控制计费策略为所述PCRF实体根据所述第二更新消息进行恢复后的UE的控制计费策略;
    所述PCEF实体对所述UE执行所述第一控制计费策略。
  14. 根据权利要求13所述的方法,其特征在于:
    所述第二更新消息包含第二Event-Trigger AVP,所述第二Event-Trigger AVP包含第二参数值,所述第二参数值用于表示所述UE已被恢复为在线计费。
  15. 根据权利要求13或14所述的方法,其特征在于:
    所述第二控制计费策略中的服务质量QoS低于所述第一控制计费策略中 的QoS。
  16. 一种计费的方法,其特征在于,包括:
    在策略和计费执行功能PCEF将用户设备UE从在线计费切换离线计费后,策略和计费规则功能PCRF实体接收所述PCEF发送的第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    所述PCRF实体根据所述第一更新消息将所述UE的第一控制计费策略调整为第二控制计费策略;
    所述PCRF实体向所述PCEF实体发送第一更新应答消息,所述第一更新应答消息中携带所述第二控制计费策略,以使得所述PCEF实体在接收所述第一更新应答消息后,对所述UE执行所述第二控制计费策略。
  17. 根据权利要求16所述的方法,其特征在于:
    所述第一更新消息包含第一事件触发属性值对Event-Trigger AVP,所述第一Event-Trigger AVP包含第一参数值,所述第一参数值用于表示所述UE已切换为离线计费。
  18. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    在所述PCEF将所述UE从所述离线计费恢复到在线计费后,所述PCRF实体接收PCEF发送的第二更新消息,所述第二更新消息用于指示UE已被恢复为在线计费;
    所述PCRF实体根据所述第二更新消息将所述UE的所述第二控制计费策略恢复成所述第一控制计费策略;
    所述PCRF实体向所述PCEF实体发送第二更新应答消息,所述第二更新应答消息中携带所述第一控制计费策略,以使得所述PCEF实体在接收所述第二更新应答消息后,对所述UE执行所述第一控制计费策略。
  19. 根据权利要求18所述的方法,其特征在于:
    所述第二更新消息包含第二Event-Trigger AVP,所述第二Event-TriggerAVP包含第二参数值,所述第二参数值用于表示所述UE已恢复在线计费。
  20. 根据权利要求16至19中任一项所述的方法,其特征在于:
    所述第二控制计费策略中的服务质量QoS低于所述第一控制计费策略中的QoS。
  21. 一种网络设备,其特征在于,包括:
    处理单元,用于对用户设备UE进行在线计费,并获知在线计费系统OCS不可用,之后,将所述UE从在线计费切换到离线计费,并启动离线定时器,所述离线定时器用于指示对所述UE进行离线计费至去活的最长时间;在所述离线定时器超时之前,若所述PCEF实体获知所述OCS恢复为可用,则将所述UE从离线计费恢复到在线计费。
  22. 根据权利要求21所述的一种网络设备,其特征在于,所述网络设备还包括:
    发送单元,用于向所述OCS发送请求消息;
    接收单元,用于接收所述OCS发送的成功应答消息,其中所述成功应答消息为对所述请求消息的响应,用于指示所述OCS已恢复为可用。
  23. 根据权利要求21或22所述的网络设备,其特征在于:
    发送单元,还用于在所述处理单元将UE从在线计费切换到离线计费后,向策略和计费规则功能PCRF实体发送第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    接收单元,还用于接收所述PCRF实体发送的第一更新应答消息,所述第一更新应答消息中携带所述第二控制计费策略,所述第二控制计费策略为所述PCRF实体根据所述第一更新消息进行调整后的UE的控制计费策略;
    所述处理单元,还用于对所述UE执行所述第二控制计费策略。
  24. 根据权利要求23所述的网络设备,其特征在于,
    所述发送单元,还用于在所述处理单元将所述UE从离线计费恢复到在线计费后,向所述PCRF实体发送第二更新消息,所述第二更新消息用于指示UE已被恢复为在线计费;
    所述接收单元,还用于接收所述PCEF实体发送第二更新应答消息,所述第二更新应答消息中携带第一控制计费策略,所述第一控制计费策略为所述PCRF实体根据所述第二更新消息进行恢复后的UE的控制计费策略;
    所述处理单元,还用于对所述UE执行所述第一控制计费策略。
  25. 根据权利要求22所述的网络设备,其特征在于,
    所述处理单元,具体用于获知与所述OCS之间的链路发生故障时,则所 述发送单元,具体用于在感知与所述OCS之间的链路故障恢复后向所述OCS发送所述请求消息;
    或,
    所述处理单元,具体用于获知所述OCS无响应或接收所述OCS发送的错误码时,则所述发送单元,具体用于定时向所述OCS发送所述请求消息。
  26. 根据权利要求21、22或25中任一项所述的网络设备,其特征在于,
    所述处理单元在将UE从在线计费切换到离线计费时,具体用于进行话单分割以生成离线话单,所述离线话单中携带转离线标志,所述转离线标志用于标识计费系统BS对所述离线话单进行区别计费处理;所述处理单元在将UE从离线计费恢复到在线计费时,具体用于进行话单分割,以使得新生成的离线话单不再携带所述转离线标志。
  27. 一种网络设备,其特征在于,包括:
    处理单元,用于将用户设备UE从在线计费切换到离线计费;
    发送单元,用于向策略和计费规则功能PCRF实体发送第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    接收单元,用于接收所述PCRF实体发送的第一更新应答消息,所述第一更新应答消息中携带第二控制计费策略,所述第二控制计费策略为所述PCRF实体根据所述第一更新消息进行调整后的UE的控制计费策略;
    所述处理单元,还用于对所述UE执行所述第二控制计费策略。
  28. 根据权利要求27所述的网络设备,其特征在于:
    所述发送单元,还用于在将所述UE从所述离线计费恢复到在线计费后,向所述PCRF实体发送第二更新消息,所述第二更新消息用于指示UE已被恢复为在线计费;
    所述接收单元,还用于接收所述PCRF实体发送的第二更新应答消息,所述第二更新应答消息中携带第一控制计费策略,所述第一控制计费策略为所述PCRF实体根据所述第二更新消息进行恢复后的UE的控制计费策略;
    所述处理单元,还用于对所述UE执行所述第一控制计费策略。
  29. 一种网络设备,其特征在于,包括:
    接收单元,用于在策略和计费执行功能PCEF将用户设备UE从在线计费 切换离线计费后,接收所述PCEF发送的第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    处理单元,用于根据所述接收单元接收的所述第一更新消息将所述UE的第一控制计费策略调整为第二控制计费策略;
    发送单元,用于向所述PCEF实体发送第一更新应答消息,所述第一更新应答消息中携带所述第二控制计费策略,以使得所述PCEF实体在接收所述第一更新应答消息后,对所述UE执行所述第二控制计费策略。
  30. 根据权利要求29所述网络设备,其特征在于:
    所述接收单元,还用于在所述PCEF将所述UE从所述离线计费恢复到在线计费后,接收PCEF发送的第二更新消息,所述第二更新消息用于指示UE已被恢复为在线计费;
    所述处理单元,还用于根据所述接收单元接收的所述第二更新消息将所述UE的所述第二控制计费策略恢复成所述第一控制计费策略;
    所述发送单元,还用于向所述PCEF实体发送第二更新应答消息,所述第二更新应答消息中携带所述第一控制计费策略,以使得所述PCEF实体在接收所述第二更新应答消息后,对所述UE执行所述第一控制计费策略。
  31. 一种计费系统,其特征在于,包括:
    策略和计费执行功能PCEF实体和在线计费系统OCS;
    所述PCEF实体,用于对用户设备UE进行在线计费,当获知所述OCS不可用时,将UE从在线计费切换到离线计费,并启动离线定时器,所述离线定时器用于指示对所述UE进行离线计费至去活的最长时间;在所述离线定时器超时之前,若获知所述OCS恢复为可用,则将所述UE从离线计费恢复到在线计费。
  32. 一种计费系统,其特征在于,包括:
    策略和计费执行功能PCEF实体和策略和计费规则功能PCRF实体;
    所述PCEF实体,用于将用户设备UE从在线计费切换到离线计费,向PCRF实体发送第一更新消息,所述第一更新消息用于指示所述UE已被切换为离线计费;
    所述PCRF实体,用于接收所述PCEF实体发送的第一更新消息,根据所 述第一更新消息将所述UE的第一控制计费策略调整为第二控制计费策略,之后,向所述PCEF实体发送第一更新应答消息,所述第一更新应答消息中携带所述第二控制计费策略;
    所述PCEF实体,还用于接收所述PCRF实体发送的第一更新应答消息,对所述UE执行所述第二控制计费策略。
PCT/CN2015/082875 2015-06-30 2015-06-30 计费方法、网络设备及计费系统 WO2017000242A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
EP15896773.7A EP3301957B1 (en) 2015-06-30 2015-06-30 Charging method, network device, and charging system
CN201580026907.8A CN106465084B (zh) 2015-06-30 2015-06-30 计费方法、网络设备及计费系统
PCT/CN2015/082875 WO2017000242A1 (zh) 2015-06-30 2015-06-30 计费方法、网络设备及计费系统
BR112017028042A BR112017028042A2 (pt) 2015-06-30 2015-06-30 método de cobrança, dispositivo de rede, e sistema de faturamento
JP2017565904A JP6552071B2 (ja) 2015-06-30 2015-06-30 課金方法およびネットワークデバイス
AU2015400545A AU2015400545B2 (en) 2015-06-30 2015-06-30 Charging method, network device, and charging system
US15/855,616 US10425539B2 (en) 2015-06-30 2017-12-27 Charging method, network device, and billing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082875 WO2017000242A1 (zh) 2015-06-30 2015-06-30 计费方法、网络设备及计费系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/855,616 Continuation US10425539B2 (en) 2015-06-30 2017-12-27 Charging method, network device, and billing system

Publications (1)

Publication Number Publication Date
WO2017000242A1 true WO2017000242A1 (zh) 2017-01-05

Family

ID=57607404

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082875 WO2017000242A1 (zh) 2015-06-30 2015-06-30 计费方法、网络设备及计费系统

Country Status (7)

Country Link
US (1) US10425539B2 (zh)
EP (1) EP3301957B1 (zh)
JP (1) JP6552071B2 (zh)
CN (1) CN106465084B (zh)
AU (1) AU2015400545B2 (zh)
BR (1) BR112017028042A2 (zh)
WO (1) WO2017000242A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547323A (zh) * 2017-07-04 2018-01-05 新华三技术有限公司 报文传输方法、装置、相关电子设备及可读存储介质
EP3657827A4 (en) * 2017-09-22 2021-01-13 ZTE Corporation ACCOUNTING PROCEDURE AND DEVICE FOR A MOBILE COMMUNICATION SYSTEM AND STORAGE MEDIUM

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111830A1 (en) * 2016-12-13 2018-06-21 Affirmed Networks, Inc. Online charging mechanism during ocs non-responsiveness
CN108574579B (zh) * 2017-03-10 2021-08-13 华为技术有限公司 一种用于电信计费的处理方法和装置及电信系统
CN109040992A (zh) * 2017-06-12 2018-12-18 中兴通讯股份有限公司 计费信息传输方法、cmf实体及计算机可读存储介质
EP3652891B1 (en) * 2017-07-10 2023-09-06 Telefonaktiebolaget LM Ericsson (publ) Methods and systems for interrogation rejection during online charging system overload
US10644893B2 (en) 2018-08-06 2020-05-05 At&T Intellectual Property I, L.P. Ensuring correctness of session identifiers in call duration records in mobile networks
US10873499B2 (en) * 2018-12-04 2020-12-22 T-Mobile Usa, Inc. Network-charging communication-failure handling
CN111371569B (zh) * 2018-12-26 2022-10-04 中国移动通信集团重庆有限公司 在线计费方法、在线计费装置、计算机设备及存储介质
US10531515B1 (en) * 2019-02-15 2020-01-07 T-Mobile Usa, Inc. Data charging during charging function outages
CN111836221A (zh) * 2019-04-22 2020-10-27 华为技术有限公司 计费管理方法、设备及系统
CN110166965B (zh) * 2019-04-24 2021-05-18 中国联合网络通信集团有限公司 在线计费系统的性能预警方法及设备
CN112243202B (zh) * 2019-07-18 2023-08-04 中兴通讯股份有限公司 一种计费方法、装置和系统
CN112243204B (zh) * 2019-07-19 2022-04-26 华为技术有限公司 一种计费处理的方法、系统及相关设备
CN112351396A (zh) * 2019-08-06 2021-02-09 中国移动通信有限公司研究院 一种计费模式切换方法、smf模块及融合计费系统
US10904398B1 (en) * 2019-09-13 2021-01-26 T-Mobile Usa, Inc. Offline charging of communications services
CN113676854A (zh) * 2020-05-15 2021-11-19 华为技术有限公司 处理用户业务的方法、系统及相关设备
US20220385488A1 (en) * 2021-05-31 2022-12-01 Nutanix, Inc. System and method for reconciling consumption data
CN113352927B (zh) * 2021-06-03 2023-06-09 郑州宜家安好软件科技有限公司 一种离线计费方法、装置、系统及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102612011A (zh) * 2012-03-22 2012-07-25 中兴通讯股份有限公司 一种计费控制策略实时切换的方法及系统
CN102647697A (zh) * 2012-03-30 2012-08-22 华为技术有限公司 计费控制方法和装置
WO2014130446A1 (en) * 2013-02-19 2014-08-28 Interdigital Patent Holdings, Inc. Charging architecture for a converged gateway

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302636C (zh) * 2004-05-12 2007-02-28 华为技术有限公司 一种完善基于业务数据流在线计费的处理方法
CN100466523C (zh) * 2006-06-09 2009-03-04 华为技术有限公司 在线计费和离线计费结合使用的计费系统和方法
KR20110025221A (ko) * 2008-06-26 2011-03-09 노키아 지멘스 네트웍스 오와이 단문 메시지 전달에 대한 과금
US8831560B2 (en) * 2010-05-03 2014-09-09 Alcatel Lucent Charging method selection for service data flows based on the data services being requested
CN102075898B (zh) * 2010-12-21 2014-02-26 华为技术有限公司 业务控制方法、装置及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102612011A (zh) * 2012-03-22 2012-07-25 中兴通讯股份有限公司 一种计费控制策略实时切换的方法及系统
CN102647697A (zh) * 2012-03-30 2012-08-22 华为技术有限公司 计费控制方法和装置
WO2014130446A1 (en) * 2013-02-19 2014-08-28 Interdigital Patent Holdings, Inc. Charging architecture for a converged gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3301957A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547323A (zh) * 2017-07-04 2018-01-05 新华三技术有限公司 报文传输方法、装置、相关电子设备及可读存储介质
CN107547323B (zh) * 2017-07-04 2020-10-30 新华三技术有限公司 报文传输方法、装置、相关电子设备及可读存储介质
EP3657827A4 (en) * 2017-09-22 2021-01-13 ZTE Corporation ACCOUNTING PROCEDURE AND DEVICE FOR A MOBILE COMMUNICATION SYSTEM AND STORAGE MEDIUM

Also Published As

Publication number Publication date
AU2015400545B2 (en) 2019-01-17
EP3301957A1 (en) 2018-04-04
EP3301957A4 (en) 2018-06-13
CN106465084A (zh) 2017-02-22
US10425539B2 (en) 2019-09-24
BR112017028042A2 (pt) 2018-08-28
JP2018525871A (ja) 2018-09-06
EP3301957B1 (en) 2019-07-31
US20180124253A1 (en) 2018-05-03
CN106465084B (zh) 2020-02-21
JP6552071B2 (ja) 2019-07-31
AU2015400545A1 (en) 2018-01-25

Similar Documents

Publication Publication Date Title
WO2017000242A1 (zh) 计费方法、网络设备及计费系统
US10602000B2 (en) Policy decisions based on offline charging rules when service chaining is implemented
EP2878097B1 (en) Termination of a charging session for an always on ip connectivity session
US9013979B2 (en) High-available policy and charging-control in geographical redundancy PCRF configurations
EP2146458A1 (en) Method,system and entity of realizing event detection
US20100186064A1 (en) Method and device for obtaining capabilities of policy and charging enforcement function
CN102223240B (zh) 提供服务方法、业务代理装置、策略和计费规则功能装置
WO2012075875A1 (zh) 一种消费限制业务的签约和执行方法及系统
CN104955013A (zh) 用量监控方法、装置和系统
US20180309584A1 (en) Data Service Charging Method, Apparutus, and System
CN103888926A (zh) 漫游本地业务的计费策略方法及装置
US11223492B2 (en) Wireless communication method and device
CN102056117A (zh) 基于策略和计费控制架构的计费方法与系统
WO2009138016A1 (zh) 信息传递方法、装置和系统
CN102098647B (zh) 漫游架构下在线计费的方法和系统
RU2668293C2 (ru) Упреждающий кредитный контроль
CN101998342B (zh) 一种统计资源申请过程中流量的网关、系统及方法
EP3335372B1 (en) Enhanced congestion control by means of selective restart of credit control sessions
US20160330329A1 (en) Charging System Switching Method and Apparatus
CN103024714B (zh) 一种PCC系统中Gx接口会话稽核的方法及装置
CN107809551B (zh) 电信业务的处理负荷控制方法和相关装置和系统
CN110880981A (zh) Gx会话异常的处理方法及装置
WO2017114266A1 (zh) 一种数据业务计费方法,装置和系统
US8670400B2 (en) Method and system for acquiring serving general packet radio service support node address
CN101998665A (zh) 一种第三代合作伙伴计划分组系统中的重定向系统及方法

Legal Events

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

Ref document number: 15896773

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017565904

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2015896773

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2015400545

Country of ref document: AU

Date of ref document: 20150630

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112017028042

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112017028042

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20171222