Charging method and apparatus, and system
10924900 ยท 2021-02-16
Assignee
Inventors
Cpc classification
H04L12/1482
ELECTRICITY
H04L12/14
ELECTRICITY
H04M15/00
ELECTRICITY
H04M15/67
ELECTRICITY
H04L12/1425
ELECTRICITY
International classification
H04W8/18
ELECTRICITY
G06Q40/00
PHYSICS
H04M15/00
ELECTRICITY
H04L12/14
ELECTRICITY
Abstract
A charging method, including sending, by a control plane gateway, a first charging trigger event to a user plane gateway, where the first charging trigger event triggering the user plane gateway to generate service usage information, generating, by the user plane gateway, the service usage information when the user plane gateway detects that the first charging trigger event occurs, sending, by the user plane gateway, the service usage information to the control plane gateway, generating, by the control plane gateway, a charging request according to the service usage information, and sending, by the control plane gateway, the charging request to a charging system. Offline charging during packet data network gateway (PGW) control and user (CU) separation is implemented.
Claims
1. A charging method implemented by a control plane gateway, the charging method comprising: determining that a first charging trigger event comprising a user location change has occurred; sending, to a user plane gateway in response to determining that the first charging event has occurred, a message to indicate to immediately report service usage information to the control plane gateway; receiving, from the user plane gateway, the service usage information; and sending, in response to receiving the service usage information from the user plane gateway, a charging request comprising the service usage information to a charging system that is separate from the user plane gateway and the control plane gateway.
2. The charging method of claim 1, wherein the service usage information is carried in a charging container.
3. The charging method of claim 1, wherein the service usage information comprises quality of service (QoS) information.
4. The charging method of claim 1, wherein the service usage information comprises a rating group.
5. The charging method of claim 1, wherein the service usage information comprises an application detection and control (ADC) rule identifier.
6. A system comprising a control plane gateway and a user plane gateway, wherein: the control plane gateway is configured to: determine that a first charging trigger event comprising a user location change has occurred; send, in response to determining that the first charging trigger event has occurred, a message to the user plane gateway to indicate to immediately report service usage information to the control plane gateway; receive the service usage information; and send, in response to receiving the service usage information, a charging request to a charging system that is separate from the control plane gateway; and the user plane gateway is configured to: receive, from the control plane gateway, the message indicating to immediately report service usage information to the control plane gateway; send, to the control plane gateway, the service usage information to prompt the control plane gateway to send the charging request, wherein the user plane gateway is separate from the charging system.
7. The system of claim 6, wherein the service usage information comprises quality of service (QoS) information.
8. The system of claim 6, wherein the service usage information comprises a rating group.
9. The system of claim 6, wherein the service usage information comprises an application detection and control (ADC) rule identifier.
10. The system of claim 6, wherein the service usage information is carried in a charging container.
11. A system comprising a control plane gateway, a user plane gateway and a charging system, wherein: the control plane gateway is configured to: determine that a first charging trigger event comprising a user location change has occurred; send, in response to determining that the user location change has occurred, a message to the user plane gateway to indicate immediately report service usage information to the control plane gateway; receive, the service usage information; and send, in response to receiving the service usage information, a charging request to a charging system that is separate from the control plane gateway; the user plane gateway is configured to: receive, from the control plane gateway, the message indicating to immediately report service usage information to the control plane gateway; send, to the control plane gateway in response to receiving the message, the service usage information to prompt the control plane gateway to send the charging request, wherein the user plane gateway is separate from the charging system; and the charging system is configured to receive the charging request from the control plane gateway.
12. The system of claim 11, wherein the service usage information comprises quality of service (QoS) information.
13. The system of claim 11, wherein the service usage information comprises a rating group.
14. The system of claim 11, wherein the service usage information comprises an application detection and control (ADC) rule identifier.
15. The system of claim 11, wherein the service usage information is carried in a charging container.
16. A charging apparatus, comprising a computer-readable storage medium configured to store programming instructions; and a processor coupled to the computer-readable storage medium, the programming instructions causing the processor to be configured to: determine that a first charging trigger event comprising a user location change has occurred; send, to a user plane gateway in response to determining that the first charging trigger event has occurred, a message to indicate to immediately report service usage information to the control plane gateway; receive, from the user plane gateway, the service usage information; and send, in response to receiving the service usage information from the user plane gateway, a charging request comprising the service usage information to a charging system that is separate from the user plane gateway and the control plane gateway.
17. The charging apparatus of claim 16, wherein the service usage information comprises quality of service (QoS) information.
18. The charging apparatus of claim 16, wherein the service usage information comprises a rating group.
19. The charging apparatus of claim 16, wherein the service usage information comprises an application detection and control (ADC) rule identifier.
20. The charging apparatus of claim 16, wherein the service usage information is carried in a charging container.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show merely some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DESCRIPTION OF EMBODIMENTS
(11) In the following description, to illustrate rather than limit, specific details such as a particular system structure, an interface, and a technology are provided to make a thorough understanding of the present disclosure. However, a person skilled in the art should know that the present disclosure may be practiced in other embodiments without these specific details. In other cases, detailed descriptions of well-known apparatuses, circuits, and methods are omitted such that the present disclosure is described without being obscured by unnecessary details.
(12) For ease of understanding and describing embodiments provided in the present disclosure, several concepts related to the present disclosure are first described. For a charging trigger event, when the charging trigger event occurs, charging information generated before the event occurs needs to be packetized and added into a charging data record, and subsequently, charging information needs to be accumulated all over again. For example, a user location change is configured as a charging trigger event. If a user is originally located in an area A, and then moves to an area B, charging information generated when the user uses a service in the area A and charging information generated when the user uses a service in the area B need to be separately listed in a charging data record.
(13)
(14) The user plane gateway 101 and the control plane gateway 102 may be implemented in a form of a computer device.
(15) The processor 202 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is configured to execute a related program to implement a technical solution provided in this embodiment of the present disclosure.
(16) The memory 204 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 204 may store an operating system 2041 or an application program 2042. When the technical solution provided in this embodiment of the present disclosure is implemented using software or firmware, program code used to implement the technical solution provided in this embodiment of the present disclosure is stored in the memory 204, and is executed by the processor 202.
(17) Using a transceiver apparatus (not shown), for example but not limited to a transceiver, the communications interface 206 communicates with another device or another communications network.
(18) The bus 208 may include a channel to transfer information between components (for example, the processor 202, the memory 204, and the communications interface 206).
(19) When the computer device 200 is the control plane gateway 102, the processor 202 is configured to send a first charging trigger event to a user plane gateway, where the first charging trigger event is used to trigger the user plane gateway to generate service usage information, receive the service usage information from the user plane gateway, generate a charging request according to the service usage information, and send the charging request to a charging system.
(20) When the computer device 200 is the user plane gateway 101, the processor 202 is configured to receive a first charging trigger event from a control plane gateway, where the first charging trigger event is used to trigger the user plane gateway to generate service usage information, generate the service usage information when it is detected that the first charging trigger event occurs, and send the generated service usage information to the control plane gateway.
(21)
(22) Step S301: A user plane gateway and a control plane gateway establish an Internet Protocol (IP)-connectivity access network (CAN) bearer.
(23) Step S302: The control plane gateway sends a first charging trigger event to the user plane gateway, where the first charging trigger event is used to trigger the user plane gateway to generate service usage information.
(24) Step S303 (not shown): The user plane gateway receives the first charging trigger event from the control plane gateway, where the first charging trigger event is used to trigger the user plane gateway to generate the service usage information.
(25) The service usage information includes service usage amount. The service usage information may further include at least one of quality of service (QoS) information, a rating group, a service identifier, a policy and charging control (PCC) rule identifier, or an application detection and control (ADC) rule identifier.
(26) The service usage amount includes at least one of service use time, uplink traffic, downlink traffic, or duration.
(27) Step S304: When the user plane gateway detects that the first charging trigger event occurs, the user plane gateway generates the service usage information.
(28) Further, the first charging trigger event may be a trigger event monitored by the user plane gateway, or may be a trigger event monitored by the control plane gateway.
(29) When the first charging trigger event is the trigger event monitored by the user plane gateway, the user plane gateway may obtain the first charging trigger event in the following manners. Before the control plane gateway sends the first charging trigger event to the user plane gateway, the control plane gateway distinguishes the first charging trigger event from at least one charging trigger event, and then sends the first charging trigger event to the user plane gateway. Alternatively, the user plane gateway receives at least one charging trigger event from the control plane gateway, where the at least one charging trigger event includes the first charging trigger event, and the user plane gateway distinguishes the first charging trigger event from the at least one charging trigger event.
(30) When the first charging trigger event is the trigger event monitored by the user plane gateway, the control plane gateway sends a first charging trigger event to the user plane gateway in step S302 includes that the control plane gateway sends a monitor instruction to the user plane gateway. The monitor instruction carries the first charging trigger event, and instructs the user plane gateway to monitor the first charging trigger event. The user plane gateway receives the first charging trigger event from the control plane gateway in step S303 includes that the user plane gateway receives the monitor instruction from the control plane gateway. The monitor instruction carries the first charging trigger event, and instructs the user plane gateway to monitor the first trigger event. That the user plane gateway detects that the first charging trigger event occurs includes that the user plane gateway itself detects that the first charging trigger event occurs.
(31) When the first charging trigger event is the trigger event monitored by the control plane gateway, the control plane gateway may obtain the first charging trigger event in the following manners. The control plane gateway distinguishes the first charging trigger event from at least one charging trigger event. Alternatively, the user plane gateway receives at least one charging trigger event from the control plane gateway, and the at least one charging trigger event includes the first charging trigger event. The user plane gateway distinguishes the first charging trigger event from the at least one charging trigger event, and then sends the first charging trigger event to the control plane gateway.
(32) When the first charging trigger event is the trigger event monitored by the control plane gateway, the control plane gateway sends a first charging trigger event to the user plane gateway in step S302 includes that the control plane gateway sends a notification message to the user plane gateway. The notification message carries the first charging trigger event, and indicates that the first trigger event occurs. The user plane gateway receives the first charging trigger event from the control plane gateway in step S303 includes that the user plane gateway receives the notification message from the control plane gateway. The notification message carries the first charging trigger event, and indicates that the first trigger event occurs. When the user plane gateway receives the notification message that indicates that the first charging trigger event occurs, the user plane gateway detects that the first charging trigger event occurs.
(33) Step S305: The user plane gateway sends the service usage information to the control plane gateway.
(34) Optionally, the user plane gateway further sends the first charging trigger event to the control plane gateway.
(35) Step S306 (not shown): The control plane gateway receives the service usage information from the user plane gateway.
(36) Optionally, the control plane gateway further receives the first charging trigger event from the user plane gateway.
(37) Optionally, when the first charging trigger event causes ending of a charging session or closing of a charging data record, the user plane gateway sends the generated service usage information to the control plane gateway. In this way, a data amount and frequency of information exchanged between the control plane gateway and the user plane gateway can be reduced, and a network resource can be saved.
(38) Optionally, when the first charging trigger event does not cause ending of a charging session or closing of a charging data record, before the user plane gateway sends the generated service usage information to the control plane gateway, the user plane gateway stores the first charging trigger event and the service usage information, and the user plane gateway accumulates subsequent service usage information all over again.
(39) Optionally, the user plane gateway may record the service usage information in a form of a charging data record, and send multiple recorded charging data records to the control plane gateway together, thereby reducing frequency of interaction between the user plane gateway and the control plane gateway, and reducing network consumption.
(40) Step S307: The control plane gateway generates a charging request according to the service usage information.
(41) The control plane gateway generates the charging request further according to the first charging trigger event sent by the user plane gateway and at least one of configuration information of the control plane gateway, user information, network information, or service information. The configuration information of the control plane gateway, the user information, the network information, and the service information include a user identifier, a serving node type, a serving gateway (SGW) address, and a time zone.
(42) Optionally, the control plane gateway may generate a charging data record according to the service usage information, and send the charging data record to a charging system after a specific time. Alternatively, after a specific quantity of charging data records exist, the control plane gateway sends the charging data records to a charging system.
(43) Step S308: The control plane gateway sends the charging request to a charging system.
(44) According to the technical solution provided in this embodiment of the present disclosure, the first charging trigger event is monitored using the control plane gateway or the user plane gateway, and a traffic volume used by a user can be charged after the first charging trigger event occurs, thereby implementing charging in a CU separation architecture. Further, the user plane gateway may not send the service usage information to the control plane gateway until the first charging trigger event causes ending of the charging session or closing of the charging data record such that a data amount and frequency of information exchanged between the control plane gateway and the user plane gateway are reduced, and a network resource is saved. In addition, when the service usage information sent by the user plane gateway includes only the service usage amount, the user plane gateway does not need to obtain other information used to generate the charging request, and pressure on the user plane gateway can be reduced. When the service usage information sent by the user plane gateway further includes the foregoing information, such as the QoS and the rating group, the control plane gateway does not need to obtain the information, and pressure on the control plane gateway can be reduced.
(45) In a specific implementation of the embodiment of the present disclosure, service usage information may be carried using a charging container. Referring to
(46) The charging container is an important part of a charging request and a charging data record, and is a structured data set. The charging container includes service usage amount, and may further include at least one of information such as container opening and closing time, a rating group, a service identifier, or a container closing charging trigger event. The charging container may be represented using a field service data container. In an implementation, service data container may include the following fields: Service-Data-Container::=<AVP Header: TBD> [AF-Correlation-Information] [Charging-Rule-Base-Name] [Accounting-Input-Octets] [Accounting-Output-Octets] [Accounting-Input-Packets] [Accounting-Output-Packets] [Local-Sequence-Number] [QoS-Information] [Rating-Group] [Change-Time] [Service-Identifier] [Service-Specific-Info] [SGSN-Address] [Time-First-Usage] [Time-Last-Usage] [Time-Usage] [Change-Condition] [3 GPP-User-Location-Info]
(47) Step S401: A user plane gateway and a control plane gateway establish an IP-CAN bearer.
(48) Step S402: The control plane gateway sends, to the user plane gateway, a first charging trigger event and information used to generate a charging container, where the first charging trigger event is used to trigger the user plane gateway to generate the charging container.
(49) Optionally, the information that is sent by the control plane gateway to the user plane gateway and used to generate the charging container includes information that is required for generating the charging container but is lacking in the user plane gateway. Further, the information used to generate the charging container includes at least one of a serving general packet radio service (GPRS) support node (SGSN) address, user location information, a user presence reporting area status, or closed subscriber group (CSG) information of a user.
(50) Step S403 (not shown): The user plane gateway receives, from the control plane gateway, the first charging trigger event and the information used to generate the charging container, where the first charging trigger event is used to trigger the user plane gateway to generate the charging container.
(51) Further, the first charging trigger event and the information used to generate the charging container may be sent using one or more messages. This is not limited in the present disclosure.
(52) Step S404: When the user plane gateway detects that the first charging trigger event occurs, the user plane gateway generates the charging container according to the information used to generate the charging container.
(53) A specific description of step S404 is the same as that of step S304 in the embodiment in
(54) Step S405: The user plane gateway sends the generated charging container to the control plane gateway.
(55) Step S406 (not shown): The control plane gateway receives the charging container from the user plane gateway.
(56) Step S407: The control plane gateway generates a charging request according to the charging container.
(57) It should be understood that, the embodiment in
(58) According to the technical solution provided in this embodiment of the present disclosure, the first charging trigger event is monitored using the control plane gateway or the user plane gateway, and a traffic volume used by a user can be charged after the first charging trigger event occurs, thereby implementing charging in a CU separation architecture. Further, the user plane gateway may not send the charging container to the control plane gateway until the first charging trigger event causes ending of the charging session or closing of the charging data record such that a data amount and frequency of information exchanged between the control plane gateway and the user plane gateway are reduced, and a network resource is saved.
(59)
(60) Step S501: A user plane gateway and a control plane gateway establish an IP-CAN bearer.
(61) Step S502: The control plane gateway sends a first charging trigger event to the user plane gateway, where the first charging trigger event is used to trigger the user plane gateway to generate a charging request.
(62) The control plane gateway further sends, to the user plane gateway, information used to generate the charging request. The information includes at least one of user information, network information, or service information.
(63) Step S503 (not shown): The user plane gateway receives the first charging trigger event from the control plane gateway, where the first charging trigger event is used to trigger the user plane gateway to generate the charging request.
(64) Step S504: When the user plane gateway detects that the first charging trigger event occurs, the user plane gateway generates the charging request according to service usage information.
(65) A specific description of step S504 is the same as that of step S304 in the embodiment in
(66) The user plane gateway generates the charging request further according to the first charging trigger event and configuration information of the user plane gateway.
(67) Optionally, the user plane gateway generates the charging request further according to cached charging information caused by a charging trigger event before the first charging trigger event occurs. The cached charging information includes the service usage information.
(68) Step S505: The user plane gateway sends the charging request to the control plane gateway.
(69) Step S506 (not shown): The control plane gateway receives the charging request from the user plane gateway.
(70) Optionally, when the first charging trigger event may cause ending of a charging session or closing of a charging data record, the user plane gateway sends the charging request to the control plane gateway. In this way, a data amount and frequency of information exchanged between the control plane gateway and the user plane gateway can be reduced, and a network resource can be saved.
(71) Optionally, when the first charging trigger event does not cause ending of a charging session or closing of a charging data record, before the user plane gateway sends the charging request to the control plane gateway, the user plane gateway stores the first charging trigger event and charging information generated before the first charging trigger event occurs, and the user plane gateway accumulates subsequent service usage information all over again.
(72) Optionally, the user plane gateway may record the charging information in a form of a charging data record, and send multiple recorded charging data records to the control plane gateway together with the charging request, thereby reducing frequency of interaction between the user plane gateway and the control plane gateway, and reducing network consumption.
(73) Step S507: The control plane gateway sends the charging request to a charging system.
(74) According to the technical solution provided in this embodiment of the present disclosure, the first charging trigger event is monitored using the control plane gateway or the user plane gateway, and a traffic volume used by a user can be charged after the first charging trigger event occurs, thereby implementing charging in a CU separation architecture. Further, the user plane gateway may not send the charging request to the control plane gateway until the first charging trigger event causes ending of the charging session or closing of the charging data record such that a data amount and frequency of information exchanged between the control plane gateway and the user plane gateway are reduced, and a network resource is saved.
(75)
(76) The sending module 602 is configured to send a first charging trigger event to a user plane gateway. The first charging trigger event is used to trigger the user plane gateway to generate service usage information.
(77) The receiving module 604 is configured to receive the service usage information from the user plane gateway.
(78) The processing module 606 is configured to generate a charging request according to the service usage information.
(79) The sending module 602 is further configured to send the charging request to a charging system.
(80) In a specific implementation of this embodiment of the present disclosure, the service usage information may be carried using a charging container.
(81) Optionally, the receiving module 604 is further configured to receive the first charging trigger event from the user plane gateway. The processing module 606 is further configured to generate the charging request according to the first charging trigger event.
(82) Optionally, before the sending module 602 sends the first charging trigger event to the user plane gateway, the processing module 606 is further configured to distinguish the first charging trigger event from at least one charging trigger event.
(83)
(84) The receiving module 702 is configured to receive a first charging trigger event from a control plane gateway. The first charging trigger event is used to trigger the processing module 704 to generate service usage information.
(85) The processing module 704 is configured to generate the service usage information when it is detected that the first charging trigger event occurs.
(86) The sending module 706 is configured to send the service usage information to the control plane gateway.
(87) In a specific implementation of this embodiment of the present disclosure, the service usage information may be carried using a charging container.
(88) Optionally, the charging apparatus 700 further includes a storage module 708. When the first charging trigger event does not cause ending of a charging session or closing of a charging data record, before the sending module 706 sends the service usage information to the control plane gateway, the storage module 708 is configured to store the first charging trigger event and the generated service usage information. The processing module 704 is further configured to accumulate subsequent service usage information all over again.
(89) Optionally, the receiving module 702 is further configured to receive at least one charging trigger event from the control plane gateway, and the at least one charging trigger event includes the first charging trigger event. The processing module 704 is further configured to distinguish the first charging trigger event from the at least one charging trigger event.
(90) Optionally, the sending module 706 is further configured to send the first charging trigger event to the control plane gateway.
(91)
(92) The sending module 802 is configured to send a first charging trigger event to a user plane gateway. The first charging trigger event is used to trigger the user plane gateway to generate a charging request.
(93) The receiving module 804 is configured to receive the charging request from the user plane gateway.
(94) The sending module 802 is further configured to send the charging request to a charging system.
(95) Optionally, the charging apparatus 800 further includes a processing module 806. Before the sending module 802 sends the first charging trigger event to the user plane gateway, the processing module 806 distinguishes the first charging trigger event from at least one charging trigger event.
(96)
(97) The receiving module 902 is configured to receive a first charging trigger event from a control plane gateway. The first charging trigger event is used to trigger a user plane gateway to generate a charging request.
(98) The processing module 904 is configured to generate the charging request according to service usage information when it is detected that the first charging trigger event occurs.
(99) The sending module 906 is configured to send the charging request to the control plane gateway.
(100) Optionally, the charging apparatus 900 further includes a storage module 908. When the first charging trigger event does not cause ending of a charging session or closing of a charging data record, before the sending module 906 sends the generated charging request to the control plane gateway, the storage module 908 is configured to store the first charging trigger event and the service usage information generated before the first charging trigger event occurs. The processing module 904 accumulates subsequent service usage information all over again.
(101) Optionally, the receiving module 902 is further configured to receive at least one charging trigger event from the control plane gateway, and the at least one charging trigger event includes the first charging trigger event. The processing module 904 is further configured to distinguish the first charging trigger event from the at least one charging trigger event.
(102) A module in the embodiments from
(103) It should be noted that, although the computer device 200 shown in
(104) In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The foregoing integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
(105) When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer readable storage medium. Based on such an understanding, the technical solutions of the present disclosure essentially, or the part contributing to other approaches, or all or a part of the technical solutions may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (that may be a personal computer, a server, or a network device) or a processor to perform all or a part of the steps of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes any medium that can store program code, such as a universal serial bus (USB) flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc.
(106) The foregoing descriptions are merely specific implementations of the present disclosure, but are not intended to limit the protection scope of the present disclosure. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present disclosure shall fall within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.