WO2023078149A1 - Charging method, apparatus and system - Google Patents

Charging method, apparatus and system Download PDF

Info

Publication number
WO2023078149A1
WO2023078149A1 PCT/CN2022/127905 CN2022127905W WO2023078149A1 WO 2023078149 A1 WO2023078149 A1 WO 2023078149A1 CN 2022127905 W CN2022127905 W CN 2022127905W WO 2023078149 A1 WO2023078149 A1 WO 2023078149A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
charging
entity
data transmission
transmission rate
Prior art date
Application number
PCT/CN2022/127905
Other languages
French (fr)
Chinese (zh)
Inventor
柴晓前
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023078149A1 publication Critical patent/WO2023078149A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • the present application relates to the technical field of communications, and in particular to a charging method, device and system.
  • the session management entity can obtain the usage amount corresponding to the data connection session of the user equipment.
  • the usage amount is Refers to the traffic generated by the data transmission of the business in the data connection session, and the usage is reported to the charging functional entity, and then the charging functional entity performs charging processing on the user equipment based on the usage.
  • the data transmission rate may change frequently.
  • the above method of billing according to traffic does not consider the data transmission rate. How to charge the user equipment based on the data transmission rate is an urgent problem to be solved.
  • the present application provides a charging method, device and system, which are used to implement charging processing on user equipment based on a data transmission rate.
  • the embodiment of the present application provides a charging method, which can be used to realize the function of the charging policy entity side, and the embodiment of the present application does not limit the specific execution subject of the method.
  • the charging policy entity determines the rate charging policy of the data connection service of the user equipment, and the rate charging policy is used to instruct the rate charging information collection entity to generate At least one piece of rate charging information for the data connection service, each piece of rate charging information includes information on a data rate range and corresponding usage information, and the data transmission rate range is a plurality of data obtained by the rate charging information collection entity
  • the usage information includes the accumulated usage amount for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval; and, charging for the rate The information collection entity sends the rate charging policy.
  • each piece of rate charging information in this embodiment of the present application may include information on a data transmission rate interval and corresponding usage information, it is possible to perform charging processing on the user equipment based on the data transmission rate.
  • the billing method provided by the embodiment of the present application performs billing from two dimensions of data transmission rate and usage (such as traffic), and can set prices for operators according to data transmission rate (different data transmission rate intervals correspond to different rates ) provides technical support to meet the rate monetization needs of operators and facilitate the improvement of network resource utilization.
  • the data connection service is a collection of service data flows in a data connection session of the user equipment.
  • the data connection service includes all service data flows in the data connection session of the user equipment; or, the data connection service includes a quality of service in the data connection session of the user equipment Multiple service data flows corresponding to the QoS flow; or, the data connection service includes multiple service data flows corresponding to one rate group in the data connection session of the user equipment; or, the data connection service includes the A service data stream in a data connection session of a user equipment.
  • the rate charging policy includes information about the multiple data transmission rate intervals.
  • the charging policy entity may have different data transmission rate interval division methods (that is, the manner of dividing into multiple data transmission rate intervals).
  • the division methods of data transmission rate intervals of rate charging policies of different user equipments can be different, and for example, the division methods of data transmission rate intervals of rate accounting policies of different PDU sessions of the same user equipment can also be different.
  • PDU session The data transmission rate interval of the rate billing policy of 1 includes the following three intervals: (0,5Mbps], (5Mbps,10Mbps], (10Mbps, ⁇ )
  • the data transmission rate interval of the rate billing policy of PDU session 2 includes the following Three intervals: (0,8Mbps], (8Mbps,15Mbps], (15Mbps, ⁇ ).
  • the data transmission rate interval division method of the rate charging policy of different services of the user equipment can also be different, so that the determined The rate charging policy is more flexible and can effectively meet the charging requirements of different scenarios.
  • the rate charging policy includes a time range, and the time range is used to instruct the rate charging information collection entity to generate at least one rate meter of the data connection service within the time range. fee information.
  • the charging policy entity can flexibly define the time of rate charging through the time range.
  • the rate charging policy includes a time unit, and the time unit is used to instruct the rate charging information collection entity to determine the data connection service in the time unit every time unit data transfer rate.
  • the rate charging policy includes mode information, and the mode information is used to indicate a mode of determining the data transmission rate of the data connection service in the time unit.
  • the manner indicated by the manner information is the first manner or the second manner; wherein, the first manner is to calculate the data connection service in the time unit based on the duration of the time unit
  • the data transmission rate (such as calculating the data transmission rate of the data connection service in the time unit based on the traffic in the time unit and the duration of the time unit);
  • the second method is based on the Calculate the data transmission rate of the data connection service in the time unit according to the duration of traffic generation (for example, calculate the data transmission rate of the data connection service in the time unit based on the traffic in the time unit and the duration of traffic generation in the time unit data transfer rate).
  • the charging policy entity can dynamically adjust the duration of the time unit and the way of calculating the rate according to the charging requirements of different scenarios and the computing burden of the system, which has a strong flexibility. For example, when the duration of the time unit is short and/or the method of calculating the rate is the second method, the calculation burden of the rate charging information collection entity is relatively large, and when the duration of the time unit is long and/or the method of calculating the rate is In the first mode, the calculation burden of the rate charging information collection entity is relatively small.
  • the method further includes: receiving a first charging request message from a charging trigger entity; and determining the rate charging policy based on the first charging request message.
  • the charging policy entity is a charging function CHF entity or a policy control function PCF entity.
  • the embodiment of the present application provides a charging method, which can be used to realize the function of the charging processing entity side, and the embodiment of the present application does not limit the specific execution subject of the method.
  • the charging processing entity receives at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, and each piece of rate charging information Including information on the data transmission rate range and corresponding usage information;
  • the data transmission rate range is one of the multiple data transmission rate ranges obtained by the rate charging information collection entity, and the usage information includes when the data connection service The accumulated usage of the data connection service when the data transmission rate is within the data transmission rate range; and performing charging processing on the user equipment based on the at least one piece of rate charging information.
  • receiving the rate charging information from the rate charging information collection entity includes: receiving a second charging request message from the rate charging information collection entity, the second charging request message Include the at least one piece of rate charging information.
  • receiving the rate charging information from the rate charging information collection entity includes: receiving a subscription notification message from the rate charging information collection entity, the subscription notification message including the at least one rate charging information collection entity. billing information.
  • the method further includes: sending quotas corresponding to the plurality of data transmission rate intervals to the rate charging information collection entity, and the usage amount is the quota corresponding to the data transmission rate intervals The usage of the quota.
  • the method further includes: sending trigger condition information to the rate charging information collection entity; wherein the trigger condition information includes a threshold corresponding to the first quota, and the trigger condition information is used to Instructing that when the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to the first quota, report the rate charging information to the charging processing entity; and/or, the trigger condition information includes The validity period of the first quota, the trigger condition information is used to indicate that when the validity period expires, report the rate charging information to the charging processing entity; the first quota is the first data transmission rate interval For a corresponding quota, the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  • the charging processing entity is a CHF entity.
  • the embodiment of the present application provides a charging method, which can be used to realize the function of the rate charging information collection entity side, and the embodiment of the present application does not limit the specific execution subject of the method.
  • the rate charging information collection entity receives the rate charging policy of the data connection service of the user equipment sent by the charging policy entity, and the rate charging policy Used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service; and, according to the rate charging policy, generate the at least one piece of rate charging information; wherein, each rate The billing information includes information on data transmission rate ranges and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the The usage amount accumulated for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval.
  • the data connection service is a collection of service data flows in a data connection session of the user equipment.
  • the data connection service includes all service data flows in the data connection session of the user equipment; or, the data connection service includes a quality of service in the data connection session of the user equipment Multiple service data flows corresponding to the QoS flow; or, the data connection service includes multiple service data flows corresponding to one rate group in the data connection session of the user equipment; or, the data connection service includes the A service data stream in a data connection session of a user equipment.
  • the rate charging policy includes information on the multiple data transmission rate ranges
  • the method further includes: acquiring the multiple data transmission rate ranges from the rate charging policy.
  • the rate charging policy includes a time range; generating the rate charging information of the user equipment according to the rate charging policy includes: according to the rate charging policy, in the At least one piece of rate charging information of the data connection service is generated within the time range.
  • the rate charging policy includes a time unit; generating the rate charging information of the user equipment according to the rate charging policy includes: determining the time unit every time unit The data transmission rate of the data connection service mentioned in the above.
  • the data connection service corresponds to multiple user plane functional entities; the data transmission rate of the data connection service in the time unit is The total data transmission rate; wherein, the total data transmission rate is obtained based on the total traffic of the data connection service on the multiple user plane functional entities; or, the total data transmission rate is the multiple The sum of the data transmission rates of the data connection services respectively corresponding to the user plane functional entities.
  • the rate charging policy includes mode information; determining the data transmission rate of the data connection service within the time unit includes: determining the time according to the mode indicated by the mode information The data transmission rate of the data connection service in the unit.
  • the mode indicated by the mode information is the first mode or the second mode; when the mode indicated by the mode information is the first mode, determine the data connection within the time unit
  • the data transmission rate of the service including: calculating the data transmission rate of the data connection service in the time unit based on the duration of the time unit; when the mode indicated by the mode information is the second mode, determining the The data transmission rate of the data connection service in the time unit includes: calculating the data transmission rate of the data connection service in the time unit based on the duration of traffic generation in the time unit.
  • the method further includes: sending the at least one piece of rate charging information to a charging processing entity.
  • the rate charging information collection entity may be an SMF entity or an NWDAF entity. Further, when the rate charging information collection entity can be an NWDAF entity, the following possible designs may also be included:
  • the method further includes: sending a subscription notification message to the charging processing entity, where the subscription notification message includes the at least one piece of rate charging information.
  • the rate charging information collection entity can be an SMF entity
  • the following possible designs can also be included:
  • the method further includes: sending a second charging request message to the charging processing entity, where the second charging request message includes the at least one piece of rate charging information.
  • the method further includes: sending a first charging request message to the charging policy entity, where the first charging request message is used to determine the rate charging policy.
  • the method further includes: receiving quotas corresponding to the plurality of data transmission rate intervals sent by the charging processing entity, and the usage amount is the quota corresponding to the data transmission rate intervals usage.
  • the method further includes: receiving trigger condition information sent by the charging processing entity; the trigger condition information includes a threshold corresponding to the first quota; sending the rate meter to the charging processing entity charging information, including: after determining that the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to the first quota, sending the rate charging information to the charging processing entity; and/or, the The trigger condition information includes the validity period of the first quota; sending the rate charging information to the charging processing entity includes: after determining that the validity period of the first quota expires, sending the rate charging information to the charging processing entity ;
  • the first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  • the embodiment of the present application provides a charging policy entity, where the charging policy entity has the function of implementing the first aspect above.
  • the charging policy entity includes a module or unit or means (means) for performing the steps involved in the first aspect above, and the function, unit or means can be implemented by software, or by hardware, or by hardware corresponding software implementation.
  • the charging policy entity includes a processing module and a communication module, wherein the communication module can be used to send and receive signals to realize communication between the charging policy entity and other devices; the processing module can use It is used to perform some internal operations of the charging policy entity.
  • the processing module is configured to: determine a rate charging policy of the user equipment, where the rate charging policy is used to instruct the rate charging information collection entity to generate a rate meter for the data connection service of the user equipment.
  • a fee policy the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service, each piece of rate charging information includes information on the data rate interval and corresponding usage information,
  • the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within the data transmission rate range For the accumulated usage of the data connection service;
  • the communication module is configured to: send the rate charging policy to the rate charging information collection entity.
  • the communication module is further configured to: receive a first charging request message from a charging trigger entity; the processing module is specifically configured to: determine the Rate billing policy.
  • the billing policy entity includes a processor, and may further include a transceiver, where the transceiver is used to send and receive signals, and the processor executes program instructions to implement any possible A method in design or implementation.
  • the charging policy entity may further include one or more memories, the memories are used to be coupled with the processor, and the memories may store necessary computer programs or instructions for realizing the functions involved in the first aspect above.
  • the processor can execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing policy entity implements the method in any possible design or implementation of the first aspect above .
  • the charging policy entity includes a processor, and the processor can be used to be coupled with the memory.
  • the memory may store necessary computer programs or instructions to realize the functions referred to in the first aspect above.
  • the processor can execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing policy entity implements the method in any possible design or implementation of the first aspect above .
  • the billing policy entity includes a processor and an interface circuit, where the processor is configured to communicate with other devices through the interface circuit, and execute any possible design or implementation in the first aspect above method in .
  • the embodiment of the present application provides a charging processing entity, the charging processing entity has the function of realizing the above-mentioned second aspect, for example, the charging processing entity includes a method for performing the steps involved in the above-mentioned second aspect
  • the module or unit or means, the function or unit or means may be realized by software, or by hardware, or by executing corresponding software by hardware.
  • the billing processing entity includes a processing module and a communication module, wherein the communication module can be used to send and receive signals to realize communication between the billing processing entity and other devices; the processing module can use To perform some internal operations of the billing processing entity.
  • the communication module is configured to: receive at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, each piece of rate charging information includes information on the data transmission rate range and corresponding usage information; the data transmission rate interval is one of multiple data transmission rate intervals obtained by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within the The accumulated usage of the data connection service when the data transmission rate is within the interval; the processing module is configured to: perform charging processing on the user equipment based on the rate charging information.
  • the communication module is specifically configured to: receive a second charging request message from the rate charging information collection entity, where the second charging request message includes the at least one piece of rate charging information .
  • the communication module is further configured to: send the quotas corresponding to the plurality of data transmission rate intervals to the rate charging information collection entity, and the usage amount is the quota corresponding to the data transmission rate intervals. The usage of the quota.
  • the communication module is further configured to: send trigger condition information to the rate charging information collection entity; wherein the trigger condition information includes a threshold corresponding to the first quota, and the trigger condition information uses Instructing to report the rate charging information to the charging processing entity when the available quota corresponding to the first data transmission rate interval is less than or equal to the threshold corresponding to the first quota; and/or, the triggering
  • the condition information includes the validity period of the first quota, and the trigger condition information is used to indicate that when the validity period expires, the rate charging information is reported to the charging processing entity; the first quota is the first data transmission rate A quota corresponding to an interval, wherein the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  • the billing processing entity includes a processor, and may further include a transceiver, where the transceiver is used to send and receive signals, and the processor executes program instructions to implement any of the possible tasks in the second aspect above.
  • the billing processing entity may further include one or more memories, the memories are used to be coupled with the processor, and the memories may store necessary computer programs or instructions for realizing the functions involved in the second aspect above.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing processing entity implements the method in any possible design or implementation of the second aspect above .
  • the billing processing entity includes a processor, and the processor can be used to be coupled with the memory.
  • the memory may store necessary computer programs or instructions to realize the functions referred to in the second aspect above.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing processing entity implements the method in any possible design or implementation of the second aspect above .
  • the billing processing entity includes a processor and an interface circuit, where the processor is configured to communicate with other devices through the interface circuit, and execute any possible design or implementation in the second aspect above method in .
  • the embodiment of the present application provides a rate charging information collection entity
  • the rate charging information collection entity has the function of realizing the third aspect above, for example, the rate charging information collection entity includes the above third
  • the modules, units, or means of the steps involved in the aspect, the functions, units, or means may be implemented by software, or by hardware, or by executing corresponding software by hardware.
  • the rate charging information collection entity includes a processing module and a communication module, wherein the communication module can be used to send and receive signals to realize communication between the rate charging information collection entity and other devices;
  • the processing module can be used to execute some internal operations of the rate charging information collection entity.
  • the communication module is configured to: receive the rate charging policy of the data connection service of the user equipment sent by the charging policy entity, the rate charging policy is used to instruct the rate charging information collection entity Generate at least one piece of rate charging information for the data connection service;
  • the processing module is configured to: generate the at least one piece of rate charging information according to the rate charging policy; wherein each piece of rate charging information includes a data transmission rate interval information and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within The accumulated usage for the data connection service when the data transmission rate is within the interval.
  • the rate charging policy includes a time range; the processing module is specifically configured to: generate at least one rate meter of the data connection service within the time range according to the rate charging policy fee information.
  • the rate charging policy includes a time unit; the processing module is specifically configured to: determine the data transmission rate of the data connection service in the time unit every time unit.
  • the rate charging policy includes mode information; the processing module is specifically configured to: determine the data transmission rate of the data connection service in the time unit according to the mode indicated by the mode information .
  • the manner indicated by the manner information is the first manner or the second manner; when the manner indicated by the manner information is the first manner, the processing module is specifically configured to: based on the The duration of the time unit calculates the data transmission rate of the data connection service within the time unit; when the mode indicated by the mode information is the second mode, the processing module is specifically configured to: The duration of traffic generation is used to calculate the data transmission rate of the data connection service in the time unit.
  • the communication module is further configured to: send the at least one piece of rate charging information to a charging processing entity.
  • the communication module is further configured to: receive the quotas corresponding to the multiple data transmission rate intervals sent by the charging processing entity, and the usage amount is the quota corresponding to the data transmission rate intervals The usage of the quota.
  • the communication module is further configured to: receive validity periods of quotas respectively corresponding to the plurality of data transmission rate intervals sent by the charging processing entity.
  • the communication module is further configured to: receive trigger condition information sent by the charging processing entity; the trigger condition information includes a threshold corresponding to the first quota; the processing module is further configured to: determine After the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to the first quota, control the communication module to send the rate charging information to the charging processing entity; and/or, the triggering The condition information includes the validity period of the first quota; the processing module is further configured to: after determining that the validity period of the first quota expires, control the communication module to send the rate charging information to the charging processing entity; the The first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  • the rate charging information collection entity includes a processor, and may also include a transceiver, the transceiver is used to send and receive signals, and the processor executes program instructions to complete any of the above third aspects.
  • the rate charging information collection entity may further include one or more memories, the memories are used to be coupled with the processor, and the memories may store necessary computer programs or instructions for realizing the functions involved in the third aspect above.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the rate charging information collection entity may implement any possible design or implementation in the third aspect above. Methods.
  • the entity for collecting rate and charging information includes a processor, and the processor may be used to be coupled with a memory.
  • the memory may store necessary computer programs or instructions to realize the functions mentioned in the above third aspect.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the rate charging information collection entity may implement any possible design or implementation in the third aspect above. Methods.
  • the rate charging information collection entity includes a processor and an interface circuit, where the processor is used to communicate with other devices through the interface circuit, and execute any possible design or method in the implementation.
  • the processor can be implemented by hardware or by software.
  • the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software
  • the processor may be a general-purpose processor, which is realized by reading software codes stored in the memory.
  • there may be one or more processors, and one or more memories.
  • the memory can be integrated with the processor, or the memory can be separated from the processor.
  • the memory and the processor can be integrated on the same chip, or they can be respectively arranged on different chips.
  • the embodiment of the present application does not limit the type of the memory and the arrangement of the memory and the processor.
  • the embodiment of the present application provides a communication system, which includes the charging policy entity provided in the fourth aspect above, the charging processing entity provided in the fifth aspect above, and the rate rate provided in the sixth aspect above. Billing information collection entity.
  • the present application provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable medium, and when a computer reads and executes the computer-readable instructions, the computer executes the above-mentioned first aspect to A method in any possible design of the third aspect.
  • the present application provides a computer program product.
  • the computer When a computer reads and executes the computer program product, the computer is made to execute the method in any possible design of the above first aspect to the third aspect.
  • the present application provides a chip, the chip includes a processor, the processor is coupled with a memory, and is used to read and execute a software program stored in the memory, so as to realize the first to third aspects above. Aspects of any one of the possible design methods.
  • the rate charging information also includes mode information, so that the rate charging information collection entity can adopt the rate calculation method more flexibly, and the charging processing entity can accurately know the The rate calculation method used.
  • FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another network architecture provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of communication between an SMF entity and a CHF entity provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of data transmission rate characteristics in three scenarios provided by the embodiment of the present application.
  • 5A to 5E are schematic diagrams of network architectures applicable to embodiments of the present application.
  • FIG. 6 is a schematic flowchart corresponding to the billing method provided in Embodiment 1 of the present application.
  • FIG. 7A is a schematic diagram of generating rate charging information provided by an embodiment of the present application.
  • FIG. 7B is another schematic diagram of generating rate charging information provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart corresponding to the billing method provided in Embodiment 2 of the present application.
  • FIG. 9 is a schematic flowchart corresponding to the billing method provided in Embodiment 3 of the present application.
  • FIG. 10 is a schematic flowchart corresponding to the billing method provided in Embodiment 4 of the present application.
  • FIG. 11 is a schematic flowchart corresponding to the charging method provided in Embodiment 5 of the present application.
  • Fig. 12 is a possible exemplary block diagram of the device involved in the embodiment of the present application.
  • FIG. 13 is a schematic diagram of a possible structure of the device involved in the embodiment of the present application.
  • FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application, taking the network architecture of a 5G communication system based on a service interface as an example.
  • the user equipment can be connected to a wireless network, so as to obtain services of an external network (such as a data network (DN)) through the wireless network, or communicate with other devices through the wireless network.
  • DN data network
  • the wireless network may also be referred to as an operator network, and the wireless network may include a (wireless) access network ((radio) access network, (R)AN) and a core network (core network, CN), wherein the (R)AN (hereinafter collectively described as RAN) is used to connect the user equipment to the wireless network, and the CN is used to manage the user equipment and provide a gateway for communicating with the DN.
  • a (wireless) access network (radio) access network, (R)AN) and a core network (core network, CN)
  • RAN core network
  • the user equipment, RAN, CN, and DN will be described in detail below.
  • a user device is a terminal user's device; the device may have a wireless communication capability to be connected to a wireless access device through an air interface, or may have a wired communication capability to be connected to a wired access device through a wired interface; from In terms of product form, the device can be a smartphone, a laptop with wireless communication function (Laptop), a tablet, a wearable device, an augmented reality (augmented reality, AR) device, an Internet of things (IoT) ) device, a desktop computer on an office desktop, etc.; the device can consume application services provided by an application server in a data network through a data connection session.
  • the device can consume application services provided by an application server in a data network through a data connection session.
  • the user equipment may include user equipment (user equipment, UE) functions defined by the 3rd generation partnership project (the 3rd generation partnership project, 3GPP) standard specification.
  • UE user equipment
  • 3rd generation partnership project the 3rd generation partnership project, 3GPP
  • the RAN may include one or more access network devices, and the interface between the access network device and the terminal device may be a Uu interface (or called an air interface).
  • An access network device is a node or device that connects a terminal device to a wireless network.
  • Access network equipment includes, but is not limited to, a new generation base station (generation node B, gNB), an evolved node B (evolved node B, eNB), a next generation evolved node B (next generation eNB, ng -eNB), home base station ((home evolved nodeB, HeNB) or (home node B, HNB)), etc.
  • the CN may include one or more core network elements or core network entities, for example, the CN may include a policy control function (policy control function, PCF) entity, a unified data management (unified data management, UDM) entity, a unified database ( unified data repository, UDR), access and mobility management function (access and mobility management function, AMF) entity, session management function (session management function, SMF) entity and user plane function (user plane function, UPF) entity, etc.
  • policy control function policy control function
  • PCF policy control function
  • UDM unified data management
  • UDR unified data repository
  • AMF access and mobility management function
  • session management function session management function
  • SMF session management function
  • UPF user plane function
  • the AMF entity is a control plane entity provided by the operator's network, responsible for access control and mobility management of terminal equipment accessing the operator's network, such as including user location update, user registration network, user switching, etc.
  • the UPF entity is the gateway for communication between the carrier network and the DN.
  • the UPF entity includes functions related to the user plane such as data packet routing and transmission, packet detection, quality of service (QoS) processing, lawful interception, uplink packet detection, and downlink data packet storage.
  • QoS quality of service
  • the SMF entity is responsible for session management in the mobile network (such as session establishment, modification, release), Internet protocol (internet protocol, IP) address allocation and management, selection and control of UPF entities, service and session continuity (service and session continuity, SSC) mode selection, roaming and other session-related functions.
  • session management such as session establishment, modification, release
  • Internet protocol Internet protocol, IP
  • IP Internet protocol
  • SSC service and session continuity
  • the PCF entity is responsible for generating some policies, such as UE access policies, QoS flow control policies, and policies related to charging.
  • the UDM entity is responsible for storing information such as the subscriber permanent identifier (SUPI) and subscription data of subscribers in the operator's network.
  • SUPI subscriber permanent identifier
  • UDR provides storage capabilities for contract data, policy data, and capability opening-related data.
  • each core network entity included in the CN may refer to the 3GPP standard specifications.
  • the DN may also be called a packet data network (PDN), which is a network outside the operator's network.
  • PDN packet data network
  • the DN is identified by the data network name (DNN) in the 5G communication network.
  • DNN data network name
  • a typical DN may include the Internet, an IP multimedia service (IP multi-media service, IMS) network, and the like.
  • the above network architecture may also include other possible entities, such as a network data analysis function (network data analytics function, NWDAF) entity.
  • NWDAF entity is a data-aware analysis entity that analyzes network data based on network data Carry out automatic perception and analysis, and participate in the whole life cycle of network planning, construction, operation and maintenance, network optimization, and operation, making the network easy to maintain and control, and improving the efficiency of network resource usage.
  • the letters and numbers near the lines between the entities represent the entities
  • the names of the communication interfaces between, the meaning of these communication interfaces can refer to the meaning defined in the relevant standard protocols.
  • the communication interface between various entities may also have other names, which are not specifically limited.
  • FIG. 2 is a schematic diagram of another network architecture provided by the embodiment of the present application, taking the network architecture of converged charging as an example.
  • the network architecture may include a charging trigger function (charging trigger function, CTF) entity defined in 3GPP standard specifications and a charging function (charging function, CHF) entity defined in 3GPP standard specifications.
  • CTF charging trigger function
  • CHF charging function
  • the CTF entity may be integrated in the SMF entity shown in FIG. 1 as a part of the SMF entity.
  • the CHF entity can perform converged charging, and converged charging can include online charging and offline charging.
  • the foregoing network architecture may further include a billing domain (billing domain) or a billing entity, and the billing entity and the CHF entity may communicate through a charging gateway function (charging gateway function, CGF) entity.
  • the CGF entity may be integrated in the billing entity, as a part of the billing entity, or may exist as an independent entity, which is not specifically limited. In FIG. 2, the CGF entity is taken as an independent entity for illustration.
  • the SMF entity (or CTF entity) can communicate with the CHF entity through the service interface.
  • Some possible communications between the SMF entity and the CHF entity are described below in conjunction with FIG. 3 .
  • Figure 3 is a schematic diagram of communication between the SMF entity and the CHF entity, as shown in Figure 3, including:
  • the SMF entity receives a session establishment request message from a user equipment, where the session establishment request message is used to request establishment of a data connection session for the user equipment.
  • the data connection session is an association between the user equipment and the data network, and is used to provide connection services for communication between the user equipment and the data network, so that communication data packets (packets) can be transmitted between the user equipment and the data network.
  • Data networks are transmitted back and forth; the creation process can be initiated by the user equipment, and the teardown process can be initiated by the user equipment or other equipment.
  • the data connection session may be a protocol data unit (protocol data unit, PDU) session applicable to the 5G communication system, or other sessions applicable to other networks, such as an IP connection access network session (IP- connectivity access network, IP-CAN session), the embodiment of this application is not limited here.
  • PDU protocol data unit
  • IP- connectivity access network IP- connectivity access network
  • IP-CAN session IP- connectivity access network
  • the SMF entity sends a charging request message 1 to the CHF entity, where the charging request message 1 may include the identification of the user equipment, the identification of the PDU session, and the like.
  • the charging request message 1 may be an initial charging data request message or a charging resource creation request message.
  • Charging request message 1 is used to request the CHF entity to create a corresponding charging resource for the PDU session.
  • the charging resource is used to manage the application for the quota of the data connection service in the PDU session and the reporting of the usage.
  • the SMF entity can pass
  • the charging resource management request message (such as the charging resource update request message) applies to the CHF entity for the quota of the data connection service, and reports the usage amount of the data connection service, and the usage amount includes duration or traffic.
  • the data connection service can be understood as a collection of service data flows (service data flow, SDF) in the data connection session of the user equipment.
  • the identifier of the user equipment may be an international mobile subscriber identification number (IMSI) or a user Internet protocol version 6 (internet protocol version 6, IPv6) address, etc.
  • IMSI international mobile subscriber identification number
  • IPv6 Internet protocol version 6, IPv6 address
  • the CHF entity receives the charging request message 1, and sends a charging response message 1 to the SMF entity
  • the charging response message 1 may include a charging resource identifier, and the charging resource identifier is used to identify the charging created by the CHF entity for the PDU session resource.
  • the charging response message 1 may be an initial charging data response message or a charging resource creation response message.
  • the charging request message 2 may be sent to the CHF entity, and the charging request message 2 includes the charging resource identifier and the related information of the usage amount of the user equipment for the data connection service.
  • the charging request message 2 may be a charging data update request message or a charging resource update request message.
  • the CHF entity receives the charging request message 2, performs charging processing on the user equipment based on the usage amount of the data connection service by the user equipment, and sends a charging response message 2 to the SMF entity.
  • the charging response message 2 may be a charging data update response message or a charging resource update response message.
  • the SMF entity may send a charging request message 3 to the CHF entity, where the charging request message 3 is used to request the CHF entity to terminate charging processing for the data connection service in the PDU session.
  • the charging request message 3 includes information about the usage of the data connection service by the user equipment before the PDU session is released.
  • the charging request message 2 may be a charging data termination request message or a charging resource release request message.
  • the CHF entity receives the charging request message 3, terminates the charging process for the data connection service in the PDU session, and sends the charging response message 3 to the SMF entity. If the charging request message 3 contains information about the usage of the data connection service by the user equipment, the CHF entity also performs charging processing on the user equipment based on the usage.
  • the charging response message 3 may be a charging data termination response message or a charging resource release response message.
  • the SMF entity may send multiple update charging data request messages to the CHF entity (for example, if the SMF entity determines that the trigger condition is met, the SMF entity sends an update charging data request message once). ), correspondingly, the CHF entity may also send multiple update charging data response messages to the SMF entity.
  • the current SMF entity can obtain the usage volume (such as traffic) of the data connection service of the user equipment, and report it to the CHF entity, and then the CHF entity charges the user equipment based on the traffic deal with.
  • the usage volume such as traffic
  • the 5G communication system can provide communication services for a variety of applications, different applications may have significantly different data transmission rate characteristics.
  • FIG. 4 the data transmission rate characteristics in three scenarios are schematically shown.
  • Scenario 1 such as movie playback without barrage
  • Scenario 2 such as movie playback with barrage
  • scene 3 such as live video broadcasting
  • the data transmission rate The rate is high at the beginning, and after a subsequent decrease, it is more stable.
  • the above-mentioned manner of charging according to the flow rate does not consider the data transmission rate of the user equipment.
  • one possible way is to set one or more rate thresholds for the data connection service of the user equipment, when the data transmission rate of the data connection service exceeds a certain rate threshold , the real-time data transmission rate and usage amount are reported to the charging processing entity, and then the charging processing entity can perform charging processing on the user equipment according to the real-time data transmission rate and usage amount.
  • the charging processing entity since the data transmission rate of the data connection service is dynamically changed, it may cause the data transmission rate to frequently cross the rate threshold, and then need to frequently report the real-time data transmission rate and usage. Accordingly, the charging processing entity needs to frequently perform Accounting processing, so that the overhead of transmission resources is relatively large, and the processing burden of the charging processing entity is relatively heavy.
  • an embodiment of the present application provides a charging method.
  • the charging policy entity can generate a corresponding rate charging policy for the data connection service of the user equipment, and send the rate meter to the rate charging information collection entity.
  • a charging policy so that the rate charging information collection entity can generate at least one piece of rate charging information for the data connection service according to the rate charging policy, and then the charging processing entity can perform charging processing on the user equipment based on the at least one piece of rate charging information.
  • each piece of rate billing information in the embodiment of the present application can include the information of the data transmission rate range and the corresponding usage information, it is possible to realize the charging of the user equipment based on the data transmission rate.
  • the rate charging information collection entity can summarize the usage amount according to multiple data transmission rate intervals according to the rate charging policy, for example, when the data transmission rate of the data connection service changes in different data transmission rate intervals.
  • the rate charging information collection entity can count the usage corresponding to different data transmission rate intervals, it does not need to report to the billing processing entity frequently because the data transmission rate changes in different data transmission rate intervals, thus effectively saving transmission resources and reducing The processing burden of the billing processing entity.
  • the unit of the data transmission rate can be bit rate or bit/second (bits per second, bps), for the convenience of description, sometimes the data transmission rate is also referred to simply as the rate in the embodiment of the present application; In some occasions, the rate is also called for the bandwidth.
  • the data transmission rate may refer to the uplink data transmission rate, or may also refer to the downlink data transmission rate, or may also refer to the total data transmission rate of the uplink and downlink (that is, the difference between the uplink data flow and the downlink data flow per unit time). and).
  • Rate billing refers to charging according to different data transmission rate ranges, and the rates corresponding to different data transmission rate ranges may be different, or in other words, different data transmission rate ranges may have different rate gears.
  • the rate corresponding to the data transmission rate interval (0,5Mbps] is: the fee per megabyte of traffic is 0.5 yuan, which is called “the data transmission rate interval of 0.5 yuan/megabyte"; the data transmission rate interval (5Mbps, 10Mbps ]
  • the corresponding rate rate is: the cost per megabyte of traffic is 0.8 yuan, which is called “0.8 yuan/megabit data transmission rate range"; the corresponding rate rate for the data transmission rate range (10Mbps, ⁇ ) is: per megabyte of traffic
  • the fee is 1 yuan, which is called “the data transmission rate interval of 1 yuan/megabyte".
  • FIG. 5A is a schematic diagram of a network architecture applicable to this embodiment of the present application.
  • the network architecture may include a charging policy entity, a charging processing entity, and a rate charging information collection entity, and optionally, may also include a charging triggering entity.
  • the charging policy entity may generate a rate charging policy for the data connection service, and send the rate charging policy to the rate charging information collection entity.
  • the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service.
  • Each piece of rate charging information includes information on the data transmission rate range and corresponding usage information.
  • the data transmission rate range is One of the multiple data transmission rate intervals obtained by the rate charging information collection entity, the usage information includes the accumulated usage for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval.
  • the rate charging information collection entity can generate at least one piece of rate charging information of the data connection service according to the rate charging policy, and can also send at least one piece of rate charging information to the charging processing entity.
  • the charging processing entity may perform charging processing on the user equipment based on at least one piece of rate charging information sent by the rate charging information collection entity.
  • the charging triggering entity can trigger the charging processing entity to perform charging processing on the user equipment. For example, the charging triggering entity can send other possible charging information (different from rate charging information) to the charging processing entity, and then the charging processing entity Charging processing can be performed on the user equipment.
  • each entity shown in FIG. 5A can be deployed as an independent entity, or multiple entities can be integrated or deployed as one entity (that is, one entity implements the functions of multiple entities).
  • Implementation 6 describes several possible scenarios.
  • Implementation 1 as shown in FIG. 5B , the functions of the charging policy entity and the charging processing entity can be implemented by the CHF entity, and the functions of the rate charging information collection entity and the charging trigger entity can be implemented by the SMF entity.
  • Implementation mode 2 as shown in Figure 5C, the functions of the charging policy entity and the charging processing entity can be realized by the CHF entity, the function of the rate charging information collection entity can be realized by the NWDAF entity, and the function of the charging trigger entity can be realized by This is achieved through SMF entities.
  • Implementation mode 3 as shown in Figure 5D, the function of the charging policy entity can be realized by the PCF entity, the function of the charging processing entity can be realized by the CHF entity, and the functions of the rate charging information collection entity and the charging trigger entity can be realized by This is achieved through SMF entities.
  • Implementation mode 4 as shown in Figure 5E, the function of the charging policy entity can be realized by the PCF entity and the CHF entity, the function of the charging processing entity can be realized by the CHF entity, the rate charging information collection entity and the charging trigger entity
  • the functions can be realized by SMF entities.
  • the above implementations 1 to 4 are only some possible deployment examples, and the network architecture shown in FIG. 5A may also have other possible deployment scenarios.
  • the function of the charging policy entity is implemented by the PCF entity
  • the function of the charging processing entity is implemented by the CHF entity
  • the function of the charging trigger entity is implemented by the SMF entity
  • the function of the rate charging information collection entity is implemented by the NWDAF entity
  • the function of the charging policy entity is realized by the PCF entity and the CHF entity
  • the function of the charging processing entity is realized by the CHF entity
  • the function of the charging triggering entity is realized by the SMF entity
  • the function of the rate charging information collection entity This is achieved through NWDAF entities.
  • the entities described in the embodiments of the present application may also be referred to as functional entities or network elements, for example, the SMF entity in FIG. 1 may also be referred to as SMF Functional entity or SMF network element.
  • the above-mentioned entities may be network elements in hardware devices, software functions running on dedicated hardware, or virtualization functions instantiated on a platform (for example, a cloud platform).
  • the foregoing entity may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
  • Embodiment 1 based on the network architecture shown in FIG. 5A , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
  • Fig. 6 is a schematic flowchart corresponding to the billing method provided in Embodiment 1 of the present application. As shown in Fig. 6, the method may include:
  • the charging policy entity generates a rate charging policy for the data connection service of the user equipment.
  • the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service, each piece of rate charging information includes information on the data rate interval and corresponding usage information, and the data transmission rate
  • the interval is one of multiple data transmission rate intervals obtained by the rate charging information collection entity, and the usage information includes the accumulated usage for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval. Therefore, the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service. It can also be understood that the rate charging policy is used to instruct the rate charging information collection entity to transmit The rate interval generates at least one piece of rate charging information of the data connection service. It can be understood that the at least one piece of rate charging information can also be replaced with other possible descriptions, such as at least one piece of rate charging information; the rate charging policy can also have other possible names, for example, it can also be called "rate charging information acquisition strategy".
  • rate charging policy corresponds to the data connection service
  • generating a rate charging policy for the data connection service of the user equipment is equivalent to “generating a rate charging policy corresponding to the data connection service of the user equipment” or "generating a user equipment The rate charging policy of the data connection service of the device”.
  • the content included in the rate charging policy is described below.
  • the rate charging policy may include at least one of the following: granularity information, information of multiple data transmission rate intervals, time range, time unit, and mode information. These items are described in detail below.
  • the granularity information is used to indicate the granularity corresponding to the rate charging policy, or in other words, to indicate the scope of the rate charging policy.
  • the granularity information indicates that the granularity corresponding to the rate charging policy is a data connection session.
  • the granularity information may include an identifier of the data connection session.
  • the data connection service may include all service data flows in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection session, and the rate
  • the usage amount included in the charging information may refer to the traffic generated by data transmission of all service data flows in the data connection session, or the duration of data transmission of all service data flows in the data connection session.
  • the granularity corresponding to the rate charging policy is the data connection session can also be described as “the rate charging policy corresponds to the data connection session", or "the scope of the rate charging policy is all business data in the data connection session flow”.
  • the rate charging policy may also be called a session granular rate charging policy, a session-level rate charging policy, or a data connection session rate charging policy.
  • the granularity information indicates that the granularity corresponding to the rate charging policy is a QoS flow
  • the granularity information may include a QoS flow identifier (QoS flow identifier, QFI).
  • the data connection service may include multiple service data flows corresponding to one QoS flow in the data connection session of the user equipment
  • the rate charging policy may be used to instruct the rate charging information collection entity to generate at least one rate of the QoS flow Billing information
  • the usage included in the rate billing information can refer to the traffic generated by the data transmission of multiple service data flows corresponding to one QoS flow in the data connection session, or the traffic corresponding to one QoS flow in the data connection session The duration of data transmission for multiple business data streams.
  • the granularity corresponding to the rate charging policy is the QoS flow
  • the rate charging policy corresponds to the QoS flow
  • the scope of the rate charging policy is the multi-QoS flow corresponding to the data connection session.
  • the rate charging policy may also be called a QoS flow granular rate charging policy, a QoS flow level rate charging policy, or a QoS flow rate charging policy.
  • the granularity information indicates that the granularity corresponding to the rate charging policy is a rating group (Rating Group, RG). rate business.
  • the data connection service may include multiple service data flows corresponding to one rate group in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least A piece of rate charging information.
  • the usage included in the rate charging information can refer to the traffic generated by the data transmission of multiple service data streams corresponding to a rate group in a data connection session, or a rate group in a data connection session. The duration of data transmission for multiple service data streams corresponding to the rate group.
  • the granularity corresponding to the rate charging policy is the rate group
  • the rate charging policy corresponds to the rate group
  • the scope of the rate charging policy is a rate group in the data connection session Corresponding multiple business data streams.
  • the rate charging policy may also be called rate group granularity rate charging policy or rate group level rate charging policy or rate group rate charging policy.
  • the granularity information indicates that the granularity corresponding to the rate charging policy is a service data flow.
  • the granularity information may include a service data flow ID (service data flow ID).
  • the data connection service may include a service data flow in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least one piece of rate charging information of the service data flow.
  • the usage amount included in the charging information may refer to the traffic generated by data transmission of one service data flow in the data connection session, or the duration of data transmission of one service data flow in the data connection session.
  • the granularity corresponding to the rate charging policy is the service data flow can also be described as “the rate charging policy corresponds to the service data flow", or “the scope of the rate charging policy is a service data flow in the data connection session ".
  • the rate charging policy may also be called a service granular rate charging policy, a service-level rate charging policy, or a service rate charging policy.
  • the rate charging policy can explicitly indicate the granularity corresponding to the rate charging policy by carrying granularity information; or, the rate charging policy can also not carry granularity information, but indicate the rate meter
  • the granularity corresponding to the charging policy for example, the rate charging policy can be placed at different levels of the charging response message to represent different granularities.
  • Table 1A, Table 1B, and Table 1 in Embodiment 2. An example corresponding to Table 2 and Table 3.
  • the information of the data transmission rate range is used to indicate the data transmission rate range, for example, the information of the data transmission rate range may include at least one of the following 1, 2 and 3:
  • rate or rate identification corresponding to the data transmission rate range such as “1 yuan/GB rate range”, “2 yuan/GB rate range”, “3 yuan/GB rate range”, etc., and for example “rate 1 rate range”, “rate 2 rate range”, “rate 3 rate range”, etc.
  • a data transmission rate interval in this embodiment of the present application may refer to a data transmission rate range, that is, the upper limit and the lower limit of the data transmission rate interval are different, and the lower limit is smaller than the upper limit.
  • multiple data transmission rate intervals include data transmission rate interval rng1, data transmission rate interval rng2 and data transmission rate interval rng3, then the information of multiple data transmission rate intervals may include the information of data transmission rate interval rng1, data transmission The information of the rate range rng2 and the information of the data transmission rate range rng3.
  • the information of the data transmission rate interval rng1 may include a lower limit value (such as 0) and an upper limit value (such as 5 Mbps) of the data transmission rate interval rng1
  • the information of the data transmission rate interval rng2 may include a lower limit value of the data transmission rate interval rng2 ( For example, 5Mbps) and an upper limit value (for example, 10Mbps)
  • the information of the data transmission rate interval rng3 may include a lower limit value (for example, 10Mbps) and an upper limit value (for example, infinity) for the data transmission rate interval rng3.
  • the charging policy entity may have different data transmission rate interval division methods (that is, the manner of dividing into multiple data transmission rate intervals).
  • the division methods of data transmission rate intervals for rate charging policies of different user equipment can be different, and for example, the division methods of data transmission rate intervals of rate accounting policies for different PDU sessions of the same user equipment can also be different.
  • PDU session The data transmission rate interval of the rate billing policy of 1 includes the following three intervals: (0,5Mbps], (5Mbps,10Mbps], (10Mbps, ⁇ ), and the data transmission rate interval of the rate billing policy of PDU session 2 includes the following Three intervals: (0,8Mbps], (8Mbps,15Mbps], (15Mbps, ⁇ ).
  • the data transmission rate interval division method of the rate charging policy of different services of the same user equipment can also be different, so that the determined The rate billing policy is more flexible and can effectively meet the billing requirements of different scenarios.
  • the data transmission rate interval rng1 when a certain data transmission rate is greater than the lower limit value of the data transmission rate interval rng1 and less than or equal to the upper limit value of the data transmission rate interval rng1, the data transmission rate belongs to the data transmission rate interval rng1; or, when a certain data transmission rate is greater than or equal to the lower limit value of the data transmission rate range rng1 and less than the upper limit value of the data transmission rate range rng1, the data transmission rate belongs to the data transmission rate range rng1.
  • the information of the data transmission rate interval rng1 may include the upper limit value of the data transmission rate interval rng1 (such as 5Mbps), but not the lower limit value of the data transmission rate interval rng1.
  • the data The lower limit value of the transmission rate range rng1 is 0 by default; the information of the data transmission rate range rng3 can include the lower limit value of the data transmission rate range rng3 (such as 10Mbps), but not the upper limit value of the data transmission rate range rng3.
  • the upper limit value of the data transmission rate range rng3 defaults to infinity.
  • the embodiment of the present application does not limit the specific value of "multiple”.
  • the number of data transmission rate intervals can be set according to actual needs. The more the number of data transmission rate intervals, the finer the usage statistics will be.
  • the data transmission rate interval can be a fully open interval (such as "(downlimit, uplimit)”), or it can also be a fully closed interval (such as "[downlimit, uplimit]”), or it can also be half open and half closed
  • the interval (such as “(downlimit, uplimit]” or “[downlimit, uplimit)”), etc., is not limited in this embodiment of the present application.
  • the time range is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information of the data connection service within the time range.
  • the time range may include a start time and/or an end time; or, the time range may include a start time and a duration; or, the time range may include an end time and a duration.
  • the start time or the end time can be coordinated universal time (coordinated universal time, UTC), for example, the start time is X hour X minute X second on X year X month X day, and the end time is Y year Y month Y day Y hour Y minutes and Y seconds.
  • the charging policy entity can flexibly define the time of rate charging through the time range.
  • the time unit is used to instruct the rate charging information collection entity to determine the data transmission rate of the data connection service in the time unit every said time unit, and may also indicate the rate charging information collection entity based on the data transmission rate of the data connection service in the time unit , accumulating the usage amount in the time unit to the usage amount corresponding to the data transmission rate interval in which the data transmission rate of the data connection service is located in the time unit.
  • the above-mentioned rate charging information collection entity determines the data transmission rate of the data connection service in the time unit every time unit, which may mean that the rate charging information collection entity determines the data connection rate in the time unit at the end of each time unit.
  • the data transfer rate of the business may be used to instruct the rate charging information collection entity to determine the data transmission rate of the data connection service in the time unit every said time unit, and may also indicate the rate charging information collection entity based on the data transmission rate of the data connection service in the time unit , accumulating the usage amount in the time unit to the usage amount corresponding to the data transmission rate interval in which
  • the time unit can also be called the base time, or the basic computing time period.
  • the duration of the time unit may be 10 seconds (ie 10s).
  • the method information is used to indicate the rate calculation method or rate calculation method, that is, the method of determining or calculating the data transmission rate of the data connection service within a time unit.
  • the method indicated by the method information can be the first method or the second method; the first method is The data transmission rate of the data connection service in the time unit is calculated based on the duration of the time unit, and the data transmission rate calculated by using the first method may be called an average data transmission rate.
  • the second method is to calculate the data transmission rate of the data connection service in the time unit based on the duration of traffic generation in the time unit, and the data transmission rate calculated by using the second method may be called the real data transmission rate.
  • the manner information indicates the first manner or the second manner.
  • the mode information includes the identifier of the first mode
  • the representation mode information indicates the first mode
  • the mode information includes the identifier of the second mode
  • the mode information includes the identifier of the first mode and the corresponding judgment parameters (such as true (TRUE)) and the logo of the second mode and the corresponding judgment parameters (such as false (FALSE)).
  • TRUE true
  • FALSE false
  • the mode information includes the identifier of the first mode and the corresponding judgment parameter (such as FALSE) and the logo of the second mode and the corresponding judgment parameter (such as TRUE), which indicates that the mode information indicates the second mode.
  • the identifier of the first manner (or the second manner) may be information for identifying the first manner (or the second manner), which is not specifically limited.
  • the charging policy entity can dynamically adjust the duration of the time unit and the calculation rate based on the charging requirements of different scenarios and the computing burden of the system, which has a strong flexibility. For example, when the duration of the time unit is short and/or the method of calculating the rate is the second method, the calculation burden of the rate charging information collection entity is relatively large, and when the duration of the time unit is long and/or the method of calculating the rate is In the first mode, the calculation burden of the rate charging information collection entity is relatively small.
  • the rate charging policy includes information of multiple data transmission rate intervals, time range, time unit and mode information as an example for description. It can be understood that when the rate charging policy does not include information on multiple data transmission rate intervals or time range or time unit or method information, multiple data transmission rate intervals or time ranges or time units or methods for determining the data transmission rate may be It is pre-agreed by the protocol, or it may be pre-configured, or it may also be the default.
  • multiple data transmission rate intervals can be configured in advance by the operation and maintenance personnel on entities such as the rate charging information collection entity, charging policy entity, and charging processing entity, or they can also be It is dynamically determined by the charging policy entity and sent to the rate charging information collection entity.
  • the rate charging policy sent to the rate charging information collection entity includes information of multiple data transmission rate ranges.
  • the charging policy entity can obtain the subscription information of the user equipment, and then determine the rate charging policy of the data connection service based on the subscription information and preset rules.
  • the preset rule can be pre-configured in the charging policy entity, or it can also be pre-agreed by the agreement.
  • the embodiment of the present application does not limit the manner in which the charging policy entity obtains the subscription information.
  • the charging policy entity sends the rate charging policy of the data connection service to the rate charging information collection entity, and correspondingly, the rate charging information collection entity receives the rate charging policy of the data connection service.
  • the rate charging information collection entity generates at least one piece of rate charging information of the data connection service according to the rate charging policy.
  • each piece of rate charging information includes the information of the data rate interval and the corresponding usage information.
  • the data transmission rate interval is one of the multiple data transmission rate intervals obtained by the rate charging information collection entity.
  • the usage information includes The usage amount accumulated for the data connection service when the data transmission rate of the data connection service is within the data transmission rate range.
  • “the data transmission rate is within the data transmission rate range” may also be described as “the data transmission rate is within the data transmission rate range” or "the data transmission rate falls within the data transmission rate range”.
  • the rate charging information collection entity can obtain multiple data transmission rate intervals in various ways. strategy to obtain multiple data transmission rate intervals; as another example, operation and maintenance personnel can pre-configure multiple data transmission rate intervals in the rate charging information collection entity;
  • the implementation of the rate range is not limited.
  • the information of the data transmission rate range included in the rate charging information can be the same as the information of the data transmission rate range included in the rate charging policy, for example, the information of the data transmission rate range included in the rate charging information can include the data transmission rate range upper and/or lower bounds.
  • the rate charging information includes The information of the data transmission rate interval may include the identification of the data transmission rate interval, but not the upper limit and/or lower limit of the data transmission rate interval, so as to reduce the amount of reported information and save transmission resources.
  • the rate charging information collection entity may take the start time of the time range as the start time of collecting rate charging information (at this time, the usage corresponding to each data transmission rate interval is 0), and determine the time every time unit The data transmission rate of the data connection service of the user equipment in the unit, and based on the data transmission rate of the data connection service of the user equipment in the time unit, the usage amount in the time unit is added to the data transmission rate of the data connection service in the time unit
  • the corresponding relationship between different data transmission rate intervals and usage can be obtained, for example: the data transmission rate interval rng1 corresponds to the usage Quantity 1, data transmission rate range rng2 corresponds to usage volume 2, and data transmission rate range rng3 corresponds to usage volume 3.
  • the above correspondence when the amount of usage is the traffic generated by data transmission, the above correspondence can be: the data transmission rate range rng1 corresponds to the usage amount 1 (such as 30M traffic), and the data transmission rate range rng2 corresponds to the usage amount 2 (such as 20M traffic), the data transmission rate range rng3 corresponds to usage 3 (for example, 50M traffic).
  • the amount of usage is the duration of data transmission, the above correspondence can be: data transfer rate interval rng1 corresponds to usage amount 1 (for example, 5 minutes), data transfer rate interval rng2 corresponds to usage amount 2 (for example, 2 minutes), data transfer rate interval rng3 corresponds to usage 3 (for example, 10 minutes). It can be understood that, if the rate charging policy does not include the start time of the time range, the rate charging information collection entity may also use the time when the rate charging policy is received as the start time.
  • Figure 7A or Figure 7B shows the generation process of the rate charging information; taking Figure 7A as an example, the time point t0 is the starting time, and at the time point t1, the rate charging information collection entity can determine the data connection service in the time unit tu1 If the data transmission rate r1 is in the data transmission rate interval rng1, the usage amount u1 in the time unit tu1 is added to the usage amount corresponding to the data transmission rate interval rng1; at the time point t2, the rate billing information The acquisition entity can determine the data transmission rate r2 of the data connection service in the time unit tu2.
  • the usage amount u2 in the time unit tu2 will be added to the usage corresponding to the data transmission rate interval rng1.
  • the usage amount u1 in the time unit tu1 refers to the usage amount of the user equipment for the data connection service in the time unit tu1.
  • FIG. 7A the difference between the above-mentioned FIG. 7A and FIG. 7B is that: in FIG. 7A, the data transmission rate of the data connection service in consecutive time units is the same, for example, the data transmission rate of the data connection service in the time unit tu1, time unit tu2 and time unit tu3 is the same, That is to say, the change of the data transmission rate is relatively small; in Fig. 7B, the data transmission rate of the data connection service in the intermittent time unit is the same, such as the data transmission of the data connection service in the time unit tu1, the time unit tu3 and the time unit tu5 The rate is the same, that is to say, the change in the data transmission rate is relatively large. According to Fig. 7A and Fig.
  • the data transmission rate r1 of the data connection service in the time unit tu1 refers to the data transmission rate of the data connection service on the UPF entity.
  • the data transmission rate r1 of the data connection service in the time unit tu1 may refer to the total data transmission rate of the data connection service on multiple UPF entities.
  • the following takes the time unit tu1 (other time units can be implemented by reference) as an example to describe the realization of at least one piece of rate charging information of the data connection service collected by the rate charging information collection entity.
  • the mode information in the rate charging policy indicates the first mode
  • the rate charging information collection entity can calculate the data transmission rate r1 of the data connection service in the time unit tu1 based on the flow of the data connection service in the time unit tu1 and the duration of the time unit tu1. For example, the rate charging information collection entity divides the traffic of the data connection service in the time unit tu1 by the duration of the time unit tu1 to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
  • the traffic of the data connection service in the time unit tu1 is 30M
  • the duration of the time unit tu1 is 10s
  • the rate charging information collection entity can obtain the total traffic of data connection services on multiple UPF entities in the time unit tu1, and then calculate the data connection in the time unit tu1 based on the total traffic and the duration of the time unit tu1 The data transmission rate r1 of the business. For example, the rate charging information collection entity divides the total traffic by the duration of the time unit tu1 to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
  • the total traffic of data connection services on multiple UPF entities in time unit tu1 is 30M
  • the duration of time unit tu1 is 10s
  • the rate charging information collection entity can separately calculate the data transmission rate of the data connection service on each UPF entity in the time unit tu1, and then calculate the data transmission rate of the data connection service corresponding to each UPF entity in the time unit tu1 The sum is used as the data transmission rate r1 of the data connection service in the time unit tu1.
  • multiple UPF entities include UPF entity 1 and UPF entity 2; the rate charging information collection entity divides the traffic of the data connection service on UPF entity 1 in the time unit tu1 by the duration of the time unit tu1 to obtain the data connection service in the time unit tu1 The data transmission rate on the UPF entity 1; and, divide the flow of the data connection service on the UPF entity 2 in the time unit tu1 by the duration of the time unit tu1 to obtain the data transmission of the data connection service on the UPF entity 2 in the time unit tu1 rate; furthermore, the data transmission rate of the data connection service on UPF entity 1 in the time unit tu1 is added to the data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1 to obtain the data of the data connection service in the time unit tu1 Transmission rate r1.
  • the usage amount u1 (30M) of the data connection service on multiple UPF entities in the time unit tu1 can be added to the data transmission rate The usage amount corresponding to the interval rng1.
  • the rate charging information collection entity can calculate the data transmission rate of the data connection service in the time unit tu1 based on the traffic of the data connection service in the time unit tu1 and the duration of the traffic generation in the time unit tu1 r1. For example, the rate charging information collection entity divides the flow of the data connection service in the time unit tu1 by the duration of the flow generated in the time unit tu1 to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
  • the traffic of the data connection service in the time unit tu1 is 30M
  • the duration of the traffic generated in the time unit tu1 is 6s
  • the rate charging information collection entity can calculate the data transmission rate of the data connection service on each UPF entity in the time unit tu1, and then divide the time unit The sum of the data transmission rates of the data connection services corresponding to each UPF entity in tu1 is taken as the data transmission rate r1 of the data connection services in the time unit tu1.
  • multiple UPF entities include UPF entity 1 and UPF entity 2; the rate charging information collection entity divides the traffic of data connection services on UPF entity 1 in time unit tu1 by the duration of generating traffic on UPF entity 1 in time unit tu1 Obtain the data transmission rate of the data connection service on the UPF entity 1 in the time unit tu1; and divide the flow of the data connection service on the UPF entity 2 in the time unit tu1 by the duration of the flow generated on the UPF entity 2 in the time unit tu1 to obtain The data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1; furthermore, the data transmission rate of the data connection service on the UPF entity 1 in the time unit tu1 and the data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1 The data transmission rates are added to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
  • the traffic of data connection service on UPF entity 1 in time unit tu1 is 10M, and the duration of traffic generated on UPF entity 1 in time unit tu1 is 5s, then the data connection service in time unit tu1 on UPF entity 1
  • the traffic of the data connection service on the UPF entity 2 in the time unit tu1 is 20M, then the duration of the traffic generated on the UPF entity 2 in the time unit tu1 is 4s, and the data connection in the time unit tu1
  • the usage amount u1 (30M) in the time unit tu1 can be added to the usage amount corresponding to the data transmission rate interval rng2.
  • the charging processing entity sends the quota and trigger condition information to the rate charging information collection entity; correspondingly, the rate charging information collection entity may receive the quota and trigger condition information.
  • the rate charging policy when the granularity of the rate charging policy is a rate group, for example, the rate charging policy corresponds to the first rate group, and the rate charging information collection entity has a quota management function, then in a possible implementation
  • the charging processing entity may send the quotas respectively corresponding to the multiple data transmission rate ranges indicated by the rate charging policy of the first rate group to the rate charging information collection entity.
  • the charging processing entity can obtain information of multiple data transmission rate ranges, and then allocate corresponding quotas for multiple data transmission rate ranges.
  • the embodiment of the present application realizes that the charging processing entity obtains information of multiple data transmission rate ranges No limit.
  • the charging processing entity may send the quota corresponding to the first rate group to the rate charging information collection entity (the quota is the multiple rate indicated by the rate charging policy of the first rate group). total quota corresponding to each data transfer rate range).
  • Scenario 1 The rate charging policy of the user equipment corresponds to the data connection session of the user equipment
  • the trigger condition information sent by the charging processing entity to the rate charging information collection entity may include trigger condition information corresponding to the data connection session (for ease of description, referred to as the first type of trigger condition information).
  • the first type of trigger condition information is used to indicate that when the location of the user equipment changes (for example, the user equipment switches from access network device 1 to access network device 2), report to the charging processing entity At least one piece of rate charging information of the obtained data connection session.
  • Scenario 2 The rate charging policy of the user equipment corresponds to the service of the user equipment
  • the trigger condition information sent by the charging processing entity to the rate charging information collection entity may include the first type of trigger condition information and the second type of trigger condition information (such as the corresponding rate group or QoS flow or service, The following will take the rate group as an example), the third type of trigger condition information (corresponding to the data transmission rate interval).
  • the first type of trigger condition information is used to indicate that when the location of the user equipment changes, report to the charging processing entity according to each rate group (or QoS flow or service in the data connection session, where the rate group is Example) The rate charging information of each rate group obtained by the rate charging policy.
  • the second type of trigger condition information is used to indicate that when the available quota corresponding to the first rate group is less than or equal to the threshold corresponding to quota 1 (for ease of description, it is called threshold 1), report to the charging processing entity the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group; in this case, the second type of trigger condition information may include quota 1 corresponds to the threshold.
  • the second type of trigger condition information is used to indicate that when the validity period of quota 1 expires, the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group is reported to the charging processing entity ;
  • the second type of trigger condition information may include the validity period of quota 1.
  • quota 1 is the quota corresponding to the first rate group.
  • the third type of trigger condition information is used to indicate that when the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to quota 2 (for convenience of description, it is called When threshold 2), report to the charging processing entity the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group; in this case, the third type of trigger condition information may include The threshold corresponding to quota 2.
  • the third type of trigger condition information is used to indicate that when the validity period of the quota 2 expires, the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group is reported to the charging processing entity ;
  • the third type of trigger condition information may include the validity period of the quota 2.
  • quota 2 is a quota corresponding to the first data transmission rate range
  • the first data transmission rate range is any one of the multiple data transmission rate ranges indicated by the rate charging policy of the first rate group.
  • the threshold corresponding to the above quota (such as the above threshold 1 or threshold 2) may be a value less than or equal to the quota, for example, the threshold corresponding to the quota may be 10% of the quota.
  • the available quota corresponding to the first rate group can be the difference between the quota corresponding to the first rate group minus the usage amount corresponding to the first rate group, and the available quota corresponding to the first data transmission rate range can be the first data transmission The difference between the quota corresponding to the rate range minus the usage corresponding to the first data transmission rate range.
  • the usage amount corresponding to the data transmission rate interval refers to the usage amount of the quota corresponding to the data transmission rate interval.
  • the above validity period can be a point in time in the future, such as "202110280000", which means that the validity period will expire at 00:00 on October 28, 2021; or, the validity period can also be a time range.
  • the end time validity period expires.
  • the rate charging information collection entity sends the rate charging information of the user equipment to the charging processing entity.
  • the rate charging information collection entity may send the rate charging information of the user equipment to the charging processing entity after determining that the trigger condition is met according to the trigger condition information sent by the charging processing entity.
  • the rate charging information collection entity may determine the data transmission rate rn of the data connection service within the time period from time point tn-1 to tn , if the data transmission rate rn is in the data transmission rate interval rngm, then add the usage amount from the time point tn-1 to tn to the usage amount corresponding to the data transmission rate interval rngm, and add the starting time to the time
  • the rate charging information collected during the period of time at point tn is reported to the charging processing entity.
  • the rate billing information reported at time point tn may include m pieces of rate billing information, which are rate billing information 1, rate billing information 2, rate billing information 3, ... rate billing information m, specifically as follows Shown:
  • Rate billing information 1 ⁇ rng1,u1+u2+u3+... ⁇ ;
  • Rate billing information 2 ⁇ rng2,u4+u5+... ⁇ ;
  • Rate billing information 3 ⁇ rng3,u6+... ⁇
  • the duration of the above time period from time point tn-1 to tn may be equal to the duration of the time unit, or may be shorter than the duration of the time unit.
  • rate charging information 1 to rate charging information m are only examples and not limiting, and the rate charging information may include other Information related to usage, such as uplink and downlink indication information, time stamps for recording usage, etc., can form usage information together with usage.
  • the rate charging information may also include other possible information, such as time unit, mode information, quota management identifier (quota management identifier, QMI) corresponding to the data transmission rate range, and the like.
  • quota management identifier quota management identifier, QMI
  • the QMI corresponding to the data transmission rate range rng1 is used to indicate whether the usage corresponding to the data transmission rate range rng1 is quota-managed usage.
  • the QMI corresponding to the data transmission rate range rng1 when taken When the value is 1, it means that the usage corresponding to the data transmission rate range rng1 is the usage managed by the quota, or the usage corresponding to the data transmission rate range rng1 is the quota usage corresponding to the data transmission rate range rng1. When the value of the QMI corresponding to the rate range rng1 is 0, it means that the usage corresponding to the data transmission rate range rng1 is the usage without quota management.
  • mode information or quota management identifier in the rate charging information refer to the examples corresponding to Table 4A, Table 5, and Table 6 in Embodiment 2.
  • the rate charging information collection entity can reset the usage amount to 0 (that is, the usage amount corresponding to each data transmission rate range is reset to 0), and at the time point tn+1, determine the data transmission rate rn+1 of the data connection service in the time unit tun+1, if the data transmission rate rn+1 is in the data transmission rate interval rng1, then set the time unit tun+1 The usage amount u n+1 within is added to the usage amount corresponding to the data transmission rate interval rng1, and so on.
  • the charging processing entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information.
  • the charging processing entity performs charging processing on the user equipment based on at least one piece of rate charging information, which may include at least one of the following:
  • the charging processing entity receives at least one piece of rate charging information of a certain rate group sent by the rate charging information collection entity, and the at least one piece of rate charging information of the rate group includes the following content: data transmission rate range rng1 corresponds to 20M traffic, and rng2 corresponds to 10M traffic in the data transmission rate range.
  • the billing processing entity can unfreeze the 30M traffic (or the equivalent amount of 30M traffic) corresponding to the data transmission interval 1, and from the user account (that is, the account of the user corresponding to the user device, Subtract 20M (or deduct the equivalent amount of 20M traffic from the amount of the account) from the traffic corresponding to data transmission interval 1 in the user device ID), and subtract the 40M traffic corresponding to data transmission interval 2 (or the equivalent amount of 40M traffic) unfreeze, and subtract 10M traffic from the traffic corresponding to data transmission interval 2 in the user account (that is, quota deduction).
  • the charging type of the rate group may be online charging.
  • the billing processing entity receives the rate billing information of the rate group sent by the rate billing information collection entity, and the rate billing information of the rate group includes the following content: the usage amount 1 (20M) corresponds to the data transmission rate range rng1, usage 2 (10M) correspond to the data transmission rate interval rng2, then the charging processing entity can write the rate charging information (that is, usage 1 corresponds to the data transmission rate interval rng1, usage 2 corresponds to the data transmission rate interval rng2)
  • the charging type of the rate group may be offline charging.
  • the billing processing entity may receive the rate billing information reported by the rate billing information collection entity multiple times, and then may transmit the rate billing information according to the data transmission Rate range accumulative user equipment usage.
  • the billing processing entity collects the rate billing information previously reported by the entity according to the rate billing information, and accumulates: the usage corresponding to the data transmission rate range rng1 is 200M, and the usage corresponding to the data transmission rate range rng2 is 300M.
  • the rate charging information includes the following content: the data transmission rate interval rng1 corresponds to 20M, and the data transmission rate interval rng2 corresponds to 10M, then it can Add 20M to the usage amount corresponding to the data transmission rate interval rng1.
  • the usage amount corresponding to the data transmission rate interval rng1 is 220M, and add 10M to the usage amount corresponding to the data transmission rate interval rng2.
  • the data transmission rate The usage corresponding to interval rng2 is 310M.
  • the charging processing entity may notify the corresponding core network entity to limit the data transmission rate of the user equipment after determining that the usage amount corresponding to a certain data transmission rate range is greater than or equal to the traffic subscribed by the user corresponding to the user equipment. For example, it is determined that the traffic corresponding to the data transmission rate range (10Mbps, ⁇ ) ordered by the user equipment has been exhausted, and the corresponding core network entity may be notified to limit the data transmission rate of the user equipment to below 10Mbps.
  • the charging strategy entity determines the rate charging strategy, and sends the rate charging strategy to the rate charging information collection entity, so that the rate charging information collection entity can perform multiple data transmission rate intervals according to the rate charging strategy.
  • the rate charging information of the user equipment is generated and reported to the charging processing entity, and then the charging processing entity can perform charging processing on the user equipment based on the rate charging information.
  • the rate billing information in the embodiment of the present application may include the information of the data transmission rate interval and the corresponding usage information, it is possible to implement the billing of the user equipment based on the data transmission rate. fee processing.
  • the billing method provided by the embodiment of the present application performs billing from two dimensions of data transmission rate and usage (such as traffic), and can set prices for operators according to data transmission rate (different data transmission rate intervals correspond to different rates ) provides technical support to meet the rate monetization needs of operators and facilitate the improvement of network resource utilization.
  • the rate charging information collection entity can summarize the usage amount according to multiple data transmission rate intervals according to the rate charging policy.
  • the data transmission rate of the user equipment in the time unit tu1 r1 is located in the data transmission rate interval rng1
  • the data transmission rate r2 in the time unit tu2 is located in the data transmission rate interval rng2, that is, the data transmission rate of the user equipment changes in different data transmission rate intervals.
  • rate charging The information collection entity may aggregate (i.e.
  • charging the user equipment can also be understood as “charging the user corresponding to the user equipment” or “charging the user account corresponding to the user equipment”.
  • Embodiment 2 based on the network architecture shown in FIG. 5B , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
  • Fig. 8 is a schematic flowchart corresponding to the billing method provided in Embodiment 2 of the present application. As shown in Fig. 8, the method may include:
  • the SMF entity receives a PDU session establishment request message from a user equipment.
  • the SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
  • the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message.
  • the PCF entity may obtain the subscription information of the user equipment from the UDM entity or UDR based on the identifier of the user equipment included in the session policy request message, and then determine the charging types of multiple charging rate groups of the user equipment based on the subscription information,
  • the charging type can include online charging or offline charging.
  • the foregoing session policy response message may include identifiers of multiple rate group services of the user equipment and corresponding charging types.
  • the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
  • the first charging request message may be an initial charging data request message or a charging resource creation request message.
  • the first charging request message may include an ID of the user equipment, an ID of the PDU session, IDs of multiple rate groups of the user equipment, and optionally, may also include a quota request corresponding to the rate group of the online charging.
  • the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
  • the first charging response message may be an initial charging data response message or a charging resource creation response message, and the description below takes the first charging response message as an initial charging data response message as an example.
  • the CHF entity may obtain the subscription information of the user equipment based on the identifier of the user equipment included in the initial charging data request message , and then determine the rate charging policy of the data connection service of the user equipment based on the subscription information of the user equipment and preset rules, and send the rate charging policy of the data connection service to the SMF entity through an initial charging data response message.
  • the preset rule may be pre-configured in the CHF entity, or may be pre-agreed by the protocol.
  • the CRM system may send the subscription information of the user equipment to the CHF entity, and the CHF entity may store the user equipment contract information. Furthermore, after the CHF entity receives the initial charging data request message, it can query and obtain the subscription information of the user equipment according to the identifier of the user equipment.
  • CRM customer relationship management
  • the CHF entity may allocate a quota for the online charging rate group based on the quota request corresponding to the online charging rate group, and send the quota to the SMF entity through an initial charging data response message.
  • the quota can refer to the quota corresponding to the rate group for online charging (that is, the total quota corresponding to multiple data transmission rate intervals indicated by the rate charging policy of the rate group), or it can refer to the rate group Quotas corresponding to multiple data transmission rate ranges of the rate billing policy.
  • the initial charging data response message may include the rate charging policy of the data connection service, and may also include other possible information, such as quotas (take the quotas corresponding to multiple data transmission rate intervals as an example), trigger condition information . Understandably, this embodiment of the present application does not limit the manner in which the initial charging data response message carries the quota and trigger condition information.
  • the rate charging policy corresponds to a data connection session (such as a PDU session) of the user equipment, see Table 1A, which is an example format of the initial charging data response message.
  • baseTime corresponding to the three data transmission rate intervals in Table 1A
  • Table 1A is only an example of a possible format.
  • “baseTime”, “method”, “startTime”, and “endTime” can also be used as common parameters for the three data transmission rate intervals, as shown in Table 1B below:
  • the CHF entity can also provide multiple data rates indicated by the rate charging policy of the first rate group Corresponding quotas are assigned to the transmission rate intervals, or a total quota can be assigned to multiple data transmission rate intervals.
  • the initial charging data response message may also include the respective quotas corresponding to multiple data transmission rate ranges. See Table 2 for an example format of the initial charging data response message.
  • the rate charging policy corresponds to the second rate group, and the charging type of the second rate group is offline charging. See Table 3 for an example format of the initial charging data response message.
  • the initial charging data response message including one of the rate charging policy of the PDU session, the rate charging policy of the first rate group and the rate charging policy of the second rate group of.
  • the initial charging data response message may also include the rate charging policy of the PDU session, and/or, the rate charging policy of one or more rate groups; wherein, one or more rate groups
  • the groups may include the above-mentioned first rate group and/or the second rate group.
  • the rate charging policy is carried in the SessionPolicy level of Charging data Response, and in the above Table 2 or Table 3, the rate charging policy is carried in the MUI of Charging data Response In the level of RatingGroupPolicy, SessionPolicy and MUI belong to the same level, so that different granularities can be expressed by carrying rate charging policies at different levels.
  • the SMF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy for the data connection service.
  • the SMF entity may communicate with the UPF entity corresponding to the data connection service, and then obtain the usage amount from the UPF entity; for example, the UPF entity may periodically report the usage amount to the SMF entity.
  • the SMF entity sends at least one piece of rate charging information of the data connection service to the CHF entity.
  • the SMF entity may send at least one piece of rate charging information of the data connection service to the CHF entity after determining that the trigger condition is met according to the trigger condition information.
  • the SMF entity may send a second charging request message to the CHF entity, where the second charging request message includes at least one piece of rate charging information of the data connection service.
  • the second charging request message may be a charging data update request message or a charging resource update request message, and the description below takes the second charging request message as an updating charging data request message as an example.
  • the rate charging policy of the user equipment corresponds to the PDU session
  • the SMF entity can send the rate charging of the PDU session to the CHF entity through an update charging data request message information.
  • Table 4A for an example format of the charging data update request message.
  • the rate billing information in Table 4A may include not only data transmission rate interval information and corresponding usage information, but also time unit “baseTime” and method information "method".
  • Table 4A is only one possible format example.
  • the rate charging information may not include “baseTime” and method information "method”, that is, “baseTime” and “method” may be carried as common parameters of the three data transmission rate intervals in the updated charging data In the request message, an example is shown in Table 4B below.
  • Table 4B Yet another situation of update charging data request message example 1
  • the SMF entity can update the charging data by
  • the request message sends the rate charging information of the first rate group to the CHF entity.
  • the charging data update request message may also include QMIs respectively corresponding to multiple data transmission rate intervals. See Table 5 for an example format of the charging data update request message.
  • the rate charging policy corresponds to the second rate group
  • the SMF entity can update the charging data by The request message sends the rate charging information of the second rate group to the CHF entity.
  • Table 6 for an example format of the charging data update request message.
  • the update charging data request message may also include the rate charging information of the PDU session, and/or, the rate charging information of one or more rate groups; wherein, one or more rate groups
  • the groups may include the above-mentioned first rate group and/or the second rate group.
  • the CHF entity receives the second charging request message, and performs charging processing on the user equipment based on the second charging request message.
  • the CHF entity may also send a second charging response message to the SMF entity, and the second charging response message is used to notify the SMF entity of the charging processing result.
  • the second charging response message may be a charging data update response message or a charging resource update response message.
  • the CHF entity performs charging processing based on at least one rate charging information Afterwards, new quotas (such as quotas corresponding to multiple data transmission rate ranges, or total quotas corresponding to multiple data transmission rate ranges) can also be allocated to the first rate group, and sent to the SMF entity.
  • new quotas such as quotas corresponding to multiple data transmission rate ranges, or total quotas corresponding to multiple data transmission rate ranges
  • Fig. 9 is a schematic flowchart corresponding to the billing method provided in Embodiment 3 of the present application. As shown in Fig. 9, the method may include:
  • the SMF entity receives a PDU session establishment request message from a user equipment.
  • the SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
  • the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message, and the session policy response message may include identifiers of multiple charging rate groups of the user equipment and corresponding charging types.
  • the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
  • the first charging request message may include the identification of the user equipment, the identification of the PDU session, the identifications of multiple charging rate groups of the user equipment, and optionally, may also include a quota request corresponding to the charging rate group of the online charging.
  • the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
  • the CHF entity may acquire subscription information of the user equipment based on the identifier of the user equipment included in the first charging request message. Then, based on the subscription information and the quota request corresponding to the online charging rate group, allocate a quota for the online charging rate group, and send the quota to the SMF entity through the first charging response message, the quota may refer to the online charging The quota corresponding to the rate group.
  • the CHF entity sends the rate charging policy of the data connection service of the user equipment to the NWDAF entity; correspondingly, the NWDAF entity may receive the rate charging policy of the data connection service.
  • the CHF entity can determine the rate charging policy of the data connection service based on the subscription information of the user equipment and preset rules, and send the rate charging policy of the data connection service to the NWDAF entity through a subscription request message, and also
  • the trigger condition information can be sent to the NWDAF entity through a subscription request message.
  • the subscription request message may include the rate charging policy of the data connection service, trigger condition information, and optionally, may also include other possible information, such as the identifier of the user equipment, etc., which are not specifically limited.
  • the preset rule may be pre-configured in the CHF entity, or may be pre-agreed by the protocol.
  • the NWDAF entity may send a response to the subscription request message to the CHF entity, for notifying the CHF entity that the subscription is successful.
  • the information sent by the CHF entity to the NWDAF entity may be the same as the information sent by the CHF entity to the SMF entity in Embodiment 2.
  • the rate charging policy corresponds to the first rate group (online charging)
  • the difference between the information sent by the CHF entity to the NWDAF entity and the information sent by the CHF entity to the SMF entity in Embodiment 2 is that the NWDAF entity usually does not have a quota management function, therefore, the information sent by the CHF entity to the NWDAF entity does not include quotas; and because the SMF entity has the quota management function, the information sent by the CHF entity to the SMF entity may include quotas (for example, multiple data transmission rate intervals corresponding to quota, or the total quota corresponding to multiple data transfer rate intervals).
  • S906 may be executed before S905, or S906 may be executed after S905, or S906 and S905 may be executed simultaneously.
  • the NWDAF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy for the data connection service.
  • the NWDAF entity may communicate with the UPF entity corresponding to the data connection service, and then obtain the usage amount from the UPF entity.
  • the UPF entity may periodically report the usage amount to the NWDAF entity.
  • the NWDAF entity sends at least one piece of rate charging information of the data connection service to the CHF entity.
  • the NWDAF entity may send at least one piece of rate charging information of the data connection service to the CHF entity through a subscription notification message.
  • the information (including rate charging information) reported by the NWDAF entity may be the same as the information reported by the SMF entity in Embodiment 2.
  • the difference between the information reported by the SMF entity and the information reported by the NWDAF entity in Embodiment 2 is that the information reported by the SMF entity may include QMI, while the information reported by NWDAF entities may not include QMI.
  • the CHF entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information of the data connection service.
  • the implementation of the CHF entity charging the user equipment may refer to the description in Embodiment 1, and details are not repeated here.
  • the NWDAF entity collects the rate charging information
  • the SMF entity can follow the implementation in the prior art.
  • the SMF entity can collect the traffic of the user equipment, and perform quota management based on the traffic of the user equipment, etc. .
  • Embodiment 4 based on the network architecture shown in FIG. 5D , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
  • Fig. 10 is a schematic flowchart corresponding to the billing method provided in Embodiment 4 of the present application. As shown in Fig. 10, the method may include:
  • An SMF entity receives a PDU session establishment request message from a user equipment.
  • the SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
  • the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message.
  • the PCF entity may obtain the subscription information of the user equipment from the UDM entity or UDR based on the identifier of the user equipment included in the session policy request message, and then determine the charging types of multiple charging rate groups of the user equipment based on the subscription information,
  • the charging type may include online charging and offline charging.
  • the PCF entity may also determine the rate charging policy of the data connection service of the user equipment based on the subscription information of the user equipment and preset rules.
  • the preset rule may be pre-configured in the PCF entity, or may be pre-agreed by the protocol.
  • the above session policy response message may include identifiers of multiple rate groups of the user equipment and corresponding charging types, and may also include a rate charging policy of the data connection service. It can be understood that the PCF entity may also send the rate charging policy of the data connection service to the SMF entity through other possible messages, which is not specifically limited.
  • the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
  • the first charging request message may include an identifier of the user equipment, an identifier of a PDU session, and identifiers of multiple charging rate groups of the user equipment.
  • the first charging request message may also include a rate charging policy, for example, the first charging request message may include information on multiple data transmission rate intervals included in the rate charging policy.
  • the rate charging policy corresponds to a rate group for online charging
  • the first charging request may also include a quota request corresponding to the rate group for online charging, or quotas corresponding to multiple data transmission rate ranges ask.
  • the quota request corresponding to the first data transmission rate interval in the plurality of data transmission rate intervals may include information about the first data transmission rate.
  • the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
  • the CHF entity may request based on the quota request corresponding to the rate group of online charging Assign a quota, and send the quota to the SMF entity through the first charging response message, the quota may refer to the quota corresponding to the rate group of online charging (that is, the total quota corresponding to the multiple data transmission rate intervals of the rate charging policy) , or may also refer to the respective quotas corresponding to the multiple data transmission rate ranges of the rate charging policy (for example, the CHF entity may, according to the information of the multiple data transmission rate ranges included in the first charging request message, set the quota for multiple data transmission rate ranges Quota corresponding to rate range allocation).
  • the CHF entity may, after receiving the first charging request message, The data transmission rate ranges are allocated with quotas respectively, and the quotas respectively corresponding to the multiple data transmission rate ranges are sent to the SMF entity through the first charging response message.
  • the CHF entity may also send trigger condition information to the SMF entity through the first charging response message.
  • the SMF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy for the data connection service.
  • the SMF entity sends a second charging request message to the CHF entity, where the second charging request message includes at least one piece of rate charging information of the data connection service.
  • the specific implementation of the SMF entity sending at least one piece of rate charging information of the data connection service to the CHF entity may refer to S807 in Embodiment 2, and details are not repeated here.
  • the CHF entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information of the data connection service.
  • the implementation of the CHF entity charging the user equipment may refer to the description in Embodiment 1, and details are not repeated here.
  • the CHF entity may also allocate a new quota according to the quota request, and the new quota may refer to the online charging The quota corresponding to the rate group of the rate group, or the quota corresponding to the multiple data transmission rate ranges of the rate charging policy of the rate group.
  • the CHF entity may also use the quota request corresponding to multiple data transmission rate intervals. , allocating new quotas for multiple data transmission rate intervals, and sending them to the SMF entity through the second charging response message.
  • Fig. 11 is a schematic flowchart corresponding to the billing method provided in Embodiment 5 of the present application. As shown in Fig. 11, the method may include:
  • the SMF entity receives a PDU session establishment request message from a user equipment.
  • the SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
  • the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message.
  • the PCF entity may obtain the subscription information of the user equipment from the UDM entity or UDR based on the identifier of the user equipment included in the session policy request message, and then determine the charging types of multiple charging rate groups of the user equipment based on the subscription information, The charging type may include online charging and offline charging. And, the PCF entity may also determine the part-rate charging policy of the data connection service of the user equipment based on the subscription information of the user equipment and preset rule 1. Wherein, the preset rule 1 may be pre-configured in the PCF entity, or may be pre-agreed by a protocol.
  • the above session policy response message may include identifiers of multiple rate groups of the user equipment and corresponding charging types, and may also include a partial rate charging policy of the data connection service.
  • the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
  • the first charging request message may include an identifier of the user equipment, an identifier of the PDU session, identifiers of multiple rate groups of the user equipment, and optionally, may also include a quota request corresponding to the rate group of the online charging.
  • the first charging request message may also include a partial rate charging policy.
  • the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
  • the CHF entity after the CHF entity receives the first charging request message, it can determine another part of the rate charging policy for the data connection service based on the subscription information of the user equipment and the preset rule 2, and send it to the SMF entity. And, the CHF entity may also allocate a quota for the online charging rate group based on the quota request corresponding to the online charging rate group, and send the quota to the SMF entity through the first charging response message.
  • the quota can refer to the quota corresponding to the rate group of online charging (that is, the total quota corresponding to the multiple data transmission rate ranges of the rate charging policy of the rate group), or it can refer to the rate of the rate group Quotas corresponding to multiple data transmission rate ranges of the billing policy.
  • the CHF entity may also send trigger condition information to the SMF entity through the first charging response message.
  • the part-rate charging policy determined by the PCF entity may include information on multiple data transmission rate ranges
  • the part-rate charging policy determined by the CHF entity may include time range, time unit, and time information. It can be understood that in this embodiment of the present application, there is no limitation on the content included in the part-rate charging policy determined by the PCF entity, and the content included in the other part-rate charging policy determined by the CHF entity.
  • the SMF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy of the data connection service (including a part of the rate charging policy from the PCF entity and another part of the rate charging policy from the CHF entity).
  • the SMF entity sends at least one piece of rate charging information of the data connection service to the CHF entity.
  • the specific implementation of the SMF entity sending at least one piece of rate charging information of the data connection service to the CHF entity can refer to S807 in the second embodiment, and will not be repeated here.
  • the CHF entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information of the data connection service.
  • the implementation of the CHF entity charging the user equipment may refer to the description in Embodiment 1, and details are not repeated here.
  • step numbers of the various flow charts described in Embodiment 1 to Embodiment 5 are only an example of the execution flow, and do not constitute a restriction on the order of execution of the steps. There is no timing dependency between each other in the embodiments of the present application There is no strict order of execution among the steps. Not all the steps illustrated in each flow chart are necessary steps, and some steps may be deleted on the basis of each flow chart according to actual needs, or other possible steps may be added on the basis of each flow chart according to actual needs.
  • Embodiment 1 to Embodiment 5 can be referred to each other; in addition, in the same embodiment , different implementations or different examples can also refer to each other.
  • the charging policy entity, the charging processing entity, and the rate charging information collection entity may include corresponding hardware structures and/or software modules for performing respective functions.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the embodiments of the present application can divide the functional modules or units of the charging policy entity, charging processing entity, and rate charging information collection entity according to the above method example, for example, each functional module or unit can be divided corresponding to each function, or can be divided into Two or more functions are integrated in one module or unit.
  • the above-mentioned integrated modules or units can be implemented in the form of hardware or in the form of software function modules or units.
  • FIG. 12 shows a possible exemplary block diagram of the device involved in the embodiment of the present application.
  • an apparatus 1200 may include: a processing module 1202 and a communication module 1203 .
  • the processing module 1202 is used to control and manage the actions of the device 1200 .
  • the communication module 1203 is used to support the communication between the apparatus 1200 and other devices.
  • the communication module 1203 is also called a transceiver module, and may include a receiving module and/or a sending module, configured to perform receiving and sending operations respectively.
  • the device 1200 may further include a storage module 1201 for storing program codes and/or data of the device 1200 .
  • the apparatus 1200 may be the charging policy entity in the above embodiment.
  • the processing module 1202 may support the apparatus 1200 to execute the actions of the charging policy entity in each method example above.
  • the processing module 1202 mainly executes internal actions of the charging policy entity in the method example, and the communication module 1203 may support communication between the apparatus 1200 and other entities.
  • the processing module 1202 is configured to: determine the rate charging policy of the data connection service of the user equipment, and the rate charging policy is used to instruct the rate charging information collection entity to generate the rate charging policy of the data connection service At least one piece of rate charging information, each piece of rate charging information includes information on a data rate range and corresponding usage information, and the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity , the usage information includes the accumulated usage of the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval; and the communication module 1203 is configured to: charge the rate The information collection entity sends the rate charging policy.
  • the processing module 1202 and the communication module 1203 reference may be made directly to relevant descriptions in the above method embodiments, and details are not repeated here.
  • the apparatus 1200 may be the charging processing entity in the above embodiment.
  • the processing module 1202 may support the apparatus 1200 to execute the actions of the charging processing entity in the above method examples.
  • the processing module 1202 mainly executes internal actions of the charging processing entity in the method example, and the communication module 1203 may support communication between the apparatus 1200 and other entities.
  • the communication module 1203 is configured to: receive at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, each piece of rate charging information includes information and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within the range The accumulated usage for the data connection service when the data transmission rate is within the range; the processing module 1202 is configured to: perform charging processing on the user equipment based on the at least one piece of rate charging information.
  • the processing module 1202 and the communication module 1203 reference may be made directly to relevant descriptions in the above method embodiments, and details are not repeated here.
  • the apparatus 1200 may be the rate charging information collection entity in the above embodiment.
  • the processing module 1202 may support the apparatus 1200 to execute the actions of the rate charging information collection entity in the above method examples.
  • the processing module 1202 mainly executes the internal actions of the rate charging information collection entity in the method example, and the communication module 1203 may support communication between the apparatus 1200 and other entities.
  • the communication module 1203 is configured to: receive the rate charging policy of the data connection service of the user equipment sent by the charging policy entity, the rate charging policy is used to indicate that the rate charging information collection
  • the entity generates at least one piece of rate charging information of the data connection service
  • the processing module 1202 is configured to: generate the at least one piece of rate charging information according to the rate charging policy; wherein each piece of rate charging information includes data transmission Information about the rate interval and corresponding usage information; the data transmission rate interval is one of the multiple data transmission rate intervals obtained by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service The usage amount accumulated for the data connection service when the rate is within the data transmission rate interval.
  • each module in the device can be realized in the form of software called by the processing element; they can also be realized in the form of hardware; some modules can also be realized in the form of software called by the processing element, and some modules can be realized in the form of hardware.
  • each module can be a separate processing element, or it can be integrated in a certain chip of the device.
  • it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • the processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capability.
  • each step of the above method or each module above may be realized by an integrated logic circuit of hardware in the processor element, or implemented in the form of software called by the processing element.
  • the modules in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA), or a combination of at least two of these integrated circuit forms.
  • ASIC Application Specific Integrated Circuit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the modules in the device can be implemented in the form of a processing element scheduler
  • the processing element can be a processor, such as a general-purpose central processing unit (central processing unit, CPU), or other processors that can call programs.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • the above module for receiving is an interface circuit of the device for receiving signals from other devices.
  • the receiving module is an interface circuit for the chip to receive signals from other chips or devices.
  • the above sending module is an interface circuit of the device, and is used to send signals to other devices.
  • the sending module is an interface circuit used by the chip to send signals to other chips or devices.
  • Apparatus 1300 may be the charging policy entity, charging processing entity, or rate charging information collection entity in the above embodiments, and is used to implement the charging policy entity, charging processing entity, or rate charging information collection entity in the above embodiments. Function.
  • the device 1300 may include a processor 1301 , a memory 1302 and an interface circuit 1303 .
  • the processor 1301 can be used for processing the communication protocol and communication data, and controlling the device 1300 .
  • the memory 1302 may be used to store programs and data, and the processor 1301 may execute the method performed by the device 1300 in the embodiment of the present application based on the programs.
  • the interface circuit 1303 can be used for the apparatus 1300 to communicate with other devices, the communication can be wired communication or wireless communication, and the interface circuit can be, for example, a service interface.
  • the above memory 1302 may also be externally connected to the device 1300 , and the device 1300 may include an interface circuit 1303 and a processor 1301 at this time.
  • the above interface circuit 1303 may also be externally connected to the device 1300 , and in this case the device 1300 may include a memory 1302 and a processor 1301 .
  • the device 1300 may include a processor 1301 .
  • the apparatus 1300 shown in FIG. 13 can implement various processes related to the apparatus 1300 in the foregoing method embodiments.
  • the operations and/or functions of the various modules in the apparatus 1300 shown in FIG. 13 are respectively for implementing the corresponding processes in the foregoing method embodiments.
  • system and “network” in the embodiments of the present application may be used interchangeably.
  • “And/or” describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items. For example “at least one of A, B and C” includes A, B, C, AB, AC, BC or ABC.
  • ordinal numerals such as “first” and “second” mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects degree.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) having computer-usable program code embodied therein.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Abstract

A charging method, apparatus and system. The method comprises: a charging policy entity generating a rate charging policy for a data connection service of a user equipment, and sending the rate charging policy to a rate charging information collection entity, wherein the rate charging policy is used for instructing the rate charging information collection entity to generate at least one piece of rate charging information of the data connection service, each piece of rate charging information comprises information of a data transmission rate interval and corresponding usage information, the data transmission rate interval is one of a plurality of data transmission rate intervals, which are acquired by the rate charging information collection entity, and the usage information includes an accumulative usage amount for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval. In the embodiments of the present application, since rate charging information comprises information of a data transmission rate interval and corresponding usage information, charging processing can be performed on a user equipment on the basis of a data transmission rate.

Description

一种计费方法、装置及系统Billing method, device and system
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年11月03日提交中国专利局、申请号为202111296505.3、申请名称为“一种计费方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111296505.3 and the application title "A billing method, device and system" submitted to the China Patent Office on November 03, 2021, the entire contents of which are incorporated herein by reference. Applying.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种计费方法、装置及系统。The present application relates to the technical field of communications, and in particular to a charging method, device and system.
背景技术Background technique
随着移动通信网络的不断发展,运营商能够为用户提供语音、视频等更多丰富多彩的业务。目前,运营商主要是按照流量对用户设备进行计费,以第五代(5th generation,5G)通信系统为例,会话管理实体可以获取用户设备的数据连接会话对应的使用量,该使用量是指数据连接会话中的业务进行数据传输所产生的流量,并将该使用量上报给计费功能实体,进而由计费功能实体基于该使用量对用户设备进行计费处理。With the continuous development of mobile communication networks, operators can provide users with more and more colorful services such as voice and video. At present, operators mainly charge user equipment according to traffic. Taking the fifth generation (5th generation, 5G) communication system as an example, the session management entity can obtain the usage amount corresponding to the data connection session of the user equipment. The usage amount is Refers to the traffic generated by the data transmission of the business in the data connection session, and the usage is reported to the charging functional entity, and then the charging functional entity performs charging processing on the user equipment based on the usage.
然而,由于无线空口环境复杂、业务的多样化等原因,导致数据传输速率可能会经常发生变化。上述按照流量进行计费的方式,并未考虑数据传输速率。如何基于数据传输速率对用户设备进行计费处理,是亟需解决的问题。However, due to reasons such as the complex environment of the wireless air interface and the diversification of services, the data transmission rate may change frequently. The above method of billing according to traffic does not consider the data transmission rate. How to charge the user equipment based on the data transmission rate is an urgent problem to be solved.
发明内容Contents of the invention
本申请提供了一种计费方法、装置及系统,用于实现基于数据传输速率对用户设备进行计费处理。The present application provides a charging method, device and system, which are used to implement charging processing on user equipment based on a data transmission rate.
第一方面,本申请实施例提供一种计费方法,该方法可以用于实现计费策略实体侧的功能,本申请实施例不限该方法的具体执行主体。以该方法应用于计费策略实体为例,在该方法中,计费策略实体确定用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息,每条速率计费信息包含数据速率区间的信息和对应的使用信息,所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;以及,向所述速率计费信息采集实体发送所述速率计费策略。In the first aspect, the embodiment of the present application provides a charging method, which can be used to realize the function of the charging policy entity side, and the embodiment of the present application does not limit the specific execution subject of the method. Taking this method applied to a charging policy entity as an example, in this method, the charging policy entity determines the rate charging policy of the data connection service of the user equipment, and the rate charging policy is used to instruct the rate charging information collection entity to generate At least one piece of rate charging information for the data connection service, each piece of rate charging information includes information on a data rate range and corresponding usage information, and the data transmission rate range is a plurality of data obtained by the rate charging information collection entity One of the data transmission rate intervals, the usage information includes the accumulated usage amount for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval; and, charging for the rate The information collection entity sends the rate charging policy.
如此,由于本申请实施例中的每条速率计费信息可以包括数据传输速率区间的信息和对应的使用信息,从而能够实现基于数据传输速率对用户设备进行计费处理。进一步地,本申请实施例提供的计费方法从数据传输速率、使用量(比如流量)两个维度来进行计费,能够为运营商按数据传输速率定价(不同数据传输速率区间对应不同费率)提供技术支持,满足运营商的速率变现需求,便于提高网络资源的利用率。In this way, since each piece of rate charging information in this embodiment of the present application may include information on a data transmission rate interval and corresponding usage information, it is possible to perform charging processing on the user equipment based on the data transmission rate. Furthermore, the billing method provided by the embodiment of the present application performs billing from two dimensions of data transmission rate and usage (such as traffic), and can set prices for operators according to data transmission rate (different data transmission rate intervals correspond to different rates ) provides technical support to meet the rate monetization needs of operators and facilitate the improvement of network resource utilization.
在一种可能的设计中,所述数据连接业务为所述用户设备的数据连接会话中的业务数据流的集合。In a possible design, the data connection service is a collection of service data flows in a data connection session of the user equipment.
在一种可能的设计中,所述数据连接业务包括所述用户设备的数据连接会话中的所有业务数据流;或者,所述数据连接业务包括所述用户设备的数据连接会话中的一个服务质量QoS流对应的多个业务数据流;或者,所述数据连接业务包括所述用户设备的数据连接会话中的一个费率组对应的多个业务数据流;或者,所述数据连接业务包括所述用户设备的数据连接会话中的一个业务数据流。In a possible design, the data connection service includes all service data flows in the data connection session of the user equipment; or, the data connection service includes a quality of service in the data connection session of the user equipment Multiple service data flows corresponding to the QoS flow; or, the data connection service includes multiple service data flows corresponding to one rate group in the data connection session of the user equipment; or, the data connection service includes the A service data stream in a data connection session of a user equipment.
在一种可能的设计中,所述速率计费策略包括所述多个数据传输速率区间的信息。In a possible design, the rate charging policy includes information about the multiple data transmission rate intervals.
如此,计费策略实体在确定不同的速率计费策略时,可以有不同的数据传输速率区间划分方式(即划分出多个数据传输速率区间的方式)。比如不同用户设备的速率计费策略的数据传输速率区间划分方式可以不同,又比如相同用户设备的不同PDU会话的速率计费策略的数据传输速率区间划分方式也可以不同,举个例子,PDU会话1的速率计费策略的数据传输速率区间包括如下三个区间:(0,5Mbps]、(5Mbps,10Mbps]、(10Mbps,∝),PDU会话2的速率计费策略的数据传输速率区间包括如下三个区间:(0,8Mbps]、(8Mbps,15Mbps]、(15Mbps,∝),又比如用户设备的不同业务的速率计费策略的数据传输速率区间划分方式也可以不同,从而使得确定出的速率计费策略较为灵活,能够有效满足不同场景的计费需求。In this way, when the charging policy entity determines different rate charging policies, it may have different data transmission rate interval division methods (that is, the manner of dividing into multiple data transmission rate intervals). For example, the division methods of data transmission rate intervals of rate charging policies of different user equipments can be different, and for example, the division methods of data transmission rate intervals of rate accounting policies of different PDU sessions of the same user equipment can also be different. For example, PDU session The data transmission rate interval of the rate billing policy of 1 includes the following three intervals: (0,5Mbps], (5Mbps,10Mbps], (10Mbps,∝), and the data transmission rate interval of the rate billing policy of PDU session 2 includes the following Three intervals: (0,8Mbps], (8Mbps,15Mbps], (15Mbps,∝). For example, the data transmission rate interval division method of the rate charging policy of different services of the user equipment can also be different, so that the determined The rate charging policy is more flexible and can effectively meet the charging requirements of different scenarios.
在一种可能的设计中,所述速率计费策略包括时间范围,所述时间范围用于指示所述速率计费信息采集实体在所述时间范围内生成所述数据连接业务的至少一条速率计费信息。In a possible design, the rate charging policy includes a time range, and the time range is used to instruct the rate charging information collection entity to generate at least one rate meter of the data connection service within the time range. fee information.
如此,当速率计费策略包括时间范围时,计费策略实体可以通过时间范围来灵活界定速率计费的时间。In this way, when the rate charging policy includes a time range, the charging policy entity can flexibly define the time of rate charging through the time range.
在一种可能的设计中,所述速率计费策略包括时间单元,所述时间单元用于指示所述速率计费信息采集实体每隔所述时间单元确定所述时间单元内所述数据连接业务的数据传输速率。In a possible design, the rate charging policy includes a time unit, and the time unit is used to instruct the rate charging information collection entity to determine the data connection service in the time unit every time unit data transfer rate.
在一种可能的设计中,所述速率计费策略包括方式信息,所述方式信息用于指示确定所述时间单元内所述数据连接业务的数据传输速率的方式。In a possible design, the rate charging policy includes mode information, and the mode information is used to indicate a mode of determining the data transmission rate of the data connection service in the time unit.
在一种可能的设计中,所述方式信息指示的方式为第一方式或第二方式;其中,所述第一方式为基于所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率(比如基于所述时间单元内的流量和所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率);所述第二方式为基于所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率(比如基于所述时间单元内的流量和所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率)。In a possible design, the manner indicated by the manner information is the first manner or the second manner; wherein, the first manner is to calculate the data connection service in the time unit based on the duration of the time unit The data transmission rate (such as calculating the data transmission rate of the data connection service in the time unit based on the traffic in the time unit and the duration of the time unit); the second method is based on the Calculate the data transmission rate of the data connection service in the time unit according to the duration of traffic generation (for example, calculate the data transmission rate of the data connection service in the time unit based on the traffic in the time unit and the duration of traffic generation in the time unit data transfer rate).
如此,当速率计费策略包括时间单元和/或方式信息时,计费策略实体可以根据不同场景的计费需求和系统的计算负担,动态调整时间单元的时长和计算速率的方式,具有较强的灵活性。比如,当时间单元的时长较短和/或计算速率的方式为第二方式时,速率计费信息采集实体的计算负担较大,而当时间单元的时长较长和/或计算速率的方式为第一方式时,速率计费信息采集实体的计算负担相对较小。In this way, when the rate charging policy includes time unit and/or mode information, the charging policy entity can dynamically adjust the duration of the time unit and the way of calculating the rate according to the charging requirements of different scenarios and the computing burden of the system, which has a strong flexibility. For example, when the duration of the time unit is short and/or the method of calculating the rate is the second method, the calculation burden of the rate charging information collection entity is relatively large, and when the duration of the time unit is long and/or the method of calculating the rate is In the first mode, the calculation burden of the rate charging information collection entity is relatively small.
在一种可能的设计中,所述方法还包括:接收来自计费触发实体的第一计费请求消息;基于所述第一计费请求消息,确定所述速率计费策略。In a possible design, the method further includes: receiving a first charging request message from a charging trigger entity; and determining the rate charging policy based on the first charging request message.
在一种可能的设计中,所述计费策略实体为计费功能CHF实体或者策略控制功能PCF实体。In a possible design, the charging policy entity is a charging function CHF entity or a policy control function PCF entity.
第二方面,本申请实施例提供一种计费方法,该方法可以用于实现计费处理实体侧的功能,本申请实施例不限该方法的具体执行主体。以该方法应用于计费处理实体为例,在该方法中,计费处理实体接收速率计费信息采集实体发送的用户设备的数据连接业务的至少一条速率计费信息,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;以及,基于所述至少一条速率计费信息对所述用户设备进行计费处理。In the second aspect, the embodiment of the present application provides a charging method, which can be used to realize the function of the charging processing entity side, and the embodiment of the present application does not limit the specific execution subject of the method. Taking this method applied to the charging processing entity as an example, in this method, the charging processing entity receives at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, and each piece of rate charging information Including information on the data transmission rate range and corresponding usage information; the data transmission rate range is one of the multiple data transmission rate ranges obtained by the rate charging information collection entity, and the usage information includes when the data connection service The accumulated usage of the data connection service when the data transmission rate is within the data transmission rate range; and performing charging processing on the user equipment based on the at least one piece of rate charging information.
在一种可能的设计中,接收来自速率计费信息采集实体的速率计费信息,包括:接收来自所述速率计费信息采集实体的第二计费请求消息,所述第二计费请求消息包括所述至少一条速率计费信息。In a possible design, receiving the rate charging information from the rate charging information collection entity includes: receiving a second charging request message from the rate charging information collection entity, the second charging request message Include the at least one piece of rate charging information.
在一种可能的设计中,接收来自速率计费信息采集实体的速率计费信息,包括:接收来自所述速率计费信息采集实体的订阅通知消息,所述订阅通知消息包括所述至少一条速率计费信息。In a possible design, receiving the rate charging information from the rate charging information collection entity includes: receiving a subscription notification message from the rate charging information collection entity, the subscription notification message including the at least one rate charging information collection entity. billing information.
在一种可能的设计中,所述方法还包括:向所述速率计费信息采集实体发送所述多个数据传输速率区间分别对应的配额,所述使用量为所述数据传输速率区间对应的配额的使用量。In a possible design, the method further includes: sending quotas corresponding to the plurality of data transmission rate intervals to the rate charging information collection entity, and the usage amount is the quota corresponding to the data transmission rate intervals The usage of the quota.
在一种可能的设计中,所述方法还包括:向所述速率计费信息采集实体发送触发条件信息;其中,所述触发条件信息包括第一配额对应的阈值,所述触发条件信息用于指示当第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值时,向所述计费处理实体上报所述速率计费信息;和/或,所述触发条件信息包括第一配额的有效期,所述触发条件信息用于指示当所述有效期届满时,向所述计费处理实体上报所述速率计费信息;所述第一配额为所述第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。In a possible design, the method further includes: sending trigger condition information to the rate charging information collection entity; wherein the trigger condition information includes a threshold corresponding to the first quota, and the trigger condition information is used to Instructing that when the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to the first quota, report the rate charging information to the charging processing entity; and/or, the trigger condition information includes The validity period of the first quota, the trigger condition information is used to indicate that when the validity period expires, report the rate charging information to the charging processing entity; the first quota is the first data transmission rate interval For a corresponding quota, the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
在一种可能的设计中,所述计费处理实体为CHF实体。In a possible design, the charging processing entity is a CHF entity.
第三方面,本申请实施例提供一种计费方法,该方法可以用于实现速率计费信息采集实体侧的功能,本申请实施例不限该方法的具体执行主体。以该方法应用于速率计费信息采集实体为例,在该方法中,速率计费信息采集实体接收计费策略实体发送的用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示所述速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息;以及,根据所述速率计费策略,生成所述至少一条速率计费信息;其中,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量。In the third aspect, the embodiment of the present application provides a charging method, which can be used to realize the function of the rate charging information collection entity side, and the embodiment of the present application does not limit the specific execution subject of the method. Taking this method applied to the rate charging information collection entity as an example, in this method, the rate charging information collection entity receives the rate charging policy of the data connection service of the user equipment sent by the charging policy entity, and the rate charging policy Used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service; and, according to the rate charging policy, generate the at least one piece of rate charging information; wherein, each rate The billing information includes information on data transmission rate ranges and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the The usage amount accumulated for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval.
在一种可能的设计中,所述数据连接业务为所述用户设备的数据连接会话中的业务数据流的集合。In a possible design, the data connection service is a collection of service data flows in a data connection session of the user equipment.
在一种可能的设计中,所述数据连接业务包括所述用户设备的数据连接会话中的所有业务数据流;或者,所述数据连接业务包括所述用户设备的数据连接会话中的一个服务质量QoS流对应的多个业务数据流;或者,所述数据连接业务包括所述用户设备的数据连接会话中的一个费率组对应的多个业务数据流;或者,所述数据连接业务包括所述用户设备 的数据连接会话中的一个业务数据流。In a possible design, the data connection service includes all service data flows in the data connection session of the user equipment; or, the data connection service includes a quality of service in the data connection session of the user equipment Multiple service data flows corresponding to the QoS flow; or, the data connection service includes multiple service data flows corresponding to one rate group in the data connection session of the user equipment; or, the data connection service includes the A service data stream in a data connection session of a user equipment.
在一种可能的设计中,所述速率计费策略包括所述多个数据传输速率区间的信息,所述方法还包括:从所述速率计费策略获取所述多个数据传输速率区间。In a possible design, the rate charging policy includes information on the multiple data transmission rate ranges, and the method further includes: acquiring the multiple data transmission rate ranges from the rate charging policy.
在一种可能的设计中,所述速率计费策略包括时间范围;根据所述速率计费策略,生成所述用户设备的速率计费信息,包括:根据所述速率计费策略,在所述时间范围内生成所述数据连接业务的至少一条速率计费信息。In a possible design, the rate charging policy includes a time range; generating the rate charging information of the user equipment according to the rate charging policy includes: according to the rate charging policy, in the At least one piece of rate charging information of the data connection service is generated within the time range.
在一种可能的设计中,所述速率计费策略包括时间单元;根据所述速率计费策略,生成所述用户设备的速率计费信息,包括:每隔所述时间单元确定所述时间单元内所述数据连接业务的数据传输速率。In a possible design, the rate charging policy includes a time unit; generating the rate charging information of the user equipment according to the rate charging policy includes: determining the time unit every time unit The data transmission rate of the data connection service mentioned in the above.
在一种可能的设计中,所述数据连接业务对应多个用户面功能实体;所述时间单元内所述数据连接业务的数据传输速率为所述数据连接业务在所述多个用户面功能实体上的总数据传输速率;其中,所述总数据传输速率是基于所述数据连接业务在所述多个用户面功能实体上的总流量得到的;或者,所述总数据传输速率为所述多个用户面功能实体分别对应的所述数据连接业务的数据传输速率之和。In a possible design, the data connection service corresponds to multiple user plane functional entities; the data transmission rate of the data connection service in the time unit is The total data transmission rate; wherein, the total data transmission rate is obtained based on the total traffic of the data connection service on the multiple user plane functional entities; or, the total data transmission rate is the multiple The sum of the data transmission rates of the data connection services respectively corresponding to the user plane functional entities.
在一种可能的设计中,所述速率计费策略包括方式信息;确定所述时间单元内所述数据连接业务的数据传输速率,包括:根据所述方式信息所指示的方式,确定所述时间单元内所述数据连接业务的数据传输速率。In a possible design, the rate charging policy includes mode information; determining the data transmission rate of the data connection service within the time unit includes: determining the time according to the mode indicated by the mode information The data transmission rate of the data connection service in the unit.
在一种可能的设计中,所述方式信息指示的方式为第一方式或第二方式;当所述方式信息指示的方式为所述第一方式时,确定所述时间单元内所述数据连接业务的数据传输速率,包括:基于所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率;当所述方式信息指示的方式为所述第二方式时,确定所述时间单元内所述数据连接业务的数据传输速率,包括:基于所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率。In a possible design, the mode indicated by the mode information is the first mode or the second mode; when the mode indicated by the mode information is the first mode, determine the data connection within the time unit The data transmission rate of the service, including: calculating the data transmission rate of the data connection service in the time unit based on the duration of the time unit; when the mode indicated by the mode information is the second mode, determining the The data transmission rate of the data connection service in the time unit includes: calculating the data transmission rate of the data connection service in the time unit based on the duration of traffic generation in the time unit.
在一种可能的设计中,所述方法还包括:向计费处理实体发送所述至少一条速率计费信息。In a possible design, the method further includes: sending the at least one piece of rate charging information to a charging processing entity.
可以理解地,上述第三方面所描述的各种可能的设计中,速率计费信息采集实体可以为SMF实体或者NWDAF实体。进一步地,当速率计费信息采集实体可以为NWDAF实体时,还可以包括以下可能的设计:It can be understood that, in various possible designs described in the third aspect above, the rate charging information collection entity may be an SMF entity or an NWDAF entity. Further, when the rate charging information collection entity can be an NWDAF entity, the following possible designs may also be included:
在一种可能的设计中,所述方法还包括:向计费处理实体发送订阅通知消息,所述订阅通知消息包括所述至少一条速率计费信息。In a possible design, the method further includes: sending a subscription notification message to the charging processing entity, where the subscription notification message includes the at least one piece of rate charging information.
当速率计费信息采集实体可以为SMF实体时,还可以包括以下几种可能的设计:When the rate charging information collection entity can be an SMF entity, the following possible designs can also be included:
在一种可能的设计中,所述方法还包括:向计费处理实体发送第二计费请求消息,所述第二计费请求消息包括所述至少一条速率计费信息。In a possible design, the method further includes: sending a second charging request message to the charging processing entity, where the second charging request message includes the at least one piece of rate charging information.
在一种可能的设计中,所述方法还包括:向所述计费策略实体发送第一计费请求消息,所述第一计费请求消息用于确定所述速率计费策略。In a possible design, the method further includes: sending a first charging request message to the charging policy entity, where the first charging request message is used to determine the rate charging policy.
在一种可能的设计中,所述方法还包括:接收所述计费处理实体发送的所述多个数据传输速率区间分别对应的配额,所述使用量为所述数据传输速率区间对应的配额的使用量。In a possible design, the method further includes: receiving quotas corresponding to the plurality of data transmission rate intervals sent by the charging processing entity, and the usage amount is the quota corresponding to the data transmission rate intervals usage.
在一种可能的设计中,所述方法还包括:接收所述计费处理实体发送的触发条件信息;所述触发条件信息包括第一配额对应的阈值;向计费处理实体发送所述速率计费信息,包括:确定第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值后, 向所述计费处理实体发送所述速率计费信息;和/或,所述触发条件信息包括第一配额的有效期;向计费处理实体发送所述速率计费信息,包括:确定所述第一配额的有效期届满后,向所述计费处理实体发送所述速率计费信息;所述第一配额为所述第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。In a possible design, the method further includes: receiving trigger condition information sent by the charging processing entity; the trigger condition information includes a threshold corresponding to the first quota; sending the rate meter to the charging processing entity charging information, including: after determining that the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to the first quota, sending the rate charging information to the charging processing entity; and/or, the The trigger condition information includes the validity period of the first quota; sending the rate charging information to the charging processing entity includes: after determining that the validity period of the first quota expires, sending the rate charging information to the charging processing entity ; The first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
可以理解地,上述第二方面或第三方面所描述的方法与上述第一方面所描述的方法相对应,因此,第二方面或第三方面所描述的方法中相关技术特征的有益效果可以参照第一方面,具体不再赘述。It can be understood that the method described in the above-mentioned second aspect or the third aspect corresponds to the method described in the above-mentioned first aspect, therefore, the beneficial effects of the relevant technical features in the method described in the second aspect or the third aspect can be referred to The first aspect will not be described in detail.
第四方面,本申请实施例提供一种计费策略实体,所述计费策略实体具备实现上述第一方面的功能。比如,所述计费策略实体包括执行上述第一方面所涉及的步骤的模块或单元或手段(means),所述功能或单元或手段可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现。In a fourth aspect, the embodiment of the present application provides a charging policy entity, where the charging policy entity has the function of implementing the first aspect above. For example, the charging policy entity includes a module or unit or means (means) for performing the steps involved in the first aspect above, and the function, unit or means can be implemented by software, or by hardware, or by hardware corresponding software implementation.
在一种可能的设计中,所述计费策略实体包括处理模块、通信模块,其中,通信模块可以用于收发信号,以实现该计费策略实体和其它装置之间的通信;处理模块可以用于执行该计费策略实体的一些内部操作。In a possible design, the charging policy entity includes a processing module and a communication module, wherein the communication module can be used to send and receive signals to realize communication between the charging policy entity and other devices; the processing module can use It is used to perform some internal operations of the charging policy entity.
具体地,在一个实施例中,处理模块用于:确定用户设备的速率计费策略,所述速率计费策略用于指示速率计费信息采集实体生成所述用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息,每条速率计费信息包含数据速率区间的信息和对应的使用信息,所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;通信模块用于:向所述速率计费信息采集实体发送所述速率计费策略。Specifically, in one embodiment, the processing module is configured to: determine a rate charging policy of the user equipment, where the rate charging policy is used to instruct the rate charging information collection entity to generate a rate meter for the data connection service of the user equipment. A fee policy, the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service, each piece of rate charging information includes information on the data rate interval and corresponding usage information, The data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within the data transmission rate range For the accumulated usage of the data connection service; the communication module is configured to: send the rate charging policy to the rate charging information collection entity.
作为一种可能的实现,所述通信模块还用于:接收来自计费触发实体的第一计费请求消息;所述处理模块具体用于:基于所述第一计费请求消息,确定所述速率计费策略。As a possible implementation, the communication module is further configured to: receive a first charging request message from a charging trigger entity; the processing module is specifically configured to: determine the Rate billing policy.
在一种可能的设计中,所述计费策略实体包括处理器,还可以包括收发器,所述收发器用于收发信号,所述处理器执行程序指令,以完成上述第一方面中任意可能的设计或实现方式中的方法。其中,所述计费策略实体还可以包括一个或多个存储器,所述存储器用于与处理器耦合,所述存储器可以保存实现上述第一方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述计费策略实体实现上述第一方面中任意可能的设计或实现方式中的方法。In a possible design, the billing policy entity includes a processor, and may further include a transceiver, where the transceiver is used to send and receive signals, and the processor executes program instructions to implement any possible A method in design or implementation. Wherein, the charging policy entity may further include one or more memories, the memories are used to be coupled with the processor, and the memories may store necessary computer programs or instructions for realizing the functions involved in the first aspect above. The processor can execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing policy entity implements the method in any possible design or implementation of the first aspect above .
在一种可能的设计中,所述计费策略实体包括处理器,处理器可以用于与存储器耦合。所述存储器可以保存实现上述第一方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述计费策略实体实现上述第一方面中任意可能的设计或实现方式中的方法。In a possible design, the charging policy entity includes a processor, and the processor can be used to be coupled with the memory. The memory may store necessary computer programs or instructions to realize the functions referred to in the first aspect above. The processor can execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing policy entity implements the method in any possible design or implementation of the first aspect above .
在一种可能的设计中,所述计费策略实体包括处理器和接口电路,其中,处理器用于通过所述接口电路与其它装置通信,并执行上述第一方面中任意可能的设计或实现方式中的方法。In a possible design, the billing policy entity includes a processor and an interface circuit, where the processor is configured to communicate with other devices through the interface circuit, and execute any possible design or implementation in the first aspect above method in .
第五方面,本申请实施例提供一种计费处理实体,所述计费处理实体具备实现上述第 二方面的功能,比如,所述计费处理实体包括执行上述第二方面所涉及的步骤的模块或单元或手段,所述功能或单元或手段可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现。In the fifth aspect, the embodiment of the present application provides a charging processing entity, the charging processing entity has the function of realizing the above-mentioned second aspect, for example, the charging processing entity includes a method for performing the steps involved in the above-mentioned second aspect The module or unit or means, the function or unit or means may be realized by software, or by hardware, or by executing corresponding software by hardware.
在一种可能的设计中,所述计费处理实体包括处理模块、通信模块,其中,通信模块可以用于收发信号,以实现该计费处理实体和其它装置之间的通信;处理模块可以用于执行该计费处理实体的一些内部操作。In a possible design, the billing processing entity includes a processing module and a communication module, wherein the communication module can be used to send and receive signals to realize communication between the billing processing entity and other devices; the processing module can use To perform some internal operations of the billing processing entity.
具体地,在一个实施例中,通信模块用于:接收速率计费信息采集实体发送的用户设备的数据连接业务的至少一条速率计费信息,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;处理模块用于:基于所述速率计费信息对所述用户设备进行计费处理。Specifically, in one embodiment, the communication module is configured to: receive at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, each piece of rate charging information includes information on the data transmission rate range and corresponding usage information; the data transmission rate interval is one of multiple data transmission rate intervals obtained by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within the The accumulated usage of the data connection service when the data transmission rate is within the interval; the processing module is configured to: perform charging processing on the user equipment based on the rate charging information.
作为一种可能的实现,所述通信模块具体用于:接收来自所述速率计费信息采集实体的第二计费请求消息,所述第二计费请求消息包括所述至少一条速率计费信息。As a possible implementation, the communication module is specifically configured to: receive a second charging request message from the rate charging information collection entity, where the second charging request message includes the at least one piece of rate charging information .
作为一种可能的实现,所述通信模块还用于:向所述速率计费信息采集实体发送所述多个数据传输速率区间分别对应的配额,所述使用量为所述数据传输速率区间对应的配额的使用量。As a possible implementation, the communication module is further configured to: send the quotas corresponding to the plurality of data transmission rate intervals to the rate charging information collection entity, and the usage amount is the quota corresponding to the data transmission rate intervals. The usage of the quota.
作为一种可能的实现,所述通信模块还用于:向所述速率计费信息采集实体发送触发条件信息;其中,所述触发条件信息包括第一配额对应的阈值,所述触发条件信息用于指示当所述第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值时,向所述计费处理实体上报所述速率计费信息;和/或,所述触发条件信息包括第一配额的有效期,所述触发条件信息用于指示当所述有效期届满时,向所述计费处理实体上报所述速率计费信息;所述第一配额为第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。As a possible implementation, the communication module is further configured to: send trigger condition information to the rate charging information collection entity; wherein the trigger condition information includes a threshold corresponding to the first quota, and the trigger condition information uses Instructing to report the rate charging information to the charging processing entity when the available quota corresponding to the first data transmission rate interval is less than or equal to the threshold corresponding to the first quota; and/or, the triggering The condition information includes the validity period of the first quota, and the trigger condition information is used to indicate that when the validity period expires, the rate charging information is reported to the charging processing entity; the first quota is the first data transmission rate A quota corresponding to an interval, wherein the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
在一种可能的设计中,所述计费处理实体包括处理器,还可以包括收发器,所述收发器用于收发信号,所述处理器执行程序指令,以完成上述第二方面中任意可能的设计或实现方式中的方法。其中,所述计费处理实体还可以包括一个或多个存储器,所述存储器用于与处理器耦合,所述存储器可以保存实现上述第二方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述计费处理实体实现上述第二方面中任意可能的设计或实现方式中的方法。In a possible design, the billing processing entity includes a processor, and may further include a transceiver, where the transceiver is used to send and receive signals, and the processor executes program instructions to implement any of the possible tasks in the second aspect above. A method in design or implementation. Wherein, the billing processing entity may further include one or more memories, the memories are used to be coupled with the processor, and the memories may store necessary computer programs or instructions for realizing the functions involved in the second aspect above. The processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing processing entity implements the method in any possible design or implementation of the second aspect above .
在一种可能的设计中,所述计费处理实体包括处理器,处理器可以用于与存储器耦合。所述存储器可以保存实现上述第二方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述计费处理实体实现上述第二方面中任意可能的设计或实现方式中的方法。In a possible design, the billing processing entity includes a processor, and the processor can be used to be coupled with the memory. The memory may store necessary computer programs or instructions to realize the functions referred to in the second aspect above. The processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the billing processing entity implements the method in any possible design or implementation of the second aspect above .
在一种可能的设计中,所述计费处理实体包括处理器和接口电路,其中,处理器用于通过所述接口电路与其它装置通信,并执行上述第二方面中任意可能的设计或实现方式中的方法。In a possible design, the billing processing entity includes a processor and an interface circuit, where the processor is configured to communicate with other devices through the interface circuit, and execute any possible design or implementation in the second aspect above method in .
第六方面,本申请实施例提供一种速率计费信息采集实体,所述速率计费信息采集实体具备实现上述第三方面的功能,比如,所述速率计费信息采集实体包括执行上述第三方 面所涉及的步骤的模块或单元或手段,所述功能或单元或手段可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现。In the sixth aspect, the embodiment of the present application provides a rate charging information collection entity, the rate charging information collection entity has the function of realizing the third aspect above, for example, the rate charging information collection entity includes the above third The modules, units, or means of the steps involved in the aspect, the functions, units, or means may be implemented by software, or by hardware, or by executing corresponding software by hardware.
在一种可能的设计中,所述速率计费信息采集实体包括处理模块、通信模块,其中,通信模块可以用于收发信号,以实现该速率计费信息采集实体和其它装置之间的通信;处理模块可以用于执行该速率计费信息采集实体的一些内部操作。In a possible design, the rate charging information collection entity includes a processing module and a communication module, wherein the communication module can be used to send and receive signals to realize communication between the rate charging information collection entity and other devices; The processing module can be used to execute some internal operations of the rate charging information collection entity.
具体地,在一个实施例中,通信模块用于:接收计费策略实体发送的用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示所述速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息;处理模块用于:根据所述速率计费策略,生成所述至少一条速率计费信息;其中,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量。Specifically, in one embodiment, the communication module is configured to: receive the rate charging policy of the data connection service of the user equipment sent by the charging policy entity, the rate charging policy is used to instruct the rate charging information collection entity Generate at least one piece of rate charging information for the data connection service; the processing module is configured to: generate the at least one piece of rate charging information according to the rate charging policy; wherein each piece of rate charging information includes a data transmission rate interval information and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within The accumulated usage for the data connection service when the data transmission rate is within the interval.
作为一种可能的实现,所述速率计费策略包括时间范围;所述处理模块具体用于:根据所述速率计费策略,在所述时间范围内生成所述数据连接业务的至少一条速率计费信息。As a possible implementation, the rate charging policy includes a time range; the processing module is specifically configured to: generate at least one rate meter of the data connection service within the time range according to the rate charging policy fee information.
作为一种可能的实现,所述速率计费策略包括时间单元;所述处理模块具体用于:每隔所述时间单元确定所述时间单元内所述数据连接业务的数据传输速率。As a possible implementation, the rate charging policy includes a time unit; the processing module is specifically configured to: determine the data transmission rate of the data connection service in the time unit every time unit.
作为一种可能的实现,所述速率计费策略包括方式信息;所述处理模块具体用于:根据所述方式信息所指示的方式,确定所述时间单元内所述数据连接业务的数据传输速率。As a possible implementation, the rate charging policy includes mode information; the processing module is specifically configured to: determine the data transmission rate of the data connection service in the time unit according to the mode indicated by the mode information .
作为一种可能的实现,所述方式信息指示的方式为第一方式或第二方式;当所述方式信息指示的方式为所述第一方式时,所述处理模块具体用于:基于所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率;当所述方式信息指示的方式为所述第二方式时,所述处理模块具体用于:基于所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率。As a possible implementation, the manner indicated by the manner information is the first manner or the second manner; when the manner indicated by the manner information is the first manner, the processing module is specifically configured to: based on the The duration of the time unit calculates the data transmission rate of the data connection service within the time unit; when the mode indicated by the mode information is the second mode, the processing module is specifically configured to: The duration of traffic generation is used to calculate the data transmission rate of the data connection service in the time unit.
作为一种可能的实现,所述通信模块还用于:向计费处理实体发送所述至少一条速率计费信息。As a possible implementation, the communication module is further configured to: send the at least one piece of rate charging information to a charging processing entity.
作为一种可能的实现,所述通信模块还用于:接收所述计费处理实体发送的所述多个数据传输速率区间分别对应的配额,所述使用量为所述数据传输速率区间对应的配额的使用量。As a possible implementation, the communication module is further configured to: receive the quotas corresponding to the multiple data transmission rate intervals sent by the charging processing entity, and the usage amount is the quota corresponding to the data transmission rate intervals The usage of the quota.
作为一种可能的实现,所述通信模块还用于:接收所述计费处理实体发送的所述多个数据传输速率区间分别对应的配额的有效期。As a possible implementation, the communication module is further configured to: receive validity periods of quotas respectively corresponding to the plurality of data transmission rate intervals sent by the charging processing entity.
作为一种可能的实现,所述通信模块还用于:接收所述计费处理实体发送的触发条件信息;所述触发条件信息包括第一配额对应的阈值;所述处理模块还用于:确定第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值后,控制所述通信模块向所述计费处理实体发送所述速率计费信息;和/或,所述触发条件信息包括第一配额的有效期;所述处理模块还用于:确定所述第一配额的有效期届满后,控制所述通信模块向所述计费处理实体发送所述速率计费信息;所述第一配额为所述第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。As a possible implementation, the communication module is further configured to: receive trigger condition information sent by the charging processing entity; the trigger condition information includes a threshold corresponding to the first quota; the processing module is further configured to: determine After the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to the first quota, control the communication module to send the rate charging information to the charging processing entity; and/or, the triggering The condition information includes the validity period of the first quota; the processing module is further configured to: after determining that the validity period of the first quota expires, control the communication module to send the rate charging information to the charging processing entity; the The first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
在一种可能的设计中,所述速率计费信息采集实体包括处理器,还可以包括收发器,所述收发器用于收发信号,所述处理器执行程序指令,以完成上述第三方面中任意可能的 设计或实现方式中的方法。其中,所述速率计费信息采集实体还可以包括一个或多个存储器,所述存储器用于与处理器耦合,所述存储器可以保存实现上述第三方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述速率计费信息采集实体实现上述第三方面中任意可能的设计或实现方式中的方法。In a possible design, the rate charging information collection entity includes a processor, and may also include a transceiver, the transceiver is used to send and receive signals, and the processor executes program instructions to complete any of the above third aspects. A method in a possible design or implementation. Wherein, the rate charging information collection entity may further include one or more memories, the memories are used to be coupled with the processor, and the memories may store necessary computer programs or instructions for realizing the functions involved in the third aspect above. The processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the rate charging information collection entity may implement any possible design or implementation in the third aspect above. Methods.
在一种可能的设计中,所述速率计费信息采集实体包括处理器,处理器可以用于与存储器耦合。所述存储器可以保存实现上述第三方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述速率计费信息采集实体实现上述第三方面中任意可能的设计或实现方式中的方法。In a possible design, the entity for collecting rate and charging information includes a processor, and the processor may be used to be coupled with a memory. The memory may store necessary computer programs or instructions to realize the functions mentioned in the above third aspect. The processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the rate charging information collection entity may implement any possible design or implementation in the third aspect above. Methods.
在一种可能的设计中,所述速率计费信息采集实体包括处理器和接口电路,其中,处理器用于通过所述接口电路与其它装置通信,并执行上述第三方面中任意可能的设计或实现方式中的方法。In a possible design, the rate charging information collection entity includes a processor and an interface circuit, where the processor is used to communicate with other devices through the interface circuit, and execute any possible design or method in the implementation.
可以理解地,上述第四方面至第六方面中,处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。此外,以上处理器可以为一个或多个,存储器可以为一个或多个。存储器可以与处理器集成在一起,或者存储器与处理器分离设置。在具体实现过程中,存储器可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。It can be understood that, in the fourth aspect to the sixth aspect above, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software When implemented, the processor may be a general-purpose processor, which is realized by reading software codes stored in the memory. In addition, there may be one or more processors, and one or more memories. The memory can be integrated with the processor, or the memory can be separated from the processor. In a specific implementation process, the memory and the processor can be integrated on the same chip, or they can be respectively arranged on different chips. The embodiment of the present application does not limit the type of the memory and the arrangement of the memory and the processor.
第七方面,本申请实施例提供一种通信系统,该通信系统包括上述第四方面所提供的计费策略实体、上述第五方面所提供的计费处理实体和上述第六方面所提供的速率计费信息采集实体。In the seventh aspect, the embodiment of the present application provides a communication system, which includes the charging policy entity provided in the fourth aspect above, the charging processing entity provided in the fifth aspect above, and the rate rate provided in the sixth aspect above. Billing information collection entity.
第八方面,本申请提供一种计算机可读存储介质,所述计算机存储介质中存储有计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行上述第一方面至第三方面的任一种可能的设计中的方法。In an eighth aspect, the present application provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable medium, and when a computer reads and executes the computer-readable instructions, the computer executes the above-mentioned first aspect to A method in any possible design of the third aspect.
第九方面,本申请提供一种计算机程序产品,当计算机读取并执行所述计算机程序产品时,使得计算机执行上述第一方面至第三方面的任一种可能的设计中的方法。In a ninth aspect, the present application provides a computer program product. When a computer reads and executes the computer program product, the computer is made to execute the method in any possible design of the above first aspect to the third aspect.
第十方面,本申请提供一种芯片,所述芯片包括处理器,所述处理器与存储器耦合,用于读取并执行所述存储器中存储的软件程序,以实现上述第一方面至第三方面的任一种可能的设计中的方法。In a tenth aspect, the present application provides a chip, the chip includes a processor, the processor is coupled with a memory, and is used to read and execute a software program stored in the memory, so as to realize the first to third aspects above. Aspects of any one of the possible design methods.
结合以上各方面,在一种可能的设计中,速率计费信息还包含方式信息,以使速率计费信息采集实体可以更加灵活地采用速率计算方式,且使计费处理实体可以准确获知其所采用的速率计算方式。Combining the above aspects, in a possible design, the rate charging information also includes mode information, so that the rate charging information collection entity can adopt the rate calculation method more flexibly, and the charging processing entity can accurately know the The rate calculation method used.
本申请的这些方面或其它方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.
附图说明Description of drawings
图1为本申请实施例提供的一种网络架构示意图;FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图2为本申请实施例提供的又一种网络架构示意图;FIG. 2 is a schematic diagram of another network architecture provided by an embodiment of the present application;
图3为本申请实施例提供的SMF实体与CHF实体之间的通信示意图;FIG. 3 is a schematic diagram of communication between an SMF entity and a CHF entity provided in an embodiment of the present application;
图4为本申请实施例提供的三种场景中的数据传输速率特征示意图;FIG. 4 is a schematic diagram of data transmission rate characteristics in three scenarios provided by the embodiment of the present application;
图5A至图5E为本申请实施例适用的网络架构示意图;5A to 5E are schematic diagrams of network architectures applicable to embodiments of the present application;
图6为本申请实施例一提供的计费方法所对应的流程示意图;FIG. 6 is a schematic flowchart corresponding to the billing method provided in Embodiment 1 of the present application;
图7A为本申请实施例提供的生成速率计费信息一种示意图;FIG. 7A is a schematic diagram of generating rate charging information provided by an embodiment of the present application;
图7B为本申请实施例提供的生成速率计费信息又一种示意图;FIG. 7B is another schematic diagram of generating rate charging information provided by the embodiment of the present application;
图8为本申请实施例二提供的计费方法所对应的流程示意图;FIG. 8 is a schematic flowchart corresponding to the billing method provided in Embodiment 2 of the present application;
图9为本申请实施例三提供的计费方法所对应的流程示意图;FIG. 9 is a schematic flowchart corresponding to the billing method provided in Embodiment 3 of the present application;
图10为本申请实施例四提供的计费方法所对应的流程示意图;FIG. 10 is a schematic flowchart corresponding to the billing method provided in Embodiment 4 of the present application;
图11为本申请实施例五提供的计费方法所对应的流程示意图;FIG. 11 is a schematic flowchart corresponding to the charging method provided in Embodiment 5 of the present application;
图12为本申请实施例中所涉及的装置的可能的示例性框图;Fig. 12 is a possible exemplary block diagram of the device involved in the embodiment of the present application;
图13为本申请实施例中所涉及的装置的可能的结构示意图。FIG. 13 is a schematic diagram of a possible structure of the device involved in the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
图1为本申请实施例提供的一种网络架构示意图,以该网络架构为基于服务化接口的5G通信系统的网络架构为例。如图1所示,用户设备可接入到无线网络,以通过无线网络获取外网(例如数据网络(data network,DN))的服务,或者通过无线网络与其它设备通信。该无线网络也可以称为运营商网络,该无线网络可以包括(无线)接入网((radio)access network,(R)AN)和核心网(core network,CN),其中,(R)AN(后文统一描述为RAN)用于将用户设备接入到无线网络,CN用于对用户设备进行管理并提供与DN通信的网关。FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application, taking the network architecture of a 5G communication system based on a service interface as an example. As shown in FIG. 1, the user equipment can be connected to a wireless network, so as to obtain services of an external network (such as a data network (DN)) through the wireless network, or communicate with other devices through the wireless network. The wireless network may also be referred to as an operator network, and the wireless network may include a (wireless) access network ((radio) access network, (R)AN) and a core network (core network, CN), wherein the (R)AN (hereinafter collectively described as RAN) is used to connect the user equipment to the wireless network, and the CN is used to manage the user equipment and provide a gateway for communicating with the DN.
下面分别对用户设备、RAN、CN、DN进行详细说明。The user equipment, RAN, CN, and DN will be described in detail below.
(1)用户设备(1) User equipment
用户设备(user device)为终端用户的设备;该设备可以具有无线通信能力,以通过空中接口与无线接入设备相连,也可以具有有线通信能力,以通过有线接口与有线接入设备相连;从产品形态上看,该设备可以是智能手机、带有无线通信功能的膝上电脑(Laptop)、平板电脑、可穿戴设备、增强现实(augmented reality,AR)设备、万物互联(internet of things,IoT)设备、办公桌面的台式机等;该设备可以通过数据连接会话消费数据网络中的应用服务器提供的应用服务。A user device (user device) is a terminal user's device; the device may have a wireless communication capability to be connected to a wireless access device through an air interface, or may have a wired communication capability to be connected to a wired access device through a wired interface; from In terms of product form, the device can be a smartphone, a laptop with wireless communication function (Laptop), a tablet, a wearable device, an augmented reality (augmented reality, AR) device, an Internet of things (IoT) ) device, a desktop computer on an office desktop, etc.; the device can consume application services provided by an application server in a data network through a data connection session.
用户设备可以包含第三代合作伙伴项目(the 3rd generation partnership project,3GPP)标准规范定义的用户设备(user equipment,UE)的功能。The user equipment may include user equipment (user equipment, UE) functions defined by the 3rd generation partnership project (the 3rd generation partnership project, 3GPP) standard specification.
(2)RAN(2)RAN
RAN中可以包括一个或多个接入网设备,接入网设备与终端设备之间的接口可以为Uu接口(或称为空口)。接入网设备即为将终端设备接入到无线网络的节点或设备。接入网设备例如包括但不限于:5G通信系统中的新一代基站(generation node B,gNB)、演进型节点B(evolved node B,eNB)、下一代演进型节点B(next generation eNB,ng-eNB)、家庭基站((home evolved nodeB,HeNB)或(home node B,HNB))等。The RAN may include one or more access network devices, and the interface between the access network device and the terminal device may be a Uu interface (or called an air interface). An access network device is a node or device that connects a terminal device to a wireless network. Access network equipment includes, but is not limited to, a new generation base station (generation node B, gNB), an evolved node B (evolved node B, eNB), a next generation evolved node B (next generation eNB, ng -eNB), home base station ((home evolved nodeB, HeNB) or (home node B, HNB)), etc.
(3)CN(3) CN
CN中可以包括一个或多个核心网网元或者说核心网实体,比如CN中可以包括策略控制功能(policy control function,PCF)实体、统一数据管理(unified data management,UDM)实体、统一数据库(unified data repository,UDR)、接入与移动性管理功能(access  and mobility management function,AMF)实体、会话管理功能(session management function,SMF)实体以及用户面功能(user plane function,UPF)实体等。The CN may include one or more core network elements or core network entities, for example, the CN may include a policy control function (policy control function, PCF) entity, a unified data management (unified data management, UDM) entity, a unified database ( unified data repository, UDR), access and mobility management function (access and mobility management function, AMF) entity, session management function (session management function, SMF) entity and user plane function (user plane function, UPF) entity, etc.
其中,AMF实体是由运营商网络提供的控制面实体,负责终端设备接入运营商网络的接入控制和移动性管理,例如包括用户位置更新、用户注册网络、用户切换等。Among them, the AMF entity is a control plane entity provided by the operator's network, responsible for access control and mobility management of terminal equipment accessing the operator's network, such as including user location update, user registration network, user switching, etc.
UPF实体是运营商网络与DN通信的网关。UPF实体包括数据包路由和传输、包检测、服务质量(quality of service,QoS)处理、合法监听、上行包检测、下行数据包存储等用户面相关的功能。The UPF entity is the gateway for communication between the carrier network and the DN. The UPF entity includes functions related to the user plane such as data packet routing and transmission, packet detection, quality of service (QoS) processing, lawful interception, uplink packet detection, and downlink data packet storage.
SMF实体负责移动网络中的会话管理(如会话建立、修改、释放)、互联网协议(internet protocol,IP)地址分配和管理、UPF实体的选择和控制、业务和会话连续性(service and session continuity,SSC)模式选择、漫游等会话相关的功能。The SMF entity is responsible for session management in the mobile network (such as session establishment, modification, release), Internet protocol (internet protocol, IP) address allocation and management, selection and control of UPF entities, service and session continuity (service and session continuity, SSC) mode selection, roaming and other session-related functions.
PCF实体负责生成一些策略,比如UE接入策略、QoS流控制策略以及与计费相关的策略。The PCF entity is responsible for generating some policies, such as UE access policies, QoS flow control policies, and policies related to charging.
UDM实体负责存储运营商网络中签约用户的用户永久标识符(subscriber permanent identifier,SUPI)、签约数据等信息。The UDM entity is responsible for storing information such as the subscriber permanent identifier (SUPI) and subscription data of subscribers in the operator's network.
UDR提供签约数据、策略数据及能力开放相关数据的存储能力。UDR provides storage capabilities for contract data, policy data, and capability opening-related data.
本申请实施例中,CN所包括的各个核心网实体的定义和功能可以参照3GPP标准规范。In the embodiment of the present application, the definitions and functions of each core network entity included in the CN may refer to the 3GPP standard specifications.
(4)DN(4)DN
DN也可以称为分组数据网络(packet data network,PDN),是位于运营商网络之外的网络。DN在5G通信网络中由数据网络名称(data network name,DNN)进行标识。典型的DN可以包括Internet、IP多媒体业务(IP multi-media service,IMS)网络等。The DN may also be called a packet data network (PDN), which is a network outside the operator's network. The DN is identified by the data network name (DNN) in the 5G communication network. A typical DN may include the Internet, an IP multimedia service (IP multi-media service, IMS) network, and the like.
此外,尽管未示出,上述网络架构中还可以包括其它可能的实体,比如网络数据分析功能(network data analytics function,NWDAF)实体,NWDAF实体是一个数据感知分析实体,以网络数据为基础对网络进行自动感知和分析,并参与到网络规划、建设、运维、网优、运营全生命周期中,使得网络易于维护和控制,提高网络资源使用效率。In addition, although not shown, the above network architecture may also include other possible entities, such as a network data analysis function (network data analytics function, NWDAF) entity. The NWDAF entity is a data-aware analysis entity that analyzes network data based on network data Carry out automatic perception and analysis, and participate in the whole life cycle of network planning, construction, operation and maintenance, network optimization, and operation, making the network easy to maintain and control, and improving the efficiency of network resource usage.
可以理解地,本申请实施例中的网络架构(比如图1所示意的网络架构,以及下文中的图2所示意的网络架构)中,各个实体之间连线附近的字母和数字表示各个实体之间的通信接口的名称,这些通信接口的含义可参见相关标准协议中定义的含义。各个实体之间的通信接口还可以具有其他名称,具体不做限定。It can be understood that in the network architecture in the embodiment of the present application (such as the network architecture shown in FIG. 1 and the network architecture shown in FIG. 2 below), the letters and numbers near the lines between the entities represent the entities The names of the communication interfaces between, the meaning of these communication interfaces can refer to the meaning defined in the relevant standard protocols. The communication interface between various entities may also have other names, which are not specifically limited.
图2为本申请实施例提供的又一种网络架构示意图,以该网络架构为融合计费的网络架构为例。如图2所示,该网络架构可以包括3GPP标准规范定义的计费触发功能(charging trigger function,CTF)实体和3GPP标准规范定义的计费功能(charging function,CHF)实体。其中,CTF实体可以集成在图1所示意的SMF实体中,作为SMF实体的一部分。CHF实体可以执行融合计费,融合计费可以包括在线计费和离线计费。FIG. 2 is a schematic diagram of another network architecture provided by the embodiment of the present application, taking the network architecture of converged charging as an example. As shown in FIG. 2, the network architecture may include a charging trigger function (charging trigger function, CTF) entity defined in 3GPP standard specifications and a charging function (charging function, CHF) entity defined in 3GPP standard specifications. Wherein, the CTF entity may be integrated in the SMF entity shown in FIG. 1 as a part of the SMF entity. The CHF entity can perform converged charging, and converged charging can include online charging and offline charging.
可选地,上述网络架构还可以包括账单域(billing domain)或者说账单实体,账单实体和CHF实体之间可以通过计费网关功能(charging gateway function,CGF)实体进行通信。CGF实体可以集成在账单实体中,作为账单实体的一部分,或者也可以作为独立实体存在,具体不做限定。图2中是以CGF实体作为独立实体为例进行示意的。Optionally, the foregoing network architecture may further include a billing domain (billing domain) or a billing entity, and the billing entity and the CHF entity may communicate through a charging gateway function (charging gateway function, CGF) entity. The CGF entity may be integrated in the billing entity, as a part of the billing entity, or may exist as an independent entity, which is not specifically limited. In FIG. 2, the CGF entity is taken as an independent entity for illustration.
其中,SMF实体(或CTF实体)可以通过服务化接口与CHF实体进行通信。下面结合图3对SMF实体与CHF实体之间一些可能的通信进行描述。Wherein, the SMF entity (or CTF entity) can communicate with the CHF entity through the service interface. Some possible communications between the SMF entity and the CHF entity are described below in conjunction with FIG. 3 .
图3为SMF实体与CHF实体之间的通信示意图,如图3所示,包括:Figure 3 is a schematic diagram of communication between the SMF entity and the CHF entity, as shown in Figure 3, including:
S301,SMF实体接收到用户设备的会话建立请求消息,会话建立请求消息用于请求为用户设备建立数据连接会话。S301. The SMF entity receives a session establishment request message from a user equipment, where the session establishment request message is used to request establishment of a data connection session for the user equipment.
此处,数据连接会话为用户设备与数据网络之间的一种联结(association),用于为用户设备与数据网络之间的通信提供连接服务,使通信数据包(packet)可以在用户设备和数据网络之间来回传输;其创建过程可以由用户设备发起,其拆除过程可以由用户设备发起,也可以由其他设备发起。数据连接会话可以是适用于5G通信系统的协议数据单元(protocol data unit,PDU)会话,也可以是适用于其它网络的其它会话,比如适用于4G通信系统的IP连接接入网络会话(IP-connectivity access network,IP-CAN session),本申请实施例在此不做限定。本申请实施例中,将以数据连接会话为PDU会话为例进行描述,PDU会话可以用于传输用户设备的业务数据流。Here, the data connection session is an association between the user equipment and the data network, and is used to provide connection services for communication between the user equipment and the data network, so that communication data packets (packets) can be transmitted between the user equipment and the data network. Data networks are transmitted back and forth; the creation process can be initiated by the user equipment, and the teardown process can be initiated by the user equipment or other equipment. The data connection session may be a protocol data unit (protocol data unit, PDU) session applicable to the 5G communication system, or other sessions applicable to other networks, such as an IP connection access network session (IP- connectivity access network, IP-CAN session), the embodiment of this application is not limited here. In this embodiment of the present application, the description will be made by taking the data connection session as an example of a PDU session, and the PDU session may be used to transmit service data streams of the user equipment.
S302,SMF实体向CHF实体发送计费请求消息1,计费请求消息1可以包括用户设备的标识、PDU会话的标识等。S302, the SMF entity sends a charging request message 1 to the CHF entity, where the charging request message 1 may include the identification of the user equipment, the identification of the PDU session, and the like.
此处,计费请求消息1可以为初始计费数据请求消息或者说计费资源创建请求消息。计费请求消息1用于请求CHF实体为PDU会话创建对应的计费资源,计费资源用于对PDU会话中的数据连接业务的配额的申请和使用量的上报进行管理,比如SMF实体可以通过计费资源的管理请求消息(如计费资源更新请求消息)向CHF实体申请数据连接业务的配额,以及上报数据连接业务的使用量,使用量包括时长或流量。其中,数据连接业务可以理解为用户设备的数据连接会话中的业务数据流(service data flow,SDF)的集合。Here, the charging request message 1 may be an initial charging data request message or a charging resource creation request message. Charging request message 1 is used to request the CHF entity to create a corresponding charging resource for the PDU session. The charging resource is used to manage the application for the quota of the data connection service in the PDU session and the reporting of the usage. For example, the SMF entity can pass The charging resource management request message (such as the charging resource update request message) applies to the CHF entity for the quota of the data connection service, and reports the usage amount of the data connection service, and the usage amount includes duration or traffic. Wherein, the data connection service can be understood as a collection of service data flows (service data flow, SDF) in the data connection session of the user equipment.
用户设备的标识可以为国际移动用户识别码(international mobile subscriber identification number,IMSI)或用户互联网协议第6版(internet protocol version 6,IPv6)地址等。The identifier of the user equipment may be an international mobile subscriber identification number (IMSI) or a user Internet protocol version 6 (internet protocol version 6, IPv6) address, etc.
S303,CHF实体接收计费请求消息1,并向SMF实体发送计费响应消息1,计费响应消息1可以包括计费资源标识,计费资源标识用于标识CHF实体为PDU会话创建的计费资源。S303, the CHF entity receives the charging request message 1, and sends a charging response message 1 to the SMF entity, the charging response message 1 may include a charging resource identifier, and the charging resource identifier is used to identify the charging created by the CHF entity for the PDU session resource.
此处,计费响应消息1可以为初始计费数据响应消息或者说计费资源创建响应消息。Here, the charging response message 1 may be an initial charging data response message or a charging resource creation response message.
S304,在用户设备使用数据连接会话进行数据传输过程中,SMF实体若确定满足触发条件(比如,此前获得的配额即将用完、到达某个费率切换时间点、用户设备从一个接入网设备切换到另一个接入网设备等),则可以向CHF实体发送计费请求消息2,计费请求消息2包括计费资源标识和用户设备针对数据连接业务的使用量的有关信息。S304. During the data transmission process of the user equipment using the data connection session, if the SMF entity determines that the trigger condition is met (for example, the previously obtained quota is about to be exhausted, a certain rate switching time point is reached, the user equipment transfers from an access network device Switching to another access network device, etc.), the charging request message 2 may be sent to the CHF entity, and the charging request message 2 includes the charging resource identifier and the related information of the usage amount of the user equipment for the data connection service.
此处,计费请求消息2可以为更新计费数据请求消息或者说计费资源更新请求消息。Here, the charging request message 2 may be a charging data update request message or a charging resource update request message.
S305,CHF实体接收计费请求消息2,并基于用户设备针对数据连接业务的使用量对用户设备进行计费处理,以及向SMF实体发送计费响应消息2。S305, the CHF entity receives the charging request message 2, performs charging processing on the user equipment based on the usage amount of the data connection service by the user equipment, and sends a charging response message 2 to the SMF entity.
此处,计费响应消息2可以为更新计费数据响应消息或者说计费资源更新响应消息。Here, the charging response message 2 may be a charging data update response message or a charging resource update response message.
S306,在用户设备的PDU会话被释放后,SMF实体可以向CHF实体发送计费请求消息3,计费请求消息3用于请求CHF实体终止对PDU会话中的数据连接业务进行计费处理。可选地,计费请求消息3中包含PDU会话被释放前用户设备针对数据连接业务的使用量的有关信息。S306, after the PDU session of the user equipment is released, the SMF entity may send a charging request message 3 to the CHF entity, where the charging request message 3 is used to request the CHF entity to terminate charging processing for the data connection service in the PDU session. Optionally, the charging request message 3 includes information about the usage of the data connection service by the user equipment before the PDU session is released.
此处,计费请求消息2可以为终止计费数据请求消息或者说计费资源释放请求消息。Here, the charging request message 2 may be a charging data termination request message or a charging resource release request message.
S307,CHF实体接收计费请求消息3,终止对PDU会话中的数据连接业务进行计费 处理,并向SMF实体发送计费响应消息3。如果计费请求消息3包含用户设备针对数据连接业务的使用量的有关信息,则CHF实体还基于该使用量对用户设备进行计费处理。S307, the CHF entity receives the charging request message 3, terminates the charging process for the data connection service in the PDU session, and sends the charging response message 3 to the SMF entity. If the charging request message 3 contains information about the usage of the data connection service by the user equipment, the CHF entity also performs charging processing on the user equipment based on the usage.
此处,计费响应消息3可以为终止计费数据响应消息或者说计费资源释放响应消息。Here, the charging response message 3 may be a charging data termination response message or a charging resource release response message.
可以理解地,在用户设备使用数据连接会话进行数据传输过程中,SMF实体可能会向CHF实体发送多次更新计费数据请求消息(比如SMF实体确定满足触发条件则发送一次更新计费数据请求消息),相应地,CHF实体也可能会向SMF实体发送多次更新计费数据响应消息。It can be understood that during the data transmission process of the user equipment using the data connection session, the SMF entity may send multiple update charging data request messages to the CHF entity (for example, if the SMF entity determines that the trigger condition is met, the SMF entity sends an update charging data request message once). ), correspondingly, the CHF entity may also send multiple update charging data response messages to the SMF entity.
结合图1和图2所示意的网络架构来看,目前SMF实体可以获取用户设备的数据连接业务的使用量(比如流量),并上报给CHF实体,进而CHF实体基于流量对用户设备进行计费处理。Combining the network architecture shown in Figure 1 and Figure 2, the current SMF entity can obtain the usage volume (such as traffic) of the data connection service of the user equipment, and report it to the CHF entity, and then the CHF entity charges the user equipment based on the traffic deal with.
由于5G通信系统可以为多种应用提供通信服务,不同应用可能会有明显不同的数据传输速率特征。比如,参见图4,示意出了三种场景中的数据传输速率特征。如图4所示,场景1(比如不带弹幕的电影回放)中,在一些短时间段内,数据传输速率很高,而在多个长时间段内,数据传输速率为0;场景2(比如带弹幕的电影回放)中,在一些短时间段内,数据传输速率很高,而在多个长时间段内,数据传输速率很低;场景3(比如视频直播)中,数据传输速率在一开始较高,后续降低后,较为稳定。然而,上述按照流量进行计费的方式,并未考虑用户设备的数据传输速率。Since the 5G communication system can provide communication services for a variety of applications, different applications may have significantly different data transmission rate characteristics. For example, referring to FIG. 4 , the data transmission rate characteristics in three scenarios are schematically shown. As shown in Figure 4, in Scenario 1 (such as movie playback without barrage), the data transmission rate is high in some short periods of time, but in many long periods of time, the data transmission rate is 0; Scenario 2 (such as movie playback with barrage), in some short periods of time, the data transmission rate is very high, but in multiple long periods of time, the data transmission rate is very low; in scene 3 (such as live video broadcasting), the data transmission rate The rate is high at the beginning, and after a subsequent decrease, it is more stable. However, the above-mentioned manner of charging according to the flow rate does not consider the data transmission rate of the user equipment.
为实现基于数据传输速率对用户设备进行计费处理,一种可能的方式为,为用户设备的数据连接业务设置一个或多个速率阈值,当数据连接业务的数据传输速率跨过某一速率阈值时,便向计费处理实体上报实时数据传输速率以及使用量,进而计费处理实体可以根据实时数据传输速率和使用量对用户设备进行计费处理。然而,由于数据连接业务的数据传输速率是动态变化的,因此可能会导致数据传输速率频繁跨过速率阈值,进而需要频繁上报实时数据传输速率以及使用量,相应地,计费处理实体需要频繁进行计费处理,从而使得传输资源的开销较大,计费处理实体的处理负担较重。In order to implement charging processing for user equipment based on the data transmission rate, one possible way is to set one or more rate thresholds for the data connection service of the user equipment, when the data transmission rate of the data connection service exceeds a certain rate threshold , the real-time data transmission rate and usage amount are reported to the charging processing entity, and then the charging processing entity can perform charging processing on the user equipment according to the real-time data transmission rate and usage amount. However, since the data transmission rate of the data connection service is dynamically changed, it may cause the data transmission rate to frequently cross the rate threshold, and then need to frequently report the real-time data transmission rate and usage. Accordingly, the charging processing entity needs to frequently perform Accounting processing, so that the overhead of transmission resources is relatively large, and the processing burden of the charging processing entity is relatively heavy.
基于此,本申请实施例提供一种计费方法,在该方法中,计费策略实体可以为用户设备的数据连接业务生成相应的速率计费策略,并向速率计费信息采集实体发送速率计费策略,使得速率计费信息采集实体可以根据速率计费策略生成数据连接业务的至少一条速率计费信息,进而计费处理实体可以基于至少一条速率计费信息对用户设备进行计费处理。相比于按流量进行计费的方式来说,由于本申请实施例中的每条速率计费信息可以包括数据传输速率区间的信息和对应的使用信息,从而能够实现基于数据传输速率对用户设备进行计费处理(即能够实现对用户设备进行“速率计费”)。此外,本申请实施例中速率计费信息采集实体可以根据速率计费策略,按多个数据传输速率区间对使用量进行汇总,比如当数据连接业务的数据传输速率在不同数据传输速率区间上变化时,速率计费信息采集实体可以统计不同数据传输速率区间对应的使用量,无需因数据传输速率在不同数据传输速率区间上变化而频繁向计费处理实体上报,从而能够有效节省传输资源,降低计费处理实体的处理负担。Based on this, an embodiment of the present application provides a charging method. In this method, the charging policy entity can generate a corresponding rate charging policy for the data connection service of the user equipment, and send the rate meter to the rate charging information collection entity. A charging policy, so that the rate charging information collection entity can generate at least one piece of rate charging information for the data connection service according to the rate charging policy, and then the charging processing entity can perform charging processing on the user equipment based on the at least one piece of rate charging information. Compared with the method of billing by flow rate, since each piece of rate billing information in the embodiment of the present application can include the information of the data transmission rate range and the corresponding usage information, it is possible to realize the charging of the user equipment based on the data transmission rate. Perform charging processing (that is, "rate charging" for the user equipment can be implemented). In addition, in the embodiment of the present application, the rate charging information collection entity can summarize the usage amount according to multiple data transmission rate intervals according to the rate charging policy, for example, when the data transmission rate of the data connection service changes in different data transmission rate intervals When the rate charging information collection entity can count the usage corresponding to different data transmission rate intervals, it does not need to report to the billing processing entity frequently because the data transmission rate changes in different data transmission rate intervals, thus effectively saving transmission resources and reducing The processing burden of the billing processing entity.
可以理解地:数据传输速率的单位可以为比特率或比特/秒(bits per second,bps),为便于描述,本申请实施例中有时也将数据传输速率简称为速率;在有些场合速率也称为带宽。进一步地,数据传输速率可以指上行数据传输速率,或者也可以是指下行数据传输速 率,又或者也可以是指上下行的总数据传输速率(即单位时间内的上行数据流量和下行数据流量之和)。速率计费是指按不同数据传输速率区间进行计费,不同数据传输速率区间对应的费率可以不同,或者说,不同的数据传输速率区间可以有不同的费率档位。比如,数据传输速率区间(0,5Mbps]对应的费率为:每兆流量的费用为0.5元,称为“0.5元/兆档位的数据传输速率区间”;数据传输速率区间(5Mbps,10Mbps]对应的费率为:每兆流量的费用为0.8元,称为“0.8元/兆档位的数据传输速率区间”;数据传输速率区间(10Mbps,∝)对应的费率为:每兆流量的费用为1元,称为“1元/兆档位的数据传输速率区间”。Understandably: the unit of the data transmission rate can be bit rate or bit/second (bits per second, bps), for the convenience of description, sometimes the data transmission rate is also referred to simply as the rate in the embodiment of the present application; In some occasions, the rate is also called for the bandwidth. Further, the data transmission rate may refer to the uplink data transmission rate, or may also refer to the downlink data transmission rate, or may also refer to the total data transmission rate of the uplink and downlink (that is, the difference between the uplink data flow and the downlink data flow per unit time). and). Rate billing refers to charging according to different data transmission rate ranges, and the rates corresponding to different data transmission rate ranges may be different, or in other words, different data transmission rate ranges may have different rate gears. For example, the rate corresponding to the data transmission rate interval (0,5Mbps] is: the fee per megabyte of traffic is 0.5 yuan, which is called "the data transmission rate interval of 0.5 yuan/megabyte"; the data transmission rate interval (5Mbps, 10Mbps ] The corresponding rate rate is: the cost per megabyte of traffic is 0.8 yuan, which is called "0.8 yuan/megabit data transmission rate range"; the corresponding rate rate for the data transmission rate range (10Mbps, ∝) is: per megabyte of traffic The fee is 1 yuan, which is called "the data transmission rate interval of 1 yuan/megabyte".
图5A为本申请实施例适用的一种网络架构示意图。如图5A所示,该网络架构可以包括计费策略实体、计费处理实体和速率计费信息采集实体,可选地,还可以包括计费触发实体。FIG. 5A is a schematic diagram of a network architecture applicable to this embodiment of the present application. As shown in FIG. 5A , the network architecture may include a charging policy entity, a charging processing entity, and a rate charging information collection entity, and optionally, may also include a charging triggering entity.
上述各个实体之间可以相互通信。比如,计费策略实体可以生成数据连接业务的速率计费策略,并将速率计费策略发送给速率计费信息采集实体。速率计费策略用于指示速率计费信息采集实体生成数据连接业务的至少一条速率计费信息,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息,该数据传输速率区间为速率计费信息采集实体获取的多个数据传输速率区间之一,该使用信息包含当数据连接业务的数据传输速率在该数据传输速率区间内时针对数据连接业务累积的使用量。速率计费信息采集实体可以根据速率计费策略生成数据连接业务的至少一条速率计费信息,以及还可以将至少一条速率计费信息发送给计费处理实体。计费处理实体可以基于速率计费信息采集实体发送的至少一条速率计费信息对用户设备进行计费处理。计费触发实体可以触发计费处理实体对用户设备进行计费处理,比如计费触发实体可以向计费处理实体发送其它可能的计费信息(区别于速率计费信息),进而计费处理实体可以对用户设备进行计费处理。The above entities can communicate with each other. For example, the charging policy entity may generate a rate charging policy for the data connection service, and send the rate charging policy to the rate charging information collection entity. The rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service. Each piece of rate charging information includes information on the data transmission rate range and corresponding usage information. The data transmission rate range is One of the multiple data transmission rate intervals obtained by the rate charging information collection entity, the usage information includes the accumulated usage for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval. The rate charging information collection entity can generate at least one piece of rate charging information of the data connection service according to the rate charging policy, and can also send at least one piece of rate charging information to the charging processing entity. The charging processing entity may perform charging processing on the user equipment based on at least one piece of rate charging information sent by the rate charging information collection entity. The charging triggering entity can trigger the charging processing entity to perform charging processing on the user equipment. For example, the charging triggering entity can send other possible charging information (different from rate charging information) to the charging processing entity, and then the charging processing entity Charging processing can be performed on the user equipment.
可以理解地,图5A所示意的各个实体可以分别作为独立实体部署,或者也可以多个实体集成或部署为一个实体(即由一个实体来实现多个实体的功能),下面结合实现方式1至实现方式6描述几种可能的情形。Understandably, each entity shown in FIG. 5A can be deployed as an independent entity, or multiple entities can be integrated or deployed as one entity (that is, one entity implements the functions of multiple entities). Implementation 6 describes several possible scenarios.
实现方式1,参见图5B所示,计费策略实体和计费处理实体的功能可以通过CHF实体来实现,速率计费信息采集实体和计费触发实体的功能可以通过SMF实体来实现。 Implementation 1, as shown in FIG. 5B , the functions of the charging policy entity and the charging processing entity can be implemented by the CHF entity, and the functions of the rate charging information collection entity and the charging trigger entity can be implemented by the SMF entity.
实现方式2,参见图5C所示,计费策略实体和计费处理实体的功能可以通过CHF实体来实现,速率计费信息采集实体的功能可以通过NWDAF实体来实现,计费触发实体的功能可以通过SMF实体来实现。 Implementation mode 2, as shown in Figure 5C, the functions of the charging policy entity and the charging processing entity can be realized by the CHF entity, the function of the rate charging information collection entity can be realized by the NWDAF entity, and the function of the charging trigger entity can be realized by This is achieved through SMF entities.
实现方式3,参见图5D所示,计费策略实体的功能可以通过PCF实体来实现,计费处理实体的功能可以通过CHF实体来实现,速率计费信息采集实体和计费触发实体的功能可以通过SMF实体来实现。Implementation mode 3, as shown in Figure 5D, the function of the charging policy entity can be realized by the PCF entity, the function of the charging processing entity can be realized by the CHF entity, and the functions of the rate charging information collection entity and the charging trigger entity can be realized by This is achieved through SMF entities.
实现方式4,参见图5E所示,计费策略实体的功能可以通过PCF实体和CHF实体来实现,计费处理实体的功能可以通过CHF实体来实现,速率计费信息采集实体和计费触发实体的功能可以通过SMF实体来实现。Implementation mode 4, as shown in Figure 5E, the function of the charging policy entity can be realized by the PCF entity and the CHF entity, the function of the charging processing entity can be realized by the CHF entity, the rate charging information collection entity and the charging trigger entity The functions can be realized by SMF entities.
可以理解地:上述实现方式1至实现方式4仅为一些可能的部署示例,上述图5A所示意的网络架构还可以有其它可能的部署情形。比如,计费策略实体的功能通过PCF实体来实现,计费处理实体的功能通过CHF实体来实现,计费触发实体的功能通过SMF实体来实现,速率计费信息采集实体的功能通过NWDAF实体来实现。又比如,计费策略实体 的功能通过PCF实体和CHF实体来实现,计费处理实体的功能通过CHF实体来实现,计费触发实体的功能通过SMF实体来实现,速率计费信息采集实体的功能通过NWDAF实体来实现。It can be understood that: the above implementations 1 to 4 are only some possible deployment examples, and the network architecture shown in FIG. 5A may also have other possible deployment scenarios. For example, the function of the charging policy entity is implemented by the PCF entity, the function of the charging processing entity is implemented by the CHF entity, the function of the charging trigger entity is implemented by the SMF entity, and the function of the rate charging information collection entity is implemented by the NWDAF entity accomplish. For another example, the function of the charging policy entity is realized by the PCF entity and the CHF entity, the function of the charging processing entity is realized by the CHF entity, the function of the charging triggering entity is realized by the SMF entity, and the function of the rate charging information collection entity This is achieved through NWDAF entities.
本申请实施例中所述的实体(比如图1、图2、图5A至图5E中所述的实体)也可以称为功能实体或网元,例如图1中的SMF实体也可以称为SMF功能实体或SMF网元。上述实体既可以是硬件设备中的网络元件,也可以是在专用硬件上运行的软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。可选的,上述实体可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。The entities described in the embodiments of the present application (such as the entities described in FIG. 1, FIG. 2, and FIG. 5A to FIG. 5E) may also be referred to as functional entities or network elements, for example, the SMF entity in FIG. 1 may also be referred to as SMF Functional entity or SMF network element. The above-mentioned entities may be network elements in hardware devices, software functions running on dedicated hardware, or virtualization functions instantiated on a platform (for example, a cloud platform). Optionally, the foregoing entity may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
下面结合实施例一至实施例五对本申请实施例提供的计费方法进行描述。The charging method provided by the embodiment of the present application will be described below in conjunction with Embodiment 1 to Embodiment 5.
实施例一Embodiment one
在实施例一中,将基于图5A所示意的网络架构,描述本申请实施例提供的计费方法的一种可能的实现流程。In Embodiment 1, based on the network architecture shown in FIG. 5A , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
图6为本申请实施例一提供的计费方法所对应的流程示意图,如图6所示,该方法可以包括:Fig. 6 is a schematic flowchart corresponding to the billing method provided in Embodiment 1 of the present application. As shown in Fig. 6, the method may include:
S601,计费策略实体为用户设备的数据连接业务生成速率计费策略。S601. The charging policy entity generates a rate charging policy for the data connection service of the user equipment.
此处,速率计费策略用于指示速率计费信息采集实体生成数据连接业务的至少一条速率计费信息,每条速率计费信息包含数据速率区间的信息和对应的使用信息,该数据传输速率区间为速率计费信息采集实体获取的多个数据传输速率区间之一,该使用信息包含当数据连接业务的数据传输速率在该数据传输速率区间内时针对数据连接业务累积的使用量。因此,速率计费策略用于指示速率计费信息采集实体生成数据连接业务的至少一条速率计费信息,也可以理解为,速率计费策略用于指示速率计费信息采集实体按多个数据传输速率区间生成数据连接业务的至少一条速率计费信息。可以理解地,至少一条速率计费信息也可以替换为其它可能的描述,比如至少一项速率计费信息;速率计费策略也可以有其它可能的名称,比如还可以称为“速率计费信息采集策略”。Here, the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service, each piece of rate charging information includes information on the data rate interval and corresponding usage information, and the data transmission rate The interval is one of multiple data transmission rate intervals obtained by the rate charging information collection entity, and the usage information includes the accumulated usage for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval. Therefore, the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service. It can also be understood that the rate charging policy is used to instruct the rate charging information collection entity to transmit The rate interval generates at least one piece of rate charging information of the data connection service. It can be understood that the at least one piece of rate charging information can also be replaced with other possible descriptions, such as at least one piece of rate charging information; the rate charging policy can also have other possible names, for example, it can also be called "rate charging information acquisition strategy".
由此可以理解,速率计费策略对应数据连接业务,“为用户设备的数据连接业务生成速率计费策略”相当于“生成与用户设备的数据连接业务对应的速率计费策略”或“生成用户设备的数据连接业务的速率计费策略”。It can be understood from this that the rate charging policy corresponds to the data connection service, and "generating a rate charging policy for the data connection service of the user equipment" is equivalent to "generating a rate charging policy corresponding to the data connection service of the user equipment" or "generating a user equipment The rate charging policy of the data connection service of the device".
下面对速率计费策略包括的内容进行描述。The content included in the rate charging policy is described below.
作为一种可能的实现,速率计费策略可以包括以下至少一项:粒度信息、多个数据传输速率区间的信息、时间范围、时间单元、方式信息。下面分别对这几项进行详细介绍。As a possible implementation, the rate charging policy may include at least one of the following: granularity information, information of multiple data transmission rate intervals, time range, time unit, and mode information. These items are described in detail below.
(1)粒度信息(1) Granularity information
粒度信息用于指示速率计费策略对应的粒度,或者说,用于指示速率计费策略的作用范围。The granularity information is used to indicate the granularity corresponding to the rate charging policy, or in other words, to indicate the scope of the rate charging policy.
在一个示例中,粒度信息指示速率计费策略对应的粒度为数据连接会话,比如粒度信息可以包括数据连接会话的标识。此种情形下,数据连接业务可以包括用户设备的数据连接会话中的所有业务数据流,速率计费策略可以用于指示速率计费信息采集实体生成数据连接会话的至少一条速率计费信息,速率计费信息所包括的使用量可以是指数据连接会话中的所有业务数据流进行数据传输所产生的流量,或者数据连接会话中的所有业务数据流 进行数据传输的时长。此外,“速率计费策略对应的粒度为数据连接会话”,也可以描述为,“速率计费策略对应数据连接会话”,或者“速率计费策略的作用范围是数据连接会话中的所有业务数据流”。该速率计费策略也可以称为会话粒度的速率计费策略或者会话级的速率计费策略或者数据连接会话的速率计费策略。In an example, the granularity information indicates that the granularity corresponding to the rate charging policy is a data connection session. For example, the granularity information may include an identifier of the data connection session. In this case, the data connection service may include all service data flows in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection session, and the rate The usage amount included in the charging information may refer to the traffic generated by data transmission of all service data flows in the data connection session, or the duration of data transmission of all service data flows in the data connection session. In addition, "the granularity corresponding to the rate charging policy is the data connection session" can also be described as "the rate charging policy corresponds to the data connection session", or "the scope of the rate charging policy is all business data in the data connection session flow". The rate charging policy may also be called a session granular rate charging policy, a session-level rate charging policy, or a data connection session rate charging policy.
在又一个示例中,粒度信息指示速率计费策略对应的粒度为QoS流,比如粒度信息可以包括QoS流的标识(QoS flow identifier,QFI)。此种情形下,数据连接业务可以包括用户设备的数据连接会话中的一个QoS流对应的多个业务数据流,速率计费策略可以用于指示速率计费信息采集实体生成QoS流的至少一条速率计费信息,速率计费信息所包括的使用量可以是指数据连接会话中的一个QoS流对应的多个业务数据流进行数据传输所产生的流量,或者数据连接会话中的一个QoS流对应的多个业务数据流进行数据传输的时长。此外,“速率计费策略对应的粒度为QoS流”,也可以描述为“速率计费策略对应QoS流”,或者“速率计费策略的作用范围是数据连接会话中的一个QoS流对应的多个业务数据流”。该速率计费策略也可以称为QoS流粒度的速率计费策略或者QoS流级的速率计费策略或者QoS流的速率计费策略。In yet another example, the granularity information indicates that the granularity corresponding to the rate charging policy is a QoS flow, for example, the granularity information may include a QoS flow identifier (QoS flow identifier, QFI). In this case, the data connection service may include multiple service data flows corresponding to one QoS flow in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least one rate of the QoS flow Billing information, the usage included in the rate billing information can refer to the traffic generated by the data transmission of multiple service data flows corresponding to one QoS flow in the data connection session, or the traffic corresponding to one QoS flow in the data connection session The duration of data transmission for multiple business data streams. In addition, "the granularity corresponding to the rate charging policy is the QoS flow" can also be described as "the rate charging policy corresponds to the QoS flow", or "the scope of the rate charging policy is the multi-QoS flow corresponding to the data connection session". a business data stream". The rate charging policy may also be called a QoS flow granular rate charging policy, a QoS flow level rate charging policy, or a QoS flow rate charging policy.
在又一个示例中,粒度信息指示速率计费策略对应的粒度为费率组(rating group,RG),比如粒度信息可以包括费率组的标识,费率组用来聚合一个或多个具有相同费率的业务。此种情形下,数据连接业务可以包括用户设备的数据连接会话中的一个费率组对应的多个业务数据流,速率计费策略可以用于指示速率计费信息采集实体生成费率组的至少一条速率计费信息,速率计费信息所包括的使用量可以是指数据连接会话中的一个费率组对应的多个业务数据流进行数据传输所产生的流量,或者数据连接会话中的一个费率组对应的多个业务数据流进行数据传输的时长。此外,“速率计费策略对应的粒度为费率组”,也可以描述为“速率计费策略对应费率组”,或者“速率计费策略的作用范围是数据连接会话中的一个费率组对应的多个业务数据流”。该速率计费策略也可以称为费率组粒度的速率计费策略或者费率组级的速率计费策略或者费率组的速率计费策略。In yet another example, the granularity information indicates that the granularity corresponding to the rate charging policy is a rating group (Rating Group, RG). rate business. In this case, the data connection service may include multiple service data flows corresponding to one rate group in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least A piece of rate charging information. The usage included in the rate charging information can refer to the traffic generated by the data transmission of multiple service data streams corresponding to a rate group in a data connection session, or a rate group in a data connection session. The duration of data transmission for multiple service data streams corresponding to the rate group. In addition, "the granularity corresponding to the rate charging policy is the rate group", which can also be described as "the rate charging policy corresponds to the rate group", or "the scope of the rate charging policy is a rate group in the data connection session Corresponding multiple business data streams". The rate charging policy may also be called rate group granularity rate charging policy or rate group level rate charging policy or rate group rate charging policy.
在又一个示例中,粒度信息指示速率计费策略对应的粒度为业务数据流,比如粒度信息可以包括业务数据流的标识(service data flow ID)。此种情形下,数据连接业务可以包括用户设备的数据连接会话中的一个业务数据流,速率计费策略可以用于指示速率计费信息采集实体生成业务数据流的至少一条速率计费信息,速率计费信息所包括的使用量可以是指数据连接会话中的一个业务数据流进行数据传输所产生的流量,或者数据连接会话中的一个业务数据流进行数据传输的时长。此外,“速率计费策略对应的粒度为业务数据流”,也可以描述为“速率计费策略对应业务数据流”,或者“速率计费策略的作用范围是数据连接会话中的一个业务数据流”。该速率计费策略也可以称为业务粒度的速率计费策略或者业务级的速率计费策略或者业务的速率计费策略。In yet another example, the granularity information indicates that the granularity corresponding to the rate charging policy is a service data flow. For example, the granularity information may include a service data flow ID (service data flow ID). In this case, the data connection service may include a service data flow in the data connection session of the user equipment, and the rate charging policy may be used to instruct the rate charging information collection entity to generate at least one piece of rate charging information of the service data flow. The usage amount included in the charging information may refer to the traffic generated by data transmission of one service data flow in the data connection session, or the duration of data transmission of one service data flow in the data connection session. In addition, "the granularity corresponding to the rate charging policy is the service data flow" can also be described as "the rate charging policy corresponds to the service data flow", or "the scope of the rate charging policy is a service data flow in the data connection session ". The rate charging policy may also be called a service granular rate charging policy, a service-level rate charging policy, or a service rate charging policy.
可以理解地:速率计费策略可以通过携带粒度信息,来显式指示速率计费策略对应的粒度;或者,速率计费策略也可以不携带粒度信息,而是通过隐式的方式来指示速率计费策略对应的粒度,例如,可以将速率计费策略放在计费响应消息的不同层级位置,表示不同的粒度,具体可以参考本申请后续实施例,如实施例二中表1A、表1B、表2和表3对应的示例。It can be understood that the rate charging policy can explicitly indicate the granularity corresponding to the rate charging policy by carrying granularity information; or, the rate charging policy can also not carry granularity information, but indicate the rate meter The granularity corresponding to the charging policy, for example, the rate charging policy can be placed at different levels of the charging response message to represent different granularities. For details, refer to the subsequent embodiments of this application, such as Table 1A, Table 1B, and Table 1 in Embodiment 2. An example corresponding to Table 2 and Table 3.
(2)多个数据传输速率区间的信息(2) Information of multiple data transmission rate intervals
数据传输速率区间的信息用于指示数据传输速率区间,比如数据传输速率区间的信息 可以包括以下①、②和③中的至少一项:The information of the data transmission rate range is used to indicate the data transmission rate range, for example, the information of the data transmission rate range may include at least one of the following ①, ② and ③:
①数据传输速率区间的上限值和/或下限值。①The upper limit and/or lower limit of the data transmission rate range.
②数据传输速率区间的标识或名称,比如“速率区间1”、“速率区间2”等,又比如“速率区间A”、“速率区间B”等。②The identification or name of the data transmission rate range, such as "rate range 1", "rate range 2", etc., or "rate range A", "rate range B", etc.
③数据传输速率区间对应的费率或费率的标识,比如“1元/GB速率区间”、“2元/GB速率区间”、“3元/GB速率区间”等,又比如“费率1速率区间”、“费率2速率区间”、“费率3速率区间”等。③The rate or rate identification corresponding to the data transmission rate range, such as "1 yuan/GB rate range", "2 yuan/GB rate range", "3 yuan/GB rate range", etc., and for example "rate 1 rate range", "rate 2 rate range", "rate 3 rate range", etc.
本申请实施例中的一个数据传输速率区间可以是指一个数据传输速率范围,即数据传输速率区间的上限值和下限值不同,且下限值小于上限值。A data transmission rate interval in this embodiment of the present application may refer to a data transmission rate range, that is, the upper limit and the lower limit of the data transmission rate interval are different, and the lower limit is smaller than the upper limit.
举个例子,多个数据传输速率区间包括数据传输速率区间rng1、数据传输速率区间rng2和数据传输速率区间rng3,则多个数据传输速率区间的信息可以包括数据传输速率区间rng1的信息、数据传输速率区间rng2的信息和数据传输速率区间rng3的信息。数据传输速率区间rng1的信息可以包括数据传输速率区间rng1的下限值(比如0)和上限值(比如5Mbps),数据传输速率区间rng2的信息可以包括数据传输速率区间rng2的下限值(比如5Mbps)和上限值(比如10Mbps),数据传输速率区间rng3的信息可以包括数据传输速率区间rng3的下限值(比如10Mbps)和上限值(比如无穷大)。For example, multiple data transmission rate intervals include data transmission rate interval rng1, data transmission rate interval rng2 and data transmission rate interval rng3, then the information of multiple data transmission rate intervals may include the information of data transmission rate interval rng1, data transmission The information of the rate range rng2 and the information of the data transmission rate range rng3. The information of the data transmission rate interval rng1 may include a lower limit value (such as 0) and an upper limit value (such as 5 Mbps) of the data transmission rate interval rng1, and the information of the data transmission rate interval rng2 may include a lower limit value of the data transmission rate interval rng2 ( For example, 5Mbps) and an upper limit value (for example, 10Mbps), the information of the data transmission rate interval rng3 may include a lower limit value (for example, 10Mbps) and an upper limit value (for example, infinity) for the data transmission rate interval rng3.
如此,计费策略实体在确定不同的速率计费策略时,可以有不同的数据传输速率区间划分方式(即划分出多个数据传输速率区间的方式)。比如不同用户设备的速率计费策略的数据传输速率区间划分方式可以不同,又比如同一用户设备的不同PDU会话的速率计费策略的数据传输速率区间划分方式也可以不同,举个例子,PDU会话1的速率计费策略的数据传输速率区间包括如下三个区间:(0,5Mbps]、(5Mbps,10Mbps]、(10Mbps,∝),PDU会话2的速率计费策略的数据传输速率区间包括如下三个区间:(0,8Mbps]、(8Mbps,15Mbps]、(15Mbps,∝),又比如同一用户设备的不同业务的速率计费策略的数据传输速率区间划分方式也可以不同,从而使得确定出的速率计费策略较为灵活,能够有效满足不同场景的计费需求。In this way, when the charging policy entity determines different rate charging policies, it may have different data transmission rate interval division methods (that is, the manner of dividing into multiple data transmission rate intervals). For example, the division methods of data transmission rate intervals for rate charging policies of different user equipment can be different, and for example, the division methods of data transmission rate intervals of rate accounting policies for different PDU sessions of the same user equipment can also be different. For example, PDU session The data transmission rate interval of the rate billing policy of 1 includes the following three intervals: (0,5Mbps], (5Mbps,10Mbps], (10Mbps,∝), and the data transmission rate interval of the rate billing policy of PDU session 2 includes the following Three intervals: (0,8Mbps], (8Mbps,15Mbps], (15Mbps,∝). For example, the data transmission rate interval division method of the rate charging policy of different services of the same user equipment can also be different, so that the determined The rate billing policy is more flexible and can effectively meet the billing requirements of different scenarios.
关于数据传输速率区间,说明如下:Regarding the data transmission rate range, the description is as follows:
①以数据传输速率区间rng1为例,当某一数据传输速率大于数据传输速率区间rng1的下限值且小于或等于数据传输速率区间rng1的上限值时,该数据传输速率属于数据传输速率区间rng1;或者,当某一数据传输速率大于或等于数据传输速率区间rng1的下限值且小于数据传输速率区间rng1的上限值时,该数据传输速率属于数据传输速率区间rng1。① Taking the data transmission rate interval rng1 as an example, when a certain data transmission rate is greater than the lower limit value of the data transmission rate interval rng1 and less than or equal to the upper limit value of the data transmission rate interval rng1, the data transmission rate belongs to the data transmission rate interval rng1; or, when a certain data transmission rate is greater than or equal to the lower limit value of the data transmission rate range rng1 and less than the upper limit value of the data transmission rate range rng1, the data transmission rate belongs to the data transmission rate range rng1.
②在其它可能的示例中,数据传输速率区间rng1的信息可以包括数据传输速率区间rng1的上限值(比如5Mbps),而不包括数据传输速率区间rng1的下限值,此种情况下,数据传输速率区间rng1的下限值默认为0;数据传输速率区间rng3的信息可以包括数据传输速率区间rng3的下限值(比如10Mbps),而不包括数据传输速率区间rng3的上限值,此种情况下,数据传输速率区间rng3的上限值默认为无穷大。②In other possible examples, the information of the data transmission rate interval rng1 may include the upper limit value of the data transmission rate interval rng1 (such as 5Mbps), but not the lower limit value of the data transmission rate interval rng1. In this case, the data The lower limit value of the transmission rate range rng1 is 0 by default; the information of the data transmission rate range rng3 can include the lower limit value of the data transmission rate range rng3 (such as 10Mbps), but not the upper limit value of the data transmission rate range rng3. In some cases, the upper limit value of the data transmission rate range rng3 defaults to infinity.
③针对多个数据传输速率区间,本申请实施例对“多个”的具体取值不做限定,具体实施中,可以根据实际需要来设置数据传输速率区间的个数。数据传输速率区间的个数越多,则对使用量的统计越精细。③ For multiple data transmission rate intervals, the embodiment of the present application does not limit the specific value of "multiple". In specific implementation, the number of data transmission rate intervals can be set according to actual needs. The more the number of data transmission rate intervals, the finer the usage statistics will be.
可以理解,数据传输速率区间可以是全开区间(如“(downlimit,uplimit)”),或者也可以是全闭区间(如“[downlimit,uplimit]”),又或者也可以是半开半闭区间(如“(downlimit, uplimit]”或“[downlimit,uplimit)”)等,对此,本申请实施例不作限定。It can be understood that the data transmission rate interval can be a fully open interval (such as "(downlimit, uplimit)"), or it can also be a fully closed interval (such as "[downlimit, uplimit]"), or it can also be half open and half closed The interval (such as “(downlimit, uplimit]” or “[downlimit, uplimit)”), etc., is not limited in this embodiment of the present application.
(2)时间范围(2) Time frame
时间范围用于指示速率计费信息采集实体在该时间范围内生成数据连接业务的至少一条速率计费信息。The time range is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information of the data connection service within the time range.
时间范围可以包括开始时间和/或结束时间;或者,时间范围可以包括开始时间和持续时长;又或者,时间范围可以包括结束时间和持续时长。示例性地,开始时间或结束时间可以为协调世界时(coordinated universal time,UTC),比如开始时间为X年X月X日X时X分X秒,结束时间为Y年Y月Y日Y时Y分Y秒。The time range may include a start time and/or an end time; or, the time range may include a start time and a duration; or, the time range may include an end time and a duration. Exemplarily, the start time or the end time can be coordinated universal time (coordinated universal time, UTC), for example, the start time is X hour X minute X second on X year X month X day, and the end time is Y year Y month Y day Y hour Y minutes and Y seconds.
如此,当速率计费策略包括时间范围时,计费策略实体可以通过时间范围来灵活界定速率计费的时间。In this way, when the rate charging policy includes a time range, the charging policy entity can flexibly define the time of rate charging through the time range.
(3)时间单元(3) Time unit
时间单元用于指示速率计费信息采集实体每隔所述时间单元确定时间单元内数据连接业务的数据传输速率,以及还可以指示速率计费信息采集实体基于时间单元内数据连接业务的数据传输速率,将时间单元内的使用量累积到时间单元内数据连接业务的数据传输速率所在的数据传输速率区间对应的使用量中。上述速率计费信息采集实体每隔所述时间单元确定时间单元内数据连接业务的数据传输速率,可以是指,速率计费信息采集实体在每个时间单元的结束时刻确定该时间单元内数据连接业务的数据传输速率。The time unit is used to instruct the rate charging information collection entity to determine the data transmission rate of the data connection service in the time unit every said time unit, and may also indicate the rate charging information collection entity based on the data transmission rate of the data connection service in the time unit , accumulating the usage amount in the time unit to the usage amount corresponding to the data transmission rate interval in which the data transmission rate of the data connection service is located in the time unit. The above-mentioned rate charging information collection entity determines the data transmission rate of the data connection service in the time unit every time unit, which may mean that the rate charging information collection entity determines the data connection rate in the time unit at the end of each time unit. The data transfer rate of the business.
时间单元也可以称为基础时间(base time),或者基础计算时间段。在一个示例中,时间单元的时长可以为10秒(即10s)。The time unit can also be called the base time, or the basic computing time period. In an example, the duration of the time unit may be 10 seconds (ie 10s).
(4)方式信息(4) Method information
方式信息用于指示速率计算方式或速率计算方式,即确定或计算时间单元内数据连接业务的数据传输速率的方式,比如方式信息指示的方式可以为第一方式或第二方式;第一方式为基于时间单元的时长计算时间单元内数据连接业务的数据传输速率,采用第一方式计算得到的数据传输速率可以称为平均数据传输速率。第二方式为基于时间单元内产生流量的时长计算时间单元内数据连接业务的数据传输速率,采用第二方式计算得到数据传输速率可以称为真实数据传输速率。The method information is used to indicate the rate calculation method or rate calculation method, that is, the method of determining or calculating the data transmission rate of the data connection service within a time unit. For example, the method indicated by the method information can be the first method or the second method; the first method is The data transmission rate of the data connection service in the time unit is calculated based on the duration of the time unit, and the data transmission rate calculated by using the first method may be called an average data transmission rate. The second method is to calculate the data transmission rate of the data connection service in the time unit based on the duration of traffic generation in the time unit, and the data transmission rate calculated by using the second method may be called the real data transmission rate.
其中,方式信息指示第一方式或第二方式的指示方式可以有多种。比如,当方式信息包括第一方式的标识时,表示方式信息指示第一方式,当方式信息包括第二方式的标识时,表示方式信息指示第二方式。又比如,方式信息包括第一方式的标识以及对应的判断参数(比如真(TRUE))和第二方式的标识以及对应的判断参数(比如伪(FALSE)),此种情形表示方式信息指示第一方式;或者,方式信息包括第一方式的标识以及对应的判断参数(比如FALSE)和第二方式的标识以及对应的判断参数(比如TRUE),此种情形表示方式信息指示第二方式。第一方式(或第二方式)的标识可以为用于标识第一方式(或第二方式)的信息,具体不做限定。There may be multiple indication manners in which the manner information indicates the first manner or the second manner. For example, when the mode information includes the identifier of the first mode, the representation mode information indicates the first mode, and when the mode information includes the identifier of the second mode, the representation mode information indicates the second mode. For another example, the mode information includes the identifier of the first mode and the corresponding judgment parameters (such as true (TRUE)) and the logo of the second mode and the corresponding judgment parameters (such as false (FALSE)). A mode; or, the mode information includes the identifier of the first mode and the corresponding judgment parameter (such as FALSE) and the logo of the second mode and the corresponding judgment parameter (such as TRUE), which indicates that the mode information indicates the second mode. The identifier of the first manner (or the second manner) may be information for identifying the first manner (or the second manner), which is not specifically limited.
如此,当速率计费策略包括时间单元和/或方式信息时,计费策略实体可以基于不同场景的计费需求和系统的计算负担,动态调整时间单元的时长和计算速率的方式,具有较强的灵活性。比如,当时间单元的时长较短和/或计算速率的方式为第二方式时,速率计费信息采集实体的计算负担较大,而当时间单元的时长较长和/或计算速率的方式为第一方式时,速率计费信息采集实体的计算负担相对较小。In this way, when the rate charging policy includes time unit and/or mode information, the charging policy entity can dynamically adjust the duration of the time unit and the calculation rate based on the charging requirements of different scenarios and the computing burden of the system, which has a strong flexibility. For example, when the duration of the time unit is short and/or the method of calculating the rate is the second method, the calculation burden of the rate charging information collection entity is relatively large, and when the duration of the time unit is long and/or the method of calculating the rate is In the first mode, the calculation burden of the rate charging information collection entity is relatively small.
本申请实施例下文中,将以速率计费策略包括多个数据传输速率区间的信息、时间范 围、时间单元以及方式信息为例进行描述。可以理解地,当速率计费策略不包括多个数据传输速率区间的信息或时间范围或时间单元或方式信息时,多个数据传输速率区间或时间范围或时间单元或确定数据传输速率的方式可以是协议预先约定的,或者也可以是预先配置的,又或者也可以是缺省的。比如,以多个数据传输速率区间为例,多个数据传输速率区间可以事先由运维人员分别在速率计费信息采集实体、计费策略实体、计费处理实体等实体上配置,或者也可以由计费策略实体动态确定并发送给速率计费信息采集实体,例如,在发送给速率计费信息采集实体的速率计费策略中包含多个数据传输速率区间的信息。In the following embodiments of the present application, the rate charging policy includes information of multiple data transmission rate intervals, time range, time unit and mode information as an example for description. It can be understood that when the rate charging policy does not include information on multiple data transmission rate intervals or time range or time unit or method information, multiple data transmission rate intervals or time ranges or time units or methods for determining the data transmission rate may be It is pre-agreed by the protocol, or it may be pre-configured, or it may also be the default. For example, taking multiple data transmission rate intervals as an example, multiple data transmission rate intervals can be configured in advance by the operation and maintenance personnel on entities such as the rate charging information collection entity, charging policy entity, and charging processing entity, or they can also be It is dynamically determined by the charging policy entity and sent to the rate charging information collection entity. For example, the rate charging policy sent to the rate charging information collection entity includes information of multiple data transmission rate ranges.
计费策略实体确定数据连接业务的速率计费策略的方式可以多种,比如计费策略实体可以获取用户设备的签约信息,进而基于签约信息和预设规则确定数据连接业务的速率计费策略,预设规则可以预先配置在计费策略实体中,或者,也可以是由协议预先约定好的。本申请实施例对计费策略实体获取签约信息的方式不做限定。There are many ways for the charging policy entity to determine the rate charging policy of the data connection service. For example, the charging policy entity can obtain the subscription information of the user equipment, and then determine the rate charging policy of the data connection service based on the subscription information and preset rules. The preset rule can be pre-configured in the charging policy entity, or it can also be pre-agreed by the agreement. The embodiment of the present application does not limit the manner in which the charging policy entity obtains the subscription information.
S602,计费策略实体向速率计费信息采集实体发送数据连接业务的速率计费策略,相应地,速率计费信息采集实体接收数据连接业务的速率计费策略。S602. The charging policy entity sends the rate charging policy of the data connection service to the rate charging information collection entity, and correspondingly, the rate charging information collection entity receives the rate charging policy of the data connection service.
S603,速率计费信息采集实体根据速率计费策略,生成数据连接业务的至少一条速率计费信息。S603. The rate charging information collection entity generates at least one piece of rate charging information of the data connection service according to the rate charging policy.
如前文所述,每条速率计费信息包含数据速率区间的信息和对应的使用信息,该数据传输速率区间为速率计费信息采集实体获取的多个数据传输速率区间之一,该使用信息包含当数据连接业务的数据传输速率在该数据传输速率区间内时针对所述数据连接业务累积的使用量。其中,“数据传输速率在数据传输速率区间内”也可以描述为“数据传输速率位于数据传输速率区间”或者“数据传输速率落入数据传输速率区间内”。As mentioned above, each piece of rate charging information includes the information of the data rate interval and the corresponding usage information. The data transmission rate interval is one of the multiple data transmission rate intervals obtained by the rate charging information collection entity. The usage information includes The usage amount accumulated for the data connection service when the data transmission rate of the data connection service is within the data transmission rate range. Wherein, "the data transmission rate is within the data transmission rate range" may also be described as "the data transmission rate is within the data transmission rate range" or "the data transmission rate falls within the data transmission rate range".
其中,速率计费信息采集实体获取多个数据传输速率区间的方式可以有多种,比如,速率计费策略包括多个数据传输速率区间的信息,进而速率计费信息采集实体可以从速率计费策略获取多个数据传输速率区间;又比如,可以由运维人员在速率计费信息采集实体中预先配置多个数据传输速率区间;本申请实施例对速率计费信息采集实体获取多个数据传输速率区间的实现不做限定。Among them, the rate charging information collection entity can obtain multiple data transmission rate intervals in various ways. strategy to obtain multiple data transmission rate intervals; as another example, operation and maintenance personnel can pre-configure multiple data transmission rate intervals in the rate charging information collection entity; The implementation of the rate range is not limited.
速率计费信息所包括的数据传输速率区间的信息可以与速率计费策略所包括的数据传输速率区间的信息相同,比如速率计费信息所包括的数据传输速率区间的信息可以包括数据传输速率区间的上限值和/或下限值。在一个示例中,若速率计费策略中携带的数据传输速率区间的信息包括数据传输速率区间的上限值和/或下限值,以及数据传输速率区间的标识,则速率计费信息所包括的数据传输速率区间的信息可以包括数据传输速率区间的标识,而不包括数据传输速率区间的上限值和/或下限值,便于减少上报的信息量,节省传输资源。The information of the data transmission rate range included in the rate charging information can be the same as the information of the data transmission rate range included in the rate charging policy, for example, the information of the data transmission rate range included in the rate charging information can include the data transmission rate range upper and/or lower bounds. In an example, if the information on the data transmission rate range carried in the rate charging policy includes the upper limit value and/or lower limit value of the data transmission rate range, and the identification of the data transmission rate range, then the rate charging information includes The information of the data transmission rate interval may include the identification of the data transmission rate interval, but not the upper limit and/or lower limit of the data transmission rate interval, so as to reduce the amount of reported information and save transmission resources.
示例性地,速率计费信息采集实体可以以时间范围的开始时间为采集速率计费信息的起始时间(此时各个数据传输速率区间对应的使用量均为0),每隔时间单元确定时间单元内用户设备的数据连接业务的数据传输速率,并基于时间单元内用户设备的数据连接业务的数据传输速率,将该时间单元内的使用量累加到该时间单元内数据连接业务的数据传输速率所在的数据传输速率区间对应的使用量中,进而得到不同数据传输速率区间和使用量的对应关系(或者说使用量和不同数据传输速率区间的对应关系),比如:数据传输速率区间rng1对应使用量1,数据传输速率区间rng2对应使用量2,数据传输速率区间rng3对应使用量3。在一个示例中,当使用量为数据传输所产生的流量时,上述对应关系可以 为:数据传输速率区间rng1对应使用量1(比如30M流量),数据传输速率区间rng2对应使用量2(比如20M流量),数据传输速率区间rng3对应使用量3(比如50M流量)。当使用量为数据传输的时长时,上述对应关系可以为:数据传输速率区间rng1对应使用量1(比如5分钟),数据传输速率区间rng2对应使用量2(比如2分钟),数据传输速率区间rng3对应使用量3(比如10分钟)。可以理解的是,若速率计费策略中不包括时间范围的开始时间,则速率计费信息采集实体也可以以接收到速率计费策略的时间为起始时间。Exemplarily, the rate charging information collection entity may take the start time of the time range as the start time of collecting rate charging information (at this time, the usage corresponding to each data transmission rate interval is 0), and determine the time every time unit The data transmission rate of the data connection service of the user equipment in the unit, and based on the data transmission rate of the data connection service of the user equipment in the time unit, the usage amount in the time unit is added to the data transmission rate of the data connection service in the time unit In the usage corresponding to the data transmission rate interval, the corresponding relationship between different data transmission rate intervals and usage (or the corresponding relationship between usage and different data transmission rate intervals) can be obtained, for example: the data transmission rate interval rng1 corresponds to the usage Quantity 1, data transmission rate range rng2 corresponds to usage volume 2, and data transmission rate range rng3 corresponds to usage volume 3. In an example, when the amount of usage is the traffic generated by data transmission, the above correspondence can be: the data transmission rate range rng1 corresponds to the usage amount 1 (such as 30M traffic), and the data transmission rate range rng2 corresponds to the usage amount 2 (such as 20M traffic), the data transmission rate range rng3 corresponds to usage 3 (for example, 50M traffic). When the amount of usage is the duration of data transmission, the above correspondence can be: data transfer rate interval rng1 corresponds to usage amount 1 (for example, 5 minutes), data transfer rate interval rng2 corresponds to usage amount 2 (for example, 2 minutes), data transfer rate interval rng3 corresponds to usage 3 (for example, 10 minutes). It can be understood that, if the rate charging policy does not include the start time of the time range, the rate charging information collection entity may also use the time when the rate charging policy is received as the start time.
图7A或图7B示出了速率计费信息的生成过程;以图7A为例,时间点t0为起始时间,在时间点t1,速率计费信息采集实体可以确定时间单元tu1内数据连接业务的数据传输速率r1,若数据传输速率r1位于数据传输速率区间rng1,则将时间单元tu1内的使用量u1累加到数据传输速率区间rng1对应的使用量中;在时间点t2,速率计费信息采集实体可以确定时间单元tu2内数据连接业务的数据传输速率r2,若数据传输速率r2仍位于数据传输速率区间rng1,则将时间单元tu2内的使用量u2累加到数据传输速率区间rng1对应的使用量中。以此类推。可以理解地,以时间单元tu1为例,时间单元tu1内的使用量u1是指时间单元tu1用户设备针对数据连接业务的使用量。Figure 7A or Figure 7B shows the generation process of the rate charging information; taking Figure 7A as an example, the time point t0 is the starting time, and at the time point t1, the rate charging information collection entity can determine the data connection service in the time unit tu1 If the data transmission rate r1 is in the data transmission rate interval rng1, the usage amount u1 in the time unit tu1 is added to the usage amount corresponding to the data transmission rate interval rng1; at the time point t2, the rate billing information The acquisition entity can determine the data transmission rate r2 of the data connection service in the time unit tu2. If the data transmission rate r2 is still in the data transmission rate interval rng1, the usage amount u2 in the time unit tu2 will be added to the usage corresponding to the data transmission rate interval rng1. In volume. and so on. It can be understood that, taking the time unit tu1 as an example, the usage amount u1 in the time unit tu1 refers to the usage amount of the user equipment for the data connection service in the time unit tu1.
上述图7A和图7B的区别在于:图7A中,连续的时间单元内数据连接业务的数据传输速率相同,比如时间单元tu1、时间单元tu2和时间单元tu3内数据连接业务的数据传输速率相同,也就是说,数据传输速率的变化相对较小;图7B中,间歇的时间单元内数据连接业务的数据传输速率相同,比如时间单元tu1、时间单元tu3和时间单元tu5内数据连接业务的数据传输速率相同,也就是说,数据传输速率的变化相对较大。根据图7A和图7B可以看出,本申请实施例中的方法可以适用于数据传输速率变化大或变化小的场景,且无需因数据传输速率在不同数据传输速率区间上变化而频繁上报,从而能够有效节省传输资源,降低计费处理实体的处理负担。The difference between the above-mentioned FIG. 7A and FIG. 7B is that: in FIG. 7A, the data transmission rate of the data connection service in consecutive time units is the same, for example, the data transmission rate of the data connection service in the time unit tu1, time unit tu2 and time unit tu3 is the same, That is to say, the change of the data transmission rate is relatively small; in Fig. 7B, the data transmission rate of the data connection service in the intermittent time unit is the same, such as the data transmission of the data connection service in the time unit tu1, the time unit tu3 and the time unit tu5 The rate is the same, that is to say, the change in the data transmission rate is relatively large. According to Fig. 7A and Fig. 7B, it can be seen that the method in the embodiment of the present application can be applied to the scenario where the data transmission rate changes greatly or with little change, and there is no need to report frequently because the data transmission rate changes in different data transmission rate intervals, thus The transmission resources can be effectively saved, and the processing burden of the charging processing entity can be reduced.
从每个时间单元的角度来看,以时间单元tu1为例,考虑到数据连接业务可以对应一个或多个UPF实体(比如PDU会话可以对应一个或多个UPF实体),当数据连接业务对应一个UPF实体时,时间单元tu1内数据连接业务的数据传输速率r1即是指数据连接业务在该UPF实体上的数据传输速率。当数据连接业务对应多个UPF实体时,时间单元tu1内数据连接业务的数据传输速率r1可以是指数据连接业务在多个UPF实体上的总数据传输速率。下面以时间单元tu1(其它时间单元可以参照执行)为例,对速率计费信息采集实体统计得到数据连接业务的至少一条速率计费信息的实现进行描述。From the perspective of each time unit, taking the time unit tu1 as an example, considering that the data connection service can correspond to one or more UPF entities (for example, a PDU session can correspond to one or more UPF entities), when the data connection service corresponds to one When the UPF entity is used, the data transmission rate r1 of the data connection service in the time unit tu1 refers to the data transmission rate of the data connection service on the UPF entity. When the data connection service corresponds to multiple UPF entities, the data transmission rate r1 of the data connection service in the time unit tu1 may refer to the total data transmission rate of the data connection service on multiple UPF entities. The following takes the time unit tu1 (other time units can be implemented by reference) as an example to describe the realization of at least one piece of rate charging information of the data connection service collected by the rate charging information collection entity.
(1)速率计费策略中的方式信息指示第一方式(1) The mode information in the rate charging policy indicates the first mode
当数据连接业务对应一个UPF实体时,速率计费信息采集实体可以基于时间单元tu1内数据连接业务的流量和时间单元tu1的时长,计算得到时间单元tu1内数据连接业务的数据传输速率r1。比如,速率计费信息采集实体将时间单元tu1内数据连接业务的流量除以时间单元tu1的时长得到时间单元tu1内数据连接业务的数据传输速率r1。When the data connection service corresponds to a UPF entity, the rate charging information collection entity can calculate the data transmission rate r1 of the data connection service in the time unit tu1 based on the flow of the data connection service in the time unit tu1 and the duration of the time unit tu1. For example, the rate charging information collection entity divides the traffic of the data connection service in the time unit tu1 by the duration of the time unit tu1 to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
举个例子,时间单元tu1内数据连接业务的流量为30M,时间单元tu1的时长为10s,则时间单元tu1内数据连接业务的数据传输速率r1为30M/10s=3Mbps。由于时间单元tu1内数据连接业务的数据传输速率r1(3Mbps)位于数据传输速率区间rng1,进而可以将时间单元tu1内的使用量u1(30M)累加到数据传输速率区间rng1对应的使用量中。For example, if the traffic of the data connection service in the time unit tu1 is 30M, and the duration of the time unit tu1 is 10s, then the data transmission rate r1 of the data connection service in the time unit tu1 is 30M/10s=3Mbps. Since the data transmission rate r1 (3Mbps) of the data connection service in the time unit tu1 is located in the data transmission rate interval rng1, the usage amount u1 (30M) in the time unit tu1 can be added to the usage amount corresponding to the data transmission rate interval rng1.
当数据连接业务对应多个UPF实体时,下面结合实现方式1和实现方式2描述两种可能的实现。When the data connection service corresponds to multiple UPF entities, two possible implementations are described below in conjunction with implementation 1 and implementation 2.
实现方式1 Implementation method 1
在实现方式1中,速率计费信息采集实体可以获取时间单元tu1内数据连接业务在多个UPF实体上的总流量,进而基于总流量和时间单元tu1的时长,计算得到时间单元tu1内数据连接业务的数据传输速率r1。比如,速率计费信息采集实体将总流量除以时间单元tu1的时长得到时间单元tu1内数据连接业务的数据传输速率r1。In implementation mode 1, the rate charging information collection entity can obtain the total traffic of data connection services on multiple UPF entities in the time unit tu1, and then calculate the data connection in the time unit tu1 based on the total traffic and the duration of the time unit tu1 The data transmission rate r1 of the business. For example, the rate charging information collection entity divides the total traffic by the duration of the time unit tu1 to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
举个例子,时间单元tu1内数据连接业务在多个UPF实体上的总流量为30M,时间单元tu1的时长为10s,则时间单元tu1内数据连接业务的数据传输速率r1为30M/10s=3Mbps。由于时间单元tu1内数据连接业务的数据传输速率r1(3Mbps)位于数据传输速率区间rng1,进而可以将时间单元tu1内数据连接业务在多个UPF实体上的使用量u1(即总流量30M)累加到数据传输速率区间rng1对应的使用量中。For example, the total traffic of data connection services on multiple UPF entities in time unit tu1 is 30M, and the duration of time unit tu1 is 10s, then the data transmission rate r1 of data connection services in time unit tu1 is 30M/10s=3Mbps . Since the data transmission rate r1 (3Mbps) of the data connection service in the time unit tu1 is located in the data transmission rate interval rng1, the usage amount u1 (that is, the total traffic 30M) of the data connection service on multiple UPF entities in the time unit tu1 can be accumulated to the usage corresponding to the data transmission rate interval rng1.
实现方式2 Implementation method 2
在实现方式2中,速率计费信息采集实体可以分别计算时间单元tu1内数据连接业务在各个UPF实体上的数据传输速率,进而将时间单元tu1内各个UPF实体对应的数据连接业务的数据传输速率之和作为时间单元tu1内数据连接业务的数据传输速率r1。比如多个UPF实体包括UPF实体1、UPF实体2;速率计费信息采集实体将时间单元tu1内数据连接业务在UPF实体1上的流量除以时间单元tu1的时长得到时间单元tu1内数据连接业务在UPF实体1上的数据传输速率;以及,将时间单元tu1内数据连接业务在UPF实体2上的流量除以时间单元tu1的时长得到时间单元tu1内数据连接业务在UPF实体2上的数据传输速率;进而,将时间单元tu1内数据连接业务在UPF实体1上的数据传输速率与时间单元tu1内数据连接业务在UPF实体2上的数据传输速率相加得到时间单元tu1内数据连接业务的数据传输速率r1。In implementation mode 2, the rate charging information collection entity can separately calculate the data transmission rate of the data connection service on each UPF entity in the time unit tu1, and then calculate the data transmission rate of the data connection service corresponding to each UPF entity in the time unit tu1 The sum is used as the data transmission rate r1 of the data connection service in the time unit tu1. For example, multiple UPF entities include UPF entity 1 and UPF entity 2; the rate charging information collection entity divides the traffic of the data connection service on UPF entity 1 in the time unit tu1 by the duration of the time unit tu1 to obtain the data connection service in the time unit tu1 The data transmission rate on the UPF entity 1; and, divide the flow of the data connection service on the UPF entity 2 in the time unit tu1 by the duration of the time unit tu1 to obtain the data transmission of the data connection service on the UPF entity 2 in the time unit tu1 rate; furthermore, the data transmission rate of the data connection service on UPF entity 1 in the time unit tu1 is added to the data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1 to obtain the data of the data connection service in the time unit tu1 Transmission rate r1.
举个例子,时间单元tu1内数据连接业务在UPF实体1上的流量为10M,时间单元tu1的时长为10s,则时间单元tu1内数据连接业务在UPF实体1上的数据传输速率为10M/10s=1Mbps;时间单元tu1内数据连接业务在UPF实体2上的流量为20M,则时间单元tu1内数据连接业务在UPF实体2上的数据传输速率为20M/10s=2Mbps;进而,时间单元tu1内数据连接业务的数据传输速率r1为1+2=3Mbps。由于时间单元tu1内数据连接业务的数据传输速率(3Mbps)位于数据传输速率区间rng1,进而可以将时间单元tu1内数据连接业务在多个UPF实体上的使用量u1(30M)累加到数据传输速率区间rng1对应的使用量中。For example, if the traffic of data connection services on UPF entity 1 in time unit tu1 is 10M, and the duration of time unit tu1 is 10s, then the data transmission rate of data connection services on UPF entity 1 in time unit tu1 is 10M/10s =1Mbps; the flow rate of the data connection service on the UPF entity 2 in the time unit tu1 is 20M, then the data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1 is 20M/10s=2Mbps; and then, in the time unit tu1 The data transmission rate r1 of the data connection service is 1+2=3Mbps. Since the data transmission rate (3Mbps) of the data connection service in the time unit tu1 is located in the data transmission rate interval rng1, the usage amount u1 (30M) of the data connection service on multiple UPF entities in the time unit tu1 can be added to the data transmission rate The usage amount corresponding to the interval rng1.
可以理解地,当数据连接业务对应多个UPF实体时,速率计费信息采集实体具体采用实现方式1和实现方式2中的哪种方式,可取决于内部实现,本申请实施例对此不做限定。It can be understood that when the data connection service corresponds to multiple UPF entities, which of the implementation modes 1 and 2 is adopted by the rate charging information collection entity depends on the internal implementation, and this embodiment of the present application does not do this limited.
(2)速率计费策略中的方式信息指示第二方式(2) The mode information in the rate charging policy indicates the second mode
当数据连接业务对应一个UPF实体时,速率计费信息采集实体可以基于时间单元tu1内数据连接业务的流量和时间单元tu1内产生流量的时长,计算得到时间单元tu1内数据连接业务的数据传输速率r1。比如,速率计费信息采集实体将时间单元tu1内数据连接业务的流量除以时间单元tu1内产生流量的时长得到时间单元tu1内数据连接业务的数据传输速率r1。When the data connection service corresponds to a UPF entity, the rate charging information collection entity can calculate the data transmission rate of the data connection service in the time unit tu1 based on the traffic of the data connection service in the time unit tu1 and the duration of the traffic generation in the time unit tu1 r1. For example, the rate charging information collection entity divides the flow of the data connection service in the time unit tu1 by the duration of the flow generated in the time unit tu1 to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
举个例子,时间单元tu1内数据连接业务的流量为30M,时间单元tu1内产生流量的时长为6s,则时间单元tu1内数据连接业务的数据传输速率为30M/6s=5Mbps。由于时间单元tu1内数据连接业务的数据传输速率r1(5Mbps)位于数据传输速率区间rng1,进而 可以将时间单元tu1内的使用量u1(30M)累加到数据传输速率区间rng1对应的使用量中。For example, the traffic of the data connection service in the time unit tu1 is 30M, and the duration of the traffic generated in the time unit tu1 is 6s, then the data transmission rate of the data connection service in the time unit tu1 is 30M/6s=5Mbps. Since the data transmission rate r1 (5Mbps) of the data connection service in the time unit tu1 is located in the data transmission rate interval rng1, the usage amount u1 (30M) in the time unit tu1 can be added to the usage amount corresponding to the data transmission rate interval rng1.
当数据连接业务对应多个UPF实体时,在一种可能的实现方式中,速率计费信息采集实体可以分别计算时间单元tu1内数据连接业务在各个UPF实体上的数据传输速率,进而将时间单元tu1内各个UPF实体对应的数据连接业务的数据传输速率之和作为时间单元tu1内数据连接业务的数据传输速率r1。比如,多个UPF实体包括UPF实体1、UPF实体2;速率计费信息采集实体将时间单元tu1内数据连接业务在UPF实体1上的流量除以时间单元tu1内在UPF实体1上产生流量的时长得到时间单元tu1内数据连接业务在UPF实体1上的数据传输速率;以及,将时间单元tu1内数据连接业务在UPF实体2上的流量除以时间单元tu1内在UPF实体2上产生流量的时长得到时间单元tu1内数据连接业务在UPF实体2上的数据传输速率;进而,将时间单元tu1内数据连接业务在UPF实体1上的数据传输速率与时间单元tu1内数据连接业务在UPF实体2上的数据传输速率相加得到时间单元tu1内数据连接业务的数据传输速率r1。When the data connection service corresponds to multiple UPF entities, in a possible implementation, the rate charging information collection entity can calculate the data transmission rate of the data connection service on each UPF entity in the time unit tu1, and then divide the time unit The sum of the data transmission rates of the data connection services corresponding to each UPF entity in tu1 is taken as the data transmission rate r1 of the data connection services in the time unit tu1. For example, multiple UPF entities include UPF entity 1 and UPF entity 2; the rate charging information collection entity divides the traffic of data connection services on UPF entity 1 in time unit tu1 by the duration of generating traffic on UPF entity 1 in time unit tu1 Obtain the data transmission rate of the data connection service on the UPF entity 1 in the time unit tu1; and divide the flow of the data connection service on the UPF entity 2 in the time unit tu1 by the duration of the flow generated on the UPF entity 2 in the time unit tu1 to obtain The data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1; furthermore, the data transmission rate of the data connection service on the UPF entity 1 in the time unit tu1 and the data transmission rate of the data connection service on the UPF entity 2 in the time unit tu1 The data transmission rates are added to obtain the data transmission rate r1 of the data connection service in the time unit tu1.
举个例子,时间单元tu1内数据连接业务在UPF实体1上的流量为10M,时间单元tu1内在UPF实体1上产生流量的时长为5s,则时间单元tu1内数据连接业务在UPF实体1上的数据传输速率为10M/5s=2Mbps;时间单元tu1内数据连接业务在UPF实体2上的流量为20M,则时间单元tu1内在UPF实体2上产生流量的时长为4s,则时间单元tu1内数据连接业务在UPF实体2上的数据传输速率为20M/4s=5Mbps;进而,时间单元tu1内数据连接业务的数据传输速率r1为2+5=7Mbps。由于时间单元tu1内数据连接业务的数据传输速率r1(7Mbps)位于数据传输速率区间rng2,进而可以将时间单元tu1内的使用量u1(30M)累加到数据传输速率区间rng2对应的使用量中。For example, the traffic of data connection service on UPF entity 1 in time unit tu1 is 10M, and the duration of traffic generated on UPF entity 1 in time unit tu1 is 5s, then the data connection service in time unit tu1 on UPF entity 1 The data transmission rate is 10M/5s=2Mbps; the traffic of the data connection service on the UPF entity 2 in the time unit tu1 is 20M, then the duration of the traffic generated on the UPF entity 2 in the time unit tu1 is 4s, and the data connection in the time unit tu1 The data transmission rate of the service on the UPF entity 2 is 20M/4s=5Mbps; furthermore, the data transmission rate r1 of the data connection service in the time unit tu1 is 2+5=7Mbps. Since the data transmission rate r1 (7Mbps) of the data connection service in the time unit tu1 is located in the data transmission rate interval rng2, the usage amount u1 (30M) in the time unit tu1 can be added to the usage amount corresponding to the data transmission rate interval rng2.
S604,计费处理实体向速率计费信息采集实体发送配额和触发条件信息;相应地,速率计费信息采集实体可以接收配额和触发条件信息。S604. The charging processing entity sends the quota and trigger condition information to the rate charging information collection entity; correspondingly, the rate charging information collection entity may receive the quota and trigger condition information.
下面分别对配额和触发条件信息进行描述。The quota and trigger condition information are described respectively below.
(1)配额(1) quota
示例性地,当速率计费策略的粒度为费率组时,比如速率计费策略对应第一费率组,且速率计费信息采集实体具有配额管理功能,则在一种可能的实现方式中,计费处理实体可以向速率计费信息采集实体发送第一费率组的速率计费策略所指示的多个数据传输速率区间分别对应的配额。其中,计费处理实体可以获取多个数据传输速率区间的信息,进而为多个数据传输速率区间分配对应的配额,本申请实施例对计费处理实体获取多个数据传输速率区间的信息的实现不做限定。Exemplarily, when the granularity of the rate charging policy is a rate group, for example, the rate charging policy corresponds to the first rate group, and the rate charging information collection entity has a quota management function, then in a possible implementation The charging processing entity may send the quotas respectively corresponding to the multiple data transmission rate ranges indicated by the rate charging policy of the first rate group to the rate charging information collection entity. Wherein, the charging processing entity can obtain information of multiple data transmission rate ranges, and then allocate corresponding quotas for multiple data transmission rate ranges. The embodiment of the present application realizes that the charging processing entity obtains information of multiple data transmission rate ranges No limit.
在又一种可能的实现方式中,计费处理实体可以向速率计费信息采集实体发送第一费率组对应的配额(该配额即为第一费率组的速率计费策略所指示的多个数据传输速率区间对应的总配额)。In yet another possible implementation manner, the charging processing entity may send the quota corresponding to the first rate group to the rate charging information collection entity (the quota is the multiple rate indicated by the rate charging policy of the first rate group). total quota corresponding to each data transfer rate range).
(2)触发条件信息(2) Trigger condition information
情形1:用户设备的速率计费策略对应用户设备的数据连接会话Scenario 1: The rate charging policy of the user equipment corresponds to the data connection session of the user equipment
此种情形下,计费处理实体向速率计费信息采集实体发送的触发条件信息可以包括对应数据连接会话的触发条件信息(为便于描述,称为第一类型的触发条件信息)。比如,第一类型的触发条件信息用于指示当用户设备的位置发生变化(比如用户设备从接入网设备1切换到接入网设备2)时,向计费处理实体上报根据速率计费策略获取到的数据连接会话的至少一条速率计费信息。In this case, the trigger condition information sent by the charging processing entity to the rate charging information collection entity may include trigger condition information corresponding to the data connection session (for ease of description, referred to as the first type of trigger condition information). For example, the first type of trigger condition information is used to indicate that when the location of the user equipment changes (for example, the user equipment switches from access network device 1 to access network device 2), report to the charging processing entity At least one piece of rate charging information of the obtained data connection session.
情形2:用户设备的速率计费策略对应用户设备的业务Scenario 2: The rate charging policy of the user equipment corresponds to the service of the user equipment
此种情形下,计费处理实体向速率计费信息采集实体发送的触发条件信息可以包括第一类型的触发条件信息、第二类型的触发条件信息(比如对应费率组或QoS流或业务,下文将以费率组为例)、第三类型的触发条件信息(对应数据传输速率区间)。In this case, the trigger condition information sent by the charging processing entity to the rate charging information collection entity may include the first type of trigger condition information and the second type of trigger condition information (such as the corresponding rate group or QoS flow or service, The following will take the rate group as an example), the third type of trigger condition information (corresponding to the data transmission rate interval).
其中,第一类型的触发条件信息用于指示当用户设备的位置发生变化时,向计费处理实体上报根据数据连接会话中的各个费率组(或QoS流或业务,此处以费率组为例)的速率计费策略获取到的各个费率组的速率计费信息。Wherein, the first type of trigger condition information is used to indicate that when the location of the user equipment changes, report to the charging processing entity according to each rate group (or QoS flow or service in the data connection session, where the rate group is Example) The rate charging information of each rate group obtained by the rate charging policy.
以速率计费策略对应第一费率组为例,第二类型的触发条件信息用于指示当第一费率组对应的可用配额小于或等于配额1对应的阈值(为便于描述,称为阈值1)时,向计费处理实体上报根据第一费率组的速率计费策略获取到的第一费率组的速率计费信息;此种情形下,第二类型的触发条件信息可以包括配额1对应的阈值。或者,第二类型的触发条件信息用于指示当配额1的有效期届满时,向计费处理实体上报根据第一费率组的速率计费策略获取到的第一费率组的速率计费信息;此种情形下,第二类型的触发条件信息可以包括配额1的有效期。其中,配额1为第一费率组对应的配额。Taking the rate charging policy corresponding to the first rate group as an example, the second type of trigger condition information is used to indicate that when the available quota corresponding to the first rate group is less than or equal to the threshold corresponding to quota 1 (for ease of description, it is called threshold 1), report to the charging processing entity the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group; in this case, the second type of trigger condition information may include quota 1 corresponds to the threshold. Alternatively, the second type of trigger condition information is used to indicate that when the validity period of quota 1 expires, the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group is reported to the charging processing entity ; In this case, the second type of trigger condition information may include the validity period of quota 1. Wherein, quota 1 is the quota corresponding to the first rate group.
以速率计费策略对应第一费率组为例,第三类型的触发条件信息用于指示当第一数据传输速率区间对应的可用配额小于或等于配额2对应的阈值(为便于描述,称为阈值2)时,向计费处理实体上报根据第一费率组的速率计费策略获取到的第一费率组的速率计费信息;此种情形下,第三类型的触发条件信息可以包括配额2对应的阈值。或者,第三类型的触发条件信息用于指示当配额2的有效期届满时,向计费处理实体上报根据第一费率组的速率计费策略获取到的第一费率组的速率计费信息;此种情形下,第三类型的触发条件信息可以包括配额2的有效期。其中,配额2为第一数据传输速率区间对应的配额,第一数据传输速率区间为第一费率组的速率计费策略所指示的多个数据传输速率区间中的任一数据传输速率区间。Taking the rate charging policy corresponding to the first rate group as an example, the third type of trigger condition information is used to indicate that when the available quota corresponding to the first data transmission rate range is less than or equal to the threshold corresponding to quota 2 (for convenience of description, it is called When threshold 2), report to the charging processing entity the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group; in this case, the third type of trigger condition information may include The threshold corresponding to quota 2. Alternatively, the third type of trigger condition information is used to indicate that when the validity period of the quota 2 expires, the rate charging information of the first rate group obtained according to the rate charging policy of the first rate group is reported to the charging processing entity ; In this case, the third type of trigger condition information may include the validity period of the quota 2. Wherein, quota 2 is a quota corresponding to the first data transmission rate range, and the first data transmission rate range is any one of the multiple data transmission rate ranges indicated by the rate charging policy of the first rate group.
在一个示例中,上述配额对应的阈值(比如上述阈值1或阈值2)可以为小于或等于配额的一个数值,比如配额对应的阈值可以为配额的10%。第一费率组对应的可用配额可以为第一费率组对应的配额减去第一费率组对应的使用量的差值,第一数据传输速率区间对应的可用配额可以为第一数据传输速率区间对应的配额减去第一数据传输速率区间对应的使用量的差值。此外,当计费处理实体为数据传输速率区间分配有对应的配额时,数据传输速率区间对应的使用量是指数据传输速率区间对应的配额的使用量。In an example, the threshold corresponding to the above quota (such as the above threshold 1 or threshold 2) may be a value less than or equal to the quota, for example, the threshold corresponding to the quota may be 10% of the quota. The available quota corresponding to the first rate group can be the difference between the quota corresponding to the first rate group minus the usage amount corresponding to the first rate group, and the available quota corresponding to the first data transmission rate range can be the first data transmission The difference between the quota corresponding to the rate range minus the usage corresponding to the first data transmission rate range. In addition, when the charging processing entity allocates a corresponding quota for the data transmission rate interval, the usage amount corresponding to the data transmission rate interval refers to the usage amount of the quota corresponding to the data transmission rate interval.
在一个示例中,上述有效期可以为未来的一个时间点,比如“202110280000”,表示在2021年10月28号00时00分有效期届满;或者,有效期也可以为一个时间范围,在该时间范围的结束时间有效期届满。In an example, the above validity period can be a point in time in the future, such as "202110280000", which means that the validity period will expire at 00:00 on October 28, 2021; or, the validity period can also be a time range. The end time validity period expires.
S605,速率计费信息采集实体向计费处理实体发送用户设备的速率计费信息。S605. The rate charging information collection entity sends the rate charging information of the user equipment to the charging processing entity.
示例性地,速率计费信息采集实体可以根据计费处理实体发送的触发条件信息,确定满足触发条件后,向计费处理实体发送用户设备的速率计费信息。Exemplarily, the rate charging information collection entity may send the rate charging information of the user equipment to the charging processing entity after determining that the trigger condition is met according to the trigger condition information sent by the charging processing entity.
继续参考图7A,若速率计费信息采集实体确定在时间点tn满足触发条件,则速率计费信息采集实体可以确定时间点tn-1到tn这一时间段内数据连接业务的数据传输速率rn,若数据传输速率rn位于数据传输速率区间rngm,则将时间点tn-1到tn这一时间段内的使用量累加到数据传输速率区间rngm对应的使用量中,以及将起始时间至时间点tn这一段时间内统计得到的速率计费信息上报给计费处理实体。其中,时间点tn上报的速率计费信 息可以包括m条速率计费信息,分别为速率计费信息1、速率计费信息2、速率计费信息3、……速率计费信息m,具体如下所示:Continuing to refer to FIG. 7A, if the rate charging information collection entity determines that the trigger condition is satisfied at the time point tn, the rate charging information collection entity may determine the data transmission rate rn of the data connection service within the time period from time point tn-1 to tn , if the data transmission rate rn is in the data transmission rate interval rngm, then add the usage amount from the time point tn-1 to tn to the usage amount corresponding to the data transmission rate interval rngm, and add the starting time to the time The rate charging information collected during the period of time at point tn is reported to the charging processing entity. Among them, the rate billing information reported at time point tn may include m pieces of rate billing information, which are rate billing information 1, rate billing information 2, rate billing information 3, ... rate billing information m, specifically as follows Shown:
速率计费信息1{rng1,u1+u2+u3+……};Rate billing information 1{rng1,u1+u2+u3+...};
速率计费信息2{rng2,u4+u5+……};Rate billing information 2{rng2,u4+u5+...};
速率计费信息3{rng3,u6+……};Rate billing information 3{rng3,u6+...};
……...
速率计费信息m{rngm,……+un}。Rate billing information m{rngm,...+un}.
可以理解的是,上述时间点tn-1到tn这一时间段的时长可以等于时间单元的时长,或者也可以小于时间单元的时长。It can be understood that, the duration of the above time period from time point tn-1 to tn may be equal to the duration of the time unit, or may be shorter than the duration of the time unit.
可以理解的是,上述速率计费信息1至速率计费信息m的表示方式仅是示例而非限定,速率计费信息除了包含数据传输速率区间的信息和相应的使用量外,还可以包含其他与使用量有关的信息,如上行、下行指示信息、记录使用量的时间戳等,这些信息可以与使用量共同组成使用信息。It can be understood that the representations of the above-mentioned rate charging information 1 to rate charging information m are only examples and not limiting, and the rate charging information may include other Information related to usage, such as uplink and downlink indication information, time stamps for recording usage, etc., can form usage information together with usage.
可以理解的是,速率计费信息还可以包括其它可能的信息,比如时间单元、方式信息、数据传输速率区间对应的配额管理标识(quota management identifier,QMI)等。以数据传输速率区间rng1为例,数据传输速率区间rng1对应的QMI用于指示数据传输速率区间rng1对应的使用量是否是有配额管理的使用量,比如当数据传输速率区间rng1对应的QMI的取值为1时,表示数据传输速率区间rng1对应的使用量是有配额管理的使用量,或者说数据传输速率区间rng1对应的使用量是数据传输速率区间rng1对应的配额的使用量,当数据传输速率区间rng1对应的QMI的取值为0时,表示数据传输速率区间rng1对应的使用量是无配额管理的使用量。速率计费信息中携带时间单元、方式信息或配额管理标识的具体形式可以参见实施例二中表4A、表5、表6对应的示例。It can be understood that the rate charging information may also include other possible information, such as time unit, mode information, quota management identifier (quota management identifier, QMI) corresponding to the data transmission rate range, and the like. Taking the data transmission rate range rng1 as an example, the QMI corresponding to the data transmission rate range rng1 is used to indicate whether the usage corresponding to the data transmission rate range rng1 is quota-managed usage. For example, when the QMI corresponding to the data transmission rate range rng1 is taken When the value is 1, it means that the usage corresponding to the data transmission rate range rng1 is the usage managed by the quota, or the usage corresponding to the data transmission rate range rng1 is the quota usage corresponding to the data transmission rate range rng1. When the value of the QMI corresponding to the rate range rng1 is 0, it means that the usage corresponding to the data transmission rate range rng1 is the usage without quota management. For the specific form of carrying the time unit, mode information or quota management identifier in the rate charging information, refer to the examples corresponding to Table 4A, Table 5, and Table 6 in Embodiment 2.
此外,在将数据连接业务的速率计费信息上报给计费处理实体后,速率计费信息采集实体可以将使用量重置为0(即每个数据传输速率区间对应的使用量都重置为0),并在时间点tn+1,确定时间单元tun+1内数据连接业务的数据传输速率rn+1,若数据传输速率rn+1位于数据传输速率区间rng1,则将时间单元tun+1内的使用量u n+1累加到数据传输速率区间rng1对应的使用量中,以此类推。In addition, after reporting the rate charging information of the data connection service to the charging processing entity, the rate charging information collection entity can reset the usage amount to 0 (that is, the usage amount corresponding to each data transmission rate range is reset to 0), and at the time point tn+1, determine the data transmission rate rn+1 of the data connection service in the time unit tun+1, if the data transmission rate rn+1 is in the data transmission rate interval rng1, then set the time unit tun+1 The usage amount u n+1 within is added to the usage amount corresponding to the data transmission rate interval rng1, and so on.
S606,计费处理实体接收数据连接业务的至少一条速率计费信息,并基于至少一条速率计费信息对用户设备进行计费处理。S606. The charging processing entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information.
示例性地,计费处理实体基于至少一条速率计费信息对用户设备进行计费处理,可以包括以下至少一项:Exemplarily, the charging processing entity performs charging processing on the user equipment based on at least one piece of rate charging information, which may include at least one of the following:
(1)基于至少一条速率计费信息,对用户设备进行配额扣减或费用扣减。(1) Based on at least one piece of rate charging information, perform quota deduction or fee deduction on the user equipment.
举个例子,计费处理实体接收到速率计费信息采集实体发送的某个费率组的至少一条速率计费信息,该费率组的至少一条速率计费信息包括如下内容:数据传输速率区间rng1对应20M流量、数据传输速率区间rng2对应10M流量。假设之前计费处理实体为数据传输区间1分配的配额为30M流量(即冻结30M流量或者冻结30M流量的等值金额),为数据传输速率区间rng2分配的配额为40M流量(即冻结40M流量或者冻结40M流量的等值金额),则计费处理实体可以将数据传输区间1对应的30M流量(或者30M流量的等值金额)解除冻结,并从用户账户(即用户设备对应的用户的账户,可以根据用户设备的标识获取用户账户的标识)中数据传输区间1对应的流量中减去20M(或者从账户的金额 中扣除20M流量的等值金额),以及将数据传输区间2对应的40M流量(或者40M流量的等值金额)解除冻结,并从用户账户中数据传输区间2对应的流量中减去10M流量(即配额扣减)。进一步地,若速率计费信息采集实体在发送速率计费信息的同时,还发送了多个数据传输速率区间对应的配额请求,则计费处理实体还可以根据配额请求,为多个数据传输速率区间分别分配新的配额。或者,假设数据传输速率区间rng1对应的费率为:每兆流量的费用为0.5元,数据传输速率区间rng2对应的费率为:每兆流量的费用为0.8元,则计费处理实体也可以从用户账户中扣除0.5*20+0.8*10=18元费用(即费用扣减)。示例性地,该费率组的计费类型可以为在线计费。For example, the charging processing entity receives at least one piece of rate charging information of a certain rate group sent by the rate charging information collection entity, and the at least one piece of rate charging information of the rate group includes the following content: data transmission rate range rng1 corresponds to 20M traffic, and rng2 corresponds to 10M traffic in the data transmission rate range. Assume that the quota allocated by the billing processing entity for data transmission interval 1 is 30M traffic (that is, freeze 30M traffic or the equivalent amount of frozen 30M traffic), and the quota allocated for data transmission rate interval rng2 is 40M traffic (that is, freeze 40M traffic or Freeze the equivalent amount of 40M traffic), then the billing processing entity can unfreeze the 30M traffic (or the equivalent amount of 30M traffic) corresponding to the data transmission interval 1, and from the user account (that is, the account of the user corresponding to the user device, Subtract 20M (or deduct the equivalent amount of 20M traffic from the amount of the account) from the traffic corresponding to data transmission interval 1 in the user device ID), and subtract the 40M traffic corresponding to data transmission interval 2 (or the equivalent amount of 40M traffic) unfreeze, and subtract 10M traffic from the traffic corresponding to data transmission interval 2 in the user account (that is, quota deduction). Furthermore, if the rate charging information acquisition entity sends the rate charging information while also sending quota requests corresponding to multiple data transmission rate intervals, the charging processing entity can also set multiple data transmission rate ranges according to the quota request. Intervals are assigned new quotas respectively. Or, assuming that the rate corresponding to the data transmission rate range rng1 is: 0.5 yuan per megabyte of traffic, and the rate corresponding to the data transmission rate range rng2 is 0.8 yuan per megabyte of traffic, the billing processing entity can also A fee of 0.5*20+0.8*10=18 yuan is deducted from the user account (that is, fee deduction). Exemplarily, the charging type of the rate group may be online charging.
(2)将速率计费信息写入用户设备或者用户账户对应的计费话单,例如计费数据记录(charging data record,CDR)。举个例子,计费处理实体接收到速率计费信息采集实体发送的费率组的速率计费信息,费率组的速率计费信息包括如下内容:使用量1(20M)对应数据传输速率区间rng1、使用量2(10M)对应数据传输速率区间rng2,则计费处理实体可以将该速率计费信息(即使用量1对应数据传输速率区间rng1、使用量2对应数据传输速率区间rng2)写入用户设备对应的计费话单中;示例性地,该费率组的计费类型可以为离线计费。(2) Write the rate charging information into the charging bill corresponding to the user equipment or user account, such as charging data record (charging data record, CDR). For example, the billing processing entity receives the rate billing information of the rate group sent by the rate billing information collection entity, and the rate billing information of the rate group includes the following content: the usage amount 1 (20M) corresponds to the data transmission rate range rng1, usage 2 (10M) correspond to the data transmission rate interval rng2, then the charging processing entity can write the rate charging information (that is, usage 1 corresponds to the data transmission rate interval rng1, usage 2 corresponds to the data transmission rate interval rng2) In the charging bill corresponding to the user equipment; for example, the charging type of the rate group may be offline charging.
(3)基于速率计费信息,按数据传输速率区间累积用户设备的数据连接业务的使用量。具体来说,计费处理实体可能会接收到速率计费信息采集实体多次上报的速率计费信息,进而可以在每接收到速率计费信息采集实体上报的速率计费信息后,按数据传输速率区间累积用户设备的使用量。(3) Based on the rate charging information, accumulating the usage amount of the data connection service of the user equipment according to the data transmission rate range. Specifically, the billing processing entity may receive the rate billing information reported by the rate billing information collection entity multiple times, and then may transmit the rate billing information according to the data transmission Rate range accumulative user equipment usage.
举个例子,计费处理实体根据速率计费信息采集实体之前上报的速率计费信息,累积得到:数据传输速率区间rng1对应的使用量为200M,数据传输速率区间rng2对应的使用量为300M。当计费处理实体再次接收到速率计费信息采集实体发送的用户设备的速率计费信息,速率计费信息包括如下内容:数据传输速率区间rng1对应20M、数据传输速率区间rng2对应10M,则可以将20M累加到数据传输速率区间rng1对应的使用量中,此时数据传输速率区间rng1对应的使用量为220M,以及将10M累加到数据传输速率区间rng2对应的使用量中,此时数据传输速率区间rng2对应的使用量为310M。进一步地,计费处理实体可以确定某一数据传输速率区间对应的使用量大于或等于用户设备对应的用户所订购的流量后,可以通知相应的核心网实体对用户设备的数据传输速率进行限制。比如确定用户设备订购的数据传输速率区间(10Mbps,∝)对应的流量已用完,则可以通知相应的核心网实体将用户设备的数据传输速率限制在10Mbps以下。For example, the billing processing entity collects the rate billing information previously reported by the entity according to the rate billing information, and accumulates: the usage corresponding to the data transmission rate range rng1 is 200M, and the usage corresponding to the data transmission rate range rng2 is 300M. When the charging processing entity receives the rate charging information of the user equipment sent by the rate charging information collection entity again, the rate charging information includes the following content: the data transmission rate interval rng1 corresponds to 20M, and the data transmission rate interval rng2 corresponds to 10M, then it can Add 20M to the usage amount corresponding to the data transmission rate interval rng1. At this time, the usage amount corresponding to the data transmission rate interval rng1 is 220M, and add 10M to the usage amount corresponding to the data transmission rate interval rng2. At this time, the data transmission rate The usage corresponding to interval rng2 is 310M. Further, the charging processing entity may notify the corresponding core network entity to limit the data transmission rate of the user equipment after determining that the usage amount corresponding to a certain data transmission rate range is greater than or equal to the traffic subscribed by the user corresponding to the user equipment. For example, it is determined that the traffic corresponding to the data transmission rate range (10Mbps, ∝) ordered by the user equipment has been exhausted, and the corresponding core network entity may be notified to limit the data transmission rate of the user equipment to below 10Mbps.
采用上述方法,计费策略实体确定速率计费策略,并向速率计费信息采集实体发送速率计费策略,使得速率计费信息采集实体可以根据速率计费策略,按多个数据传输速率区间来生成用户设备的速率计费信息并上报给计费处理实体,进而计费处理实体可以基于速率计费信息对用户设备进行计费处理。相比于按流量进行计费的方式来说,由于本申请实施例中的速率计费信息可以包括数据传输速率区间的信息和对应的使用信息,从而能够实现基于数据传输速率对用户设备进行计费处理。进一步地,本申请实施例提供的计费方法从数据传输速率、使用量(比如流量)两个维度来进行计费,能够为运营商按数据传输速率定价(不同数据传输速率区间对应不同费率)提供技术支持,满足运营商的速率变现需求,便于提高网络资源的利用率。Using the above method, the charging strategy entity determines the rate charging strategy, and sends the rate charging strategy to the rate charging information collection entity, so that the rate charging information collection entity can perform multiple data transmission rate intervals according to the rate charging strategy. The rate charging information of the user equipment is generated and reported to the charging processing entity, and then the charging processing entity can perform charging processing on the user equipment based on the rate charging information. Compared with the method of billing by flow rate, since the rate billing information in the embodiment of the present application may include the information of the data transmission rate interval and the corresponding usage information, it is possible to implement the billing of the user equipment based on the data transmission rate. fee processing. Furthermore, the billing method provided by the embodiment of the present application performs billing from two dimensions of data transmission rate and usage (such as traffic), and can set prices for operators according to data transmission rate (different data transmission rate intervals correspond to different rates ) provides technical support to meet the rate monetization needs of operators and facilitate the improvement of network resource utilization.
此外,本申请实施例中速率计费信息采集实体可以根据速率计费策略,按多个数据传 输速率区间对使用量汇总,比如在上述图7B中,用户设备在时间单元tu1内的数据传输速率r1位于数据传输速率区间rng1,而在时间单元tu2内的数据传输速率r2位于数据传输速率区间rng2,即用户设备的数据传输速率在不同数据传输速率区间上变化,此种情形下,速率计费信息采集实体可以将时间单元tu1内用户设备的使用量u1汇总(即累加)到数据传输速率区间rng1对应的使用量中,将时间单元tu2内用户设备的使用量u2汇总到数据传输速率区间rng2对应的使用量中,从而无需因数据传输速率在不同数据传输速率区间上变化而频繁上报用户设备的使用量,有效节省传输资源,降低计费处理实体的处理负担。In addition, in the embodiment of the present application, the rate charging information collection entity can summarize the usage amount according to multiple data transmission rate intervals according to the rate charging policy. For example, in the above-mentioned Figure 7B, the data transmission rate of the user equipment in the time unit tu1 r1 is located in the data transmission rate interval rng1, and the data transmission rate r2 in the time unit tu2 is located in the data transmission rate interval rng2, that is, the data transmission rate of the user equipment changes in different data transmission rate intervals. In this case, rate charging The information collection entity may aggregate (i.e. accumulate) the usage amount u1 of the user equipment in the time unit tu1 into the usage amount corresponding to the data transmission rate interval rng1, and summarize the usage amount u2 of the user equipment in the time unit tu2 into the data transmission rate interval rng2 In the corresponding usage, there is no need to frequently report the usage of the user equipment because the data transmission rate changes in different data transmission rate intervals, effectively saving transmission resources and reducing the processing burden of the charging processing entity.
由上述描述可以理解,“对用户设备进行计费处理”也可以理解成“对用户设备对应的用户进行计费处理”或者“对用户设备对应的用户账户”进行计费处理。It can be understood from the above description that "charging the user equipment" can also be understood as "charging the user corresponding to the user equipment" or "charging the user account corresponding to the user equipment".
实施例二Embodiment two
在实施例二中,将基于图5B所示意的网络架构,描述本申请实施例提供的计费方法的一种可能的实现流程。In Embodiment 2, based on the network architecture shown in FIG. 5B , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
图8为本申请实施例二提供的计费方法所对应的流程示意图,如图8所示,该方法可以包括:Fig. 8 is a schematic flowchart corresponding to the billing method provided in Embodiment 2 of the present application. As shown in Fig. 8, the method may include:
S801,SMF实体接收来自用户设备的PDU会话建立请求消息。S801. The SMF entity receives a PDU session establishment request message from a user equipment.
S802,SMF实体向PCF实体发送会话策略请求消息,会话策略请求消息包括用户设备的标识;相应地,PCF实体可以接收会话策略请求消息。S802. The SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
S803,PCF实体向SMF实体发送会话策略响应消息;相应地,SMF实体可以接收会话策略请求消息。S803, the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message.
示例性地,PCF实体可以基于会话策略请求消息所包括的用户设备的标识,从UDM实体或者UDR获取用户设备的签约信息,进而基于签约信息确定用户设备的多个费率组的计费类型,计费类型可以包括在线计费或离线计费。上述会话策略响应消息中可以包括用户设备的多个费率组业务的标识以及对应的计费类型。Exemplarily, the PCF entity may obtain the subscription information of the user equipment from the UDM entity or UDR based on the identifier of the user equipment included in the session policy request message, and then determine the charging types of multiple charging rate groups of the user equipment based on the subscription information, The charging type can include online charging or offline charging. The foregoing session policy response message may include identifiers of multiple rate group services of the user equipment and corresponding charging types.
S804,SMF实体向CHF实体发送第一计费请求消息;相应地,CHF实体可以接收第一计费请求消息。S804, the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
示例性地,第一计费请求消息可以为初始计费数据请求消息或者说计费资源创建请求消息。比如第一计费请求消息可以包括用户设备的标识、PDU会话的标识、用户设备的多个费率组的标识,可选地,还可以包括在线计费的费率组对应的配额请求。Exemplarily, the first charging request message may be an initial charging data request message or a charging resource creation request message. For example, the first charging request message may include an ID of the user equipment, an ID of the PDU session, IDs of multiple rate groups of the user equipment, and optionally, may also include a quota request corresponding to the rate group of the online charging.
S805,CHF实体向SMF实体发送第一计费响应消息;相应地,SMF实体可以接收第一计费响应消息。S805, the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
此处,第一计费响应消息可以为初始计费数据响应消息或者说计费资源创建响应消息,下文以第一计费响应消息为初始计费数据响应消息为例进行描述。Here, the first charging response message may be an initial charging data response message or a charging resource creation response message, and the description below takes the first charging response message as an initial charging data response message as an example.
作为一种可能的实现,CHF实体接收到第一计费请求消息(即初始计费数据请求消息)后,可以基于初始计费数据请求消息中包括的用户设备的标识,获取用户设备的签约信息,进而基于用户设备的签约信息以及预设规则确定用户设备的数据连接业务的速率计费策略,并通过初始计费数据响应消息向SMF实体发送数据连接业务的速率计费策略。其中,预设规则可以预先配置在CHF实体中,或者,也可以是由协议预先约定好的。示例性地,用户通过用户设备向客户关系管理(customer relationship management,CRM)系统订购服务(比如购买流量包)后,CRM系统可以将用户设备的签约信息发送给CHF实体,CHF 实体可以存储用户设备的签约信息。进而CHF实体接收到初始计费数据请求消息后,可以根据用户设备的标识查询得到用户设备的签约信息。As a possible implementation, after receiving the first charging request message (that is, the initial charging data request message), the CHF entity may obtain the subscription information of the user equipment based on the identifier of the user equipment included in the initial charging data request message , and then determine the rate charging policy of the data connection service of the user equipment based on the subscription information of the user equipment and preset rules, and send the rate charging policy of the data connection service to the SMF entity through an initial charging data response message. Wherein, the preset rule may be pre-configured in the CHF entity, or may be pre-agreed by the protocol. Exemplarily, after a user subscribes to a customer relationship management (customer relationship management, CRM) system for a service (such as purchasing a traffic package) through a user equipment, the CRM system may send the subscription information of the user equipment to the CHF entity, and the CHF entity may store the user equipment contract information. Furthermore, after the CHF entity receives the initial charging data request message, it can query and obtain the subscription information of the user equipment according to the identifier of the user equipment.
进一步可选地,CHF实体还可以基于在线计费的费率组对应的配额请求,为在线计费的费率组分配配额,并通过初始计费数据响应消息向SMF实体发送配额。该配额可以是指在线计费的费率组对应的配额(即该费率组的速率计费策略所指示的多个数据传输速率区间对应的总配额),或者也可以是指该费率组的速率计费策略的多个数据传输速率区间分别对应的配额。Further optionally, the CHF entity may allocate a quota for the online charging rate group based on the quota request corresponding to the online charging rate group, and send the quota to the SMF entity through an initial charging data response message. The quota can refer to the quota corresponding to the rate group for online charging (that is, the total quota corresponding to multiple data transmission rate intervals indicated by the rate charging policy of the rate group), or it can refer to the rate group Quotas corresponding to multiple data transmission rate ranges of the rate billing policy.
也就是说,初始计费数据响应消息可以包括数据连接业务的速率计费策略,还可以包括其它可能的信息,比如配额(以多个数据传输速率区间分别对应的配额为例)、触发条件信息。可以理解地,本申请实施例对初始计费数据响应消息携带配额、触发条件信息的方式不做限定。That is to say, the initial charging data response message may include the rate charging policy of the data connection service, and may also include other possible information, such as quotas (take the quotas corresponding to multiple data transmission rate intervals as an example), trigger condition information . Understandably, this embodiment of the present application does not limit the manner in which the initial charging data response message carries the quota and trigger condition information.
比如,速率计费策略对应用户设备的数据连接会话(比如PDU会话),参见表1A所示,为初始计费数据响应消息的格式示例。For example, the rate charging policy corresponds to a data connection session (such as a PDU session) of the user equipment, see Table 1A, which is an example format of the initial charging data response message.
表1A:初始计费数据响应消息示例1Table 1A: Initial Accounting Data Response Message Example 1
Figure PCTCN2022127905-appb-000001
Figure PCTCN2022127905-appb-000001
Figure PCTCN2022127905-appb-000002
Figure PCTCN2022127905-appb-000002
可以理解地,表1A中三个数据传输速率区间对应的“baseTime”、“method”、“startTime”、“endTime”可以相同,表1A仅为一种可能的格式示例。在其它可能的情形中,也可以将“baseTime”、“method”、“startTime”、“endTime”作为三个数据传输速率区间共用参数,示例如下表1B所示:Understandably, the "baseTime", "method", "startTime", and "endTime" corresponding to the three data transmission rate intervals in Table 1A may be the same, and Table 1A is only an example of a possible format. In other possible situations, "baseTime", "method", "startTime", and "endTime" can also be used as common parameters for the three data transmission rate intervals, as shown in Table 1B below:
表1B:初始计费数据响应消息示例1的又一种情形Table 1B: Yet another scenario of Initial Charging Data Response Message Example 1
Figure PCTCN2022127905-appb-000003
Figure PCTCN2022127905-appb-000003
又比如,速率计费策略对应第一费率组,第一费率组的计费类型为在线计费,则CHF实体还可以为第一费率组的速率计费策略所指示的多个数据传输速率区间分别分配对应的配额,或者也可以为多个数据传输速率区间分配一个总配额。以CHF实体为多个数据传输速率区间分别分配对应的配额为例,此种情形下,初始计费数据响应消息中还可以包括多个数据传输速率区间分别对应的配额。参见表2所示,为初始计费数据响应消息的格式示例。For another example, if the rate charging policy corresponds to the first rate group, and the charging type of the first rate group is online charging, then the CHF entity can also provide multiple data rates indicated by the rate charging policy of the first rate group Corresponding quotas are assigned to the transmission rate intervals, or a total quota can be assigned to multiple data transmission rate intervals. Taking the CHF entity as an example to allocate corresponding quotas for multiple data transmission rate ranges, in this case, the initial charging data response message may also include the respective quotas corresponding to multiple data transmission rate ranges. See Table 2 for an example format of the initial charging data response message.
表2:初始计费数据响应消息示例2Table 2: Initial Accounting Data Response Message Example 2
Figure PCTCN2022127905-appb-000004
Figure PCTCN2022127905-appb-000004
Figure PCTCN2022127905-appb-000005
Figure PCTCN2022127905-appb-000005
又比如,速率计费策略对应第二费率组,第二费率组的计费类型为离线计费。参见表3所示,为初始计费数据响应消息的格式示例。For another example, the rate charging policy corresponds to the second rate group, and the charging type of the second rate group is offline charging. See Table 3 for an example format of the initial charging data response message.
表3:初始计费数据响应消息示例3Table 3: Initial Accounting Data Response Message Example 3
Figure PCTCN2022127905-appb-000006
Figure PCTCN2022127905-appb-000006
Figure PCTCN2022127905-appb-000007
Figure PCTCN2022127905-appb-000007
可以理解地,上述是以初始计费数据响应消息包括PDU会话的速率计费策略、第一费率组的速率计费策略和第二费率组的速率计费策略的其中一个为例进行描述的。在其它可能的实施例中,初始计费数据响应消息也可以包括PDU会话的速率计费策略,和/或,一个或多个费率组的速率计费策略;其中,一个或多个费率组可以包括上述第一费率组和/或第二费率组。It can be understood that the above is described as an example with the initial charging data response message including one of the rate charging policy of the PDU session, the rate charging policy of the first rate group and the rate charging policy of the second rate group of. In other possible embodiments, the initial charging data response message may also include the rate charging policy of the PDU session, and/or, the rate charging policy of one or more rate groups; wherein, one or more rate groups The groups may include the above-mentioned first rate group and/or the second rate group.
可以理解地,上述表1A或表1B中,速率计费策略是携带在Charging data Response的SessionPolicy这一层级中,上述表2或表3中,速率计费策略是携带在Charging data Response的MUI中的RatingGroupPolicy这一层级中,其中SessionPolicy与MUI属于同一层级,从而可以通过将速率计费策略携带在不同层级位置来表示不同的粒度。It can be understood that in the above Table 1A or Table 1B, the rate charging policy is carried in the SessionPolicy level of Charging data Response, and in the above Table 2 or Table 3, the rate charging policy is carried in the MUI of Charging data Response In the level of RatingGroupPolicy, SessionPolicy and MUI belong to the same level, so that different granularities can be expressed by carrying rate charging policies at different levels.
S806,SMF实体根据数据连接业务的速率计费策略,生成数据连接业务的至少一条速率计费信息。S806. The SMF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy for the data connection service.
示例性地,SMF实体可以与数据连接业务对应的UPF实体进行通信,进而从UPF实体获取到使用量;比如UPF实体可以周期性向SMF实体上报使用量。Exemplarily, the SMF entity may communicate with the UPF entity corresponding to the data connection service, and then obtain the usage amount from the UPF entity; for example, the UPF entity may periodically report the usage amount to the SMF entity.
SMF实体生成数据连接业务的至少一条速率计费信息的具体实现可以参见实施例一中的S603,不再赘述。For the specific implementation of generating at least one piece of rate charging information of the data connection service by the SMF entity, reference may be made to S603 in Embodiment 1, and details are not repeated here.
S807,SMF实体向CHF实体发送数据连接业务的至少一条速率计费信息。S807. The SMF entity sends at least one piece of rate charging information of the data connection service to the CHF entity.
示例性地,SMF实体可以根据触发条件信息,确定满足触发条件后,向CHF实体发送数据连接业务的至少一条速率计费信息。Exemplarily, the SMF entity may send at least one piece of rate charging information of the data connection service to the CHF entity after determining that the trigger condition is met according to the trigger condition information.
作为一种可能的实现,SMF实体可以向CHF实体发送第二计费请求消息,第二计费请求消息包括数据连接业务的至少一条速率计费信息。第二计费请求消息可以为更新计费数据请求消息或者说计费资源更新请求消息,下文以第二计费请求消息为更新计费数据请求消息为例进行描述。As a possible implementation, the SMF entity may send a second charging request message to the CHF entity, where the second charging request message includes at least one piece of rate charging information of the data connection service. The second charging request message may be a charging data update request message or a charging resource update request message, and the description below takes the second charging request message as an updating charging data request message as an example.
比如,用户设备的速率计费策略对应PDU会话,则当满足触发条件(可参见实施例一中的描述)时,SMF实体可以通过更新计费数据请求消息向CHF实体发送PDU会话的速率计费信息。参见表4A所示,为更新计费数据请求消息的一种格式示例。For example, the rate charging policy of the user equipment corresponds to the PDU session, then when the trigger condition is met (see the description in Embodiment 1), the SMF entity can send the rate charging of the PDU session to the CHF entity through an update charging data request message information. Refer to Table 4A for an example format of the charging data update request message.
表4A:更新计费数据请求消息示例1Table 4A: Update Accounting Data Request Message Example 1
Figure PCTCN2022127905-appb-000008
Figure PCTCN2022127905-appb-000008
Figure PCTCN2022127905-appb-000009
Figure PCTCN2022127905-appb-000009
可以理解地,表4A中速率计费信息除包括数据传输速率区间的信息和对应的使用信息外,还可以包括时间单元“baseTime”、方式信息“method”,表4A仅为一种可能的格式示例。在其它可能的情形中,速率计费信息也可以不包括“baseTime”、方式信息“method”,即可以将“baseTime”、“method”作为三个数据传输速率区间共用参数携带在更新计费数据请求消息中,示例如下表4B所示。Understandably, the rate billing information in Table 4A may include not only data transmission rate interval information and corresponding usage information, but also time unit "baseTime" and method information "method". Table 4A is only one possible format example. In other possible situations, the rate charging information may not include "baseTime" and method information "method", that is, "baseTime" and "method" may be carried as common parameters of the three data transmission rate intervals in the updated charging data In the request message, an example is shown in Table 4B below.
表4B:更新计费数据请求消息示例1的又一种情形Table 4B: Yet another situation of update charging data request message example 1
Figure PCTCN2022127905-appb-000010
Figure PCTCN2022127905-appb-000010
Figure PCTCN2022127905-appb-000011
Figure PCTCN2022127905-appb-000011
又比如,速率计费策略对应第一费率组,则当满足第二类型的触发条件或第三类型的触发条件(可参见实施例一中的描述)时,SMF实体可以通过更新计费数据请求消息向CHF实体发送第一费率组的速率计费信息。示例性地,更新计费数据请求消息中还可以包括多个数据传输速率区间分别对应的QMI。参见表5所示,为更新计费数据请求消息的一种格式示例。For another example, if the rate charging policy corresponds to the first rate group, then when the second type of trigger condition or the third type of trigger condition (see the description in Embodiment 1) is met, the SMF entity can update the charging data by The request message sends the rate charging information of the first rate group to the CHF entity. Exemplarily, the charging data update request message may also include QMIs respectively corresponding to multiple data transmission rate intervals. See Table 5 for an example format of the charging data update request message.
表5:更新计费数据请求消息示例2Table 5: Update Accounting Data Request Message Example 2
Figure PCTCN2022127905-appb-000012
Figure PCTCN2022127905-appb-000012
Figure PCTCN2022127905-appb-000013
Figure PCTCN2022127905-appb-000013
又比如,速率计费策略对应第二费率组,则当满足第二类型的触发条件或第三类型的触发条件(可参见实施例一中的描述)时,SMF实体可以通过更新计费数据请求消息向CHF实体发送第二费率组的速率计费信息。参见表6所示,为更新计费数据请求消息的一种格式示例。For another example, the rate charging policy corresponds to the second rate group, then when the second type of trigger condition or the third type of trigger condition (see the description in Embodiment 1) is met, the SMF entity can update the charging data by The request message sends the rate charging information of the second rate group to the CHF entity. Refer to Table 6 for an example format of the charging data update request message.
表6:更新计费数据请求消息示例3Table 6: Update Accounting Data Request Message Example 3
Figure PCTCN2022127905-appb-000014
Figure PCTCN2022127905-appb-000014
Figure PCTCN2022127905-appb-000015
Figure PCTCN2022127905-appb-000015
可以理解地,上述是以更新计费数据请求消息包括PDU会话的速率计费信息、第一费率组的速率计费信息和第二费率组的速率计费信息的其中一个为例进行描述的。在其它可能的实施例中,更新计费数据请求消息也可以包括PDU会话的速率计费信息,和/或,一个或多个费率组的速率计费信息;其中,一个或多个费率组可以包括上述第一费率组和/或第二费率组。It can be understood that the above is described as an example of one of the rate charging information of the update charging data request message including the rate charging information of the PDU session, the rate charging information of the first rate group and the rate charging information of the second rate group of. In other possible embodiments, the update charging data request message may also include the rate charging information of the PDU session, and/or, the rate charging information of one or more rate groups; wherein, one or more rate groups The groups may include the above-mentioned first rate group and/or the second rate group.
S808,CHF实体接收第二计费请求消息,基于第二计费请求消息对用户设备进行计费处理。S808. The CHF entity receives the second charging request message, and performs charging processing on the user equipment based on the second charging request message.
示例性地,CHF实体还可以向SMF实体发送第二计费响应消息,第二计费响应消息用于向SMF实体通知计费处理结果。第二计费响应消息可以为更新计费数据响应消息或者说计费资源更新响应消息。CHF实体对用户设备进行计费处理的实现可以参见实施例一中的描述,不再赘述。Exemplarily, the CHF entity may also send a second charging response message to the SMF entity, and the second charging response message is used to notify the SMF entity of the charging processing result. The second charging response message may be a charging data update response message or a charging resource update response message. For the implementation of the CHF entity charging the user equipment, reference may be made to the description in Embodiment 1, and details are not repeated here.
示例性地,若第二计费请求消息包括第一费率组的至少一条速率计费信息,以及第一费率组对应的配额请求,则CHF实体基于至少一条速率计费信息进行计费处理后,还可以为第一费率组分配新的配额(比如多个数据传输速率区间分别对应的配额,或者多个数据传输速率区间对应的总配额),并通过第二计费响应消息发送给SMF实体。Exemplarily, if the second charging request message includes at least one rate charging information of the first rate group and a quota request corresponding to the first rate group, the CHF entity performs charging processing based on at least one rate charging information Afterwards, new quotas (such as quotas corresponding to multiple data transmission rate ranges, or total quotas corresponding to multiple data transmission rate ranges) can also be allocated to the first rate group, and sent to the SMF entity.
实施例三Embodiment three
在实施例三中,将基于图5C所示意的网络架构,描述本申请实施例提供的计费方法的一种可能的实现流程。In the third embodiment, based on the network architecture shown in FIG. 5C , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
图9为本申请实施例三提供的计费方法所对应的流程示意图,如图9所示,该方法可以包括:Fig. 9 is a schematic flowchart corresponding to the billing method provided in Embodiment 3 of the present application. As shown in Fig. 9, the method may include:
S901,SMF实体接收来自用户设备的PDU会话建立请求消息。S901. The SMF entity receives a PDU session establishment request message from a user equipment.
S902,SMF实体向PCF实体发送会话策略请求消息,会话策略请求消息包括用户设备的标识;相应地,PCF实体可以接收会话策略请求消息。S902. The SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
S903,PCF实体向SMF实体发送会话策略响应消息;相应地,SMF实体可以接收会话策略请求消息,会话策略响应消息中可以包括用户设备的多个费率组的标识以及对应的计费类型。S903, the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message, and the session policy response message may include identifiers of multiple charging rate groups of the user equipment and corresponding charging types.
S904,SMF实体向CHF实体发送第一计费请求消息;相应地,CHF实体可以接收第一计费请求消息。其中,第一计费请求消息可以包括用户设备的标识、PDU会话的标识、用户设备的多个费率组的标识,可选地,还可以包括在线计费的费率组对应的配额请求。S904, the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message. Wherein, the first charging request message may include the identification of the user equipment, the identification of the PDU session, the identifications of multiple charging rate groups of the user equipment, and optionally, may also include a quota request corresponding to the charging rate group of the online charging.
S905,CHF实体向SMF实体发送第一计费响应消息;相应地,SMF实体可以接收第一计费响应消息。S905, the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
作为一种可能的实现,CHF实体接收到第一计费请求消息后,可以基于第一计费请求消息中包括的用户设备的标识,获取用户设备的签约信息。进而基于签约信息和在线计费的费率组对应的配额请求,为在线计费的费率组分配配额,并通过第一计费响应消息向SMF实体发送配额,该配额可以是指在线计费的费率组对应的配额。As a possible implementation, after receiving the first charging request message, the CHF entity may acquire subscription information of the user equipment based on the identifier of the user equipment included in the first charging request message. Then, based on the subscription information and the quota request corresponding to the online charging rate group, allocate a quota for the online charging rate group, and send the quota to the SMF entity through the first charging response message, the quota may refer to the online charging The quota corresponding to the rate group.
S906,CHF实体向NWDAF实体发送用户设备的数据连接业务的速率计费策略;相应地,NWDAF实体可以接收数据连接业务的速率计费策略。S906, the CHF entity sends the rate charging policy of the data connection service of the user equipment to the NWDAF entity; correspondingly, the NWDAF entity may receive the rate charging policy of the data connection service.
作为一种可能的实现,CHF实体可以基于用户设备的签约信息以及预设规则确定数据连接业务的速率计费策略,并通过订阅请求消息向NWDAF实体发送数据连接业务的速率计费策略,以及还可以通过订阅请求消息向NWDAF实体发送触发条件信息。也就是说,订阅请求消息可以包括数据连接业务的速率计费策略、触发条件信息,可选地,还可以包括其它可能的信息,比如用户设备的标识等,具体不做限定。其中,预设规则可以预先配置在CHF实体中,或者,也可以是由协议预先约定好的。此外,NWDAF实体接收到订阅请求消息后,可以向CHF实体发送订阅请求消息的响应,用于通知CHF实体订阅成功。As a possible implementation, the CHF entity can determine the rate charging policy of the data connection service based on the subscription information of the user equipment and preset rules, and send the rate charging policy of the data connection service to the NWDAF entity through a subscription request message, and also The trigger condition information can be sent to the NWDAF entity through a subscription request message. That is to say, the subscription request message may include the rate charging policy of the data connection service, trigger condition information, and optionally, may also include other possible information, such as the identifier of the user equipment, etc., which are not specifically limited. Wherein, the preset rule may be pre-configured in the CHF entity, or may be pre-agreed by the protocol. In addition, after receiving the subscription request message, the NWDAF entity may send a response to the subscription request message to the CHF entity, for notifying the CHF entity that the subscription is successful.
可以理解地,当速率计费策略对应PDU会话或第二费率组(离线计费)时,CHF实体向NWDAF实体发送的信息与实施例二中CHF实体向SMF实体发送的信息可以相同。当速率计费策略对应第一费率组(在线计费)时,CHF实体向NWDAF实体发送的信息与实施例二中CHF实体向SMF实体发送的信息的区别在于:由于NWDAF实体通常不具备配额管理功能,因此,CHF实体向NWDAF实体发送的信息不包括配额;而由于SMF实体具备配额管理功能,因此,CHF实体向SMF实体发送的信息可以包括配额(比如多个数据传输速率区间分别对应的配额,或多个数据传输速率区间对应的总配额)。Understandably, when the rate charging policy corresponds to the PDU session or the second rate group (offline charging), the information sent by the CHF entity to the NWDAF entity may be the same as the information sent by the CHF entity to the SMF entity in Embodiment 2. When the rate charging policy corresponds to the first rate group (online charging), the difference between the information sent by the CHF entity to the NWDAF entity and the information sent by the CHF entity to the SMF entity in Embodiment 2 is that the NWDAF entity usually does not have a quota management function, therefore, the information sent by the CHF entity to the NWDAF entity does not include quotas; and because the SMF entity has the quota management function, the information sent by the CHF entity to the SMF entity may include quotas (for example, multiple data transmission rate intervals corresponding to quota, or the total quota corresponding to multiple data transfer rate intervals).
本申请实施例对S905和S906的执行顺序不做限定,比如S906可以先于S905执行,或者S906也可以在S905之后执行,又或者S906和S905可以同时执行。The embodiment of the present application does not limit the execution order of S905 and S906. For example, S906 may be executed before S905, or S906 may be executed after S905, or S906 and S905 may be executed simultaneously.
S907,NWDAF实体根据数据连接业务的速率计费策略,生成数据连接业务的至少一条速率计费信息。S907. The NWDAF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy for the data connection service.
示例性地,NWDAF实体可以与数据连接业务对应的UPF实体进行通信,进而从UPF实体获取到使用量。比如UPF实体可以周期性向NWDAF实体上报使用量。Exemplarily, the NWDAF entity may communicate with the UPF entity corresponding to the data connection service, and then obtain the usage amount from the UPF entity. For example, the UPF entity may periodically report the usage amount to the NWDAF entity.
NWDAF实体生成数据连接业务的至少一条速率计费信息的具体实现可以参见实施例一中的S603,不再赘述。For the specific implementation of generating at least one piece of rate charging information of the data connection service by the NWDAF entity, reference may be made to S603 in Embodiment 1, and details are not repeated here.
S908,NWDAF实体向CHF实体发送数据连接业务的至少一条速率计费信息。S908. The NWDAF entity sends at least one piece of rate charging information of the data connection service to the CHF entity.
示例性地,NWDAF实体确定满足触发条件信息所指示的触发条件后,可以通过订阅通知消息向CHF实体发送数据连接业务的至少一条速率计费信息。Exemplarily, after the NWDAF entity determines that the trigger condition indicated by the trigger condition information is satisfied, it may send at least one piece of rate charging information of the data connection service to the CHF entity through a subscription notification message.
可以理解地,当速率计费策略对应PDU会话时,NWDAF实体上报的信息(包括速率计费信息)与实施例二中SMF实体上报的信息可以相同。当速率计费策略对应第一费率组(在线计费)或第二费率组时,实施例二中SMF实体上报的信息与NWDAF实体上报的信息的区别在于:SMF实体上报的信息可以包括QMI,而NWDAF实体上报的信息中可以不包括QMI。It can be understood that when the rate charging policy corresponds to the PDU session, the information (including rate charging information) reported by the NWDAF entity may be the same as the information reported by the SMF entity in Embodiment 2. When the rate charging policy corresponds to the first rate group (online charging) or the second rate group, the difference between the information reported by the SMF entity and the information reported by the NWDAF entity in Embodiment 2 is that the information reported by the SMF entity may include QMI, while the information reported by NWDAF entities may not include QMI.
S909,CHF实体接收数据连接业务的至少一条速率计费信息,基于数据连接业务的至少一条速率计费信息对用户设备进行计费处理。S909. The CHF entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information of the data connection service.
此处,CHF实体对用户设备进行计费处理的实现可以参见实施例一中的描述,不再赘述。Here, the implementation of the CHF entity charging the user equipment may refer to the description in Embodiment 1, and details are not repeated here.
可以理解地,实施例三中是由NWDAF实体采集速率计费信息,而SMF实体可以沿用现有技术中的实现,比如SMF实体可以采集用户设备的流量,并基于用户设备的流量进行配额管理等。It can be understood that in the third embodiment, the NWDAF entity collects the rate charging information, and the SMF entity can follow the implementation in the prior art. For example, the SMF entity can collect the traffic of the user equipment, and perform quota management based on the traffic of the user equipment, etc. .
实施例四Embodiment four
在实施例四中,将基于图5D所示意的网络架构,描述本申请实施例提供的计费方法的一种可能的实现流程。In Embodiment 4, based on the network architecture shown in FIG. 5D , a possible implementation process of the charging method provided in the embodiment of the present application will be described.
图10为本申请实施例四提供的计费方法所对应的流程示意图,如图10所示,该方法可以包括:Fig. 10 is a schematic flowchart corresponding to the billing method provided in Embodiment 4 of the present application. As shown in Fig. 10, the method may include:
S1001,SMF实体接收来自用户设备的PDU会话建立请求消息。S1001. An SMF entity receives a PDU session establishment request message from a user equipment.
S1002,SMF实体向PCF实体发送会话策略请求消息,会话策略请求消息包括用户设备的标识;相应地,PCF实体可以接收会话策略请求消息。S1002. The SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
S1003,PCF实体向SMF实体发送会话策略响应消息;相应地,SMF实体可以接收会话策略请求消息。S1003, the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message.
示例性地,PCF实体可以基于会话策略请求消息所包括的用户设备的标识,从UDM实体或者UDR获取用户设备的签约信息,进而基于签约信息确定用户设备的多个费率组的计费类型,计费类型可以包括在线计费和离线计费。以及,PCF实体还可以基于用户设备的签约信息和预设规则确定用户设备的数据连接业务的速率计费策略。其中,预设规则可以预先配置在PCF实体中,或者也可以是由协议预先约定好的。Exemplarily, the PCF entity may obtain the subscription information of the user equipment from the UDM entity or UDR based on the identifier of the user equipment included in the session policy request message, and then determine the charging types of multiple charging rate groups of the user equipment based on the subscription information, The charging type may include online charging and offline charging. And, the PCF entity may also determine the rate charging policy of the data connection service of the user equipment based on the subscription information of the user equipment and preset rules. Wherein, the preset rule may be pre-configured in the PCF entity, or may be pre-agreed by the protocol.
上述会话策略响应消息中可以包括用户设备的多个费率组的标识以及对应的计费类型,还可以包括数据连接业务的速率计费策略。可以理解地,PCF实体也可以通过其它可能的消息向SMF实体发送数据连接业务的速率计费策略,具体不做限定。The above session policy response message may include identifiers of multiple rate groups of the user equipment and corresponding charging types, and may also include a rate charging policy of the data connection service. It can be understood that the PCF entity may also send the rate charging policy of the data connection service to the SMF entity through other possible messages, which is not specifically limited.
S1004,SMF实体向CHF实体发送第一计费请求消息;相应地,CHF实体可以接收第一计费请求消息。S1004, the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
第一计费请求消息可以包括用户设备的标识、PDU会话的标识、用户设备的多个费率组的标识。可选地,第一计费请求消息还可以包括速率计费策略,比如第一计费请求消息可以包括速率计费策略中所包括的多个数据传输速率区间的信息。可选地,假设速率计费策略对应在线计费的费率组,则第一计费请求还可以包括在线计费的费率组对应的配额请求,或者多个数据传输速率区间分别对应的配额请求。其中,多个数据传输速率区间中第一数据传输速率区间对应的配额请求中可以包括第一数据传输速率的信息。The first charging request message may include an identifier of the user equipment, an identifier of a PDU session, and identifiers of multiple charging rate groups of the user equipment. Optionally, the first charging request message may also include a rate charging policy, for example, the first charging request message may include information on multiple data transmission rate intervals included in the rate charging policy. Optionally, assuming that the rate charging policy corresponds to a rate group for online charging, the first charging request may also include a quota request corresponding to the rate group for online charging, or quotas corresponding to multiple data transmission rate ranges ask. Wherein, the quota request corresponding to the first data transmission rate interval in the plurality of data transmission rate intervals may include information about the first data transmission rate.
S1005,CHF实体向SMF实体发送第一计费响应消息;相应地,SMF实体可以接收第一计费响应消息。S1005, the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
示例性地,若第一计费请求消息包括在线计费的费率组对应的配额请求,则CHF实体接收到第一计费请求消息后,可以基于在线计费的费率组对应的配额请求分配配额,并通过第一计费响应消息向SMF实体发送配额,该配额可以是指在线计费的费率组对应的配额(即速率计费策略的多个数据传输速率区间对应的总配额),或者也可以是指速率计费策略的多个数据传输速率区间分别对应的配额(比如CHF实体可以根据第一计费请求消息所包括的多个数据传输速率区间的信息,为多个数据传输速率区间分配对应的配额)。Exemplarily, if the first charging request message includes a quota request corresponding to the rate group of online charging, after receiving the first charging request message, the CHF entity may request based on the quota request corresponding to the rate group of online charging Assign a quota, and send the quota to the SMF entity through the first charging response message, the quota may refer to the quota corresponding to the rate group of online charging (that is, the total quota corresponding to the multiple data transmission rate intervals of the rate charging policy) , or may also refer to the respective quotas corresponding to the multiple data transmission rate ranges of the rate charging policy (for example, the CHF entity may, according to the information of the multiple data transmission rate ranges included in the first charging request message, set the quota for multiple data transmission rate ranges Quota corresponding to rate range allocation).
若第一计费请求消息包括多个数据传输速率区间分别对应的配额请求,则CHF实体接收到第一计费请求消息后,可以基于多个数据传输速率区间分别对应的配额请求,为多个数据传输速率区间分别分配配额,并通过第一计费响应消息向SMF实体发送多个数据传输速率区间分别对应的配额。If the first charging request message includes quota requests corresponding to multiple data transmission rate intervals, the CHF entity may, after receiving the first charging request message, The data transmission rate ranges are allocated with quotas respectively, and the quotas respectively corresponding to the multiple data transmission rate ranges are sent to the SMF entity through the first charging response message.
此外,CHF实体还可以通过第一计费响应消息向SMF实体发送触发条件信息。In addition, the CHF entity may also send trigger condition information to the SMF entity through the first charging response message.
S1006,SMF实体根据数据连接业务的速率计费策略,生成数据连接业务的至少一条速率计费信息。S1006. The SMF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy for the data connection service.
此处,SMF实体生成数据连接业务的至少一条速率计费信息的具体实现可以参见实施例一中的S603,不再赘述。Here, for the specific implementation of generating at least one piece of rate charging information of the data connection service by the SMF entity, reference may be made to S603 in Embodiment 1, and details are not repeated here.
S1007,SMF实体向CHF实体发送第二计费请求消息,第二计费请求消息包括数据连接业务的至少一条速率计费信息。S1007. The SMF entity sends a second charging request message to the CHF entity, where the second charging request message includes at least one piece of rate charging information of the data connection service.
此处,SMF实体向CHF实体发送数据连接业务的至少一条速率计费信息的具体实现可以参见实施例二中的S807,不再赘述。Here, the specific implementation of the SMF entity sending at least one piece of rate charging information of the data connection service to the CHF entity may refer to S807 in Embodiment 2, and details are not repeated here.
S1008,CHF实体接收数据连接业务的至少一条速率计费信息,基于数据连接业务的至少一条速率计费信息对用户设备进行计费处理。S1008. The CHF entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information of the data connection service.
此处,CHF实体对用户设备进行计费处理的实现可以参见实施例一中的描述,不再赘述。进一步地,若SMF实体发送的第二计费请求消息还包括在线计费的费率组对应的配额请求,则CHF实体还可以根据该配额请求分配新的配额,新的配额可以是指在线计费的费率组对应的配额,或者也可以是指该费率组的速率计费策略的多个数据传输速率区间分别对应的配额。若SMF实体发送的第二计费请求消息还包括该费率组的速率计费策略的多个数据传输速率区间对应的配额请求,则CHF实体还可以根据多个数据传输速率区间对应的配额请求,为多个数据传输速率区间分别分配新的配额,并通过第二计费响应消息发送给SMF实体。Here, the implementation of the CHF entity charging the user equipment may refer to the description in Embodiment 1, and details are not repeated here. Further, if the second charging request message sent by the SMF entity also includes a quota request corresponding to the rate group of online charging, the CHF entity may also allocate a new quota according to the quota request, and the new quota may refer to the online charging The quota corresponding to the rate group of the rate group, or the quota corresponding to the multiple data transmission rate ranges of the rate charging policy of the rate group. If the second charging request message sent by the SMF entity also includes quota requests corresponding to multiple data transmission rate intervals of the rate charging policy of the rate group, the CHF entity may also use the quota request corresponding to multiple data transmission rate intervals. , allocating new quotas for multiple data transmission rate intervals, and sending them to the SMF entity through the second charging response message.
实施例五Embodiment five
在实施例五中,将基于图5E所示意的网络架构,描述本申请实施例提供的计费方法 的一种可能的实现流程。In the fifth embodiment, based on the network architecture shown in Figure 5E, a possible implementation process of the charging method provided by the embodiment of the present application will be described.
图11为本申请实施例五提供的计费方法所对应的流程示意图,如图11所示,该方法可以包括:Fig. 11 is a schematic flowchart corresponding to the billing method provided in Embodiment 5 of the present application. As shown in Fig. 11, the method may include:
S1101,SMF实体接收来自用户设备的PDU会话建立请求消息。S1101. The SMF entity receives a PDU session establishment request message from a user equipment.
S1102,SMF实体向PCF实体发送会话策略请求消息,会话策略请求消息包括用户设备的标识;相应地,PCF实体可以接收会话策略请求消息。S1102. The SMF entity sends a session policy request message to the PCF entity, where the session policy request message includes the identifier of the user equipment; correspondingly, the PCF entity may receive the session policy request message.
S1103,PCF实体向SMF实体发送会话策略响应消息;相应地,SMF实体可以接收会话策略请求消息。S1103, the PCF entity sends a session policy response message to the SMF entity; correspondingly, the SMF entity may receive the session policy request message.
示例性地,PCF实体可以基于会话策略请求消息所包括的用户设备的标识,从UDM实体或者UDR获取用户设备的签约信息,进而基于签约信息确定用户设备的多个费率组的计费类型,计费类型可以包括在线计费和离线计费。以及,PCF实体还可以基于用户设备的签约信息和预设规则1确定用户设备的数据连接业务的部分速率计费策略。其中,预设规则1可以预先配置在PCF实体中,或者也可以是由协议预先约定好的。Exemplarily, the PCF entity may obtain the subscription information of the user equipment from the UDM entity or UDR based on the identifier of the user equipment included in the session policy request message, and then determine the charging types of multiple charging rate groups of the user equipment based on the subscription information, The charging type may include online charging and offline charging. And, the PCF entity may also determine the part-rate charging policy of the data connection service of the user equipment based on the subscription information of the user equipment and preset rule 1. Wherein, the preset rule 1 may be pre-configured in the PCF entity, or may be pre-agreed by a protocol.
上述会话策略响应消息中可以包括用户设备的多个费率组的标识以及对应的计费类型,还可以包括数据连接业务的部分速率计费策略。The above session policy response message may include identifiers of multiple rate groups of the user equipment and corresponding charging types, and may also include a partial rate charging policy of the data connection service.
S1104,SMF实体向CHF实体发送第一计费请求消息;相应地,CHF实体可以接收第一计费请求消息。S1104, the SMF entity sends the first charging request message to the CHF entity; correspondingly, the CHF entity may receive the first charging request message.
第一计费请求消息可以包括用户设备的标识、PDU会话的标识、用户设备的多个费率组的标识,可选地,还可以包括在线计费的费率组对应的配额请求。The first charging request message may include an identifier of the user equipment, an identifier of the PDU session, identifiers of multiple rate groups of the user equipment, and optionally, may also include a quota request corresponding to the rate group of the online charging.
此外,第一计费请求消息还可以包括部分速率计费策略。In addition, the first charging request message may also include a partial rate charging policy.
S1105,CHF实体向SMF实体发送第一计费响应消息;相应地,SMF实体可以接收第一计费响应消息。S1105, the CHF entity sends the first charging response message to the SMF entity; correspondingly, the SMF entity may receive the first charging response message.
示例性地,CHF实体接收到第一计费请求消息后,可以基于用户设备的签约信息和预设规则2确定数据连接业务的另一部分速率计费策略,并通过第一计费响应消息发送给SMF实体。以及,CHF实体还可以基于在线计费的费率组对应的配额请求,为在线计费的费率组分配配额,并通过第一计费响应消息向SMF实体发送配额。该配额可以是指在线计费的费率组对应的配额(即该费率组的速率计费策略的多个数据传输速率区间对应的总配额),或者也可以是指该费率组的速率计费策略的多个数据传输速率区间分别对应的配额。此外,CHF实体还可以通过第一计费响应消息向SMF实体发送触发条件信息。Exemplarily, after the CHF entity receives the first charging request message, it can determine another part of the rate charging policy for the data connection service based on the subscription information of the user equipment and the preset rule 2, and send it to the SMF entity. And, the CHF entity may also allocate a quota for the online charging rate group based on the quota request corresponding to the online charging rate group, and send the quota to the SMF entity through the first charging response message. The quota can refer to the quota corresponding to the rate group of online charging (that is, the total quota corresponding to the multiple data transmission rate ranges of the rate charging policy of the rate group), or it can refer to the rate of the rate group Quotas corresponding to multiple data transmission rate ranges of the billing policy. In addition, the CHF entity may also send trigger condition information to the SMF entity through the first charging response message.
举个例子,PCF实体所确定的部分速率计费策略可以包括多个数据传输速率区间的信息,CHF实体所确定的部分速率计费策略可以包括时间范围、时间单元、时间信息等。可以理解地,本申请实施例中对PCF实体所确定的部分速率计费策略所包括的内容,以及CHF实体所确定的是另一部分速率计费策略所包括的内容不做限定。For example, the part-rate charging policy determined by the PCF entity may include information on multiple data transmission rate ranges, and the part-rate charging policy determined by the CHF entity may include time range, time unit, and time information. It can be understood that in this embodiment of the present application, there is no limitation on the content included in the part-rate charging policy determined by the PCF entity, and the content included in the other part-rate charging policy determined by the CHF entity.
S1106,SMF实体根据数据连接业务的速率计费策略(包括来自PCF实体的部分速率计费策略和来自CHF实体的另一部分速率计费策略),生成数据连接业务的至少一条速率计费信息。S1106. The SMF entity generates at least one piece of rate charging information for the data connection service according to the rate charging policy of the data connection service (including a part of the rate charging policy from the PCF entity and another part of the rate charging policy from the CHF entity).
此处,SMF实体生成数据连接业务的至少一条速率计费信息的具体实现可以参见实施例一中的S603,不再赘述。Here, for the specific implementation of generating at least one piece of rate charging information of the data connection service by the SMF entity, reference may be made to S603 in Embodiment 1, and details are not repeated here.
S1107,SMF实体向CHF实体发送数据连接业务的至少一条速率计费信息。S1107. The SMF entity sends at least one piece of rate charging information of the data connection service to the CHF entity.
此处,SMF实体向CHF实体发送数据连接业务的至少一条速率计费信息的具体实现 可以参见实施例二中的S807,不再赘述。Here, the specific implementation of the SMF entity sending at least one piece of rate charging information of the data connection service to the CHF entity can refer to S807 in the second embodiment, and will not be repeated here.
S1108,CHF实体接收数据连接业务的至少一条速率计费信息,基于数据连接业务的至少一条速率计费信息对用户设备进行计费处理。S1108. The CHF entity receives at least one piece of rate charging information of the data connection service, and performs charging processing on the user equipment based on the at least one piece of rate charging information of the data connection service.
此处,CHF实体对用户设备进行计费处理的实现可以参见实施例一中的描述,不再赘述。Here, the implementation of the CHF entity charging the user equipment may refer to the description in Embodiment 1, and details are not repeated here.
针对于上述实施例一至实施例五,可以理解的是:With regard to the above-mentioned embodiment 1 to embodiment 5, it can be understood that:
(1)实施例一至实施例五所描述的各个流程图的步骤编号仅为执行流程的一种示例,并不构成对步骤执行的先后顺序的限制,本申请实施例中相互之间没有时序依赖关系的步骤之间没有严格的执行顺序。各个流程图中所示意的步骤并非全部是必须执行的步骤,可以根据实际需要在各个流程图的基础上删除部分步骤,或者也可以根据实际需要在各个流程图的基础上增添其它可能的步骤。(1) The step numbers of the various flow charts described in Embodiment 1 to Embodiment 5 are only an example of the execution flow, and do not constitute a restriction on the order of execution of the steps. There is no timing dependency between each other in the embodiments of the present application There is no strict order of execution among the steps. Not all the steps illustrated in each flow chart are necessary steps, and some steps may be deleted on the basis of each flow chart according to actual needs, or other possible steps may be added on the basis of each flow chart according to actual needs.
(2)上述侧重描述了实施例一至实施例五中不同实施例之间的差异之处,除差异之处的其它内容,实施例一至实施例五之间可以相互参照;此外,同一实施例中,不同实现方式或不同示例之间也可以相互参照。(2) The above emphatically describes the differences between different embodiments in Embodiment 1 to Embodiment 5. Except for other content of differences, Embodiment 1 to Embodiment 5 can be referred to each other; in addition, in the same embodiment , different implementations or different examples can also refer to each other.
上述主要从实体交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,为了实现上述功能,计费策略实体、计费处理实体、速率计费信息采集实体可以包括执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请的实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of entity interaction. It can be understood that, in order to realize the above functions, the charging policy entity, the charging processing entity, and the rate charging information collection entity may include corresponding hardware structures and/or software modules for performing respective functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
本申请实施例可以根据上述方法示例对计费策略实体、计费处理实体、速率计费信息采集实体进行功能模块或单元的划分,例如,可以对应各个功能划分各个功能模块或单元,也可以将两个或两个以上的功能集成在一个模块或单元中。上述集成的模块或单元既可以采用硬件的形式实现,也可以采用软件功能模块或单元的形式实现。The embodiments of the present application can divide the functional modules or units of the charging policy entity, charging processing entity, and rate charging information collection entity according to the above method example, for example, each functional module or unit can be divided corresponding to each function, or can be divided into Two or more functions are integrated in one module or unit. The above-mentioned integrated modules or units can be implemented in the form of hardware or in the form of software function modules or units.
在采用集成的单元的情况下,图12示出了本申请实施例中所涉及的装置的可能的示例性框图。如图12所示,装置1200可以包括:处理模块1202和通信模块1203。处理模块1202用于对装置1200的动作进行控制管理。通信模块1203用于支持装置1200与其他设备的通信。可选地,通信模块1203也称为收发模块,可以包括接收模块和/或发送模块,分别用于执行接收和发送操作。装置1200还可以包括存储模块1201,用于存储装置1200的程序代码和/或数据。In the case of using an integrated unit, FIG. 12 shows a possible exemplary block diagram of the device involved in the embodiment of the present application. As shown in FIG. 12 , an apparatus 1200 may include: a processing module 1202 and a communication module 1203 . The processing module 1202 is used to control and manage the actions of the device 1200 . The communication module 1203 is used to support the communication between the apparatus 1200 and other devices. Optionally, the communication module 1203 is also called a transceiver module, and may include a receiving module and/or a sending module, configured to perform receiving and sending operations respectively. The device 1200 may further include a storage module 1201 for storing program codes and/or data of the device 1200 .
(1)该装置1200可以为上述实施例中的计费策略实体。处理模块1202可以支持装置1200执行上文中各方法示例中计费策略实体的动作。或者,处理模块1202主要执行方法示例中的计费策略实体的内部动作,通信模块1203可以支持装置1200与其它实体之间的通信。(1) The apparatus 1200 may be the charging policy entity in the above embodiment. The processing module 1202 may support the apparatus 1200 to execute the actions of the charging policy entity in each method example above. Alternatively, the processing module 1202 mainly executes internal actions of the charging policy entity in the method example, and the communication module 1203 may support communication between the apparatus 1200 and other entities.
具体地,在一个实施例中,处理模块1202用于:确定用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息,每条速率计费信息包含数据速率区间的信息和对应的使用信息, 所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;以及,通信模块1203用于:向所述速率计费信息采集实体发送所述速率计费策略。有关上述处理模块1202和通信模块1203更详细的描述可以直接参考上述方法实施例中的相关描述,这里不加赘述。Specifically, in one embodiment, the processing module 1202 is configured to: determine the rate charging policy of the data connection service of the user equipment, and the rate charging policy is used to instruct the rate charging information collection entity to generate the rate charging policy of the data connection service At least one piece of rate charging information, each piece of rate charging information includes information on a data rate range and corresponding usage information, and the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity , the usage information includes the accumulated usage of the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval; and the communication module 1203 is configured to: charge the rate The information collection entity sends the rate charging policy. For a more detailed description of the processing module 1202 and the communication module 1203, reference may be made directly to relevant descriptions in the above method embodiments, and details are not repeated here.
(2)该装置1200可以为上述实施例中的计费处理实体。处理模块1202可以支持装置1200执行上文中各方法示例中计费处理实体的动作。或者,处理模块1202主要执行方法示例中的计费处理实体的内部动作,通信模块1203可以支持装置1200与其它实体之间的通信。(2) The apparatus 1200 may be the charging processing entity in the above embodiment. The processing module 1202 may support the apparatus 1200 to execute the actions of the charging processing entity in the above method examples. Alternatively, the processing module 1202 mainly executes internal actions of the charging processing entity in the method example, and the communication module 1203 may support communication between the apparatus 1200 and other entities.
具体地,在一个实施例中,通信模块1203用于:接收速率计费信息采集实体发送的用户设备的数据连接业务的至少一条速率计费信息,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;处理模块1202用于:基于所述至少一条速率计费信息对所述用户设备进行计费处理。有关上述处理模块1202和通信模块1203更详细的描述可以直接参考上述方法实施例中的相关描述,这里不加赘述。Specifically, in one embodiment, the communication module 1203 is configured to: receive at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, each piece of rate charging information includes information and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service is within the range The accumulated usage for the data connection service when the data transmission rate is within the range; the processing module 1202 is configured to: perform charging processing on the user equipment based on the at least one piece of rate charging information. For a more detailed description of the processing module 1202 and the communication module 1203, reference may be made directly to relevant descriptions in the above method embodiments, and details are not repeated here.
(3)该装置1200可以为上述实施例中的速率计费信息采集实体。处理模块1202可以支持装置1200执行上文中各方法示例中速率计费信息采集实体的动作。或者,处理模块1202主要执行方法示例中的速率计费信息采集实体的内部动作,通信模块1203可以支持装置1200与其它实体之间的通信。(3) The apparatus 1200 may be the rate charging information collection entity in the above embodiment. The processing module 1202 may support the apparatus 1200 to execute the actions of the rate charging information collection entity in the above method examples. Alternatively, the processing module 1202 mainly executes the internal actions of the rate charging information collection entity in the method example, and the communication module 1203 may support communication between the apparatus 1200 and other entities.
具体地,在一个实施例中,通信模块1203用于:接收计费策略实体发送的用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示所述速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息;处理模块1202用于:根据所述速率计费策略,生成所述至少一条速率计费信息;其中,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量。有关上述处理模块1202和通信模块1203更详细的描述可以直接参考上述方法实施例中的相关描述,这里不加赘述。Specifically, in one embodiment, the communication module 1203 is configured to: receive the rate charging policy of the data connection service of the user equipment sent by the charging policy entity, the rate charging policy is used to indicate that the rate charging information collection The entity generates at least one piece of rate charging information of the data connection service; the processing module 1202 is configured to: generate the at least one piece of rate charging information according to the rate charging policy; wherein each piece of rate charging information includes data transmission Information about the rate interval and corresponding usage information; the data transmission rate interval is one of the multiple data transmission rate intervals obtained by the rate charging information collection entity, and the usage information includes when the data transmission rate of the data connection service The usage amount accumulated for the data connection service when the rate is within the data transmission rate interval. For a more detailed description of the processing module 1202 and the communication module 1203, reference may be made directly to relevant descriptions in the above method embodiments, and details are not repeated here.
以上装置中模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块以硬件的形式实现。例如,各个模块可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该模块的功能。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。The division of modules in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation. Moreover, all the modules in the device can be realized in the form of software called by the processing element; they can also be realized in the form of hardware; some modules can also be realized in the form of software called by the processing element, and some modules can be realized in the form of hardware. For example, each module can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function. In addition, all or part of these modules can be integrated together, and can also be implemented independently. The processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capability. In the process of implementation, each step of the above method or each module above may be realized by an integrated logic circuit of hardware in the processor element, or implemented in the form of software called by the processing element.
在一个例子中,以上任一装置中的模块可以是被配置成实施以上方法的一个或多个集 成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的模块可以通过处理元件调度程序的形式实现时,该处理元件可以是处理器,比如通用中央处理器(central processing unit,CPU),或其它可以调用程序的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。In one example, the modules in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA), or a combination of at least two of these integrated circuit forms. For another example, when the modules in the device can be implemented in the form of a processing element scheduler, the processing element can be a processor, such as a general-purpose central processing unit (central processing unit, CPU), or other processors that can call programs. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
以上用于接收的模块是一种该装置的接口电路,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该接收模块是该芯片用于从其它芯片或装置接收信号的接口电路。以上用于发送的模块是一种该装置的接口电路,用于向其它装置发送信号。例如,当该装置以芯片的方式实现时,该发送模块是该芯片用于向其它芯片或装置发送信号的接口电路。The above module for receiving is an interface circuit of the device for receiving signals from other devices. For example, when the device is implemented in the form of a chip, the receiving module is an interface circuit for the chip to receive signals from other chips or devices. The above sending module is an interface circuit of the device, and is used to send signals to other devices. For example, when the device is implemented in the form of a chip, the sending module is an interface circuit used by the chip to send signals to other chips or devices.
参考图13,为本申请实施例提供的一种装置的结构示意图。装置1300可以为以上实施例中的计费策略实体、计费处理实体或速率计费信息采集实体,用于实现以上实施例中计费策略实体、计费处理实体或速率计费信息采集实体的功能。Referring to FIG. 13 , it is a schematic structural diagram of a device provided by an embodiment of the present application. Apparatus 1300 may be the charging policy entity, charging processing entity, or rate charging information collection entity in the above embodiments, and is used to implement the charging policy entity, charging processing entity, or rate charging information collection entity in the above embodiments. Function.
如图13所示,装置1300可包括处理器1301、存储器1302以及接口电路1303。处理器1301可用于对通信协议以及通信数据进行处理,以及对装置1300进行控制。存储器1302可用于存储程序和数据,处理器1301可基于该程序执行本申请实施例中由装置1300执行的方法。接口电路1303可用于装置1300与其他设备进行通信,该通信可以为有线通信或无线通信,该接口电路例如可以是服务化接口。As shown in FIG. 13 , the device 1300 may include a processor 1301 , a memory 1302 and an interface circuit 1303 . The processor 1301 can be used for processing the communication protocol and communication data, and controlling the device 1300 . The memory 1302 may be used to store programs and data, and the processor 1301 may execute the method performed by the device 1300 in the embodiment of the present application based on the programs. The interface circuit 1303 can be used for the apparatus 1300 to communicate with other devices, the communication can be wired communication or wireless communication, and the interface circuit can be, for example, a service interface.
以上存储器1302也可以是外接于装置1300,此时装置1300可包括接口电路1303以及处理器1301。以上接口电路1303也可以是外接于装置1300,此时装置1300可包括存储器1302以及处理器1301。当接口电路1303以及存储器1302均外接于装置1300时,装置1300可包括处理器1301。The above memory 1302 may also be externally connected to the device 1300 , and the device 1300 may include an interface circuit 1303 and a processor 1301 at this time. The above interface circuit 1303 may also be externally connected to the device 1300 , and in this case the device 1300 may include a memory 1302 and a processor 1301 . When both the interface circuit 1303 and the memory 1302 are externally connected to the device 1300 , the device 1300 may include a processor 1301 .
图13所示的装置1300能够实现上述方法实施例中涉及装置1300的各个过程。图13所示的装置1300中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见上述方法实施例中的描述,为避免重复,此处适当省略详述描述。The apparatus 1300 shown in FIG. 13 can implement various processes related to the apparatus 1300 in the foregoing method embodiments. The operations and/or functions of the various modules in the apparatus 1300 shown in FIG. 13 are respectively for implementing the corresponding processes in the foregoing method embodiments. For details, reference may be made to the descriptions in the foregoing method embodiments, and detailed descriptions are appropriately omitted here to avoid repetition.
本申请实施例中的术语“系统”和“网络”可被互换使用。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A、同时存在A和B、单独存在B的情况,其中A,B可以是单数或者复数。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如“A,B和C中的至少一个”包括A,B,C,AB,AC,BC或ABC。以及,除非有特别说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。The terms "system" and "network" in the embodiments of the present application may be used interchangeably. "And/or" describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example "at least one of A, B and C" includes A, B, C, AB, AC, BC or ABC. And, unless otherwise specified, ordinal numerals such as "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects degree.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. Each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (45)

  1. 一种计费方法,应用于速率计费信息采集实体,其特征在于,所述方法包括:A charging method applied to a rate charging information collection entity, characterized in that the method includes:
    接收计费策略实体发送的用户设备的数据连接业务的速率计费策略,所述速率计费策略用于指示所述速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息;receiving the rate charging policy for the data connection service of the user equipment sent by the charging policy entity, where the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service;
    根据所述速率计费策略,生成所述至少一条速率计费信息;generating the at least one piece of rate charging information according to the rate charging policy;
    其中,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量。Wherein, each piece of rate charging information includes information on a data transmission rate range and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage The information includes usage accumulated for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval.
  2. 如权利要求1所述的方法,其特征在于:The method of claim 1, characterized in that:
    所述数据连接业务包括所述用户设备的数据连接会话中的所有业务数据流;或者,The data connection service includes all service data flows in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个服务质量QoS流对应的多个业务数据流;或者,The data connection service includes multiple service data flows corresponding to one quality of service QoS flow in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个费率组对应的多个业务数据流;或者,The data connection service includes multiple service data streams corresponding to one rate group in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个业务数据流。The data connection service includes a service data flow in the data connection session of the user equipment.
  3. 如权利要求1或2所述的方法,其特征在于,所述速率计费策略包括所述多个数据传输速率区间的信息;The method according to claim 1 or 2, wherein the rate charging policy includes information on the multiple data transmission rate intervals;
    所述方法还包括:从所述速率计费策略获取所述多个数据传输速率区间。The method further includes: acquiring the multiple data transmission rate intervals from the rate charging policy.
  4. 如权利要求1至3中任一项所述的方法,其特征在于,所述速率计费策略包括时间范围;The method according to any one of claims 1 to 3, wherein the rate charging strategy includes a time range;
    根据所述速率计费策略,生成所述数据连接业务的至少一条速率计费信息,包括:根据所述速率计费策略,在所述时间范围内生成所述数据连接业务的至少一条速率计费信息。Generating at least one piece of rate charging information for the data connection service according to the rate charging policy includes: generating at least one piece of rate charging information for the data connection service within the time range according to the rate charging policy information.
  5. 如权利要求1至4中任一项所述的方法,其特征在于,所述速率计费策略包括时间单元;The method according to any one of claims 1 to 4, wherein the rate charging policy includes a time unit;
    所述方法还包括:每隔所述时间单元确定所述时间单元内所述数据连接业务的数据传输速率。The method further includes: determining the data transmission rate of the data connection service in the time unit every time unit.
  6. 如权利要求5所述的方法,其特征在于,所述数据连接业务对应多个用户面功能实体;The method according to claim 5, wherein the data connection service corresponds to a plurality of user plane functional entities;
    所述时间单元内所述数据连接业务的数据传输速率为所述数据连接业务在所述多个用户面功能实体上的总数据传输速率;The data transmission rate of the data connection service in the time unit is the total data transmission rate of the data connection service on the multiple user plane functional entities;
    其中,所述总数据传输速率是基于所述数据连接业务在所述多个用户面功能实体上的总流量得到的;或者,所述总数据传输速率为所述多个用户面功能实体分别对应的所述数据连接业务的数据传输速率之和。Wherein, the total data transmission rate is obtained based on the total traffic of the data connection service on the multiple user plane functional entities; or, the total data transmission rate is obtained by corresponding to the multiple user plane functional entities respectively The sum of the data transmission rates of the data connection services.
  7. 如权利要求5或6所述的方法,其特征在于,所述速率计费策略包括方式信息,所述方式信息用于指示第一方式或第二方式;The method according to claim 5 or 6, wherein the rate charging policy includes mode information, and the mode information is used to indicate the first mode or the second mode;
    当所述方式信息指示所述第一方式时,确定所述时间单元内所述数据连接业务的数据传输速率,包括:基于所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率;When the mode information indicates the first mode, determining the data transmission rate of the data connection service in the time unit includes: calculating the data transmission rate of the data connection service in the time unit based on the duration of the time unit data transfer rate;
    当所述方式信息指示所述第二方式时,确定所述时间单元内所述数据连接业务的数据传输速率,包括:基于所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率。When the mode information indicates the second mode, determining the data transmission rate of the data connection service in the time unit includes: calculating the data in the time unit based on the duration of traffic generation in the time unit The data transfer rate of the connection service.
  8. 如权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, further comprising:
    向计费处理实体发送所述至少一条速率计费信息。Sending the at least one piece of rate charging information to a charging processing entity.
  9. 如权利要求1至8中任一项所述的方法,其特征在于,所述速率计费信息采集实体为会话管理功能实体或者网络数据分析功能实体。The method according to any one of claims 1 to 8, wherein the rate charging information collection entity is a session management function entity or a network data analysis function entity.
  10. 如权利要求1至8中任一项所述的方法,其特征在于,所述速率计费信息采集实体为会话管理功能实体,所述方法还包括:The method according to any one of claims 1 to 8, wherein the rate charging information collection entity is a session management function entity, and the method further comprises:
    接收所述计费处理实体发送的所述多个数据传输速率区间分别对应的配额;receiving quotas respectively corresponding to the plurality of data transmission rate intervals sent by the charging processing entity;
    其中,所述使用量为所述数据传输速率区间对应的配额的使用量。Wherein, the usage amount is the usage amount of the quota corresponding to the data transmission rate range.
  11. 如权利要求10所述的方法,其特征在于,所述方法还包括:接收所述计费处理实体发送的触发条件信息;The method according to claim 10, further comprising: receiving trigger condition information sent by the charging processing entity;
    所述触发条件信息包括第一配额对应的阈值;向计费处理实体发送所述至少一条速率计费信息,包括:确定第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值后,向所述计费处理实体发送所述至少一条速率计费信息;和/或,The trigger condition information includes a threshold corresponding to the first quota; sending the at least one piece of rate charging information to the charging processing entity includes: determining that the available quota corresponding to the first data transmission rate interval is less than or equal to the first quota corresponding to After the threshold value of , sending the at least one piece of rate charging information to the charging processing entity; and/or,
    所述触发条件信息包括第一配额的有效期;向计费处理实体发送所述至少一条速率计费信息,包括:确定所述第一配额的有效期届满后,向所述计费处理实体发送所述至少一条速率计费信息;The trigger condition information includes the validity period of the first quota; sending the at least one piece of rate charging information to the charging processing entity includes: after determining that the validity period of the first quota expires, sending the charging processing entity the At least one piece of rate charging information;
    所述第一配额为所述第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。The first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  12. 一种计费方法,应用于计费策略实体,其特征在于,所述方法包括:A charging method applied to a charging policy entity, characterized in that the method includes:
    为用户设备的数据连接业务生成速率计费策略,所述速率计费策略用于指示速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息,每条速率计费信息包含数据传输速率区间的信息和对应的使用信息,所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;Generate a rate charging policy for the data connection service of the user equipment, the rate charging policy is used to instruct the rate charging information collection entity to generate at least one piece of rate charging information for the data connection service, each piece of rate charging information includes data Information on the transmission rate range and corresponding usage information, the data transmission rate range is one of multiple data transmission rate ranges obtained by the rate charging information collection entity, and the usage information includes when the data connection service data the accumulated usage for the data connection service when the transmission rate is within the data transmission rate interval;
    向所述速率计费信息采集实体发送所述速率计费策略。Sending the rate charging policy to the rate charging information collection entity.
  13. 如权利要求12所述的方法,其特征在于:The method of claim 12, wherein:
    所述数据连接业务包括所述用户设备的数据连接会话中的所有业务数据流;或者,The data connection service includes all service data flows in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个服务质量QoS流对应的多个业务数据流;或者,The data connection service includes multiple service data flows corresponding to one quality of service QoS flow in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个费率组对应的多个业务数据流;或者,The data connection service includes multiple service data streams corresponding to one rate group in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个业务数据流。The data connection service includes a service data flow in the data connection session of the user equipment.
  14. 如权利要求12或13所述的方法,其特征在于,所述速率计费策略包括所述多个数据传输速率区间的信息。The method according to claim 12 or 13, wherein the rate charging policy includes information of the multiple data transmission rate intervals.
  15. 如权利要求12至14中任一项所述的方法,其特征在于,所述速率计费策略包括时间范围,所述时间范围用于指示所述速率计费信息采集实体在所述时间范围内生成所述数据连接业务的至少一条速率计费信息。The method according to any one of claims 12 to 14, wherein the rate charging policy includes a time range, and the time range is used to indicate that the rate charging information collection entity is within the time range Generate at least one piece of rate charging information for the data connection service.
  16. 如权利要求12至15中任一项所述的方法,其特征在于,所述速率计费策略包括时间单元,所述时间单元用于指示所述速率计费信息采集实体每隔所述时间单元确定所述时间单元内所述数据连接业务的数据传输速率。The method according to any one of claims 12 to 15, wherein the rate charging policy includes a time unit, and the time unit is used to instruct the rate charging information collection entity to Determine the data transmission rate of the data connection service within the time unit.
  17. 如权利要求16所述的方法,其特征在于,所述速率计费策略包括方式信息,所述方式信息用于指示第一方式或第二方式;The method according to claim 16, wherein the rate charging policy includes mode information, and the mode information is used to indicate the first mode or the second mode;
    所述第一方式为基于所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率;The first way is to calculate the data transmission rate of the data connection service in the time unit based on the duration of the time unit;
    所述第二方式为基于所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率。The second way is to calculate the data transmission rate of the data connection service in the time unit based on the duration of traffic generation in the time unit.
  18. 如权利要求12至17中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 12 to 17, further comprising:
    接收来自计费触发实体的第一计费请求消息;receiving a first charging request message from a charging triggering entity;
    基于所述第一计费请求消息,确定所述速率计费策略。Determine the rate charging policy based on the first charging request message.
  19. 如权利要求12至18中任一项所述的方法,其特征在于,所述计费策略实体为计费功能实体或者策略控制功能实体。The method according to any one of claims 12 to 18, wherein the charging policy entity is a charging function entity or a policy control function entity.
  20. 一种计费方法,应用于计费处理实体,其特征在于,所述方法包括:A charging method applied to a charging processing entity, characterized in that the method includes:
    接收速率计费信息采集实体发送的用户设备的数据连接业务的至少一条速率计费信息,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量;Receive at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity, each piece of rate charging information includes information on the data transmission rate interval and corresponding usage information; the data transmission rate interval is the One of the multiple data transmission rate intervals obtained by the rate charging information collection entity, the usage information includes the accumulated data transfer rate for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval Usage amount;
    基于所述至少一条速率计费信息对所述用户设备进行计费处理。Perform charging processing on the user equipment based on the at least one piece of rate charging information.
  21. 如权利要求20所述的方法,其特征在于,接收速率计费信息采集实体发送的用户设备的数据连接业务的至少一条速率计费信息,包括:The method according to claim 20, wherein the receiving at least one piece of rate charging information of the data connection service of the user equipment sent by the rate charging information collection entity includes:
    接收来自所述速率计费信息采集实体的订阅通知消息,所述订阅通知消息包括所述至少一条速率计费信息。Receive a subscription notification message from the rate charging information collection entity, where the subscription notification message includes the at least one piece of rate charging information.
  22. 如权利要求20或21所述的方法,其特征在于,所述方法还包括:The method according to claim 20 or 21, further comprising:
    向所述速率计费信息采集实体发送所述多个数据传输速率区间分别对应的配额;sending quotas respectively corresponding to the plurality of data transmission rate intervals to the rate charging information collection entity;
    其中,所述使用量为所述数据传输速率区间对应的配额的使用量。Wherein, the usage amount is the usage amount of the quota corresponding to the data transmission rate interval.
  23. 如权利要求22所述的方法,其特征在于,所述方法还包括:The method of claim 22, further comprising:
    向所述速率计费信息采集实体发送触发条件信息;sending trigger condition information to the rate charging information collection entity;
    其中,所述触发条件信息包括第一配额对应的阈值,所述触发条件信息用于指示当第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值时,向所述计费处理实体上报所述至少一条速率计费信息;和/或,所述触发条件信息包括第一配额的有效期,所述触发条件信息用于指示当所述有效期届满时,向所述计费处理实体上报所述至少一条速率计费信息;Wherein, the trigger condition information includes a threshold corresponding to the first quota, and the trigger condition information is used to indicate that when the available quota corresponding to the first data transmission rate interval is less than or equal to the threshold corresponding to the first quota, the The charging processing entity reports the at least one piece of rate charging information; and/or, the trigger condition information includes a validity period of the first quota, and the trigger condition information is used to indicate that when the validity period expires, the charging The processing entity reports the at least one piece of rate charging information;
    所述第一配额为所述第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。The first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  24. 如权利要求20至23中任一项所述的方法,其特征在于,所述计费处理实体为计费功能实体。The method according to any one of claims 20 to 23, wherein the charging processing entity is a charging function entity.
  25. 一种计费方法,其特征在于,所述方法包括:A billing method, characterized in that the method comprises:
    计费策略实体为用户设备的数据连接业务生成速率计费策略,并向速率计费信息采集实体发送所述速率计费策略,所述速率计费策略用于指示所述速率计费信息采集实体生成所述数据连接业务的至少一条速率计费信息;The charging policy entity generates a rate charging policy for the data connection service of the user equipment, and sends the rate charging policy to the rate charging information collection entity, and the rate charging policy is used to instruct the rate charging information collection entity generating at least one piece of rate charging information for the data connection service;
    所述速率计费信息采集实体接收所述计费策略实体发送的所述速率计费策略,并根据所述速率计费策略,生成所述至少一条速率计费信息;The rate charging information collection entity receives the rate charging policy sent by the charging policy entity, and generates the at least one piece of rate charging information according to the rate charging policy;
    其中,每条速率计费信息包括数据传输速率区间的信息和对应的使用信息;所述数据传输速率区间为所述速率计费信息采集实体获取的多个数据传输速率区间之一,所述使用信息包含当所述数据连接业务的数据传输速率在所述数据传输速率区间内时针对所述数据连接业务累积的使用量。Wherein, each piece of rate charging information includes information on a data transmission rate range and corresponding usage information; the data transmission rate range is one of multiple data transmission rate ranges acquired by the rate charging information collection entity, and the usage The information includes usage accumulated for the data connection service when the data transmission rate of the data connection service is within the data transmission rate interval.
  26. 如权利要求25所述的方法,其特征在于:The method of claim 25, wherein:
    所述数据连接业务包括所述用户设备的数据连接会话中的所有业务数据流;或者,The data connection service includes all service data flows in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个服务质量QoS流对应的多个业务数据流;或者,The data connection service includes multiple service data flows corresponding to one quality of service QoS flow in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个费率组对应的多个业务数据流;或者,The data connection service includes multiple service data streams corresponding to one rate group in the data connection session of the user equipment; or,
    所述数据连接业务包括所述用户设备的数据连接会话中的一个业务数据流。The data connection service includes a service data flow in the data connection session of the user equipment.
  27. 如权利要求25或26所述的方法,其特征在于,所述速率计费策略包括所述多个数据传输速率区间的信息;The method according to claim 25 or 26, wherein the rate charging policy includes information on the multiple data transmission rate intervals;
    所述方法还包括:所述速率计费信息采集实体从所述速率计费策略获取所述多个数据传输速率区间。The method further includes: the rate charging information collection entity acquires the multiple data transmission rate ranges from the rate charging policy.
  28. 如权利要求25至27中任一项所述的方法,其特征在于,所述速率计费策略包括时间范围;所述速率计费信息采集实体根据所述速率计费策略,生成所述至少一条速率计费信息,包括:所述速率计费信息采集实体根据所述速率计费策略,在所述时间范围内生成所述至少一条速率计费信息。The method according to any one of claims 25 to 27, wherein the rate charging policy includes a time range; and the rate charging information collection entity generates the at least one item according to the rate charging policy. The rate charging information includes: the at least one piece of rate charging information generated by the rate charging information acquisition entity within the time range according to the rate charging policy.
  29. 如权利要求25至28中任一项所述的方法,其特征在于,所述速率计费策略包括时间单元;The method according to any one of claims 25 to 28, wherein the rate charging strategy includes a time unit;
    所述方法还包括:所述速率计费信息采集实体每隔所述时间单元确定所述时间单元内所述数据连接业务的数据传输速率。The method further includes: the rate charging information collection entity determines the data transmission rate of the data connection service in the time unit every time unit.
  30. 如权利要求29所述的方法,其特征在于,所述数据连接业务对应多个用户面功能实体;The method according to claim 29, wherein the data connection service corresponds to a plurality of user plane functional entities;
    所述时间单元内所述数据连接业务的数据传输速率为所述数据连接业务在所述多个用户面功能实体上的总数据传输速率;The data transmission rate of the data connection service in the time unit is the total data transmission rate of the data connection service on the multiple user plane functional entities;
    其中,所述总数据传输速率是基于所述数据连接业务在所述多个用户面功能实体上的总流量得到的;或者,所述总数据传输速率为所述多个用户面功能实体分别对应的所述数据连接业务的数据传输速率之和。Wherein, the total data transmission rate is obtained based on the total traffic of the data connection service on the multiple user plane functional entities; or, the total data transmission rate is obtained by corresponding to the multiple user plane functional entities respectively The sum of the data transmission rates of the data connection services.
  31. 如权利要求29或30所述的方法,其特征在于,所述速率计费策略包括方式信息,所述方式信息用于指示第一方式或第二方式;The method according to claim 29 or 30, wherein the rate charging policy includes mode information, and the mode information is used to indicate the first mode or the second mode;
    当所述方式信息指示所述第一方式时,所述速率计费信息采集实体确定所述时间单元内所述数据连接业务的数据传输速率,包括:所述速率计费信息采集实体基于所述时间单元的时长计算所述时间单元内所述数据连接业务的数据传输速率;When the mode information indicates the first mode, the rate charging information collection entity determining the data transmission rate of the data connection service within the time unit includes: the rate charging information collection entity based on the calculating the data transmission rate of the data connection service within the time unit by the duration of the time unit;
    当所述方式信息指示所述第二方式时,所述速率计费信息采集实体确定所述时间单元内所述数据连接业务的数据传输速率,包括:所述速率计费信息采集实体基于所述时间单元内产生流量的时长计算所述时间单元内所述数据连接业务的数据传输速率。When the mode information indicates the second mode, the rate charging information collection entity determining the data transmission rate of the data connection service within the time unit includes: the rate charging information collection entity based on the Calculate the data transmission rate of the data connection service in the time unit for the duration of traffic generation in the time unit.
  32. 如权利要求25至31中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 25 to 31, further comprising:
    所述计费策略实体接收来自计费触发实体的第一计费请求消息;The charging policy entity receives a first charging request message from a charging triggering entity;
    所述计费策略实体基于所述第一计费请求消息,确定所述速率计费策略。The charging policy entity determines the rate charging policy based on the first charging request message.
  33. 如权利要求25至32中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 25 to 32, further comprising:
    所述速率计费信息采集实体向计费处理实体发送所述至少一条速率计费信息;The rate charging information collection entity sends the at least one piece of rate charging information to a charging processing entity;
    所述计费处理实体接收所述速率计费信息采集实体发送的所述至少一条速率计费信息,并基于所述至少一条速率计费信息对所述用户设备进行计费处理。The charging processing entity receives the at least one piece of rate charging information sent by the rate charging information collection entity, and performs charging processing on the user equipment based on the at least one piece of rate charging information.
  34. 如权利要求33所述的方法,其特征在于,所述计费处理实体接收所述速率计费信息采集实体发送的所述至少一条速率计费信息,包括:The method according to claim 33, wherein the charging processing entity receives the at least one piece of rate charging information sent by the rate charging information collection entity, comprising:
    所述计费处理实体接收来自所述速率计费信息采集实体的订阅通知消息,所述订阅通知消息包括所述至少一条速率计费信息。The charging processing entity receives a subscription notification message from the rate charging information collection entity, where the subscription notification message includes the at least one piece of rate charging information.
  35. 如权利要求33或34所述的方法,其特征在于,所述方法还包括:The method according to claim 33 or 34, further comprising:
    所述计费处理实体向所述速率计费信息采集实体发送所述多个数据传输速率区间分别对应的配额;The charging processing entity sends quotas respectively corresponding to the multiple data transmission rate intervals to the rate charging information collection entity;
    所述速率计费信息采集实体接收所述计费处理实体发送的所述多个数据传输速率区间分别对应的配额;The rate charging information collection entity receives quotas respectively corresponding to the multiple data transmission rate ranges sent by the charging processing entity;
    其中,所述使用量为所述数据传输速率区间对应的配额的使用量。Wherein, the usage amount is the usage amount of the quota corresponding to the data transmission rate range.
  36. 如权利要求35所述的方法,其特征在于,所述方法还包括:所述计费处理实体向所述速率计费信息采集实体发送触发条件信息;以及,所述速率计费信息采集实体接收所述计费处理实体发送的所述触发条件信息;The method according to claim 35, further comprising: the charging processing entity sending trigger condition information to the rate charging information collection entity; and the rate charging information collection entity receiving The trigger condition information sent by the charging processing entity;
    其中,所述触发条件信息包括第一配额对应的阈值;所述速率计费信息采集实体向计费处理实体发送所述至少一条速率计费信息,包括:所述速率计费信息采集实确定第一数据传输速率区间对应的可用配额小于或等于所述第一配额对应的阈值后,向所述计费处理实体发送所述速率计费信息;和/或,Wherein, the trigger condition information includes a threshold corresponding to the first quota; the rate charging information collection entity sends the at least one piece of rate charging information to the charging processing entity, including: the rate charging information collection actually determines the first After the available quota corresponding to a data transmission rate range is less than or equal to the threshold corresponding to the first quota, sending the rate charging information to the charging processing entity; and/or,
    所述触发条件信息包括第一配额的有效期;所述速率计费信息采集实体向计费处理实体发送所述至少一条速率计费信息,包括:所述速率计费信息采集实确定所述第一配额的有效期届满后,向所述计费处理实体发送所述速率计费信息;The trigger condition information includes the validity period of the first quota; the rate charging information collection entity sends the at least one piece of rate charging information to the charging processing entity, including: the rate charging information collection actually determines the first After the validity period of the quota expires, send the rate charging information to the charging processing entity;
    所述第一配额为所述第一数据传输速率区间对应的配额,所述第一数据传输速率区间为所述多个数据传输速率区间中的任一数据传输速率区间。The first quota is a quota corresponding to the first data transmission rate interval, and the first data transmission rate interval is any data transmission rate interval in the plurality of data transmission rate intervals.
  37. 一种速率计费信息采集实体,其特征在于,包括用于执行如权利要求1至11中任一项所述方法的模块。An entity for collecting rate charging information, characterized by comprising a module for executing the method according to any one of claims 1-11.
  38. 一种计费策略实体,其特征在于,包括用于执行如权利要求12至19中任一项所述方法的模块。A charging policy entity, characterized by comprising a module for executing the method according to any one of claims 12-19.
  39. 一种计费处理实体,其特征在于,包括用于执行如权利要求20至24中任一项所述方法的模块。A charging processing entity, characterized by comprising a module for performing the method according to any one of claims 20-24.
  40. 一种速率计费信息采集实体,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器中存储有计算机程序;所述处理器用于调用所述存储器中的计算机程序,使得 所述计费策略实体执行如权利要求1至11任一所述的方法。A rate charging information collection entity, characterized in that it includes a processor, the processor is coupled to a memory, and a computer program is stored in the memory; the processor is used to call the computer program in the memory, so that the The charging policy entity executes the method according to any one of claims 1-11.
  41. 一种计费策略实体,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器中存储有计算机程序;所述处理器用于调用所述存储器中的计算机程序,使得所述计费装置执行如权利要求12至19任一所述的方法。A billing policy entity, characterized in that it includes a processor, the processor is coupled to a memory, and a computer program is stored in the memory; the processor is used to call the computer program in the memory, so that the computer The device executes the method as claimed in any one of claims 12-19.
  42. 一种计费处理实体,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器中存储有计算机程序;所述处理器用于调用所述存储器中的计算机程序,使得所述计费装置执行如权利要求20至24任一所述的方法。A billing processing entity, characterized in that it includes a processor, the processor is coupled to a memory, and a computer program is stored in the memory; the processor is used to call the computer program in the memory, so that the computer The device performs the method as claimed in any one of claims 20-24.
  43. 一种通信系统,其特征在于,所述通信系统包括如权利要求37或40所述的速率计费信息采集实体、如权利要求38或41所述的计费策略实体和如权利要求39或42所述的计费处理实体。A communication system, characterized in that the communication system comprises the rate charging information collection entity as claimed in claim 37 or 40, the charging policy entity as claimed in claim 38 or 41, and the charging policy entity as claimed in claim 39 or 42 The charging processing entity.
  44. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被计算机执行时,实现如权利要求1至11中任一项所述的方法,或如权利要求12至19中任一项所述方法,或如权利要求20至24中任一项所述方法。A computer-readable storage medium, characterized in that computer programs or instructions are stored in the storage medium, and when the computer programs or instructions are executed by a computer, the method described in any one of claims 1 to 11 is realized. A method, or a method according to any one of claims 12 to 19, or a method according to any one of claims 20 to 24.
  45. 一种计算机程序产品,其特征在于,当计算机读取并执行所述计算机程序产品时,使得计算机执行如权利要求1至11中任一项所述的方法,或如权利要求12至19中任一项所述方法,或如权利要求20至24中任一项所述方法。A computer program product, characterized in that, when the computer reads and executes the computer program product, the computer executes the method according to any one of claims 1 to 11, or the method according to any one of claims 12 to 19 A method according to any one of claims 20 to 24.
PCT/CN2022/127905 2021-11-03 2022-10-27 Charging method, apparatus and system WO2023078149A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111296505.3A CN116074775A (en) 2021-11-03 2021-11-03 Charging method, device and system
CN202111296505.3 2021-11-03

Publications (1)

Publication Number Publication Date
WO2023078149A1 true WO2023078149A1 (en) 2023-05-11

Family

ID=86170489

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/127905 WO2023078149A1 (en) 2021-11-03 2022-10-27 Charging method, apparatus and system

Country Status (2)

Country Link
CN (1) CN116074775A (en)
WO (1) WO2023078149A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117241323A (en) * 2023-10-13 2023-12-15 广州丰石科技有限公司 Arrival deceleration method based on PCF of Internet of things

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000278453A (en) * 1999-03-29 2000-10-06 Kokusai Electric Co Ltd Accounting method and system using the same
CN101119211A (en) * 2007-09-18 2008-02-06 中兴通讯股份有限公司 Service implementing method of equal user tactics
CN102572760A (en) * 2010-12-17 2012-07-11 中兴通讯股份有限公司 Charging system and method
KR20170108929A (en) * 2017-09-18 2017-09-27 주식회사 케이티 System and method for providing of data service based on data rate controlling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000278453A (en) * 1999-03-29 2000-10-06 Kokusai Electric Co Ltd Accounting method and system using the same
CN101119211A (en) * 2007-09-18 2008-02-06 中兴通讯股份有限公司 Service implementing method of equal user tactics
CN102572760A (en) * 2010-12-17 2012-07-11 中兴通讯股份有限公司 Charging system and method
KR20170108929A (en) * 2017-09-18 2017-09-27 주식회사 케이티 System and method for providing of data service based on data rate controlling

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117241323A (en) * 2023-10-13 2023-12-15 广州丰石科技有限公司 Arrival deceleration method based on PCF of Internet of things
CN117241323B (en) * 2023-10-13 2024-03-26 广州丰石科技有限公司 Arrival deceleration method based on PCF of Internet of things

Also Published As

Publication number Publication date
CN116074775A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
CN110557724B (en) Data transmission method of multicast service and related equipment
US10582372B2 (en) Systems and methods for intelligent data quota allocation and management
CN101232385B (en) System and method for charging for microwave to switch in global intercommunication system
WO2023078149A1 (en) Charging method, apparatus and system
WO2020135848A1 (en) Charging method, apparatus and system
WO2016188128A1 (en) Capability opening method and system, and capability opening functional entity
JP2023120240A (en) Charging in inter-device communication on pc 5 for interactive service
CN101370170A (en) Wireless resource coordination method
EP4064756B1 (en) Bandwidth throttling in a radio access network
WO2018177003A1 (en) Charging method, and related device and system
CN101009744B (en) A method for providing charging information in the wireless access network system
WO2019042218A1 (en) Charging realisation system, charging realisation method and charging management functional entity
WO2021057020A1 (en) Network slice charging method and device
WO2021057342A1 (en) Network slice charging method and device
CN103891328A (en) Visited PCRF S9 session ID generation
WO2012106881A1 (en) Charging method, network access device and core network device
JP2017120997A (en) Communication system, communication method and program
KR100764168B1 (en) Method and apparatus for accounting in portable internet system
CN112910662B (en) Method, device and medium for reporting and receiving and reporting traffic information
US20230362306A1 (en) Method for performing charging processing on mobile local area network service, system, and related device
WO2021179598A1 (en) Communication method, apparatus and system
CN115604857B (en) Method and system for user grouping monitoring based on signaling plane
KR200427885Y1 (en) Apparatus for accounting in portable internet system
WO2022067699A1 (en) Service data flow transmission method, communication device, and communication system
WO2023109581A1 (en) Detection method, communication apparatus, and communication system

Legal Events

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

Ref document number: 22889174

Country of ref document: EP

Kind code of ref document: A1