Billing method, device and system

The service-based billing method in 4G and 5G systems enhances flexibility by enabling the charging trigger function device to perform various operations based on instruction types, addressing the inflexibility of current 4G systems and improving billing convenience.

JP7560206B2Active Publication Date: 2024-10-02HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022130368
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-04-28
Filing Date
2022-08-18
Publication Date
2024-10-02
Estimated Expiration
2039-02-22

AI Technical Summary

Technical Problem

Current billing systems in 4G communication systems lack flexibility in service-based charging, as the online charging system cannot perform charging processes without active requests from the charging trigger function device.

Method used

A service-based billing method where a charging trigger function device sends a charging start request with an indication receiving address, allowing the charging function device to execute various billing operations based on instruction types such as billing update, termination, overload management, rule configuration, and resource validity detection, enhancing flexibility and convenience.

Benefits of technology

Enables flexible and convenient billing processing by allowing the charging trigger function device to perform multiple specific operations, meeting diverse charging requirements and adapting to different scenarios, including 5G environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560206000007
    Figure 0007560206000007
  • Figure 0007560206000008
    Figure 0007560206000008
  • Figure 0007560206000009
    Figure 0007560206000009
Patent Text Reader

Abstract

Embodiments of the present application disclose a billing method and related products. [Solution] A charging method includes: sending a charging start request for a packet data unit (PDU) session to a charging function device, where the charging start request carries an instruction receiving address; receiving an instruction message sent by the charging function device based on the instruction receiving address, where the instruction message carries an instruction type; and performing charging processing based on the instruction type. In this way, in a service-based interface mechanism, the charging function device on the server side has the ability to enable the charging trigger function device on the client side to perform several individual operations as necessary to meet personalized charging requirements.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 201810401785.1, entitled “CHARGING METHOD, APPARATUS AND SYSTEM,” filed with the State Intellectual Property Office of the People's Republic of China on April 28, 2018, which is hereby incorporated by reference in its entirety.

[0002] Technical Field The present application relates to the field of communication technologies, and in particular to a billing method, device and system. [Background technology]

[0003] Currently, in a 4G communication system, online charging services and offline charging services are charged using different charging systems. As shown in Figure 1, a charging trigger function device in the communication system communicates with the online charging system using an Ro interface and communicates with the offline charging system using an Rf interface. The online charging system is used to charge for online charging services, and the offline charging system is used to charge for offline charging services.

[0004] For example, in a 4G Diameter-based online charging session, a charging session exists between a charging trigger function device and an online charging system. During the charging session, the charging trigger function device requests the online charging system to perform a charging process, and the online charging system performs a corresponding charging process based on the request response.

[0005] However, in the charging process, especially during service-based charging, sometimes the online charging system needs to actively perform some charging processing. However, if the charging trigger function device does not actively request the online charging system to perform charging processing, the online charging system cannot perform charging processing. As a result, the charging processing method in the current charging system is not flexible enough. Summary of the Invention [Means for solving the problem]

[0006] The embodiments of the present application provide a service-based charging method, apparatus, and system, which enables a charging function device, and a charging trigger function device, to perform some specific operations as needed to meet multiple different charging requirements, making the charging process more flexible and convenient.

[0007] According to a first aspect, an embodiment of the present application provides a charging method including: a step of sending, by a charging trigger function device, a charging start request for a packet data unit (PDU) session to a charging function device, the charging start request carrying an indication receiving address, the indication receiving address being associated with the PDU session, so that the charging function device can use the indication receiving address to send an indication message to a PDU session in the charging trigger function device corresponding to the indication receiving address; a step of receiving, by the charging trigger function device, an indication message sent by the charging function device based on the indication receiving address, the indication message carrying an indication type; and a step of performing charging processing based on the indication type.

[0008] It should be understood that the indication types in this specification may include several types: charging update indication, charging termination indication, charging function device overload indication, charging rule configuration indication, and charging resource validity detection indication. An indication message may include one or more of the indication types.

[0009] In this embodiment of the present invention, since the charging trigger function device adds an indication receiving address to the charging start request, the charging function device can use the indication receiving address to send an indication message to the charging trigger function device corresponding to the indication receiving address. In this way, the charging trigger function device can receive an indication message carrying an indication type. Since there are multiple indication types, the charging trigger function device performs corresponding charging processing based on different indication types. In this way, the charging function device enables the charging trigger function device to perform several specific operations and meet several different charging requirements as needed. Furthermore, this embodiment of the present invention may be applied to a 5G scenario, such that in a service-based interface mechanism, the charging function device may be regarded as a server, and the charging trigger function device may be regarded as a client. In this way, the server side can have the ability to enable the client side to perform several specific operations, thereby meeting personalized charging requirements and making the charging processing more flexible and convenient.

[0010] First aspect: when the indication type is specifically a charging update indication, the charging trigger function device performs charging processing based on the indication type, specifically: the charging trigger function device sends a charging update request to the charging function device based on the indication type of the charging update indication. The charging update request carries charging information to be updated (the charging information may be specifically statistics on data flow, for example, 5MB traffic is used for rate group 1). If the indication message further carries an indication applicability range, the charging trigger function device sends a charging update request to the charging function device for the corresponding charging information in the applicable range. In this case, the charging information to be updated is specifically the corresponding charging information in the applicable range; or, if the indication message does not carry an indication applicability range, the charging trigger function device sends a charging update request to the charging function device for all charging information of the PDU session. In this case, the charging information to be updated is specifically all charging information of the PDU session. The charging trigger function device can trigger the charging update function device to update charging by using the indication type of the charging update indication. Furthermore, the indication message may carry an indication applicability scope, and the charging trigger function device may report charging information for different scopes to update the charging information. It should be understood that there are different applicability scopes, such as all data flows for which online charging is performed in the PDU session, all data flows for which offline charging is performed in the PDU session, or all data flows for which charging is performed in the PDU session.The applicability scope may further be limited to data flows corresponding to one or more rating groups among the data flows for which online charging is performed, or to data flows corresponding to one or more rating groups among the data flows for which offline charging is performed, or to data flows corresponding to one or more rating groups among the data flows for which online charging is performed and one or more service flow identifiers corresponding to the one or more rating groups among the data flows for which offline charging is performed, or to data flows corresponding to one or more rating groups among the data flows for which offline charging is performed and one or more service flow identifiers corresponding to the one or more rating groups among the data flows for which offline charging is performed. If the indication message does not carry an applicability scope, by default the indication message is considered to be applicable to all data flows for which charging is performed in the PDU session. The data flows in this specification may be data traffic generated when a user accesses a data service.

[0011] It should be understood that the charging update request may be an add charging request. In this case, the charging information to be updated carried in the add charging request may in particular be the charging information to be added. The charging update request may be a replace charging request. In this case, the charging information to be updated carried in the replace charging request may in particular be the charging information to be replaced.

[0012] Second aspect: when the instruction type is particularly a charging end instruction, performing charging processing based on the instruction type by the charging trigger function device is specifically: sending a first charging end request based on the instruction type of the charging end instruction to the charging function device by the charging trigger function device, and terminating charging in the PDU session. The charging trigger function device can trigger the charging function device to terminate charging for the PDU session by using the instruction type of the charging end instruction.

