Billing method, device, and system

The CHF device in 5G systems addresses the inefficiencies in event-based charging by determining appropriate processing modes for event billing, ensuring accurate and efficient resource management and billing for event services.

JP7539512B2Active Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023031730
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-08-02
Filing Date
2023-03-02
Publication Date
2024-08-23
Estimated Expiration
2040-06-20

AI Technical Summary

Technical Problem

Current 5G communication systems face challenges in accurately and efficiently implementing event-based charging due to limitations in convergent charging systems, which cannot effectively handle session-based traffic, duration resource reservation, and usage reporting.

Method used

A billing method and system that includes a Charging Function (CHF) device capable of determining event accounting processing modes based on event charging information, allowing for direct deduction, offline event reporting, or application of event allocation, thereby enhancing the accuracy and efficiency of event billing services.

Benefits of technology

The solution enables precise and efficient billing for event services by accurately processing event charging requests, reducing errors, and improving user experience through improved resource management and billing accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007539512000002
    Figure 0007539512000002
  • Figure 0007539512000008
    Figure 0007539512000008
  • Figure 0007539512000007
    Figure 0007539512000007
Patent Text Reader

Abstract

To implement event charging accurately and efficiently.SOLUTION: A charging method and a related product are disclosed. A charging function CHF apparatus receives a first charging request sent by a charging trigger function CTF apparatus, the first charging request carrying event charging information. Then, the CHF apparatus determines a first event charging processing mode on the basis of, the event charging information, and processes the first charging request according to the first event charging processing mode. According to the method, the CHF apparatus may determine the first event charging processing mode on the basis of, the first charging request, and may perform event charging processing. Therefore, charging can be accurately and efficiently performed on an event charging service.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of communication technologies, and in particular to a billing method, apparatus and system. [Background technology]

[0002] This application was filed on August 2, 2019 in China National Intellectual Property Office This application claims priority to Chinese Patent Application No. 201910713756.3, filed on 2016-02-13, entitled "CHARGING METHOD, APPARATUS, AND SYSTEM," the entire contents of which are incorporated herein by reference.

[0003] Currently, in 4G communication system, online charging service and offline charging service are charged by using different charging systems. As shown in Fig. 1, a charging trigger function device 101 in the system 100 communicates with an online charging system 102 via an Ro interface and with an offline charging system 103 via an Rf interface. The online charging system 102 is configured to implement charging for the online charging service, and the offline charging system 103 is configured to implement charging for the offline charging service. After determining online charging or offline charging, the CTF device initiates a Diameter charging request to the online charging system 102 or the offline charging system 103. The online charging system 102 or the offline charging system 103 may implement a corresponding charging process according to a charging command and a request type in the Diameter charging request.

[0004] In the 5G communication system, a service-based online / offline converged charging message is used, and resource reservation and usage information reporting are implemented based on a rating group. When usage information is reported, the usage quota management indication carried indicates whether the usage information has a quota, and reports the usage information with a quota; or Implements reporting of usage information without quota. A quota is a quota that has been proactively granted to the CTF by a billing system. In other words, the usage quota management indication indicates whether a quota has been proactively applied from a billing system and has been granted by the billing system based on that application.

[0005] The online / offline converged charging messages used in existing 5G communication systems support session-based traffic, duration resource reservation, and usage reporting. However, the current converged charging system cannot accurately and efficiently implement event charging. Summary of the Invention

[0006] The embodiments of the present application provide a charging method, apparatus, and system for implementing charging for event charging services.

[0007] According to a first aspect, an embodiment of the present application provides a charging method. The method includes: a CHF device receives a first charging request sent by a charging trigger function CTF device, where the first charging request carries event charging information. Then, the CHF device determines a first event charging processing mode based on the event charging information, and processes the first charging request according to the first event charging processing mode. According to the method, the CHF device can determine a first event charging processing mode based on the first charging request, and perform event charging. Therefore, charging for an event charging service can be performed accurately and efficiently.

[0008] In a possible implementation, the event charging information includes indication information indicating event charging, and before determining the first event charging processing mode, the CHF device determines that the first charging request is a charging request for an event service based on the event charging indication information. Thus, the CHF device can accurately determine the request for the event charging service and then perform subsequent processing. Thus, the charging for the event charging service can be performed accurately and efficiently.

[0009] In a possible implementation, the first charging request is a creation request for a first event charging resource, and the event charging information further includes an indication parameter for one-time event charging. The CHF device determines that the first charging request is a one-time event charging request based on the indication parameter for one-time event charging, creates a first event charging resource based on the first charging request, and the first event charging resource is a first event charging resource. 3 Alternatively, the CHF determines that the first charging request is a non-one-time event charging request based on the indication parameter of one-time event charging, creates a first event charging resource based on the first charging request, and the first event charging resource is a first event charging resource. 3 The CHF device determines whether there is a subsequent third charging request for performing subsequent processing. For example, if there is no subsequent charging request, the first event charging resource is released after the charging processing is completed. Alternatively, if there is a subsequent charging request, the first event charging resource is retained.

[0010] In a possible implementation, the event charging information further includes a first event charging processing mode, and the event charging processing mode is direct deduction, offline event reporting, or application of event allocation. The CHF device may obtain the event charging processing mode directly from the first charging request to improve processing efficiency.

[0011] In a possible implementation, the first charging request carries a user identifier, and the event charging information further includes a parameter indicating a service type. The CHF device determining the first event charging processing mode based on the event charging information includes: the CHF device obtains user information based on the user identifier, and determines the first event charging processing mode based on the indication information indicating event charging, the user information, and the parameter indicating the service type, where the first event charging processing mode is direct deduction, offline event reporting, or application of event quota. The CHF device may directly obtain the event charging processing mode from the first charging request to enhance processing efficiency.

[0012] In a possible implementation, after determining that the first charging request is a non-one-time event charging request based on the indication parameters for one-time event charging, the CHF device determining an event charging processing mode based on the event charging information includes determining that the first event charging processing mode is application of an event quota.

[0013] In a possible implementation, the first event charging processing mode is direct deduction, and the CHF device processing the first charging request according to the first event charging processing mode includes performing a rating based on the first charging request, and performing a deduction from the user's account balance based on the rating result.

[0014] In a possible implementation, the first event charging processing mode is offline event reporting, and the CHF device processing the first charging request in accordance with the first event charging processing mode includes generating an event charging data record based on the first charging request.

[0015] In a possible implementation, the first event charging processing mode is application of an event quota, and the CHF device processing the first charging request according to the first event charging processing mode includes performing a rating based on the event charging information and granting an event quota based on the rating.

[0016] In a possible implementation, the CHF device further returns a first charging response to the first charging request to the CTF device, where the first charging response carries the determined first event charging processing mode.

[0017] In a possible implementation, the event charging processing mode is direct deduction, and after processing the first charging request, the CHF device receives a second charging request for the event charging service, where the second charging request includes a second event charging processing mode and an identifier of the first event charging resource, the second event charging processing mode is refund, and the display information is used to indicate to refund the deduction amount in the direct deduction performed by using the first charging request, and the identifier of the first event charging resource is obtained from the charging response to the first charging request. In addition, the CHF device determines the deduction amount in the direct deduction performed by using the first charging request based on the identifier of the first event charging resource, and refunds the deduction amount to the account balance of the user. According to the method, in the event charging service, a fee for failure to perform the event charging service is set to 0, in order to improve the accuracy of charging and the user experience. repayment will be done.

[0018] In a possible implementation, the second charging request is a creation request for a second event charging resource, and the second charging request carries an indication parameter for one-time event charging. The CHF device further creates the second event charging resource based on the second charging request.

[0019] In a possible implementation, the second charging request is an update request for the first event charging resource, and the CHF device further releases the first event charging resource based on the second charging request.

[0020] In a possible implementation, the second charging request is a release request for the first event charging resource, and the CHF device further releases the first event charging resource based on the second charging request.

[0021] In a possible implementation, the first charging request further includes a retransmission decision parameter, and after determining that the first charging request is not a retransmitted creation request for the first event charging resource based on the retransmission decision parameter, the CHF device further creates the first event charging resource. According to this method, the CHF can further determine whether the resource creation request is a retransmission request to perform accurate charging processing.

[0022] In a possible implementation, the second charging request further includes a retransmission decision parameter, and after determining that the second charging request is not a retransmitted creation request for the second event charging resource based on the retransmission decision parameter, the CHF device further creates the second event charging resource. According to this method, the CHF can further determine whether the resource creation request is a retransmission request to perform accurate charging processing.

