WO2019210780A1 - Charging method, device, and system - Google Patents
Charging method, device, and system Download PDFInfo
- Publication number
- WO2019210780A1 WO2019210780A1 PCT/CN2019/083378 CN2019083378W WO2019210780A1 WO 2019210780 A1 WO2019210780 A1 WO 2019210780A1 CN 2019083378 W CN2019083378 W CN 2019083378W WO 2019210780 A1 WO2019210780 A1 WO 2019210780A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- charging
- group
- network element
- terminal
- policy
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
- H04L12/1407—Policy-and-charging control [PCC] architecture
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1432—Metric aspects
- H04L12/1435—Metric aspects volume-based
Definitions
- the present application relates to the field of communications technologies, and in particular, to a charging method, device, and system.
- PCEF policy and charging enforcement function
- OCS online charging system
- the OCS collects the traffic of the specific charging identifier, and then determines whether to perform the policy change according to whether the threshold is reached. If a policy change is required, the OCS can notify the PCRF network element to perform policy change by using the Sy interface between the policy and charging rule function (PCRF) network element. That is to say, the online or offline charging policy control in the prior art is based on the user. This has the following problems:
- the user-based traffic fragmentation is small, and the triggered offline bill generation or Gy interface message interaction is relatively frequent. Therefore, the scheme has higher requirements on the service processing performance of the PCEF network element and the OCS.
- the OCS needs to perform traffic quota management for each user and summarize the traffic of the specific charging identifier. Therefore, the OCS is required to support the traffic post-processing function of the user group.
- the offline charging system also needs to summarize the traffic of the specific charging identifier. Therefore, the OFCS needs to support the traffic post-processing function of the user group.
- the existing charging method has higher performance requirements for related network elements. Therefore, how to provide a charging method can reduce the requirement of charging for related network element performance, which is urgently needed to be solved. problem.
- the embodiments of the present application provide a charging method, a device, and a system, so that the requirements for charging performance on related network elements can be reduced.
- the first aspect provides a charging method, where the method includes: the policy execution network element acquires the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the policy execution network element.
- the policy execution network element determines that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs; the policy execution network element sends the first terminal to the charging function network element.
- the group identifier of the charging group and the first data traffic, wherein the group identifier and the first data traffic are used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the charging method based on the charging method provided in the embodiment of the present application will greatly reduce the creation and The number of billing sessions maintained.
- the charging method based on the charging method provided by the embodiment of the present application will greatly reduce the between the policy execution network element and the charging function network element. The number of message interactions.
- the charging function network element does not need to perform traffic quota management for each user and summarizes the traffic of the specific charging identifier, the charging system provided by the embodiment of the present application does not need to calculate.
- the fee function network element supports the traffic post-processing function of the user group.
- the charging system based on the charging system provided by the embodiment of the present invention can greatly reduce the performance requirements of related network elements, such as the policy execution network element and the charging function network element, thereby reducing the cost of the equipment manufacturer.
- the charging method provided by the embodiment of the present application may further include: the policy execution network element receiving the group identifier from the charging function network element and the second group corresponding to the charging group to which the first terminal belongs
- the billing traffic is fragmented.
- the group identifier and the second group of billing traffic fragments are used to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs.
- the policy execution network element may continue to perform the segmentation according to the second group of charging traffic after the first data traffic has reached the reported traffic of the first group of the traffic volume fragments corresponding to the charging group to which the first terminal belongs.
- the data traffic of the terminal in the charging group to which the first terminal belongs is subjected to group charging processing.
- the charging group to which the first terminal belongs includes a session-level charging group or a service-level charging group.
- the policy enforcement network element is a policy and charging execution function network element; the policy execution network element acquires the first data traffic, including: the policy and charging execution function network element receives the data from the first terminal.
- the policy and the accounting execution function network element determine, according to the data packet, the group identifier of the charging group to which the first terminal belongs; the policy and charging execution function network element determines according to the group identifier and the data traffic corresponding to the data packet. The first data traffic.
- the policy and charging execution function network element can obtain current data traffic of the charging group to which the first terminal belongs on the policy and charging execution function network element.
- the policy and charging execution function network element determines, according to the data packet, the group identifier of the charging group to which the first terminal belongs, including: the policy and charging execution function network element determines according to the data packet. The identifier of the first terminal; the policy and the charging execution function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal. Based on the solution, the policy and charging execution function network element may determine the group identifier of the session-level charging group to which the first terminal belongs.
- the policy and charging execution function network element determines, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including: the policy and charging execution function network element according to the And determining, by the data packet, the identifier of the first terminal; the policy and the charging execution function network element determining, according to the identifier of the first terminal and the service corresponding to the data packet, the group identifier of the charging group to which the first terminal belongs. Based on the solution, the policy and charging execution function network element may determine the group identifier of the service level charging group to which the first terminal belongs.
- the policy execution network element is a session management network element; correspondingly, the policy execution network element acquires the first data traffic, including: the session management network element receives the second data traffic from the user plane function network element and The group identifier, the second data traffic is the current data traffic of the charging group of the first terminal to the user plane function network element; the session management network element determines the first according to the second data traffic and the group identifier Data Flow. Based on the solution, the session management network element can obtain the current data traffic of the charging group to which the first terminal belongs on the session management network element.
- the policy execution network element is a session management network element.
- the charging method provided by the embodiment of the present application may further include: the first data traffic does not reach the first group of charging traffic.
- the session management network element sends the group identifier and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs to the user plane function network element, the group identifier and the third
- the group-based charging traffic fragment is configured to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, where the third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
- the user plane function network element can continue to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs according to the third group of charging traffic fragments.
- the charging method provided by the embodiment of the present application may further include: the policy execution network element receives the first indication information from the charging function network element, where the first indication information is used to indicate the first There is no available group accounting traffic fragment for the charging group to which the terminal belongs. In this way, the policy enforcement network element can no longer request a new group charging traffic fragment from the charging function network element.
- the charging method provided by the embodiment of the present application may further include: processing, for any terminal in the charging group to which the first terminal belongs, according to the following manner for the second terminal: a policy
- the execution network element receives the first message from the policy control network element, where the first message is used to delete the association relationship between the second terminal and the charging group to which the first terminal belongs; the policy execution network element deletes according to the first message.
- the association relationship between the second terminal and the charging group to which the first terminal belongs In this way, in the subsequent process, the data traffic of the data packet from the second terminal can only match the personal charging traffic, and the group charging policy is no longer enjoyed.
- the policy execution network element is a session management network element.
- the charging method provided by the embodiment of the present application may further include: for any terminal in the charging group to which the first terminal belongs, The processing is performed in the following manner for the second terminal: the session management network element receives the first message from the policy control network element, where the first message is used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted. Correlation relationship; the session management network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message; the session management network element sends a second message to the user plane function network element, the second message And an instruction to delete the association relationship between the second terminal and the charging group to which the first terminal belongs.
- the data traffic of the data packet from the second terminal can only match the personal charging traffic, and the group charging policy is no longer enjoyed.
- the policy execution network element is pre-configured with an association relationship between the first terminal and a charging group to which the first terminal belongs. That is, in the embodiment of the present application, the association relationship between the first terminal and the charging group to which the first terminal belongs may be statically configured.
- the charging method provided by the embodiment of the present application may further include: the policy execution network element receives the group identifier from the policy control network element and the identifier of the first terminal; and the policy execution network element according to the group
- the identifier and the identifier of the first terminal are associated with the first terminal and the charging group to which the first terminal belongs. That is, in the embodiment of the present application, the association relationship between the first terminal and the charging group to which the first terminal belongs may be dynamically configured by the policy control network element.
- the charging method provided by the embodiment of the present application may further include: the policy execution network element determines that the group charging session is not established with the charging function network element; and the policy execution network element applies to the charging function network element. And sending a third message, where the third message carries the group identifier, and is used to request to establish a charging session corresponding to the group identifier; the policy execution network element receives the charging group corresponding to the first terminal that belongs to the charging function network element. The fourth group of billing traffic fragments. Based on the solution, the policy enforcement network element can establish a group charging session with the charging function network element.
- a second aspect provides, for example, a charging method, the method comprising: a policy and a charging execution function network element acquiring a first data traffic, where the first data traffic is performed by the charging group to which the first terminal belongs The current data traffic on the function network element; the policy and the charging execution function network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs; the policy and charging execution function network element is according to the A data traffic generates an offline bill.
- the policy and the charging execution function may be referred to the description of the first aspect, and details are not described herein.
- a policy enforcement network element having the function of implementing the method of any of the above first aspects.
- This function can be implemented in hardware or in hardware by executing the corresponding software.
- the hardware or software includes one or more modules corresponding to the functions described above.
- a fourth aspect provides a policy enforcement network element, including: a processor and a memory; the memory is configured to store a computer execution instruction, and when the policy execution network element is running, the processor executes the computer execution instruction stored by the memory And causing the policy execution network element to perform the charging method according to any one of the above first aspects.
- a policy enforcement network element including: a processor; the processor is configured to couple with a memory, and after reading an instruction in the memory, perform any one of the foregoing first aspects according to the instruction The charging method described.
- a computer readable storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the charging of any of the above first aspects method.
- a computer program product comprising instructions which, when run on a computer, cause the computer to perform the charging method of any of the above first aspects.
- a chip system comprising a processor for supporting a policy enforcement network element to implement the functions involved in the first aspect, for example, acquiring the first data traffic.
- the chip system further includes a memory for storing program instructions and data necessary for the policy execution network element.
- the chip system can be composed of chips, and can also include chips and other discrete devices.
- a policy and charging enforcement function network element is provided, the policy and charging execution function network element having the function of implementing the method of any of the foregoing second aspects.
- This function can be implemented in hardware or in hardware by executing the corresponding software.
- the hardware or software includes one or more modules corresponding to the functions described above.
- a tenth aspect provides a policy and charging execution function network element, including: a processor and a memory; the memory is configured to store a computer execution instruction, and when the policy and the charging execution function network element are running, the processor executes The computer stored by the memory executes instructions to cause the policy and charging enforcement function network element to perform the charging method of any of the above second aspects.
- a policy and charging execution function network element including: a processor; the processor is configured to be coupled to a memory, and after reading an instruction in the memory, execute the second according to the instruction according to the instruction.
- a twelfth aspect a computer readable storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the meter of any of the above second aspects Fee method.
- a computer program product comprising instructions which, when run on a computer, cause the computer to perform the charging method of any of the above second aspects.
- a chip system comprising a processor for supporting a policy and charging execution function network element to implement the functions involved in the second aspect, for example, acquiring the first data traffic.
- the chip system further includes a memory for storing program instructions and data necessary for the policy and billing execution function network element.
- the chip system can be composed of chips, and can also include chips and other discrete devices.
- a charging system includes: a policy execution network element and a charging function network element; and a policy execution network element, configured to acquire first data traffic, where the first data traffic is The current data traffic of the charging group to which the terminal belongs is performed on the network element of the policy; the policy execution network element is further configured to determine that the first data traffic has reached the first group charging corresponding to the charging group to which the first terminal belongs. After the traffic of the traffic fragment is sent, the group identifier of the charging group to which the first terminal belongs and the first data traffic are sent to the charging function network element, where the group identifier and the first data traffic are used to request the first terminal.
- a second group of charging traffic fragments corresponding to the charging group; the charging function network element is configured to receive the group identifier and the first data traffic from the policy execution network element.
- the charging function network element is further configured to send the group identifier to the policy execution network element and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs;
- the unit is further configured to receive the group identifier from the charging function network element and the second group of charging traffic fragments, where the group identifier and the second group of charging traffic fragments are used for the first terminal.
- the data traffic of the terminal in the charging group is processed by the group charging. Based on the solution, after the first data traffic has reached the reported traffic of the first group of the traffic flow segments corresponding to the charging group to which the first terminal belongs, the policy execution network element may continue to perform the segmentation according to the second group of charging traffic.
- the data traffic of the terminal in the charging group to which the first terminal belongs is subjected to group charging processing.
- the charging system further includes: a policy control network element; the charging function network element, configured to send the first indication information to the policy control network element, where the first indication information is used to indicate the The first terminal belongs to the charging group that has no available group charging traffic fragment; the policy control network element is configured to receive the first indication information from the charging function network element, and according to the first indication information, determine that the The terminal in the charging group to which the first terminal belongs performs policy update; for any terminal in the charging group to which the first terminal belongs, the terminal is processed according to the following method for the second terminal: the policy control network element is also used for Sending a first message to the policy enforcement network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the policy execution network element is further configured to receive from the policy control network.
- the first message of the element and deleting the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message.
- the data traffic of the data packet from the second terminal can only match the personal charging traffic, and the group charging policy is no longer enjoyed.
- the charging system further includes: a policy control network element, and a policy control network element, configured to receive a fourth message from the policy execution network element, where the fourth message is used to carry the first terminal
- the identifier is used to request a charging policy corresponding to the first terminal
- the policy control network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and the first terminal needs to perform a charging account according to the group
- the status is used to update the charging policy
- the policy control network element associates the first terminal with the charging group to which the first terminal belongs. Based on the solution, the policy control network element may associate the first terminal with the charging group to which the first terminal belongs.
- the policy control network element is further configured to determine that the group charging session is not established with the charging function network element; the policy control network element is further configured to send the fifth message to the charging function network element.
- the fifth message carries the group identifier, and is used to request to establish a charging session corresponding to the group identifier;
- the charging function network element is further configured to receive the fifth message from the policy control network element, and according to the first And the fifth message, the group identifier is associated with the corresponding billing account state;
- the billing function network element is further configured to send a sixth message to the policy control network element, where the sixth message is used to indicate the corresponding to the group identifier
- the billing session is established.
- the policy control network element can establish a group charging session with the charging function network element.
- FIG. 1 is a schematic structural diagram of a charging system according to an embodiment of the present disclosure
- FIG. 2 is a schematic diagram of application of a charging system in a network before a 5G network according to an embodiment of the present application
- FIG. 3 is a schematic diagram of application of a charging system in a 5G network according to an embodiment of the present application
- FIG. 4 is a schematic structural diagram of hardware of a communication device according to an embodiment of the present disclosure.
- FIG. 5 is a schematic flowchart 1 of a charging method according to an embodiment of the present disclosure.
- FIG. 6 is a schematic flowchart 1 of a session establishing method according to an embodiment of the present application.
- FIG. 7 is a schematic flowchart 2 of a charging method according to an embodiment of the present disclosure.
- FIG. 8 is a second schematic flowchart of a session establishment method according to an embodiment of the present disclosure.
- FIG. 9 is a schematic flowchart 3 of a charging method according to an embodiment of the present disclosure.
- FIG. 10 is a schematic structural diagram of a policy execution network element according to an embodiment of the present disclosure.
- FIG. 11 is a schematic structural diagram of a policy and charging execution function network element according to an embodiment of the present disclosure.
- the words “first”, “second”, and the like are used to distinguish the same items or similar items whose functions and functions are substantially the same. Those skilled in the art can understand that the words “first”, “second” and the like do not limit the number and execution order, and the words “first”, “second” and the like are not necessarily limited.
- the network architecture and the service scenario described in the embodiments of the present application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present application, and are not limited to the technical solutions provided by the embodiments of the present application.
- the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
- the charging system 10 provided by the embodiment of the present application includes a policy enforcement network element 101 and a charging function network element 102.
- the policy execution network element 101 is configured to acquire the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs to the policy execution network element 101; and determining that the first data traffic has been reached. After the traffic of the first group of charging traffic fragments corresponding to the charging group of the first terminal belongs to the charging function network element 102, the group identifier of the charging group to which the first terminal belongs and the first data traffic, where the group identifier is sent And the first data traffic is used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the charging function network element 102 is configured to receive the group identifier and the first data traffic from the policy enforcement network element 101.
- the policy enforcement network element 101 and the charging function network element 102 in the embodiment of the present application may communicate directly or through forwarding of other devices, which is not specifically limited in this embodiment of the present application.
- the current data traffic of the policy execution network element in the charging group to which the first terminal belongs has reached the first group charging corresponding to the charging group to which the first terminal belongs.
- the new charging traffic fragment is requested. That is to say, the charging control is performed at the granularity of the charging group, and unlike the prior art, it is based on the user. Therefore, charging based on the charging system provided by the embodiment of the present application will greatly reduce the number of charging sessions created and maintained.
- the charging system provided by the embodiment of the present application performs charging, which greatly reduces the relationship between the policy enforcement network element and the charging function network element. The number of message interactions.
- the charging function network element does not need to perform traffic quota management for each user and summarizes the traffic of the specific charging identifier, the charging system provided by the embodiment of the present application does not need to calculate.
- the fee function network element supports the traffic post-processing function of the user group.
- the charging system provided by the embodiment of the present application can significantly reduce the performance requirements of related network elements, such as the policy enforcement network element and the charging function network element, thereby reducing the cost of the equipment manufacturer.
- the charging system 10 may further include a policy control network element 103.
- the charging function network element 102 is further configured to send the first indication information to the policy control network element 103, where the first indication information is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment.
- the policy control network element 103 is configured to receive the first indication information from the charging function network element, and determine, according to the first indication information, that the terminal in the charging group to which the first terminal belongs needs to perform policy update.
- any terminal in the charging group to which the first terminal belongs is processed according to the following manner for the second terminal:
- the policy control network element 103 is further configured to send a first message to the policy enforcement network element 101, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
- the policy enforcement network element 101 is further configured to receive the first message from the policy control network element 103, and delete the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message.
- the charging system provided by the embodiment of the present application can perform the policy on the terminal in the charging group to which the first terminal belongs in time when the charging group of the first terminal belongs to the charging group without the available group charging traffic fragment. Update.
- the charging system 10 may further include a policy control network element 103.
- the policy control network element 103 is configured to receive a fourth message from the policy enforcement network element 101, where the fourth message is used to carry the identifier of the first terminal, and is used to request a charging policy corresponding to the first terminal.
- the identifier of the terminal determines that the first terminal is a group charging terminal, and determines that the first terminal needs to perform policy update according to the group charging account status; and associates the first terminal with the charging group to which the first terminal belongs.
- the charging system provided by the embodiment of the present application may be configured by the first terminal and the first terminal when the first terminal is a group charging terminal and needs to be updated according to the group charging account status.
- the billing group is associated.
- the charging system 10 shown in FIG. 1 can be applied to a 5th generation (5th generation, 5G) network currently under discussion; and can also be applied to a network before a 5G network, such as a second generation (2nd generation, 2G).
- the network element or entity corresponding to the foregoing policy execution network element may be a network before the 5G network.
- the network element or entity corresponding to the above-mentioned charging function network element may be the OCS in the network before the 5G network; the network element or entity corresponding to the foregoing policy control network element may be before the 5G network PCRF network element in the network.
- the PCRF network element communicates with the PCEF network element through the Gx interface, and the PCRF network element communicates with the OCS through the Sy interface, and the OCS communicates with the PCEF network element through the Gy interface.
- the 4G network also includes a mobility management entity (MME) and a serving gateway (SGW).
- MME mobility management entity
- SGW serving gateway
- the 2G or 3G network also includes a general packet radio service (GPRS) support node (SGSN), and the related description can refer to the existing 2G, 3G or 4G network architecture description. , will not repeat them here.
- GPRS general packet radio service
- the network element or entity corresponding to the foregoing policy enforcement network element may be a session in the 5G network.
- a network management element (SMF) network element the network element or entity corresponding to the foregoing charging function network element may be a charging function (CHF) network element in a 5G network
- the foregoing policy control network element The corresponding network element or entity may be a policy control function (PCF) network element in the 5G network.
- SMF network management element
- CHF charging function
- PCF policy control function
- the 5G network may further include an access device, an access and mobility management function (AMF) network element, a user plane function (UPF) network element, and some
- AMF access and mobility management function
- UPF user plane function
- the network element (not shown), such as an authentication server function (AUSF) network element, a network exposure function (NEF) network element, etc., is not specifically limited in this embodiment of the present application.
- the terminal accesses the 5G core network through the access device, and the terminal communicates with the AMF network element through the Next Generation (N) 1 interface (N1), and the access device passes the N2 interface (N2) and the AMF network element.
- the access device communicates with the UPF network element through the N3 interface (N3 for short), and the AMF network element communicates with the SMF network element through the N11 interface (N11 for short), and the AMF network element communicates with the PCF network element through the N15 interface (N15 for short).
- the SMF network element communicates with the PCF network element through the N7 interface (N7).
- the SMF network element communicates with the UPF network element through the N4 interface (N4).
- the SMF network element communicates with the CHF network element through the N16 interface (N16 for short).
- the element communicates with the PCF network element through the N24 interface (N24) and accesses the data network.
- the UPF network element accesses the data network through the N6 interface (N6 for short).
- the name of the interface between the network elements in FIG. 3 is only an example. In the specific implementation, the interface name may be other names, which is not specifically limited in this embodiment of the present application.
- the AMF network element, the SMF network element, the UPF network element, the PCF network element, or the CHF network element in FIG. 3 are only one name, and the name does not limit the device itself.
- the network element or the entity corresponding to the AMF network element, the SMF network element, the UPF network element, the PCF network element, or the CHF network element may also be other names in the 5G network and other network in the future.
- the UPF network element may be replaced by an UPF or UPF entity, etc., and is uniformly described herein, and details are not described herein again.
- the terminal involved in the embodiment of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem; Including user unit (subscriber unit), cellular phone, smart phone, wireless data card, personal digital assistant (PDA) computer, tablet computer, wireless modem (modem), handheld device Handheld, laptop computer, cordless phone or wireless local loop (WLL) station, machine type communication (MTC) terminal, user equipment (user equipment) , UE), mobile station (MS), terminal device or relay user equipment.
- the relay user equipment may be, for example, a 5G residential gateway (RG).
- RG 5G residential gateway
- the access device involved in the embodiment of the present application refers to a device that accesses the core network, and may be, for example, a base station, a broadband network gateway (BNG), an aggregation switch, and a non-third-generation cooperation. 3rd generation partnership project (3GPP) access equipment, etc.
- the base station may include various forms of base stations, such as macro base stations, micro base stations (also referred to as small stations), relay stations, access points, and the like.
- the policy enforcement network element, the charging function network element, or the policy control network element in the embodiment of the present application may be implemented by one device, or may be implemented by multiple devices together, or may be one of the devices.
- the function module is not specifically limited in this embodiment of the present application. It can be understood that the above functions can be either a network component in a hardware device, a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform).
- FIG. 4 is a schematic structural diagram of hardware of a communication device according to an embodiment of the present application.
- the communication device 400 includes at least one processor 401, a communication line 402, a memory 403, and at least one communication interface 404.
- the processor 401 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present application. integrated circuit.
- CPU central processing unit
- ASIC application-specific integrated circuit
- Communication line 402 can include a path for communicating information between the components described above.
- Communication interface 404 using any type of transceiver, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
- RAN radio access network
- WLAN wireless local area networks
- the memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions.
- the dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this.
- the memory may be stand-alone and connected to the processor via communication line 402. The memory can also be integrated with the processor.
- the memory 403 is used to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 401 for execution.
- the processor 401 is configured to execute computer execution instructions stored in the memory 403, thereby implementing the charging method provided by the following embodiments of the present application.
- the computer-executed instructions in the embodiment of the present application may also be referred to as an application code, which is not specifically limited in this embodiment of the present application.
- the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
- communication device 400 can include multiple processors, such as processor 401 and processor 408 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
- processors herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
- the communication device 400 can also include an output device 405 and an input device 406.
- Output device 405 is in communication with processor 401 and can display information in a variety of ways.
- the output device 405 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Wait.
- Input device 406 is in communication with processor 401 and can receive user input in a variety of ways.
- input device 406 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
- the communication device 400 described above may be a general purpose device or a dedicated device.
- the communication device 400 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or the like in FIG. device.
- PDA personal digital assistant
- the embodiment of the present application does not limit the type of the communication device 400.
- the charging system shown in FIG. 1 is applied to the network before 5G as shown in FIG. 2 .
- the charging method provided in the embodiment of the present application includes the following steps:
- the first terminal sends a data packet to the PCEF network element, so that the PCEF network element receives the data packet from the first terminal.
- the PCEF network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs.
- the determining, by the PCEF network element, the group identifier of the charging group to which the first terminal belongs may include:
- the PCEF network element determines the identifier of the first terminal according to the data packet, and further determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal.
- the PCEF network element may associate the corresponding signaling plane address by using the data plane address corresponding to the data packet, and then determine the first terminal according to the signaling plane address.
- logo After determining the identifier of the first terminal, the PCEF network element may determine a corresponding charging policy according to the identifier of the first terminal. If the charging policy includes the correspondence between the identifier of the first terminal and the group identifier of the charging group to which the first terminal belongs, if the first terminal is a session-level group charging terminal, the PCEF network element may not identify the data packet.
- the group identifier of the charging group to which the first terminal belongs is determined according to the identifier of the first terminal and the correspondence between the identifier of the first terminal and the group identifier of the charging group to which the first terminal belongs.
- the charging group to which the first terminal belongs is a session-level charging group.
- the PCEF network element, according to the data packet, determining the group identifier of the charging group to which the first terminal belongs may specifically include:
- the PCEF network element determines the identifier of the first terminal according to the data packet, and further determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal and the service corresponding to the data packet.
- the PCEF network element may associate the corresponding signaling plane address by using the data plane address corresponding to the data packet, and then determine the first terminal according to the signaling plane address. Logo.
- the PCEF network element may determine a corresponding charging policy according to the identifier of the first terminal. If the charging policy includes one or more service rules, the PCEF network element needs to identify the service corresponding to the data packet by identifying the content in the data packet. For example, the PCEF network element can match the data packet with each service rule in the charging policy corresponding to the first terminal, and if the service rule is successfully matched, the service corresponding to the service rule is the data packet.
- the group identifier included in the service rule or the group identifier corresponding to the service rule is the group identifier of the charging group to which the first terminal belongs.
- the charging group to which the first terminal belongs is a service level charging group.
- the one terminal may be corresponding to one or more service-level charging groups.
- the first terminal may correspond to one charging group of the service A and one charging group of the service B, which is not specifically limited in this embodiment.
- the PCEF network element determines the first data traffic according to the group identifier of the charging group to which the first terminal belongs and the data traffic corresponding to the data packet.
- the PCEF network element may use the data of the first terminal according to the group identifier of the charging group to which the first terminal belongs.
- the PCEF network element determines that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the reporting traffic of the first group of charging traffic fragments corresponding to the charging group of the first terminal is equal to the first group of charging traffic corresponding to the charging group of the first terminal.
- the traffic of the first group of charging traffic fragments corresponding to the charging group corresponding to the charging group of the first terminal is smaller than the traffic of the first group of charging traffic fragments corresponding to the charging group of the first terminal, for example,
- the reported traffic of the first group of the traffic flow segments corresponding to the charging group of the first terminal is 80% of the traffic of the first group of the traffic data segments corresponding to the charging group to which the first terminal belongs. This is not specifically limited.
- the PCEF network element sends a credit control request-update (CCR-U) message to the OCS through the Gy interface, so that the OCS receives the CCR-U message from the PCEF network element.
- CCR-U credit control request-update
- the CCR-U message carries the group identifier of the charging group to which the first terminal belongs and the first data traffic.
- the group identifier of the charging group to which the first terminal belongs and the first data traffic are used to request the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the first group of charging traffic fragments in the embodiment of the present application is not the last group charging traffic fragment, that is, the charging group of the first terminal belongs to the group charging traffic fragment, which is optional.
- the charging method provided by the embodiment of the present application further includes the following steps S506-S508:
- the OCS allocates a second group of charging traffic fragments to the charging group to which the first terminal belongs in the traffic pool of the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs.
- the size of the first group of the charging traffic fragments and the size of the second group of the charging traffic fragments may be the same or different, which is not specifically limited in this embodiment of the present application.
- the OCS sends a credit control answer-update (CCA-U) message 1 to the PCEF network element through the Gy interface, so that the PCEF network element receives the CCA-U message 1 from the OCS.
- CCA-U credit control answer-update
- the CCA-U message 1 carries the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the PCEF network element performs data traffic of the terminal in the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Group billing processing.
- the first group of charging traffic fragments in the embodiment of the present application is the last group of charging traffic fragments, that is, the charging group of the first terminal belongs to the charging group without the available group charging traffic fragment.
- the charging method provided by the embodiment of the present application further includes the following steps S509-S515:
- the OCS sends a CCA-U message 2 to the PCEF network element, so that the PCEF network element receives the CCA-U message 2 from the OCS.
- the CCA-U message 2 carries the indication information 1 for indicating that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 1 is used to indicate that the OCS is no longer the first A charging group of a terminal belongs to a new group charging traffic fragment, and the like, which is not specifically limited in this embodiment.
- the function of the indication information 1 can be implemented by carrying the group identifier of the charging group to which the first terminal belongs and the traffic location of the newly allocated group charging traffic fragment to 0 in the CCA-U message 2.
- the embodiment of the present application does not specifically limit this.
- the first group of charging traffic fragments may also be indicated when the OCS sends the first group of charging traffic fragments to the PCEF network element.
- the fragment is the last group of charging traffic fragments, so that steps S505 and S509 may not be performed. That is, if the first group of charging traffic fragments is the last group of charging traffic fragments, step S505 and step S509 are optional steps, which are collectively described herein, and are not described herein again.
- S510 The OCS sends a sending status notification request (SNR) message to the PCRF network element by using the Sy interface, so that the PCRF network element receives the SNR message from the OCS.
- SNR sending status notification request
- the SNR message carries the indication information 2, where the indication information 2 is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 2 is used to indicate that the OCS is no longer belonged to the first terminal.
- the charging group allocates a new group charging traffic fragment and the like, which is not specifically limited in this embodiment of the present application.
- the function of the foregoing indication information 2 can be implemented in the manner that the group identifier of the charging group to which the first terminal belongs is carried in the SNR message, which is not specifically limited in this embodiment of the present application.
- the indication information 1 and the indication information 2 in the embodiment of the present application may be the same or different, and the embodiment of the present application does not specifically limit this.
- step S509 may be performed first, and then the step S510 may be performed; or the step S510 may be performed first, and then the step S509 is performed; It is also possible to perform the steps S509 and S510 at the same time, which is not specifically limited in the embodiment of the present application.
- the PCRF network element determines, according to the group identifier of the charging group to which the first terminal belongs, that the charging policy update needs to be performed on the terminal in the charging group to which the first terminal belongs.
- the PCRF network element sends a sending status notification answer (SNA) message to the OCS through the Sy interface, so that the OCS receives the SNA message from the PCRF network element.
- SNA sending status notification answer
- the SNA message is used to notify the OCS that the PCRF network element has learned that the first terminal belongs to the charging group without the available group charging traffic fragment or the OCS no longer allocates the new group charging traffic to the charging group to which the first terminal belongs.
- the embodiment of the present application does not specifically limit this.
- the PCRF network element determines that the charging policy update is required for the terminal in the charging group to which the first terminal belongs.
- the following methods are handled for the second terminal:
- the PCRF network element sends a re-authentication request (RAR) message to the PCEF network element through the Gx interface, so that the PCEF network element receives the RAR message from the PCRF network element.
- RAR re-authentication request
- the RAR message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
- the RAR message in the embodiment of the present application may carry the changed charging policy corresponding to the second terminal, where the changed charging policy may be used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted.
- the association relationship is not specifically limited in this embodiment.
- the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message.
- the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs, for example, deleting and The group identifier corresponding to the identifier of the second terminal or the corresponding relationship between the identifier of the second terminal and the group identifier corresponding to the identifier of the second terminal; if the charging group to which the first terminal belongs is a service level charging group, the PCEF network And deleting the association relationship between the second terminal and the charging group to which the first terminal belongs, for example, deleting the group identifier corresponding to the identifier of the second terminal, or deleting the identifier of the second terminal and the group identifier corresponding to the identifier of the second terminal.
- the corresponding relationship or the deletion of the identifier of the second terminal and the service rule of the group identifier of the charging group to which the first terminal belongs which is corresponding to the identifier of the second terminal
- the charging node 1 may manage, for example, The charging strategy shown in Table 1:
- the charging policy managed by the charging node 1 can be as shown in Table 2:
- Terminal identification Group identification Identification of the first terminal Group ID 1 Identification of the second terminal Third terminal identification Group ID 1 ;
- the charging node 1 may Manage the charging policies as shown in Table 3:
- the charging node is deleted after the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message.
- 1Managed charging policies can be as shown in Table 4:
- Table 3 and Table 4 are described by using the group identifier as an example in the service rule.
- the service rule and the group identifier may also be presented in the form of a corresponding relationship. Specifically limited.
- the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message
- the data traffic of the data packet from the second terminal can only match the personal meter.
- the group charging policy is no longer enjoyed on the fee traffic. The unified description here is not repeated here.
- the PCEF network element may update the charging policy of the second terminal from the group charging policy to the personal charging policy, for example, the second terminal and the first terminal may be
- the association relationship of the charging group to which the accounting group belongs may also be used by the PCRF network element to issue a policy related to the personal charging package, which is not specifically limited in this embodiment of the present application.
- the PCEF network element sends a re-authentication answer (RAA) message to the PCRF network element, so that the PCRF network element receives the RAA message from the PCEF network element.
- RAA re-authentication answer
- the RAA message is used to indicate that the charging policy corresponding to the second terminal has been updated.
- the first terminal in the charging group to which the first terminal belongs may be processed in the manner of the foregoing step S513-S515 for the second terminal, and only the second terminal in steps S513-S515 needs to be replaced. It is a first terminal, and will not be described here.
- the charging method based on the charging method provided by the embodiment of the present invention can greatly reduce the performance requirements of related network elements, such as the PCEF network element and the OCS, and can further reduce the cost of the equipment manufacturer. , will not repeat them here.
- the action of the PCEF network element, the PCRF network element, or the OCS in the foregoing steps S501 to S515 may be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403.
- the embodiment does not impose any limitation on this.
- a session establishing method is provided in the embodiment of the present application, and the session establishing method may complete the configuration process of the foregoing charging policy, specifically including The following steps:
- the first terminal sends a session establishment request to the PCEF network element, so that the PCEF network element receives the session establishment request from the first terminal.
- the session establishment request carries the identifier of the first terminal.
- the PCEF network element sends a credit control request-initial (CCR-U) message 1 to the PCRF network element through the Gx interface according to the session establishment request, so that the PCRF network element receives the CCR-I from the PCEF network element.
- CCR-U credit control request-initial
- the CCR-I message 1 carries the identifier of the first terminal, and is used to request a charging policy corresponding to the first terminal.
- the PCRF network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and the first terminal needs to perform charging policy update according to the group charging account status.
- the first terminal is used as the group charging terminal, and the subscription management on the PCRF network element is taken as an example for description. Therefore, after obtaining the identifier of the first terminal, the PCRF network element may search for the subscription data corresponding to the first terminal according to the identifier of the first terminal, so that, according to the subscription data, the first terminal may be determined as a group charging terminal, and the first The terminal needs to update the charging policy according to the status of the group charging account.
- the first terminal in the embodiment of the present application may be a session-level group charging terminal or a service-level group charging terminal, which is not specifically limited in this embodiment of the present application.
- the PCRF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the OCS.
- the charging group to which the first terminal belongs is a session-level charging group; if the first terminal is a service-level group charging terminal, The charging group to which the first terminal belongs is a service-level charging group, which is not specifically limited in this embodiment of the present application.
- S605 The PCRF network element sends a spending limit request-initial (SLR-I) message to the OCS through the Sy interface, so that the OCS receives the SLR-I message from the PCRF network element.
- SLR-I spending limit request-initial
- the SLR-I message carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
- the OCS associates, according to the SLR-I message, the group identifier of the charging group to which the first terminal belongs, and the corresponding charging account status.
- the OCS sends a spending limit answer-initial (SLR-I) message to the PCRF network element through the Sy interface, so that the PCRF network element receives the SLA-I message from the OCS.
- SLR-I spending limit answer-initial
- the SLA-I message is used to indicate that the charging session establishment corresponding to the group identifier of the charging group to which the first terminal belongs is completed.
- the foregoing steps S604-S607 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group to which the first terminal belongs, between the PCRF network element and the OCS, and it is not necessary to use the PCRF network element as in the prior art.
- a charging session corresponding to each terminal in the charging group is established with the OCS, thereby greatly reducing the number of message interactions between the PCRF network element and the OCS, and further reducing the performance requirements of the PCRF network element and the OCS.
- the OCS associates the group identifier of the charging group to which the first terminal belongs with the corresponding charging account status
- the charging is performed corresponding to the group identifier of the charging group to which the first terminal belongs
- the status of the account is changed. For example, if the charging group of the first terminal has no available group accounting traffic fragment, the OCS needs to notify the PCRF network element in time, so that the PCRF network element timely updates the terminal in the charging group to which the first terminal belongs.
- steps S510-S515 in the embodiment shown in FIG. 5, and details are not described herein again.
- the PCRF network element associates the first terminal with the charging group to which the first terminal belongs.
- the PCRF network element may allocate a group policy node to the charging group to which the first terminal belongs, and the PCRF network element may associate the first terminal with the group of policy nodes.
- the PCRF network element may establish the first terminal.
- the corresponding relationship between the identifier and the group identifier of the charging group to which the first terminal belongs, and the like, is not specifically limited in this embodiment.
- the first terminal is a service level group charging terminal
- the method may be performed in the manner of the above steps S604-S608, which is not specifically limited in this embodiment of the present application.
- steps S604-S608 of the present application are applied to the scenario that the PCRF network element determines that the first terminal needs to perform the charging policy update according to the group charging account status, and if the PCRF network element determines that the first terminal does not need to be based on the group.
- the fee policy status is updated by the charging policy, and the above steps S604-S608 may not be performed, and the description is not described herein.
- the session establishing method may further include the following steps:
- the PCRF network element sends a credit control answer-initial (CCA-U) message 1 to the PCEF network element through the Gx interface, so that the PCEF network element receives the CCA-I message 1 from the PCRF network element.
- CCA-U credit control answer-initial
- the CCA-I message 1 carries the charging policy of the charging group corresponding to the first terminal, and the charging policy corresponding to the first terminal is used to represent the charging policy of the first terminal belonging to a certain charging group.
- the charging policy corresponding to the first terminal is a session-level charging policy;
- the charging policy corresponding to the first terminal is a service-level charging policy, which is not specifically limited in this embodiment of the present application.
- the charging policy corresponding to the first terminal may include, for example, a correspondence between the identifier of the first terminal and the group identifier of the session-level charging group to which the first terminal belongs.
- the charging policy corresponding to the first terminal may include, for example, the correspondence between the identifier of the first terminal and the service rule corresponding to the service level charging group.
- the service rule includes a group identifier of a service level charging group to which the first terminal belongs.
- the charging policy corresponding to the first terminal may include, for example, an identifier of the first terminal, a service rule corresponding to the service level charging group, and the first terminal. Correspondence between the group IDs of the service-level accounting groups.
- the charging policy corresponding to the first terminal may include, for example, the identifier of the first terminal and the identifier of the service rule corresponding to the service level charging group. a relationship, so that the service rule corresponding to the service-level charging group configured on the PCEF network element can be determined according to the identifier of the service rule and the identifier of the first terminal, where the service level is configured on the PCEF network element
- the service rule corresponding to the charging group includes the group identifier of the service level charging group to which the first terminal belongs; or, so that the identifier configured on the PCEF network element can be determined according to the identifier of the service rule and the identifier of the first terminal.
- the first terminal is a service level group charging terminal
- the method may be performed in the manner of the foregoing step S609; or the CCA-I message 1 may carry the charging policy of the multiple service-level charging groups corresponding to the first terminal, which is not specifically limited in this embodiment of the present application.
- the PCEF network element associates the first terminal with a charging group to which the first terminal belongs.
- the PCEF network element may allocate a group charging node to the charging group to which the first terminal belongs, and the PCEF network element may associate the charging policy of the charging group to which the first terminal belongs and the group policy node.
- the PCEF network element may establish a correspondence between the identifier of the first terminal and the group identifier of the session-level charging group to which the first terminal belongs;
- the PCEF network element may establish the identifier of the first terminal, the group identifier of the service level charging group to which the first terminal belongs, and the corresponding relationship of the corresponding service rule, or the PCEF network element may establish the identifier of the first terminal and the first The corresponding relationship of the service rule corresponding to the service-level charging group to which the terminal belongs, where the service rule includes the group identifier of the service-level charging group to which the first terminal belongs, and the like, which is not specifically limited in this embodiment.
- the PCEF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the OCS.
- the PCEF network element sends a CCR-I message 2 to the OCS through the Gy interface, so that the OCS receives the CCR-I message 2 from the PCEF network element.
- the CCR-I message 2 carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
- the OCS allocates a corresponding first group of charging traffic fragments to the charging group to which the first terminal belongs according to the CCR-I message 2.
- the OCS sends a CCA-I message 2 to the PCEF network element through the Gy interface, so that the PCEF network element receives the CCA-I message 2 from the OCS.
- the CCA-I message 2 carries the group identifier of the charging group to which the first terminal belongs and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the PCEF network element associates the charging group to which the first terminal belongs with the corresponding first group of charging traffic fragments according to the CCA-I message 2.
- the PCRF network element may allocate a group charging node to the charging group to which the first terminal belongs, and the PCEF network element may associate the first group of charging traffic fragments with the group of policy nodes.
- the PCEF network element may establish a correspondence between the first group of the charging traffic fragment and the group identifier of the charging group to which the first terminal belongs, and so on, which is not specifically limited in this embodiment of the present application.
- the PCEF network element may be configured according to the charging group to which the first terminal belongs.
- the group identifier and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, and specifically refer to the meter shown in FIG. The fee method will not be described here.
- the PCEF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the OCS, the foregoing steps S611-S615 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group of the first terminal between the PCEF network element and the OCS, and it is not necessary to use the PCEF network element as in the prior art.
- a charging session corresponding to each terminal in the charging group is established with the OCS, thereby greatly reducing the number of message exchanges between the PCEF network element and the OCS, and further reducing the performance requirements of the PCEF network element and the OCS.
- the first terminal is a service level group charging terminal
- the method may be performed in the manner of the foregoing steps S610-S615, which is not specifically limited in this embodiment of the present application.
- the PCEF network element sends a session establishment response to the first terminal, so that the first terminal receives the session establishment response from the PCEF network element.
- the session establishment response is used to indicate that the charging session establishment corresponding to the first terminal is completed.
- the configuration process of the charging policy corresponding to the first terminal may be implemented.
- step S601 to step S616 can be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403.
- the embodiment does not impose any limitation on this.
- a charging method different from the embodiment shown in FIG. 5 may be performed, which is uniformly described herein, and details are not described herein again.
- the charging policy corresponding to the first terminal may be pre-configured on the PCEF network element, which is not specifically limited in this embodiment of the present application.
- the embodiment shown in FIG. 5 or FIG. 6 is described by taking a terminal in a charging group on a PCEF network element as an example.
- the terminals in a charging group may also be distributed on different PCEF network elements.
- the interaction process between each PCEF network element and other network elements may refer to the embodiment shown in FIG. 5 or FIG. 6 above. The interaction process between the PCEF network element and other network elements is not described here.
- the charging system shown in FIG. 1 is applied to the 5G network shown in FIG. 3 .
- the charging method provided by the embodiment of the present application includes the following steps:
- the first terminal sends a data packet to the UPF network element, so that the UPF network element receives the data packet from the first terminal.
- the UPF network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs.
- the manner in which the UPF network element determines the group identifier of the charging group to which the first terminal belongs according to the data packet, and the PCEF network element in the step S502, according to the data packet, determines, according to the data packet, the first terminal belongs to The method of the group ID of the fee group can be similar.
- the PCEF network element is replaced with the UPF network element.
- the UPF network element determines the second data traffic according to the group identifier of the charging group to which the first terminal belongs and the data traffic corresponding to the data packet.
- the manner in which the UPF network element determines the second data traffic is similar to the manner in which the PCEF network element determines the first data traffic in the foregoing S503.
- the difference is that the charging group to which the first terminal belongs is usually collected by the group traffic on the UPF network element.
- the node is managed. For related description, refer to step S503, and details are not described herein.
- the UPF network element determines that the second data traffic has reached the reported traffic of the fifth group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs.
- the method for reporting the traffic of the first group of the accounting traffic fragments corresponding to the charging group of the terminal is similar. For related description, refer to step S504, and details are not described herein.
- the UPF network element sends a message 1 to the SMF network element, so that the SMF network element receives the message 1 from the UPF network element.
- the message 1 carries the group identifier of the charging group to which the first terminal belongs and the second data traffic.
- the SMF network element determines the first data traffic according to the group identifier of the charging group to which the first terminal belongs and the second data traffic.
- the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the SMF network element.
- the SMF network element can associate the second data traffic to the group identifier of the charging group to which the first terminal belongs.
- the fee method can also include the following steps:
- the SMF network element determines that the first data traffic does not reach the reported traffic of the first group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs.
- the SMF network element allocates a third group of charging traffic fragments to the charging group to which the first terminal belongs.
- the size of the third group of the charging traffic fragments may be the same as the size of the fifth group of the charging traffic fragments, and may be different.
- S709 The SMF network element sends a message 2 to the UPF network element, so that the UPF network element receives the message from the SMF network element.
- the message 2 carries the group identifier of the charging group to which the first terminal belongs and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the UF network element performs data traffic of the terminal in the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Group billing processing.
- the fee method can also include the following steps:
- the S711 and the SMF network element determine that the first data traffic has reached the reported traffic of the first group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs.
- the SMF network element sends a message 3 to the CHF network element, so that the CHF network element receives the message 3 from the SMF network element.
- the message 3 carries the group identifier of the charging group to which the first terminal belongs and the first data traffic.
- the group identifier of the charging group to which the first terminal belongs and the first data traffic are used to request the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the first group of charging traffic fragments in the embodiment of the present application is not the last group charging traffic fragment, that is, the charging group of the first terminal belongs to the group charging traffic fragment, which is optional.
- the charging method provided by the embodiment of the present application further includes the following steps:
- the S713 and the CHF network element allocate, according to the group identifier of the charging group to which the first terminal belongs, the second group of charging traffic fragments to the charging group to which the first terminal belongs in the traffic pool of the charging group to which the first terminal belongs.
- the size of the first group of the charging traffic fragments and the size of the second group of the charging traffic fragments may be the same or different, which is not specifically limited in this embodiment of the present application.
- the CHF network element sends a message 4 to the SMF network element, so that the SMF network element receives the message 4 from the CHF network element.
- the message 4 carries the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the SMF network element performs data traffic of the terminal in the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Group billing processing.
- the first group of charging traffic fragments in the embodiment of the present application is the last group of charging traffic fragments, that is, the charging group of the first terminal belongs to the charging group without the available group charging traffic fragment.
- the charging method provided by the embodiment of the present application further includes the following steps:
- S716 The CHF network element sends a message 5 to the SMF network element, so that the SMF network element receives the message 5 from the CHF network element.
- the message 5 carries the indication information 1 for indicating that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 1 is used to indicate that the CHF network element is no longer the first
- the charging group to which the terminal belongs is allocated a new group charging traffic fragment, etc., which is not specifically limited in this embodiment of the present application.
- the function of the indication information 1 can be implemented by the method of carrying the group identifier of the charging group to which the first terminal belongs and the traffic location of the newly allocated group charging traffic fragment to 0.
- the embodiment does not specifically limit this.
- the first group of charging traffic fragments is the last group of charging traffic fragments
- the first group of charging traffic fragments is sent by the CHF network element to the SMF network element
- the fragment may be instructed to be the last group of billing traffic fragments so that steps S712 and S716 may not be performed. That is, if the first group of charging traffic fragments is the last group of charging traffic fragments, step S712 and step S716 are optional steps, which are collectively described herein, and are not described herein again.
- the S717 and the SMF network element send a message 6 to the UPF network element, so that the UPF network element receives the message 6 from the SMF network element.
- the message 6 carries the foregoing indication information 1.
- the related description of the indication information 1 may refer to step S716, and details are not described herein again. .
- the first group of charging traffic fragments is the last group of charging traffic fragments
- the first group of charging traffic fragments is sent by the CHF network element to the SMF network element
- the fragment may be instructed to be the last group of billing traffic fragments so that steps S712 and S716 may not be performed. That is, if the first group of charging traffic fragments is the last group of charging traffic fragments, step S712 and step S716 are optional steps, which are collectively described herein, and are not described herein again.
- the SMF network element allocates the fifth group of charging traffic fragments to the UPF network element
- the fifth group of the charging traffic fragment is instructed to be the last group charging traffic fragment allocated by the CHF network element to the SMF network element.
- the embodiment of the present application does not need to perform the steps S705-S716.
- S718 The CHF network element sends a message 7 to the PCF network element, so that the PCF network element receives the message 7 from the CHF network element.
- the message 7 carries the indication information 2, which is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 2 is used to indicate that the CHF network element is no longer the first
- the charging group to which the terminal belongs is allocated a new group charging traffic fragment, etc., which is not specifically limited in this embodiment of the present application.
- the function of the indication information 2 can be implemented by the method of carrying the group identifier of the charging group to which the first terminal belongs in the message 7.
- the embodiment of the present application does not specifically limit this.
- the indication information 1 and the indication information 2 in the embodiment of the present application may be the same or different, and the embodiment of the present application does not specifically limit this.
- step S716 and step S718 there is no necessary sequence of execution between step S716 and step S718 in the embodiment of the present application, which may be performed first step S716, and then step S718; or step S718 may be performed first, and then step S716 is performed; It is also possible to perform the steps S716 and S718 at the same time, which is not specifically limited in the embodiment of the present application.
- the S719 and the PCF network element determine, according to the group identifier of the charging group to which the first terminal belongs, that the charging policy update needs to be performed on the terminal in the charging group to which the first terminal belongs.
- S720 The PCF network element sends a response message 1 to the CHF network element, so that the CHF network element receives the response message 1 from the PCF network element.
- the response message 1 is used to notify the CHF network element that the PCF network element has learned that the charging group of the first terminal belongs to the charging group without the available group, or that the CHF network element is no longer assigned to the charging group of the first terminal.
- the group is not limited to the specific embodiment of the present application.
- the PCF network element determines that the terminal in the charging group to which the first terminal belongs needs to perform the charging policy update.
- the following methods are handled for the second terminal:
- the PCF network element sends a message 8 to the SMF network element, so that the SMF network element receives the message 8 from the PCF network element.
- the message 8 is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
- the message 8 in the embodiment of the present application may carry the changed charging policy corresponding to the second terminal, where the changed charging policy may be used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted.
- the association relationship is not specifically limited in this embodiment.
- S722 The SMF network element deletes, according to the message 8, the association relationship between the second terminal and the charging group to which the first terminal belongs.
- step S514 For the related example of the SMF network element deleting the association relationship between the second terminal and the charging group to which the first terminal belongs, refer to the related description of step S514 in the embodiment shown in FIG. 5, and details are not described herein again.
- the SMF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the message 8
- the data traffic of the data packet from the second terminal can only be matched to the personal meter.
- the group charging policy is no longer enjoyed on the fee traffic. The unified description here is not repeated here.
- the SMF network element may update the charging policy of the second terminal from the group charging policy to the personal charging policy, for example, the second terminal and the first terminal may be
- the association relationship between the charging group and the accounting group may be performed by the PCF network element, and is not specifically limited in this embodiment.
- S723 The SMF network element sends a response message 2 to the PCF network element, so that the PCF network element receives the response message 2 from the SMF network element.
- the response message 2 is used to indicate that the charging policy corresponding to the second terminal has been updated.
- the SMF network element sends a message 9 to the UPF network element, so that the UPF network element receives the message 9 from the SMF network element.
- the message 9 is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
- the message 9 in the embodiment of the present application may carry the changed charging policy corresponding to the second terminal, where the changed charging policy may be used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted.
- the association relationship is not specifically limited in this embodiment.
- the UPF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the message 9.
- step S514 For the related example of the association between the second terminal and the charging group to which the first terminal belongs, refer to the related description of step S514 in the embodiment shown in FIG. 5, and details are not described herein again.
- the UPF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the message 9
- the data traffic of the data packet from the second terminal can only be matched to the personal meter.
- the group charging policy is no longer enjoyed on the fee traffic. The unified description here is not repeated here.
- the UPF network element may update the charging policy of the second terminal from the group charging policy to the personal charging policy.
- the second terminal and the first terminal may be removed.
- the association relationship between the accounting group and the accounting group may be performed by the PCF network element through the SMF network element.
- the UPF network element sends a response message 3 to the SMF network element PCF network element, so that the SMF network element receives the response message 3 from the UPF network element.
- the response message 3 is used to indicate that the charging policy corresponding to the second terminal has been updated.
- steps S716-S726 of the present application are applied to the scenario in which the first terminal needs to perform the charging policy update according to the group charging account status, if the first terminal does not need to perform the charging policy according to the group charging account status.
- the above steps S716-S726 may not be performed, which are collectively described herein, and are not described below.
- the charging method based on the charging method provided by the embodiment of the present application can greatly reduce the performance requirements of related network elements, such as the UPF network element, the SMF network element, and the CHF network element, thereby reducing the cost of the equipment manufacturer.
- related network elements such as the UPF network element, the SMF network element, and the CHF network element
- step S701 to step S726 can be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403.
- the embodiment of the present application does not impose any limitation on this.
- the method for establishing a session is provided in the method for establishing a session, and the method includes: The following steps:
- the first terminal sends a session establishment request to the SMF network element, so that the SMF network element receives the session establishment request from the first terminal.
- the session establishment request carries the identifier of the first terminal.
- the SMF network element sends a message 1 to the PCF network element according to the session establishment request, so that the PCF network element receives the message 1 from the SMF network element.
- the message 1 carries the identifier of the first terminal, and is used to request a charging policy corresponding to the first terminal.
- the PCF network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and the first terminal needs to perform charging policy update according to the group charging account status.
- the first terminal is used as the group charging terminal, and the contract management on the PCF network element has been taken as an example for description. Therefore, after acquiring the identifier of the first terminal, the PCF network element may search for the subscription data corresponding to the first terminal according to the identifier of the first terminal, so that the first terminal is determined to be the group charging terminal according to the subscription data, and the first The terminal needs to update the charging policy according to the status of the group charging account.
- the first terminal in the embodiment of the present application may be a session-level group charging terminal or a service-level group charging terminal, which is not specifically limited in this embodiment of the present application.
- the PCF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the CHF network element.
- the charging group to which the first terminal belongs is a session-level charging group; if the first terminal is a service-level group charging terminal, The charging group to which the first terminal belongs is a service-level charging group, which is not specifically limited in this embodiment of the present application.
- the PCF network element sends a message 2 to the CHF network element, so that the CHF network element receives the message 2 from the PCF network element.
- the message 2 carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
- the CHF network element associates, according to the message 2, the group identifier of the charging group to which the first terminal belongs, and the corresponding charging account status.
- the CHF network element sends a response message 1 to the PCF network element, so that the PCF network element receives the response message 1 from the CHF network element.
- the response message 1 is used to indicate that the charging session establishment corresponding to the group identifier of the charging group to which the first terminal belongs is completed.
- the PCF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the CHF network element, the foregoing steps S804-S807 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group to which the first terminal belongs between the PCF network element and the CHF network element, and it is not necessary to use the PCF as in the prior art.
- a charging session corresponding to each terminal in the charging group is established between the network element and the CHF network element, thereby greatly reducing the number of message interactions between the PCF network element and the CHF network element, and further to the PCF network element and the CHF. The performance requirements of network elements are greatly reduced.
- the CHF network element associates the group identifier of the charging group to which the first terminal belongs and the corresponding charging account status
- the group identifier corresponding to the charging group to which the first terminal belongs is The status of the accounting account is changed. For example, if the charging group of the first terminal has no available group accounting traffic fragment, the CHF network element needs to notify the PCF network element in time, so that the PCF network element timely updates the charging of the first terminal.
- the charging policy of the terminal in the group refer to steps S718-S726 in the embodiment shown in FIG. 7, and details are not described herein again.
- S808 The PCF network element associates the first terminal with the charging group to which the first terminal belongs.
- the manner in which the PCF network element associates the first terminal with the charging group to which the first terminal belongs may be similar to the manner in which the PCRF network element in the S608 associates the first terminal with the charging group to which the first terminal belongs.
- the PCRF network element in the S608 associates the first terminal with the charging group to which the first terminal belongs.
- the first terminal is a service level group charging terminal
- for each service level charging group in one or more service level charging groups corresponding to the first terminal It can be performed in the manner of the above steps S804-S808, which is not specifically limited in this embodiment of the present application.
- steps S804-S808 of the present application are applied to the scenario in which the PCF network element determines that the first terminal needs to perform the charging policy update according to the group charging account status, and if the PCF network element determines that the first terminal does not need to be based on the group.
- the fee policy status is updated by the charging policy, and the above steps S804-S808 may not be performed, and the description is not described herein.
- the method for delivering the group charging policy when the PCF network element determines that the charging group of the first terminal belongs to the available group charging traffic fragment, the method for delivering the group charging policy provided by the embodiment of the present application further includes the following step:
- the PCF network element sends a response message 2 to the SMF network element, so that the SMF network element receives the response message 2 from the PCF network element.
- the response message 2 carries the charging policy corresponding to the first terminal.
- step S609 of the embodiment shown in FIG. 6 and details are not described herein again.
- the first terminal is a service level group charging terminal
- the method can be performed in the manner of the foregoing step S809; or the response message 2 can carry the charging policy of the multiple service-level charging groups corresponding to the first terminal, which is not specifically limited in this embodiment.
- the SMF network element associates the first terminal with a charging group to which the first terminal belongs.
- the manner in which the SMF network element associates the first terminal with the charging group to which the first terminal belongs is similar to the manner in which the PCEF network element associates the first terminal with the charging group to which the first terminal belongs in the foregoing step S610.
- the SMF network element associates the first terminal with the charging group to which the first terminal belongs in the foregoing step S610.
- step S610 For description, refer to step S610, and details are not described herein again.
- the SMF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the CHF network element.
- S812 The SMF network element sends a message 3 to the CHF network element, so that the CHF network element receives the message 3 from the SMF network element.
- the message 3 carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
- the CHF network element allocates a corresponding first group of charging traffic fragments to the charging group to which the first terminal belongs according to the message 3.
- the CHF network element sends a response message 3 to the SMF network element, so that the SMF network element receives the response message 3 from the CHF network element.
- the response message 3 carries the group identifier of the charging group to which the first terminal belongs and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the SMF network element associates the charging group to which the first terminal belongs with the corresponding first group of charging traffic fragments according to the response message 3.
- the SMF network element associates the charging group to which the first terminal belongs and the corresponding first group of charging traffic fragments
- the PCRF network element in the foregoing step S615 associates the charging group of the first terminal with the corresponding
- a method for associating a set of charging traffic fragments is similar. For related description, refer to step S615, and details are not described herein again.
- the SMF network element may be configured according to the charging group to which the first terminal belongs.
- the group identifier and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, and specifically refer to the meter shown in FIG. The fee method will not be described here.
- the SMF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the CHF network element, the foregoing steps S811-S815 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group to which the first terminal belongs between the SMF network element and the CHF network element, without the need to be in the SMF as in the prior art.
- a charging session corresponding to each terminal in the charging group is established between the network element and the CHF network element, thereby greatly reducing the number of message interactions between the SMF network element and the CHF network element, and further to the SMF network element and the CHF. The performance requirements of network elements are greatly reduced.
- the SMF network element sends a message 4 to the UPF network element serving the first terminal, so that the UPF network element receives the message 4 from the SMF network element.
- the message 4 carries the charging policy corresponding to the first terminal.
- step S609 of the embodiment shown in FIG. 6 and details are not described herein again.
- the message 4 in the embodiment of the present application may further carry information such as a fifth group of the traffic flow segment and the traffic report threshold that are allocated by the SMF network element to the charging group to which the first terminal belongs. No specific limitation.
- the UPF network element associates the first terminal with the charging group to which the first terminal belongs.
- the manner in which the UPF network element associates the first terminal with the charging group to which the first terminal belongs is similar to the manner in which the PCEF network element associates the first terminal with the charging group to which the first terminal belongs in the foregoing step S610.
- the charging group to which the first terminal belongs is generally managed by the group traffic statistics node on the UPF network element. For related description, refer to step S610, and details are not described herein.
- the message 4 in the step S816 in the embodiment of the present application carries the information that the SMF network element is allocated to the charging group of the first terminal, and the traffic reporting threshold, the application is implemented.
- the session establishment method provided by the example may further include the following step S818:
- the UPF network element associates the charging group to which the first terminal belongs with the corresponding fifth group of charging traffic fragments according to the message 4.
- the manner in which the UPF network element associates the charging group to which the first terminal belongs and the corresponding fifth group of charging traffic fragments is the same as the charging unit in the first step of the PCRF network element in step S615.
- a method for associating a set of charging traffic fragments is similar. For related description, refer to step S615, and details are not described herein again.
- the UPF network element may be configured according to the charging group to which the first terminal belongs.
- the group identifier and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, and specifically refer to the meter shown in FIG. The fee method will not be described here.
- the UPF network element sends a response message 4 to the SMF network element, so that the SMF network element receives the response message 4 from the UPF network element.
- the response message 4 is used to indicate that the UPF network element has learned the charging policy corresponding to the first terminal.
- the first terminal is a service level group charging terminal
- for each service level charging group in one or more service level charging groups corresponding to the first terminal It can be performed in the manner of the above steps S810-S819, which is not specifically limited in this embodiment of the present application.
- the session establishment method provided by the embodiment of the present application may further include the following steps:
- the SMF network element sends a session establishment response to the first terminal, so that the first terminal receives the session establishment response from the SMF network element.
- the session establishment response is used to indicate that the charging session establishment corresponding to the first terminal is completed.
- the configuration process of the charging policy corresponding to the first terminal may be implemented.
- the actions of the SMF network element, the PCF network element, or the CHF network element in the foregoing steps S801 to S820 may be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403.
- the embodiment of the present application does not impose any limitation on this.
- a charging method different from the embodiment shown in FIG. 7 may be performed, which is uniformly described herein, and details are not described herein again.
- the charging policy corresponding to the first terminal may be pre-configured on the SMF network element, which is not specifically limited in this embodiment of the present application.
- the embodiment shown in FIG. 7 or FIG. 8 is described by taking an example in which a terminal in a charging group is distributed on one SMF network element.
- the terminals in a charging group may also be distributed on different SMF network elements.
- the interaction process of each SMF network element with other network elements may refer to the embodiment shown in FIG. 7 or FIG. 8 above. The interaction process between the SMF network element and other network elements will not be described here.
- the charging system shown in FIG. 1 is applied to the network before 5G as shown in FIG. 2 .
- the charging method provided by the embodiment of the present application includes the following steps:
- the PCEF network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs.
- the preset traffic in the embodiment of the present application is the traffic required to generate an offline CDR when the offline charging is set.
- an offline bill can be generated when the first data traffic reaches 10M.
- S905 The PCEF network element generates an offline bill according to the first data traffic.
- the offline CDR is not generated until the PCEF network element receives the first terminal.
- the data packet of the terminal in the charging group, and the first data traffic reaches the preset traffic corresponding to the charging group to which the first terminal belongs, and the offline CDR is generated, which is not specifically limited in this embodiment.
- the PCEF network element may further determine, according to the data packet, a group identifier of the charging group to which the first terminal belongs, and further, according to the first terminal
- the group ID of the billing group determines the billing duration of the billing group that the first terminal belongs to on the PCEF network element, and the billing duration reaches the preset duration (for example, half an hour) corresponding to the billing group to which the first terminal belongs.
- the PCEF can generate an offline CDR according to the charging duration, which is not specifically limited in this embodiment of the present application.
- the offline charging according to the charging method provided by the embodiment of the present application can greatly reduce the performance requirements of the related network element, such as the PCEF network element, and can further reduce the cost of the equipment manufacturer.
- the related technical effect analysis can refer to the charging system part. I will not repeat them here.
- the action of the PCEF network element in the foregoing step S901 to the step S905 can be performed by the processor 401 in the communication device 400 shown in FIG. 4 to call the application code stored in the memory 403, and the embodiment of the present application does not make any limit.
- the configuration process of the corresponding charging policy may include steps S601-S603, S609-S610, and step S616 in the embodiment shown in FIG.
- steps S601-S603, S609-S610, and step S616 in the embodiment shown in FIG.
- the embodiment of the present application discloses a charging method, including: the policy execution network element acquires the first data traffic, where the first data traffic is the current data of the charging group to which the first terminal belongs on the policy execution network element.
- the policy execution network element determines that the first data traffic has reached the reported traffic of the first group of the traffic flow segments corresponding to the charging group to which the first terminal belongs; the policy execution network element sends the first terminal to the accounting function network element.
- the group identifier of the fee group and the first data traffic, wherein the group identifier and the first data traffic are used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the charging method disclosed in the embodiment of the present application may further include: the policy execution network element receives the group identifier of the charging group to which the first terminal belongs from the charging function network element, and the corresponding charging group of the first terminal.
- the second group of charging traffic fragments wherein the group identifier and the second group of charging traffic fragments are used to perform group charging processing on data traffic of terminals in the charging group to which the first terminal belongs.
- the charging group to which the first terminal belongs includes a session-level charging group or a service-level charging group.
- the policy enforcement network element is a policy and charging execution function network element; the policy execution network element acquires the first data traffic, including: the policy and charging execution function network element receives the data packet from the first terminal; The accounting execution function network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs; the policy and charging execution function network element determines the first data traffic according to the group identifier and the data traffic corresponding to the data packet.
- the policy and charging execution function network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs, where the policy and charging execution function network element determines the first according to the data packet.
- the identifier of the terminal; the policy and the charging execution function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal.
- the policy and charging execution function network element determines, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including: the policy and charging execution function network element determines the first according to the data packet.
- the identifier of a terminal; the policy and the charging execution function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal and the service corresponding to the data packet.
- the policy execution network element is a session management network element; correspondingly, the policy execution network element acquires the first data traffic, including: the session management network element receives the second data traffic and the group identifier from the user plane function network element, The second data traffic is the current data traffic of the charging group of the first terminal on the user plane function network element; the session management network element determines the first data traffic according to the second data traffic and the group identifier.
- the policy enforcement network element is a session management network element.
- the charging method disclosed in the embodiment of the present application may further include: reporting that the first data traffic does not reach the first group of the charging traffic fragment.
- the session management network element sends the group identifier and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs to the user plane function network element, and the group identifier and the third group of charging traffic fragments are used.
- the group charging process is performed on the data traffic of the terminal in the charging group to which the first terminal belongs.
- the third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
- the charging method disclosed in the embodiment of the present application may further include: the policy execution network element receives the first indication information from the charging function network element, where the first indication information is used to indicate the charging group to which the first terminal belongs. No available group accounting traffic fragmentation.
- the charging method disclosed in the embodiment of the present application may further include: processing, for any terminal in the charging group to which the first terminal belongs, according to the following manner for the second terminal: the policy execution network element receiving a first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the policy execution network element deletes the second terminal and the first terminal according to the first message.
- processing for any terminal in the charging group to which the first terminal belongs, according to the following manner for the second terminal: the policy execution network element receiving a first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the policy execution network element deletes the second terminal and the first terminal according to the first message.
- the association relationship of the accounting group to which it belongs may further include: processing, for any terminal in the charging group to which the first terminal belongs, according to the following manner for the second terminal: the policy execution network element receiving a first message from
- the policy enforcement network element is a session management network element; correspondingly, the charging method disclosed in the embodiment of the present application may further include: for any terminal in the charging group to which the first terminal belongs, according to the following The second terminal is configured to: the session management network element receives the first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the session management network element And deleting, according to the first message, the association relationship between the second terminal and the charging group to which the first terminal belongs; the session management network element sends a second message to the user plane function network element, where the second message is used to indicate to delete the second terminal and the first Relationship between the accounting groups to which the terminal belongs.
- the policy execution network element is pre-configured with an association relationship between the first terminal and the charging group to which the first terminal belongs.
- the charging method disclosed in the embodiment of the present application may further include: the policy execution network element receives the group identifier of the charging group to which the first terminal belongs from the policy control network element, and the identifier of the first terminal; And associating the first terminal with the charging group to which the first terminal belongs according to the group identifier and the identifier of the first terminal.
- the charging method disclosed in the embodiment of the present application may further include: the policy execution network element determines that the group charging session is not established with the charging function network element; and the policy execution network element sends the third message to the charging function network element.
- the third message carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier; the policy execution network element receives the charging group of the first terminal from the charging function network element.
- the operation of the policy execution network element may refer to the operation of the PCEF network element in FIG. 5 or FIG. 6, or the operation of the SMF network element in FIG. 7 or FIG. 8 and the related text description, and no longer Narration.
- the embodiment of the present application further discloses a charging method, including: the policy and charging execution function network element acquires the first data traffic, where the first data traffic is performed by the charging group of the first terminal in policy and charging. The current data traffic on the function network element; the policy and charging execution function network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs; the policy and charging execution function network element is based on the first data traffic. Generate an offline bill.
- the operation of the network element of the policy and the charging execution function may be referred to the operation of the PCEF network element in FIG. 9 and the related text description, and details are not described herein again.
- the solution provided by the embodiment of the present application is mainly introduced from the perspective of interaction between the network elements.
- the foregoing policy execution network element or the policy and charging execution function network element includes corresponding hardware structures and/or software modules for executing the respective functions in order to implement the above functions.
- the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
- the embodiment of the present application may perform a function module division on a policy execution network element or a policy and charging execution function network element according to the foregoing method example.
- each function module may be divided according to each function, or two or more functions may be used.
- the functions are integrated in one processing module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
- FIG. 10 shows a schematic structural diagram of a policy execution network element 100.
- the policy enforcement network element 100 includes a processing module 1001 and a transceiver module 1002.
- the processing module 1001 is configured to obtain the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the policy execution network element.
- the processing module 1001 is further configured to determine that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- the transceiver module 1002 is configured to send, to the charging function network element, a group identifier of the charging group to which the first terminal belongs, and the first data traffic, where the group identifier and the first data traffic are used to request the charging group to which the first terminal belongs. Corresponding second group of charging traffic fragments.
- the transceiver module 1002 is further configured to receive a group identifier from the charging function network element and a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs; wherein the group identifier and the second group The charging traffic fragment is used to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs.
- the policy enforcement network element is a policy and charging execution function network element; correspondingly, the processing module 1001 is configured to obtain the first data traffic, including: receiving the data packet from the first terminal; The data packet determines the group identifier of the charging group to which the first terminal belongs; determines the first data traffic according to the group identifier and the data traffic corresponding to the data packet.
- the processing module 1001 is configured to determine, according to the data packet, a group identifier of the charging group to which the first terminal belongs, where the method includes: determining, according to the data packet, an identifier of the first terminal; determining, according to the identifier of the first terminal, the first Group ID of the accounting group to which the terminal belongs.
- the processing module 1001 is configured to determine, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including: determining, according to the data packet, the identifier of the first terminal; The identifier and the service corresponding to the data packet determine the group identifier of the charging group to which the first terminal belongs.
- the policy execution network element is a session management network element
- the processing module 1001 is configured to: acquire, by the processing module 1001, the second data traffic and the group identifier from the user plane function network element, where The second data traffic is the current data traffic of the charging group of the first terminal to the user plane function network element; and the first data traffic is determined according to the second data traffic and the group identifier.
- the policy execution network element is a session management network element; and correspondingly, the transceiver module 1002 is further configured to: when the first data traffic does not reach the reported traffic of the first group of the traffic flow fragments, The network element sending group identifier and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs, the group identifier and the third group of charging traffic fragments are used for data of the terminal in the charging group to which the first terminal belongs The traffic performs group accounting processing, where the third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
- the transceiver module 1002 is further configured to receive the first indication information from the charging function network element, where the first indication information is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment.
- the transceiver module 1002 is further configured to receive a first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted, where the second terminal is The processing module 1001 is further configured to delete the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message.
- the policy enforcement network element is a session management network element; correspondingly, the transceiver module 1002 is further configured to receive a first message from the policy control network element, where the first message is used to indicate that the second terminal and the first terminal belong to the deletion The association relationship of the charging group, wherein the second terminal is any terminal in the charging group to which the first terminal belongs; the processing module 1001 is configured to delete the second terminal and the charging group to which the first terminal belongs according to the first message.
- the association module 1002 is further configured to send a second message to the user plane function network element, where the second message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
- the policy execution network element is pre-configured with an association relationship between the first terminal and the charging group to which the first terminal belongs.
- the transceiver module 1002 is further configured to receive the group identifier from the policy control network element and the identifier of the first terminal, where the processing module 1001 is further configured to use, according to the group identifier and the identifier of the first terminal, The first terminal is associated with the charging group to which the first terminal belongs.
- the processing module 1001 is further configured to determine that a group charging session is not established with the charging function network element.
- the transceiver module 1002 is further configured to send a third message to the charging function network element, where the third message carries a group identifier, and is used to request to establish a charging session corresponding to the group identifier.
- the transceiver module 1002 is further configured to receive a fourth group of charging traffic fragments corresponding to the charging group to which the first terminal belongs from the charging function network element.
- the policy enforcement network element 100 is presented in a form that divides each functional module in an integrated manner.
- a “module” herein may refer to a particular ASIC, circuitry, processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other devices that provide the functionality described above.
- the policy enforcement network element 100 can take the form shown in FIG.
- the processor 401 in FIG. 4 can execute an instruction by calling a computer stored in the memory 403, so that the policy execution network element 100 executes the charging method in the foregoing method embodiment.
- the function/implementation process of the processing module 1001 and the transceiver module 1002 in FIG. 10 can be implemented by the processor 401 in FIG. 4 calling a computer execution instruction stored in the memory 403.
- the function/implementation process of the processing module 1001 in FIG. 10 can be implemented by the processor 401 in FIG. 4 calling the computer execution instruction stored in the memory 403, and the function/implementation process of the transceiver module 1002 in FIG.
- the communication interface 404 in 4 is implemented.
- the policy execution network element provided in this embodiment can perform the foregoing charging method. Therefore, the technical effects of the foregoing method can be referred to the foregoing method embodiments, and details are not described herein again.
- the embodiment of the present application further provides a chip system, where the chip system includes a processor, and is configured to support a policy execution network element to implement the foregoing charging method, for example, acquiring the first data traffic.
- the chip system also includes a memory.
- the memory is used to save program instructions and data necessary for the policy execution network element.
- the memory may not be in the chip system.
- the chip system may be composed of a chip, and may also include a chip and other discrete devices. This embodiment of the present application does not specifically limit this.
- FIG. 11 shows a schematic structural diagram of a policy and charging execution function network element 110.
- the policy and charging execution function network element 110 includes an obtaining module 1101 and a processing module 1102.
- the obtaining module 1101 is configured to acquire the first data traffic, where the first data traffic is the current data traffic of the charging group of the first terminal to the policy and charging execution function network element, and the processing module 1002 is configured to determine the first data traffic.
- the data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs; the offline CDR is generated according to the first data traffic.
- the policy and charging execution function network element 110 is presented in a form that divides each functional module in an integrated manner.
- a “module” herein may refer to a particular ASIC, circuitry, processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other devices that provide the functionality described above.
- the policy and charging enforcement function network element 110 can take the form shown in FIG.
- the processor 401 in FIG. 4 can execute the instruction by calling a computer stored in the memory 403, so that the policy and charging execution function network element 110 executes the charging method in the above method embodiment.
- the function/implementation process of the obtaining module 1101 and the processing module 1102 in FIG. 11 can be implemented by the processor 401 in FIG. 4 calling a computer executing instruction stored in the memory 403.
- the policy and the charging and executing function network element provided in this embodiment can perform the above-mentioned charging method. Therefore, the technical effects that can be obtained can be referred to the foregoing method embodiments, and details are not described herein again.
- the embodiment of the present application further provides a chip system, where the chip system includes a processor, and is configured to support a policy and a charging execution function network element to implement the foregoing charging method, for example, acquiring the first data traffic.
- the chip system also includes a memory.
- the memory is used to store program instructions and data necessary for the network element of the policy and charging execution function.
- the memory may not be in the chip system.
- the chip system may be composed of a chip, and may also include a chip and other discrete devices. This embodiment of the present application does not specifically limit this.
- the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
- a software program it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions.
- the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part.
- the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
- the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device that includes one or more servers, data centers, etc. that can be integrated with the media.
- the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)) or the like.
- a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
- an optical medium eg, a DVD
- a semiconductor medium such as a solid state disk (SSD)
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Meter Arrangements (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiments of the present application provide a charging method, device, and system, which enables a reduction of the requirement of fee-charging for the performance of a relevant network element. The method comprises: a policy execution network element obtaining first data traffic, said first data traffic being the current data traffic of a charging group, to which a first terminal belongs, on a policy enforcement network element; the policy enforcement network element determining that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs; the policy execution network element sending a group identifier of the charging group to which the first terminal belongs, and the first data traffic, to a charging function network element, the group identifier and the first data traffic being used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
Description
本申请要求于2018年5月4日提交中国国家知识产权局、申请号为201810420061.1、发明名称为“计费方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201810420061.1, entitled "Billing Method, Equipment and System", filed on May 4, 2018, the entire contents of which are incorporated herein by reference. In the application.
本申请涉及通信技术领域,尤其涉及计费方法、设备及系统。The present application relates to the field of communications technologies, and in particular, to a charging method, device, and system.
目前,在分组核心网计费架构中,当运营商向企业或用户组提供数据业务时,策略和计费执行功能(policy and charging enforcement function,PCEF)网元上对于企业或用户组内的各个用户数据流量,分别进行业务识别和计费处理。其中,离线计费流程中,PCEF网元根据运营商为企业或用户组分配的特定计费标识为企业或用户组内的每个用户分别生成离线话单;在线计费流程中,OCS为企业或用户组内的每个用户进行流量配额管理,PCEF网元根据运营商为企业或用户组分配的特定计费标识与在线计费系统(online charging system,OCS)之间通过Gy接口进行企业或用户组内的每个用户的在线计费消息交互,由OCS将特定计费标识的流量进行汇总之后,根据是否达到设定阈值来确定是否进行策略变更。若需要进行策略变更,则OCS可以通过与策略和计费执行功能(policy and charging rule function,PCRF)网元之间的Sy接口通知PCRF网元进行策略变更。也就是说,现有技术中的在线或离线计费策略控制都是基于用户进行的。这存在如下问题:Currently, in the packet core network charging architecture, when an operator provides data services to an enterprise or a user group, a policy and charging enforcement function (PCEF) network element is used for each enterprise or user group. User data traffic, respectively, for service identification and billing processing. In the offline charging process, the PCEF network element generates an offline CDR for each user in the enterprise or the user group according to the specific charging identifier assigned by the operator to the enterprise or the user group; in the online charging process, the OCS is the enterprise. Or each user in the user group performs traffic quota management. The PCEF network element performs the enterprise or the enterprise through the Gy interface between the specific charging identifier assigned by the operator for the enterprise or the user group and the online charging system (OCS). After the online charging message of each user in the user group is exchanged, the OCS collects the traffic of the specific charging identifier, and then determines whether to perform the policy change according to whether the threshold is reached. If a policy change is required, the OCS can notify the PCRF network element to perform policy change by using the Sy interface between the policy and charging rule function (PCRF) network element. That is to say, the online or offline charging policy control in the prior art is based on the user. This has the following problems:
第一,由于基于用户的流量分片较小,触发的离线话单生成或Gy接口消息交互均会比较频繁,因此该方案对于PCEF网元以及OCS的业务处理性能要求较高。First, the user-based traffic fragmentation is small, and the triggered offline bill generation or Gy interface message interaction is relatively frequent. Therefore, the scheme has higher requirements on the service processing performance of the PCEF network element and the OCS.
第二,由于每个用户均需要创建并维护一个Gy在线计费会话,以及基于用户生成离线话单,因此,对于该方案对于PCEF网元以及OCS的静态性能要求也较高。Second, since each user needs to create and maintain a Gy online charging session and generate an offline CDR based on the user, the static performance requirements for the PCEF network element and the OCS are also high.
第三,在线计费流程中,OCS需要为每个用户进行流量配额管理,并将特定计费标识的流量进行汇总,因此要求OCS需要支持用户组的流量后处理功能。此外,离线计费流程中,离线计费系统(offline charging system)也需要将特定计费标识的流量进行汇总,因此要求OFCS需要支持用户组的流量后处理功能。Third, in the online charging process, the OCS needs to perform traffic quota management for each user and summarize the traffic of the specific charging identifier. Therefore, the OCS is required to support the traffic post-processing function of the user group. In addition, in the offline charging process, the offline charging system also needs to summarize the traffic of the specific charging identifier. Therefore, the OFCS needs to support the traffic post-processing function of the user group.
综上,现有的计费方法对于相关网元的各项性能要求都较高,因此,如何提供一种计费方法,使得可以降低计费对相关网元性能的要求,是目前亟待解决的问题。In summary, the existing charging method has higher performance requirements for related network elements. Therefore, how to provide a charging method can reduce the requirement of charging for related network element performance, which is urgently needed to be solved. problem.
发明内容Summary of the invention
本申请实施例提供计费方法、设备及系统,使得可以降低计费对相关网元性能的要求。The embodiments of the present application provide a charging method, a device, and a system, so that the requirements for charging performance on related network elements can be reduced.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
第一方面,提供了一种计费方法,该方法包括:策略执行网元获取第一数据流量,该第一数据流量为第一终端所属计费组在该策略执行网元上的当前数据流量;策略执行网元确定该第一数据流量已经达到该第一终端所属计费组对应的第一组计费流量分片的上报流量;策略执行网元向计费功能网元发送该第一终端所属计费组的组标识以及该第一数据流量,其中, 该组标识和该第一数据流量用于请求该第一终端所属计费组对应的第二组计费流量分片。由于该方案的计费控制是以计费组为粒度进行的,不像现有技术一样,是基于用户进行的,因此基于本申请实施例提供的计费方法进行计费,将大大减少创建和维护的计费会话数量。另外,由于基于计费组的流量分片通常大于基于用户的流量分片,因此基于本申请实施例提供的计费方法进行计费,将大大减少策略执行网元和计费功能网元之间的消息交互次数。同时,由于计费功能网元不需要再为每个用户进行流量配额管理以及将特定计费标识的流量进行汇总,因此,基于本申请实施例提供的计费系统进行计费,也不需要计费功能网元支持用户组的流量后处理功能。综上,基于本申请实施例提供的计费系统进行计费,可以大大降低对相关网元,如策略执行网元和计费功能网元的性能要求,进而可以降低设备厂商的成本。The first aspect provides a charging method, where the method includes: the policy execution network element acquires the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the policy execution network element. The policy execution network element determines that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs; the policy execution network element sends the first terminal to the charging function network element. The group identifier of the charging group and the first data traffic, wherein the group identifier and the first data traffic are used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Since the charging control of the solution is performed at the granularity of the charging group, and is not based on the user, the charging method based on the charging method provided in the embodiment of the present application will greatly reduce the creation and The number of billing sessions maintained. In addition, since the traffic fragmentation based on the charging group is usually larger than the user-based traffic fragmentation, the charging method based on the charging method provided by the embodiment of the present application will greatly reduce the between the policy execution network element and the charging function network element. The number of message interactions. At the same time, since the charging function network element does not need to perform traffic quota management for each user and summarizes the traffic of the specific charging identifier, the charging system provided by the embodiment of the present application does not need to calculate. The fee function network element supports the traffic post-processing function of the user group. In summary, the charging system based on the charging system provided by the embodiment of the present invention can greatly reduce the performance requirements of related network elements, such as the policy execution network element and the charging function network element, thereby reducing the cost of the equipment manufacturer.
在一种可能的设计中,本申请实施例提供的计费方法还可以包括:策略执行网元接收来自计费功能网元的该组标识以及该第一终端所属计费组对应的第二组计费流量分片;其中,该组标识以及该第二组计费流量分片用于对该第一终端所属计费组内的终端的数据流量进行组计费处理。基于该方案,策略执行网元在第一数据流量已经达到该第一终端所属计费组对应的第一组计费流量分片的上报流量之后,可以继续根据第二组计费流量分片对第一终端所属计费组内的终端的数据流量进行组计费处理。In a possible design, the charging method provided by the embodiment of the present application may further include: the policy execution network element receiving the group identifier from the charging function network element and the second group corresponding to the charging group to which the first terminal belongs The billing traffic is fragmented. The group identifier and the second group of billing traffic fragments are used to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs. The policy execution network element may continue to perform the segmentation according to the second group of charging traffic after the first data traffic has reached the reported traffic of the first group of the traffic volume fragments corresponding to the charging group to which the first terminal belongs. The data traffic of the terminal in the charging group to which the first terminal belongs is subjected to group charging processing.
在一种可能的设计中,该第一终端所属计费组包括会话级计费组或业务级计费组。In a possible design, the charging group to which the first terminal belongs includes a session-level charging group or a service-level charging group.
在一种可能的设计中,策略执行网元为策略和计费执行功能网元;策略执行网元获取第一数据流量,包括:策略和计费执行功能网元接收来自该第一终端的数据包;策略和计费执行功能网元根据该数据包,确定该第一终端所属计费组的组标识;策略和计费执行功能网元根据该组标识和该数据包对应的数据流量,确定该第一数据流量。基于该方案,策略和计费执行功能网元可以获取第一终端所属计费组在该策略和计费执行功能网元上的当前数据流量。In a possible design, the policy enforcement network element is a policy and charging execution function network element; the policy execution network element acquires the first data traffic, including: the policy and charging execution function network element receives the data from the first terminal. The policy and the accounting execution function network element determine, according to the data packet, the group identifier of the charging group to which the first terminal belongs; the policy and charging execution function network element determines according to the group identifier and the data traffic corresponding to the data packet. The first data traffic. Based on the solution, the policy and charging execution function network element can obtain current data traffic of the charging group to which the first terminal belongs on the policy and charging execution function network element.
在一种可能的设计中,策略和计费执行功能网元根据该数据包,确定该第一终端所属计费组的组标识,包括:策略和计费执行功能网元根据该数据包,确定该第一终端的标识;策略和计费执行功能网元根据该第一终端的标识,确定该第一终端所属计费组的组标识。基于该方案,策略和计费执行功能网元可以确定该第一终端所属会话级计费组的组标识。In a possible design, the policy and charging execution function network element determines, according to the data packet, the group identifier of the charging group to which the first terminal belongs, including: the policy and charging execution function network element determines according to the data packet. The identifier of the first terminal; the policy and the charging execution function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal. Based on the solution, the policy and charging execution function network element may determine the group identifier of the session-level charging group to which the first terminal belongs.
在一种可能的设计中,策略和计费执行功能网元根据该第一终端的数据包,确定该第一终端所属计费组的组标识,包括:策略和计费执行功能网元根据该数据包,确定该第一终端的标识;策略和计费执行功能网元根据该第一终端的标识和该数据包对应的业务确定该第一终端所属计费组的组标识。基于该方案,策略和计费执行功能网元可以确定该第一终端所属业务级计费组的组标识。In a possible design, the policy and charging execution function network element determines, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including: the policy and charging execution function network element according to the And determining, by the data packet, the identifier of the first terminal; the policy and the charging execution function network element determining, according to the identifier of the first terminal and the service corresponding to the data packet, the group identifier of the charging group to which the first terminal belongs. Based on the solution, the policy and charging execution function network element may determine the group identifier of the service level charging group to which the first terminal belongs.
在一种可能的设计中,策略执行网元为会话管理网元;相应的,策略执行网元获取第一数据流量,包括:会话管理网元接收来自用户面功能网元的第二数据流量和该组标识,该第二数据流量为该第一终端所属计费组在该用户面功能网元上的当前数据流量;会话管理网元根据该第二数据流量和该组标识,确定该第一数据流量。基于该方案,会话管理网元可以获取第一终端所属计费组在该会话管理网元上的当前数据流量。In a possible design, the policy execution network element is a session management network element; correspondingly, the policy execution network element acquires the first data traffic, including: the session management network element receives the second data traffic from the user plane function network element and The group identifier, the second data traffic is the current data traffic of the charging group of the first terminal to the user plane function network element; the session management network element determines the first according to the second data traffic and the group identifier Data Flow. Based on the solution, the session management network element can obtain the current data traffic of the charging group to which the first terminal belongs on the session management network element.
在一种可能的设计中,该策略执行网元为会话管理网元;相应的,本申请实施例提供的计费方法还可以包括:在该第一数据流量未达到该第一组计费流量分片的上报流量的情况下,会话管理网元向用户面功能网元发送该组标识以及该第一终端所属计费组对应的第三组计费流量分片,该组标识以及该第三组计费流量分片用于对该第一终端所属计费组内的终端的数据流量进行组计费处理,其中,该第三组计费流量分片小于该第一组计费流量分片。基于该 方案,用户面功能网元可以根据第三组计费流量分片继续对第一终端所属计费组内的终端的数据流量进行组计费处理。In a possible design, the policy execution network element is a session management network element. Correspondingly, the charging method provided by the embodiment of the present application may further include: the first data traffic does not reach the first group of charging traffic. In the case of the reported traffic of the fragment, the session management network element sends the group identifier and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs to the user plane function network element, the group identifier and the third The group-based charging traffic fragment is configured to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, where the third group of charging traffic fragments is smaller than the first group of charging traffic fragments. . Based on the solution, the user plane function network element can continue to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs according to the third group of charging traffic fragments.
在一种可能的设计中,本申请实施例提供的计费方法还可以包括:策略执行网元接收来自该计费功能网元的第一指示信息,该第一指示信息用于指示该第一终端所属计费组无可用组计费流量分片。这样策略执行网元可以不再向计费功能网元请求新的组计费流量分片。In a possible design, the charging method provided by the embodiment of the present application may further include: the policy execution network element receives the first indication information from the charging function network element, where the first indication information is used to indicate the first There is no available group accounting traffic fragment for the charging group to which the terminal belongs. In this way, the policy enforcement network element can no longer request a new group charging traffic fragment from the charging function network element.
在一种可能的设计中,本申请实施例提供的计费方法还可以包括:对于该第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:策略执行网元接收来自策略控制网元的第一消息,该第一消息用于指示删除该第二终端和该第一终端所属计费组的关联关系;策略执行网元根据该第一消息,删除该第二终端和该第一终端所属计费组的关联关系。这样,在后续流程中对于来自第二终端的数据包的数据流量只能匹配到个人计费流量上,不再享受组计费策略。In a possible design, the charging method provided by the embodiment of the present application may further include: processing, for any terminal in the charging group to which the first terminal belongs, according to the following manner for the second terminal: a policy The execution network element receives the first message from the policy control network element, where the first message is used to delete the association relationship between the second terminal and the charging group to which the first terminal belongs; the policy execution network element deletes according to the first message. The association relationship between the second terminal and the charging group to which the first terminal belongs. In this way, in the subsequent process, the data traffic of the data packet from the second terminal can only match the personal charging traffic, and the group charging policy is no longer enjoyed.
在一种可能的设计中,该策略执行网元为会话管理网元;相应的,本申请实施例提供的计费方法还可以包括:对于该第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:会话管理网元接收来自策略控制网元的第一消息,该第一消息用于指示删除该第二终端和该第一终端所属计费组的关联关系;会话管理网元根据该第一消息,删除该第二终端和该第一终端所属计费组的关联关系;会话管理网元向用户面功能网元发送第二消息,该第二消息用于指示删除该第二终端和该第一终端所属计费组的关联关系。这样,在后续流程中对于来自第二终端的数据包的数据流量只能匹配到个人计费流量上,不再享受组计费策略。In a possible design, the policy execution network element is a session management network element. Correspondingly, the charging method provided by the embodiment of the present application may further include: for any terminal in the charging group to which the first terminal belongs, The processing is performed in the following manner for the second terminal: the session management network element receives the first message from the policy control network element, where the first message is used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted. Correlation relationship; the session management network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message; the session management network element sends a second message to the user plane function network element, the second message And an instruction to delete the association relationship between the second terminal and the charging group to which the first terminal belongs. In this way, in the subsequent process, the data traffic of the data packet from the second terminal can only match the personal charging traffic, and the group charging policy is no longer enjoyed.
在一种可能的设计中,该策略执行网元上预先配置有该第一终端和该第一终端所属计费组的关联关系。也就是说,本申请实施例中,第一终端和该第一终端所属计费组的关联关系可以静态配置。In a possible design, the policy execution network element is pre-configured with an association relationship between the first terminal and a charging group to which the first terminal belongs. That is, in the embodiment of the present application, the association relationship between the first terminal and the charging group to which the first terminal belongs may be statically configured.
在一种可能的设计中,本申请实施例提供的计费方法还可以包括:策略执行网元接收来自策略控制网元的该组标识和该第一终端的标识;策略执行网元根据该组标识和该第一终端的标识,将该第一终端和该第一终端所属计费组进行关联。也就是说,本申请实施例中,第一终端和该第一终端所属计费组的关联关系可以由策略控制网元动态配置。In a possible design, the charging method provided by the embodiment of the present application may further include: the policy execution network element receives the group identifier from the policy control network element and the identifier of the first terminal; and the policy execution network element according to the group The identifier and the identifier of the first terminal are associated with the first terminal and the charging group to which the first terminal belongs. That is, in the embodiment of the present application, the association relationship between the first terminal and the charging group to which the first terminal belongs may be dynamically configured by the policy control network element.
在一种可能的设计中,本申请实施例提供的计费方法还可以包括:策略执行网元确定未与计费功能网元建立组计费会话;策略执行网元向该计费功能网元发送第三消息,该第三消息携带该组标识,用于请求建立与该组标识对应的计费会话;策略执行网元接收来自该计费功能网元的该第一终端所属计费组对应的第四组计费流量分片。基于该方案,策略执行网元可以与计费功能网元建立组计费会话。In a possible design, the charging method provided by the embodiment of the present application may further include: the policy execution network element determines that the group charging session is not established with the charging function network element; and the policy execution network element applies to the charging function network element. And sending a third message, where the third message carries the group identifier, and is used to request to establish a charging session corresponding to the group identifier; the policy execution network element receives the charging group corresponding to the first terminal that belongs to the charging function network element. The fourth group of billing traffic fragments. Based on the solution, the policy enforcement network element can establish a group charging session with the charging function network element.
第二方面,提供例如一种计费方法,该方法包括:策略和计费执行功能网元获取第一数据流量,该第一数据流量为第一终端所属计费组在该策略和计费执行功能网元上的当前数据流量;策略和计费执行功能网元确定该第一数据流量已经达到该第一终端所属计费组对应的预设流量;策略和计费执行功能网元根据该第一数据流量生成离线话单。其中,第二方面的技术效果可参考上述第一方面技术效果的描述,在此不再赘述。A second aspect provides, for example, a charging method, the method comprising: a policy and a charging execution function network element acquiring a first data traffic, where the first data traffic is performed by the charging group to which the first terminal belongs The current data traffic on the function network element; the policy and the charging execution function network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs; the policy and charging execution function network element is according to the A data traffic generates an offline bill. For the technical effects of the second aspect, reference may be made to the description of the technical effects of the foregoing first aspect, and details are not described herein again.
其中,策略和计费执行功能网元获取第一数据流量的具体实现可参考上述第一方面的描述,在此不再赘述。For a specific implementation of the first data flow, the policy and the charging execution function may be referred to the description of the first aspect, and details are not described herein.
第三方面,提供了一种策略执行网元,该策略执行网元具有实现上述第一方面任一项所述的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件 或软件包括一个或多个与上述功能相对应的模块。In a third aspect, a policy enforcement network element is provided, the policy execution network element having the function of implementing the method of any of the above first aspects. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
第四方面,提供了一种策略执行网元,包括:处理器和存储器;该存储器用于存储计算机执行指令,当该策略执行网元运行时,该处理器执行该存储器存储的该计算机执行指令,以使该策略执行网元执行如上述第一方面中任一项所述的计费方法。A fourth aspect provides a policy enforcement network element, including: a processor and a memory; the memory is configured to store a computer execution instruction, and when the policy execution network element is running, the processor executes the computer execution instruction stored by the memory And causing the policy execution network element to perform the charging method according to any one of the above first aspects.
第五方面,提供了一种策略执行网元,包括:处理器;所述处理器用于与存储器耦合,并读取存储器中的指令之后,根据所述指令执行如上述第一方面中任一项所述的计费方法。In a fifth aspect, a policy enforcement network element is provided, including: a processor; the processor is configured to couple with a memory, and after reading an instruction in the memory, perform any one of the foregoing first aspects according to the instruction The charging method described.
第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项所述的计费方法。In a sixth aspect, a computer readable storage medium is provided having stored therein instructions that, when run on a computer, cause the computer to perform the charging of any of the above first aspects method.
第七方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项所述的计费方法。In a seventh aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the charging method of any of the above first aspects.
第八方面,提供了一种芯片系统,该芯片系统包括处理器,用于支持策略执行网元实现上述第一方面中所涉及的功能,例如获取第一数据流量。在一种可能的设计中,该芯片系统还包括存储器,该存储器,用于保存策略执行网元必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, a chip system is provided, the chip system comprising a processor for supporting a policy enforcement network element to implement the functions involved in the first aspect, for example, acquiring the first data traffic. In one possible design, the chip system further includes a memory for storing program instructions and data necessary for the policy execution network element. The chip system can be composed of chips, and can also include chips and other discrete devices.
其中,第三方面至第八方面中任一种设计方式所带来的技术效果可参见第一方面中不同设计方式所带来的技术效果,此处不再赘述。For the technical effects brought by any one of the third aspect to the eighth aspect, refer to the technical effects brought by different design modes in the first aspect, and details are not described herein again.
第九方面,提供了一种策略和计费执行功能网元,该策略和计费执行功能网元具有实现上述第二方面任一项所述的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a ninth aspect, a policy and charging enforcement function network element is provided, the policy and charging execution function network element having the function of implementing the method of any of the foregoing second aspects. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
第十方面,提供了一种策略和计费执行功能网元,包括:处理器和存储器;该存储器用于存储计算机执行指令,当该策略和计费执行功能网元运行时,该处理器执行该存储器存储的该计算机执行指令,以使该策略和计费执行功能网元执行如上述第二方面中任一项所述的计费方法。A tenth aspect provides a policy and charging execution function network element, including: a processor and a memory; the memory is configured to store a computer execution instruction, and when the policy and the charging execution function network element are running, the processor executes The computer stored by the memory executes instructions to cause the policy and charging enforcement function network element to perform the charging method of any of the above second aspects.
第十一方面,提供了一种策略和计费执行功能网元,包括:处理器;所述处理器用于与存储器耦合,并读取存储器中的指令之后,根据所述指令执行如上述第二方面中任一项所述的计费方法。In an eleventh aspect, a policy and charging execution function network element is provided, including: a processor; the processor is configured to be coupled to a memory, and after reading an instruction in the memory, execute the second according to the instruction according to the instruction The charging method of any of the aspects.
第十二方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第二方面中任一项所述的计费方法。A twelfth aspect, a computer readable storage medium having stored therein instructions that, when run on a computer, cause the computer to perform the meter of any of the above second aspects Fee method.
第十三方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第二方面中任一项所述的计费方法。In a thirteenth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the charging method of any of the above second aspects.
第十四方面,提供了一种芯片系统,该芯片系统包括处理器,用于支持策略和计费执行功能网元实现上述第二方面中所涉及的功能,例如获取第一数据流量。在一种可能的设计中,该芯片系统还包括存储器,该存储器,用于保存策略和计费执行功能网元必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。In a fourteenth aspect, a chip system is provided, the chip system comprising a processor for supporting a policy and charging execution function network element to implement the functions involved in the second aspect, for example, acquiring the first data traffic. In one possible design, the chip system further includes a memory for storing program instructions and data necessary for the policy and billing execution function network element. The chip system can be composed of chips, and can also include chips and other discrete devices.
其中,第九方面至第十四方面中任一种设计方式所带来的技术效果可参见第二方面中不同设计方式所带来的技术效果,此处不再赘述。For the technical effects brought by any one of the ninth to fourteenth aspects, refer to the technical effects brought by different design modes in the second aspect, and details are not described herein again.
第十五方面,提供了一种计费系统,该计费系统包括:策略执行网元和计费功能网元;策略执行网元,用于获取第一数据流量,该第一数据流量为第一终端所属计费组在该策略执行网元上的当前数据流量;策略执行网元,还用于在确定该第一数据流量已经达到该第一终端所属计费组对应的第一组计费流量分片的流量之后,向计费功能网元发送该第一终端所属 计费组的组标识以及该第一数据流量,其中,该组标识和该第一数据流量用于请求该第一终端所属计费组对应的第二组计费流量分片;计费功能网元,用于接收来自该策略执行网元的该组标识以及该第一数据流量。其中,第十五方面的技术效果可参考上述第一方面技术效果的描述,在此不再赘述。According to a fifteenth aspect, a charging system is provided, where the charging system includes: a policy execution network element and a charging function network element; and a policy execution network element, configured to acquire first data traffic, where the first data traffic is The current data traffic of the charging group to which the terminal belongs is performed on the network element of the policy; the policy execution network element is further configured to determine that the first data traffic has reached the first group charging corresponding to the charging group to which the first terminal belongs. After the traffic of the traffic fragment is sent, the group identifier of the charging group to which the first terminal belongs and the first data traffic are sent to the charging function network element, where the group identifier and the first data traffic are used to request the first terminal. A second group of charging traffic fragments corresponding to the charging group; the charging function network element is configured to receive the group identifier and the first data traffic from the policy execution network element. For the technical effects of the fifteenth aspect, reference may be made to the description of the technical effects of the first aspect, and details are not described herein again.
在一种可能的设计中,计费功能网元,还用于向该策略执行网元发送该组标识以及该第一终端所属计费组对应的第二组计费流量分片;策略执行网元,还用于接收来自该计费功能网元的该组标识以及该第二组计费流量分片,其中,该组标识以及该第二组计费流量分片用于对该第一终端所属计费组内的终端的数据流量进行组计费处理。基于该方案,策略执行网元在第一数据流量已经达到该第一终端所属计费组对应的第一组计费流量分片的上报流量之后,可以继续根据第二组计费流量分片对第一终端所属计费组内的终端的数据流量进行组计费处理。In a possible design, the charging function network element is further configured to send the group identifier to the policy execution network element and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs; The unit is further configured to receive the group identifier from the charging function network element and the second group of charging traffic fragments, where the group identifier and the second group of charging traffic fragments are used for the first terminal The data traffic of the terminal in the charging group is processed by the group charging. Based on the solution, after the first data traffic has reached the reported traffic of the first group of the traffic flow segments corresponding to the charging group to which the first terminal belongs, the policy execution network element may continue to perform the segmentation according to the second group of charging traffic. The data traffic of the terminal in the charging group to which the first terminal belongs is subjected to group charging processing.
在一种可能的设计中,该计费系统还包括:策略控制网元;计费功能网元,还用于向该策略控制网元发送第一指示信息,该第一指示信息用于指示该第一终端所属计费组无可用组计费流量分片;策略控制网元,用于接收来自该计费功能网元的该第一指示信息,并根据该第一指示信息,确定需要对该第一终端所属计费组内的终端进行策略更新;对于该第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:策略控制网元,还用于向该策略执行网元发送第一消息,该第一消息用于指示删除该第二终端和该第一终端所属计费组的关联关系;策略执行网元,还用于接收来自该策略控制网元的该第一消息,并根据该第一消息,删除该第二终端和该第一终端所属计费组的关联关系。这样,在后续流程中对于来自第二终端的数据包的数据流量只能匹配到个人计费流量上,不再享受组计费策略。In a possible design, the charging system further includes: a policy control network element; the charging function network element, configured to send the first indication information to the policy control network element, where the first indication information is used to indicate the The first terminal belongs to the charging group that has no available group charging traffic fragment; the policy control network element is configured to receive the first indication information from the charging function network element, and according to the first indication information, determine that the The terminal in the charging group to which the first terminal belongs performs policy update; for any terminal in the charging group to which the first terminal belongs, the terminal is processed according to the following method for the second terminal: the policy control network element is also used for Sending a first message to the policy enforcement network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the policy execution network element is further configured to receive from the policy control network. And the first message of the element, and deleting the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message. In this way, in the subsequent process, the data traffic of the data packet from the second terminal can only match the personal charging traffic, and the group charging policy is no longer enjoyed.
在一种可能的设计中,该计费系统还包括:策略控制网元;策略控制网元,用于接收来自该策略执行网元的第四消息,该第四消息用于携带该第一终端的标识,用于请求该第一终端对应的计费策略;策略控制网元根据该第一终端的标识,确定该第一终端为组计费终端、以及,第一终端需要根据组计费账户状态进行计费策略更新;策略控制网元将该第一终端和该第一终端所属计费组进行关联。基于该方案,策略控制网元可以将该第一终端和该第一终端所属计费组进行关联。In a possible design, the charging system further includes: a policy control network element, and a policy control network element, configured to receive a fourth message from the policy execution network element, where the fourth message is used to carry the first terminal The identifier is used to request a charging policy corresponding to the first terminal; the policy control network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and the first terminal needs to perform a charging account according to the group The status is used to update the charging policy; the policy control network element associates the first terminal with the charging group to which the first terminal belongs. Based on the solution, the policy control network element may associate the first terminal with the charging group to which the first terminal belongs.
在一种可能的设计中,策略控制网元,还用于确定未与该计费功能网元建立组计费会话;策略控制网元,还用于向该计费功能网元发送第五消息,该第五消息携带该组标识,用于请求建立与该组标识对应的计费会话;计费功能网元,还用于接收来自该策略控制网元的该第五消息,并根据该第五消息,将该组标识与对应的计费账户状态相关联;计费功能网元,还用于向该策略控制网元发送第六消息,该第六消息用于指示与该组标识对应的计费会话建立完成。基于该方案,策略控制网元可以与计费功能网元建立组计费会话。In a possible design, the policy control network element is further configured to determine that the group charging session is not established with the charging function network element; the policy control network element is further configured to send the fifth message to the charging function network element. The fifth message carries the group identifier, and is used to request to establish a charging session corresponding to the group identifier; the charging function network element is further configured to receive the fifth message from the policy control network element, and according to the first And the fifth message, the group identifier is associated with the corresponding billing account state; the billing function network element is further configured to send a sixth message to the policy control network element, where the sixth message is used to indicate the corresponding to the group identifier The billing session is established. Based on the solution, the policy control network element can establish a group charging session with the charging function network element.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
图1为本申请实施例提供的一种计费系统的结构示意图;FIG. 1 is a schematic structural diagram of a charging system according to an embodiment of the present disclosure;
图2为本申请实施例提供的一种计费系统在5G网络之前的网络中的应用示意图;2 is a schematic diagram of application of a charging system in a network before a 5G network according to an embodiment of the present application;
图3为本申请实施例提供的一种计费系统在5G网络中的应用示意图;FIG. 3 is a schematic diagram of application of a charging system in a 5G network according to an embodiment of the present application;
图4为本申请实施例提供的一种通信设备的硬件结构示意图;FIG. 4 is a schematic structural diagram of hardware of a communication device according to an embodiment of the present disclosure;
图5为本申请实施例提供的计费方法流程示意图一;FIG. 5 is a schematic flowchart 1 of a charging method according to an embodiment of the present disclosure;
图6为本申请实施例提供的会话建立方法流程示意图一;FIG. 6 is a schematic flowchart 1 of a session establishing method according to an embodiment of the present application;
图7为本申请实施例提供的计费方法流程示意图二;FIG. 7 is a schematic flowchart 2 of a charging method according to an embodiment of the present disclosure;
图8为本申请实施例提供的会话建立方法流程示意图二;FIG. 8 is a second schematic flowchart of a session establishment method according to an embodiment of the present disclosure;
图9为本申请实施例提供的计费方法流程示意图三;FIG. 9 is a schematic flowchart 3 of a charging method according to an embodiment of the present disclosure;
图10为本申请实施例提供的策略执行网元的结构示意图;FIG. 10 is a schematic structural diagram of a policy execution network element according to an embodiment of the present disclosure;
图11为本申请实施例提供的策略和计费执行功能网元的结构示意图。FIG. 11 is a schematic structural diagram of a policy and charging execution function network element according to an embodiment of the present disclosure.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the description of the present application, unless otherwise stated, "/" means the meaning of or, for example, A/B may represent A or B; "and/or" herein is merely an association describing the associated object. The relationship indicates that there may be three kinds of relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. Also, in the description of the present application, "a plurality" means two or more than two unless otherwise stated. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", and the like are used to distinguish the same items or similar items whose functions and functions are substantially the same. Those skilled in the art can understand that the words "first", "second" and the like do not limit the number and execution order, and the words "first", "second" and the like are not necessarily limited.
此外,本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In addition, the network architecture and the service scenario described in the embodiments of the present application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present application, and are not limited to the technical solutions provided by the embodiments of the present application. With the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
如图1所示,为本申请实施例提供的计费系统10,该计费系统10包括策略执行网元101和计费功能网元102。As shown in FIG. 1 , the charging system 10 provided by the embodiment of the present application includes a policy enforcement network element 101 and a charging function network element 102.
其中,策略执行网元101,用于获取第一数据流量,该第一数据流量为第一终端所属计费组在该策略执行网元101上的当前数据流量;在确定第一数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的流量之后,向计费功能网元102发送第一终端所属计费组的组标识以及第一数据流量,其中,该组标识和该第一数据流量用于请求第一终端所属计费组对应的第二组计费流量分片。The policy execution network element 101 is configured to acquire the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs to the policy execution network element 101; and determining that the first data traffic has been reached. After the traffic of the first group of charging traffic fragments corresponding to the charging group of the first terminal belongs to the charging function network element 102, the group identifier of the charging group to which the first terminal belongs and the first data traffic, where the group identifier is sent And the first data traffic is used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
计费功能网元102,用于接收来自策略执行网元101的组标识以及第一数据流量。The charging function network element 102 is configured to receive the group identifier and the first data traffic from the policy enforcement network element 101.
可选的,本申请实施例中的策略执行网元101和计费功能网元102可以直接通信,也可以通过其他设备的转发进行通信,本申请实施例对此不作具体限定。Optionally, the policy enforcement network element 101 and the charging function network element 102 in the embodiment of the present application may communicate directly or through forwarding of other devices, which is not specifically limited in this embodiment of the present application.
本申请实施例提供的计费系统中,策略执行网元在第一终端所属计费组在该策略执行网元上的当前数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的流量之后才向计费功能网元请求新的计费流量分片,也就是说,计费控制是以计费组为粒度进行的,不像现有技术一样,是基于用户进行的,因此基于本申请实施例提供的计费系统进行计费,将大大减少创建和维护的计费会话数量。另外,由于基于计费组的流量分片通常大于基于用户的流量分片,因此基于本申请实施例提供的计费系统进行计费,将大大减少策略执行网元和计费功能网元之间的消息交互次数。同时,由于计费功能网元不需要再为每个用户进行流量配额管理以及将特定计费标识的流量进行汇总,因此,基于本申请实施例提供的计费系统进行计费,也不需要计费功能网元支持用户组的流量后处理功能。综上,基于本申请实施例提供的计费系统进行计费,可以大大降低对相关网元,如策略执行网元和计费功能网元的性能 要求,进而可以降低设备厂商的成本。In the charging system provided by the embodiment of the present application, the current data traffic of the policy execution network element in the charging group to which the first terminal belongs has reached the first group charging corresponding to the charging group to which the first terminal belongs. After the traffic of the traffic fragment is sent to the charging function network element, the new charging traffic fragment is requested. That is to say, the charging control is performed at the granularity of the charging group, and unlike the prior art, it is based on the user. Therefore, charging based on the charging system provided by the embodiment of the present application will greatly reduce the number of charging sessions created and maintained. In addition, since the traffic fragmentation based on the charging group is generally larger than the user-based traffic fragmentation, the charging system provided by the embodiment of the present application performs charging, which greatly reduces the relationship between the policy enforcement network element and the charging function network element. The number of message interactions. At the same time, since the charging function network element does not need to perform traffic quota management for each user and summarizes the traffic of the specific charging identifier, the charging system provided by the embodiment of the present application does not need to calculate. The fee function network element supports the traffic post-processing function of the user group. In summary, the charging system provided by the embodiment of the present application can significantly reduce the performance requirements of related network elements, such as the policy enforcement network element and the charging function network element, thereby reducing the cost of the equipment manufacturer.
可选的,如图1所示,本申请实施例提供的计费系统10还可以包括策略控制网元103。Optionally, as shown in FIG. 1 , the charging system 10 provided by the embodiment of the present application may further include a policy control network element 103.
其中,计费功能网元102,还用于向策略控制网元103发送第一指示信息,该第一指示信息用于指示第一终端所属计费组无可用组计费流量分片。The charging function network element 102 is further configured to send the first indication information to the policy control network element 103, where the first indication information is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment.
策略控制网元103,用于接收来自计费功能网元的第一指示信息,并根据第一指示信息,确定需要对第一终端所属计费组内的终端进行策略更新。The policy control network element 103 is configured to receive the first indication information from the charging function network element, and determine, according to the first indication information, that the terminal in the charging group to which the first terminal belongs needs to perform policy update.
进而,对于第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:Further, any terminal in the charging group to which the first terminal belongs is processed according to the following manner for the second terminal:
策略控制网元103,还用于向策略执行网元101发送第一消息,该第一消息用于指示删除第二终端和第一终端所属计费组的关联关系。The policy control network element 103 is further configured to send a first message to the policy enforcement network element 101, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
策略执行网元101,还用于接收来自策略控制网元103的第一消息,并根据第一消息,删除第二终端和第一终端所属计费组的关联关系。The policy enforcement network element 101 is further configured to receive the first message from the policy control network element 103, and delete the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message.
也就是说,基于本申请实施例提供的计费系统,可以在第一终端所属计费组无可用组计费流量分片的情况下,及时对第一终端所属计费组内的终端进行策略更新。That is, the charging system provided by the embodiment of the present application can perform the policy on the terminal in the charging group to which the first terminal belongs in time when the charging group of the first terminal belongs to the charging group without the available group charging traffic fragment. Update.
或者,可选的,如图1所示,本申请实施例提供的计费系统10还可以包括策略控制网元103。Alternatively, as shown in FIG. 1 , the charging system 10 provided by the embodiment of the present application may further include a policy control network element 103.
其中,策略控制网元103,用于接收来自策略执行网元101的第四消息,该第四消息用于携带第一终端的标识,用于请求第一终端对应的计费策略;根据第一终端的标识,确定第一终端为组计费终端,以及,确定第一终端需要根据组计费账户状态进行策略更新;将第一终端和第一终端所属计费组进行关联。The policy control network element 103 is configured to receive a fourth message from the policy enforcement network element 101, where the fourth message is used to carry the identifier of the first terminal, and is used to request a charging policy corresponding to the first terminal. The identifier of the terminal determines that the first terminal is a group charging terminal, and determines that the first terminal needs to perform policy update according to the group charging account status; and associates the first terminal with the charging group to which the first terminal belongs.
也就是说,基于本申请实施例提供的计费系统,可以在第一终端为组计费终端,且需要根据组计费账户状态进行策略更新的情况下,将第一终端和第一终端所属计费组进行关联。That is, the charging system provided by the embodiment of the present application may be configured by the first terminal and the first terminal when the first terminal is a group charging terminal and needs to be updated according to the group charging account status. The billing group is associated.
可选的,图1所示的计费系统10可以应用于目前正在讨论的第五代(5th generation,5G)网络;也可以应用于5G网络之前的网络,如第二代(2nd generation,2G)网络、第三代(3rd generation,3G)网络或第四代(4th generation,4G)网络;还可以应用于5G网络之后的未来其它的网络,本发明实施例对此不作具体限定。Optionally, the charging system 10 shown in FIG. 1 can be applied to a 5th generation (5th generation, 5G) network currently under discussion; and can also be applied to a network before a 5G network, such as a second generation (2nd generation, 2G). The network, the third generation (3rd generation, 3G) network, or the fourth generation (4th generation, 4G) network; and the other network in the future after the 5G network, which is not specifically limited in the embodiment of the present invention.
示例性的,假设图1所示的计费系统10应用于目前5G网络之前的网络,则如图2所示,上述的策略执行网元所对应的网元或者实体可以为5G网络之前的网络中的PCEF网元;上述的计费功能网元所对应的网元或者实体可以为5G网络之前的网络中的OCS;上述的策略控制网元所对应的网元或者实体可以为5G网络之前的网络中的PCRF网元。Illustratively, assuming that the charging system 10 shown in FIG. 1 is applied to a network before the current 5G network, as shown in FIG. 2, the network element or entity corresponding to the foregoing policy execution network element may be a network before the 5G network. The network element or entity corresponding to the above-mentioned charging function network element may be the OCS in the network before the 5G network; the network element or entity corresponding to the foregoing policy control network element may be before the 5G network PCRF network element in the network.
其中,PCRF网元通过Gx接口与PCEF网元通信,PCRF网元通过Sy接口与OCS通信,OCS通过Gy接口与PCEF网元通信。The PCRF network element communicates with the PCEF network element through the Gx interface, and the PCRF network element communicates with the OCS through the Sy interface, and the OCS communicates with the PCEF network element through the Gy interface.
当然,除了图2中示出的网元,5G网络之前的网络中还包括其他的网元,比如4G网络中还包括移动管理实体(mobility management entity,MME)以及服务网关(serving gateway,SGW)等,2G或3G网络中还包括服务通用分组无线业务(general packet radio service,GPRS)支持节点(serving GPRS support node,SGSN)等,相关描述具体可参考现有的2G、3G或4G网络架构描述,在此不再赘述。Of course, in addition to the network element shown in FIG. 2, other network elements are included in the network before the 5G network. For example, the 4G network also includes a mobility management entity (MME) and a serving gateway (SGW). In addition, the 2G or 3G network also includes a general packet radio service (GPRS) support node (SGSN), and the related description can refer to the existing 2G, 3G or 4G network architecture description. , will not repeat them here.
示例性的,假设图1所示的计费系统10应用于目前正在讨论的5G网络,则如图3所示,上述的策略执行网元所对应的网元或者实体可以为5G网络中的会话管理功能(session management function,SMF)网元;上述的计费功能网元所对应的网元或者实体可以为5G网 络中的计费功能(Charging Function,CHF)网元;上述的策略控制网元所对应的网元或者实体可以为5G网络中的策略控制功能(policy control function,PCF)网元。Illustratively, if the charging system 10 shown in FIG. 1 is applied to the 5G network currently being discussed, as shown in FIG. 3, the network element or entity corresponding to the foregoing policy enforcement network element may be a session in the 5G network. a network management element (SMF) network element; the network element or entity corresponding to the foregoing charging function network element may be a charging function (CHF) network element in a 5G network; the foregoing policy control network element The corresponding network element or entity may be a policy control function (PCF) network element in the 5G network.
此外,如图3所示,该5G网络还可以包括接入设备、接入和移动管理功能(access and mobility management function,AMF)网元、用户面功能(user plane function,UPF)网元以及一些未示出的网元,如鉴权服务器功能(authentication server function,AUSF)网元、网络开放功能(network exposure function,NEF)网元等,本申请实施例对此不作具体限定。In addition, as shown in FIG. 3, the 5G network may further include an access device, an access and mobility management function (AMF) network element, a user plane function (UPF) network element, and some The network element (not shown), such as an authentication server function (AUSF) network element, a network exposure function (NEF) network element, etc., is not specifically limited in this embodiment of the present application.
其中,终端通过接入设备接入5G核心网,终端通过下一代网络(Next generation,N)1接口(简称N1)与AMF网元通信,接入设备通过N2接口(简称N2)与AMF网元通信,接入设备通过N3接口(简称N3)与UPF网元通信,AMF网元通过N11接口(简称N11)与SMF网元通信,AMF网元通过N15接口(简称N15)与PCF网元通信,SMF网元通过N7接口(简称N7)与PCF网元通信,SMF网元通过N4接口(简称N4)与UPF网元通信,SMF网元通过N16接口(简称N16)与CHF网元通信,CHF网元通过N24接口(简称N24)与PCF网元通信,接入数据网络,UPF网元通过N6接口(简称N6)接入数据网络。The terminal accesses the 5G core network through the access device, and the terminal communicates with the AMF network element through the Next Generation (N) 1 interface (N1), and the access device passes the N2 interface (N2) and the AMF network element. In the communication, the access device communicates with the UPF network element through the N3 interface (N3 for short), and the AMF network element communicates with the SMF network element through the N11 interface (N11 for short), and the AMF network element communicates with the PCF network element through the N15 interface (N15 for short). The SMF network element communicates with the PCF network element through the N7 interface (N7). The SMF network element communicates with the UPF network element through the N4 interface (N4). The SMF network element communicates with the CHF network element through the N16 interface (N16 for short). The element communicates with the PCF network element through the N24 interface (N24) and accesses the data network. The UPF network element accesses the data network through the N6 interface (N6 for short).
需要说明的是,图3中的各个网元之间的接口名字只是一个示例,具体实现中接口名字可能为其他名字,本申请实施例对此不作具体限定。It should be noted that the name of the interface between the network elements in FIG. 3 is only an example. In the specific implementation, the interface name may be other names, which is not specifically limited in this embodiment of the present application.
需要说明的是,图3中的AMF网元、SMF网元、UPF网元、PCF网元或者CHF网元等仅是一个名字,名字对设备本身不构成限定。在5G网络以及未来其它的网络中,AMF网元、SMF网元、UPF网元、PCF网元或者CHF网元等所对应的网元或实体也可以是其他的名字,本申请实施例对此不作具体限定。例如,该UPF网元还有可能被替换为UPF或者UPF实体,等,在此进行统一说明,以下不再赘述。It should be noted that the AMF network element, the SMF network element, the UPF network element, the PCF network element, or the CHF network element in FIG. 3 are only one name, and the name does not limit the device itself. The network element or the entity corresponding to the AMF network element, the SMF network element, the UPF network element, the PCF network element, or the CHF network element may also be other names in the 5G network and other network in the future. No specific limitation. For example, the UPF network element may be replaced by an UPF or UPF entity, etc., and is uniformly described herein, and details are not described herein again.
可选的,本申请实施例中所涉及到的终端(terminal)可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备;还可以包括用户单元(subscriber unit)、蜂窝电话(cellular phone)、智能电话(smart phone)、无线数据卡、个人数字助理(personal digital assistant,PDA)电脑、平板型电脑、无线调制解调器(modem)、手持设备(handheld)、膝上型电脑(laptop computer)、无绳电话(cordless phone)或者无线本地环路(wireless local loop,WLL)台、机器类型通信(machine type communication,MTC)终端、用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)或者中继用户设备等。其中,中继用户设备例如可以是5G家庭网关(residential gateway,RG)。为方便描述,本申请中,上面提到的设备统称为终端。Optionally, the terminal involved in the embodiment of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem; Including user unit (subscriber unit), cellular phone, smart phone, wireless data card, personal digital assistant (PDA) computer, tablet computer, wireless modem (modem), handheld device Handheld, laptop computer, cordless phone or wireless local loop (WLL) station, machine type communication (MTC) terminal, user equipment (user equipment) , UE), mobile station (MS), terminal device or relay user equipment. The relay user equipment may be, for example, a 5G residential gateway (RG). For convenience of description, in the present application, the above mentioned devices are collectively referred to as terminals.
可选的,本申请实施例中所涉及的接入设备指的是接入核心网的设备,例如可以是基站,宽带网络业务网关(broadband network gateway,BNG),汇聚交换机,非第三代合作伙伴计划(3rd generation partnership project,3GPP)接入设备等。基站可以包括各种形式的基站,例如:宏基站,微基站(也称为小站),中继站,接入点等。Optionally, the access device involved in the embodiment of the present application refers to a device that accesses the core network, and may be, for example, a base station, a broadband network gateway (BNG), an aggregation switch, and a non-third-generation cooperation. 3rd generation partnership project (3GPP) access equipment, etc. The base station may include various forms of base stations, such as macro base stations, micro base stations (also referred to as small stations), relay stations, access points, and the like.
可选的,本申请实施例图1中的策略执行网元、计费功能网元或者策略控制网元可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。可以理解的是,上述功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行的软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。Optionally, the policy enforcement network element, the charging function network element, or the policy control network element in the embodiment of the present application may be implemented by one device, or may be implemented by multiple devices together, or may be one of the devices. The function module is not specifically limited in this embodiment of the present application. It can be understood that the above functions can be either a network component in a hardware device, a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform).
例如,本申请实施例图1中的策略执行网元、计费功能网元或者策略控制网元可以通过 图4中的通信设备来实现。图4所示为本申请实施例提供的通信设备的硬件结构示意图。该通信设备400包括至少一个处理器401,通信线路402,存储器403以及至少一个通信接口404。For example, the policy enforcement network element, the charging function network element, or the policy control network element in FIG. 1 in this embodiment of the present application may be implemented by using the communication device in FIG. FIG. 4 is a schematic structural diagram of hardware of a communication device according to an embodiment of the present application. The communication device 400 includes at least one processor 401, a communication line 402, a memory 403, and at least one communication interface 404.
处理器401可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 401 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present application. integrated circuit.
通信线路402可包括一通路,在上述组件之间传送信息。Communication line 402 can include a path for communicating information between the components described above.
通信接口404,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。 Communication interface 404, using any type of transceiver, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
存储器403可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路402与处理器相连接。存储器也可以和处理器集成在一起。The memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions. The dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this. The memory may be stand-alone and connected to the processor via communication line 402. The memory can also be integrated with the processor.
其中,存储器403用于存储执行本申请方案的计算机执行指令,并由处理器401来控制执行。处理器401用于执行存储器403中存储的计算机执行指令,从而实现本申请下述实施例提供的计费方法。The memory 403 is used to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 401 for execution. The processor 401 is configured to execute computer execution instructions stored in the memory 403, thereby implementing the charging method provided by the following embodiments of the present application.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executed instructions in the embodiment of the present application may also be referred to as an application code, which is not specifically limited in this embodiment of the present application.
在具体实现中,作为一种实施例,处理器401可以包括一个或多个CPU,例如图4中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
在具体实现中,作为一种实施例,通信设备400可以包括多个处理器,例如图4中的处理器401和处理器408。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a particular implementation, as an embodiment, communication device 400 can include multiple processors, such as processor 401 and processor 408 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
在具体实现中,作为一种实施例,通信设备400还可以包括输出设备405和输入设备406。输出设备405和处理器401通信,可以以多种方式来显示信息。例如,输出设备405可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备406和处理器401通信,可以以多种方式接收用户的输入。例如,输入设备406可以是鼠标、键盘、触摸屏设备或传感设备等。In a particular implementation, as an embodiment, the communication device 400 can also include an output device 405 and an input device 406. Output device 405 is in communication with processor 401 and can display information in a variety of ways. For example, the output device 405 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Wait. Input device 406 is in communication with processor 401 and can receive user input in a variety of ways. For example, input device 406 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
上述的通信设备400可以是一个通用设备或者是一个专用设备。在具体实现中,通信设备400可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、嵌入式设备或有图4中类似结构的设备。本申请实施例不限定通信设备400的类型。The communication device 400 described above may be a general purpose device or a dedicated device. In a specific implementation, the communication device 400 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or the like in FIG. device. The embodiment of the present application does not limit the type of the communication device 400.
下面将结合图1至图4对本申请实施例提供的计费方法进行具体阐述。The charging method provided by the embodiment of the present application will be specifically described below with reference to FIG. 1 to FIG.
需要说明的是,本申请下述实施例中各个网元之间的消息名字或消息中各参数的名字等只是一个示例,具体实现中也可以是其他的名字,本申请实施例对此不作具体限定。It should be noted that the name of the message or the name of each parameter in the message in the following embodiments of the present application is only an example, and may be other names in the specific implementation. limited.
首先,以图1所示的计费系统应用于如图2所示的5G之前的网络为例,如图5所示,为本申请实施例提供的一种计费方法,包括如下步骤:First, the charging system shown in FIG. 1 is applied to the network before 5G as shown in FIG. 2 . As shown in FIG. 5 , the charging method provided in the embodiment of the present application includes the following steps:
S501、第一终端向PCEF网元发送数据包,以使得PCEF网元接收来自第一终端的数据包。S501. The first terminal sends a data packet to the PCEF network element, so that the PCEF network element receives the data packet from the first terminal.
S502、PCEF网元根据该数据包,确定第一终端所属计费组的组标识。S502. The PCEF network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs.
可选的,本申请实施例中,PCEF网元根据该数据包,确定第一终端所属计费组的组标识具体可以包括:Optionally, in the embodiment of the present application, the determining, by the PCEF network element, the group identifier of the charging group to which the first terminal belongs may include:
PCEF网元根据该数据包,确定第一终端的标识;进而,根据第一终端的标识,确定第一终端所属计费组的组标识。The PCEF network element determines the identifier of the first terminal according to the data packet, and further determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal.
示例性的,PCEF网元在接收到来自第一终端的数据包之后,可以通过该数据包对应的数据面地址关联对应的信令面地址,进而根据该信令面地址可以确定出第一终端的标识。PCEF网元在确定出第一终端的标识之后,可以根据该第一终端的标识确定出对应的计费策略。若该计费策略中包括第一终端的标识和第一终端所属计费组的组标识的对应关系,则表征该第一终端为会话级组计费终端,则PCEF网元可以不用识别数据包中的内容,而是直接根据第一终端的标识、以及第一终端的标识和第一终端所属计费组的组标识的对应关系,确定第一终端所属计费组的组标识。该情况下,第一终端所属计费组为会话级计费组。Exemplarily, after receiving the data packet from the first terminal, the PCEF network element may associate the corresponding signaling plane address by using the data plane address corresponding to the data packet, and then determine the first terminal according to the signaling plane address. Logo. After determining the identifier of the first terminal, the PCEF network element may determine a corresponding charging policy according to the identifier of the first terminal. If the charging policy includes the correspondence between the identifier of the first terminal and the group identifier of the charging group to which the first terminal belongs, if the first terminal is a session-level group charging terminal, the PCEF network element may not identify the data packet. In the content of the first terminal, the group identifier of the charging group to which the first terminal belongs is determined according to the identifier of the first terminal and the correspondence between the identifier of the first terminal and the group identifier of the charging group to which the first terminal belongs. In this case, the charging group to which the first terminal belongs is a session-level charging group.
或者,可选的,本申请实施例中,PCEF网元根据该数据包,确定第一终端所属计费组的组标识具体可以包括:Alternatively, optionally, in the embodiment of the present application, the PCEF network element, according to the data packet, determining the group identifier of the charging group to which the first terminal belongs may specifically include:
PCEF网元根据该数据包,确定第一终端的标识;进而,根据第一终端的标识和该数据包对应的业务,确定第一终端所属计费组的组标识。The PCEF network element determines the identifier of the first terminal according to the data packet, and further determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal and the service corresponding to the data packet.
示例性的,PCEF网元在接收到来自第一终端的数据包之后,可以通过该数据包对应的数据面地址关联对应的信令面地址,进而根据该信令面地址可以确定出第一终端的标识。PCEF网元在确定出第一终端的标识之后,可以根据该第一终端的标识确定出对应的计费策略。若该计费策略中包括一条或多条业务规则,则PCEF网元需要通过识别数据包中的内容,确定该数据包对应的业务。比如,PCEF网元可以将该数据包分别与第一终端对应的计费策略中的各条业务规则进行匹配,若与某条业务规则成功匹配,则该业务规则对应的业务即为该数据包对应的业务,该业务规则中包括的组标识或者该业务规则对应的组标识即为第一终端所属计费组的组标识。该情况下,第一终端所属计费组为业务级计费组。其中,一个终端可以对应一个或多个业务级计费组,比如,第一终端可以对应一个业务A的计费组以及一个业务B的计费组,本申请实施例对此不作具体限定。Exemplarily, after receiving the data packet from the first terminal, the PCEF network element may associate the corresponding signaling plane address by using the data plane address corresponding to the data packet, and then determine the first terminal according to the signaling plane address. Logo. After determining the identifier of the first terminal, the PCEF network element may determine a corresponding charging policy according to the identifier of the first terminal. If the charging policy includes one or more service rules, the PCEF network element needs to identify the service corresponding to the data packet by identifying the content in the data packet. For example, the PCEF network element can match the data packet with each service rule in the charging policy corresponding to the first terminal, and if the service rule is successfully matched, the service corresponding to the service rule is the data packet. For the corresponding service, the group identifier included in the service rule or the group identifier corresponding to the service rule is the group identifier of the charging group to which the first terminal belongs. In this case, the charging group to which the first terminal belongs is a service level charging group. The one terminal may be corresponding to one or more service-level charging groups. For example, the first terminal may correspond to one charging group of the service A and one charging group of the service B, which is not specifically limited in this embodiment.
S503、PCEF网元根据第一终端所属计费组的组标识以及该数据包对应的数据流量,确定第一数据流量。S503. The PCEF network element determines the first data traffic according to the group identifier of the charging group to which the first terminal belongs and the data traffic corresponding to the data packet.
示例性的,假设第一终端所属计费组在PCEF网元上由组计费节点1进行管理,则PCEF网元可以根据第一终端所属计费组的组标识,将来自第一终端的数据包的所有数据流量均关联到组计费节点1上进行汇总。假设该数据包的流量为3M,在未将该数据包的所有数据流量均关联到组计费节点1上进行汇总之前,组计费节点1上的流量为4M,则在将该数据包的所有数据流量均关联到组计费节点1上进行汇总之后,组计费节点1上的流量为3M+4M=7M。Illustratively, assuming that the charging group to which the first terminal belongs is managed by the group charging node 1 on the PCEF network element, the PCEF network element may use the data of the first terminal according to the group identifier of the charging group to which the first terminal belongs. All data traffic for the packet is associated with the group charging node 1 for aggregation. Assuming that the traffic of the data packet is 3M, before the traffic of all the data traffic of the data packet is associated with the group charging node 1, the traffic on the group charging node 1 is 4M, and then the data packet is After all data traffic is associated with the group charging node 1, the traffic on the group charging node 1 is 3M+4M=7M.
S504、PCEF网元确定第一数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的上报流量。S504: The PCEF network element determines that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
可选的,本申请实施例中,可以设定第一终端所属计费组对应的第一组计费流量分片的上报流量等于第一终端所属计费组对应的第一组计费流量分片的流量;也可以设定第一终端所属计费组对应的第一组计费流量分片的上报流量小于第一终端所属计费组对应的第一组计费流量分片的流量,比如,第一终端所属计费组对应的第一组计费流量分片的上报流量为第一终端所属计费组对应的第一组计费流量分片的流量的80%,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the reporting traffic of the first group of charging traffic fragments corresponding to the charging group of the first terminal is equal to the first group of charging traffic corresponding to the charging group of the first terminal. The traffic of the first group of charging traffic fragments corresponding to the charging group corresponding to the charging group of the first terminal is smaller than the traffic of the first group of charging traffic fragments corresponding to the charging group of the first terminal, for example, The reported traffic of the first group of the traffic flow segments corresponding to the charging group of the first terminal is 80% of the traffic of the first group of the traffic data segments corresponding to the charging group to which the first terminal belongs. This is not specifically limited.
S505、PCEF网元通过Gy接口向OCS发送信用控制请求更新(credit control request-update,CCR-U)消息,以使得OCS接收来自PCEF网元的CCR-U消息。S505. The PCEF network element sends a credit control request-update (CCR-U) message to the OCS through the Gy interface, so that the OCS receives the CCR-U message from the PCEF network element.
其中,该CCR-U消息携带第一终端所属计费组的组标识以及第一数据流量。该第一终端所属计费组的组标识以及第一数据流量用于请求第一终端所属计费组对应的第二组计费流量分片。The CCR-U message carries the group identifier of the charging group to which the first terminal belongs and the first data traffic. The group identifier of the charging group to which the first terminal belongs and the first data traffic are used to request the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
假设本申请实施例中的第一组计费流量分片不是最后一个组计费流量分片,也就是说,第一终端所属计费组有可用组计费流量分片,则可选的,本申请实施例提供的计费方法还包括以下步骤S506-S508:It is assumed that the first group of charging traffic fragments in the embodiment of the present application is not the last group charging traffic fragment, that is, the charging group of the first terminal belongs to the group charging traffic fragment, which is optional. The charging method provided by the embodiment of the present application further includes the following steps S506-S508:
S506、OCS根据第一终端所属计费组的组标识,在第一终端所属计费组的流量池中为第一终端所属计费组分配第二组计费流量分片。S506. The OCS allocates a second group of charging traffic fragments to the charging group to which the first terminal belongs in the traffic pool of the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs.
可选的,本申请实施例中,第一组计费流量分片的大小与第二组计费流量分片的大小可能相同,也可能不同,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the size of the first group of the charging traffic fragments and the size of the second group of the charging traffic fragments may be the same or different, which is not specifically limited in this embodiment of the present application.
S507、OCS通过Gy接口向PCEF网元发送信用控制应答更新(credit control answer-update,CCA-U)消息1,以使得PCEF网元接收来自OCS的CCA-U消息1。S507. The OCS sends a credit control answer-update (CCA-U) message 1 to the PCEF network element through the Gy interface, so that the PCEF network element receives the CCA-U message 1 from the OCS.
其中,该CCA-U消息1携带第一终端所属计费组的组标识以及第一终端所属计费组对应的第二组计费流量分片。The CCA-U message 1 carries the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
S508、PCEF网元根据第一终端所属计费组的组标识以及第一终端所属计费组对应的第二组计费流量分片,对第一终端所属计费组内的终端的数据流量进行组计费处理。S508. The PCEF network element performs data traffic of the terminal in the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Group billing processing.
假设本申请实施例中的第一组计费流量分片为最后一个组计费流量分片,也就是说,第一终端所属计费组无可用组计费流量分片,则可选的,本申请实施例提供的计费方法还包括以下步骤S509-S515:It is assumed that the first group of charging traffic fragments in the embodiment of the present application is the last group of charging traffic fragments, that is, the charging group of the first terminal belongs to the charging group without the available group charging traffic fragment. The charging method provided by the embodiment of the present application further includes the following steps S509-S515:
S509、OCS向PCEF网元发送CCA-U消息2,以使得PCEF网元接收来自OCS的CCA-U消息2。S509. The OCS sends a CCA-U message 2 to the PCEF network element, so that the PCEF network element receives the CCA-U message 2 from the OCS.
其中,该CCA-U消息2携带指示信息1,该指示信息1用于指示第一终端所属计费组无可用组计费流量分片;或者,该指示信息1用于指示OCS不再为第一终端所属计费组分配新的组计费流量分片等,本申请实施例对此不作具体限定。The CCA-U message 2 carries the indication information 1 for indicating that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 1 is used to indicate that the OCS is no longer the first A charging group of a terminal belongs to a new group charging traffic fragment, and the like, which is not specifically limited in this embodiment.
示例性的,例如可以通过在CCA-U消息2中携带第一终端所属计费组的组标识以及将新分配的组计费流量分片的流量位置为0的方式实现上述指示信息1的功能,本申请实施例对此不作具体限定。For example, the function of the indication information 1 can be implemented by carrying the group identifier of the charging group to which the first terminal belongs and the traffic location of the newly allocated group charging traffic fragment to 0 in the CCA-U message 2. The embodiment of the present application does not specifically limit this.
可选的,本申请实施例中,若第一组计费流量分片为最后一个组计费流量分片,则在OCS向PCEF网元发送该第一组计费流量分片时也可以指示该分片为最后一个组计费流量分片,从而可以不用执行步骤S505和S509。也就是说,若第一组计费流量分片为最后一个组计费流量分片,则步骤S505和步骤S509是个可选的步骤,在此统一说明,以下不再赘述。Optionally, in the embodiment of the present application, if the first group of charging traffic fragments is the last group of charging traffic fragments, the first group of charging traffic fragments may also be indicated when the OCS sends the first group of charging traffic fragments to the PCEF network element. The fragment is the last group of charging traffic fragments, so that steps S505 and S509 may not be performed. That is, if the first group of charging traffic fragments is the last group of charging traffic fragments, step S505 and step S509 are optional steps, which are collectively described herein, and are not described herein again.
S510、OCS通过Sy接口向PCRF网元发送消费状态通知请求(spending status notification request,SNR)消息,以使得PCRF网元接收来自OCS的SNR消息。S510: The OCS sends a sending status notification request (SNR) message to the PCRF network element by using the Sy interface, so that the PCRF network element receives the SNR message from the OCS.
其中,该SNR消息携带指示信息2,该指示信息2用于指示第一终端所属计费组无可用组计费流量分片;或者,该指示信息2用于指示OCS不再为第一终端所属计费组分配新的组计费流量分片等,本申请实施例对此不作具体限定。The SNR message carries the indication information 2, where the indication information 2 is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 2 is used to indicate that the OCS is no longer belonged to the first terminal. The charging group allocates a new group charging traffic fragment and the like, which is not specifically limited in this embodiment of the present application.
示例性的,例如可以通过在SNR消息中携带第一终端所属计费组的组标识的方式实现上述指示信息2的功能,本申请实施例对此不作具体限定。For example, the function of the foregoing indication information 2 can be implemented in the manner that the group identifier of the charging group to which the first terminal belongs is carried in the SNR message, which is not specifically limited in this embodiment of the present application.
可选的,本申请实施例中的指示信息1和指示信息2可以相同,也可以不相同,本申请实施例对此不作具体限定。Optionally, the indication information 1 and the indication information 2 in the embodiment of the present application may be the same or different, and the embodiment of the present application does not specifically limit this.
需要说明的是,本申请实施例中的步骤S509与步骤S510之间没有必然的执行先后顺序,可以是先执行步骤S509,再执行步骤S510;也可以是先执行步骤S510,再执行步骤S509;还可以是同时执行步骤S509和S510,本申请实施例对此不作具体限定。It should be noted that there is no necessary sequence of execution between the step S509 and the step S510 in the embodiment of the present application, and the step S509 may be performed first, and then the step S510 may be performed; or the step S510 may be performed first, and then the step S509 is performed; It is also possible to perform the steps S509 and S510 at the same time, which is not specifically limited in the embodiment of the present application.
S511、PCRF网元根据第一终端所属计费组的组标识,确定需要对第一终端所属计费组内的终端进行计费策略更新。S511. The PCRF network element determines, according to the group identifier of the charging group to which the first terminal belongs, that the charging policy update needs to be performed on the terminal in the charging group to which the first terminal belongs.
S512、PCRF网元通过Sy接口向OCS发送消费状态通知请求(spending status notification answer,SNA)消息,以使得OCS接收来自PCRF网元的SNA消息。S512. The PCRF network element sends a sending status notification answer (SNA) message to the OCS through the Sy interface, so that the OCS receives the SNA message from the PCRF network element.
其中,该SNA消息用于通知OCS该PCRF网元已经获知第一终端所属计费组无可用组计费流量分片或者OCS不再为第一终端所属计费组分配新的组计费流量分片等,本申请实施例对此不作具体限定。The SNA message is used to notify the OCS that the PCRF network element has learned that the first terminal belongs to the charging group without the available group charging traffic fragment or the OCS no longer allocates the new group charging traffic to the charging group to which the first terminal belongs. The embodiment of the present application does not specifically limit this.
进一步的,本申请实施例中,在PCRF网元确定需要对第一终端所属计费组内的终端进行计费策略更新之后,对于第一终端所属计费组内的任一终端,还需要按照下述针对第二终端的方式进行处理:Further, in the embodiment of the present application, after the PCRF network element determines that the charging policy update is required for the terminal in the charging group to which the first terminal belongs, The following methods are handled for the second terminal:
S513、PCRF网元通过Gx接口向PCEF网元发送重新授权请求(re-authentication request,RAR)消息,以使得PCEF网元接收来自PCRF网元的RAR消息。S513. The PCRF network element sends a re-authentication request (RAR) message to the PCEF network element through the Gx interface, so that the PCEF network element receives the RAR message from the PCRF network element.
其中,该RAR消息用于指示删除第二终端和第一终端所属计费组的关联关系。The RAR message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
可选的,本申请实施例中的RAR消息中可以携带与第二终端对应的变更的计费策略,该变更的计费策略可以用于指示删除第二终端和第一终端所属计费组的关联关系,本申请实施例对此不作具体限定。Optionally, the RAR message in the embodiment of the present application may carry the changed charging policy corresponding to the second terminal, where the changed charging policy may be used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted. The association relationship is not specifically limited in this embodiment.
S514、PCEF网元根据RAR消息,删除第二终端和第一终端所属计费组的关联关系。S514. The PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message.
可选的,本申请实施例中,若第一终端所属计费组为会话级计费组,则PCEF网元删除第二终端和第一终端所属计费组的关联关系,例如可以是删除与第二终端的标识对应的组标识或者删除第二终端的标识和与第二终端的标识对应的组标识的对应关系等;若第一终端所属计费组为业务级计费组,则PCEF网元删除第二终端和第一终端所属计费组的关联关系,例如可以是删除与第二终端的标识对应的组标识、或者删除第二终端的标识和与第二终端的标识对应的组标识的对应关系、或者删除第二终端的标识和与第二终端的标识对应的包含第一终端所属计费组的组标识的业务规则等,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, if the charging group to which the first terminal belongs is a session-level charging group, the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs, for example, deleting and The group identifier corresponding to the identifier of the second terminal or the corresponding relationship between the identifier of the second terminal and the group identifier corresponding to the identifier of the second terminal; if the charging group to which the first terminal belongs is a service level charging group, the PCEF network And deleting the association relationship between the second terminal and the charging group to which the first terminal belongs, for example, deleting the group identifier corresponding to the identifier of the second terminal, or deleting the identifier of the second terminal and the group identifier corresponding to the identifier of the second terminal. The corresponding relationship or the deletion of the identifier of the second terminal and the service rule of the group identifier of the charging group to which the first terminal belongs, which is corresponding to the identifier of the second terminal, is not specifically limited in this embodiment.
示例性的,假设第一终端所属计费组在PCEF网元上由组计费节点1进行管理,且第一终端所属计费组为会话级计费组,则计费节点1可能会管理如表一所示的计费策略:Illustratively, assuming that the charging group to which the first terminal belongs is managed by the group charging node 1 on the PCEF network element, and the charging group to which the first terminal belongs is a session-level charging group, the charging node 1 may manage, for example, The charging strategy shown in Table 1:
表一Table I
终端标识Terminal identification | 组标识Group identification | |
第一终端的标识Identification of the first | 组标识1Group ID 1 |
第二终端的标识Identification of the second | 组标识1Group ID 1 | |
第三终端的标识Third terminal | 组标识1Group ID 1 | |
……...... | ……...... |
其中,在PCEF网元根据RAR消息,删除第二终端和第一终端所属计费组的关联关系之后,计费节点1管理的计费策略可以如表二所示:After the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message, the charging policy managed by the charging node 1 can be as shown in Table 2:
表二Table II
终端标识Terminal identification | 组标识Group identification | |
第一终端的标识Identification of the first | 组标识1Group ID 1 | |
第二终端的标识Identification of the second terminal | ||
第三终端的标识Third terminal | 组标识1Group ID 1 | |
……...... | ……...... |
或者,示例性的,假设第一终端所属计费组在PCEF网元上由组计费节点1进行管理,且第一终端所属计费组为业务级计费组,则计费节点1可能会管理如表三所示的计费策略:Or, exemplarily, assuming that the charging group to which the first terminal belongs is managed by the group charging node 1 on the PCEF network element, and the charging group to which the first terminal belongs is a service level charging group, the charging node 1 may Manage the charging policies as shown in Table 3:
表三Table 3
其中,假设当前第一终端所属业务级计费组的组标识为组标识3,则在PCEF网元根据RAR消息,删除第二终端和第一终端所属计费组的关联关系之后,计费节点1管理的计费策略可以如表四所示:If the group identifier of the service-level charging group to which the first terminal belongs is the group identifier 3, the charging node is deleted after the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message. 1Managed charging policies can be as shown in Table 4:
表四Table 4
可选的,表三和表四以业务规则中包括组标识为例进行说明,当然,如表五所示,业务规则和组标识也可能以对应关系的形式呈现,本申请实施例对此不作具体限定。Optionally, Table 3 and Table 4 are described by using the group identifier as an example in the service rule. As shown in Table 5, the service rule and the group identifier may also be presented in the form of a corresponding relationship. Specifically limited.
表五Table 5
其中,本申请实施例中,在PCEF网元根据RAR消息,删除第二终端和第一终端所属计费组的关联关系之后,对于来自第二终端的数据包的数据流量只能匹配到个人计费流量上,不再享受组计费策略,在此统一说明,以下不再赘述。In the embodiment of the present application, after the PCEF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the RAR message, the data traffic of the data packet from the second terminal can only match the personal meter. The group charging policy is no longer enjoyed on the fee traffic. The unified description here is not repeated here.
可选的,本申请实施例中,PCEF网元将第二终端的计费策略由组计费策略更新为个人计费策略可能有多种实现方式,如可以只解除第二终端和第一终端所属计费组的关联关系,也可以由PCRF网元下发个人计费套餐相关的策略等,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the PCEF network element may update the charging policy of the second terminal from the group charging policy to the personal charging policy, for example, the second terminal and the first terminal may be The association relationship of the charging group to which the accounting group belongs may also be used by the PCRF network element to issue a policy related to the personal charging package, which is not specifically limited in this embodiment of the present application.
S515、PCEF网元向PCRF网元发送重新授权请求(re-authentication answer,RAA)消息,以使得PCRF网元接收来自PCEF网元的RAA消息。S515. The PCEF network element sends a re-authentication answer (RAA) message to the PCRF network element, so that the PCRF network element receives the RAA message from the PCEF network element.
其中,该RAA消息用于指示已经更新第二终端对应的计费策略。The RAA message is used to indicate that the charging policy corresponding to the second terminal has been updated.
示例性的,对于第一终端所属计费组内的第一终端,可以按照上述步骤S513-S515中针对第二终端的方式进行处理,此时仅需将步骤S513-S515中的第二终端替换为第一终端即可,在此不再赘述。For example, the first terminal in the charging group to which the first terminal belongs may be processed in the manner of the foregoing step S513-S515 for the second terminal, and only the second terminal in steps S513-S515 needs to be replaced. It is a first terminal, and will not be described here.
基于本申请实施例提供的计费方法进行计费,可以大大降低对相关网元,如PCEF网元和OCS的性能要求,进而可以降低设备厂商的成本,相关技术效果分析可参考计费系统部分,在此不再赘述。The charging method based on the charging method provided by the embodiment of the present invention can greatly reduce the performance requirements of related network elements, such as the PCEF network element and the OCS, and can further reduce the cost of the equipment manufacturer. , will not repeat them here.
其中,上述步骤S501至步骤S515中的PCEF网元、PCRF网元或OCS的动作可以由图4所示的通信设备400中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不作任何限制。The action of the PCEF network element, the PCRF network element, or the OCS in the foregoing steps S501 to S515 may be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403. The embodiment does not impose any limitation on this.
基于图5所示的计费方法,可选的,如图6所示,为本申请实施例提供的一种会话建立方法,该会话建立方法中可以完成上述计费策略的配置过程,具体包括如下步骤:According to the charging method shown in FIG. 5, optionally, as shown in FIG. 6, a session establishing method is provided in the embodiment of the present application, and the session establishing method may complete the configuration process of the foregoing charging policy, specifically including The following steps:
S601、第一终端向PCEF网元发送会话建立请求,以使得PCEF网元接收来自第一终端的会话建立请求。S601. The first terminal sends a session establishment request to the PCEF network element, so that the PCEF network element receives the session establishment request from the first terminal.
其中,该会话建立请求中携带第一终端的标识。The session establishment request carries the identifier of the first terminal.
S602、PCEF网元根据会话建立请求,通过Gx接口向PCRF网元发送信用控制请求初始(credit control request-initial,CCR-U)消息1,以使得PCRF网元接收来自PCEF网元的CCR-I消息1。S602. The PCEF network element sends a credit control request-initial (CCR-U) message 1 to the PCRF network element through the Gx interface according to the session establishment request, so that the PCRF network element receives the CCR-I from the PCEF network element. Message 1.
其中,该CCR-I消息1携带第一终端的标识,用于请求第一终端对应的计费策略。The CCR-I message 1 carries the identifier of the first terminal, and is used to request a charging policy corresponding to the first terminal.
S603、PCRF网元根据第一终端的标识,确定第一终端为组计费终端,以及第一终端需要根据组计费账户状态进行计费策略更新。S603. The PCRF network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and the first terminal needs to perform charging policy update according to the group charging account status.
需要说明的是,本申请实施例以第一终端作为组计费终端,已经在PCRF网元上签约管理为例进行说明。因此,PCRF网元在获取第一终端的标识之后,可以根据第一终端的标识,查找到第一终端对应的签约数据,从而根据签约数据可以确定第一终端为组计费终端,以及第 一终端需要根据组计费账户状态进行计费策略更新。It should be noted that, in the embodiment of the present application, the first terminal is used as the group charging terminal, and the subscription management on the PCRF network element is taken as an example for description. Therefore, after obtaining the identifier of the first terminal, the PCRF network element may search for the subscription data corresponding to the first terminal according to the identifier of the first terminal, so that, according to the subscription data, the first terminal may be determined as a group charging terminal, and the first The terminal needs to update the charging policy according to the status of the group charging account.
可选的,本申请实施例中的第一终端可以为会话级组计费终端,也可以为业务级组计费终端,本申请实施例对此不作具体限定。Optionally, the first terminal in the embodiment of the present application may be a session-level group charging terminal or a service-level group charging terminal, which is not specifically limited in this embodiment of the present application.
S604、PCRF网元确定未与OCS建立第一终端所属计费组的组计费会话。S604. The PCRF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the OCS.
可选的,本申请实施例中,若第一终端为会话级组计费终端,则第一终端所属计费组为会话级计费组;若第一终端为业务级组计费终端,则第一终端所属计费组为业务级计费组,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, if the first terminal is a session-level group charging terminal, the charging group to which the first terminal belongs is a session-level charging group; if the first terminal is a service-level group charging terminal, The charging group to which the first terminal belongs is a service-level charging group, which is not specifically limited in this embodiment of the present application.
S605、PCRF网元通过Sy接口向OCS发送消费限制请求初始(spending limit request-initial,SLR-I)消息,以使得OCS接收来自PCRF网元的SLR-I消息。S605: The PCRF network element sends a spending limit request-initial (SLR-I) message to the OCS through the Sy interface, so that the OCS receives the SLR-I message from the PCRF network element.
其中,该SLR-I消息携带第一终端所属计费组的组标识,用于请求建立与第一终端所属计费组的组标识对应的计费会话。The SLR-I message carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
S606、OCS根据SLR-I消息,将第一终端所属计费组的组标识与对应的计费账户状态相关联。S606. The OCS associates, according to the SLR-I message, the group identifier of the charging group to which the first terminal belongs, and the corresponding charging account status.
S607、OCS通过Sy接口向PCRF网元发送消费限制应答初始(spending limit answer-initial,SLR-I)消息,以使得PCRF网元接收来自OCS的SLA-I消息。S607. The OCS sends a spending limit answer-initial (SLR-I) message to the PCRF network element through the Sy interface, so that the PCRF network element receives the SLA-I message from the OCS.
其中,该SLA-I消息用于指示与第一终端所属计费组的组标识对应的计费会话建立完成。The SLA-I message is used to indicate that the charging session establishment corresponding to the group identifier of the charging group to which the first terminal belongs is completed.
需要说明的是,本申请实施例中,若PCRF网元确定已经与OCS建立第一终端所属计费组的组计费会话,则可以不用执行上述步骤S604-S607。也就是说,对于一个计费组,仅需在PCRF网元与OCS之间建立一次与第一终端所属计费组对应的计费会话即可,无需像现有技术一样,需要在PCRF网元与OCS之间建立与计费组内的每个终端分别对应的计费会话,从而大大减少了PCRF网元和OCS之间的消息交互次数,进而对PCRF网元和OCS的性能要求大大降低。It should be noted that, in the embodiment of the present application, if the PCRF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the OCS, the foregoing steps S604-S607 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group to which the first terminal belongs, between the PCRF network element and the OCS, and it is not necessary to use the PCRF network element as in the prior art. A charging session corresponding to each terminal in the charging group is established with the OCS, thereby greatly reducing the number of message interactions between the PCRF network element and the OCS, and further reducing the performance requirements of the PCRF network element and the OCS.
可选的,本申请实施例中,在OCS将第一终端所属计费组的组标识与对应的计费账户状态相关联之后,若与第一终端所属计费组的组标识对应的计费账户状态发生变更,比如,第一终端所属计费组无可用组计费流量分片等,则OCS需要及时通知PCRF网元,以使得PCRF网元及时更新第一终端所属计费组内的终端的计费策略,相关描述可参考图5所示的实施例中的步骤S510-S515,在此不再赘述。Optionally, in the embodiment of the present application, after the OCS associates the group identifier of the charging group to which the first terminal belongs with the corresponding charging account status, if the charging is performed corresponding to the group identifier of the charging group to which the first terminal belongs The status of the account is changed. For example, if the charging group of the first terminal has no available group accounting traffic fragment, the OCS needs to notify the PCRF network element in time, so that the PCRF network element timely updates the terminal in the charging group to which the first terminal belongs. For the related description, refer to steps S510-S515 in the embodiment shown in FIG. 5, and details are not described herein again.
S608、PCRF网元将第一终端和第一终端所属计费组进行关联。S608. The PCRF network element associates the first terminal with the charging group to which the first terminal belongs.
示例性的,PCRF网元可以为第一终端所属计费组分配一个组策略节点,进而PCRF网元可以将第一终端和该组策略节点进行关联;或者,PCRF网元可以建立第一终端的标识和第一终端所属计费组的组标识的对应关系,等等,本申请实施例对此不作具体限定。For example, the PCRF network element may allocate a group policy node to the charging group to which the first terminal belongs, and the PCRF network element may associate the first terminal with the group of policy nodes. Alternatively, the PCRF network element may establish the first terminal. The corresponding relationship between the identifier and the group identifier of the charging group to which the first terminal belongs, and the like, is not specifically limited in this embodiment.
需要说明的是,本申请实施例中,若第一终端为业务级组计费终端,则对于该第一终端对应的一个或多个业务级计费组中的每个业务级计费组,均可以按照上述步骤S604-S608的方式执行,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first terminal is a service level group charging terminal, for each service level charging group in one or more service level charging groups corresponding to the first terminal, The method may be performed in the manner of the above steps S604-S608, which is not specifically limited in this embodiment of the present application.
需要说明的是,本申请的步骤S604-S608应用于PCRF网元确定第一终端需要根据组计费账户状态进行计费策略更新的场景下,若PCRF网元确定第一终端不需要根据组计费账户状态进行计费策略更新,可以不用执行上述步骤S604-S608,在此统一说明,以下不再赘述。It should be noted that the steps S604-S608 of the present application are applied to the scenario that the PCRF network element determines that the first terminal needs to perform the charging policy update according to the group charging account status, and if the PCRF network element determines that the first terminal does not need to be based on the group. The fee policy status is updated by the charging policy, and the above steps S604-S608 may not be performed, and the description is not described herein.
在PCRF网元确定第一终端所属计费组有可用组计费流量分片的情况下,本申请实施例提供的会话建立方法还可以包括如下步骤:In the case that the PCRF network element determines that the charging group to which the first terminal belongs has an available group charging traffic fragment, the session establishing method provided by the embodiment of the present application may further include the following steps:
S609、PCRF网元通过Gx接口向PCEF网元发送信用控制应答初始(credit control answer-initial,CCA-U)消息1,以使得PCEF网元接收来自PCRF网元的CCA-I消息1。S609. The PCRF network element sends a credit control answer-initial (CCA-U) message 1 to the PCEF network element through the Gx interface, so that the PCEF network element receives the CCA-I message 1 from the PCRF network element.
其中,该CCA-I消息1携带第一终端对应的计费组的计费策略,该第一终端对应的计费策略为用于表征第一终端属于某个计费组的计费策略。The CCA-I message 1 carries the charging policy of the charging group corresponding to the first terminal, and the charging policy corresponding to the first terminal is used to represent the charging policy of the first terminal belonging to a certain charging group.
可选的,本申请实施例中,若第一终端为会话级组计费终端,则第一终端对应的计费策略为会话级计费策略;若第一终端为业务级组计费终端,则第一终端对应的计费策略为业务级计费策略,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, if the first terminal is a session-level group charging terminal, the charging policy corresponding to the first terminal is a session-level charging policy; The charging policy corresponding to the first terminal is a service-level charging policy, which is not specifically limited in this embodiment of the present application.
示例性的,若第一终端为会话级组计费终端,则第一终端对应的计费策略例如可以包括第一终端的标识和第一终端所属会话级计费组的组标识的对应关系。For example, if the first terminal is a session-level group charging terminal, the charging policy corresponding to the first terminal may include, for example, a correspondence between the identifier of the first terminal and the group identifier of the session-level charging group to which the first terminal belongs.
或者,示例性的,若第一终端为业务级组计费终端,则第一终端对应的计费策略例如可以包括第一终端的标识和该业务级计费组对应的业务规则的对应关系,其中,该业务规则中包括第一终端所属业务级计费组的组标识。Or, for example, if the first terminal is a service level group charging terminal, the charging policy corresponding to the first terminal may include, for example, the correspondence between the identifier of the first terminal and the service rule corresponding to the service level charging group. The service rule includes a group identifier of a service level charging group to which the first terminal belongs.
或者,示例性的,若第一终端为业务级组计费终端,则第一终端对应的计费策略例如可以包括第一终端的标识、该业务级计费组对应的业务规则以及第一终端所属业务级计费组的组标识的对应关系。Or, for example, if the first terminal is a service level group charging terminal, the charging policy corresponding to the first terminal may include, for example, an identifier of the first terminal, a service rule corresponding to the service level charging group, and the first terminal. Correspondence between the group IDs of the service-level accounting groups.
或者,示例性的,若第一终端为业务级组计费终端,则第一终端对应的计费策略例如可以包括第一终端的标识和该业务级计费组对应的业务规则的标识的对应关系,以使得根据该业务规则的标识和第一终端的标识,可以确定出配置在PCEF网元上的该业务级计费组对应的业务规则,其中,配置在PCEF网元上的该业务级计费组对应的业务规则中包括第一终端所属业务级计费组的组标识;或者,以使得根据该业务规则的标识和第一终端的标识,可以确定出配置在PCEF网元上的该业务级计费组对应的业务规则和第一终端所属业务级计费组的组标识。Or, exemplarily, if the first terminal is a service level group charging terminal, the charging policy corresponding to the first terminal may include, for example, the identifier of the first terminal and the identifier of the service rule corresponding to the service level charging group. a relationship, so that the service rule corresponding to the service-level charging group configured on the PCEF network element can be determined according to the identifier of the service rule and the identifier of the first terminal, where the service level is configured on the PCEF network element The service rule corresponding to the charging group includes the group identifier of the service level charging group to which the first terminal belongs; or, so that the identifier configured on the PCEF network element can be determined according to the identifier of the service rule and the identifier of the first terminal. The service rule corresponding to the service-level charging group and the group ID of the service-level charging group to which the first terminal belongs.
需要说明的是,本申请实施例中,若第一终端为业务级组计费终端,则对于该第一终端对应的一个或多个业务级计费组中的每个业务级计费组,均可以按照上述步骤S609的方式执行;或者,该CCA-I消息1中可以携带第一终端对应的多个业务级计费组的计费策略,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first terminal is a service level group charging terminal, for each service level charging group in one or more service level charging groups corresponding to the first terminal, The method may be performed in the manner of the foregoing step S609; or the CCA-I message 1 may carry the charging policy of the multiple service-level charging groups corresponding to the first terminal, which is not specifically limited in this embodiment of the present application.
S610、PCEF网元将第一终端与第一终端所属计费组进行关联。S610. The PCEF network element associates the first terminal with a charging group to which the first terminal belongs.
示例性的,PCEF网元可以为第一终端所属计费组分配一个组计费节点,进而PCEF网元可以将第一终端所属计费组的计费策略和该组策略节点进行关联。或者,若第一终端为会话级组计费终端,PCEF网元可以建立第一终端的标识和第一终端所属会话级计费组的组标识的对应关系;若第一终端为业务级组计费终端,PCEF网元可以建立第一终端的标识、第一终端所属业务级计费组的组标识以及对应的业务规则的对应关系,或者,PCEF网元可以建立第一终端的标识以及第一终端所属业务级计费组对应的业务规则的对应关系,其中,该业务规则中包括第一终端所属业务级计费组的组标识,等等,本申请实施例对此不作具体限定。For example, the PCEF network element may allocate a group charging node to the charging group to which the first terminal belongs, and the PCEF network element may associate the charging policy of the charging group to which the first terminal belongs and the group policy node. Or, if the first terminal is a session-level group charging terminal, the PCEF network element may establish a correspondence between the identifier of the first terminal and the group identifier of the session-level charging group to which the first terminal belongs; The PCEF network element may establish the identifier of the first terminal, the group identifier of the service level charging group to which the first terminal belongs, and the corresponding relationship of the corresponding service rule, or the PCEF network element may establish the identifier of the first terminal and the first The corresponding relationship of the service rule corresponding to the service-level charging group to which the terminal belongs, where the service rule includes the group identifier of the service-level charging group to which the first terminal belongs, and the like, which is not specifically limited in this embodiment.
S611、PCEF网元确定未与OCS建立第一终端所属计费组的组计费会话。S611. The PCEF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the OCS.
S612、PCEF网元通过Gy接口向OCS发送CCR-I消息2,以使得OCS接收来自PCEF网元的CCR-I消息2。S612. The PCEF network element sends a CCR-I message 2 to the OCS through the Gy interface, so that the OCS receives the CCR-I message 2 from the PCEF network element.
其中,该CCR-I消息2携带第一终端所属计费组的组标识,用于请求建立与第一终端所属计费组的组标识对应的计费会话。The CCR-I message 2 carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
S613、OCS根据CCR-I消息2,为第一终端所属计费组分配对应的第一组计费流量分片。S613. The OCS allocates a corresponding first group of charging traffic fragments to the charging group to which the first terminal belongs according to the CCR-I message 2.
S614、OCS通过Gy接口向PCEF网元发送CCA-I消息2,以使得PCEF网元接收来自OCS 的CCA-I消息2。S614. The OCS sends a CCA-I message 2 to the PCEF network element through the Gy interface, so that the PCEF network element receives the CCA-I message 2 from the OCS.
其中,该CCA-I消息2携带第一终端所属计费组的组标识以及第一终端所属计费组对应的第一组计费流量分片。The CCA-I message 2 carries the group identifier of the charging group to which the first terminal belongs and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
S615、PCEF网元根据CCA-I消息2,将第一终端所属计费组与对应的第一组计费流量分片进行关联。S615. The PCEF network element associates the charging group to which the first terminal belongs with the corresponding first group of charging traffic fragments according to the CCA-I message 2.
示例性的,PCRF网元可以为第一终端所属计费组分配一个组计费节点,进而PCEF网元可以将该第一组计费流量分片和该组策略节点进行关联。或者,PCEF网元可以建立该第一组计费流量分片和第一终端所属计费组的组标识的对应关系,等等,本申请实施例对此不作具体限定。For example, the PCRF network element may allocate a group charging node to the charging group to which the first terminal belongs, and the PCEF network element may associate the first group of charging traffic fragments with the group of policy nodes. Alternatively, the PCEF network element may establish a correspondence between the first group of the charging traffic fragment and the group identifier of the charging group to which the first terminal belongs, and so on, which is not specifically limited in this embodiment of the present application.
可选的,本申请实施例中,在PCEF网元将第一终端所属计费组与对应的第一组计费流量分片进行关联之后,PCEF网元可以根据第一终端所属计费组的组标识以及第一终端所属计费组对应的第一组计费流量分片,对第一终端所属计费组内的终端的数据流量进行组计费处理,具体可参考图5所示的计费方法,在此不再赘述。Optionally, in the embodiment of the present application, after the PCEF network element associates the charging group of the first terminal with the corresponding first group of charging traffic fragments, the PCEF network element may be configured according to the charging group to which the first terminal belongs. The group identifier and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs, perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, and specifically refer to the meter shown in FIG. The fee method will not be described here.
需要说明的是,本申请实施例中,若PCEF网元确定已经与OCS建立第一终端所属计费组的组计费会话,则可以不用执行上述步骤S611-S615。也就是说,对于一个计费组,仅需在PCEF网元与OCS之间建立一次与第一终端所属计费组对应的计费会话即可,无需像现有技术一样,需要在PCEF网元与OCS之间建立与计费组内的每个终端分别对应的计费会话,从而大大减少了PCEF网元和OCS之间的消息交互次数,进而对PCEF网元和OCS的性能要求大大降低。It should be noted that, in the embodiment of the present application, if the PCEF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the OCS, the foregoing steps S611-S615 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group of the first terminal between the PCEF network element and the OCS, and it is not necessary to use the PCEF network element as in the prior art. A charging session corresponding to each terminal in the charging group is established with the OCS, thereby greatly reducing the number of message exchanges between the PCEF network element and the OCS, and further reducing the performance requirements of the PCEF network element and the OCS.
需要说明的是,本申请实施例中,若第一终端为业务级组计费终端,则对于该第一终端对应的一个或多个业务级计费组中的每个业务级计费组,均可以按照上述步骤S610-S615的方式执行,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first terminal is a service level group charging terminal, for each service level charging group in one or more service level charging groups corresponding to the first terminal, The method may be performed in the manner of the foregoing steps S610-S615, which is not specifically limited in this embodiment of the present application.
S616、PCEF网元向第一终端发送会话建立应答,以使得第一终端接收来自PCEF网元的会话建立应答。S616. The PCEF network element sends a session establishment response to the first terminal, so that the first terminal receives the session establishment response from the PCEF network element.
其中,该会话建立应答用于指示与第一终端对应的计费会话建立完成。The session establishment response is used to indicate that the charging session establishment corresponding to the first terminal is completed.
基于本申请实施例提供的会话建立方法,可以实现与第一终端对应的计费策略的配置过程。Based on the session establishment method provided in this embodiment, the configuration process of the charging policy corresponding to the first terminal may be implemented.
其中,上述步骤S601至步骤S616中的PCEF网元、PCRF网元或OCS的动作可以由图4所示的通信设备400中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不作任何限制。The action of the PCEF network element, the PCRF network element, or the OCS in the foregoing step S601 to step S616 can be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403. The embodiment does not impose any limitation on this.
可选的,基于图6所示的会话建立方法,也可以执行不同于图5所示的实施例的计费方法,在此统一说明,以下不再赘述。Optionally, based on the session establishment method shown in FIG. 6, a charging method different from the embodiment shown in FIG. 5 may be performed, which is uniformly described herein, and details are not described herein again.
可选的,本申请实施例中,与第一终端对应的计费策略也可以预先配置在PCEF网元上,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the charging policy corresponding to the first terminal may be pre-configured on the PCEF network element, which is not specifically limited in this embodiment of the present application.
可选的,图5或图6所示的实施例均以一个计费组内的终端分布在一个PCEF网元上为例进行说明。当然,一个计费组内的终端也可能分布在不同的PCEF网元上,此时,每个PCEF网元与其它网元的交互流程均可参考上述图5或图6所示的实施例中的PCEF网元与其它网元的交互流程,在此不再赘述。Optionally, the embodiment shown in FIG. 5 or FIG. 6 is described by taking a terminal in a charging group on a PCEF network element as an example. Certainly, the terminals in a charging group may also be distributed on different PCEF network elements. In this case, the interaction process between each PCEF network element and other network elements may refer to the embodiment shown in FIG. 5 or FIG. 6 above. The interaction process between the PCEF network element and other network elements is not described here.
可选的,以图1所示的计费系统应用于如图3所示的5G网络为例,如图7所示,为本申请实施例提供的一种计费方法,包括如下步骤:Optionally, the charging system shown in FIG. 1 is applied to the 5G network shown in FIG. 3 . As shown in FIG. 7 , the charging method provided by the embodiment of the present application includes the following steps:
S701、第一终端向UPF网元发送数据包,以使得UPF网元接收来自第一终端的数据包。S701. The first terminal sends a data packet to the UPF network element, so that the UPF network element receives the data packet from the first terminal.
S702、UPF网元根据该数据包,确定第一终端所属计费组的组标识。S702: The UPF network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs.
可选的,本申请实施例中,UPF网元根据该数据包,确定第一终端所属计费组的组标识的方式与上述步骤S502中PCEF网元根据该数据包,确定第一终端所属计费组的组标识的方式可以类似,区别比如在于将PCEF网元替换为UPF网元,相关描述可参考步骤S502,在此不再赘述。Optionally, in the embodiment of the present application, the manner in which the UPF network element determines the group identifier of the charging group to which the first terminal belongs according to the data packet, and the PCEF network element in the step S502, according to the data packet, determines, according to the data packet, the first terminal belongs to The method of the group ID of the fee group can be similar. For example, the PCEF network element is replaced with the UPF network element. For related description, refer to step S502, and details are not described herein.
S703、UPF网元根据第一终端所属计费组的组标识以及该数据包对应的数据流量,确定第二数据流量。S703: The UPF network element determines the second data traffic according to the group identifier of the charging group to which the first terminal belongs and the data traffic corresponding to the data packet.
示例性的,UPF网元确定第二数据流量的方式与上述S503中PCEF网元确定第一数据流量的方式类似,区别比如在于第一终端所属计费组在UPF网元上通常由组流量统计节点进行管理,相关描述可参考步骤S503,在此不再赘述。For example, the manner in which the UPF network element determines the second data traffic is similar to the manner in which the PCEF network element determines the first data traffic in the foregoing S503. The difference is that the charging group to which the first terminal belongs is usually collected by the group traffic on the UPF network element. The node is managed. For related description, refer to step S503, and details are not described herein.
S704、UPF网元确定第二数据流量已经达到第一终端所属计费组对应的第五组计费流量分片的上报流量。S704: The UPF network element determines that the second data traffic has reached the reported traffic of the fifth group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs.
其中,UPF网元确定第二数据流量已经达到第一终端所属计费组对应的第五组计费流量分片的上报流量的方式与上述步骤S504中PCEF网元确定第一数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的上报流量的方式类似,相关描述可参考步骤S504,在此不再赘述。The manner in which the UPF network element determines that the second data traffic has reached the reported traffic of the fifth group of the traffic volume fragments corresponding to the charging group of the first terminal, and the PCEF network element determines that the first data traffic has reached the first step. The method for reporting the traffic of the first group of the accounting traffic fragments corresponding to the charging group of the terminal is similar. For related description, refer to step S504, and details are not described herein.
S705、UPF网元向SMF网元发送消息1,以使得SMF网元接收来自UPF网元的消息1。S705. The UPF network element sends a message 1 to the SMF network element, so that the SMF network element receives the message 1 from the UPF network element.
其中,该消息1携带第一终端所属计费组的组标识以及该第二数据流量。The message 1 carries the group identifier of the charging group to which the first terminal belongs and the second data traffic.
S706、SMF网元根据第一终端所属计费组的组标识以及该第二数据流量,确定第一数据流量。S706: The SMF network element determines the first data traffic according to the group identifier of the charging group to which the first terminal belongs and the second data traffic.
其中,该第一数据流量为第一终端所属计费组在SMF网元上的当前数据流量。The first data traffic is the current data traffic of the charging group to which the first terminal belongs on the SMF network element.
示例性的,假设第一终端所属计费组在SMF网元上由组计费节点1进行管理,则SMF网元可以根据第一终端所属计费组的组标识,将第二数据流量关联到组计费节点1上进行汇总。假设该第二数据流量为5M,在未将第二数据流量关联到组计费节点1上进行汇总之前,组计费节点1上的流量为6M,则在将第二数据流量关联到组计费节点1上进行汇总之后,组计费节点1上的流量为5M+6M=11M。Illustratively, if the charging group to which the first terminal belongs is managed by the group charging node 1 on the SMF network element, the SMF network element can associate the second data traffic to the group identifier of the charging group to which the first terminal belongs. The grouping is performed on the charging node 1. Assuming that the second data traffic is 5M, before the second data traffic is associated with the group charging node 1, the traffic on the group charging node 1 is 6M, and the second data traffic is associated with the group meter. After summing up on the fee node 1, the traffic on the group charging node 1 is 5M+6M=11M.
可选的,本申请实施例中,若SMF网元确定第一数据流量未达到第一终端所属计费组对应的第一组计费流量分片的上报流量,则本申请实施例提供的计费方法还可以包括如下步骤:Optionally, in the embodiment of the present application, if the SMF network element determines that the first data traffic does not reach the reported traffic of the first group of the traffic flow segments corresponding to the charging group to which the first terminal belongs, The fee method can also include the following steps:
S707、SMF网元确定第一数据流量未达到第一终端所属计费组对应的第一组计费流量分片的上报流量。S707: The SMF network element determines that the first data traffic does not reach the reported traffic of the first group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs.
S708、SMF网元为第一终端所属计费组分配第三组计费流量分片。S708. The SMF network element allocates a third group of charging traffic fragments to the charging group to which the first terminal belongs.
可选的,本申请实施例中,第三组计费流量分片的大小与第五组计费流量分片的大小可能相同,也可能不同,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the size of the third group of the charging traffic fragments may be the same as the size of the fifth group of the charging traffic fragments, and may be different.
S709、SMF网元向UPF网元发送消息2,以使得UPF网元接收来自SMF网元的消息2.S709: The SMF network element sends a message 2 to the UPF network element, so that the UPF network element receives the message from the SMF network element.
其中,该消息2携带第一终端所属计费组的组标识以及第一终端所属计费组对应的第三组计费流量分片。The message 2 carries the group identifier of the charging group to which the first terminal belongs and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
S710、UPF网元根据第一终端所属计费组的组标识以及第一终端所属计费组对应的第三组计费流量分片,对第一终端所属计费组内的终端的数据流量进行组计费处理。S710. The UF network element performs data traffic of the terminal in the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Group billing processing.
可选的,本申请实施例中,若SMF网元确定第一数据流量已经到第一终端所属计费组对 应的第一组计费流量分片的上报流量,则本申请实施例提供的计费方法还可以包括如下步骤:Optionally, in the embodiment of the present application, if the SMF network element determines that the first data traffic has reached the reported traffic of the first group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs, The fee method can also include the following steps:
S711、SMF网元确定第一数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的上报流量。The S711 and the SMF network element determine that the first data traffic has reached the reported traffic of the first group of the traffic flow fragments corresponding to the charging group to which the first terminal belongs.
S712、SMF网元向CHF网元发送消息3,以使得CHF网元接收来自SMF网元的消息3。S712. The SMF network element sends a message 3 to the CHF network element, so that the CHF network element receives the message 3 from the SMF network element.
其中,该消息3携带第一终端所属计费组的组标识以及第一数据流量。该第一终端所属计费组的组标识以及第一数据流量用于请求第一终端所属计费组对应的第二组计费流量分片。The message 3 carries the group identifier of the charging group to which the first terminal belongs and the first data traffic. The group identifier of the charging group to which the first terminal belongs and the first data traffic are used to request the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
假设本申请实施例中的第一组计费流量分片不是最后一个组计费流量分片,也就是说,第一终端所属计费组有可用组计费流量分片,则可选的,本申请实施例提供的计费方法还包括以下步骤:It is assumed that the first group of charging traffic fragments in the embodiment of the present application is not the last group charging traffic fragment, that is, the charging group of the first terminal belongs to the group charging traffic fragment, which is optional. The charging method provided by the embodiment of the present application further includes the following steps:
S713、CHF网元根据第一终端所属计费组的组标识,在第一终端所属计费组的流量池中为第一终端所属计费组分配第二组计费流量分片。The S713 and the CHF network element allocate, according to the group identifier of the charging group to which the first terminal belongs, the second group of charging traffic fragments to the charging group to which the first terminal belongs in the traffic pool of the charging group to which the first terminal belongs.
可选的,本申请实施例中,第一组计费流量分片的大小与第二组计费流量分片的大小可能相同,也可能不同,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the size of the first group of the charging traffic fragments and the size of the second group of the charging traffic fragments may be the same or different, which is not specifically limited in this embodiment of the present application.
S714、CHF网元向SMF网元发送消息4,以使得SMF网元接收来自CHF网元的消息4。S714. The CHF network element sends a message 4 to the SMF network element, so that the SMF network element receives the message 4 from the CHF network element.
其中,该消息4携带第一终端所属计费组的组标识以及第一终端所属计费组对应的第二组计费流量分片。The message 4 carries the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
S715、SMF网元根据第一终端所属计费组的组标识以及第一终端所属计费组对应的第二组计费流量分片,对第一终端所属计费组内的终端的数据流量进行组计费处理。S715. The SMF network element performs data traffic of the terminal in the charging group to which the first terminal belongs according to the group identifier of the charging group to which the first terminal belongs and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. Group billing processing.
假设本申请实施例中的第一组计费流量分片为最后一个组计费流量分片,也就是说,第一终端所属计费组无可用组计费流量分片,则可选的,本申请实施例提供的计费方法还包括以下步骤:It is assumed that the first group of charging traffic fragments in the embodiment of the present application is the last group of charging traffic fragments, that is, the charging group of the first terminal belongs to the charging group without the available group charging traffic fragment. The charging method provided by the embodiment of the present application further includes the following steps:
S716、CHF网元向SMF网元发送消息5,以使得SMF网元接收来自CHF网元的消息5。S716: The CHF network element sends a message 5 to the SMF network element, so that the SMF network element receives the message 5 from the CHF network element.
其中,该消息5携带指示信息1,该指示信息1用于指示第一终端所属计费组无可用组计费流量分片;或者,该指示信息1用于指示CHF网元不再为第一终端所属计费组分配新的组计费流量分片等,本申请实施例对此不作具体限定。The message 5 carries the indication information 1 for indicating that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 1 is used to indicate that the CHF network element is no longer the first The charging group to which the terminal belongs is allocated a new group charging traffic fragment, etc., which is not specifically limited in this embodiment of the present application.
示例性的,例如可以通过在消息5中携带第一终端所属计费组的组标识以及将新分配的组计费流量分片的流量位置为0的方式实现上述指示信息1的功能,本申请实施例对此不作具体限定。For example, the function of the indication information 1 can be implemented by the method of carrying the group identifier of the charging group to which the first terminal belongs and the traffic location of the newly allocated group charging traffic fragment to 0. The embodiment does not specifically limit this.
可选的,本申请实施例中,若第一组计费流量分片为最后一个组计费流量分片,则在CHF网元向SMF网元发送该第一组计费流量分片时也可以指示该分片为最后一个组计费流量分片,从而可以不用执行步骤S712和S716。也就是说,若第一组计费流量分片为最后一个组计费流量分片,则步骤S712和步骤S716是个可选的步骤,在此统一说明,以下不再赘述。Optionally, in the embodiment of the present application, if the first group of charging traffic fragments is the last group of charging traffic fragments, when the first group of charging traffic fragments is sent by the CHF network element to the SMF network element, The fragment may be instructed to be the last group of billing traffic fragments so that steps S712 and S716 may not be performed. That is, if the first group of charging traffic fragments is the last group of charging traffic fragments, step S712 and step S716 are optional steps, which are collectively described herein, and are not described herein again.
S717、SMF网元向UPF网元发送消息6,以使得UPF网元接收来自SMF网元的消息6。The S717 and the SMF network element send a message 6 to the UPF network element, so that the UPF network element receives the message 6 from the SMF network element.
其中,该消息6携带上述指示信息1,指示信息1的相关描述可参考步骤S716,在此不再赘述。。The message 6 carries the foregoing indication information 1. The related description of the indication information 1 may refer to step S716, and details are not described herein again. .
可选的,本申请实施例中,若第一组计费流量分片为最后一个组计费流量分片,则在CHF网元向SMF网元发送该第一组计费流量分片时也可以指示该分片为最后一个组计费流量分片,从而可以不用执行步骤S712和S716。也就是说,若第一组计费流量分片为最后一个组计费流量分片,则步骤S712和步骤S716是个可选的步骤,在此统一说明,以下不再赘述。Optionally, in the embodiment of the present application, if the first group of charging traffic fragments is the last group of charging traffic fragments, when the first group of charging traffic fragments is sent by the CHF network element to the SMF network element, The fragment may be instructed to be the last group of billing traffic fragments so that steps S712 and S716 may not be performed. That is, if the first group of charging traffic fragments is the last group of charging traffic fragments, step S712 and step S716 are optional steps, which are collectively described herein, and are not described herein again.
当然,若在SMF网元为UPF网元分配第五组计费流量分片时,指示该第五组计费流量分 片为CHF网元分配给SMF网元的最后一个组计费流量分片中的最后一个组计费流量分片,则本申请实施例也可以不用执行步骤S705-S716,本申请实施例对此不作具体限定。Of course, if the SMF network element allocates the fifth group of charging traffic fragments to the UPF network element, the fifth group of the charging traffic fragment is instructed to be the last group charging traffic fragment allocated by the CHF network element to the SMF network element. In the embodiment of the present application, the embodiment of the present application does not need to perform the steps S705-S716.
S718、CHF网元向PCF网元发送消息7,以使得PCF网元接收来自CHF网元的消息7。S718: The CHF network element sends a message 7 to the PCF network element, so that the PCF network element receives the message 7 from the CHF network element.
其中,该消息7携带指示信息2,该指示信息2用于指示第一终端所属计费组无可用组计费流量分片;或者,该指示信息2用于指示CHF网元不再为第一终端所属计费组分配新的组计费流量分片等,本申请实施例对此不作具体限定。The message 7 carries the indication information 2, which is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment; or the indication information 2 is used to indicate that the CHF network element is no longer the first The charging group to which the terminal belongs is allocated a new group charging traffic fragment, etc., which is not specifically limited in this embodiment of the present application.
示例性的,例如可以通过在消息7中携带第一终端所属计费组的组标识的方式实现上述指示信息2的功能,本申请实施例对此不作具体限定。For example, the function of the indication information 2 can be implemented by the method of carrying the group identifier of the charging group to which the first terminal belongs in the message 7. The embodiment of the present application does not specifically limit this.
可选的,本申请实施例中的指示信息1和指示信息2可以相同,也可以不相同,本申请实施例对此不作具体限定。Optionally, the indication information 1 and the indication information 2 in the embodiment of the present application may be the same or different, and the embodiment of the present application does not specifically limit this.
需要说明的是,本申请实施例中的步骤S716与步骤S718之间没有必然的执行先后顺序,可以是先执行步骤S716,再执行步骤S718;也可以是先执行步骤S718,再执行步骤S716;还可以是同时执行步骤S716和S718,本申请实施例对此不作具体限定。It should be noted that there is no necessary sequence of execution between step S716 and step S718 in the embodiment of the present application, which may be performed first step S716, and then step S718; or step S718 may be performed first, and then step S716 is performed; It is also possible to perform the steps S716 and S718 at the same time, which is not specifically limited in the embodiment of the present application.
S719、PCF网元根据第一终端所属计费组的组标识,确定需要对第一终端所属计费组内的终端进行计费策略更新。The S719 and the PCF network element determine, according to the group identifier of the charging group to which the first terminal belongs, that the charging policy update needs to be performed on the terminal in the charging group to which the first terminal belongs.
S720、PCF网元向CHF网元发送应答消息1,以使得CHF网元接收来自PCF网元的应答消息1。S720: The PCF network element sends a response message 1 to the CHF network element, so that the CHF network element receives the response message 1 from the PCF network element.
其中,该应答消息1用于通知CHF网元该PCF网元已经获知第一终端所属计费组无可用组计费流量分片或者CHF网元不再为第一终端所属计费组分配新的组计费流量分片等,本申请实施例对此不作具体限定。The response message 1 is used to notify the CHF network element that the PCF network element has learned that the charging group of the first terminal belongs to the charging group without the available group, or that the CHF network element is no longer assigned to the charging group of the first terminal. The group is not limited to the specific embodiment of the present application.
进一步的,本申请实施例中,在PCF网元确定需要对第一终端所属计费组内的终端进行计费策略更新之后,对于第一终端所属计费组内的任一终端,还需要按照下述针对第二终端的方式进行处理:Further, in the embodiment of the present application, after the PCF network element determines that the terminal in the charging group to which the first terminal belongs needs to perform the charging policy update, The following methods are handled for the second terminal:
S721、PCF网元向SMF网元发送消息8,以使得SMF网元接收来自PCF网元的消息8。S721. The PCF network element sends a message 8 to the SMF network element, so that the SMF network element receives the message 8 from the PCF network element.
其中,该消息8用于指示删除第二终端和第一终端所属计费组的关联关系。The message 8 is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
可选的,本申请实施例中的消息8中可以携带与第二终端对应的变更的计费策略,该变更的计费策略可以用于指示删除第二终端和第一终端所属计费组的关联关系,本申请实施例对此不作具体限定。Optionally, the message 8 in the embodiment of the present application may carry the changed charging policy corresponding to the second terminal, where the changed charging policy may be used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted. The association relationship is not specifically limited in this embodiment.
S722、SMF网元根据消息8,删除第二终端和第一终端所属计费组的关联关系。S722: The SMF network element deletes, according to the message 8, the association relationship between the second terminal and the charging group to which the first terminal belongs.
其中,SMF网元删除第二终端和第一终端所属计费组的关联关系的相关示例可参考图5所示的实施例中步骤S514的相关描述,在此不再赘述。For the related example of the SMF network element deleting the association relationship between the second terminal and the charging group to which the first terminal belongs, refer to the related description of step S514 in the embodiment shown in FIG. 5, and details are not described herein again.
其中,本申请实施例中,在SMF网元根据消息8,删除第二终端和第一终端所属计费组的关联关系之后,对于来自第二终端的数据包的数据流量只能匹配到个人计费流量上,不再享受组计费策略,在此统一说明,以下不再赘述。In the embodiment of the present application, after the SMF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the message 8, the data traffic of the data packet from the second terminal can only be matched to the personal meter. The group charging policy is no longer enjoyed on the fee traffic. The unified description here is not repeated here.
可选的,本申请实施例中,SMF网元将第二终端的计费策略由组计费策略更新为个人计费策略可能有多种实现方式,如可以只解除第二终端和第一终端所属计费组的关联关系,也可以由PCF网元下发个人计费套餐相关的策略等,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the SMF network element may update the charging policy of the second terminal from the group charging policy to the personal charging policy, for example, the second terminal and the first terminal may be The association relationship between the charging group and the accounting group may be performed by the PCF network element, and is not specifically limited in this embodiment.
S723、SMF网元向PCF网元发送应答消息2,以使得PCF网元接收来自SMF网元的应答消息2。S723: The SMF network element sends a response message 2 to the PCF network element, so that the PCF network element receives the response message 2 from the SMF network element.
其中,该应答消息2用于指示已经更新第二终端对应的计费策略。The response message 2 is used to indicate that the charging policy corresponding to the second terminal has been updated.
S724、SMF网元向UPF网元发送消息9,以使得UPF网元接收来自SMF网元的消息9。S724. The SMF network element sends a message 9 to the UPF network element, so that the UPF network element receives the message 9 from the SMF network element.
其中,该消息9用于指示删除第二终端和第一终端所属计费组的关联关系。The message 9 is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
可选的,本申请实施例中的消息9中可以携带与第二终端对应的变更的计费策略,该变更的计费策略可以用于指示删除第二终端和第一终端所属计费组的关联关系,本申请实施例对此不作具体限定。Optionally, the message 9 in the embodiment of the present application may carry the changed charging policy corresponding to the second terminal, where the changed charging policy may be used to indicate that the second terminal and the charging group to which the first terminal belongs are deleted. The association relationship is not specifically limited in this embodiment.
S725、UPF网元根据消息9,删除第二终端和第一终端所属计费组的关联关系。S725. The UPF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the message 9.
其中,UPF网元删除第二终端和第一终端所属计费组的关联关系的相关示例可参考图5所示的实施例中步骤S514的相关描述,在此不再赘述。For the related example of the association between the second terminal and the charging group to which the first terminal belongs, refer to the related description of step S514 in the embodiment shown in FIG. 5, and details are not described herein again.
其中,本申请实施例中,在UPF网元根据消息9,删除第二终端和第一终端所属计费组的关联关系之后,对于来自第二终端的数据包的数据流量只能匹配到个人计费流量上,不再享受组计费策略,在此统一说明,以下不再赘述。In the embodiment of the present application, after the UPF network element deletes the association relationship between the second terminal and the charging group to which the first terminal belongs according to the message 9, the data traffic of the data packet from the second terminal can only be matched to the personal meter. The group charging policy is no longer enjoyed on the fee traffic. The unified description here is not repeated here.
可选的,本申请实施例中,UPF网元将第二终端的计费策略由组计费策略更新为个人计费策略可能有多种实现方式,如可以只解除第二终端和第一终端所属计费组的关联关系,也可以由PCF网元通过SMF网元下发个人计费套餐相关的策略等,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the UPF network element may update the charging policy of the second terminal from the group charging policy to the personal charging policy. For example, the second terminal and the first terminal may be removed. The association relationship between the accounting group and the accounting group may be performed by the PCF network element through the SMF network element.
S726、UPF网元向SMF网元PCF网元发送应答消息3,以使得SMF网元接收来自UPF网元的应答消息3。S726: The UPF network element sends a response message 3 to the SMF network element PCF network element, so that the SMF network element receives the response message 3 from the UPF network element.
其中,该应答消息3用于指示已经更新第二终端对应的计费策略。The response message 3 is used to indicate that the charging policy corresponding to the second terminal has been updated.
需要说明的是,本申请的步骤S716-S726应用于在第一终端需要根据组计费账户状态进行计费策略更新的场景下,若第一终端不需要根据组计费账户状态进行计费策略更新,可以不用执行上述步骤S716-S726,在此统一说明,以下不再赘述。It should be noted that the steps S716-S726 of the present application are applied to the scenario in which the first terminal needs to perform the charging policy update according to the group charging account status, if the first terminal does not need to perform the charging policy according to the group charging account status. For the update, the above steps S716-S726 may not be performed, which are collectively described herein, and are not described below.
基于本申请实施例提供的计费方法进行计费,可以大大降低对相关网元,如UPF网元、SMF网元网元和CHF网元的性能要求,进而可以降低设备厂商的成本,相关技术效果分析可参考计费系统部分,在此不再赘述。The charging method based on the charging method provided by the embodiment of the present application can greatly reduce the performance requirements of related network elements, such as the UPF network element, the SMF network element, and the CHF network element, thereby reducing the cost of the equipment manufacturer. For the effect analysis, refer to the section of the billing system, and details are not described herein.
其中,上述步骤S701至步骤S726中的SMF网元、PCF网元或CHF网元的动作可以由图4所示的通信设备400中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不作任何限制。The actions of the SMF network element, the PCF network element, or the CHF network element in the foregoing step S701 to step S726 can be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403. The embodiment of the present application does not impose any limitation on this.
基于图7所示的计费方法,可选的,如图8所示,为本申请实施例提供的一种会话建立方法,该会话建立方法中可以完成上述计费策略的配置过程,具体包括如下步骤:Based on the charging method shown in FIG. 7 , optionally, as shown in FIG. 8 , the method for establishing a session is provided in the method for establishing a session, and the method includes: The following steps:
S801、第一终端向SMF网元发送会话建立请求,以使得SMF网元接收来自第一终端的会话建立请求。S801. The first terminal sends a session establishment request to the SMF network element, so that the SMF network element receives the session establishment request from the first terminal.
其中,该会话建立请求中携带第一终端的标识。The session establishment request carries the identifier of the first terminal.
S802、SMF网元根据会话建立请求,向PCF网元发送消息1,以使得PCF网元接收来自SMF网元的消息1。S802. The SMF network element sends a message 1 to the PCF network element according to the session establishment request, so that the PCF network element receives the message 1 from the SMF network element.
其中,该消息1携带第一终端的标识,用于请求第一终端对应的计费策略。The message 1 carries the identifier of the first terminal, and is used to request a charging policy corresponding to the first terminal.
S803、PCF网元根据第一终端的标识,确定第一终端为组计费终端,以及第一终端需要根据组计费账户状态进行计费策略更新。S803. The PCF network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and the first terminal needs to perform charging policy update according to the group charging account status.
需要说明的是,本申请实施例以第一终端作为组计费终端,已经在PCF网元上签约管理为例进行说明。因此,PCF网元在获取第一终端的标识之后,可以根据第一终端的标识,查找到第一终端对应的签约数据,从而根据签约数据可以确定第一终端为组计费终端,以及第 一终端需要根据组计费账户状态进行计费策略更新。It should be noted that, in the embodiment of the present application, the first terminal is used as the group charging terminal, and the contract management on the PCF network element has been taken as an example for description. Therefore, after acquiring the identifier of the first terminal, the PCF network element may search for the subscription data corresponding to the first terminal according to the identifier of the first terminal, so that the first terminal is determined to be the group charging terminal according to the subscription data, and the first The terminal needs to update the charging policy according to the status of the group charging account.
可选的,本申请实施例中的第一终端可以为会话级组计费终端,也可以为业务级组计费终端,本申请实施例对此不作具体限定。Optionally, the first terminal in the embodiment of the present application may be a session-level group charging terminal or a service-level group charging terminal, which is not specifically limited in this embodiment of the present application.
S804、PCF网元确定未与CHF网元建立第一终端所属计费组的组计费会话。S804. The PCF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the CHF network element.
可选的,本申请实施例中,若第一终端为会话级组计费终端,则第一终端所属计费组为会话级计费组;若第一终端为业务级组计费终端,则第一终端所属计费组为业务级计费组,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, if the first terminal is a session-level group charging terminal, the charging group to which the first terminal belongs is a session-level charging group; if the first terminal is a service-level group charging terminal, The charging group to which the first terminal belongs is a service-level charging group, which is not specifically limited in this embodiment of the present application.
S805、PCF网元向CHF网元发送消息2,以使得CHF网元接收来自PCF网元的消息2。S805. The PCF network element sends a message 2 to the CHF network element, so that the CHF network element receives the message 2 from the PCF network element.
其中,该消息2携带第一终端所属计费组的组标识,用于请求建立与第一终端所属计费组的组标识对应的计费会话。The message 2 carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
S806、CHF网元根据消息2,将第一终端所属计费组的组标识与对应的计费账户状态相关联。S806. The CHF network element associates, according to the message 2, the group identifier of the charging group to which the first terminal belongs, and the corresponding charging account status.
S807、CHF网元向PCF网元发送应答消息1,以使得PCF网元接收来自CHF网元的应答消息1。S807. The CHF network element sends a response message 1 to the PCF network element, so that the PCF network element receives the response message 1 from the CHF network element.
其中,该应答消息1用于指示与第一终端所属计费组的组标识对应的计费会话建立完成。The response message 1 is used to indicate that the charging session establishment corresponding to the group identifier of the charging group to which the first terminal belongs is completed.
需要说明的是,本申请实施例中,若PCF网元确定已经与CHF网元建立第一终端所属计费组的组计费会话,则可以不用执行上述步骤S804-S807。也就是说,对于一个计费组,仅需在PCF网元与CHF网元之间建立一次与第一终端所属计费组对应的计费会话即可,无需像现有技术一样,需要在PCF网元与CHF网元之间建立与计费组内的每个终端分别对应的计费会话,从而大大减少了PCF网元和CHF网元之间的消息交互次数,进而对PCF网元和CHF网元的性能要求大大降低。It should be noted that, in the embodiment of the present application, if the PCF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the CHF network element, the foregoing steps S804-S807 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group to which the first terminal belongs between the PCF network element and the CHF network element, and it is not necessary to use the PCF as in the prior art. A charging session corresponding to each terminal in the charging group is established between the network element and the CHF network element, thereby greatly reducing the number of message interactions between the PCF network element and the CHF network element, and further to the PCF network element and the CHF. The performance requirements of network elements are greatly reduced.
可选的,本申请实施例中,在CHF网元将第一终端所属计费组的组标识与对应的计费账户状态相关联之后,若与第一终端所属计费组的组标识对应的计费账户状态发生变更,比如,第一终端所属计费组无可用组计费流量分片等,则CHF网元需要及时通知PCF网元,以使得PCF网元及时更新第一终端所属计费组内的终端的计费策略,相关描述可参考图7所示的实施例中的步骤S718-S726,在此不再赘述。Optionally, in the embodiment of the present application, after the CHF network element associates the group identifier of the charging group to which the first terminal belongs and the corresponding charging account status, if the group identifier corresponding to the charging group to which the first terminal belongs is The status of the accounting account is changed. For example, if the charging group of the first terminal has no available group accounting traffic fragment, the CHF network element needs to notify the PCF network element in time, so that the PCF network element timely updates the charging of the first terminal. For the description of the charging policy of the terminal in the group, refer to steps S718-S726 in the embodiment shown in FIG. 7, and details are not described herein again.
S808、PCF网元将第一终端和第一终端所属计费组进行关联。S808: The PCF network element associates the first terminal with the charging group to which the first terminal belongs.
示例性的,PCF网元将第一终端和第一终端所属计费组进行关联的方式可参考上述S608中PCRF网元将第一终端和第一终端所属计费组进行关联的方式类似,相关描述可参考步骤S608,在此不再赘述。For example, the manner in which the PCF network element associates the first terminal with the charging group to which the first terminal belongs may be similar to the manner in which the PCRF network element in the S608 associates the first terminal with the charging group to which the first terminal belongs. For description, refer to step S608, and details are not described herein again.
需要说明的是,本申请实施例中,若第一终端为业务级组计费终端,则对于该第一终端对应的一个或多个业务级计费组中的每个业务级计费组,均可以按照上述步骤S804-S808的方式执行,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first terminal is a service level group charging terminal, for each service level charging group in one or more service level charging groups corresponding to the first terminal, It can be performed in the manner of the above steps S804-S808, which is not specifically limited in this embodiment of the present application.
需要说明的是,本申请的步骤S804-S808应用于PCF网元确定第一终端需要根据组计费账户状态进行计费策略更新的场景下,若PCF网元确定第一终端不需要根据组计费账户状态进行计费策略更新,可以不用执行上述步骤S804-S808,在此统一说明,以下不再赘述。It should be noted that the steps S804-S808 of the present application are applied to the scenario in which the PCF network element determines that the first terminal needs to perform the charging policy update according to the group charging account status, and if the PCF network element determines that the first terminal does not need to be based on the group. The fee policy status is updated by the charging policy, and the above steps S804-S808 may not be performed, and the description is not described herein.
可选的,本申请实施例中,在PCF网元确定第一终端所属计费组有可用组计费流量分片的情况下,本申请实施例提供的组计费策略下发方法还包括如下步骤:Optionally, in the embodiment of the present application, when the PCF network element determines that the charging group of the first terminal belongs to the available group charging traffic fragment, the method for delivering the group charging policy provided by the embodiment of the present application further includes the following step:
S809、PCF网元向SMF网元发送应答消息2,以使得SMF网元接收来自PCF网元的应答消息2。S809. The PCF network element sends a response message 2 to the SMF network element, so that the SMF network element receives the response message 2 from the PCF network element.
其中,该应答消息2携带第一终端对应的计费策略,相关描述可参考图6所示的实施例的步骤S609,在此不再赘述。The response message 2 carries the charging policy corresponding to the first terminal. For related description, refer to step S609 of the embodiment shown in FIG. 6 , and details are not described herein again.
需要说明的是,本申请实施例中,若第一终端为业务级组计费终端,则对于该第一终端对应的一个或多个业务级计费组中的每个业务级计费组,均可以按照上述步骤S809的方式执行;或者,该应答消息2中可以携带第一终端对应的多个业务级计费组的计费策略,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first terminal is a service level group charging terminal, for each service level charging group in one or more service level charging groups corresponding to the first terminal, The method can be performed in the manner of the foregoing step S809; or the response message 2 can carry the charging policy of the multiple service-level charging groups corresponding to the first terminal, which is not specifically limited in this embodiment.
S810、SMF网元将第一终端与第一终端所属计费组进行关联。S810. The SMF network element associates the first terminal with a charging group to which the first terminal belongs.
示例性的,SMF网元将第一终端与第一终端所属计费组进行关联的方式与上述步骤S610中PCEF网元将第一终端与第一终端所属计费组进行关联的方式类似,相关描述可参考步骤S610,在此不再赘述。Illustratively, the manner in which the SMF network element associates the first terminal with the charging group to which the first terminal belongs is similar to the manner in which the PCEF network element associates the first terminal with the charging group to which the first terminal belongs in the foregoing step S610. For description, refer to step S610, and details are not described herein again.
S811、SMF网元确定未与CHF网元建立第一终端所属计费组的组计费会话。S811. The SMF network element determines that the group charging session of the charging group to which the first terminal belongs is not established with the CHF network element.
S812、SMF网元向CHF网元发送消息3,以使得CHF网元接收来自SMF网元的消息3。S812: The SMF network element sends a message 3 to the CHF network element, so that the CHF network element receives the message 3 from the SMF network element.
其中,该消息3携带第一终端所属计费组的组标识,用于请求建立与第一终端所属计费组的组标识对应的计费会话。The message 3 carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier of the charging group to which the first terminal belongs.
S813、CHF网元根据消息3,为第一终端所属计费组分配对应的第一组计费流量分片。S813. The CHF network element allocates a corresponding first group of charging traffic fragments to the charging group to which the first terminal belongs according to the message 3.
S814、CHF网元通过向SMF网元发送应答消息3,以使得SMF网元接收来自CHF网元的应答消息3。S814. The CHF network element sends a response message 3 to the SMF network element, so that the SMF network element receives the response message 3 from the CHF network element.
其中,该应答消息3携带第一终端所属计费组的组标识以及第一终端所属计费组对应的第一组计费流量分片。The response message 3 carries the group identifier of the charging group to which the first terminal belongs and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
S815、SMF网元根据应答消息3,将第一终端所属计费组与对应的第一组计费流量分片进行关联。S815. The SMF network element associates the charging group to which the first terminal belongs with the corresponding first group of charging traffic fragments according to the response message 3.
示例性的,SMF网元将第一终端所属计费组与对应的第一组计费流量分片进行关联的方式与上述步骤S615中PCRF网元将第一终端所属计费组与对应的第一组计费流量分片进行关联的方式类似,相关描述可参考步骤S615,在此不再赘述。Illustratively, the SMF network element associates the charging group to which the first terminal belongs and the corresponding first group of charging traffic fragments, and the PCRF network element in the foregoing step S615 associates the charging group of the first terminal with the corresponding A method for associating a set of charging traffic fragments is similar. For related description, refer to step S615, and details are not described herein again.
可选的,本申请实施例中,在SMF网元将第一终端所属计费组与对应的第一组计费流量分片进行关联之后,SMF网元可以根据第一终端所属计费组的组标识以及第一终端所属计费组对应的第一组计费流量分片,对第一终端所属计费组内的终端的数据流量进行组计费处理,具体可参考图7所示的计费方法,在此不再赘述。Optionally, in the embodiment of the present application, after the SMF network element associates the charging group of the first terminal with the corresponding first group of charging traffic fragments, the SMF network element may be configured according to the charging group to which the first terminal belongs. The group identifier and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs, perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, and specifically refer to the meter shown in FIG. The fee method will not be described here.
需要说明的是,本申请实施例中,若SMF网元确定已经与CHF网元建立第一终端所属计费组的组计费会话,则可以不用执行上述步骤S811-S815。也就是说,对于一个计费组,仅需在SMF网元与CHF网元之间建立一次与第一终端所属计费组对应的计费会话即可,无需像现有技术一样,需要在SMF网元与CHF网元之间建立与计费组内的每个终端分别对应的计费会话,从而大大减少了SMF网元和CHF网元之间的消息交互次数,进而对SMF网元和CHF网元的性能要求大大降低。It should be noted that, in the embodiment of the present application, if the SMF network element determines that the group charging session of the charging group to which the first terminal belongs is established with the CHF network element, the foregoing steps S811-S815 may not be performed. That is to say, for a charging group, it is only necessary to establish a charging session corresponding to the charging group to which the first terminal belongs between the SMF network element and the CHF network element, without the need to be in the SMF as in the prior art. A charging session corresponding to each terminal in the charging group is established between the network element and the CHF network element, thereby greatly reducing the number of message interactions between the SMF network element and the CHF network element, and further to the SMF network element and the CHF. The performance requirements of network elements are greatly reduced.
S816、SMF网元向为第一终端服务的UPF网元发送消息4,以使得UPF网元接收来自SMF网元的消息4。S816. The SMF network element sends a message 4 to the UPF network element serving the first terminal, so that the UPF network element receives the message 4 from the SMF network element.
其中,该消息4携带第一终端对应的计费策略,相关描述可参考图6所示的实施例的步骤S609,在此不再赘述。The message 4 carries the charging policy corresponding to the first terminal. For related description, refer to step S609 of the embodiment shown in FIG. 6 , and details are not described herein again.
可选的,本申请实施例中的消息4中还可以携带SMF网元为第一终端所属计费组分配的第五组计费流量分片以及流量上报阈值等信息,本申请实施例对此不作具体限定。Optionally, the message 4 in the embodiment of the present application may further carry information such as a fifth group of the traffic flow segment and the traffic report threshold that are allocated by the SMF network element to the charging group to which the first terminal belongs. No specific limitation.
S817、UPF网元将第一终端与第一终端所属计费组进行关联。S817: The UPF network element associates the first terminal with the charging group to which the first terminal belongs.
示例性的,UPF网元将第一终端与第一终端所属计费组进行关联的方式与上述步骤S610中PCEF网元将第一终端与第一终端所属计费组进行关联的方式类似,区别比如在于第一终端所属计费组在UPF网元上通常由组流量统计节点进行管理,相关描述可参考步骤S610,在此不再赘述。Illustratively, the manner in which the UPF network element associates the first terminal with the charging group to which the first terminal belongs is similar to the manner in which the PCEF network element associates the first terminal with the charging group to which the first terminal belongs in the foregoing step S610. For example, the charging group to which the first terminal belongs is generally managed by the group traffic statistics node on the UPF network element. For related description, refer to step S610, and details are not described herein.
可选的,若本申请实施例中步骤S816中的消息4中携带SMF网元为第一终端所属计费组分配的第五组计费流量分片以及流量上报阈值等信息,则本申请实施例提供的会话建立方法还可以包括如下步骤S818:Optionally, if the message 4 in the step S816 in the embodiment of the present application carries the information that the SMF network element is allocated to the charging group of the first terminal, and the traffic reporting threshold, the application is implemented. The session establishment method provided by the example may further include the following step S818:
S818、UPF网元根据消息4,将第一终端所属计费组与对应的第五组计费流量分片进行关联。S818: The UPF network element associates the charging group to which the first terminal belongs with the corresponding fifth group of charging traffic fragments according to the message 4.
示例性的,UPF网元将第一终端所属计费组与对应的第五组计费流量分片进行关联的方式与上述步骤S615中PCRF网元将第一终端所属计费组与对应的第一组计费流量分片进行关联的方式类似,相关描述可参考步骤S615,在此不再赘述。Illustratively, the manner in which the UPF network element associates the charging group to which the first terminal belongs and the corresponding fifth group of charging traffic fragments is the same as the charging unit in the first step of the PCRF network element in step S615. A method for associating a set of charging traffic fragments is similar. For related description, refer to step S615, and details are not described herein again.
可选的,本申请实施例中,在UPF网元将第一终端所属计费组与对应的第五组计费流量分片进行关联之后,UPF网元可以根据第一终端所属计费组的组标识以及第一终端所属计费组对应的第一组计费流量分片,对第一终端所属计费组内的终端的数据流量进行组计费处理,具体可参考图7所示的计费方法,在此不再赘述。Optionally, in the embodiment of the present application, after the UPF network element associates the charging group of the first terminal with the corresponding fifth group of the charging traffic fragment, the UPF network element may be configured according to the charging group to which the first terminal belongs. The group identifier and the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs, perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs, and specifically refer to the meter shown in FIG. The fee method will not be described here.
S819、UPF网元向SMF网元发送应答消息4,以使得SMF网元接收来自UPF网元的应答消息4。S819. The UPF network element sends a response message 4 to the SMF network element, so that the SMF network element receives the response message 4 from the UPF network element.
其中,该应答消息4用于指示UPF网元已经获知第一终端对应的计费策略。The response message 4 is used to indicate that the UPF network element has learned the charging policy corresponding to the first terminal.
需要说明的是,本申请实施例中,若第一终端为业务级组计费终端,则对于该第一终端对应的一个或多个业务级计费组中的每个业务级计费组,均可以按照上述步骤S810-S819的方式执行,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first terminal is a service level group charging terminal, for each service level charging group in one or more service level charging groups corresponding to the first terminal, It can be performed in the manner of the above steps S810-S819, which is not specifically limited in this embodiment of the present application.
在会话建立完成之后,可选的,本申请实施例提供的会话建立方法还可以包括如下步骤:After the session is established, the session establishment method provided by the embodiment of the present application may further include the following steps:
S820、SMF网元向第一终端发送会话建立应答,以使得第一终端接收来自SMF网元的会话建立应答。S820. The SMF network element sends a session establishment response to the first terminal, so that the first terminal receives the session establishment response from the SMF network element.
其中,该会话建立应答用于指示与第一终端对应的计费会话建立完成。The session establishment response is used to indicate that the charging session establishment corresponding to the first terminal is completed.
基于本申请实施例提供的会话建立方法,可以实现与第一终端对应的计费策略的配置过程。Based on the session establishment method provided in this embodiment, the configuration process of the charging policy corresponding to the first terminal may be implemented.
其中,上述步骤S801至步骤S820中的SMF网元、PCF网元或CHF网元的动作可以由图4所示的通信设备400中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不作任何限制。The actions of the SMF network element, the PCF network element, or the CHF network element in the foregoing steps S801 to S820 may be performed by the processor 401 in the communication device 400 shown in FIG. 4 calling the application code stored in the memory 403. The embodiment of the present application does not impose any limitation on this.
可选的,基于图8所示的会话建立方法,也可以执行不同于图7所示的实施例的计费方法,在此统一说明,以下不再赘述。Optionally, based on the session establishment method shown in FIG. 8, a charging method different from the embodiment shown in FIG. 7 may be performed, which is uniformly described herein, and details are not described herein again.
可选的,本申请实施例中,与第一终端对应的计费策略也可以预先配置在SMF网元上,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, the charging policy corresponding to the first terminal may be pre-configured on the SMF network element, which is not specifically limited in this embodiment of the present application.
可选的,图7或图8所示的实施例均以一个计费组内的终端分布在一个SMF网元上为例进行说明。当然,一个计费组内的终端也可能分布在不同的SMF网元上,此时,每个SMF网元与其它网元的交互流程均可参考上述图7或图8所示的实施例中的SMF网元与其它网元的交互流程,在此不再赘述。Optionally, the embodiment shown in FIG. 7 or FIG. 8 is described by taking an example in which a terminal in a charging group is distributed on one SMF network element. Certainly, the terminals in a charging group may also be distributed on different SMF network elements. In this case, the interaction process of each SMF network element with other network elements may refer to the embodiment shown in FIG. 7 or FIG. 8 above. The interaction process between the SMF network element and other network elements will not be described here.
以图1所示的计费系统应用于如图2所示的5G之前的网络为例,如图9所示,为本申请实施例提供的一种计费方法,包括如下步骤:The charging system shown in FIG. 1 is applied to the network before 5G as shown in FIG. 2 . As shown in FIG. 9 , the charging method provided by the embodiment of the present application includes the following steps:
S901-S903,同步骤S501-S503,相关描述可参考图5所示的实施例,在此不再赘述。S901-S903, the same as the steps S501-S503, the related description can refer to the embodiment shown in FIG. 5, and details are not described herein again.
S904、PCEF网元确定第一数据流量已经达到第一终端所属计费组对应的预设流量。S904: The PCEF network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs.
其中,本申请实施例的预设流量为离线计费时设置的生成一次离线话单时所需的流量。The preset traffic in the embodiment of the present application is the traffic required to generate an offline CDR when the offline charging is set.
示例性的,若预设流量为10M,则第一数据流量达到10M即可生成一次离线话单。Exemplarily, if the preset traffic is 10M, an offline bill can be generated when the first data traffic reaches 10M.
S905、PCEF网元根据第一数据流量,生成离线话单。S905: The PCEF network element generates an offline bill according to the first data traffic.
需要说明的是,本申请实施例中,若第一数据流量未达到第一终端所属计费组对应的预设流量,则不需要生成离线话单,直到PCEF网元再接收到来自第一终端所属计费组内的终端的数据包,且第一数据流量达到第一终端所属计费组对应的预设流量才生成离线话单,本申请实施例对此不作具体限定。It should be noted that, in the embodiment of the present application, if the first data traffic does not reach the preset traffic corresponding to the charging group to which the first terminal belongs, the offline CDR is not generated until the PCEF network element receives the first terminal. The data packet of the terminal in the charging group, and the first data traffic reaches the preset traffic corresponding to the charging group to which the first terminal belongs, and the offline CDR is generated, which is not specifically limited in this embodiment.
可选的,本申请实施例中,PCEF网元也可以在接收来自第一终端的数据包之后,根据该数据包,确定第一终端所属计费组的组标识,进而根据该第一终端所属计费组的组标识确定该第一终端所属计费组当前在该PCEF网元上的计费时长,在计费时长达到第一终端所属计费组对应的预设时长(比如半小时)之后,PCEF可以根据该计费时长,生成离线话单,本申请实施例对此不作具体限定。Optionally, in the embodiment of the present application, after receiving the data packet from the first terminal, the PCEF network element may further determine, according to the data packet, a group identifier of the charging group to which the first terminal belongs, and further, according to the first terminal The group ID of the billing group determines the billing duration of the billing group that the first terminal belongs to on the PCEF network element, and the billing duration reaches the preset duration (for example, half an hour) corresponding to the billing group to which the first terminal belongs. The PCEF can generate an offline CDR according to the charging duration, which is not specifically limited in this embodiment of the present application.
基于本申请实施例提供的计费方法进行离线计费,可以大大降低对相关网元,如PCEF网元的性能要求,进而可以降低设备厂商的成本,相关技术效果分析可参考计费系统部分,在此不再赘述。The offline charging according to the charging method provided by the embodiment of the present application can greatly reduce the performance requirements of the related network element, such as the PCEF network element, and can further reduce the cost of the equipment manufacturer. The related technical effect analysis can refer to the charging system part. I will not repeat them here.
其中,上述步骤S901至步骤S905中的PCEF网元的动作可以由图4所示的通信设备400中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不作任何限制。The action of the PCEF network element in the foregoing step S901 to the step S905 can be performed by the processor 401 in the communication device 400 shown in FIG. 4 to call the application code stored in the memory 403, and the embodiment of the present application does not make any limit.
可选的,本申请实施例中,若计费方式为离线计费,则对应的计费策略的配置过程可以包括图6所示的实施例中的步骤S601-S603、S609-S610以及步骤S616,相关描述可参考图6所示的实施例,在此不再赘述。Optionally, in the embodiment of the present application, if the charging mode is offline charging, the configuration process of the corresponding charging policy may include steps S601-S603, S609-S610, and step S616 in the embodiment shown in FIG. For related description, refer to the embodiment shown in FIG. 6, and details are not described herein again.
综上,因此本申请实施例公开了一种计费方法,包括:策略执行网元获取第一数据流量,该第一数据流量为第一终端所属计费组在策略执行网元上的当前数据流量;策略执行网元确定第一数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的上报流量;策略执行网元向计费功能网元发送第一终端所属计费组的组标识以及第一数据流量,其中,该组标识和该第一数据流量用于请求第一终端所属计费组对应的第二组计费流量分片。In summary, the embodiment of the present application discloses a charging method, including: the policy execution network element acquires the first data traffic, where the first data traffic is the current data of the charging group to which the first terminal belongs on the policy execution network element. The policy execution network element determines that the first data traffic has reached the reported traffic of the first group of the traffic flow segments corresponding to the charging group to which the first terminal belongs; the policy execution network element sends the first terminal to the accounting function network element. The group identifier of the fee group and the first data traffic, wherein the group identifier and the first data traffic are used to request a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
作为一种实现,本申请实施例公开的计费方法还可以包括:策略执行网元接收来自计费功能网元的第一终端所属计费组的组标识以及第一终端所属计费组对应的第二组计费流量分片;其中,该组标识以及该第二组计费流量分片用于对第一终端所属计费组内的终端的数据流量进行组计费处理。As an implementation, the charging method disclosed in the embodiment of the present application may further include: the policy execution network element receives the group identifier of the charging group to which the first terminal belongs from the charging function network element, and the corresponding charging group of the first terminal. The second group of charging traffic fragments; wherein the group identifier and the second group of charging traffic fragments are used to perform group charging processing on data traffic of terminals in the charging group to which the first terminal belongs.
作为一种实现,第一终端所属计费组包括会话级计费组或业务级计费组。As an implementation, the charging group to which the first terminal belongs includes a session-level charging group or a service-level charging group.
作为一种实现,策略执行网元为策略和计费执行功能网元;策略执行网元获取第一数据流量,包括:策略和计费执行功能网元接收来自第一终端的数据包;策略和计费执行功能网元根据该数据包,确定第一终端所属计费组的组标识;策略和计费执行功能网元根据该组标识和该数据包对应的数据流量,确定第一数据流量。As an implementation, the policy enforcement network element is a policy and charging execution function network element; the policy execution network element acquires the first data traffic, including: the policy and charging execution function network element receives the data packet from the first terminal; The accounting execution function network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs; the policy and charging execution function network element determines the first data traffic according to the group identifier and the data traffic corresponding to the data packet.
作为一种实现,策略和计费执行功能网元根据该数据包,确定第一终端所属计费组的组 标识,包括:策略和计费执行功能网元根据该数据包,确定所述第一终端的标识;策略和计费执行功能网元根据第一终端的标识,确定第一终端所属计费组的组标识。As an implementation, the policy and charging execution function network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs, where the policy and charging execution function network element determines the first according to the data packet. The identifier of the terminal; the policy and the charging execution function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal.
作为一种实现,策略和计费执行功能网元根据第一终端的数据包,确定第一终端所属计费组的组标识,包括:策略和计费执行功能网元根据该数据包,确定第一终端的标识;策略和计费执行功能网元根据第一终端的标识和该数据包对应的业务确定第一终端所属计费组的组标识。As an implementation, the policy and charging execution function network element determines, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including: the policy and charging execution function network element determines the first according to the data packet. The identifier of a terminal; the policy and the charging execution function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal and the service corresponding to the data packet.
作为一种实现,策略执行网元为会话管理网元;相应的,策略执行网元获取第一数据流量,包括:会话管理网元接收来自用户面功能网元的第二数据流量和组标识,该第二数据流量为第一终端所属计费组在用户面功能网元上的当前数据流量;会话管理网元根据该第二数据流量和该组标识,确定第一数据流量。As an implementation, the policy execution network element is a session management network element; correspondingly, the policy execution network element acquires the first data traffic, including: the session management network element receives the second data traffic and the group identifier from the user plane function network element, The second data traffic is the current data traffic of the charging group of the first terminal on the user plane function network element; the session management network element determines the first data traffic according to the second data traffic and the group identifier.
作为一种实现,策略执行网元为会话管理网元;相应的,本申请实施例公开的计费方法还可以包括:在第一数据流量未达到第一组计费流量分片的上报流量的情况下,会话管理网元向用户面功能网元发送该组标识以及第一终端所属计费组对应的第三组计费流量分片,该组标识以及该第三组计费流量分片用于对第一终端所属计费组内的终端的数据流量进行组计费处理,其中,第三组计费流量分片小于第一组计费流量分片。As an implementation, the policy enforcement network element is a session management network element. Correspondingly, the charging method disclosed in the embodiment of the present application may further include: reporting that the first data traffic does not reach the first group of the charging traffic fragment. In this case, the session management network element sends the group identifier and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs to the user plane function network element, and the group identifier and the third group of charging traffic fragments are used. The group charging process is performed on the data traffic of the terminal in the charging group to which the first terminal belongs. The third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
作为一种实现,本申请实施例公开的计费方法还可以包括:策略执行网元接收来自计费功能网元的第一指示信息,该第一指示信息用于指示第一终端所属计费组无可用组计费流量分片。As an implementation, the charging method disclosed in the embodiment of the present application may further include: the policy execution network element receives the first indication information from the charging function network element, where the first indication information is used to indicate the charging group to which the first terminal belongs. No available group accounting traffic fragmentation.
作为一种实现,本申请实施例公开的计费方法还可以包括:对于第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:策略执行网元接收来自策略控制网元的第一消息,该第一消息用于指示删除第二终端和第一终端所属计费组的关联关系;策略执行网元根据第一消息,删除第二终端和第一终端所属计费组的关联关系。As an implementation, the charging method disclosed in the embodiment of the present application may further include: processing, for any terminal in the charging group to which the first terminal belongs, according to the following manner for the second terminal: the policy execution network element receiving a first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the policy execution network element deletes the second terminal and the first terminal according to the first message. The association relationship of the accounting group to which it belongs.
作为一种实现,策略执行网元为会话管理网元;相应的,本申请实施例公开的计费方法还可以包括:对于第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:会话管理网元接收来自策略控制网元的第一消息,该第一消息用于指示删除第二终端和第一终端所属计费组的关联关系;会话管理网元根据第一消息,删除第二终端和第一终端所属计费组的关联关系;会话管理网元向用户面功能网元发送第二消息,该第二消息用于指示删除第二终端和第一终端所属计费组的关联关系。As an implementation, the policy enforcement network element is a session management network element; correspondingly, the charging method disclosed in the embodiment of the present application may further include: for any terminal in the charging group to which the first terminal belongs, according to the following The second terminal is configured to: the session management network element receives the first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted; the session management network element And deleting, according to the first message, the association relationship between the second terminal and the charging group to which the first terminal belongs; the session management network element sends a second message to the user plane function network element, where the second message is used to indicate to delete the second terminal and the first Relationship between the accounting groups to which the terminal belongs.
作为一种实现,策略执行网元上预先配置有第一终端和第一终端所属计费组的关联关系。As an implementation, the policy execution network element is pre-configured with an association relationship between the first terminal and the charging group to which the first terminal belongs.
作为一种实现,本申请实施例公开的计费方法还可以包括:策略执行网元接收来自策略控制网元的第一终端所属计费组的组标识和第一终端的标识;策略执行网元根据该组标识和第一终端的标识,将第一终端和第一终端所属计费组进行关联。As an implementation, the charging method disclosed in the embodiment of the present application may further include: the policy execution network element receives the group identifier of the charging group to which the first terminal belongs from the policy control network element, and the identifier of the first terminal; And associating the first terminal with the charging group to which the first terminal belongs according to the group identifier and the identifier of the first terminal.
作为一种实现,本申请实施例公开的计费方法还可以包括:策略执行网元确定未与计费功能网元建立组计费会话;策略执行网元向计费功能网元发送第三消息,该第三消息携带第一终端所属计费组的组标识,用于请求建立与该组标识对应的计费会话;策略执行网元接收来自计费功能网元的第一终端所属计费组对应的第四组计费流量分片。As an implementation, the charging method disclosed in the embodiment of the present application may further include: the policy execution network element determines that the group charging session is not established with the charging function network element; and the policy execution network element sends the third message to the charging function network element. The third message carries the group identifier of the charging group to which the first terminal belongs, and is used to request to establish a charging session corresponding to the group identifier; the policy execution network element receives the charging group of the first terminal from the charging function network element. Corresponding fourth group of charging traffic fragments.
上述计费方法中,例如,策略执行网元的操作可参考图5或图6中PCEF网元的操作,或者图7或图8中SMF网元的操作及上述相关文字说明,在此不再赘述。For the foregoing charging method, for example, the operation of the policy execution network element may refer to the operation of the PCEF network element in FIG. 5 or FIG. 6, or the operation of the SMF network element in FIG. 7 or FIG. 8 and the related text description, and no longer Narration.
此外,本申请实施例还公开了一种计费方法,包括:策略和计费执行功能网元获取第一数据流量,该第一数据流量为第一终端所属计费组在策略和计费执行功能网元上的当前数据 流量;策略和计费执行功能网元确定第一数据流量已经达到第一终端所属计费组对应的预设流量;策略和计费执行功能网元根据第一数据流量生成离线话单。In addition, the embodiment of the present application further discloses a charging method, including: the policy and charging execution function network element acquires the first data traffic, where the first data traffic is performed by the charging group of the first terminal in policy and charging. The current data traffic on the function network element; the policy and charging execution function network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs; the policy and charging execution function network element is based on the first data traffic. Generate an offline bill.
上述计费方法中,例如,策略和计费执行功能网元的操作可参考图9中PCEF网元的操作及上述相关文字说明,在此不再赘述。For the operation of the foregoing charging method, for example, the operation of the network element of the policy and the charging execution function may be referred to the operation of the PCEF network element in FIG. 9 and the related text description, and details are not described herein again.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,上述策略执行网元或者策略和计费执行功能网元为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solution provided by the embodiment of the present application is mainly introduced from the perspective of interaction between the network elements. It can be understood that the foregoing policy execution network element or the policy and charging execution function network element includes corresponding hardware structures and/or software modules for executing the respective functions in order to implement the above functions. Those skilled in the art will readily appreciate that the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
本申请实施例可以根据上述方法示例对策略执行网元或者策略和计费执行功能网元进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may perform a function module division on a policy execution network element or a policy and charging execution function network element according to the foregoing method example. For example, each function module may be divided according to each function, or two or more functions may be used. The functions are integrated in one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
比如,以采用集成的方式划分各个功能模块的情况下,图10示出了一种策略执行网元100的结构示意图。该策略执行网元100包括:处理模块1001和收发模块1002。处理模块1001,用于获取第一数据流量,该第一数据流量为第一终端所属计费组在策略执行网元上的当前数据流量。处理模块1001,还用于确定第一数据流量已经达到第一终端所属计费组对应的第一组计费流量分片的上报流量。收发模块1002,用于向计费功能网元发送第一终端所属计费组的组标识以及第一数据流量,其中,该组标识和该第一数据流量用于请求第一终端所属计费组对应的第二组计费流量分片。For example, in the case of dividing each functional module in an integrated manner, FIG. 10 shows a schematic structural diagram of a policy execution network element 100. The policy enforcement network element 100 includes a processing module 1001 and a transceiver module 1002. The processing module 1001 is configured to obtain the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the policy execution network element. The processing module 1001 is further configured to determine that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. The transceiver module 1002 is configured to send, to the charging function network element, a group identifier of the charging group to which the first terminal belongs, and the first data traffic, where the group identifier and the first data traffic are used to request the charging group to which the first terminal belongs. Corresponding second group of charging traffic fragments.
可选的,收发模块1002,还用于接收来自计费功能网元的组标识以及第一终端所属计费组对应的第二组计费流量分片;其中,该组标识以及该第二组计费流量分片用于对第一终端所属计费组内的终端的数据流量进行组计费处理。Optionally, the transceiver module 1002 is further configured to receive a group identifier from the charging function network element and a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs; wherein the group identifier and the second group The charging traffic fragment is used to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs.
一种可能的实现方式中,策略执行网元为策略和计费执行功能网元;相应的,处理模块1001用于获取第一数据流量,包括:用于接收来自第一终端的数据包;根据数据包,确定第一终端所属计费组的组标识;根据组标识和数据包对应的数据流量,确定第一数据流量。In a possible implementation, the policy enforcement network element is a policy and charging execution function network element; correspondingly, the processing module 1001 is configured to obtain the first data traffic, including: receiving the data packet from the first terminal; The data packet determines the group identifier of the charging group to which the first terminal belongs; determines the first data traffic according to the group identifier and the data traffic corresponding to the data packet.
可选的,处理模块1001用于根据数据包,确定第一终端所属计费组的组标识,包括:用于根据数据包,确定第一终端的标识;根据第一终端的标识,确定第一终端所属计费组的组标识。Optionally, the processing module 1001 is configured to determine, according to the data packet, a group identifier of the charging group to which the first terminal belongs, where the method includes: determining, according to the data packet, an identifier of the first terminal; determining, according to the identifier of the first terminal, the first Group ID of the accounting group to which the terminal belongs.
或者,可选的,处理模块1001用于根据第一终端的数据包,确定第一终端所属计费组的组标识,包括:用于根据数据包,确定第一终端的标识;根据第一终端的标识和数据包对应的业务确定第一终端所属计费组的组标识。Alternatively, the processing module 1001 is configured to determine, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including: determining, according to the data packet, the identifier of the first terminal; The identifier and the service corresponding to the data packet determine the group identifier of the charging group to which the first terminal belongs.
另一种可能的实现方式中,策略执行网元为会话管理网元;处理模块1001用于获取第一数据流量,包括:用于接收来自用户面功能网元的第二数据流量和组标识,第二数据流量为第一终端所属计费组在用户面功能网元上的当前数据流量;根据第二数据流量和组标识,确定第一数据流量。In another possible implementation manner, the policy execution network element is a session management network element, and the processing module 1001 is configured to: acquire, by the processing module 1001, the second data traffic and the group identifier from the user plane function network element, where The second data traffic is the current data traffic of the charging group of the first terminal to the user plane function network element; and the first data traffic is determined according to the second data traffic and the group identifier.
可选的,策略执行网元为会话管理网元;相应的,收发模块1002,还用于在第一数据流 量未达到第一组计费流量分片的上报流量的情况下,向用户面功能网元发送组标识以及第一终端所属计费组对应的第三组计费流量分片,组标识以及第三组计费流量分片用于对第一终端所属计费组内的终端的数据流量进行组计费处理,其中,第三组计费流量分片小于第一组计费流量分片。Optionally, the policy execution network element is a session management network element; and correspondingly, the transceiver module 1002 is further configured to: when the first data traffic does not reach the reported traffic of the first group of the traffic flow fragments, The network element sending group identifier and the third group of charging traffic fragments corresponding to the charging group to which the first terminal belongs, the group identifier and the third group of charging traffic fragments are used for data of the terminal in the charging group to which the first terminal belongs The traffic performs group accounting processing, where the third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
可选的,收发模块1002,还用于接收来自计费功能网元的第一指示信息,第一指示信息用于指示第一终端所属计费组无可用组计费流量分片。Optionally, the transceiver module 1002 is further configured to receive the first indication information from the charging function network element, where the first indication information is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragment.
可选的,收发模块1002,还用于接收来自策略控制网元的第一消息,第一消息用于指示删除第二终端和第一终端所属计费组的关联关系,其中,第二终端为第一终端所属计费组内的任一终端;处理模块1001,还用于根据第一消息,删除第二终端和第一终端所属计费组的关联关系。Optionally, the transceiver module 1002 is further configured to receive a first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted, where the second terminal is The processing module 1001 is further configured to delete the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message.
可选的,策略执行网元为会话管理网元;相应的,收发模块1002,还用于接收来自策略控制网元的第一消息,第一消息用于指示删除第二终端和第一终端所属计费组的关联关系,其中,第二终端为第一终端所属计费组内的任一终端;处理模块1001,用于根据第一消息,删除第二终端和第一终端所属计费组的关联关系;收发模块1002,还用于向用户面功能网元发送第二消息,第二消息用于指示删除第二终端和第一终端所属计费组的关联关系。Optionally, the policy enforcement network element is a session management network element; correspondingly, the transceiver module 1002 is further configured to receive a first message from the policy control network element, where the first message is used to indicate that the second terminal and the first terminal belong to the deletion The association relationship of the charging group, wherein the second terminal is any terminal in the charging group to which the first terminal belongs; the processing module 1001 is configured to delete the second terminal and the charging group to which the first terminal belongs according to the first message. The association module 1002 is further configured to send a second message to the user plane function network element, where the second message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
一种可能的实现方式中,策略执行网元上预先配置有第一终端和第一终端所属计费组的关联关系。In a possible implementation manner, the policy execution network element is pre-configured with an association relationship between the first terminal and the charging group to which the first terminal belongs.
或者,一种可能的实现方式中,收发模块1002,还用于接收来自策略控制网元的组标识和第一终端的标识;处理模块1001,还用于根据组标识和第一终端的标识,将第一终端和第一终端所属计费组进行关联。Or, in a possible implementation manner, the transceiver module 1002 is further configured to receive the group identifier from the policy control network element and the identifier of the first terminal, where the processing module 1001 is further configured to use, according to the group identifier and the identifier of the first terminal, The first terminal is associated with the charging group to which the first terminal belongs.
可选的,处理模块1001,还用于确定未与计费功能网元建立组计费会话。收发模块1002,还用于向计费功能网元发送第三消息,第三消息携带组标识,用于请求建立与组标识对应的计费会话。收发模块1002,还用于接收来自计费功能网元的第一终端所属计费组对应的第四组计费流量分片。Optionally, the processing module 1001 is further configured to determine that a group charging session is not established with the charging function network element. The transceiver module 1002 is further configured to send a third message to the charging function network element, where the third message carries a group identifier, and is used to request to establish a charging session corresponding to the group identifier. The transceiver module 1002 is further configured to receive a fourth group of charging traffic fragments corresponding to the charging group to which the first terminal belongs from the charging function network element.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
在本实施例中,该策略执行网元100以采用集成的方式划分各个功能模块的形式来呈现。这里的“模块”可以指特定ASIC,电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。在一个简单的实施例中,本领域的技术人员可以想到该策略执行网元100可以采用图4所示的形式。In this embodiment, the policy enforcement network element 100 is presented in a form that divides each functional module in an integrated manner. A "module" herein may refer to a particular ASIC, circuitry, processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other devices that provide the functionality described above. In a simple embodiment, those skilled in the art will appreciate that the policy enforcement network element 100 can take the form shown in FIG.
比如,图4中的处理器401可以通过调用存储器403中存储的计算机执行指令,使得策略执行网元100执行上述方法实施例中的计费方法。For example, the processor 401 in FIG. 4 can execute an instruction by calling a computer stored in the memory 403, so that the policy execution network element 100 executes the charging method in the foregoing method embodiment.
具体的,图10中的处理模块1001和收发模块1002的功能/实现过程可以通过图4中的处理器401调用存储器403中存储的计算机执行指令来实现。或者,图10中的处理模块1001的功能/实现过程可以通过图4中的处理器401调用存储器403中存储的计算机执行指令来实现,图10中的收发模块1002的功能/实现过程可以通过图4中的通信接口404来实现。Specifically, the function/implementation process of the processing module 1001 and the transceiver module 1002 in FIG. 10 can be implemented by the processor 401 in FIG. 4 calling a computer execution instruction stored in the memory 403. Alternatively, the function/implementation process of the processing module 1001 in FIG. 10 can be implemented by the processor 401 in FIG. 4 calling the computer execution instruction stored in the memory 403, and the function/implementation process of the transceiver module 1002 in FIG. The communication interface 404 in 4 is implemented.
由于本实施例提供的策略执行网元可执行上述的计费方法,因此其所能获得的技术效果可参考上述方法实施例,在此不再赘述。The policy execution network element provided in this embodiment can perform the foregoing charging method. Therefore, the technical effects of the foregoing method can be referred to the foregoing method embodiments, and details are not described herein again.
可选的,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持策略执行网元实现上述计费方法,例如获取第一数据流量。在一种可能的设计中,该芯片系统还 包括存储器。该存储器,用于保存策略执行网元必要的程序指令和数据。当然,存储器也可以不在芯片系统中。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件,本申请实施例对此不作具体限定。Optionally, the embodiment of the present application further provides a chip system, where the chip system includes a processor, and is configured to support a policy execution network element to implement the foregoing charging method, for example, acquiring the first data traffic. In one possible design, the chip system also includes a memory. The memory is used to save program instructions and data necessary for the policy execution network element. Of course, the memory may not be in the chip system. The chip system may be composed of a chip, and may also include a chip and other discrete devices. This embodiment of the present application does not specifically limit this.
或者,比如,以采用集成的方式划分各个功能模块的情况下,图11示出了一种策略和计费执行功能网元110的结构示意图。该策略和计费执行功能网元110包括:获取模块1101和处理模块1102。其中,获取模块1101,用于获取第一数据流量,该第一数据流量为第一终端所属计费组在策略和计费执行功能网元上的当前数据流量;处理模块1002,用于确定第一数据流量已经达到第一终端所属计费组对应的预设流量;根据第一数据流量生成离线话单。Or, for example, in the case of dividing each functional module in an integrated manner, FIG. 11 shows a schematic structural diagram of a policy and charging execution function network element 110. The policy and charging execution function network element 110 includes an obtaining module 1101 and a processing module 1102. The obtaining module 1101 is configured to acquire the first data traffic, where the first data traffic is the current data traffic of the charging group of the first terminal to the policy and charging execution function network element, and the processing module 1002 is configured to determine the first data traffic. The data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs; the offline CDR is generated according to the first data traffic.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
在本实施例中,该策略和计费执行功能网元110以采用集成的方式划分各个功能模块的形式来呈现。这里的“模块”可以指特定ASIC,电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。在一个简单的实施例中,本领域的技术人员可以想到该策略和计费执行功能网元110可以采用图4所示的形式。In this embodiment, the policy and charging execution function network element 110 is presented in a form that divides each functional module in an integrated manner. A "module" herein may refer to a particular ASIC, circuitry, processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other devices that provide the functionality described above. In a simple embodiment, those skilled in the art will appreciate that the policy and charging enforcement function network element 110 can take the form shown in FIG.
比如,图4中的处理器401可以通过调用存储器403中存储的计算机执行指令,使得策略和计费执行功能网元110执行上述方法实施例中的计费方法。For example, the processor 401 in FIG. 4 can execute the instruction by calling a computer stored in the memory 403, so that the policy and charging execution function network element 110 executes the charging method in the above method embodiment.
具体的,图11中的获取模块1101和处理模块1102的功能/实现过程可以通过图4中的处理器401调用存储器403中存储的计算机执行指令来实现。Specifically, the function/implementation process of the obtaining module 1101 and the processing module 1102 in FIG. 11 can be implemented by the processor 401 in FIG. 4 calling a computer executing instruction stored in the memory 403.
由于本实施例提供的策略和计费执行功能网元可执行上述的计费方法,因此其所能获得的技术效果可参考上述方法实施例,在此不再赘述。The policy and the charging and executing function network element provided in this embodiment can perform the above-mentioned charging method. Therefore, the technical effects that can be obtained can be referred to the foregoing method embodiments, and details are not described herein again.
可选的,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持策略和计费执行功能网元实现上述计费方法,例如获取第一数据流量。在一种可能的设计中,该芯片系统还包括存储器。该存储器,用于保存策略和计费执行功能网元必要的程序指令和数据。当然,存储器也可以不在芯片系统中。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件,本申请实施例对此不作具体限定。Optionally, the embodiment of the present application further provides a chip system, where the chip system includes a processor, and is configured to support a policy and a charging execution function network element to implement the foregoing charging method, for example, acquiring the first data traffic. In one possible design, the chip system also includes a memory. The memory is used to store program instructions and data necessary for the network element of the policy and charging execution function. Of course, the memory may not be in the chip system. The chip system may be composed of a chip, and may also include a chip and other discrete devices. This embodiment of the present application does not specifically limit this.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device that includes one or more servers, data centers, etc. that can be integrated with the media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)) or the like.
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或 步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described herein in connection with the various embodiments, those skilled in the art can Other variations of the disclosed embodiments are achieved. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill several of the functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that the measures are not combined to produce a good effect.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。While the present invention has been described in connection with the specific embodiments and embodiments thereof, various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the description and drawings are to be regarded as It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.
Claims (31)
- 一种计费方法,其特征在于,所述方法包括:A charging method, characterized in that the method comprises:策略执行网元获取第一数据流量,所述第一数据流量为第一终端所属计费组在所述策略执行网元上的当前数据流量;The policy execution network element obtains the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the policy execution network element;所述策略执行网元确定所述第一数据流量已经达到所述第一终端所属计费组对应的第一组计费流量分片的上报流量;The policy execution network element determines that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs;所述策略执行网元向计费功能网元发送所述第一终端所属计费组的组标识以及所述第一数据流量,其中,所述组标识和所述第一数据流量用于请求所述第一终端所属计费组对应的第二组计费流量分片。The policy execution network element sends the group identifier of the charging group to which the first terminal belongs and the first data traffic to the charging function network element, where the group identifier and the first data traffic are used for the requesting The second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:所述策略执行网元接收来自所述计费功能网元的所述组标识以及所述第一终端所属计费组对应的第二组计费流量分片;The policy enforcement network element receives the group identifier from the charging function network element and a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs;其中,所述组标识以及所述第二组计费流量分片用于对所述第一终端所属计费组内的终端的数据流量进行组计费处理。The group identifier and the second group of charging traffic fragments are used to perform group charging processing on data traffic of terminals in the charging group to which the first terminal belongs.
- 根据权利要求1或2所述的方法,其特征在于,所述第一终端所属计费组包括会话级计费组或业务级计费组。The method according to claim 1 or 2, wherein the charging group to which the first terminal belongs includes a session level charging group or a service level charging group.
- 根据权利要求1-3任一项所述的方法,其特征在于,所述策略执行网元为策略和计费执行功能网元;所述策略执行网元获取第一数据流量,包括:The method according to any one of claims 1 to 3, wherein the policy execution network element is a policy and charging execution function network element; and the policy execution network element acquires the first data traffic, including:所述策略和计费执行功能网元接收来自所述第一终端的数据包;The policy and charging execution function network element receives a data packet from the first terminal;所述策略和计费执行功能网元根据所述数据包,确定所述第一终端所属计费组的组标识;Determining, by the network element, the group identifier of the charging group to which the first terminal belongs according to the data packet;所述策略和计费执行功能网元根据所述组标识和所述数据包对应的数据流量,确定所述第一数据流量。The policy and charging execution function network element determines the first data traffic according to the group identifier and the data traffic corresponding to the data packet.
- 根据权利要求4所述的方法,其特征在于,所述策略和计费执行功能网元根据所述数据包,确定所述第一终端所属计费组的组标识,包括:The method according to claim 4, wherein the policy and charging execution function network element determines, according to the data packet, a group identifier of the charging group to which the first terminal belongs, including:所述策略和计费执行功能网元根据所述数据包,确定所述第一终端的标识;Determining, by the policy and charging execution function network element, the identifier of the first terminal according to the data packet;所述策略和计费执行功能网元根据所述第一终端的标识,确定所述第一终端所属计费组的组标识。The policy and charging execution function network element determines, according to the identifier of the first terminal, a group identifier of the charging group to which the first terminal belongs.
- 根据权利要求4所述的方法,其特征在于,所述策略和计费执行功能网元根据所述第一终端的数据包,确定所述第一终端所属计费组的组标识,包括:The method according to claim 4, wherein the policy and charging execution function network element determines, according to the data packet of the first terminal, the group identifier of the charging group to which the first terminal belongs, including:所述策略和计费执行功能网元根据所述数据包,确定所述第一终端的标识;Determining, by the policy and charging execution function network element, the identifier of the first terminal according to the data packet;所述策略和计费执行功能网元根据所述第一终端的标识和所述数据包对应的业务确定所述第一终端所属计费组的组标识。The policy and the charging and executing function network element determines the group identifier of the charging group to which the first terminal belongs according to the identifier of the first terminal and the service corresponding to the data packet.
- 根据权利要求1-3任一项所述的方法,其特征在于,所述策略执行网元为会话管理网元;相应的,所述策略执行网元获取第一数据流量,包括:The method according to any one of claims 1-3, wherein the policy execution network element is a session management network element; and correspondingly, the policy execution network element acquires the first data traffic, including:所述会话管理网元接收来自用户面功能网元的第二数据流量和所述组标识,所述第二数据流量为所述第一终端所属计费组在所述用户面功能网元上的当前数据流量;The session management network element receives the second data traffic from the user plane function network element and the group identifier, where the second data traffic is the charging group of the first terminal belongs to the user plane function network element. Current data traffic;所述会话管理网元根据所述第二数据流量和所述组标识,确定所述第一数据流量。The session management network element determines the first data traffic according to the second data traffic and the group identifier.
- 根据权利要求1-3或7任一项所述的方法,其特征在于,所述策略执行网元为会话管理网元;相应的,所述方法还包括:The method according to any one of claims 1-3 or 7, wherein the policy execution network element is a session management network element; correspondingly, the method further includes:在所述第一数据流量未达到所述第一组计费流量分片的上报流量的情况下,所述会话管理网元向用户面功能网元发送所述组标识以及所述第一终端所属计费组对应的第三组计费流量分片,所述组标识以及所述第三组计费流量分片用于对所述第一终端所属计费组内的终端的数据流量进行组计费处理,其中,所述第三组计费流量分片小于所述第一组计费流量分片。And sending, by the session management network element, the group identifier and the first terminal to the user plane function network element, where the first data traffic does not reach the reported traffic of the first group of charging traffic fragments. The third group of charging traffic fragments corresponding to the charging group, the group identifier and the third group of charging traffic fragments are used to group data traffic of terminals in the charging group to which the first terminal belongs The fee processing, wherein the third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
- 根据权利要求1-3或7-8任一项所述的方法,其特征在于,所述策略执行网元为会话管理网元;相应的,所述方法还包括:The method according to any one of claims 1-3 or 7-8, wherein the policy execution network element is a session management network element; correspondingly, the method further comprises:对于所述第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:For any terminal in the charging group to which the first terminal belongs, processing is performed according to the following manner for the second terminal:所述会话管理网元接收来自策略控制网元的第一消息,所述第一消息用于指示删除所述第二终端和所述第一终端所属计费组的关联关系;The session management network element receives a first message from the policy control network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted;所述会话管理网元根据所述第一消息,删除所述第二终端和所述第一终端所属计费组的关联关系;Deleting, by the session management network element, the association relationship between the second terminal and the charging group to which the first terminal belongs according to the first message;所述会话管理网元向用户面功能网元发送第二消息,所述第二消息用于指示删除所述第二终端和所述第一终端所属计费组的关联关系。The session management network element sends a second message to the user plane function network element, where the second message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted.
- 根据权利要求1-9任一项所述的方法,其特征在于,所述策略执行网元上预先配置有所述第一终端和所述第一终端所属计费组的关联关系;The method according to any one of claims 1 to 9, wherein the policy execution network element is pre-configured with an association relationship between the first terminal and a charging group to which the first terminal belongs;或者,所述方法还包括:Alternatively, the method further includes:所述策略执行网元接收来自策略控制网元的所述组标识和所述第一终端的标识;The policy enforcement network element receives the group identifier from the policy control network element and an identifier of the first terminal;所述策略执行网元根据所述组标识和所述第一终端的标识,将所述第一终端和所述第一终端所属计费组进行关联。The policy enforcement network element associates the first terminal with the charging group to which the first terminal belongs according to the group identifier and the identifier of the first terminal.
- 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:所述策略执行网元确定未与计费功能网元建立组计费会话;The policy execution network element determines that a group charging session is not established with the charging function network element;所述策略执行网元向所述计费功能网元发送第三消息,所述第三消息携带所述组标识,用于请求建立与所述组标识对应的计费会话;The policy enforcement network element sends a third message to the charging function network element, where the third message carries the group identifier, and is used to request to establish a charging session corresponding to the group identifier;所述策略执行网元接收来自所述计费功能网元的所述第一终端所属计费组对应的第四组计费流量分片。The policy enforcement network element receives a fourth group of charging traffic fragments corresponding to the charging group to which the first terminal belongs from the charging function network element.
- 一种计费方法,其特征在于,所述方法包括:A charging method, characterized in that the method comprises:策略和计费执行功能网元获取第一数据流量,所述第一数据流量为第一终端所属计费组在所述策略和计费执行功能网元上的当前数据流量;The policy and the charging execution function network element obtains the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs to the policy and charging execution function network element;所述策略和计费执行功能网元确定所述第一数据流量已经达到所述第一终端所属计费组对应的预设流量;The policy and the charging execution function network element determines that the first data traffic has reached the preset traffic corresponding to the charging group to which the first terminal belongs;所述策略和计费执行功能网元根据所述第一数据流量生成离线话单。The policy and charging execution function network element generates an offline bill according to the first data traffic.
- 一种策略执行网元,其特征在于,所述策略执行网元包括:处理模块和收发模块;A policy enforcement network element, where the policy execution network element includes: a processing module and a transceiver module;所述处理模块,用于获取第一数据流量,所述第一数据流量为第一终端所属计费组在 所述策略执行网元上的当前数据流量;The processing module is configured to obtain a first data traffic, where the first data traffic is a current data traffic of the charging group to which the first terminal belongs on the policy execution network element;所述处理模块,还用于确定所述第一数据流量已经达到所述第一终端所属计费组对应的第一组计费流量分片的上报流量;The processing module is further configured to: determine that the first data traffic has reached the reported traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs;所述收发模块,用于向计费功能网元发送所述第一终端所属计费组的组标识以及所述第一数据流量,其中,所述组标识和所述第一数据流量用于请求所述第一终端所属计费组对应的第二组计费流量分片。The transceiver module is configured to send, to the charging function network element, a group identifier of the charging group to which the first terminal belongs, and the first data traffic, where the group identifier and the first data traffic are used for request The second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs.
- 根据权利要求13所述的策略执行网元,其特征在于,The policy enforcement network element according to claim 13, wherein所述收发模块,还用于接收来自所述计费功能网元的所述组标识以及所述第一终端所属计费组对应的第二组计费流量分片;The transceiver module is further configured to receive the group identifier from the charging function network element and a second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs;其中,所述组标识以及所述第二组计费流量分片用于对所述第一终端所属计费组内的终端的数据流量进行组计费处理。The group identifier and the second group of charging traffic fragments are used to perform group charging processing on data traffic of terminals in the charging group to which the first terminal belongs.
- 根据权利要求13或14所述的策略执行网元,其特征在于,所述策略执行网元为策略和计费执行功能网元;The policy enforcement network element according to claim 13 or 14, wherein the policy execution network element is a policy and charging execution function network element;所述处理模块用于获取第一数据流量,包括:用于接收来自所述第一终端的数据包;根据所述数据包,确定所述第一终端所属计费组的组标识;根据所述组标识和所述数据包对应的数据流量,确定所述第一数据流量。The processing module is configured to: acquire the first data traffic, and include: receiving a data packet from the first terminal; determining, according to the data packet, a group identifier of the charging group to which the first terminal belongs; The group identifier and the data traffic corresponding to the data packet determine the first data traffic.
- 根据权利要求13或14所述的策略执行网元,其特征在于,所述策略执行网元为会话管理网元;The policy enforcement network element according to claim 13 or 14, wherein the policy execution network element is a session management network element;所述处理模块用于获取第一数据流量,包括:用于接收来自用户面功能网元的第二数据流量和所述组标识,所述第二数据流量为所述第一终端所属计费组在所述用户面功能网元上的当前数据流量;根据所述第二数据流量和所述组标识,确定所述第一数据流量。The processing module is configured to: acquire, by the processing module, the second data traffic from the user plane function network element, and the group identifier, where the second data traffic is the charging group to which the first terminal belongs. The current data traffic on the user plane function network element; determining the first data traffic according to the second data traffic and the group identifier.
- 根据权利要求13、14或16任一项所述的策略执行网元,其特征在于,所述策略执行网元为会话管理网元;The policy enforcement network element according to any one of claims 13, 14 or 16, wherein the policy execution network element is a session management network element;所述收发模块,还用于在所述第一数据流量未达到所述第一组计费流量分片的上报流量的情况下,向用户面功能网元发送所述组标识以及所述第一终端所属计费组对应的第三组计费流量分片,所述组标识以及所述第三组计费流量分片用于对所述第一终端所属计费组内的终端的数据流量进行组计费处理,其中,所述第三组计费流量分片小于所述第一组计费流量分片。The transceiver module is further configured to send the group identifier and the first to the user plane function network element if the first data traffic does not reach the reported traffic of the first group of charging traffic fragments The third group of charging traffic fragments corresponding to the charging group to which the terminal belongs, the group identifier and the third group of charging traffic fragments are used to perform data traffic of the terminal in the charging group to which the first terminal belongs. The group charging process, wherein the third group of charging traffic fragments is smaller than the first group of charging traffic fragments.
- 根据权利要求13-17任一项所述的策略执行网元,其特征在于,所述策略执行网元上预先配置有所述第一终端和所述第一终端所属计费组的关联关系;The policy enforcement network element according to any one of claims 13-17, wherein the policy execution network element is pre-configured with an association relationship between the first terminal and a charging group to which the first terminal belongs;或者,所述收发模块,还用于接收来自策略控制网元的所述组标识和所述第一终端的标识;Or the transceiver module is further configured to receive the group identifier from the policy control network element and the identifier of the first terminal;所述处理模块,还用于根据所述组标识和所述第一终端的标识,将所述第一终端和所述第一终端所属计费组进行关联。The processing module is further configured to associate the first terminal with the charging group to which the first terminal belongs according to the group identifier and the identifier of the first terminal.
- 一种策略和计费执行功能网元,其特征在于,所述策略和计费执行功能网元包括:获取模块和处理模块;A policy and charging execution function network element, wherein the policy and charging execution function network element comprises: an obtaining module and a processing module;所述获取模块,用于获取第一数据流量,所述第一数据流量为第一终端所属计费组在所述策略和计费执行功能网元上的当前数据流量;The acquiring module is configured to acquire a first data traffic, where the first data traffic is a current data traffic of the charging group to which the first terminal belongs to the policy and charging execution function network element;所述处理模块,用于确定所述第一数据流量已经达到所述第一终端所属计费组对应的预设流量;根据所述第一数据流量生成离线话单。The processing module is configured to determine that the first data traffic has reached a preset traffic corresponding to the charging group to which the first terminal belongs, and generate an offline CDR according to the first data traffic.
- 一种计费系统,其特征在于,所述计费系统包括:策略执行网元和计费功能网元;A charging system, comprising: a policy execution network element and a charging function network element;所述策略执行网元,用于获取第一数据流量,所述第一数据流量为第一终端所属计费组在所述策略执行网元上的当前数据流量;The policy execution network element is configured to acquire the first data traffic, where the first data traffic is the current data traffic of the charging group to which the first terminal belongs on the policy execution network element;所述策略执行网元,还用于在确定所述第一数据流量已经达到所述第一终端所属计费组对应的第一组计费流量分片的流量之后,向计费功能网元发送所述第一终端所属计费组的组标识以及所述第一数据流量,其中,所述组标识和所述第一数据流量用于请求所述第一终端所属计费组对应的第二组计费流量分片;The policy enforcement network element is further configured to send, to the charging function network element, after determining that the first data traffic has reached the traffic of the first group of charging traffic fragments corresponding to the charging group to which the first terminal belongs. The group identifier of the charging group to which the first terminal belongs and the first data traffic, where the group identifier and the first data traffic are used to request the second group corresponding to the charging group to which the first terminal belongs Billing traffic fragmentation;所述计费功能网元,用于接收来自所述策略执行网元的所述组标识以及所述第一数据流量。The charging function network element is configured to receive the group identifier and the first data traffic from the policy enforcement network element.
- 根据权利要求20所述的计费系统,其特征在于,A billing system according to claim 20, wherein所述计费功能网元,还用于向所述策略执行网元发送所述组标识以及所述第一终端所属计费组对应的第二组计费流量分片;The charging function network element is further configured to send, to the policy execution network element, the group identifier and the second group of charging traffic fragments corresponding to the charging group to which the first terminal belongs;所述策略执行网元,还用于接收来自所述计费功能网元的所述组标识以及所述第二组计费流量分片,其中,所述组标识以及所述第二组计费流量分片用于对所述第一终端所属计费组内的终端的数据流量进行组计费处理。The policy enforcement network element is further configured to receive the group identifier from the charging function network element and the second group of charging traffic fragments, where the group identifier and the second group charging The traffic fragment is used to perform group charging processing on the data traffic of the terminal in the charging group to which the first terminal belongs.
- 根据权利要求20或21所述的计费系统,其特征在于,所述计费系统还包括:策略控制网元;The charging system according to claim 20 or 21, wherein the charging system further comprises: a policy control network element;所述计费功能网元,还用于向所述策略控制网元发送第一指示信息,所述第一指示信息用于指示所述第一终端所属计费组无可用组计费流量分片;The charging function network element is further configured to send the first indication information to the policy control network element, where the first indication information is used to indicate that the charging group to which the first terminal belongs has no available group charging traffic fragmentation. ;所述策略控制网元,用于接收来自所述计费功能网元的所述第一指示信息,并根据所述第一指示信息,确定需要对所述第一终端所属计费组内的终端进行策略更新;The policy control network element is configured to receive the first indication information from the charging function network element, and determine, according to the first indication information, a terminal in the charging group to which the first terminal belongs Conduct a policy update;对于所述第一终端所属计费组内的任一终端,均按照下述针对第二终端的方式进行处理:For any terminal in the charging group to which the first terminal belongs, processing is performed according to the following manner for the second terminal:所述策略控制网元,还用于向所述策略执行网元发送第一消息,所述第一消息用于指示删除所述第二终端和所述第一终端所属计费组的关联关系;The policy control network element is further configured to send a first message to the policy execution network element, where the first message is used to indicate that the association relationship between the second terminal and the charging group to which the first terminal belongs is deleted;所述策略执行网元,还用于接收来自所述策略控制网元的所述第一消息,并根据所述第一消息,删除所述第二终端和所述第一终端所属计费组的关联关系。The policy enforcement network element is further configured to receive the first message from the policy control network element, and delete the second terminal and the charging group to which the first terminal belongs according to the first message. connection relation.
- 根据权利要求20-22任一项所述的计费系统,其特征在于,所述计费系统还包括:策略控制网元;The charging system according to any one of claims 20 to 22, wherein the charging system further comprises: a policy control network element;所述策略控制网元,用于接收来自所述策略执行网元的第四消息,所述第四消息用于携带所述第一终端的标识,用于请求所述第一终端对应的计费策略;The policy control network element is configured to receive a fourth message from the policy enforcement network element, where the fourth message is used to carry the identifier of the first terminal, and is used to request charging corresponding to the first terminal. Strategy所述策略控制网元根据所述第一终端的标识,确定所述第一终端为组计费终端、以及,所述第一终端需要根据组计费账户状态进行计费策略更新;The policy control network element determines, according to the identifier of the first terminal, that the first terminal is a group charging terminal, and that the first terminal needs to perform charging policy update according to a group charging account status;所述策略控制网元将所述第一终端和所述第一终端所属计费组进行关联。The policy control network element associates the first terminal with a charging group to which the first terminal belongs.
- 根据权利要求23所述的计费系统,其特征在于,A billing system according to claim 23, wherein所述策略控制网元,还用于确定未与所述计费功能网元建立组计费会话;The policy control network element is further configured to determine that a group charging session is not established with the charging function network element;所述策略控制网元,还用于向所述计费功能网元发送第五消息,所述第五消息携带所述组标识,用于请求建立与所述组标识对应的计费会话;The policy control network element is further configured to send a fifth message to the charging function network element, where the fifth message carries the group identifier, and is used to request to establish a charging session corresponding to the group identifier;所述计费功能网元,还用于接收来自所述策略控制网元的所述第五消息,并根据所述第五消息,将所述组标识与对应的计费账户状态相关联;The charging function network element is further configured to receive the fifth message from the policy control network element, and associate the group identifier with a corresponding charging account status according to the fifth message;所述计费功能网元,还用于向所述策略控制网元发送第六消息,所述第六消息用于指示与所述组标识对应的计费会话建立完成。The charging function network element is further configured to send a sixth message to the policy control network element, where the sixth message is used to indicate that the charging session establishment corresponding to the group identifier is completed.
- 一种策略执行网元,其特征在于,包括:处理器和存储器;所述存储器用于存储计算机执行指令,当所述策略执行网元运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述策略执行网元执行如权利要求1-11任一项所述的计费方法。A policy enforcement network element, comprising: a processor and a memory; the memory is configured to store a computer execution instruction, when the policy execution network element is running, the processor executes the memory storage The computer executes the instructions to cause the policy enforcement network element to perform the charging method of any of claims 1-11.
- 一种策略和计费执行功能网元,其特征在于,包括:处理器和存储器;所述存储器用于存储计算机执行指令,当所述策略和计费执行功能网元运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述策略和计费执行功能网元执行如权利要求12的计费方法。A policy and charging execution function network element, comprising: a processor and a memory; the memory is configured to store a computer execution instruction, and when the policy and charging execution function network element is running, the processor Executing the computer-executable instructions stored by the memory to cause the policy and charging enforcement function network element to perform the charging method of claim 12.
- 一种处理器,其特征在于,用于执行如权利要求1-11任一项,或权利要求12所述的计费方法。A processor, for performing the charging method according to any one of claims 1-11, or claim 12.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行如权利要求1-11任一项,或权利要求12所述的计费方法。A computer readable storage medium, wherein the computer readable storage medium stores instructions that, when run on a computer, cause the computer to perform any of claims 1-11, or claim 12. The charging method described.
- 一种计算机程序产品,其特征在于,所述计算机程序产品中存储有指令,当其在计算机上运行时,使得计算机可以执行如权利要求1-11任一项,或权利要求12所述的计费方法。A computer program product, wherein the computer program product stores instructions that, when run on a computer, cause the computer to perform the method of any one of claims 1-11, or claim 12. Fee method.
- 一种用来执行权利要求1-11任一项所述的计费方法的装置。An apparatus for performing the charging method of any of claims 1-11.
- 一种用来执行权利要求12所述的计费方法的装置。An apparatus for performing the charging method of claim 12.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810420061.1A CN110445623B (en) | 2018-05-04 | 2018-05-04 | Charging method, device and system |
CN201810420061.1 | 2018-05-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019210780A1 true WO2019210780A1 (en) | 2019-11-07 |
Family
ID=68386977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/083378 WO2019210780A1 (en) | 2018-05-04 | 2019-04-19 | Charging method, device, and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110445623B (en) |
WO (1) | WO2019210780A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021201736A1 (en) * | 2020-04-03 | 2021-10-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and arrangements relating to group transmission in a wireless communication network |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114615636B (en) * | 2020-12-09 | 2023-07-14 | 华为技术有限公司 | Communication method, device and medium |
CN115529566B (en) * | 2022-10-27 | 2023-10-31 | 广州爱浦路网络技术有限公司 | Charging control method, device and storage medium based on predefined Urr |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255813A (en) * | 2011-07-18 | 2011-11-23 | 中国联合网络通信集团有限公司 | Method, server and system for dispatching group shared traffic |
CN104735635A (en) * | 2014-12-22 | 2015-06-24 | 华为技术有限公司 | Strategy control method and device |
CN106464507A (en) * | 2014-06-03 | 2017-02-22 | 瑞典爱立信有限公司 | Preemptive credit control |
CN107548046A (en) * | 2016-06-24 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of charging method based on separation architecture, device and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100369418C (en) * | 2005-06-24 | 2008-02-13 | 杭州华三通信技术有限公司 | Statistical method of data stream |
US7937300B2 (en) * | 2008-07-10 | 2011-05-03 | Bridgewater Systems Corp. | System and method for providing interoperability between diameter policy control and charging in a 3GPP network |
CN102695155B (en) * | 2012-06-13 | 2016-06-15 | 华为技术有限公司 | Billing control method and device |
CN104254061A (en) * | 2013-06-28 | 2014-12-31 | 阿尔卡特朗讯公司 | Method and equipment for strategy and charging control |
CN107135083A (en) * | 2016-02-29 | 2017-09-05 | 华为技术有限公司 | A kind of charging method and device |
-
2018
- 2018-05-04 CN CN201810420061.1A patent/CN110445623B/en active Active
-
2019
- 2019-04-19 WO PCT/CN2019/083378 patent/WO2019210780A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255813A (en) * | 2011-07-18 | 2011-11-23 | 中国联合网络通信集团有限公司 | Method, server and system for dispatching group shared traffic |
CN106464507A (en) * | 2014-06-03 | 2017-02-22 | 瑞典爱立信有限公司 | Preemptive credit control |
CN104735635A (en) * | 2014-12-22 | 2015-06-24 | 华为技术有限公司 | Strategy control method and device |
CN107548046A (en) * | 2016-06-24 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of charging method based on separation architecture, device and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021201736A1 (en) * | 2020-04-03 | 2021-10-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and arrangements relating to group transmission in a wireless communication network |
Also Published As
Publication number | Publication date |
---|---|
CN110445623B (en) | 2020-11-10 |
CN110445623A (en) | 2019-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020057179A1 (en) | Policy control method, device and system | |
JP6821061B2 (en) | Policy control methods, network elements, and systems | |
CN110972092B (en) | Local area network communication method, device and system | |
WO2020103693A1 (en) | Resource information sending method, device, and system | |
EP3592012B1 (en) | Subscription update method, device and system | |
US11463866B2 (en) | Location change reporting method, device, and system | |
WO2020164290A1 (en) | Policy control method, apparatus, and system | |
JP7478267B2 (en) | Billing method, device, and system | |
WO2019210780A1 (en) | Charging method, device, and system | |
US11470202B2 (en) | Charging method, apparatus, and system | |
WO2021204299A1 (en) | Policy determination method and device, and system | |
WO2019184723A1 (en) | Policy and charging control rule acquisition method, device and system | |
WO2019174437A1 (en) | Address management method, device and system | |
WO2017076126A1 (en) | Session switching method, device and system | |
JP7145197B2 (en) | Handover method, device and system | |
CN109274507B (en) | Charging control method, device and system | |
JP6961098B2 (en) | Session management methods and systems, as well as equipment | |
WO2021012750A1 (en) | Communication method and apparatus |
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: 19796538 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19796538 Country of ref document: EP Kind code of ref document: A1 |