[0013] It should be understood that the first charging termination request is specifically a POST message or a PUT message. In this case, the POST message or the PUT message carries the attribute of the charging termination indication and all current charging information of the PDU session. Alternatively, the first charging termination request is specifically a DELETE message, and before sending the first charging termination request to the charging function device, the method further includes sending a charging update request to the charging function device by the charging trigger function device, the charging update request carrying all current charging information of the PDU session. The first charging termination request may be sent to the charging function device in different message formats, which makes the implementation solution more diverse and flexible.

[0014] Third aspect: When the instruction type is a charging function device overload instruction, the charging trigger function device executes charging processing based on the instruction type, specifically: the instruction message further carries the overload degree of the charging function device, and adjusts the number of requests sent to the charging function device based on the overload degree before the next instruction message whose instruction type is a charging function device overload instruction is received or before the validity period carried in the instruction message expires (the request here is a request related to charging sent by the charging trigger function device to the charging function device, for example, a charging start request, a first charging end request, or a charging update request). The charging trigger function device can dynamically adjust the amount of requests sent to the charging function device based on the degree of overload of the charging function device, and adjust the load of the charging function device.

[0015] Fourth aspect: When the instruction type is specifically a charging rule configuration instruction, the instruction message may further carry a charging rule, and the charging trigger function device performs charging processing based on the instruction type, specifically: by configuring, by the charging trigger function device, a charging rule based on the instruction type of the charging rule configuration instruction. There may be multiple charging rules. For example, a candidate server address rule, an offline reporting interval rule, a total idle resource threshold rule, an online or offline reporting condition rule, and a rule of using online or offline charging for a rating group. The charging trigger function device may store or configure the received charging rule.

[0016] Fifth aspect: when the instruction type is specifically a charging resource validity detection instruction, performing charging processing based on the instruction type by the charging trigger function device is specifically: based on the PDU session identifier carried in the instruction message, if it is determined that the charging resource of the PDU session corresponding to the PDU session identifier exists in the charging trigger function device, sending a response success message to the charging function device, or if it is determined that the charging resource of the PDU session corresponding to the PDU session identifier does not exist in the charging trigger function device, sending a response failure message to the charging function device. The charging trigger function device may notify the charging function device of whether a valid charging resource exists by sending a different response message.

[0017] The charging start request may carry an indication type supported by the charging trigger function device and an attribute that activates the charging function device to deliver the indication using the indication receiving address. If the charging trigger function device does not need the charging function device to deliver the indication message, the charging trigger function device may generate a second charging end request and send the second charging end request to the charging function device. The charging function device is triggered to stop sending an indication message related to the current PDU session to the charging function device based on an attribute carried in the second charging end request that disables the charging function device from sending the indication using the indication receiving address.

[0018] According to a second aspect, an embodiment of the present application provides a charging method including the steps of: receiving, by a charging function device, a charging start request sent by a charging trigger function device, the charging start request carrying an instruction receiving address; and if the charging function device determines that an instruction needs to be sent to the charging trigger function device, sending an instruction message to the charging trigger function device based on the instruction receiving address, the instruction message carrying an instruction type.

[0019] It should be understood that the indication type in this specification may include several types: charging update indication, charging termination indication, charging function device overload indication, charging rule configuration indication, and charging resource validity detection indication. An indication message may carry one or more of the indication types.

[0020] After receiving the charging start request, when it is necessary to send an instruction to the charging trigger function device, the charging function device triggers sending an instruction message to the charging trigger function device. The charging function device sends an instruction message including different instruction types to the charging trigger function device based on different conditions, so that the charging trigger function device performs corresponding charging processing. In this way, the charging function device enables the charging trigger function device to perform some specific operations and meet different charging requirements as needed.

[0021] It should be understood that in different cases, the indication message sent by the charging function device to the charging trigger function device is also different. For example, when a re-authorization condition is met (e.g., re-authorization is required due to a change in the user account balance, re-authorization is required due to a change in the user subscription information, re-authorization is required due to a change in the user consumption accumulator), an indication message is sent to the charging trigger function device, and the indication message carries an indication type and an indication applicability scope of charging update indication; when a charging termination condition is met (e.g., the user account balance is lower than a specified threshold or the credit is used up), an indication message is sent to the charging trigger function device, and the indication message carries an indication type and an indication applicability scope of charging termination indication; when the charging function device is overloaded, an indication message is sent to the charging trigger function device, and the indication message carries an indication type and an indication applicability scope of charging termination indication; An indication message is sent to the trigger function device, and the indication message carries an indication of the overload state of the charging function device and the overload degree of the charging function device; when a charging rule configuration condition is met (for example, the charging rule needs to be reconfigured due to the change of configuration information in the charging system, or the charging rule needs to be reconfigured due to the change of the content subscribed by the user), an indication message is sent to the charging trigger function device, and the indication message carries an indication type of charging rule configuration indication and the charging rule to be configured; or when the charging function device clears an invalid charging resource, an indication message is sent to the charging trigger function device, and the indication message carries an indication type of charging resource validity detection indication. The charging function device sends an indication message including different indication types to the charging trigger function device based on different conditions, so that the charging trigger function device performs corresponding charging processing. In this way, the charging function device enables the charging trigger function device to perform a specific operation as needed, so that service-based charging can be realized, and the charging processing is flexible.

[0022] It should be understood that the method further includes the steps of receiving a charging update request sent by a charging trigger function device, where the charging update request carries charging information to be updated; and updating stored charging information with the charging information to be updated based on the charging information to be updated.

[0023] It should be understood that the method includes receiving a first charging termination request sent by a charging trigger function device and terminating charging for a PDU session. For example, if the first charging termination request is specifically a POST message or a PUT message, and the POST message or the PUT message carries an attribute of a charging termination instruction and all current charging information of the PDU session, the charging information of the PDU session is updated based on all current charging information of the PDU session, and charging for the PDU session is terminated based on the attribute of the charging termination instruction. In another example, if the first charging termination request is specifically a DELETE message, before the DELETE message is received, a charging update request sent by a charging trigger function device is received, where the charging update request carries all current charging information of the PDU session, the charging information of the PDU session is updated, and charging for the PDU session is terminated based on the DELETE message.

[0024] It should be understood that after receiving the charging start request sent by the charging trigger function device, the charging function device further stores the instruction receiving address.

[0025] It should be understood that the method further includes: a step of receiving, by a charging function device, a second charging end request sent by a charging trigger function device, wherein the second charging end request carries an attribute that disables the charging function device from sending instructions using the instruction receiving address; and a step of deleting the stored instruction receiving address based on the attribute that disables the charging function device from sending instructions using the instruction receiving address.

[0026] It should be understood that the method further includes: a step of receiving, by a charging function device, a response failure message sent by the charging trigger function device, where the response failure message includes a PDU session ID; and a step of determining, based on the PDU session ID, that charging resources for the PDU session do not exist, whereby the non-existent charging resources associated with the PDU session may be cleared from the CTF device.

[0027] According to a third aspect, an embodiment of the present application provides a charging trigger function device including several functional units configured to implement any method according to the first aspect. For example, the charging trigger function device may include: a transmitting unit configured to transmit a charging start request for a packet data unit (PDU) session to a charging function device, the charging start request carrying an indication receiving address; a receiving unit configured to receive an indication message sent by a charging function device based on the indication receiving address, the indication message carrying an indication type; a processing unit configured to perform a charging process based on the instruction type; It may include.