[0023] In a possible implementation, the first charging request further carries an event identifier and / or an event amount, and processing the first charging request includes processing the charging request based on the event identifier and / or the event amount. In this manner, the generation of one or more events can be represented in one charging request to avoid performing charging processing for each occurrence of multiple charging services. In this way, charging processing is simplified.

[0024] According to a second aspect, an embodiment of the present application provides a charging method. The method includes: a CTF device determines that a charging service of an event charging service occurs, and sends a first charging request to a charging function CHF device, where the first charging request carries event charging information, and the event charging information is used to determine an event charging processing mode. The CTF device receives a first charging response of the first charging request sent by the CHF device, where the first charging response includes a result of processing the first charging request according to the determined event charging processing mode. According to the method, the CTF device carries the event charging information in the first charging request, so that the CHF device can determine the first event charging processing mode based on the first charging request and perform the event charging processing. Therefore, charging for the event charging service can be performed accurately and efficiently.

[0025] In a possible implementation, the first charging response further includes an event charging processing mode determined by the CHF.

[0026] In a possible implementation, the first event charging processing mode is direct deduction, the first charging response includes an identifier of a first event charging resource created based on the first charging request, and the CTF device receives the first charging response sent by the CHF device. Then, the CTF device further determines that the event charging service is unsuccessful to be performed, and sends a second charging request for the event charging service, where the second charging request includes indication information used to indicate to repay the deduction amount in the direct deduction performed by using the first charging request, and an identifier of the first event charging resource, and the identifier of the first event charging resource is used to determine the deduction amount in the direct deduction performed by using the first charging request. According to the method, in the event charging service, a fee for the unsuccessful performance of the event charging service is set to a value smaller than the fee for the unsuccessful performance of the event charging service, in order to improve the accuracy of charging and the user experience. repayment will be done.

[0027] In a possible implementation, the second charging request is a creation request for a second event charging resource, and the second charging request further carries an indication parameter for one-time event charging, or the second charging request Wanted , an update request for the first event charging resource, or a release request for the first event charging resource.

[0028] In a possible implementation, the first charging request or the second charging request further includes a retransmission decision parameter, and the retransmission decision parameter is used to determine that the first charging request is not a retransmitted create request for the event charging resource; and / or The second charging request further includes a retransmission decision parameter, and the retransmission decision parameter is used to determine that the second charging request is not a retransmitted creation request for the event charging resource. According to this method, the CHF can further determine whether the resource creation request is a retransmission request to perform accurate charging processing.

[0029] In a possible implementation, the CTF device determines the quantity of times the service event occurs, and the charging request further carries the event identifier and the event quantity. In this manner, the generation of one or more events can be represented in one charging request to avoid performing charging processing every time multiple event charging services occur. In this way, charging processing is simplified.

[0030] According to a third aspect, a CHF device is provided. The device has a function implementing the CHF device in the first and second aspects. The function may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the function.

[0031] According to a fourth aspect, a CTF device is provided. The device has a function of implementing the CTF device in the first and second aspects. The function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the function.

[0032] According to a fifth aspect, an embodiment of the present application provides a charging trigger function device including a non-volatile memory and a processor coupled to each other, the processor invoking program code stored in the memory to perform some or all of the steps of any of the methods in the first aspect.

[0033] According to a sixth aspect, an embodiment of the present application provides a charging function device including a non-volatile memory and a processor coupled to each other, the processor invoking program code stored in the memory to perform some or all of the steps of any of the methods in the second aspect.

[0034] According to a seventh aspect, an embodiment of the present application provides a computer-readable storage medium storing program code, the program code including instructions used to perform some or all of the steps of any of the methods of the first aspect.

[0035] According to an eighth aspect, an embodiment of the present application provides a computer-readable storage medium storing program code, the program code including instructions used to perform some or all of the steps of any of the methods of the second aspect.

[0036] According to a ninth aspect, an embodiment of the present application provides a computer program product, which when run on a computer causes the computer to perform some or all of the steps of any of the methods in the first aspect.

[0037] According to a tenth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, the computer 2 Some or all of the steps of any of the methods in the above aspects are performed.

[0038] According to an eleventh aspect, an embodiment of the present application provides a charging system including the charging function device according to the third aspect and the charging trigger function device according to the fourth aspect.

[0039] It should be understood that the technical solutions in the second to eleventh aspects of the present application are consistent with those of the first aspect, and the beneficial effects achieved by these aspects and the corresponding executable implementations are similar, and will not be described in detail again. [Brief description of the drawings]

[0040] In order to more clearly describe the technical solutions in the embodiments or background of the present application, the following describes the accompanying drawings to illustrate the embodiments or background of the present application.

[0041] [Figure 1] FIG. 1 is a schematic block diagram of a billing system in the current technology. [Diagram 2] FIG. 1 is a schematic block diagram of a network architecture according to an embodiment of the present application. [Diagram 3] FIG. 1 is a schematic block diagram of a billing system according to an embodiment of the present application. [Figure 4] FIG. 1 is a schematic block diagram of a charging framework according to an embodiment of the present application. [Diagram 5] 2 is a flow chart of a billing method according to an embodiment of the present application. [Figure 6] 2 is a flow chart of a billing method according to an embodiment of the present application. [Figure 7] 2 is a flow chart of a billing method according to an embodiment of the present application. [Figure 8]1 is a schematic block diagram of a charging function device according to an embodiment of the present application; [Figure 9] 1 is a schematic block diagram of a charging trigger function device according to an embodiment of the present application; [Figure 10] 1 is a schematic block diagram of a charging device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0042] The following describes embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

[0043] 2 is a schematic diagram of a possible network architecture to which the embodiments of the present application can be applied. The network architecture 200 is the 5th Generation mobile communication technology (5G) network architecture. The 5G architecture includes one user equipment 201, a radio access network (RAN) 202, an access andThe network may include an access and mobility management function (AMF) unit 206, a session management function (SMF) unit 205, a user plane function (UPF) unit 203, a network exposure function (NEF) unit 208, a short message service function (SMSF) unit 209, a data network (DN) 204, and a charging function (CHF) unit 207. In addition to the network elements shown in FIG. 2, the architecture in this embodiment of the present application may further include another network element or function that uses event charging, such as an Internet of Things message gateway. The communication between the functional modules in FIG. 2 may be implemented by establishing a connection via a next generation (NG) interface or a service based interface (SBI). For example, the RAN device may establish a control plane signaling connection to the AMF via an NG interface 2 (N2 for short), and the NEF device may provide external services via an SBI interface Nnef.

[0044] User equipment is a device that has radio transceiver capabilities. User equipment may be deployed on land, including indoor, outdoor, handheld, or vehicle-mounted devices, on water (e.g., on a ship), or in the air (e.g., on an aircraft, balloon, or satellite).

[0045] The following describes the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. In the description of the present application, unless otherwise specified, "plurality" means two or more. Furthermore, in order to facilitate a clear description of the technical solutions in the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish between the same objects or between similar objects whose functions and purposes are basically the same. Those skilled in the art should understand that terms such as "first" and "second" are not intended to limit the quantity or execution order, and terms such as "first" and "second" do not indicate a clear difference. "A and / or B" in the present invention can be described as including either A or B, or A and B.

[0046] 3 is a schematic diagram of a charging architecture 300 according to an embodiment of the present application. The charging architecture 300 includes a charging trigger function (CTF) unit. 31 and billing system 32 Including: Charge trigger function device 31 and billing system 32 may communicate with each other via a service-based interface. A service-based interface refers to a resource-based function exposure interface, such as RESTful and remote procedure call (RPC). Referring to the network architecture of FIG. 2, the CTF device 101 may be located in the SMF device 205. In other words, the SMF device 205 is a CTF device. 31 Integrate the functions of the billing system 32 The system includes a charging function (CHF) device 207. The CHF device 207 can perform online charging and offline charging. 32 may be a convergent billing system. 32The charging trigger function shown in FIG. 3 further includes an account balance management function (ABMF) device and a rating function (RF) device, which are necessary when charging is performed. The ABMF device is configured to store and manage the user's savings account, and the RF device is configured to perform rating on the service usage information. 31 and billing system 32 In addition, the charging architecture in this embodiment of the present application may further include a billing device. 32 may communicate with each other by using a charging gateway function (CGF) device. The CGF device may be integrated into the charging system as part of the charging system, or may be integrated into the billing device as part of the billing device, or may exist as an independent network element. The following is described in further detail.

