Data Service Charging Method, Apparutus, and System
20180309584 ยท 2018-10-25
Inventors
Cpc classification
H04L12/14
ELECTRICITY
International classification
Abstract
A data service charging method, which is applied in a communications network of a policy and charging control (PCC) mechanism, and includes receiving, by an online charging system (OCS), a session setup request message from a gateway device, where the request message carries indication information indicating that the gateway device supports a charging session granularity of an Internet Protocol-connectivity access network (IP-CAN) session, and processing, by the OCS, the session setup request message according to the indication information and according to the charging session granularity of an IP-CAN session, and adding, to a response message to be returned to the gateway device, indication information indicating that the OCS performs charging according to the charging session granularity of an IP-CAN session.
Claims
1. A data service charging method, comprising: sending, by a gateway device, a charging session setup request of an Internet Protocol-connectivity access network (IP-CAN) bearer to an online charging system, the charging session setup request carrying indication information indicating that the gateway device supports a charging session granularity of an IP-CAN session; and receiving, by the gateway device, a response message from the online charging system according to the charging session setup request.
2. The method of claim 1, wherein the charging session setup request comprises a credit control request (CCR) initial (CCR-I) message, and the response message comprising a credit control answer (CCA) initial (CCA-I) message carrying indication information indicating that the online charging system performs charging according to the charging session granularity of the IP-CAN session.
3. The method of claim 1, further comprising sending, by the gateway device, a plurality of charging session setup requests to the online charging system, and before sending the charging session setup requests, the method further comprising adding, by the gateway device, to all the charging session setup requests, the indication information indicating that the gateway device supports the charging session granularity of the IP-CAN session.
4. The method of claim 1, further comprising sending, by the gateway device, a plurality of charging session setup requests to the online charging system, and before sending the charging session setup requests, the method further comprising adding, by the gateway device, only to a first or default charging session setup request, the indication information indicating that the gateway device supports the charging session granularity of the IP-CAN session.
5. The method of claim 1, further comprising sending, by the gateway device, one charging session setup request to the online charging system, before sending the one charging session setup requests, the method further comprising adding, by the gateway device, to the one charging session setup request, the indication information indicating that the gateway device supports the charging session granularity of the IP-CAN session, and the method further comprising sending, by the gateway device to the online charging system, a charging session setup request corresponding to another bearer after receiving the response message of the charging session setup request from the charging system not carrying indication information indicating that the online charging session granularity comprises the IP-CAN session.
6. The method of claim 2, further comprising: sending, by the gateway device to the online charging system, a first CCR-I message carrying the indication information indicating that the gateway device supports the charging session granularity of the IP-CAN session; receiving, by the gateway device, a CCA-I message from the charging system corresponding to the first CCR-I message carrying the indication information indicating that the online charging session granularity comprises the IP-CAN session; and performing, by the gateway device, charging process for data streams on all bearers of the IP-CAN session in an online charging session.
7. A data service charging method, comprising: sending, by a gateway device, charging information comprising a charging session granularity to an offline charging system; and processing, by the offline charging system, the charging information according to the charging session granularity.
8. The method of claim 7, wherein sending the charging information comprises sending, by the gateway device, the charging information to the offline charging system using an accounting request (ACR) message, the ACR message comprising indication information, and the indication information indicating that the reported charging information comprises Internet Protocol-connectivity access network (IP-CAN) session granularity charging information or IP-CAN bearer granularity charging information.
9. The method of claim 8, further comprising generating, by the offline charging system, charging data record (CDR) information according to the ACR message after receiving the ACR message from the gateway device, and the CDR information comprising indication information of the charging session granularity.
10. The method of claim 7, wherein the charging information comprises charging data record (CDR) information, and the method further comprising: generating, by the gateway device, the CDR information; and sending, by the gateway device, the CDR information to the offline charging system, the CDR information comprising indication information indicating that the reported charging information comprises Internet Protocol-connectivity access network (IP-CAN) session granularity charging information or IP-CAN bearer granularity charging information.
11. The method of claim 8, further comprising processing, by the offline charging system, the charging information according to the charging session granularity comprising the IP-CAN bearer granularity when the indication information is empty.
12. The method of claim 10, further comprising processing, by the offline charging system, the charging information according to the charging session granularity comprising the IP-CAN bearer granularity when the indication information is empty.
13. The method of claim 8, further comprising determining, by the gateway device, according to a configuration of the gateway device or according to an instruction of a policy and charging rules function (PCRF) in a home domain or visited domain, that the charging information sent to the offline charging system comprises the charging session granularity.
14. The method of claim 11, further comprising determining, by the gateway device, according to a configuration of the gateway device or according to an instruction of a policy and charging rules function (PCRF) in a home domain or visited domain, that the charging information sent to the offline charging system comprises the charging session granularity.
15. A data service charging system, comprising: a gateway device configured to report charging information comprising a charging granularity of the gateway device to an offline charging system, the charging granularity comprising an Internet Protocol-connectivity access network (IP-CAN) session charging granularity, and the offline charging system coupled to the gateway device and configured to process the charging information from the gateway device.
16. The data service charging system of claim 15, wherein the gateway device is further configured to report the charging information to the offline charging system using an accounting request (ACR) message, the ACR message comprising indication information indicating that the reported charging information comprises IP-CAN session granularity charging information or IP-CAN bearer granularity charging information.
17. The data service charging system of claim 16, wherein after receiving the ACR message from the gateway device, the offline charging system is further configured to generate charging data record (CDR) information according to the ACR message, and the CDR information comprising indication information of the charging granularity.
18. The data service charging system of claim 15, wherein the charging information comprises charging data record (CDR) information, and the gateway device being further configured to: generate the CDR information; and send the CDR information to the offline charging system, the CDR information comprising indication information, and the indication information indicating that the reported charging information comprises IP-CAN session granularity charging information or IP-CAN bearer granularity charging information.
19. The data service charging system of claim 15, wherein the gateway device is further configured to determine, according to a configuration of the gateway device or according to an instruction of a policy and charging rules function (PCRF) in a home domain or visited domain, that the charging information sent to the offline charging system comprises the charging granularity.
20. The method of claim 1, further comprising sending, by the gateway device, one charging session setup request to the online charging system, before sending the one charging session setup requests, the method further comprising adding, by the gateway device to the one charging session setup request, the indication information indicating that the gateway device supports the charging session granularity of the IP-CAN session, and the method further comprising resending, by the gateway device, a charging session setup request corresponding to all bearers to the charging system after receiving the response message of the charging session setup request from the charging system indicating that charging session setup fails.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0032] 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.
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
DESCRIPTION OF EMBODIMENTS
[0042] The technical solutions in the embodiments of the present disclosure are clearly described in the following with reference to the accompanying drawings.
[0043] A charging system in the present disclosure includes an OCS or an OFCS.
[0044] A gateway device in the present disclosure is a gateway at a network layer, including but not limited to, a GGSN, a P-GW, or the like. The gateway device includes a PCEF entity. In the embodiments of the present disclosure, an entity may also be described as a device. Each entity may be a separate device, or may be a device that is disposed in another device. For example, a PCRF entity may be a PCRF device. A charging trigger function (CTF) is usually embedded in a network entity. For example, the PCEF may be used as the CTF and embedded in a P-GW.
[0045] According to a main idea of the present disclosure, in online charging, if the CTF may simultaneously support two charging session granularities, when setting up a charging session, the gateway device and the OCS negotiate a session granularity, and set up the charging session between the gateway device and the OCS according to the negotiated granularity, and in offline charging, if the CTF may simultaneously support two charging session granularities, when charging information is being reported, a granularity of the reported charging information is indicated such that the OFCS processes a CDR according to an indication information.
[0046] The embodiments of the present disclosure may be implemented based on a PCC architecture shown in
[0047] Further, the session granularity negotiation module 4011 in the gateway 401 is configured to send a session setup request message, that is, a CCR message, to the charging system 402. The CCR message carries indication information indicating that the gateway 401 supports a charging session granularity of an IP-CAN session, or carries indication information indicating that the gateway 401 uses a charging session granularity of an IP-CAN session to perform session charging. The session granularity negotiation module 4011 may be further configured to receive a response message returned by the charging system 402. The response message carries indication information indicating that the charging system 402 determines to perform session charging according to the charging session granularity of an IP-CAN session.
[0048] The session granularity negotiation module 4012 in the charging system 402 is configured to receive the session setup request message, that is the CCR message, sent by the gateway 401. The CCR message carries the indication information indicating that the gateway 401 supports the charging session granularity of an IP-CAN session, or carries the indication information indicating that the gateway 401 uses the charging session granularity of an IP-CAN session to perform session charging. The session granularity negotiation module 4012 is further configured to return the response message to the gateway 401. When the CCR message received by the charging system 402 includes the indication information indicating that the gateway 401 supports the charging session granularity of an IP-CAN session, the response message returned to the gateway 401 may carry the indication information indicating that the charging system 402 determines to perform session charging according to the charging session granularity of an IP-CAN session.
[0049] According to the gateway and the charging system in the embodiments of the present disclosure, when setting up a charging session, the gateway and the charging system can negotiate a charging session granularity, and set up the charging session between the gateway and the charging system according to the negotiated granularity, thereby avoiding inconsistent processing of charging information in the case of two granularities, and improving charging accuracy and charging efficiency.
[0050] The following uses online charging as an example to illustrate a solution of an embodiment of the present disclosure. In this embodiment, a gateway device (including a PCEF function) reports a supported charging session granularity capability, and an OCS determines a charging session granularity. A gateway 401 and a charging system 402 shown in
[0051] In this embodiment, the gateway device may set up multiple IP-CAN bearers for one IP-CAN session, each IP-CAN bearer corresponds to one session setup request message, which may also be referred to as a CCR-initial message, that is, a CCR-I message. Therefore, a PCEF may simultaneously report multiple CCR-I messages to the OCS. In this case, refer to a schematic method flowchart shown in
[0052] First, the gateway device receives an IP-CAN session setup request sent by user equipment UE. After the gateway device determines, according to a PCC rule delivered by a PCRF, an IP-CAN bearer to be set up, the gateway device performs the following steps.
[0053] Step 502: The gateway device sends a charging session setup request message of an IP-CAN bearer, for example, a CCR-I message, to the online charging apparatus OCS, where the session setup request message carries indication information of a charging session granularity supported by the gateway device, for example, a granularity of an IP-CAN session.
[0054] Further, the gateway device sends the CCR-I message to the OCS for each IP-CAN bearer in order to set up a Gy interface charging session and to request authorization. The gateway device uses, for example, a session granularity negotiation module 4011 in
[0055] Specific methods for adding the parameter A to the CCR message by the gateway device PCEF may be as follows.
[0056] Method 1: The parameter A is added to a first CCR-I message. The OCS sets up, according to the parameter A carried in the first CCR-I message, a Gy session corresponding to the first CCR-I message, uses the Gy session as a Gy session of the IP-CAN session, and adds a parameter B to a CCA-I message that is returned to the gateway device and corresponds to the CCR-I message to indicate, to the gateway device, that the current Gy session is used as the Gy session of the IP-CAN session. In this way, the gateway device binds, to the Gy session according to the parameter B, all bearers of the IP-CAN session that require online charging, and performs, in the session, quota application and charging information reporting corresponding to all the bearers in the entire IP-CAN session. The OCS rejects a subsequently received CCR-I request, and adds a rejection cause to a CCA-I message that is to be returned to the gateway device and corresponds to the CCR-I message. Preferably, the CCA-I message corresponding to the first CCR-I message is first returned to the gateway device. Preferably, if the gateway device simultaneously sends a CCR-I message of a default bearer and a CCR-I message of a dedicated bearer, the CCR-I message corresponding to the default bearer is considered as the first CCR-I message, the parameter A is added to the Gy CCR-I message of the default bearer, and the PCEF further adds a packet data protocol (PDP) context type to the CCR-I message to indicate whether a current request corresponds to the default bearer.
[0057] Method 2: The parameter A is added to all CCR-I messages to be sent. The OCS receives, according to the parameter A, a first Gy CCR-I request, sets up a Gy session corresponding to the first CCR-I message, uses the Gy session as a Gy session of the IP-CAN session, and adds a parameter B to a CCA-I message that is returned to the gateway device and corresponds to the CCR-I message, to indicate, to the gateway device, that the current Gy session is used as the Gy session of the IP-CAN session. In this way, the gateway device binds, to the Gy session according to the parameter B, all bearers of the IP-CAN session that require online charging, and performs, in the session, quota application and charging information reporting corresponding to all the bearers in the entire IP-CAN session. The OCS rejects a subsequently received CCR-I request, and adds a rejection cause to a CCA-I message that is to be returned to the gateway device and corresponds to the CCR-I message. Preferably, the CCA-I message corresponding to the first CCR-I message is first returned to the gateway device. Preferably, if the gateway device simultaneously sends a CCR-I message of a default bearer and a CCR-I message of a dedicated bearer, the OCS considers the CCR-I message corresponding to the default bearer as the first CCR-I message, accepts a Gy CCR-I request of the default bearer according to the parameter A to set up a Gy session corresponding to the default bearer, uses the Gy session corresponding to the default bearer as a Gy session of the IP-CAN session, and rejects a CCR-I request of the dedicated (or referred to as dedicated) bearer. The PCEF adds a PDP context type to the CCR-I message to indicate whether the current session is for the default bearer. Each IP-CAN session has only one default bearer. A difference between the dedicated bearer and the default bearer lies in QoS and priorities.
[0058] Method 3: The gateway device PCEF first sends only one Gy CCR-I message, which carries the parameters A to indicate that the gateway device supports a session granularity. The OCS performs determining according to the parameter A, and if the OCS determines to use the session granularity this time, the OCS adds a parameter B to a CCA-I message to be returned to the gateway device to indicate, to the gateway device, that the current Gy session is used as a Gy session of the IP-CAN session. The gateway device binds, to the Gy session according to the parameter B, all bearers of the IP-CAN session that require online charging, and performs, in the session, quota application and charging information reporting corresponding to all the bearers in the entire IP-CAN session. If the OCS determines not to use the session granularity this time, the OCS does not indicate, in a CCA-I message returned to the gateway device, to the gateway device, that the current Gy session is used as a granularity of the IP-CAN session, and after receiving the CCA-I message, the gateway device uses the Gy session only as a Gy session of a corresponding bearer, and initiates a Gy session setup request (CCR-I) for another bearer that requires online charging. The parameter A is not added to all CCR-I messages sent this time. If the OCS cannot identify the parameter A, the OCS directly rejects the CCR-I message and returns an error code to the gateway device. After receiving the CCA-I message, the gateway device initiates a Gy session setup request (CCR-I) according to the error code for all bearers (including a current bearer) that require online charging. The parameter A is not added to all CCR-I messages sent this time. Preferably, if the gateway device determines that an online charging session needs to be set up for a default bearer and a dedicated bearer at the same time, only a Gy CCR-I message corresponding to the default bearer is sent for the first time. According to Method 3, the OCS can avoid complex processing.
[0059] Further, capability indication information, carried in the CCR-I message, of supporting a session charging session granularity may be shown in the following example:
TABLE-US-00001 <CCR> [Service-Information] [PS-Information] [PS-Information-Level]//Parameter A
[0060] The parameter A indicates the gateway device supports the charging session granularity of an IP-CAN session. If there is no parameter A, the charging session granularity is an IP-CAN bearer by default.
[0061] Step 504: The OCS processes the session setup request message according to the indication information in order to set up a charging session of a corresponding granularity.
[0062] The OCS processes the session setup request message according to the indication information includes that the OCS learns, according to the indication information, that a capability of the gateway device supports an IP-CAN session granularity charging session, and further determines a granularity of the charging session this time according to a capability of the OCS and a decision mechanism. A specific process is as follows.
[0063] If a charging session granularity this time is an IP-CAN session granularity charging session, the OCS performs processing according to the charging session of an IP-CAN session granularity, and adds a parameter B to a CCA-I message to be returned to the gateway device to indicate that the Gy charging session is used as the charging session of an IP-CAN session granularity. For example, a response message is returned to a gateway 401 using a session granularity negotiation module 4012 in a charging system in
[0064] A specific example method in which the parameter B is added to the CCA-I message is as follows:
TABLE-US-00002 <CCA> [Service-Information] [PS-Information] [PS-Information-Level]//Parameter B
[0065] The parameter B indicates that the OCS determines to use a charging session of an IP-CAN session granularity. If there is no parameter B, the OCS uses the charging session granularity of an IP-CAN bearer by default.
[0066] If the OCS cannot identify the parameter A, the OCS ignores the parameter A and performs processing according to a granularity of an IP-CAN bearer. Alternatively, if the OCS cannot identify the parameter A, the OCS rejects the CCR-I request and returns an error code to the PCEF to indicate that the parameter cannot be identified. Alternatively, although the parameter A can be identified, if the capability of the OCS does not support a session granularity charging session, or although the capability of the OCS supports a session granularity charging session, if the OCS determines not to use a session granularity charging session according to an internal policy of the OCS or a subscription relationship of a user, the OCS ignores the parameter A, and performs processing according to a bearer granularity Gy session.
[0067] Further, if the OCS simultaneously receives multiple Gy session CCR-I messages (greater than or equal to 2 messages) of a same IP-CAN session that are sent by the gateway device and determines that an IP-CAN session granularity charging session is to be set up, the OCS rejects another CCR-I message, and the gateway device associates another bearer with the Gy session that is set up. Alternatively, if the OCS simultaneously receives multiple Gy session CCR-I messages, the OCS rejects another CCR-I message and indicates, in a CCA message, a redirection to a Gy session that is set up (carrying a destination Gy session ID), and the gateway device associates the bearer with a Gy session corresponding to the session ID.
[0068] Further, if the gateway device has not received the CCA after the OCS returns the CCA, the gateway device initiates a new CCR-I request. If the OCS determines that a session granularity charging session is to be set up, and a session granularity Gy session is already set up, the OCS rejects the CCR-I charging session request, and optionally, indicates, in a CCA message, a redirection to the Gy session that is set up (carrying the destination Gy session ID).
[0069] Further, if the OCS simultaneously receives multiple Gy CCR-I messages, the OCS first processes a Gy CCR-I message corresponding to a default session.
[0070] Further, that the OCS performs processing according to the session granularity Gy includes that the OCS allocates a quota for a quota application in the received multiple CCR-I messages, returns the allocated quota to the gateway device in a CCA-I message of the session granularity Gy session to be set up, and rejects another CCR-I request in a CCA-I message corresponding to the other CCR-I message.
[0071] In the solution in this embodiment of the present disclosure, indication information indicating that the gateway device supports a charging session granularity of an IP-CAN session is added to a session request message sent by the gateway device to the OCS such that the OCS can learn of a support status of the gateway device for the charging session granularity and perform corresponding processing. If the OCS determines, according to the indication information, to process the charging session according to the charging session granularity of an IP-CAN session, the OCS adds, to a response message to be returned to the gateway device, indication information indicating that the OCS performs charging according to the charging session granularity of an IP-CAN session. Therefore, when setting up a charging session, the gateway device and the OCS can negotiate a charging session granularity, and set up the charging session between the gateway device and the OCS according to the negotiated granularity, thereby avoiding inconsistent processing of charging information in the case of two granularities, and improving charging accuracy and charging efficiency. In this embodiment, the OCS determines a to-be-used charging session granularity according to a charging session granularity support status reported by the gateway device, thereby alleviating decision burden on the PCRF.
[0072] The following continues to use online charging as an example to illustrate an implementation solution of determining a Gy interface charging session granularity by a gateway device (including a PCEF function). A gateway 401 and a charging system 402 shown in
[0073] In this embodiment, a gateway device determines the Gy charging session granularity, and when determining that only one Gy charging session is set up for one IP-CAN session, the gateway device may initiate only one Gy CCR-I message to an OCS, thereby avoiding simultaneously reporting multiple Gy CCR-I request messages. Referring to a flowchart shown in
[0074] Step 602: The gateway device sends a charging session setup request message of an IP-CAN session to the charging system OCS, where the request message includes charging session granularity indication information indicating that the charging session is an IP-CAN session granularity charging session.
[0075] Further, the PCEF determines, according to a configuration of the PCEF or a PCRF instruction, to set up a session granularity Gy for the IP-CAN session and initiates a Gy session setup request to the OCS. The CCR-I request uses a specific Attribute-Value Pair (AVP) to indicate that the current CCR-I message is a request message of the session granularity charging session. A carried parameter corresponds to the session granularity charging session, and a requested quota may be used for multiple bearers.
[0076] The gateway device may determine, according to a configuration of the gateway device, such as a charging characteristic configuration, a granularity of a charging session that needs to be set up. Alternatively, a PCRF (for example, a PCRF 400 shown in
[0077] Step 604: The OCS receives the session setup request message and processes the CCR-I message according to the indication information.
[0078] Further, if the OCS agrees to use the session granularity charging session, the OCS normally processes the session setup request message CCR-I, and returns a session setup success message.
[0079] If the OCS does not support the charging session granularity indication information, or the OCS supports the charging session granularity indication information but does not accept setup of a session granularity charging session according to the configuration, the OCS rejects the charging session request and returns an error code indicating that identification fails or a session granularity Gy session cannot be set up.
[0080] After receiving a failure response message from the OCS, the gateway device determines, according to an error code carried in a CCA-I message, that a bearer granularity charging session needs to be set up, and re-initiates a Gy charging session request of the bearer granularity for each IP-CAN bearer in the IP-CAN session.
[0081] In the solution in this embodiment of the present disclosure, indication information indicating that the gateway device uses a charging session granularity of an IP-CAN session to perform session charging is added to a session request message sent by the gateway device to the OCS such that the OCS can learn of a charging session granularity that the gateway device determines to use, and performs corresponding processing according to the indication information. Therefore, when setting up a charging session, the gateway device and the OCS can negotiate a charging session granularity, and set up the charging session between the gateway device and the OCS according to the negotiated granularity, thereby avoiding inconsistent processing of charging information in the case of two granularities, and improving charging accuracy and charging efficiency. Further, in the solution, the gateway device PCEF determines a to-be-used charging session granularity, thereby enhancing autonomy of the gateway device PCEF, and alleviating burden on the OCS.
[0082] An embodiment of the present disclosure further provides an implementation solution of determining a charging information collection granularity by a gateway device PCEF in the case of offline charging (OFCS). A method flowchart is shown in
[0083] Step 702: The gateway device adds, to charging information to be reported to the OFCS, indication information indicating that the reported charging information is IP-CAN session charging information.
[0084] Further, if an accounting request (ACR) message is used for charging information reporting, a parameter C is added to an ACR report command to indicate that the reported charging information is IP-CAN session granularity charging information or IP-CAN bearer granularity charging information. If the parameter does not exist, the charging information is the IP-CAN bearer granularity charging information by default. After receiving the ACR message that carries the parameter and is sent by the PCEF, a Charging Data Function (CDF) module generates a CDR according to the indication information, and adds a parameter D with a same function to the CDR. In this way, when processing the CDR, the charging system determines, according to the field, that information in the CDR is the IP-CAN session granularity charging information or the IP-CAN bearer granularity charging information, and performs correct CDR processing, for example, deduplication, merge, association, or rating.
[0085] If the PCEF directly generates a CDR, a parameter D with a same function is added to the generated CDR to indicate that the reported charging information is the IP-CAN session charging information or the IP-CAN bearer charging information. Alternatively, if the parameter does not exist, the charging information is the IP-CAN bearer charging information by default. In this way, when processing the CDR, the charging system determines, according to the field, that information in the CDR is the IP-CAN session charging information or the IP-CAN bearer charging information, and performs correct CDR processing, for example, deduplication, merge, association, or rating.
[0086] A specific example method in which the parameter C is added to the ACR command is as follows:
TABLE-US-00003 <ACR> [Service-Information] [PS-Information] [PS-Information-Level]//Parameter C
[0087] The parameter D added to the CDR is as follows:
TABLE-US-00004 CDR Level OC The parameter indicates that reported charging information is IP-CAN session granularity charging information or IP-CAN bearer granularity charging information. Alternatively, if the parameter does not exist, charging information is IP-CAN bearer granularity charging information by default.
[0088] Step 704: The OFCS processes the charging information that is reported by the gateway device and that includes a charging granularity of an IP-CAN session.
[0089] Further, when processing a CDR, the OFCS, for example, the charging system 402 in
[0090] The gateway device may determine, according to a configuration of the gateway device, such as a charging characteristic configuration, a charging session granularity (which is the IP-CAN session granularity charging information or the IP-CAN bearer granularity charging information) to be reported. Alternatively, a PCRF (such as a PCRF 400 in
[0091] In this embodiment, if the OFCS may simultaneously support two charging granularities, when charging information is being reported, a granularity of the reported charging information is indicated. The OFCS processes a CDR according to the indication information, thereby ensuring charging accuracy and improving charging efficiency.
[0092]
[0093] This embodiment of the present disclosure further provides a computer program product and a storage medium that stores the foregoing computer program. The computer program product includes program code stored in a computer readable storage medium, and the program code is loaded using the processor to implement the foregoing method. In some implementations, the memory 806 stores a program 8061, and the program 8061 may be executed by the processor 802. This program includes sending, by the gateway device, a session setup request message to an OCS, where the session setup request message carries indication information indicating that the gateway device supports a charging session granularity of an IP-CAN session, and receiving, by the gateway device, a response message returned by the OCS, where the response message carries indication information indicating that the OCS performs charging according to the charging session granularity of an IP-CAN session.
[0094] Alternatively, the program includes sending, by the gateway device, a session setup request message to an OCS, where the request message carries indication information indicating that the gateway device uses a charging session granularity of an IP-CAN session, and receiving, by the gateway device, a session setup success message returned by the OCS.
[0095] An OCS (including an OCS function) provided in another embodiment of the present disclosure also includes a hardware architecture similar to that in
[0096] Alternatively, this program includes receiving, by the OCS, a session setup request message sent by a gateway device, where the request message carries indication information indicating that the gateway device uses a charging session granularity of an IP-CAN session, and returning, by the OCS, a session setup success message to the gateway device.
[0097] It may be learned from the foregoing solutions provided in the embodiments of the present disclosure that, if the OCS may simultaneously support two charging session granularities, when setting up a charging session, the gateway device and the OCS negotiate a session granularity, and set up the charging session between the gateway device and the OCS according to the negotiated granularity, thereby avoiding inconsistent processing of charging information in the case of two granularities, and improving charging accuracy and charging efficiency.
[0098] Specific embodiments are used in this specification to describe the principle and implementations of the present disclosure. The foregoing embodiments are merely intended to help understand the method and idea of the present disclosure. In addition, with respect to the implementations and the application scope, modifications may be made by a person of ordinary skill in the art according to the idea of the present disclosure. Therefore, the specification shall not be construed as a limitation on the present disclosure.