[0028] According to a fourth aspect, an embodiment of the present application provides a charging function device including several functional units configured to implement any of the methods according to the second aspect. For example, the charging function device may include: A receiving module configured to receive a charging initiation request sent by a charging trigger function device, the charging initiation request carrying an indication receiving address; a sending module configured to send an instruction message to the charging trigger function device based on the instruction receiving address when it is determined that an instruction needs to be sent to the charging trigger function device, the instruction message carrying an instruction type; It may include.

[0029] 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 method according to the first aspect.

[0030] According to a sixth aspect, an embodiment of the present application provides a billing 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 method according to the second aspect.

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

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

[0033] According to a ninth aspect, an embodiment of the present application provides a computer program product, which when executed on a computer enables the computer to perform some or all of the steps of any method according to the first aspect.

[0034] According to a tenth aspect, an embodiment of the present application provides a computer program product, which when executed on a computer enables the computer to perform some or all of the steps of any method according to the second aspect.

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

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

[0037] In order to describe the technical solutions in the embodiments or background of the present application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or background of the present application.

[0038] [Figure 1] 1 is a schematic block diagram of a charging system in the prior art;

[0039] [Diagram 2] 1 is a schematic block diagram of a network architecture according to an embodiment of the present application;

[0040] [Diagram 3] FIG. 1 is a schematic block diagram of a billing system according to an embodiment of the present application.

[0041] [Figure 4A] FIG. 1 is a schematic block diagram of a charging framework according to an embodiment of the present application.

[0042] [Figure 4B]FIG. 1 is a schematic block diagram of a charging framework according to an embodiment of the present application.

[0043] [Figure 4C] FIG. 1 is a schematic block diagram of a charging framework according to an embodiment of the present application.

[0044] [Diagram 5] 1 is a flowchart of a billing method according to an embodiment of the present application;

[0045] [Figure 6] 1 is a schematic block diagram of a charging trigger function device according to an embodiment of the present application;

[0046] [Figure 7] 1 is a schematic block diagram of a charging function device according to an embodiment of the present application;

[0047] [Figure 8] 1 is a schematic block diagram of a billing device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

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

[0049] FIG. 2 is a schematic diagram of a possible network architecture to which certain embodiments of the present application may be applied. The network architecture is the 5th Generation mobile communication technology (5G) network architecture. The 5G architecture may include a user device, a radio access network (RAN), an access and mobility management function (AMF) device, a session management function (SMF) device, a user plane function (UPF) device, a unified data management (UDM) device, an authentication server function (AUSF) device, and a data network (DN). In addition to the network elements shown in FIG. 2, the 5G network architecture may further include an authentication credential repository and processing function (ARPF) device, a security anchor function (SEAF) device, a policy control function (PCF), etc. The functional units in Figure 2 can establish connections with each other by using next generation (NG) interfaces to realize communication. For example, a terminal device establishes an air interface connection to a radio access network (RAN) device / access network (AN) device by using a new radio (NR) interface to transmit user plane data and control plane signals.A terminal device can establish a control plane signaling connection to the AMF by using an NG interface 1 (abbreviated as N1). A RAN device, for example, a 5G radio access base station (5G Node B, 5GNB), can establish a user plane data connection to the UPF by using an NG interface 3 (abbreviated as N3). The RAN device can establish a control plane signaling connection to the AMF by using an NG interface 2 (abbreviated as N2). The UPF can establish a control plane signaling connection to the SMF by using an NG interface 4 (abbreviated as N4). The UPF can exchange user plane data with the data network by using an NG interface 6 (abbreviated as N6). The AMF can establish a control plane signaling connection to the SMF by using a Namf interface (abbreviated as Namf). The SMF can establish a control plane signaling connection to a PCF entity by using an NG interface 7 (abbreviated as N7).

[0050] The main function of the RAN is to control the radio access of user devices to the mobile communication network. The RAN is a part of the mobile communication system and implements radio access technology. Conceptually, the RAN resides in a device (e.g., a mobile phone, a computer, or any remote controller) and provides a connection to the core network of the mobile communication network. RAN devices include, but are not limited to, New Radio (NR), evolved node B (eNB), radio network controller (RNC), node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (e.g., home evolved node B, or process node B, HNB), base band unit (BU), transmitting and receiving point (TRP), transmitting point (TP), mobile switching center, etc. in 5G. In addition, the RAN devices may further include wireless fidelity (Wi-Fi) access point (AP), etc.

[0051] The AMF device is responsible for the access management and mobility management of user equipment. In practical application, the AMF device includes the mobility management function of the MME in the 4G network framework, and also includes an access management function.

[0052] The SMF device is responsible for session management, for example, establishing a user session. Specifically, in the charging system and charging method in the embodiment of the present invention, the SMF is further configured to: perform management behaviors such as establishing, modifying, and releasing PDU sessions; assign an IP address to the UE; select a user plane; configure a user plane routing policy; interact with the PCF to obtain the control policy of the PCF; execute the control plane part of the control policy; and determine a switching mode of a PDU (packet data unit) session in the determined IP type.

[0053] The UPF device is a user plane function network element that is mainly responsible for connecting to external networks. The UPF device includes the relevant functions of SGW and P-GW in the 4G network architecture.

[0054] A DN is a network responsible for providing services to a user device, for example, some DNs provide network access functionality to a user device, and other DNs provide short message service functionality to a user device.

[0055] The AUSF device has an authentication service function and is configured to complete authentication functions requested by the SEAF.

[0056] The UDM device stores subscription information of user devices and may implement a backend similar to HSS in 4G.

[0057] The ARPF device has authentication credential storage and processing capabilities and is configured to store long-term authentication credentials of user devices, such as permanent keys K. In 5G, the functionality of the ARPF may be integrated into the UDM device.

[0058] The SEAF device is configured to complete an authentication process for a user device. In 5G, the function of the SEAF may be integrated into the AMF device.

[0059] The aforementioned functional units, such as the access and mobility management function, the session management function, the policy control function, and the user plane function, may function independently or may be combined together to implement some control functions. For example, the AMF, the SMF, and the PCF may be combined as a management device to realize the access control and mobility management functions such as the access authentication, security encryption, and location registration of the terminal device, the session management functions such as the establishment, release, and modification of the user plane transmission path, and the function of analyzing data (such as congestion) related to some slices and data related to the terminal device. As a gateway device, the UPF mainly completes functions such as the routing and forwarding of user plane data, and is responsible for, for example, data packet filtering, data transmission / forwarding, rate control, and charging information generation for the terminal device.

[0060] The user equipment is a device having a wireless transmission and reception function, including an indoor or outdoor device, a handheld device, or an in-vehicle device, and may be deployed on the ground, on water (e.g., on a ship), or in the air (e.g., on an airplane, a balloon, or a satellite). Specifically, the user equipment may be a user equipment (UE), a mobile phone, or a tablet computer (pad) that can access a mobile network, a computer having a wireless transmission and reception function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc.

[0061] FIG. 3 is a schematic diagram of a charging architecture according to an embodiment of the present application. The charging architecture includes a charging trigger function (CTF) device 31 and a charging system 32. The charging trigger function device 31 and the charging system 32 can communicate with each other by using a service-based interface. The service-based interface is a resource-based function disclosure interface. The service-based interface may be a RESTful interface, a remote procedure call (RPC) interface, etc. Referring to the network architecture of FIG. 2, the charging trigger function device 31 may be located in an SMF device. In other words, the SMF device integrates the functions of the CTF device 31. The charging system 32 includes a charging function (CHF) device. The CHF device can perform online charging and offline charging. In other words, the charging system 32 may be a converged charging system. The charging system 32 further includes an account balance management function (ABMF) device and a rating function (RF) device that are required to perform charging. The ABMF device is configured to store and manage user accounts, and the RF device is configured to perform rating on the usage information of the service. In addition to the charging trigger function device 31 and the charging system 32 shown in FIG. 3, the charging architecture in this embodiment of the present invention may further include a billing device. The billing device and the charging system 32 can communicate with each other by using a charging gateway function (CGF) device. The CGF device may be integrated into the charging system as a part of the charging system, or may be integrated into the charging device as a part of the charging device, or may exist as an independent network element. A specific description is further provided in the following content.