[0047] The billing trigger function device 101 generates a billing start request and 32 In this embodiment of the present application, the charging trigger function device processes the charging start request. 31 is also considered a client and is also a billing system 32 can be considered as a server. 31 and billing system 32 may include one or more processors and memory coupled to the one or more processors. The memory may include, but is not limited to, RAM, ROM, EEPROM, flash memory, or any other medium that can be used to store desired program code in the form of computer-accessible instructions or data structures as described herein.

[0048] Figure 4 is a specific implementation of the charging architecture in Figure 3. The CHF device 207 can provide external services through a service-based interface Restful. The name of the interface is Nchf, and the CTF device 101 can access the CHF device 207 through the interface Nchf. The charging system includes the CHF device 207, the ABMF device 210, the RF device 212, and the CGF device 211.

[0049] Figure 5 is a schematic flow diagram of a charging method 500 according to the present application. The method 500 can be applied to the network architecture in Figure 2 and the charging architecture shown in Figure 3 and Figure 4. In fact, the method 500 can also be applied to another communication scenario, which is not limited to the embodiment of the present application. As shown in Figure 5, the method 500 includes the following contents:

[0050] Step 501: Configure the current service as an event charging service, and configure the charging rules of the service in the CTF device 101.

[0051] In step 501, if the CTF device 101 is located in the SMF device 205, the event charging service and charging rules may be dynamically configured by the PCF in the CTF device 101 by delivering a policy, or may be pre-configured in the CTF device 101. Optionally, if the CTF device 101 is located in another network function device, the charging rules of the event charging service are pre-configured in the CTF device 101. An operator may configure the service charging rules in the CTF device 101 to indicate that the service is an event charging service. The service charging rules further include reporting conditions and / or charging processing modes of the event charging service. The charging processing modes include (1) direct deduction, (2) reservation-based event charging (including quota application and quota usage reporting), (3) offline event reporting, (4) refund, and the like.

[0052] Direct deduction means that the CHF device 207 performs a rating based on the charging request reported by the CTF device 101, and performs a deduction from the user's account balance based on the rating result. Offline event reporting means that the CHF device 207 generates an event charging data record (CDR) based on the charging request reported by the CTF device 101, and the CDR is also called an event charging invoice. Event quota application means that the CHF device 207 performs a rating based on the charging request reported by the CTF device 101, and reserves resources in the account balance (i.e., grants the quota to the user). Quota usage reporting means that when the service meets the charging report, the usage information with the granted quota is reported. Repayment means that for the event charging service for which direct deduction is performed, if the event charging service fails to be performed, the deduction amount in the direct deduction is refunded.

[0053] In the charging processing modes, an event charging processing mode for a first charging request for resources is referred to as a first event charging processing mode. The first event charging processing mode includes direct deduction, application of event quota, or offline event reporting. The event charging processing mode for a second charging request is referred to as a second event charging processing mode. The second event charging processing mode includes refund.

[0054] In the charging processing mode, the first charging request is a creation request for a first event charging resource and is used to request the charging system to create the first event charging resource, the second charging request is a creation request for a second event charging resource and is used to request the charging system to create the second event charging resource, or the second charging request is an update request for the first event charging resource and is used to request the charging system to update the first event charging resource, or the second charging request is a release request for the first event charging resource and is used to request the charging system to release the first event charging resource after the charging data corresponding to the first event charging resource is updated.

[0055] For example, the billing request may carry the event sender and receiver, the event occurrence time, and / or the event content size.

[0056] Step 502: The CTF device 101 sends a first charging request to the CHF device 207, where the first charging request carries the event charging information.

[0057] The CTF device 101 monitors the usage of the event charging service and determines that a charging event of the event charging service occurs. The charging event is an event that needs to be charged and triggers a charging report. The CHF device 207 generates a first charging request according to the configured service charging rule. The first charging request is a create request for a first event charging resource and is sent to the CHF device 207. If the CTF device 101 is located in the SMF device 205, the charging event may be that a new PDU session is established. If the CTF device 101 is located in another functional device of the system, the charging event may be that the CTF device 101 receives an invoke message of a network function API or returns an invoke response to a network function API.

[0058] The event charging information includes indication information indicating event charging, and is used to determine that the first charging request is a charging request for an event service. The indication information indicating event charging may be a dedicated identifier, or may be any event charging parameters (e.g., an event service identifier, an indication parameter for one-time event charging, an indication parameter for non-one-time event charging, and an event charging processing mode, etc.).

[0059] The event charging information further includes an indication parameter for one-time event charging or an indication parameter for non-one-time event charging, wherein the indication parameter for one-time event charging indicates that after the first event charging resource is created based on the first charging request, the first event charging resource has no subsequent charging request.

[0060] The resource event charging resource creation may further carry a first event charging processing mode. The first event charging processing mode may be direct deduction, application of event quota, or offline event reporting. In addition, the resource event charging resource creation may further carry one or more of an event identifier, an event amount, a retransmission decision parameter, event details, etc. The event amount indicates the quantity of times the event occurs. The event identifier indicates a service event, for example, indicating that the service event is an API invocation or an SMS transmission.

[0061] Step 503: The CHF device 207 performs charging processing for the event charging service based on the first charging request.

[0062] For example, when the first charging request is a creation request for a first event charging resource, the CHF device 207 creates a first event charging resource for the first charging request and allocates a resource identifier to the first event charging resource.

[0063] In particular, the CHF device 207 needs to further determine whether the first charging request is a one-time event charging request, and if the CHF device 207 determines that the first charging request is a one-time event charging request, the CHF device 207 determines that the first event charging resource does not have a subsequent charging request. Thus, after creating a charging resource based on the first charging request and performing a charging process, the CHF device 207 no longer holds the context of the first event charging resource, for example, releasing the first event charging resource or storing the first event charging resource in a database. Alternatively, if the CHF device 207 determines that the first charging request is a non-one-time event charging request, the CHF device 207 creates a first event charging resource based on the first charging request, determines that the first event charging resource has a subsequent charging request to release the first event charging resource, and holds the context of the first event charging resource to allow subsequent charging requests to be processed. A specific method for the CHF device 207 to determine whether the first charging request is a one-time event charging includes: if the event charging information further includes an indication parameter of one-time event charging, the CHF device 207 determines that the first charging request is a one-time event charging request or a non-one-time charging request based on the indication parameter of one-time event charging. If the first charging request does not carry the parameter of one-time event charging but carries information for determining a charging processing mode, the CHF device 207 further determines whether the first charging request is a one-time event charging request according to the determined charging processing mode. For example, if the determined event charging processing mode is direct deduction or offline event reporting, the CHF device 207 determines that the first charging request is a one-time event charging request. If the determined event charging processing mode is resource reservation, the CHF device 207 determines that the first charging request is a non-one-time event charging request.If the event charging information further includes an event charging processing mode, the event charging processing mode is direct deduction, offline event reporting, or application of event allocation. The CHF device 207 may implement direct deduction, offline event reporting, or application of event allocation to the service according to the event charging processing mode carried in the resource event charging resource creation.

[0064] If the event charging information does not include the first event charging processing mode, the CHF device 207 may determine a first event charging processing mode based on the first charging request, and process the first charging request according to the determined first event charging processing mode. The determined first event charging processing mode may be direct deduction, application of event quota, or offline event reporting. For example, the CHF device 207 may obtain user information based on a user identifier carried in the first charging request, and determine the event charging processing mode based on the obtained user information. Alternatively, the CHF device 207 may determine the event charging processing mode based on a service type parameter in the first charging request, such as, for example, an API-initiated service type. Alternatively, the CHF device 207 may determine the event charging processing mode based on a service status parameter in the first charging request. The CHF device 207 may alternatively determine the event charging processing mode by referring to some of the aforementioned information, such as, for example, by referring to the user information and the service type.

[0065] If the event charging information does not include an event charging processing mode, the CHF device 207 determines, based on the event charging indication information, that the first charging request is an event BillingThe CHF device 207 may determine that the first charging request is for a service, obtain user information based on a user identifier in the first charging request, and determine an event charging processing mode based on the user information. Alternatively, the CHF device 207 may determine an event charging processing mode based on a parameter of a service type or a parameter of a service status included in the event charging information. Alternatively, the CHF device 207 may determine an event charging processing mode by referring to some of the aforementioned information, such as by referring to the user information and the service type.