[0062] The charging trigger function device 31 generates a charging initiation request, and the charging system 32 processes the charging initiation request. Thus, the charging trigger function device 31 may be considered as a client, and the charging system 32 may be considered as a server. Various implementation solutions of the charging trigger function device 31, the charging system 32, or both the charging trigger function device 31 and the charging system 32 may include one or more processors and a 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 instructions or data structures accessible by a computer as described herein.

[0063] 4A-4C are specific implementations of the charging architecture of FIG. 3. The CHF device may provide services to the outside using a specific service-based interface RESTful. The specific interface is named Nchf. The CTF device can access the CHF device using the Nchf interface. The CHF device may be combined with the ABMF device and the RF device to form a charging system. Furthermore, for the charging architecture shown in FIG. 4A, the CGF device is located in the charging system. In this case, the CGF device is connected to the billing device using a Bd interface. For the charging architecture shown in FIG. 4B, the CGF device is located in the billing device. In this case, the CHF device is connected to the CGF device using a Ga interface. For the charging architecture shown in FIG. 4C, the CGF device is used as an independent network element. In this case, the CHF device is connected to the CGF device using a Ga interface, and the CGF device is connected to the billing device using a Bd interface.

[0064] Figure 5 is a schematic flow chart of a convergent charging method 500 according to the present application. The method 500 can be applied to the network architecture shown in Figure 2 and the charging architecture shown in Figure 3 and Figures 4A to 4C. Of course, the method 500 can also be applied to other communication scenarios, which is not limited in this embodiment of the present application. As shown in Figure 5, the method 500 includes the following contents:

[0065] Step 501: The CTF device generates a charging start request. The charging start request may be used to request the charging system to create corresponding charging resources for charging for the current PDU session. The charging start request carries an indication attribute, which may be used by the charging function device to deliver an indication. The indication attribute may be used to trigger the CHF device to send an indication message to the CTF device under certain conditions.

[0066] In this specification, charging resources include memory requested by the charging system to perform charging processing for a PDU session, related information (such as user information and package information) read from the peripheral database into memory, and processing data (such as granted quota and accumulated data) generated during the charging processing process and stored in memory.

[0067] The CTF device receives a PDU session creation request or a PDU session modification request sent by a front-end network device. The subsequent steps are the same for the PDU session creation request and the PDU session modification request, so the PDU session creation request is used as an example for the description in this embodiment of the present invention. Usually, when a user device needs to perform network communication, for example, when a user uses a 5G network to access data services, the user device sends a PDU session establishment request to an AMF device. The AMF device forwards the PDU session establishment request to an SMF device. The PDU session establishment request carries a PDU session context, such as a user ID and a PDU session ID. The SMF device further obtains user data from the UDM device based on the user ID, performs authentication with the PCF device, etc. based on the user data, and determines whether to authorize the PDU session. When the PDU session is authorized, the CTF device generates a charging start request used for charging.

[0068] The CTF device may trigger the generation of charging resources in various cases. For example, when a PDU session starts, charging needs to be started for the PDU session, and the CTF device determines that charging resources need to be generated. Alternatively, during a PDU session process, when a PDU session needs to be charged but there are no charging resources available, the CTF device determines that charging resources need to be generated.

[0069] The CTF device first determines that a charging resource needs to be generated, and generates an indication receiving address and a charging start request. The charging start request includes an attribute, which may be referred to as an indication attribute. The indication attribute may include an indication receiving address, and the indication receiving address is associated with a PDU session for which a charging resource is generated. A specific PDU session in the CTF device may be uniquely determined by using the indication receiving address. The CHF device can send an indication message to a specific PDU session in the CTF device corresponding to the indication receiving address by using the indication receiving address. There may be multiple charging types. For example, the charging type may be online charging, offline charging, event-based charging, or convergent charging including online charging and offline charging.

[0070] The instruction attribute may further include an instruction ID. The instruction ID is used to identify the instruction of charging resources, and the instruction ID may be used as part of the instruction receiving address or may exist as an independent attribute. The instruction attribute may further include an instruction type supported by the CTF device. There may be multiple instruction types: charging update instruction, charging end instruction, CHF device overload instruction, charging rule configuration instruction, or resource validity detection instruction. The charging rule configuration instruction may be referred to as a charging policy configuration instruction, for example, an instruction on how to configure the address of a candidate CHF device.

[0071] Table 1 below describes the structure of the billing initiation request using a specific example. [Table 1]

[0072] The field "notiInfo" is a notification delivery attribute, and the field "URI" is a notification receiving address, which is included in the URI. <notiid>" is an instruction ID, and supportedType is a list of instruction types supported by the CTF device, where the bits in "01101" indicate whether type 1, type 2, type 3, type 4, or type 5 is supported, respectively. The CTF device and the CHF device can agree on the identifier or sequence number of the instruction type in advance. Specifically, each bit represents an instruction type. For example, type 1, type 2, type 3, type 4, and type 5 are charging update instruction, charging termination instruction, CHF device overload instruction, charging rule configuration instruction, and resource validity detection instruction, respectively. For each bit, a value of "1" indicates that the CTF device supports the type, and a value of "0" indicates that the CTF device does not support the type. For different CTF devices, the supported types are indicated by "1", "0", "0", and "1". The supported types may be different. Therefore, the values ​​contained in supportedType may also be different. The field "status" is the functional status of the indication delivery and is used to inform the CHF device that an indication may be delivered using the URI if certain conditions are met. Alternatively, the status field is not carried and only the URI is carried. In this case, the CHF device may deliver the indication using the URI by default before the charging for the PDU session is terminated. In the example of Table 1, the charging start request may further include the ID of the SMF device (i.e., the CTF device), the address of the SMF device, the message timestamp, the charging ID, the user information, information about the PDU session, etc.

[0073] Step 502: The CHF device receives the charging start request sent by the CTF device and stores the instruction attribute. When the condition is met, the CHF device generates an instruction message and sends the instruction message to the CTF device according to the stored instruction receiving address.

[0074] The CHF device can determine the instruction types that can be sent by the CHF device to the CTF device according to the stored attribute supportType. Based on this, the CHF device further sends corresponding instruction messages to the CTF device according to different conditions, and the instruction messages include the instruction types. It should be noted that the instruction types included in the instruction messages are all instruction types included in the attribute supportType stored in the CHF device.

[0075] Specifically, when a re-authorization condition is met, the CHF device sends an indication message to the CTF device, and the indication message carries an indication type and an applicable scope of the charging update indication. The re-authorization condition in this specification may be: re-authorization is required due to a change in user account balance, re-authorization is required due to a change in user subscription information, re-authorization is required due to a change in user consumption accumulator, etc.

[0076] When a charging termination condition is met, the CHF device sends an indication message to the CTF device, and the indication message carries an indication type of charging termination indication. The charging termination condition in this specification may be: a user account balance is lower than a specified threshold, credits are exhausted, etc.

[0077] When the CHF device is overloaded, the CHF device sends an indication message to the CTF device, and the indication message carries an indication type of CHF device overload indication and an overload degree of the CHF device.

[0078] When a charging rule configuration condition is met, the CHF device sends an instruction message to the CTF device, and the instruction message carries a charging rule configuration instruction and the charging rule to be configured. The condition here may be: the charging rule needs to be reconfigured due to a change in configuration information in the charging system, the charging rule needs to be reconfigured due to a change in the content the user subscribes to, etc.

[0079] When the charging function device clears the invalid charging resource, the CHF device sends an indication message to the CTF device, where the indication message carries a charging resource validity detection indication.

[0080] These indication types are described in step 501 and will be further described herein. Some indication types are mutually exclusive. For example, charging update indication, charging termination indication, and resource availability detection indication are mutually exclusive. Some indication types, for example, charging update indication and CHF device overload indication, can coexist. One indication message can carry only one of multiple mutually exclusive indication types, and one indication message can carry one or more indication types that can coexist. Specifically, examples of combinations of indication types may be shown in Table 2 below. Specifically, indication types in the same column in Table 2 are mutually exclusive, and indication types in the same row can coexist. [Table 2]

[0081] The indication message may further include an applicability scope of the indication, which is used to indicate that the action indicated by the CTF device is effective within the applicability scope. There are various applicability scopes, for example, all data flows for which online charging is performed in the PDU session, all data flows for which offline charging is performed in the PDU session, or all data flows for which charging is performed in the PDU session. The applicability scope may be further limited to data flows corresponding to one or more rating groups (RG) in the data flows for which online charging is performed, or to data flows corresponding to one or more rating groups in the data flows for which offline charging is performed, or to data flows corresponding to one or more rating groups and one or more service flow identifiers (Service Ids) corresponding to the one or more rating groups in the data flows for which online charging is performed, or to data flows corresponding to one or more rating groups and one or more service flow identifiers corresponding to the one or more rating groups in the data flows for which offline charging is performed. If the indication message does not carry an applicability scope, by default, the indication message is considered to be applicable to all data flows for which charging is performed in the PDU session. A data flow in this context may be the data traffic generated when a user accesses a data service.

[0082] Step 503: After receiving the instruction message sent by the CHF device, the CTF device performs corresponding processing according to the instruction type carried in the instruction message. The following details the processing performed by the CTF device for different instruction types.

[0083] Scenario 1: Instruction type is billing update instruction After receiving the indication message, the CTF device returns a response message to the CHF device. Furthermore, the CTF device sends a charging update request to the CHF device for corresponding charging information in the applicable range based on the indication applicability range included in the indication message, and the charging update request carries the charging information to be updated. After receiving the charging update request, the CHF device updates local charging information based on the charging information to be updated. The charging information may specifically be statistics about a data flow, for example, 5MB traffic is used for rate group 1. Specifically, if the indication applicability range carried in the indication message is a data flow (offline, may be noted as RG1) corresponding to rating group 1 (RG1) in the data flow for which offline charging is performed, a charging update request is sent to the CHF device for corresponding charging information in the applicable range, specifically, charging update is performed for the data flow corresponding to rating group RG1 in the data flow for which offline charging is performed in the PDU session, and the charging update request carries the offline charging information to be updated corresponding to RG1. Then, the CHF device updates the local charging information of the CHF device based on the offline charging information to be updated corresponding to RG1. If the indication message does not carry an applicability scope, a charging update request is sent to the CHF device for all data flows for which charging is performed in the PDU session. The charging update request carries the charging information of all data flows for which charging is performed in the PDU session. The CHF device updates the local charging information of the CHF device based on the charging information of all data flows for which charging is performed in the PDU session.

[0084] Specifically, the CTF device may send a charging update request (the charging update request may specifically be a charging add request or a charging replace request) by using a patch command in multiple ways to update charging information. Specific aspects may be as follows:

[0085] Aspect 1: A CTF device sends a charging add request to a CHF device, where the charging add request carries charging information to be updated, where the charging information to be updated is specifically the charging information to be added, and the charging add request can be used to request the CHF device to add the charging information to be added to the previously updated charging information. Specifically, the CHF device stores an online charging allocation application, online charging allocation usage information, or offline charging information as a charging array, and the CTF device sends a charging add request to the CHF device, where the CHF device adds the charging information to be added to the stored charging array. Specifically, the charging add request is a JSON patch request carrying an add operation.

[0086] An example of the specific format of the patch command is shown in Table 3. [Table 3]

[0087] Aspect 2: The CTF device sends a charging replacement request to the CHF device, where the charging replacement request carries charging information to be updated, where the charging information to be updated is specifically the currently reported charging information to be replaced, and the charging replacement request can be used to request the CHF device to update the previous charging information by using the currently reported charging information to be replaced. Specifically, the CHF device may store the online charging allocation application, the online charging allocation usage information, or the offline charging information as a charging array. The CTF device sends the charging replacement request to the CHF device. After receiving the charging replacement request, the CHF device can update the entire array based on the current charging information to be replaced, and replace all the original online charging allocation application, the online charging allocation usage information, or the offline charging information in the charging array with the currently reported charging information to be replaced.

[0088] Specifically, the billing replacement request is a JSON Merge Patch request, as shown in the following example (in this example, onlineUsage corresponds to the online billing quota usage and application array, and offlineUsage corresponds to the offline billing information array). A specific format example of the patch command is shown in Table 4. [Table 4]

[0089] Alternatively, the CTF device may perform a replace operation on the JSON patch to replace an original element in the corresponding charging array with a new value. If the amount of original elements in the corresponding charging array is greater than the amount of new values, the CTF device performs a remove operation to remove redundant elements; or, if the amount of original elements in the corresponding charging array is less than the amount of new values, the CTF device performs an add operation to add elements.

[0090] Alternatively, the CTF device may perform a delete operation on the JSON patch to remove all original elements from the corresponding arrays, and an add operation to add the currently reported content to the corresponding arrays.

[0091] Scenario 2: Instruction type is charge end instruction After receiving the indication message carrying the indication type of charging end indication, the CTF device returns a response message to the CHF device, and further, the CTF device generates a first charging end request.

[0092] Specifically, the first charging termination request carries all current charging information of the PDU session. Alternatively, before sending the first charging termination request to the CHF device, the CTF device first sends a charging update request to the CHF device, where the charging update request carries all current charging information of the PDU session. Then, the CTF device sends a first charging termination request to the CHF device, where the first charging termination request does not include any charging information. After receiving the first charging termination request, the CHF device terminates charging for the current PDU session. Such an operation is applicable to the entire PDU session. The first charging termination request may not carry an applicability scope, or may carry charging information of all data flows for which charging is performed in the PDU session.

[0093] Specifically, the first charging termination request may be a POST message, a PUT message, or a DELETE message. If the first charging termination request is a DELETE message, the CHF device directly terminates charging based on the DELETE message. The message does not carry charging information. However, before sending the DELETE message, the CTF device needs to send a charging update request to the CHF device, and the charging update request carries all the current charging information of the PDU session. The CHF device updates the local charging information of the PDU session by using all the current charging information of the PDU session. If the first charging termination request is a POST message or a PUT message, the message body of the POST message or the PUT message carries a special attribute of the charging termination indication (e.g., TerminationOfCharging) and all the charging information of the PDU session. The CHF device receives the POST message or the PUT message. The CHF device updates the local charging information of the PDU session based on all current charging information of the PDU session, and after the charging information of the PDU session is updated, the CHF device determines that charging needs to be terminated based on the attributes of the charging end instruction and terminates charging for the current PDU session.