[0066] If the event charging information does not include an event charging processing mode, the CHF device 207 may further determine the event charging processing mode based on an indication parameter of non-one-time event charging included in the event charging information. In particular, if the event charging information includes an indication parameter of non-one-time event charging, the CHF device 207 determines that the first event charging processing mode is application of event quota.

[0067] The event charging information further includes a retransmission decision parameter. Before creating the first event charging resource for the first charging request, the CHF device 207 creates the first event charging resource after determining that the first charging request is not a retransmitted creation request for the first event charging resource based on the retransmission decision parameter. The retransmission decision parameter may be a globally unique dedicated identifier, or may be a combination of a user identifier and a service-specific identifier. The service-specific identifier is unique only in the user domain.

[0068] Step 504: The CHF device 207 sends a first charging response to the first charging request to the CTF device 101, where the first charging response carries an identifier of the first event charging resource.

[0069] Optionally, if the first charging request does not carry the first event charging processing mode, the first charging response further carries a first event charging processing mode determined by the CHF device 207, such as, for example, direct deduction, application of event quota, or offline event reporting.

[0070] Step 505: The CTF device 101 sends a second billing request to the CHF device 207 to request to refund the deduction amount of the first billing request.

[0071] The second charging request may be a create request for the second event charging resource, or an update request for the first event charging resource, or a delete request for the first event charging resource.

[0072] When the first event processing mode is direct deduction, the CTF device 101 determines that the event charging service fails to be implemented, and the CTF device 101 sends a second charging request to the event charging service. The second charging request can be a creation request for the second event charging resource, or an update request for the first event charging resource, or a deletion request for the first event charging resource. Preferably, the second charging request is a creation request for the second event charging resource. The second charging request includes a second event charging processing mode and an identifier of the first event charging resource, and the second event processing mode is refund. The second event charging processing mode is used to indicate to refund the deduction amount in the direct deduction implemented by using the first charging request. The identifier of the first event charging resource is used to determine the deduction amount in the direct deduction implemented by using the first charging request.

[0073] For example, if the event charging service fails to be implemented and the first event charging processing mode is direct deduction, the second charging request may be as follows: Charge Creation Request { oneEventCharging:True eventCHMethod:Refund }

[0074] Here, "create charging request" indicates that the second charging request is a resource create request. The second charging request carries a one-time event charging parameter "oneEventcharging", which is used to indicate whether there is a subsequent event charging request. The value of oneEventcharging is true, indicating that there is no subsequent resource update charging request or resource delete charging request. The resource update charging request further carries a second event charging processing mode "eventCHMethod". The value of the second event charging processing mode is refund, indicating that the event charging processing mode is refund.

[0075] Step 506: The CHF device 207 performs charging processing based on the second charging request, and returns a second charging response to the second charging request to the CTF device 101.

[0076] The second charging request may be an update request or a deletion request for the first event charging resource, and includes a second event charging processing mode. The second event charging processing mode is refund. The second event processing mode indicates to the CHF device 207 to refund the deduction amount in the direct deduction performed by using the first charging request. The CHF device 207 determines the deduction amount in the direct deduction performed by using the first charging request, and refunds the deduction amount to the user's account balance. In addition, the CHF device 207 further releases the first event charging resource based on the second charging request. The response to the second charging request is the result of the refund operation.

[0077] In another implementation, a second charge requestmay be a creation request for a second event charging resource, where the second charging request carries a second event charging processing mode and an identifier of the first event charging resource, and the second event charging processing mode is refund, which is used to indicate to the CHF device 207 to refund the deduction amount in the direct deduction performed by using the first charging request. The second charging request may further carry an indication parameter of the one-time event charge. The CHF device 207 creates a second event charging resource based on the second charging request, determines the deduction amount in the direct deduction performed by using the first charging request based on the identifier of the first event charging resource, and returns the deduction amount to the user's account balance.

[0078] Optionally, the second charging request further includes a retransmission decision parameter. After determining based on the retransmission decision parameter that the second charging request is not a retransmitted creation request for the second event charging resource, the CHF device 207 creates the second event charging resource.

[0079] Step 507 : The CTF device 101 sends a third billing request to the CHF device 207 .

[0080] When the first charging request is a resource creation request and the first charging processing mode is application of event allocation, the CTF device further sends a third charging request to the CHF after completing the execution of the event charging service, the third charging request carrying a third charging processing mode, i.e., offline event reporting.

[0081] The third charging request may be a resource update request or a resource deletion request. The third charging request may further include an identifier of the first event charging resource.

[0082] Step 508: The CHF device 207 performs charging processing based on the second charging request, and returns a third charging response to the third charging request to the CTF device 101.

[0083] After receiving the third charging request, the CHF device 207 generates a CDR according to the third charging processing mode, and returns a third charging response to the CTF device.

[0084] According to the above-mentioned method, the CHF device 207 can implement event charging by using a converged charging system, and thus the method for processing event charging by the CTF is consistent with the method for processing event charging by the charging system, so as to avoid inconsistency between the processing performed by the charging system and the processing performed by the CTF for the service, and further prevent operator losses or impacts on the user's service experience.

[0085] Figure 6 is a detailed flow diagram of the corresponding processing performed by the CHF device 207 after the CHF device 207 receives the charging request sent by the CTF device 101 according to an embodiment of the present application. In this embodiment, the first charging request sent by the CTF device 101 does not carry the event charging processing mode, and the CHF device 207 determines the event charging processing mode based on the user information and / or service information. The procedure corresponding to Figure 6 includes the following steps:

[0086] Step 601: The CHF device 207 receives a first billing request sent by the CTF device 101. For the first billing request, please refer to the description of step 502.

[0087] In one example, the first charging request may be a create request for a first event charging resource as follows: Charging Create Request { oneEventCharging: true }

[0088] In this specification, "Create Charging Request" indicates that the message is the first charging request. The first charging request carries a one-time charging parameter "oneEventcharging", which is used to indicate whether there is a subsequent third charging request. If the value of "oneEventcharging" is true, it indicates that there is no subsequent third charging request. The third charging request is a resource update charging request or a resource delete charging request.

[0089] Optionally, the first charging request may further carry an event identifier and / or an event amount. The CTF device 101 allocates an event identifier to each type of charging event of each service. That is, the event identifier indicates the type of the event. For example, the event identifier allocated to the network capability API that queries the user status is NEF_GetUserStatus. The event amount indicates the quantity of occurrences of the event. For example, when the event amount is 3, it indicates that the network capability of the user status has been queried three times. If the charging request does not carry event data, it indicates that the quantity of occurrences of the event is 1. An example of resource event charging resource creation carrying an event identifier and an event amount is as follows: Charging Create Request { Multiple Unit Usage Requested Unit EventID:NEF_GetUserStatus EventNum:1 }

[0090] In this specification, "E v "entID:NEF_GetUserStatus" indicates that the event identifier is NEF_GetUserStatus. In this specification, "EventNum:1" indicates that the quantity of times the event has been used is 1.

[0091] Step 602: The CHF device 207 determines that the first charging request is a charging request for an event service.

[0092] The first charging request carries display information indicating event charging, and the CHF device 207 determines whether the first charging request is an event charging request based on the display information indicating event charging. Billing It is determined that the first charging request is a charging request for a service. Therefore, it is determined that the CHF device 207 needs to determine a first event charging processing mode for the first charging request. The indication information indicating event charging may be a dedicated identifier, or may be any event charging parameters (e.g., an event service identifier, an indication parameter for one-time event charging, an indication parameter for non-one-time event charging, and an event charging processing mode).

[0093] In one example, the CHF device 207 determines whether the first charging request is an event based on oneEventcharging (i.e., a one-time charging request parameter). Billing Alternatively, the first charging request may carry an event service identifier (e.g., an event ID), and the CHF device 207 may determine that the first charging request is a charging request for an event service. Billing Based on the service identifier, a first charging request is generated for the event Billing It is determined that this is a request for billing for the service.

[0094] Step 603: The CHF device 207 determines a first event charging processing mode based on the first charging request.

[0095] The CHF device 207 may determine a first event charging processing mode of the first charging request based on a user identifier, a service type parameter, or a service state parameter in the first charging request. For example, the first charging request carries a service state parameter indicating a service state. If the service state is before the service occurs, the charging processing performed by the CHF device 207 is direct deduction. If the service state is after the service occurs, the charging processing performed by the CHF device 207 is to generate a CDR. In one example, the service state parameter may be a service request or a service response. For the service request, the CHF device 207 may determine based on the service state parameter that the event charging service state is before the service occurs. For the service response, the CHF device 207 may determine based on the service state parameter that the event charging service state is after the service occurs.