[0094] Scenario 3: Indication type is CHF device overload indication After the CTF device receives the indication message, the indication message further carries the overload degree of the CHF device, and the CTF device returns a response message to the CHF device. The CHF device further performs the following operation: adjust the amount of requests sent to the CHF device by the CTF device based on the degree of overload of the CHF device carried in the indication message. This is performed until the next indication message of this type is received or the validity period carried in the indication message expires. Such an operation is applicable to the entire PDU session, and the indication message may not carry an applicability range. The overload degree here can be used to indicate the load degree of the CHF device. For example, if the overload degree of the CHF device is 80%, it means that the CHF device can only process 20% of the requests. For different overload degrees, the number of requests sent to the CHF device adjusted by the CTF device is different.

[0095] Scenario 4: Instruction type is charging rule configuration instruction The indication message further carries the charging rule to be configured, and after the CTF device receives the indication message, the CTF device configures (or stores) the charging rule locally and returns a response message to the CHF device. The charging rule may include one or more of the following rules: candidate CHF device address rule, offline reporting interval rule, total idle resource threshold rule (the entire resource idle threshold is used to determine whether to trigger a charging termination request), online or offline recording condition rule, online or offline reporting condition rule, and rule to use online or offline charging for a rating group.

[0096] Scenario 5: Instruction type is resource availability detection instruction After receiving the indication message, the CTF device determines whether the charging resource of the corresponding PDU session exists based on the PDU session ID carried in the indication message. If the charging resource of the corresponding PDU session exists, the CTF device returns a response success message. If the charging resource of the corresponding PDU session does not exist, the CTF device returns a response failure message. Upon receiving the response failure message, the CHF device may determine that the charging resource of the PDU session does not exist, and clear the non-existent charging resource associated with the PDU session from the CTF device. For example, some data are persistent and other data are deleted. Such an indication message does not carry an applicability scope and parameters.

[0097] Table 5 shows specific examples of instruction messages. [Table 5]

[0098] The field "type" indicates the type of the instruction, the field "scope" indicates the applicable range, and the field "parameters" indicates the parameters. The instruction message further includes a time stamp, a user identifier, a PDU session identifier, a user ID, a charging resource ID, and the like.

[0099] Step 504: The CTF device generates a second charging termination request and sends the second charging termination request to the CHF device.

[0100] Furthermore, the second charging termination request carries an attribute that disables the charging function device from sending instructions using the instruction receiving address, and then informs the CHF device that it cannot send an instruction message to the CTF device using the instruction receiving address. The second charging termination request further includes the instruction receiving address or instruction ID to be canceled.

[0101] Table 6 is a specific example of the second billing termination request. [Table 6]

[0102] In this message, the field "notiInfo" is the indication attribute and the field "URI" is the indication recipient address, where <id>is the instruction ID, the field "status" is the instruction function status, and the field "disabled" is an attribute that indicates that the charging function device cannot send instructions using the instruction receiving address; specifically, the CHF device cannot then send instruction messages to the CTF device using the instruction receiving address.

[0103] Step 505: After receiving the second charging termination request, the CHF device obtains an instruction attribute corresponding to the instruction receiving address or the instruction ID based on the instruction receiving address or the instruction ID, and deletes the stored instruction attribute based on the attribute that prevents the charging function device from sending an instruction using the instruction receiving address.

[0104] In this embodiment of the present invention, the charging trigger function device adds an instruction receiving address to the charging start request, so that the charging function device can use the instruction receiving address to send an instruction message to the charging trigger function device corresponding to the instruction receiving address. In this way, the charging trigger function device can receive the instruction message carrying the instruction type. Since there are multiple instruction types, the charging trigger function device performs corresponding charging processes according to different instruction types. In this way, the charging function device enables the charging trigger function device to perform several specific operations as necessary to meet several different charging requirements.

[0105] 6 is a schematic block diagram of a charging trigger function device 600 according to an embodiment of the present application. Here, it should be noted that the charging trigger function device 600 may correspond to the CTF device of FIG. 4A to FIG. 4C, and the charging trigger function device 600 may include: a sending unit 61 configured to send a charging start request for a packet data unit (PDU) session to a charging function device, the charging start request carrying an indication receiving address; a receiving unit 62 configured to receive an indication message sent by the charging function device based on the indication receiving address, the indication message carrying an indication type; A processing unit 63 configured to perform a charging process based on the instruction type.

[0106] In one possible implementation, the processing unit 63 is specifically configured to: send a charging update request to the charging function device based on the instruction type of the charging update instruction, when the instruction type is specifically a charging update instruction, where the charging update request carries the charging information to be updated.

[0107] In some possible embodiments, the processing unit 63 specifically: if the indication message further carries an indication applicability scope, send a charging update request to the charging function device, where the charging information to be updated is specifically the corresponding charging information in the applicability scope; or if the indication message does not carry an indication applicability scope, send a charging update request to the charging function device, where the charging information to be updated is specifically all the charging information of the PDU session.

[0108] In some possible implementations, the processing unit 63 is configured to specifically perform the steps of: sending a charging addition request to the charging function device, where the charging addition request carries charging information to be updated, and where the charging information to be updated is specifically the charging information to be added; or sending a charging replacement request to the charging function device, where the charging replacement request carries charging information to be updated, and where the charging information to be updated is specifically the charging information to be replaced.

[0109] In one possible implementation, the processing unit 63 is specifically configured to send a first charging end request to the charging function device based on the instruction type of the charging end instruction, so as to terminate charging for the PDU session, if the instruction type is specifically an charging end instruction.

[0110] In some possible implementations, the first charging end request is specifically a POST message or a PUT message, where the POST message or the PUT message carries a charging end instruction attribute and all current charging information of the PDU session; or the first charging end request is specifically a DELETE message, where the processing unit is specifically configured to send a charging update request to the charging function device before sending the first charging end request to the charging function device, where the charging update request carries all current charging information of the PDU session.

[0111] In one possible implementation, the processing unit 63 is specifically configured to adjust the amount of requests sent to the charging function device based on the overload degree before a next instruction message whose instruction type is a charging function device overload indication is received or before the validity period carried in the instruction message expires, when the instruction type is specifically a charging function device overload indication and the instruction message further carries an overload degree of the charging function device.

[0112] In one possible implementation, the processing unit 63 is specifically configured to configure charging rules based on the instruction type of the charging rule configuration instruction, when the instruction type is specifically a charging rule configuration instruction and the instruction message further carries charging rules, where the charging rules include one or more of: a candidate server address rule, an offline reporting interval rule, a total idle resource threshold rule, an online or offline reporting condition rule, and a rule of using online or offline charging for a rating group.

[0113] In one possible implementation, the processing unit 63 is specifically configured to determine that a charging resource for the corresponding PDU session exists based on the PDU session identifier carried in the instruction message when the instruction type is specifically a charging resource validity detection instruction, and send a response success message to the charging function device.

[0114] In one possible implementation, the charging start request further carries an attribute that activates the charging function device to deliver the instruction using the instruction receiving address. In this case, in one possible implementation, the sending unit 61 is further configured to send a second charging end request to the charging function device, and the second charging end request carries an attribute that disables the charging function device from sending the instruction using the instruction receiving address.

[0115] In this embodiment of the present invention, the charging trigger function device adds an instruction receiving address to the charging start request, so that the charging function device may use the instruction receiving address to send an instruction message to the charging trigger function device corresponding to the instruction receiving address. In this way, the charging trigger function device may receive the instruction message carrying the instruction type. Since there are multiple instruction types, the charging trigger function device performs corresponding charging processes according to different instruction types. In this way, the charging function device enables the charging trigger function device to perform several specific operations as necessary to meet multiple different charging requirements.

[0116] 7 is a schematic block diagram of a charging function device 700 according to an embodiment of the present application. It should be understood that the charging function device 700 here may correspond to the CHF of FIG. 4A-FIG. 4C, and the charging function device 700 may include: a receiving module 71 configured to receive a charging start request sent by a charging trigger function device, the charging start request carrying an indication receiving address; A sending module 72 configured to send an instruction message to the charging trigger function device based on the instruction receiving address when it is determined that an instruction needs to be sent to the charging trigger function device, The indication message carries an indication type. A sending module.

[0117] In some possible implementation scenarios, the sending module 72 is specifically configured to perform the following steps: when a re-authentication condition is met, sending an indication message to the charging trigger function device based on the indication receiving address, where the indication message carries an indication type of a charging update indication and an indication applicability scope; or when a charging end condition is met, sending an indication message to the charging trigger function device based on the indication receiving address, where the indication message carries an indication type of a charging end indication; or when the charging function device is overloaded, sending an indication message to the charging trigger function device based on the indication receiving address, where the indication message carries an indication type of a charging function device overload indication and an overload degree of the charging function device; or when a charging rule configuration condition is met, sending an indication message to the charging trigger function device based on the indication receiving address, where the indication message carries an indication type of a charging rule configuration indication and a charging rule to be configured; or when the charging function device clears an invalid charging resource, sending an indication message to the charging function device based on the indication receiving address, where the indication message carries an indication type of a charging resource validity detection indication.

[0118] In one possible implementation, the receiving module 71 is specifically configured to perform the steps of: receiving a charging update request sent by a charging trigger function device, where the charging update request carries charging information to be updated; and updating the stored charging information with the charging information to be updated based on the charging information to be updated.

[0119] In one possible implementation, the receiving module 71 is specifically configured to receive a first charging termination request sent by a charging trigger function device and terminate charging for the PDU session. In some possible implementations, the first charging termination request is specifically a POST message or a PUT message, the POST message or the PUT message carrying an attribute of a charging termination instruction and all current charging information of the PDU session, and the receiving module 71 is specifically configured to update the charging information of the PDU session based on all current charging information of the PDU session and terminate charging for the PDU session based on the attribute of the charging termination instruction. Alternatively, the first charging termination request is specifically a DELETE message, and the receiving module 71 is specifically configured to receive a charging update request sent by a charging trigger function device carrying all current charging information of the PDU session before receiving the DELETE message, update the charging information of the PDU session, and terminate charging for the PDU session based on the DELETE message.

[0120] In one possible implementation, the charging function device further includes a storage module 73 configured to store an instruction receiving address after the charging start request sent by the charging trigger function device is received.

[0121] In one possible implementation, the receiving module 71 is specifically configured to receive a second charging termination request sent by a charging trigger function device, where the second charging termination request carries an attribute that prevents the charging function device from sending instructions using the instruction receiving address, and the charging function device further includes a deletion module 74 configured to delete the instruction receiving address based on the attribute that prevents the charging function device from sending instructions using the instruction receiving address.

[0122] FIG. 8 is a schematic block diagram of an implementation of a charging trigger function device or charging function device (herein, may be referred to as charging device 800 for short) according to an embodiment of the present application. The charging device 800 may include a processor 810, a memory 830, and a bus system 850. The processor and the memory are connected using the bus system. The memory is configured to store instructions. The processor is configured to execute the instructions stored in the memory. The memory of the charging device may store program codes, and the processor may call the program codes stored in the memory to execute various charging processing methods described in the present application, for example, the processing steps described in the embodiment of FIG. 5. To avoid repetition, the details will not be described again here.

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

[0124] The memory 830 may include a read only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may alternatively be used as the memory 830. The memory 830 may include code and data 831 that is accessed by the processor 810 using the bus system 850. The memory 830 may further include an operating system 833 and application programs 835. The application programs 835 include at least one program that allows the processor 810 to perform the billing methods described herein. For example, the application programs 835 may include applications 1 through N and may further include a billing application that performs the billing methods described herein.

[0125] The bus system 850 may further include a data bus, a power bus, a control bus, a status signal bus, etc. However, for clarity of description, the various types of buses in the figures are marked as the bus system 850.

[0126] Optionally, the billing device 800 may further include one or more output devices, such as a display 870. In one example, the display 870 may be a touch display that combines a display with a touch unit that operably senses touch input. The display 870 may be connected to the processor 810 by using the bus system 850.

[0127] Those skilled in the art will appreciate that the functionality described with reference to the various exemplary logical blocks, modules, and algorithmic steps disclosed and described herein may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, the functionality described with reference to the various exemplary logical blocks, modules, and steps may be stored on or transmitted through a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A 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 the 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 obtain instructions, code, and / or data structures for implementing the techniques described herein. A computer program product may include a computer-readable medium.

[0128] By way of example and not limitation, such computer readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical 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 can be accessed by a computer. Additionally, any connection is properly referred to as a computer readable medium. For example, if instructions are transmitted from a website, server, or other remote source through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio waves, and microwaves, the coaxial cable, fiber optic, twisted pair, DSL, or wireless technologies such as infrared, radio waves, and microwaves are included in the definition of the 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 and disc as used herein include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs. Disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer readable media.

[0129] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated circuits or discrete logic circuits. Thus, the term "processor" as used herein may refer to the above structures, or any other structures that may be applied to implement the techniques described herein. Furthermore, in some aspects, the functionality described with reference to various exemplary logic blocks, modules, and steps described herein may be provided in dedicated hardware and / or software modules configured for billing, or may be incorporated into a billing device. Furthermore, these techniques may be implemented in one or more circuits or logic elements.

[0130] The techniques of the present application may be implemented in a variety of apparatuses or devices, including a wireless handset, an integrated circuit (IC), or a group of ICs (e.g., a group of chips). The various components, modules, or units described herein are intended to highlight functional aspects of an apparatus configured to perform the disclosed techniques, but need not necessarily be implemented by different hardware units. In practice, as described above, the various units may be combined with suitable software and / or firmware in a codec hardware unit, or may be provided by interoperable hardware units (including one or more processors as described above).

[0131] The above description is merely an example of a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any variation or replacement that can be easily determined by a person skilled in the art within the technical scope disclosed in the present application falls within 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.< / id> < / notiid>

Claims

1. sending, by a charging trigger function device, via a service-based interface to a charging function device that performs online charging and offline charging, a charging initiation request for generating charging resources for a data connection regarding data traffic generated when a user device accesses a data service, wherein the charging initiation request carries an indication receiving address associated with the data connection; receiving, by the charging trigger function device via the service-based interface, a message sent by the charging function device based on the instruction receiving address associated with the data connection, the message carrying an instruction type indicating a type of charging process to be performed by the charging trigger function device; and executing a charging process by the charging trigger function device based on the instruction type. Billing method.