[0096] Optionally, the CHF device 207 may further obtain user information based on a user identifier in the first charging request, determine that the user of the charging request is a prepaid user, determine that the first event charging processing mode is direct deduction, and perform direct deduction on the charging request. Alternatively, the CHF device 207 may determine that the user of the charging request is a postpaid user, determine that the first event charging processing mode is offline event reporting, and generate a CDR based on the charging request.

[0097] Optionally, the CHF device 207 may further determine an event charging processing mode based on an indication parameter of one-time event charging included in the event charging information. Specifically, when the event charging information includes an indication parameter of one-time event charging, which indicates that the first charging request has a subsequent third charging request, the CHF device determines that the first event charging processing mode is application of event quota.

[0098] Step 604: The CHF device 207 determines whether the first charging request is a one-time charging request. If the first charging request is a one-time charging request, step 605 is performed. If the first charging request is not a one-time charging request, step 609 is performed.

[0099] The first charging request carries a parameter of one-time event charging (e.g., oneEventCharging). If the value of the parameter of one-time event charging is true, the CHF device 207 determines that the first charging request is a one-time charging request, i.e., the event charging service does not have a subsequent third charging request. If the value of the parameter of one-time event charging is false, the CHF device 207 determines that the first charging request is a non-one-time charging request, i.e., the event charging service has a subsequent third charging request.

[0100] The first billing request is a one-time event Billing to indicate that the first charging request is a non-one-time charging request may be the following example: Charging Create Request { Multiple Unit Usage Requested Unit EventID:NEF_GetUserStatus EventNum:1 oneEventCharging:false }

[0101] In this specification, the charging create request indicates that the message is a create request for an event charging resource. In this specification, "Multiple Unit Usage" indicates the usage of a service unit. For example, Event ID indicates an event identifier, and NEF_GetUserStatus indicates that the event identifier is NEF_GetUserStatus. EventNum indicates that for an event charging service, the quantity of the occurrences of the event is 1. In this specification, the parameter "oneEventcharging" of one-time charging carried in the resource event charging resource create is used to indicate whether there is a subsequent charging request. If the value of "oneEventcharging" is false, it indicates that there is a subsequent resource update charging request or resource delete charging request, i.e., the first charging request is a non-one-time charging request.

[0102] Step 605: The CHF device 207 performs charging according to the determined first event charging mode.

[0103] If the first event charging processing mode is direct deduction, the CHF device 207 performs grading based on the first charging request, and performs deduction from the user's account balance based on the grading result. Grading means that if the user's account balance is sufficient, CHF calculates the amount of currency units that represent the price, and deducts the calculated amount from the user's account balance based on the amount of the requested unit or internal unit.

[0104] If the first event charging processing mode is offline event reporting, an event charging data record is generated based on the first charging request.

[0105] If the first event charging mode is applying an event quota, a rating is performed based on the event charging information, and an event quota is granted based on the rating.

[0106] Because the first charging request is a one-time charging request, after performing charging processing for the first charging request, the CHF device 207 still needs to release the first event charging resource.

[0107] Step 606: The CHF device 207 returns a first charging response to the first charging request to the CTF device.

[0108] The first charging response carries a first event charging processing mode determined by the CHF device 207. The first event charging processing mode determined by the CHF device 207 is direct deduction or CDR generation.

[0109] The first charging response further carries the event resource identifier created by the CHF device 207. The first event resource identifier is carried in a message header of the resource creation charging response.