2. 2. The method of claim 1 , When the instruction type is a billing update instruction, performing a billing process based on the instruction type: sending a charging update request to the charging function device via the service-based interface based on an instruction type of the charging update instruction by the charging trigger function device, the charging update request carrying charging information to be updated; method.

3. 3. The method of claim 2, If the message further carries an indication applicability range, sending a charging update request to the charging function device includes: sending, by the charging trigger function device, the charging update request to the charging function device via the service-based interface, where the charging information to be updated is corresponding charging information within the indication applicability range; or If the message does not carry an indication of applicability scope, sending a charging update request to the charging function device includes: sending the charging update request by the charging trigger function device to the charging function device via the service-based interface, where the charging information to be updated is all charging information of the data connection. method.

4. 4. The method of claim 2 or 3, wherein sending a charging update request to the charging function device comprises: sending, by the charging trigger function device, a charging add request to the charging function device via the service-based interface; the charging add request carries charging information to be updated, the charging information to be updated being charging information to be added; method.

5. 4. The method of claim 2 or 3, wherein sending a charging update request to the charging function device comprises: sending, by the charging trigger function device, a charging replacement request to the charging function device via the service-based interface, the charging replacement request carrying charging information to be updated, the charging information to be updated being charging information to be replaced; method.

6. 2. The method according to claim 1, wherein, when the instruction type is a charging end instruction, performing charging processing based on the instruction type: sending a first charging termination request to the charging function device based on an instruction type of the charging termination instruction to terminate charging for the data connection; method.

7. receiving, via a service-based interface, by a charging function device that performs online charging and offline charging, a charging initiation request sent by a charging trigger function device, the charging initiation request being used to request generating charging resources for a data connection related to data traffic generated when a user device accesses a data service, the charging initiation request carrying an indication receiving address associated with the data connection; determining, by the charging function device, that an instruction type indicating a type of charging process to be performed by the charging trigger function device needs to be sent to the charging trigger function device to perform a charging process for the data connection; sending, by the charging trigger function device, via the service-based interface, a message to the charging trigger function device based on the instruction receiving address associated with the data connection, the message carrying an instruction type indicating a type of charging process to be performed by the charging trigger function device; method.

8. 8. The method of claim 7, wherein when determining that an instruction needs to be sent to the charging trigger function device, sending a message to the charging trigger function device based on the instruction receiving address associated with the data connection: sending the message to the charging trigger function device based on the instruction receiving address associated with the data connection when a re-authentication condition is satisfied, the message carrying an instruction type and an instruction applicability scope of a charging update instruction; method.

9. 9. The method according to claim 7 or 8, wherein when it is determined that an instruction needs to be sent to the charging trigger function device, the step of sending a message to the charging trigger function device based on the instruction receiving address associated with the data connection comprises: sending the message to the charging trigger function device based on the instruction receiving address when a charging termination condition is satisfied, the message carrying an instruction type of charging termination instruction; method.

10. 9. The method according to claim 7 or 8, wherein when it is determined that an instruction needs to be sent to the charging trigger function device, the step of sending a message to the charging trigger function device based on the instruction receiving address comprises: sending the message to the charging trigger function device based on the indication receiving address when the charging function device is overloaded, the message carrying an indication type of charging function device overload indication and an overload degree of the charging function device; method.

11. 11. The method of any one of claims 7 to 10, further comprising: receiving a charging update request sent by the charging trigger function device, the charging update request carrying charging information to be updated; and updating stored charging information with the charging information to be updated based on the charging information to be updated. method.

12. 12. The method according to claim 7, further comprising: receiving a first charging termination request sent by the charging trigger function device to terminate charging for the data connection.

13. 1. A charging trigger function device comprising: a sending unit configured to send, via a service-based interface, a charging initiation request for generating charging resources for a data connection related to data traffic generated when a user device accesses a data service, to a charging function device that performs online charging and offline charging, the charging initiation request carrying an indication receiving address associated with the data connection; a receiving unit configured to receive, via the service-based interface, a message sent by the charging function device based on the instruction receiving address, the message carrying an instruction type indicating a type of charging process to be performed by the charging trigger function device; and a processing unit configured to perform a charging process for the data connection based on the instruction type. Device.

14. The apparatus of claim 13, wherein the processing unit is configured to: when the instruction type is a charging update instruction, send a charging update request to the charging function device via the service-based interface based on the instruction type of the charging update instruction, the charging update request carrying charging information to be updated.

15. 15. The apparatus of claim 14, wherein the processing unit is configured to: if the message further carries an indication applicability range, send the charging update request to the charging function device via the service-based interface, and the charging information to be updated is corresponding charging information in the indication applicability range; or If the message does not carry an indication of applicability scope, the charging update request is sent to the charging function device via the service-based interface, and the charging information to be updated is all charging information of the data connection. Device.

16. 16. The apparatus according to any one of claims 13 to 15, wherein the processing unit is configured to send a charging add request to the charging function device via the service-based interface, the charging add request carrying charging information to be updated, the charging information to be updated being charging information to be added.

17. 1. A charging function device configured to perform online charging and offline charging, comprising: a receiving module configured to receive, via a service-based interface, a charging initiation request sent by a charging trigger function device, the charging initiation request being used to request generating charging resources for a data connection related to data traffic generated when a user device accesses a data service, the charging initiation request carrying an indication receiving address associated with the data connection; a determining module configured to determine that an instruction type indicating a type of a charging process to be performed by the charging trigger function device needs to be sent to the charging trigger function device to perform a charging process for the data connection; a sending module configured to send a message to the charging trigger function device via the service-based interface based on the instruction receiving address associated with the data connection, the message carrying an instruction type indicating a type of charging process to be performed by the charging trigger function device; Device.

18. 20. The apparatus of claim 17, wherein the sending module is configured to: send the message to the charging trigger function device based on the instruction receiving address when a re-authentication condition is met, the message carrying an instruction type and an instruction applicability scope of a charging update instruction.

19. 19. The apparatus according to claim 17 or 18, wherein the sending module is configured to: send the message to the charging trigger function device based on the instruction receiving address when a charging end condition is met, and the message carries an instruction type of charging end instruction.

20. 20. The apparatus of any one of claims 17 to 19, wherein the receiving module comprises: receiving a charging update request sent by the charging trigger function device, the charging update request carrying charging information to be updated; and updating stored charging information with the charging information to be updated based on the charging information to be updated. Device.

21. A charging system comprising a charging trigger function device according to any one of claims 13 to 16 and a charging function device according to any one of claims 17 to 20.

22. A step of sending, by a charging trigger function device, via a service-based interface to a charging function device performing online charging and offline charging, a charging initiation request for generating charging resources for a data connection regarding data traffic generated when a user device accesses a data service, wherein the charging initiation request carries an instruction receiving address associated with the data connection; sending, by the charging function device to the charging trigger function device via the service-based interface, a message to be sent by the charging function device based on the instruction receiving address associated with the data connection, the message carrying an instruction type indicating a type of charging process to be performed by the charging trigger function device; and executing a charging process by the charging trigger function device based on the instruction type. Billing method.

Citation Information

Patent Citations

  • Method for enforcing billing rules for packet data services and how it works

    JP2007529171A

  • A device and system for determining when a billing session should be terminated.

    JP2015526041A

  • Charging session management method and device

    JP2017514338A

  • JPP7128340B

  • Online charging in IMS networks for sessions handed over between different operator networks

    US20120184244A1