[0110] The resource creation charging response may be: Charging Create Response { EventChargingHandling: {Debit or Record}

[0111] In this specification, "Charging Create Response" indicates creating a charging response for a resource. In this specification, "EventChargingHandling" parameter carries a first event charging handling mode determined by the CHF device 207, where "Debit" indicates that the charging handling mode determined by the CHF device 207 is direct deduction. In this specification, "Record" indicates that the charging handling mode determined by the CHF is to generate a CDR, and this charging handling mode corresponds to offline event reporting.

[0112] Step 607 : The CHF device 207 receives the second billing request sent by the CTF device 101 .

[0113] When the first event charging processing mode is direct deduction, after receiving the first charging response, the CTF device 101 determines that the event charging service fails to be implemented, and the CTF device 101 sends a second charging request for the event charging service, where the second charging request includes indication information used to indicate to refund the deduction amount in the direct deduction implemented by using the first charging request, and an identifier of the first event charging resource, and the identifier of the first event charging resource is used to determine the deduction amount in the direct deduction implemented by using the first charging request.

[0114] For a detailed description of the second billing request, please refer to the description of step 505. In this embodiment of the present application, the details are not described again.

[0115] Step 608: The CHF device 207 returns a second charging response to the second charging request to the CTF device, where the charging response carries the charging processing mode determined by the CHF device 207. The charging processing mode determined by the CHF device 207 is direct deduction or application of event allocation.

[0116] For an explanation of step 608, please refer to step 506. This embodiment of the present invention will not be described in detail herein.

[0117] Step 609: The CHF device 207 performs charging according to the first event charging mode carried in the first charging request.

[0118] The first event charging processing mode is applying an event allocation, specifically, performing a rating based on the event charging information, granting a first event charging resource allocation based on the rating, and allocating an identifier of the first event charging resource based on the rating.

[0119] Step 610: The CHF device 207 returns a first charging response to the first charging request to the CTF device.

[0120] The first charging response carries a first event charging mode determined by the CHF device. The first event charging mode determined by the CHF device is an allocation grant. The first charging response further carries a first event resource identifier created by the CHF device 207. The event resource identifier is carried in a message header of the resource creation charging response.

[0121] Step 611 : The CHF device 207 receives the third billing request sent by the CTF device 101 .

[0122] After completing the execution of the event charging service, the CTF device sends a third charging request to the CHF device 207. The second charging request may be an update request or a delete request for the first event charging resource. The third charging request carries the first event resource identifier.

[0123] Moreover, the second charging request may further carry a second event processing mode, where the second event processing mode is quota usage reporting. The CHF device 207 generates an event charging data record according to the second event processing mode.

[0124] Step 612: The CHF device 207 returns a third charging response to the third charging request to the CTF device.

[0125] Optionally, the charging request of step 601 or 607 may further carry a retransmission decision parameter. After it is determined based on the retransmission decision parameter that the resource event charging resource is not a retransmitted resource creation request, a first event charging resource or a second event charging resource is created based on the charging request. The retransmission decision parameter may be a retransmission identifier, an event identifier, or a message identifier of a previous charging request, etc. After receiving the charging request carrying the retransmission decision parameter, the CHF device 207 returns the processing result for the previous charging request to the CTF device based on the retransmission decision parameter. Furthermore, after determining that the previous charging request is successfully processed, the CHF device 207 returns the processing result for the previous charging request. Or, after determining that the previous charging request is unsuccessfully processed, the CHF device 207 processes the charging request carrying the retransmission decision parameter and returns the processing result.

[0126] According to this method, the CHF device 207 may determine a first event charging processing mode based on a first charging request, so as to avoid inconsistency between the processing performed by the charging system for the service and the processing performed by the CTF, and may further prevent operator losses or impacts to the user's service experience.

[0127] Figure 7 is a detailed flow diagram of the corresponding processing performed by the CHF device 207 after the CHF device 207 receives a charging request sent by the CTF device 101 according to an embodiment of the present application. In this embodiment, the first charging request sent by the CTF device 101 carries a first event charging processing mode, and the CHF device 207 determines the first event charging processing mode according to the first event charging processing mode carried in the first charging request. The procedure corresponding to Figure 7 includes the following steps:

[0128] Steps 701 The CHF device 207 receives the first billing request sent by the CTF device 101. For the first billing request, see the description of step 502.

[0129] In one example, the first charging request may be a create request for a first event charging resource as follows: Charging Create Request { oneEventCharging:true eventCHMethod:debit }

[0130] In this specification, "charging creation request" indicates that the first charging request is a charging resource creation request. The first charging request carries a parameter "oneEventcharging" of one-time charging, and the parameter of one-time charging is used to indicate whether there is a subsequent third charging request. If the value of "oneEventcharging" is true, it indicates that there is no subsequent third charging request. The third charging request is a resource update charging request or a resource delete charging request. In this specification, "eventCHMethod" is a first event charging processing mode, and the value of the first event charging processing mode can be direct deduction (debit), offline event reporting (recording), or applying event quota (reservation).

[0131] Optionally, the first billing request may further carry an event identifier and / or an event amount, see the description of step 601 for examples.

[0132] Step 702: The CHF device 207 determines that the first charging request is a charging request for an event service. For a detailed description of step 702, please refer to the description of step 602. This embodiment of the present invention will not be described in detail again in this specification.

[0133] Step 703: The CHF device 207 determines a first event charging processing mode based on the first charging request.

[0134] The first charging request carries a first event charging mode, and the CHF device 207 determines the first event charging mode based on the first charging request.

[0135] Step 704: The CHF device 207 determines whether the first charging request is a one-time charging request. If the first charging request is a one-time charging request, step 705 is performed. If the first charging request is not a one-time charging request, step 709 is performed.

[0136] For a detailed description of step 704, please refer to step 604. In this embodiment of the present application, details will not be described again herein.

[0137] Step 705: The CHF device performs charging according to the determined first event charging mode. For a detailed description of step 705, please refer to step 605. In this embodiment of the present application, details are not described again in this specification.

[0138] Step 706: The CHF device 207 returns a first charging response to the first charging request to the CTF device.

[0139] The first charging response carries the event resource identifier created by the CHF device 207. The first event resource identifier is carried in a message header of the resource creation charging response.

[0140] Step 707: The CHF device 207 receives the second charging request sent by the CTF device 101. For a detailed description of step 707, please refer to step 607. In this embodiment of the present application, details will not be described again in this specification.

[0141] Step 708: The CHF device 207 returns a second charging response to the second charging request to the CTF device.

[0142] For an explanation of step 708, please refer to step 506. This embodiment of the present invention will not be described in detail herein.

[0143] Step 709: The CHF device 207 performs charging according to the first event charging mode carried in the first charging request.

[0144] The first event charging processing mode is applying an event allocation, specifically, performing a rating based on the event charging information, granting a first event charging resource allocation based on the rating, and allocating an identifier of the first event charging resource based on the rating.

[0145] Step 710: The CHF device 207 returns a first charging response to the first charging request to the CTF device.

[0146] The first charging response carries the first event resource identifier created by the CHF device 207. The event resource identifier is carried in a message header of the resource creation charging response.

[0147] Step 711: The CHF device 207 receives the third charging request sent by the CTF device 101. For a detailed description of step 711, please refer to step 611. In this embodiment of the present application, details will not be described again in this specification.

[0148] Step 712: The CHF device 207 returns a third charging response to the third charging request to the CTF device.

[0149] Optionally, step 701 or 707The charging request may further carry a retransmission decision parameter. After it is determined based on the retransmission decision parameter that the resource event charging resource is not a retransmitted resource creation request, a first event charging resource or a second event charging resource is created based on the charging request. The retransmission decision parameter may be a retransmission identifier, an event identifier, or a message identifier of a previous charging request, etc. After receiving the charging request carrying the retransmission decision parameter, the CHF device 207 returns a processing result for the previous charging request to the CTF device based on the retransmission decision parameter. Furthermore, after determining that the previous charging request is successfully processed, the CHF device 207 returns a processing result for the previous charging request. Or, after determining that the previous charging request is unsuccessfully processed, the CHF device 207 processes the charging request carrying the retransmission decision parameter and returns a processing result.

[0150] According to this method, the CHF device 207 may implement charging of the event charging service by using a converged charging system. The first charging request carries a first event charging processing mode, and the CHF device 207 may directly perform processing according to the first event charging processing mode. This avoids the inconsistency between the processing performed by the charging system for the service and the processing performed by the CTF, and further prevents the loss of the operator or the impact on the user's service experience.

[0151] The above mainly describes the solutions provided in the embodiments of the present application from the perspective of the interaction between network elements. It can be understood that in order to implement the aforementioned functions, devices such as charging function devices and charging trigger function devices include corresponding hardware structures and / or software modules for implementing those functions. Those skilled in the art will easily realize that the present application can be implemented by hardware, or a combination of hardware and computer software, in combination with the example modules and algorithm steps described in the embodiments disclosed herein. Whether the functions are implemented by hardware or by hardware driven by computer software depends on the specific application field and design constraints of these technical solutions. Those skilled in the art may use different methods to implement the described functions for each specific application field, but the implementation should not be considered to go beyond the scope of the present application.

[0152] In the embodiment of the present application, based on the above-mentioned method example, functional module division may be implemented for devices such as the CTF device 101 and the CHF device 207. For example, each functional module may be obtained by division corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware or in the form of a software function module. It should be noted that in the embodiment of the present application, the module division is an example and is merely a logical function division. In actual implementation, another division method may be used.

[0153] For example, when the function module is obtained by integral division, FIG. 8 is a schematic diagram of the structure of the device 800. The device 800 can be the charging function device 207 in the above embodiment, or can be a chip in the charging function device 207. This is not particularly limited in the embodiment of the present application. As shown in FIG. 8, the device includes a receiving module 801, a determining module 802, a processing module 803 and a sending module 804.

[0154] Reception Module 801 is configured to receive a first charging request sent by a charging trigger function CTF device, where the first charging request carries event charging information. Module 802 is configured to determine a first event charging processing mode based on the event charging information. Module 803 is configured to process the first charging request according to a first event charging processing mode.

[0155] Optionally, the event charging information includes indication information indicating the event charging, Module 802 is further configured to determine, based on the event charging indication information, that the first charging request is a charging request for an event service.

[0156] Optionally, the first charging request is a creation request for a first event charging resource, and the event charging information further includes an indication parameter for one-time event charging.

[0157] The determination module 802 is further configured to determine that the first charging request is a one-time event charging request based on the indication parameter of the one-time event charging, and the processing module 803 is further configured to create a first event charging resource based on the first charging request, and the determination module 802 is further configured to determine that the first event charging resource does not have a second charging request.

[0158] Alternatively, the determination module 802 is further configured to determine that the first charging request is a non-one-time event charging request based on the indication parameters of the one-time event charging, the processing module 803 is further configured to create a first event charging resource based on the first charging request, and the determination module 802 is further configured to determine that the first event charging resource has a second charging request.

[0159] Optionally, the first charging request carries a user identifier and the event charging information further includes a parameter indicating a service type, and the determination module 802 determining a first event charging processing mode based on the event charging information includes obtaining user information based on the user identifier, and determining the first event charging processing mode based on the display information, the user information, and / or the parameter indicating the service type indicating event charging, where the first event charging processing mode is direct deduction, offline event reporting, or application of event allocation.

[0160] Optionally, after the determination module 802 determines that the first charging request is a non-one-time event charging request based on the indication parameters of the one-time event charging, the determination module 802 determining an event charging processing mode based on the event charging information includes determining that the first event charging processing mode is application of an event quota.

[0161] Optionally, the first event charging processing mode is a direct deduction, and the processing module 803 processes the first charging request according to the first event charging processing mode. based on This includes performing a rating and performing deductions from the user's account balance based on the rating results.

[0162] Optionally, the first event charging processing mode is offline event reporting, and the processing module 803 processing the first charging request according to the first event charging processing mode includes generating an event charging data record based on the first charging request.

[0163] Optionally, the first event charging processing mode is application of an event quota, and the processing module 803 processing the first charging request according to the first event charging processing mode includes performing a rating based on the event charging information and granting an event quota based on the rating.

[0164] Optionally, the CHF device 207 includes a sending module configured to return a charging response to the first charging request to the CTF device 101. 804 wherein the charging response carries the determined first event charging mode.

[0165] Optionally, the event charging processing mode is direct deduction, and after processing the first charging request: The receiving module 801 further receives a second charging request for the event charging service, where the second charging request includes a second event charging processing mode and an identifier of the first event charging resource, the second event charging processing mode is refund and is display information used to indicate to refund the deduction amount in the direct deduction performed by using the first charging request, and the identifier of the first event charging resource is obtained from a charging response to the first charging request.

[0166] The determination module 802 is further configured to determine, based on the identifier of the first event charging resource, a deduction amount in the direct deduction performed by using the first charging request.

[0167] The processing module 803 is further configured to refund the deduction amount to the user's account balance.

[0168] Optionally, the second charging request is a creation request for a second event charging resource, the second charging request carrying indication parameters for the one-time event charging, and the processing module 803 is further configured to create the second event charging resource based on the second charging request.

[0169] Optionally, the second charging request is an update request for the first event charging resource, and the processing module 803 is further configured to release the first event charging resource based on the second charging request.

[0170] Optionally, the second charging request is a release request for the first event charging resource, and the processing module 803 is further configured to release the first event charging resource based on the second charging request.

[0171] Optionally, the first charging request further includes a retransmission decision parameter, where the determination module 802 is further configured to determine, based on the retransmission decision parameter, that the first charging request is not a retransmitted creation request for the first event charging resource. The processing module 803 is further configured to create the first event charging resource.

[0172] Optionally, the second charging request further includes a retransmission decision parameter, where the determination module 802 is further configured to determine, based on the retransmission decision parameter, that the second charging request is not a retransmitted creation request for the second event charging resource. The processing module 803 is further configured to create the second event charging resource.

[0173] Optionally, the charging request further carries an event identifier and / or an event amount, and the processing module 803 processing the first charging request includes processing the first charging request based on the event identifier and / or the event amount.

[0174] 9 is a schematic structural diagram of a CTF device 900. The CTF device 900 can be the charging trigger function device 101 of the above embodiment, or can be a chip in the charging trigger function device 101. This is not particularly limited in the embodiment of the present application. As shown in FIG. 9, the CTF device includes a receiving module 901, a determining module 902, and a sending module 903.

[0175] The determination module 902 is configured to determine that a charging event of the event charging service has occurred, the sending module 903 is configured to send a first charging request to the charging function CHF device 207, where the first charging request carries event charging information, and the event charging information is used to determine an event charging processing mode, and the receiving module 901 is configured to receive a first charging response that is of the first charging request and sent by the CHF device, where the first charging response includes a result of processing the first charging request according to the determined event charging processing mode.

[0176] Optionally, the first event charging processing mode is direct deduction, and the first charging response includes an identifier of a first event charging resource created based on the first charging request, and after the receiving module 901 receives the first charging response sent by the CHF device 207, the determination module 902 is further configured to determine that the event charging service has failed to be implemented.

[0177] The sending module 903 is further configured to send a second charging request for the event charging service, where the second charging request includes display information used to indicate to repay a deduction amount in the direct deduction performed by using the first charging request and an identifier of a first event charging resource, and the identifier of the first event charging resource is used to determine the deduction amount in the direct deduction performed by using the first charging request.

[0178] 10 is a schematic block diagram of an implementation of a charging trigger function device or charging function device (sometimes referred to herein for short as charging device 1000) according to an embodiment of the present application. The charging device 1000 may include a processor 1010, a memory 1030, and a bus system 1050. The processor and the memory are connected by the bus system. The memory is configured to store instructions. The processor is configured to execute the instructions stored in the memory. Charge trigger function device or charge function deviceThe memory may store program codes, and the processor may call the program codes stored in the memory to implement various billing processing methods described in the present application, such as the processing steps described in the embodiments of Figures 5 to 7. To avoid repetition, details will not be described herein.

[0179] In this embodiment of the application, the processor 1010 may be a Central Processing Unit (abbreviated "CPU"), or the processor 1010 may be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.

[0180] The memory 1030 may include a read-only memory (ROM) device or a random access memory (RAM) device. Alternatively, any other storage device of a suitable type may be used as the memory 1030. 1030 The memory 1030 may include code and data 1031 that is accessed by the processor 1010 via the bus 1050. The memory 1030 may further include an operating system 1033 and application programs 1035. The application programs 1035 include at least one program that enables the processor 1010 to implement the billing methods described herein. For example, the application programs 1035 may include applications 1 through N, and may further include a billing application (abbreviated as Billing Application) that implements the billing methods described herein.

[0181] The bus system 1050 may further include a power bus, a control bus, a status signal bus, etc. in addition to a data bus, although for clarity of explanation, various types of buses are illustrated in the figures as the bus system 1050.

[0182] Optionally, the charging device 1000 may further include one or more input / output devices, such as a transceiver 1070. The transceiver 1070 is configured to communicate with another network function device.

[0183] Those skilled in the art will appreciate that the functions described with reference to the various exemplary logical blocks, modules, and algorithm steps disclosed and described herein may be implemented by hardware, software, firmware, or any combination thereof. When an embodiment is implemented by software, the functions described with reference to the exemplary logical blocks, modules, and steps may be stored on or transmitted over a computer-readable medium as one or more instructions or code and implemented as a hardware-based process. Module The computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or a communication medium, which includes any medium that facilitates transfer of a computer program from one place to another (e.g., according to a communication protocol). As such, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code, and / or data structures for implementing the techniques described in this application. A computer program product may include a computer-readable medium.

[0184] In one example, but not limited to, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other compact disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that is accessible by a computer. Furthermore, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or another remote source over coaxial cable, fiber optic, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, and in fact refer to non-transitory tangible storage media. Disk as used herein refers to a medium that is not transitory, tangible, or non-transitory. Q is , compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs. Magnetic discs usually reproduce data magnetically, while optical discs reproduce data optically using a laser. Combinations of the above items are also intended to be included within the scope of computer readable media.

[0185] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Thus, the term "processor" as used herein may refer to any one of the foregoing or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described with reference to the exemplary logic blocks, modules, and steps described herein may be provided in dedicated hardware and / or software modules configured to perform encoding and decoding, or may be incorporated in a combined codec. Furthermore, these techniques may be implemented entirely within one or more circuits or logic elements.

[0186] The technology of this application may be implemented in various apparatus or devices, including an integrated circuit (IC) or a group of ICs (e.g., a chipset). Module Although the embodiments have been described to emphasize functional aspects of apparatus configured to implement the disclosed techniques, these may be implemented using different hardware. Module In reality, as mentioned above, Module However, the codec hardware in combination with appropriate software and / or firmware Module Hardware that can be coupled to or interoperable with Module (including one or more of the processors described above).

[0187] The above description is merely a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any variations or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.

Claims

1. A billing method, comprising: receiving, by a charging function device, a first charging request sent by a charging trigger function device, the first charging request carrying event charging information, the event charging information including an indication parameter of one-time event charging; determining, by the charging function device, based on the indication parameter of one-time event charging, that the first charging request is a one-time event charging request and there is no subsequent charging request after a first event charging resource is created based on the first charging request; or determining, by the charging function device, based on the indication parameter of one-time event charging, that the first charging request is a non-one-time event charging request and there is a subsequent charging request after the first event charging resource is created based on the first charging request; determining a first event charging processing mode by the charging function device based on the event charging information; processing, by the charging function device, the first charging request according to the first event charging processing mode; The method includes:

2. The event charging information includes display information indicating an event charge, and the method further comprises: determining, based on the indication information indicating the event charging, that the first charging request is a charging request for an event charging service; The method of claim 1 further comprising:

3. The first charging request is a creation request for the first event charging resource, and the method includes: determining, based on the indication parameter of one-time event charging, that the first charging request is the one-time event charging request, creating the first event charging resource based on the first charging request, and determining that the first event charging resource does not have a third charging request; or determining, based on the indication parameter of a one-time event charge, that the first charging request is the non-one-time event charging request, creating the first event charging resource based on the first charging request, and determining that the first event charging resource has a third charging request. The method of claim 1 or 2, further comprising:

4. The method of claim 1 , wherein the event charging information further comprises the first event charging processing mode, the event charging processing mode being direct deduction, offline event reporting, or application of event quota.

5. The first event charging processing mode is the direct deduction, and the step of processing the first charging request according to the first event charging processing mode includes the steps of performing a rating based on the first charging request, and performing a deduction from a user's account balance based on a rating result; or the first event charging processing mode is the offline event reporting, and processing the first charging request in accordance with the first event charging processing mode includes generating an event charging data record based on the first charging request; or 5. The method of claim 4, wherein the first event charging processing mode is application of the event quota, and the step of processing the first charging request in accordance with the first event charging processing mode includes the steps of: performing a rating based on the event charging information; and granting an event quota based on the rating.

6. The event charging processing mode is the direct deduction, and after the step of processing the first charging request, the method further comprises: receiving a second charging request for an event charging service, the second charging request including a second event charging processing mode and an identifier of the first event charging resource, the second event charging processing mode being a refund and being indication information used to indicate a refund of a deduction amount in the direct deduction performed by using the first charging request, the identifier of the first event charging resource being obtained from a charging response to the first charging request; determining the deduction amount in the direct deduction performed by using the first charging request based on the identifier of the first event charging resource; crediting said deduction to said account balance of said user; The method of claim 5 further comprising:

7. the second charging request is a creation request for a second event charging resource, the second charging request carrying an indication parameter for one-time event charging, the method further comprising creating the second event charging resource based on the second charging request; or the second charging request is an update request for the first event charging resource, the method further comprising: releasing the first event charging resource based on the second charging request; or 7. The method of claim 6, wherein the second charging request is a release request for the first event charging resource, the method further comprising: releasing the first event charging resource based on the second charging request.

8. 8. The method of claim 1, wherein the first charging request further includes a retransmission decision parameter, the method further comprising creating the first event charging resource after determining based on the retransmission decision parameter that the first charging request is not a retransmitted creation request for the first event charging resource.

9. A billing method, comprising: determining, by a charging trigger function device, that a charging event of the event charging service has occurred; sending a first charging request by the charging trigger function device to a charging function CHF device, the first charging request carrying event charging information, the event charging information being used to determine an event charging processing mode, the event charging information including an indication parameter of one-time event charging, the indication parameter of one-time event charging indicating that there is no subsequent charging request after a first event charging resource is created based on the first charging request, or that there is a subsequent charging request after the first event charging resource is created based on the first charging request; receiving, by the charging trigger function device, a first charging response of the first charging request and sent by the charging function device, the first charging response including a result of processing the first charging request according to the determined event charging processing mode; The method includes:

10. The method of claim 9 , wherein the first charging request is a create request for the first event charging resource.

11. The method of claim 9 or 10, wherein the event charging information further includes the event charging processing mode, the event charging processing mode being direct deduction, offline event reporting, or application of event quota.

12. the event charging processing mode is the direct deduction, and the first charging response includes an identifier of the first event charging resource created based on the first charging request, after the step of receiving a first charging response sent by the charging function device, the method further comprises: determining that the event charging service has failed to be implemented; sending a second charging request to the event charging service, the second charging request including indication information used to indicate a refund of a deduction amount in the direct deduction performed by using the first charging request and the identifier of the first event charging resource, the identifier of the first event charging resource being used to determine the deduction amount in the direct deduction performed by using the first charging request; The method of claim 11 further comprising:

13. 13. The method of claim 12, wherein the second charging request is a create request for a second event charging resource, the second charging request further carrying an indication parameter for one-time event charging, or the second charging request is an update request for the first event charging resource, or a release request for the first event charging resource.

14. A billing function device, A receiving module configured to receive a first charging request sent by a charging trigger function CTF device, the first charging request carrying event charging information, the event charging information including an indication parameter of one-time event charging; a determination module configured to determine, based on the indication parameter of one-time event charging, that the first charging request is a one-time event charging request and that there is no subsequent charging request after a first event charging resource is created based on the first charging request, or to determine, based on the indication parameter of one-time event charging, that the first charging request is a non-one-time event charging request and that there is a subsequent charging request after the first event charging resource is created based on the first charging request, a determination module further configured to determine a first event charging processing mode based on the event charging information; a processing module configured to process the first charging request according to the first event charging processing mode; An apparatus comprising:

15. 15. The apparatus of claim 14, wherein the event charging information includes indication information indicating an event charge, and the determining is further configured to determine that the first charging request is a charging request for an event charging service based on the indication information indicating the event charge.

16. the first charging request is a creation request for the first event charging resource; the determination module is further configured to determine that the first charging request is a one-time event charging request based on the indication parameter of one-time event charging, the processing module is further configured to create the first event charging resource based on the first charging request, and the determination module is further configured to determine that the first event charging resource does not have a third charging request; or 16. The apparatus of claim 14 or 15, wherein the determination module is further configured to determine that the first charging request is a non-one-time event charging request based on the indication parameter of one-time event charging, the processing module is further configured to create the first event charging resource based on the first charging request, and the determination module is further configured to determine that the first event charging resource has a third charging request.

17. 17. The apparatus of claim 14, wherein the event charging information further comprises the first event charging processing mode, the event charging processing mode being direct deduction, offline event reporting, or application of event quota.

18. The first event charging processing mode is the direct deduction, and the processing module's processing of the first charging request according to the first event charging processing mode includes performing a rating on the first charging request and performing a deduction from a user's account balance based on a rating result; or the first event charging processing mode is the offline event reporting, and the processing module processing the first charging request according to the first event charging processing mode includes generating an event charging data record based on the first charging request; or 20. The apparatus of claim 17, wherein the first event charging processing mode is applying the event quota, and wherein the processing module's processing of the first charging request according to the first event charging processing mode includes performing a rating based on the event charging information and granting an event quota based on the rating.

19. the event charging processing mode is the direct deduction, and after processing the first charging request, The receiving module further receives a second charging request for the event charging service, the second charging request including a second event charging processing mode and an identifier of the first event charging resource, the second event charging processing mode being a refund and being indication information used to indicate a refund of a deduction amount in the direct deduction performed by using the first charging request, and the identifier of the first event charging resource being obtained from a charging response to the first charging request; The determination module is further configured to determine the deduction amount in the direct deduction performed by using the first charging request based on the identifier of the first event charging resource; and 20. The apparatus of claim 18, wherein the processing module is further configured to refund the deduction to the account balance of the user.

20. the second charging request is a creation request for a second event charging resource, the second charging request carrying an indication parameter for one-time event charging, and the processing module is further configured to create the second event charging resource based on the second charging request; or the second charging request is an update request for the first event charging resource, and the processing module is further configured to release the first event charging resource based on the second charging request; or 20. The apparatus of claim 19, wherein the second charging request is a release request for the first event charging resource, and the processing module is further configured to release the first event charging resource based on the second charging request.

21. A charging trigger function device, a determination module configured to determine that a billing event of the event billing service has occurred; a sending module configured to send a first charging request to a charging function CHF device, the first charging request carrying event charging information, the event charging information being used to determine an event charging processing mode, the event charging information including an indication parameter of a one-time event charging, the indication parameter of a one-time event charging indicating that there is no subsequent charging request after a first event charging resource is created based on the first charging request, or that there is a subsequent charging request after the first event charging resource is created based on the first charging request; a receiving module configured to receive a first charging response of the first charging request and sent by the charging function device, the first charging response including a result of processing the first charging request according to the determined event charging processing mode; An apparatus comprising:

22. 22. The apparatus of claim 21, wherein the first charging request is a create request for the first event charging resource.

23. 23. The apparatus of claim 21 or 22, wherein the event charging information further includes the event charging processing mode, the event charging processing mode being direct deduction, offline event reporting, or application of event quota.

24. the event charging processing mode is the direct deduction, and the first charging response includes an identifier of the first event charging resource created based on the first charging request; and after the receiving module receives the first charging response sent by the charging function device, the determining module is further configured to determine that the event charging service has failed to be implemented; 24. The apparatus of claim 23, wherein the sending module is further configured to send a second charging request for the event charging service, the second charging request including the first charging request and indication information used to indicate a refund of a deduction amount in the direct deduction performed by using the identifier of the first event charging resource, the identifier of the first event charging resource being used to determine the deduction amount in the direct deduction performed by using the first charging request.

25. 25. The apparatus of claim 24, wherein the second charging request is a create request for a second event charging resource, the second charging request further carrying an indication parameter for one-time event charging, or the second charging request is an update request for the first event charging resource, or a release request for the first event charging resource.

26. A system comprising a charging function device configured to perform the method according to any one of claims 1 to 8 and a charging trigger function device configured to perform the method according to any one of claims 9 to 13.

27. A billing method, comprising: sending (502, 601, 701) a first charging request by a charging trigger function device to a charging function device, the first charging request carrying event charging information, the event charging information including an indication parameter of one-time event charging; determining, by the charging function device, based on the indication parameter of one-time event charging, that the first charging request is a one-time event charging request and there is no subsequent charging request after a first event charging resource is created based on the first charging request; or determining, by the charging function device, based on the indication parameter of one-time event charging, that the first charging request is a non-one-time event charging request and there is a subsequent charging request after the first event charging resource is created based on the first charging request; determining a first event charging processing mode by said charging function device based on said event charging information (603, 703); processing (503, 605, 609, 705, 709) said first charging request according to said first event charging processing mode by said charging function device; The method includes:

Citation Information

Patent Citations

  • Online charging for proximity services

    WO2015170169A1