WO2017114266A1 - Data service charging method, device and system - Google Patents
Data service charging method, device and system Download PDFInfo
- Publication number
- WO2017114266A1 WO2017114266A1 PCT/CN2016/111340 CN2016111340W WO2017114266A1 WO 2017114266 A1 WO2017114266 A1 WO 2017114266A1 CN 2016111340 W CN2016111340 W CN 2016111340W WO 2017114266 A1 WO2017114266 A1 WO 2017114266A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- session
- charging
- gateway device
- granularity
- online
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
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
- 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
-
- 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/141—Indication of costs
- H04L12/1414—Indication of costs in real-time
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/60—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on actual use of network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/64—On-line charging system [OCS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/66—Policy and charging system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/82—Criteria or parameters used for performing billing operations
- H04M15/8214—Data or packet based
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a data service charging method, apparatus, and system.
- PCC Policy and Charging Control
- PCEF Device Policy and Charging Enforcement Function
- TDF Traffic Detection Function
- BBERF Bearer Binding and Event Reporting Function
- PCF Policy and Accounting Policy and Charging Function
- AF Application Function
- OCS Online Charging System
- OFCS Offline Charging System
- OFS Subscription Information Base
- the PCEF device is a policy and charging enforcement entity, and is configured to perform a dynamic or static control policy, and may be located in a gateway device such as a GGSN or a P-GW.
- the TDF is an application detection and control entity, and is used to execute the PCRF device.
- the PCRF device is a policy and charging rule function entity, which is responsible for controlling the QoS, bandwidth, gating, and charging policies of the user equipment in the home network when using the service;
- the SPR is a subscription data storage entity, and is used for The user's subscription data is stored and mapped to an existing system, which may be an entity such as an HLR, an HSS, or an OCS.
- the PCRF entity performs Policy Decision, which generates a charging policy and a control policy for the data flow of the PCEF entity, and an application detection and application control policy generated by the TDF entity. Then, the PCRF entity installs the control policy of the activated application to the TDF entity to the PCEF.
- the PCEF entity initiates a credit quota application request for the data flow to the OCS according to the charging policy of the data flow delivered by the PCRF entity (if the bearer is established, the charging session is initiated to the OCS) Request), that is, a Credit Control Request (CCR) message, the OCS performs quota authorization, and returns a credit authorization to the PCEF entity.
- CCR Credit Control Request
- the PCEF and the OCS establish a charging session through the Gy interface, or express a Gy charging session.
- the Serving Gateway for the gateway, the Serving Gateway (S-GW)
- S-GW The interface between the PDN gateway (P-GW) and the PDN gateway (P-GW) is an S5 interface.
- the interface may use different mobility management protocols.
- PCEF is for each IP-Connected Bearer (IP-CAN Bearer) establishes a charging session or establishes a charging session for each IP-CAN Session; if the S5 interface is a proxy mobile IP protocol (Proxy) Mobile IP Protocol, PMIP: The PCEF establishes a charging session for each IP-CAN Session.
- GTP GPRS tunneling protocol
- IP-CAN Bearer IP-Connected Bearer
- PMIP proxy mobile IP protocol
- an IP-CAN session may correspond to one or more charging sessions (one for each charging session), and one Charging Session corresponds to one IP-CAN.
- Bearer Charging Session per IP-CAN Bearer, referred to as the IP-CAN Bearer granularity or Bearer granularity of the charging session;
- an IP-CAN Session corresponds to only one charging session and charging session.
- the granularity is that one charging session corresponds to one IP-CAN Session, that is, Charging Session per IP-CAN Session, and the charging session granularity is IP-CAN Session or Session granularity.
- the charging session as shown in FIG.
- CCR-I CCR initial message, that is, an initial message of the CCR request session establishment
- CCR-T CCR Termination message, CCR request session termination message
- the granularity of the charging session of the Gy interface may be an IP-CAN Session or an IP-CAN Bearer. In actual deployment, it is likely to be supported by the PCEF and the OCS/OFCS.
- the billing session is of different granularity.
- the billing information collection mechanism, the billing information reporting time, or the billing information set are different at the two levels. Therefore, if the two parties cannot negotiate the granularity of the billing session, the billing will result in billing. Processing errors or billing are not accurate.
- the embodiment of the present invention provides a data service charging method, device, and system.
- the gateway and the charging system may have two different charging session granularities. A more accurate charging can be achieved through a negotiation mechanism between the gateway device and the charging device for the granularity of the charging session.
- a data service charging method is provided, which is applied to a communication network under a policy and a charging control mechanism, the method comprising: receiving, by an online charging system, a session establishment request message sent by a gateway device, the request The message carries the charging session granularity supported by the gateway device; the online charging system processes the session establishment request according to the charging session granularity.
- the online system processes the session establishment request according to the charging session granularity, including: rejecting the A session establishment request returns an error code to the gateway device.
- the online system processes the session establishment request according to the charging session granularity, including: charging according to the charging
- the session granularity is an IP-CAN session to process the session establishment request message, and the response message returned to the gateway device carries the indication information that the charging session is an IP-CAN Session granular charging session.
- the session establishment request message is a CCR-I message, and if there are multiple CCR-I messages, the online charging system only processes the first one. Received CCR-I message.
- the online charging system processes only the first received CCR-I message and rejects other CCR-I messages,
- the rejected CCR-I return message carries the reason for the rejection, indicating that the online charging session has been established or uses an IP-CAN Session granular charging session or redirected to an established IP-CAN Session granular charging session.
- the online charging system processes only the first received CCR-I message and rejects the other
- the CCR-I message carries the reason for the rejection in the returned message of the rejected CCR-I, indicating that the online charging session has been established or uses an IP-CAN Session granular charging session or redirected to the established IP- CAN Session granular charging session.
- the online charging system allocates a quota for the quota application in the received multiple CCR-I messages, and allocates the allocated quota in a charging session corresponding to the first CCR-I message. Returned to the gateway device.
- a data service charging method which is applied in a communication network under a policy and charging control mechanism, and the method includes: the gateway device sends an IP-CAN Bearer charging session establishment to the online charging system. a request message, where the session establishment request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session;
- the gateway device receives a response message returned by the online charging system according to the session establishment request.
- the session establishment request message is a CCR-I message
- the response message returned to the gateway device is a CCA-I message
- the CCA-I message carries the
- the online charging system performs indication of charging according to the IP-CAN Session of the charging session granularity.
- the gateway device sends multiple CCR-I messages to the online charging system, where the gateway device is in all the multiple CCR-I
- the information carried by the gateway device supports the indication that the granularity of the charging session is an IP-CAN session.
- the gateway device sends multiple CCR-I messages to the online charging system, where the gateway device is only in the first Or the default CCR-I carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session.
- the gateway device carries the gateway device support meter in the first CCR-I message sent by the online charging system
- the fee session granularity is the indication information of the IP-CAN session
- the gateway device receives the CCA-I message returned by the charging system and carries the online charging system according to the granularity of the charging session as an IP-CAN Session.
- the gateway device binds all the bearers that need to be charged online in the IP-CAN session corresponding to the session establishment request to the charging session corresponding to the first CCR-I message. And in the charging session, the quota application and the charging information corresponding to all the bearers in the entire IP-CAN session are reported.
- a data service charging method which is applied in a communication network under a policy and a charging control mechanism, and the method includes: the gateway device sends an IP-CAN session charging session establishment to the online charging system. a request message, where the request message includes session granularity indication information, to indicate that the charging session requested by the session establishment request message is an IP-CAN Session granularity charging session; and the gateway device receives the online charging system The returned session was successfully established or rejected.
- the gateway device determines, according to its own configuration or a PCRF indication, a charging session establishment request that initiates an IP-CAN Session granularity.
- the gateway device receives the session establishment reject message returned by the online charging system, and determines that the need to be established according to the error code carried in the reject message
- the IP-CAN Bearer granular charging session re-initiates an IP-CAN Bearer granular Gy charging session request for each IP-CAN Bearer in the IP-CAN Session.
- a data service charging method is provided, which is applied to a policy and charging control machine.
- the method includes: the online charging system receives a session establishment request message sent by the gateway device, where the request message carries the indication information that the gateway device uses the IP address of the charging session as an IP-CAN session; The online charging system returns a session establishment success message to the gateway device.
- a fifth aspect provides a gateway device, which is used in a communication network under a policy and a charging control mechanism, where the gateway device includes a session granularity negotiation module.
- the session granularity negotiation module is configured to send a session establishment request message to the online charging system, where the session establishment request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session, or carries the gateway.
- the device uses the charging session granularity to indicate the charging session of the IP-CAN session, and the session granularity negotiation module is further configured to receive the response message returned by the online charging system, where the response message carries the charging
- the system confirms the indication information of the charging session according to the IP-CAN Session of the charging session granularity.
- the sixth aspect provides an online charging system, which is applied to a communication network under a policy and a charging control mechanism, where the online charging system includes a session granularity negotiation module, and the session granularity negotiation module is configured to receive a gateway device.
- a session establishment request message where the session establishment request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session, or carries the gateway device to use the charging session granularity as an IP-CAN session.
- the session information negotiation module is further configured to: return a response message to the gateway device, where the session establishment request message received by the online charging system includes the gateway device support meter
- the response message returned by the session granularity negotiation module to the gateway device carries the online charging system to confirm that the charging session granularity is IP-CAN Session for charging. Instructions for the session.
- the seventh aspect provides a data service charging system, which is used in a communication network under a policy and a charging control mechanism, and includes a gateway device and an online charging system, where the gateway device is configured to perform online charging
- the system sends a session establishment request message, where the session establishment request message carries the indication information that the gateway device supports the IP address of the IP-CAN session, or carries the charging session with the granularity of the IP-CAN session.
- the gateway device is further configured to receive a response message returned by the online charging system, where the response message carries the indication information that the charging system confirms that the charging session is IP-CAN Session to perform a charging session.
- the online charging system is configured to receive a session establishment request message sent by the gateway device, where the session establishment request message carries the indication information that the gateway device supports the IP address of the IP-CAN session, or carries the indication information
- the gateway device uses the charging session granularity to indicate the charging session for the IP-CAN session; the online charging system is further configured to return a response message to the gateway device, when the online charging system receives the session
- the setting request message includes the indication that the gateway device supports the charging session granularity of the IP-CAN session, and the response message returned by the online charging system to the gateway device carries the charging system confirmation.
- the indication information of the charging session is performed according to the IP-CAN Session of the charging session granularity.
- the eighth aspect provides a data service charging system, which is applied in a communication network under a policy and a charging control mechanism, where the service charging system includes a gateway device and an offline charging system, and the gateway device provides the
- the charging information reported by the offline charging system includes the charging granularity of the gateway device, and the charging granularity is an IP-CAN Session charging granularity; the offline charging system is configured to process the reported by the gateway device.
- the IP-CAN Session is the billing granularity of the billing information.
- the gateway device can determine the granularity of the charging session that can be supported or required to be established according to the configuration of the Charging Characteristic, or the PCRF device of the home device of the gateway device or the visited domain can determine the device initiated by the gateway device PCEF.
- the granularity of the fee session is sent to the gateway device PCEF through the PCC rule.
- the PCEF determines the granularity of the Gy interface charging session and initiates the negotiation with the OCS according to the PCC rule. This way, the gateway device PCEF can be reported at the same time. Gy CCR to OCS.
- the embodiment of the invention further provides a computer readable storage medium for storing computer software instructions for use in the above device or system, the computer program being configured to perform the above method.
- Yet another aspect of the present application provides a computer program product for performing the method of the above aspects when the computer product is executed.
- the present invention mainly solves
- the OCS may support two types of charging session granularity at the same time
- the gateway device and the online charging system negotiate the session granularity when establishing the charging session, and establish a charging session between the two according to the granularity of negotiation; or, offline
- the charging system may support the two types of charging session granularity, when the charging information is reported, the granularity of the reported charging information is specified, so that the charging system processes the bill according to the indication information, thereby improving the accuracy of the charging. Sex.
- FIG. 1 is a logical structural diagram of a policy and charging control system provided by the prior art
- FIG. 2(a) is a schematic diagram of a situation in which the charging session granularity is IP-CAN Bearer in the prior art
- FIG. 2(b) is a schematic diagram showing a situation in which the granularity of the charging session is an IP-CAN Session in the prior art
- FIG. 3 is a schematic diagram of a charging session process between a PCEF and an OCS in the prior art
- FIG. 4 is a schematic structural diagram of a data service charging system according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a method for determining a granularity of a charging session by an OCS according to an embodiment of the present disclosure
- FIG. 6 is a schematic diagram of a method for determining a granularity of a charging session by a PCEF according to an embodiment of the present invention
- FIG. 7 is a schematic structural diagram of a gateway device according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a charging system according to an embodiment of the present invention.
- the billing system in the present invention includes an online billing system (OCS) or an offline billing system (OFCS).
- OCS online billing system
- OFCS offline billing system
- the gateway device in the present invention refers to a network layer gateway, including but not limited to: a GGSN, a P-GW, etc.
- the gateway device includes a policy enforcement entity (PCEF); in the embodiment of the present invention, the entity may also be a table. Described as a device.
- Each entity may be a separate device or a device that is configured in other devices.
- the PCRF entity may be a PCRF device, and a Charging Trigger Function (CTF) is usually embedded in a network entity, such as a PCEF. As a CTF, it is embedded in the P-GW.
- CTF Charging Trigger Function
- the main idea of the present invention is that, in the case of online charging, if the CTF can support two types of charging session granularity at the same time, the session granularity is negotiated when the charging session is established, and the charging between the two is established according to the granularity of the negotiation.
- the CTF may support the two types of charging session granularity, when the charging information is reported, the granularity of the reported charging information is specified, so that the OFCS processes the bill according to the indication information.
- Embodiments of the invention may be implemented based on a PCC architecture as shown in FIG.
- the actual networking may be as shown in FIG. 4, which is a schematic diagram of an actual network architecture according to an embodiment of the present invention.
- the network element involved in the improvement of the embodiment of the present invention mainly includes a gateway 401 (including a PCEF function) and a charging system 402 (including an OCS function), wherein the gateway 401 and the charging system 402 respectively include a corresponding session granularity negotiation module. 4011 or 4012.
- the session granularity negotiation module 4011 in the gateway 401 is configured to send a session establishment request message, that is, a CCR message, to the charging system 402, where the CCR message carries the gateway 401 to support the charging session granularity as an IP-CAN session.
- the session granularity negotiation module 4011 is further configured to receive the response message returned by the charging system 402, where the response message carries
- the charging system 402 confirms the indication information of the charging session according to the IP-CAN Session of the charging session granularity.
- the session granularity negotiation module 4012 in the charging system 402 is configured to receive, by the gateway 401, a session establishment request message, that is, a CCR message, where the CCR message carries the indication information that the gateway 401 supports the IP address of the IP-CAN session, or The gateway 401 carries the indication information that the charging session granularity is the IP-CAN Session for the charging session; the session granularity negotiation module 4012 is further configured to return a response message to the gateway 401, when the charging system 402 receives the CCR message.
- the gateway 401 is included when the gateway 401 supports the indication information of the IP-CAN session.
- the returned response message may carry the indication information that the charging system 402 confirms that the charging session is IP-CAN Session to perform the charging session.
- the gateway and the charging system can negotiate the charging session granularity when establishing the charging session, and establish a charging session between the two according to the granularity of the negotiation, thereby avoiding two
- the problem of inconsistent processing of billing information under the granularity improves billing accuracy and billing efficiency.
- This embodiment is a granularity of the charging session reported by the gateway device (including the PCEF function), and the OCS determines the granularity of the charging session.
- the gateway 401 and billing system 402 shown in Figure 4 can be used to implement the methods of embodiments of the present invention.
- each IP-CAN Bearer corresponds to a session establishment request message or a credit control request (CCR).
- CCR-I message is initiated, so the PCEF may report multiple CCR-I messages to the OCS at the same time.
- the gateway device receives the IP-CAN Session establishment request sent by the user equipment UE, and after the gateway device determines the IP-CAN Bearer to be established according to the PCC rule issued by the PCRF, the gateway device performs the following steps:
- the gateway device sends a charging session establishment request message of the IP-CAN Bearer to the online charging device OCS, such as a CCR-I message, where the session establishment request message carries the charging session granularity supported by the gateway device, for example, the granularity is Indication information of the IP-CAN Session;
- the gateway device sends a CCR-I message to the OCS for each IP-CAN Bearer to establish a charging session of the Gy interface and request authorization, and the gateway device, for example, through the session granularity negotiation module 4011 in FIG.
- the I message carries a parameter that identifies the parameter that the PCEF can support the IP-CAN Session granular Gy session, such as parameter A.
- the gateway device carries the parameter A in the sent Gy CCR-I request to identify that the gateway device supports the IP-CAN Session granularity meter. Fee session.
- the method for the gateway device PCEF to carry the parameter A in the CCR message may be specifically as follows:
- Method 1 Carrying the parameter A in the first CCR-I; the OCS establishes a Gy session corresponding to the first CCR-I message according to the parameter A carried by the first CCR-I, and uses the Gy session as an IP.
- the Gy session of the CAN session in the CCA-I corresponding to the CCR-I returned to the gateway device, carrying the parameter B to indicate to the gateway device that the current Gy Session is the Gy session of the IP-CAN session, so that the gateway device according to the
- the parameter B binds all the bearers of the IP-CAN session that need to be charged online to the Gy session, and reports the quota application and charging information corresponding to all the bearers in the entire IP-CAN session in the session, and
- the subsequent received CCR-I request is rejected, and the rejection reason is carried in the CCA-I corresponding to the CCR-I returned to the gateway device.
- the CCA-I corresponding to the first CCR-I is first returned to the gateway device.
- the gateway device is the CCR-I that sends the default bearer and the dedicated bearer at the same time
- the CCR-I corresponding to the default bearer is regarded as the first CCR-I, and is carried by default (or default).
- the parameter A is carried in the Gy CCR-I
- the PCEF further carries a PDP Context Type in the CCR-I to indicate whether the current request corresponds to the default bearer.
- Method 2 Carrying the parameter A in all sent CCR-Is; according to the parameter A, the OCS receives the first Gy CCR-I request received by the OCS, and establishes the Gy corresponding to the first CCR-I message.
- the session, the Gy session is used as the Gy session of the IP-CAN Session, and the parameter B is carried in the CCA-I corresponding to the CCR-I returned to the gateway device to indicate the current Gy Session to the gateway device as the IP-CAN Session.
- the Gy session so that the gateway device binds all the bearers that need to be charged online under the IP-CAN session to the Gy session according to the parameter B, and performs quotas corresponding to all the bearers in the entire IP-CAN session in the session.
- the application and charging information are reported, and the subsequently received CCR-I request is rejected, and the reason for rejection is carried in the CCA-I corresponding to the CCR-I returned to the gateway device.
- the CCA-I corresponding to the first CCR-I is first returned to the gateway device.
- the OCS considers the CCR-I corresponding to the default bearer as the first CCR-I, and the OCS accepts the default bearer according to the parameter A.
- Gy CCR-I request to establish a Gy session corresponding to the default bearer, corresponding to the default bearer
- the Gy session acts as a Gy session for the IP-CAN Session and rejects the proprietary (or dedicated) hosted CCR-I request.
- the PCEF carries the PDP Context Type in the CCR-I to indicate whether the current session is for the default bearer.
- Each IP-CAN Session has one and only one default bearer. The difference between the dedicated bearer and the default bearer is: QoS and priority. different;
- Method 3 The gateway device PCEF sends only one Gy CCR-I for the first time, which carries parameter A to indicate that the gateway device supports the session granularity; the OCS determines according to the parameter A, and if it decides to use the session granularity, it returns to the gateway.
- the CCA-I of the device carries the parameter B to indicate to the gateway device that the current Gy Session is the Gy session of the IP-CAN session, and the gateway device according to the parameter B is all the bearers that need to be charged online under the IP-CAN session.
- Both are bound to the Gy session, and report the quota application and charging information corresponding to all the bearers in the entire IP-CAN session in the session; if the OCS decides not to use the session granularity this time, the CCA is returned to the gateway device.
- the gateway device In the case of -I, the gateway device is not specified as the granularity of the IP-CAN session, and after receiving the CCA-I, the gateway device only uses the Gy session as the Gy session of its corresponding bearer, and is other needs.
- the online charging bearer initiates a Gy session establishment request (CCR-I). All CCR-Is sent this time do not carry parameter A; if OCS cannot identify the parameter A, the CCR-I is directly rejected and an error is returned.
- the gateway device After the gateway device is connected to the CCA-I, the gateway device initiates a Gy session establishment request (CCR-I) for all bearers (including the current bearer) that need to be charged online according to the error code, and all CCRs sent this time.
- CCR-I does not carry parameter A.
- the gateway device determines that the default bearer and the dedicated bearer need to establish an online charging session at the same time, only the Gy CCR-I corresponding to the default bearer is sent for the first time.
- Method 3 can avoid the complexity of OCS processing.
- the capability indication information that carries the coverage of the session charging session in the CCR-I message may be as follows:
- parameter A indicates that the gateway device supports the charging session granularity as IP-CAN Session, if If not, the default charging session granularity is IP-CAN Bearer.
- the online charging system OCS processes the session establishment request message according to the indication information to establish a charging session of a corresponding granularity.
- processing the session establishment request message specifically includes:
- the OCS learns that the gateway device capability supports the IP-CAN Session granular charging session according to the indication information, and further determines the granularity of the current charging session according to its own capability and decision mechanism, as follows:
- the charging session is processed according to the IP-CAN Session granularity, and the parameter B is carried in the CCA-I returned to the gateway device.
- the Gy charging session is described as a charging session of IP-CAN Session granularity.
- the response message returned by the session granularity negotiation module 4012 of the charging system in FIG. 4 to the gateway 401 the response message returned by the gateway 401 carries the charging system 402 to confirm that the granularity of the charging session is IP-CAN Session. Instructions for charging.
- the parameter B indicates that the OCS decides to use the IP-CAN Session granularity charging session. If not, the default OCS adopts the charging session granularity as IP-CAN Bearer.
- the OCS ignores the parameter A and processes it according to the IP-CAN Bearer granularity; or, if the OCS does not recognize the parameter A, the OCS rejects the CCR-I request and returns an error code to the PCEF.
- the OCS Indicates that the parameter is not recognized; or, although the parameter A can be identified, the OCS capability does not support the session granularity of the charging session, or the OCS capability supports, but the session is not determined according to the OCS internal policy or the user's subscription relationship. For a granular charging session, the OCS ignores the parameter A and processes it according to the Gy of the Bearer granularity;
- the gateway device associates other Bearers to the established Gy session; or, if the OCS receives multiple Gy sessions CCR-I at the same time, rejects other CCR-Is, indicating the redirect to the established in the CCA message Gy Session (with the session ID of the destination Gy), the gateway device associates the Bearer to the Gy Session corresponding to the session ID;
- the gateway device initiates a new CCR-I request. If the OCS determines that the Session granularity charging session is established and the Session granularity Gy Session has been established, the network device rejects the The CCR-I charging session request, optionally, redirecting to the established Gy Session (the session ID carrying the destination Gy) in the CCA message;
- the OCS receives multiple Gy CCR-Is at the same time, first processing the Gy CCR-I corresponding to the default session;
- the processing of the OCS according to the Session granularity Gy includes: the OCS allocates a quota for the quota application in the received multiple CCR-Is, and returns the allocated quota to the gateway in the CCA-I of the Session granularity Gy Session to be established.
- the device rejects the CCR-I request in the CCA-I corresponding to the other CCR-I.
- the OCS is informed by the gateway device that the gateway device supports the charging session granularity by carrying the indication information that the gateway device supports the charging session granularity as the IP-CAN session in the session request message sent by the gateway device to the OCS. Supporting the situation and performing corresponding processing; the OCS, according to the indication information, if it is determined that the charging session is processed according to the IP-CAN Session, the OCS carries the OCS in the response message returned to the gateway device.
- the charging session granularity is the indication information of the IP-CAN session for charging, thereby realizing the negotiation of the charging session granularity when establishing the charging session, and establishing the charging session between the two according to the granularity of negotiation, avoiding two
- the problem that the processing of the charging information is inconsistent under the granularity improves the charging accuracy and the charging efficiency.
- the OCS decides according to the granularity of the charging session reported by the gateway device. The granularity of the charging session is adopted, which reduces the decision burden of the PCRF.
- the following is an example of online charging, which illustrates an implementation scheme for determining the granularity of the Gy interface charging session by the gateway device (including the PCEF function).
- the gateway 401 and the charging system 402 shown in FIG. 4 can be used to implement the present embodiment.
- Method of the embodiment of the invention :
- the gateway device since the Gy charging session granularity is determined by the gateway device, when it is determined that only one Gy charging session is established for one IP-CAN session, the gateway device can only initiate a Gy CCR-I message to the OCS. This avoids reporting multiple Gy CCR-I request messages at the same time. Referring to flowchart 6, the specific method is described as follows:
- the gateway device sends a charging session establishment request message of the IP-CAN session to the charging system OCS, where the request message includes charging session granularity indication information, to indicate that the charging session is an IP-CAN Session granularity charging.
- the PCEF determines to establish a Session granularity Gy for the IP-CAN Session according to the configuration of the self-configuration or the PCRF, and initiates a Gy session establishment request to the OCS, where the CCR-I request uses a specific AVP to indicate that the current CCR-I is
- the request message of the session granularity charging session carries the parameter corresponding to the session granularity charging session, and the requested quota may be used for multiple bearers;
- the gateway device may determine the granularity of the charging session to be established according to the configuration of the Charging Characteristic, or the PCRF of the home domain or the visited domain (such as the PCRF 400 in FIG. 4) determines the charging initiated by the gateway device PCEF.
- the granularity of the session is sent to the gateway device PCEF through the PCC rule.
- the PCEF determines the granularity of the Gy interface charging session according to the PCC rule.
- the OCS receives the session establishment request message, and processes the CCR-I message according to the indication information.
- the session establishment request message CCR-I is normally processed, and a session establishment success message is returned.
- the OCS does not support the charging session granularity indication information, or supports the charging session granularity indication information, but does not accept the establishment of a Session granular charging session according to the configuration, rejects the charging session request and returns an error code.
- the indication is unrecognizable or the Session granularity Gy session establishment failed.
- the gateway device After receiving the failure response message of the OCS, the gateway device determines that a Bearer granularity charging session needs to be established according to the error code carried in the CCA-I, and then initiates a Bearer granularity for each IP-CAN Bearer in the IP-CAN Session. Gy billing session request.
- the OCS is aware that the gateway device determines that the gateway device determines that the gateway device uses the charging session granularity to perform the charging session with the IP-CAN Session in the session request message sent by the gateway device to the OCS.
- the granularity of the charging session is adopted, and the OCS performs corresponding processing according to the indication information, thereby realizing the negotiation of the granularity of the charging session when establishing the charging session, and establishing the charging session between the two according to the granularity of negotiation, thereby avoiding
- the problem that the processing of the charging information is inconsistent under the two granularities improves the charging accuracy and the charging efficiency.
- the gateway device PCEF determines the granularity of the charging session, which can enhance the autonomy of the gateway device PCEF. Reduce the burden of OCS.
- the embodiment of the present invention further provides an implementation scheme of the gateway device PCEF determining the collection granularity of the charging information in the case of offline charging (OFCS).
- the method flowchart is as shown in FIG. 7, and the embodiment can be in FIG.
- the charging system 402 is implemented in the case of an offline charging system:
- the gateway device includes indication information in the charging information reported to the offline charging system, where the charging information that is reported is the charging information of the IP-CAN session.
- a parameter C is added to the ACR reporting command to indicate that the reported charging information is IP-CAN Session granular charging information or IP-CAN Bearer granularity.
- Billing information or if it is empty, the default is IP-CAN Bearer granular billing information, CDF (Charging Data)
- CDF Charging Data
- the fee system determines, according to the field, that the information in the bill is the IP-CAN Session granularity charging information or the IP-CAN Bearer granularity charging information, and performs correct CDR processing, such as: deduplication, merging, Association, rating, etc.
- a parameter D having the same function is added to the generated CDR to indicate that the reported charging information is the charging information of the IP-CAN Session or the charging information of the IP-CAN Bearer, or if If it is empty, it defaults to the accounting information of IP-CAN Bearer, so that when the billing system processes the bill, it determines whether the information in the bill is the billing information of the IP-CAN Session or the billing information of the IP-CAN Bearer according to the field. , to perform correct CDR processing, such as: de-duplication, merging, association, rating, etc.
- the parameter D added in the CDR is as follows:
- the offline charging system processes the charging information reported by the gateway device with the IP-CAN Session as the charging granularity.
- the offline charging system such as the charging system 402 in FIG. 4 (in this case, the offline charging system) when processing the bill, according to the newly added field of the charging information in the above step 702, that is, The fee granularity information identification field determines that the information in the bill is the IP-CAN Session granularity charging information, and performs further processing; of course, if the newly added field is empty, the IP-CAN Bearer charging granularity may be defaulted. Billing information.
- the gateway device may determine the reported charging session granularity (for IP-CAN Session granular charging information or IP-CAN Bearer granular charging information) according to the configuration of the Charging Characteristic, or the home domain or the visited domain.
- the PCRF (such as PCRF 400 in FIG. 4) determines the granularity of the charging session reported by the PCEF.
- the offline charging system when the offline charging system can support the two types of charging granularity at the same time, when the charging information is reported, the granularity of the reported charging information is specified, and the offline charging system is configured to process the CDR according to the indication information. In order to ensure accurate billing and improve the efficiency of billing.
- FIG. 8 is a diagram showing the structure of a gateway device (including a PCEF function) according to another embodiment of the present invention, which may be used to perform the steps in all the foregoing method embodiments.
- the gateway device may be the gateway 401 in FIG. 4, including at least one.
- a processor 802 e.g., a CPU
- the processor 802 is configured to execute executable modules, such as computer programs, stored in the memory 806.
- the memory 806 may include a high speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory such as at least one disk memory.
- the communication connection between the system gateway and at least one other network element is implemented by at least one network interface 805 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
- Embodiments of the present invention also provide a computer program product and a storage medium storing the above computer program.
- the computer program product includes program code stored in a computer readable storage medium, and the program code is loaded by a processor to implement the above method.
- the memory 806 stores a program 8061, and the program 8061 can be executed by the processor 802.
- the program includes:
- the gateway device sends a session establishment request message to the online charging system, and the session establishment request is cancelled.
- the information carrying the gateway device supporting the charging session granularity is an IP-CAN session indication information
- the gateway device receives the response message returned by the online charging system, and the response message carries the indication information that the online charging system performs charging according to the IP-CAN Session of the charging session granularity.
- the program includes:
- the gateway device sends a session establishment request message to the online charging system, where the request message carries the indication information that the gateway device uses the charging session granularity as an IP-CAN session;
- the gateway device receives a session establishment success message returned by the online charging system.
- the online charging system (including the OCS function) provided by another embodiment of the present invention also includes a similar hardware architecture of FIG. 7.
- the online charging system may be the online charging system 402 of FIG. 4, and may be used to perform all of the foregoing.
- the memory 806 stores a program 8062, and the program 8062 can be executed by the processor 802.
- the program includes:
- the online charging system receives a session establishment request message sent by the gateway device, where the request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session;
- the online charging system processes the session establishment request message according to the indication information according to the charging session granularity as an IP-CAN session, and carries the online charging system in a response message returned to the gateway device.
- the indication information for charging according to the IP-CAN Session of the charging session granularity is not limited to IP-CAN Session.
- this program includes:
- the online charging system receives a session establishment request message sent by the gateway device, where the request message carries the indication information that the gateway device uses the IP address of the charging session as an IP-CAN session;
- the online charging system returns a session establishment success message to the gateway device.
- the OCS may simultaneously support
- the session granularity is negotiated when the charging session is established, and the charging session between the two is established according to the granularity of the negotiation, so that the problem of inconsistent processing of charging information under two granularities can be avoided. , improve billing accuracy and billing efficiency.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
- Meter Arrangements (AREA)
Abstract
Description
本申请要求于2015年12月31日,2016年3月25日提交中国专利局、申请号为201511028359.0,201610178261.1发明名称为“一种数据业务计费方法,装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the Chinese Patent Office on December 31, 2015, March 25, 2016, and the application number is 201511028359.0, 201610178261.1. The Chinese patent application titled "A Data Service Billing Method, Apparatus and System" is preferred. The entire contents are hereby incorporated by reference.
本发明涉及通信技术领域,具体涉及一种数据业务计费方法,装置和系统。The present invention relates to the field of communications technologies, and in particular, to a data service charging method, apparatus, and system.
PCC(Policy and Charging Control,策略和计费控制)是3GPP(3rd Generation Partnership Project,第三代合作伙伴计划)定义的一套策略和计费控制机制,其架构如图1所示:该架构中包含策略和计费执行功能(PCEF设备,Policy and Charging Enforcement Function)、流量检测功能(TDF,Traffic Detection Function)、承载绑定和事件报告功能(BBERF,Bearer Binding and Event Reporting Function)、策略和计费规则功能(PCRF设备,Policy and Charging Function)、应用功能(AF,Application Function)、在线计费系统(OCS,Online Charging System)、离线计费系统(OFCS,Offline Charging System)和订阅信息库(SPR,Subscription Profile Repository)。该架构中会有Gx、Sy、Gy和Ro等接口,其中,Gx是PCRF和PCEF间接口,Sy是PCRF和OCS间接口,Gy是PCEF和OCS间在线计费接口,Ro是网元和OCS间在线计费接口的统称。其中,PCEF设备是策略和计费执行实体,用以执行动态的或静态的控制策略,可以位于GGSN、P-GW等网关设备,TDF是应用检测和控制实体,用于执行PCRF设备下发的应用检测和控制策略,PCRF设备是策略和计费规则功能实体,其负责归属网络中用户设备使用业务时的QoS、带宽、门控和计费策略等控制;SPR是订阅数据存储实体,用于存储用户的订阅数据,映射到现有系统,其可以是HLR、HSS、OCS等实体。在该机制中,PCRF实体进行 策略生成(Policy Decision),为PCEF实体生成数据流的计费策略和控制策略,为TDF实体生成的应用检测和应用的控制策略;然后,PCRF实体向TDF实体安装激活应用的控制策略,向PCEF实体安装流的控制和计费策略;PCEF实体根据PCRF实体下发的数据流的计费策略,向OCS发起数据流的信用配额申请请求(若是承载建立时,向OCS发起的是计费会话建立请求),即信用控制请求(Credit Control Request,CCR)消息,OCS进行配额授权,并向PCEF实体返回信用授权。PCC (Policy and Charging Control) is a set of policy and charging control mechanism defined by 3GPP (3rd Generation Partnership Project). Its architecture is shown in Figure 1: In this architecture Includes Policy and Charging Enforcement Function (PCEF Device), Traffic Detection Function (TDF), Bearer Binding and Event Reporting Function (BBERF), Policy and Accounting Policy and Charging Function (PCRF), Application Function (AF), Online Charging System (OCS), Offline Charging System (OFCS), and Subscription Information Base (OFCS) SPR, Subscription Profile Repository). There are interfaces such as Gx, Sy, Gy, and Ro in the architecture, where Gx is the interface between PCRF and PCEF, Sy is the interface between PCRF and OCS, Gy is the online charging interface between PCEF and OCS, and Ro is the network element and OCS. A collective term for the online billing interface. The PCEF device is a policy and charging enforcement entity, and is configured to perform a dynamic or static control policy, and may be located in a gateway device such as a GGSN or a P-GW. The TDF is an application detection and control entity, and is used to execute the PCRF device. Applying the detection and control strategy, the PCRF device is a policy and charging rule function entity, which is responsible for controlling the QoS, bandwidth, gating, and charging policies of the user equipment in the home network when using the service; the SPR is a subscription data storage entity, and is used for The user's subscription data is stored and mapped to an existing system, which may be an entity such as an HLR, an HSS, or an OCS. In this mechanism, the PCRF entity performs Policy Decision, which generates a charging policy and a control policy for the data flow of the PCEF entity, and an application detection and application control policy generated by the TDF entity. Then, the PCRF entity installs the control policy of the activated application to the TDF entity to the PCEF. The control and charging policy of the entity installation flow; the PCEF entity initiates a credit quota application request for the data flow to the OCS according to the charging policy of the data flow delivered by the PCRF entity (if the bearer is established, the charging session is initiated to the OCS) Request), that is, a Credit Control Request (CCR) message, the OCS performs quota authorization, and returns a credit authorization to the PCEF entity.
PCEF和OCS会通过Gy接口建立计费会话,或者表述为建立Gy计费会话,在演进的核心网(Evolved Packet Core,EPC)中,对于网关来说,业务网关(Serving Gateway,S-GW)和PDN网关(PDN gateway,P-GW)之间的接口是S5接口,该接口可能采用不同的移动性管理协议,当S5接口采用GPRS隧道协议(GPRS tunneling protocol,GTP)时:PCEF为每个IP连接接入网承载(IP-CAN Bearer)建立一个计费会话或者为每个为IP连接接入网会话(IP-CAN Session)建立一个计费会话;如果S5接口是代理移动IP协议(Proxy Mobile IP Protocol,PMIP)时:PCEF为每个IP-CAN Session建立一个计费会话。The PCEF and the OCS establish a charging session through the Gy interface, or express a Gy charging session. In the Evolved Packet Core (EPC), for the gateway, the Serving Gateway (S-GW) The interface between the PDN gateway (P-GW) and the PDN gateway (P-GW) is an S5 interface. The interface may use different mobility management protocols. When the S5 interface uses the GPRS tunneling protocol (GTP): PCEF is for each IP-Connected Bearer (IP-CAN Bearer) establishes a charging session or establishes a charging session for each IP-CAN Session; if the S5 interface is a proxy mobile IP protocol (Proxy) Mobile IP Protocol, PMIP): The PCEF establishes a charging session for each IP-CAN Session.
如图2(a)所示,一个IP-CAN Session可能对应一个或多个计费会话(每个计费会话对应一个承载Bearer),此时一个计费会话(Charging Session)对应一个IP-CAN Bearer,即Charging Session per IP-CAN Bearer,简称计费会话粒度为IP-CAN Bearer粒度或者Bearer粒度;如图2(b)所示,一个IP-CAN Session只对应一个计费会话,计费会话的粒度为一个计费会话对应一个IP-CAN Session,即Charging Session per IP-CAN Session,简称计费会话粒度为IP-CAN Session或者Session粒度。所述一个计费会话,参考如图3所示,是指PCEF和OCS之间的计费会话从PCEF发送CCR-I(CCR initial消息,即CCR请求会话建立的初始消息)给OCS,到PCEF发送CCR-T(CCR Termination消息,即CCR请求会话终止消息)给OCS的一个连续过程。每个计费会话有唯一的Session ID标识。 As shown in Figure 2(a), an IP-CAN session may correspond to one or more charging sessions (one for each charging session), and one Charging Session corresponds to one IP-CAN. Bearer, Charging Session per IP-CAN Bearer, referred to as the IP-CAN Bearer granularity or Bearer granularity of the charging session; as shown in Figure 2(b), an IP-CAN Session corresponds to only one charging session and charging session. The granularity is that one charging session corresponds to one IP-CAN Session, that is, Charging Session per IP-CAN Session, and the charging session granularity is IP-CAN Session or Session granularity. The charging session, as shown in FIG. 3, refers to that the charging session between the PCEF and the OCS sends a CCR-I (CCR initial message, that is, an initial message of the CCR request session establishment) from the PCEF to the OCS to the PCEF. A continuous process of sending a CCR-T (CCR Termination message, CCR request session termination message) to the OCS. Each billing session has a unique Session ID identifier.
现有技术应用Gy接口进行计费信息的传输和处理时,Gy接口的计费会话粒度可以是IP-CAN Session或者IP-CAN Bearer,在实际部署中,很可能PCEF和OCS/OFCS所支持的计费会话粒度不同,由于两种粒度下计费信息的收集机制、计费信息的上报时机、或者计费信息集合存在不同,所以如果双方不能就计费会话的粒度协商一致,会导致计费处理错误或者计费不准确。In the prior art, when the Gy interface is used for the transmission and processing of the charging information, the granularity of the charging session of the Gy interface may be an IP-CAN Session or an IP-CAN Bearer. In actual deployment, it is likely to be supported by the PCEF and the OCS/OFCS. The billing session is of different granularity. The billing information collection mechanism, the billing information reporting time, or the billing information set are different at the two levels. Therefore, if the two parties cannot negotiate the granularity of the billing session, the billing will result in billing. Processing errors or billing are not accurate.
发明内容Summary of the invention
本发明实施例提供了一种数据业务计费方法、装置和系统,在S5接口采用不同的移动性管理协议导致网关和计费系统之间可能存在两种不同的计费会话粒度的背景下,通过一种网关设备和计费设备之间就计费会话粒度进行的协商机制,能够实现更加准确的计费。The embodiment of the present invention provides a data service charging method, device, and system. In the context that different mobility management protocols are used on the S5 interface, the gateway and the charging system may have two different charging session granularities. A more accurate charging can be achieved through a negotiation mechanism between the gateway device and the charging device for the granularity of the charging session.
第一方面,提供了一种数据业务计费方法,应用在策略和计费控制机制下的通信网络中,所述方法包括:在线计费系统接收网关设备发送的会话建立请求消息,所述请求消息中携带该网关设备支持的计费会话粒度;所述在线计费系统根据所述计费会话粒度,对所述会话建立请求进行处理。In a first aspect, a data service charging method is provided, which is applied to a communication network under a policy and a charging control mechanism, the method comprising: receiving, by an online charging system, a session establishment request message sent by a gateway device, the request The message carries the charging session granularity supported by the gateway device; the online charging system processes the session establishment request according to the charging session granularity.
根据第一方面的第一实施方式中,所述计费会话粒度为IP-CAN Session时,所述在线系统根据所述计费会话粒度,对所述会话建立请求进行处理,包括:拒绝所述会话建立请求,向所述网关设备返回错误码。According to the first embodiment of the first aspect, when the charging session granularity is an IP-CAN session, the online system processes the session establishment request according to the charging session granularity, including: rejecting the A session establishment request returns an error code to the gateway device.
根据第一方面的第二实施方式中,所述计费会话粒度为IP-CAN Session时,所述在线系统根据所述计费会话粒度,对所述会话建立请求进行处理,包括:按照计费会话粒度为IP-CAN Session来处理所述会话建立请求消息,并在返回给所述网关设备的应答消息中携带所述计费会话为IP-CAN Session粒度计费会话的指示信息。According to the second embodiment of the first aspect, when the charging session granularity is an IP-CAN session, the online system processes the session establishment request according to the charging session granularity, including: charging according to the charging The session granularity is an IP-CAN session to process the session establishment request message, and the response message returned to the gateway device carries the indication information that the charging session is an IP-CAN Session granular charging session.
根据第一方面的第二实施方式中的第一实施方式,所述会话建立请求消息为CCR-I消息,如果所述CCR-I消息有多条,所述在线计费系统只处理第一条接收到的CCR-I消息。 According to the first implementation manner of the second implementation manner of the first aspect, the session establishment request message is a CCR-I message, and if there are multiple CCR-I messages, the online charging system only processes the first one. Received CCR-I message.
根据第一方面的第二实施方式中的第一实施方式中的第一实施方式,所述在线计费系统只处理第一条接收到的CCR-I消息并拒绝其他的CCR-I消息,在所述拒绝的CCR-I的返回消息中携带拒绝的原因,指示所述在线计费会话已经建立或者使用IP-CAN Session粒度计费会话或者重定向到已建立的IP-CAN Session粒度计费会话According to the first embodiment of the first embodiment in the second embodiment of the first aspect, the online charging system processes only the first received CCR-I message and rejects other CCR-I messages, The rejected CCR-I return message carries the reason for the rejection, indicating that the online charging session has been established or uses an IP-CAN Session granular charging session or redirected to an established IP-CAN Session granular charging session.
根据第一方面的第二实施方式中的第一实施方式中的第一实施方式中的第一实施方式,所述在线计费系统只处理第一条接收到的CCR-I消息并拒绝其他的CCR-I消息,在所述拒绝的CCR-I的返回消息中携带拒绝的原因,指示所述在线计费会话已经建立或者使用IP-CAN Session粒度计费会话或者重定向到已建立的IP-CAN Session粒度计费会话。According to the first embodiment of the first embodiment in the first embodiment of the second embodiment of the first aspect, the online charging system processes only the first received CCR-I message and rejects the other The CCR-I message carries the reason for the rejection in the returned message of the rejected CCR-I, indicating that the online charging session has been established or uses an IP-CAN Session granular charging session or redirected to the established IP- CAN Session granular charging session.
根据第一方面的第二实施方式中的第一实施方式中的第一实施方式,或者根据第一方面的第二实施方式中的第一实施方式中的第一实施方式中的第一实施方式,所述在线计费系统为所接收到的所述多个CCR-I消息中的配额申请分配配额,并在所述第一条CCR-I消息对应的计费会话中将所述分配的配额返回给所述网关设备。The first embodiment in the first embodiment in the second embodiment according to the first aspect, or the first embodiment in the first embodiment in the first embodiment in the second embodiment according to the first aspect The online charging system allocates a quota for the quota application in the received multiple CCR-I messages, and allocates the allocated quota in a charging session corresponding to the first CCR-I message. Returned to the gateway device.
第二方面,提供了一种数据业务计费方法,应用在策略和计费控制机制下的通信网络中,所述方法包括:网关设备向在线计费系统发送IP-CAN Bearer的计费会话建立请求消息,所述会话建立请求消息中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息;In a second aspect, a data service charging method is provided, which is applied in a communication network under a policy and charging control mechanism, and the method includes: the gateway device sends an IP-CAN Bearer charging session establishment to the online charging system. a request message, where the session establishment request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session;
所述网关设备接收所述在线计费系统根据所述会话建立请求返回的应答消息。The gateway device receives a response message returned by the online charging system according to the session establishment request.
根据第二方面的第一实施方式中,所述会话建立请求消息为CCR-I消息,所述返回给所述网关设备的应答消息为CCA-I消息,所述CCA-I消息中携带所述在线计费系统按照计费会话粒度为IP-CAN Session来进行计费的指示信息。According to the first embodiment of the second aspect, the session establishment request message is a CCR-I message, and the response message returned to the gateway device is a CCA-I message, and the CCA-I message carries the The online charging system performs indication of charging according to the IP-CAN Session of the charging session granularity.
根据第二方面的第一实施方式中的第二实施方式,所述网关设备向所述在线计费系统发送多条CCR-I消息,所述网关设备在所有所述多条CCR-I消 息中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息。According to the second implementation manner of the first embodiment of the second aspect, the gateway device sends multiple CCR-I messages to the online charging system, where the gateway device is in all the multiple CCR-I The information carried by the gateway device supports the indication that the granularity of the charging session is an IP-CAN session.
根据第二方面的第一实施方式中的第二实施方式中的第三实施方式,所述网关设备向所述在线计费系统发送多条CCR-I消息,所述网关设备只在第一条或者默认的CCR-I中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息。According to the third implementation manner of the second embodiment in the first embodiment of the second aspect, the gateway device sends multiple CCR-I messages to the online charging system, where the gateway device is only in the first Or the default CCR-I carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session.
根据第二方面的第一实施方式中的第二实施方式中的第三实施方式,所述网关设备向所述在线计费系统发送的第一条CCR-I消息中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息,所述网关设备接收到所述计费系统返回的CCA-I消息中携带所述在线计费系统按照计费会话粒度为IP-CAN Session来进行计费的指示信息后,所述网关设备将所述会话建立请求对应的IP-CAN Session下的所有需要在线计费的承载都绑定到所述第一条CCR-I消息对应的计费会话,并在所述计费会话中进行整个IP-CAN Session中所有承载对应的配额申请和计费信息上报。According to the third implementation manner of the second embodiment in the first embodiment of the second aspect, the gateway device carries the gateway device support meter in the first CCR-I message sent by the online charging system The fee session granularity is the indication information of the IP-CAN session, and the gateway device receives the CCA-I message returned by the charging system and carries the online charging system according to the granularity of the charging session as an IP-CAN Session. After the indication information of the fee, the gateway device binds all the bearers that need to be charged online in the IP-CAN session corresponding to the session establishment request to the charging session corresponding to the first CCR-I message. And in the charging session, the quota application and the charging information corresponding to all the bearers in the entire IP-CAN session are reported.
第三方面,提供了一种数据业务计费方法,应用在策略和计费控制机制下的通信网络中,所述方法包括:网关设备向在线计费系统发送IP-CAN Session的计费会话建立请求消息,所述请求消息中包含会话粒度指示信息,以指示所述会话建立请求消息所请求的计费会话为IP-CAN Session粒度的计费会话;所述网关设备接收所述在线计费系统返回的会话建立成功或者拒绝消息。In a third aspect, a data service charging method is provided, which is applied in a communication network under a policy and a charging control mechanism, and the method includes: the gateway device sends an IP-CAN session charging session establishment to the online charging system. a request message, where the request message includes session granularity indication information, to indicate that the charging session requested by the session establishment request message is an IP-CAN Session granularity charging session; and the gateway device receives the online charging system The returned session was successfully established or rejected.
根据第三方面的第一实施方式,所述网关设备根据自身配置或者PCRF指示,确定发起IP-CAN Session粒度的计费会话建立请求。According to the first implementation manner of the third aspect, the gateway device determines, according to its own configuration or a PCRF indication, a charging session establishment request that initiates an IP-CAN Session granularity.
根据第三方面的第一实施方式种的第二实施方式,所述网关设备接收到所述在线计费系统返回的会话建立拒绝消息,根据所述拒绝消息中所携带的错误码,确定需要建立IP–CAN Bearer粒度的计费会话,则重新为IP-CAN Session中的每个IP-CAN Bearer发起IP-CAN Bearer粒度的Gy计费会话请求。According to the second embodiment of the first embodiment of the third aspect, the gateway device receives the session establishment reject message returned by the online charging system, and determines that the need to be established according to the error code carried in the reject message The IP-CAN Bearer granular charging session re-initiates an IP-CAN Bearer granular Gy charging session request for each IP-CAN Bearer in the IP-CAN Session.
第四方面,提供了一种数据业务计费方法,应用在策略和计费控制机 制下的通信网络中,所述方法包括:在线计费系统接收网关设备发送的会话建立请求消息,所述请求消息中携带该网关设备使用计费会话粒度为IP-CAN Session的指示信息;所述在线计费系统向所述网关设备返回会话建立成功消息。In a fourth aspect, a data service charging method is provided, which is applied to a policy and charging control machine. In the communication network, the method includes: the online charging system receives a session establishment request message sent by the gateway device, where the request message carries the indication information that the gateway device uses the IP address of the charging session as an IP-CAN session; The online charging system returns a session establishment success message to the gateway device.
第五方面,提供了一种网关设备,应用在策略和计费控制机制下的通信网络中,所述网关设备包含会话粒度协商模块,A fifth aspect provides a gateway device, which is used in a communication network under a policy and a charging control mechanism, where the gateway device includes a session granularity negotiation module.
所述会话粒度协商模块用于向在线计费系统发送会话建立请求消息,所述会话建立请求消息中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息,或者携带所述网关设备使用计费会话粒度为IP-CAN Session进行计费会话的指示信息;所述会话粒度协商模块还用于接收所述在线计费系统返回的应答消息,该应答消息中携带有所述计费系统确认按照计费会话粒度为IP-CAN Session来进行计费会话的指示信息。The session granularity negotiation module is configured to send a session establishment request message to the online charging system, where the session establishment request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session, or carries the gateway. The device uses the charging session granularity to indicate the charging session of the IP-CAN session, and the session granularity negotiation module is further configured to receive the response message returned by the online charging system, where the response message carries the charging The system confirms the indication information of the charging session according to the IP-CAN Session of the charging session granularity.
第六方面,提供了一种在线计费系统,应用在策略和计费控制机制下的通信网络中,所述在线计费系统包含会话粒度协商模块,所述会话粒度协商模块用于接收网关设备发送的会话建立请求消息,所述会话建立请求消息携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息,或者携带所述网关设备使用计费会话粒度为IP-CAN Session进行计费会话的指示信息;所述会话粒度协商模块还用于向所述网关设备返回应答消息,当所述在线计费系统收到的所述会话建立请求消息中包含的是所述网关设备支持计费会话粒度为IP-CAN Session的指示信息时,所述会话粒度协商模块给网关设备返回的应答消息中携带有所述在线计费系统确认按照计费会话粒度为IP-CAN Session来进行计费会话的指示信息。The sixth aspect provides an online charging system, which is applied to a communication network under a policy and a charging control mechanism, where the online charging system includes a session granularity negotiation module, and the session granularity negotiation module is configured to receive a gateway device. a session establishment request message, where the session establishment request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session, or carries the gateway device to use the charging session granularity as an IP-CAN session. The session information negotiation module is further configured to: return a response message to the gateway device, where the session establishment request message received by the online charging system includes the gateway device support meter When the fee session granularity is the indication information of the IP-CAN session, the response message returned by the session granularity negotiation module to the gateway device carries the online charging system to confirm that the charging session granularity is IP-CAN Session for charging. Instructions for the session.
第七方面,提供了一种数据业务计费系统,应用在策略和计费控制机制下的通信网络中,包含网关设备和在线计费系统,所述网关设备,用于向所述在线计费系统发送会话建立请求消息,所述会话建立请求消息中携带该网关设备支持计费会话粒度为IP-CAN Session的指示信息,或者携带该网关使用计费会话粒度为IP-CAN Session进行计费会话的指示信息;所 述网关设备还用于接收所述在线计费系统返回的应答消息,所述应答消息中携带有所述计费系统确认按照计费会话粒度为IP-CAN Session来进行计费会话的指示信息。所述在线计费系统,用于接收所述网关设备发送的会话建立请求消息,所述会话建立请求消息中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息,或者携带所述网关设备使用计费会话粒度为IP-CAN Session进行计费会话的指示信息;所述在线计费系统还用于向所述网关设备返回应答消息,当所述在线计费系统收到的会话建立请求消息中包含的是所述网关设备支持计费会话粒度为IP-CAN Session的指示信息时,所述在线计费系统给所述网关设备返回的应答消息中携带有所述计费系统确认按照计费会话粒度为IP-CAN Session来进行计费会话的指示信息。The seventh aspect provides a data service charging system, which is used in a communication network under a policy and a charging control mechanism, and includes a gateway device and an online charging system, where the gateway device is configured to perform online charging The system sends a session establishment request message, where the session establishment request message carries the indication information that the gateway device supports the IP address of the IP-CAN session, or carries the charging session with the granularity of the IP-CAN session. Instructions; The gateway device is further configured to receive a response message returned by the online charging system, where the response message carries the indication information that the charging system confirms that the charging session is IP-CAN Session to perform a charging session. The online charging system is configured to receive a session establishment request message sent by the gateway device, where the session establishment request message carries the indication information that the gateway device supports the IP address of the IP-CAN session, or carries the indication information The gateway device uses the charging session granularity to indicate the charging session for the IP-CAN session; the online charging system is further configured to return a response message to the gateway device, when the online charging system receives the session The setting request message includes the indication that the gateway device supports the charging session granularity of the IP-CAN session, and the response message returned by the online charging system to the gateway device carries the charging system confirmation. The indication information of the charging session is performed according to the IP-CAN Session of the charging session granularity.
第八方面,提供了一种数据业务计费系统,应用在策略和计费控制机制下的通信网络中,所述业务计费系统包含网关设备和离线计费系统,所述网关设备向所述离线计费系统上报的计费信息中包含所述网关设备的计费粒度,且所述计费粒度为IP-CAN Session计费粒度;所述离线计费系统用于处理所述网关设备上报的以IP-CAN Session为计费粒度的计费信息。The eighth aspect provides a data service charging system, which is applied in a communication network under a policy and a charging control mechanism, where the service charging system includes a gateway device and an offline charging system, and the gateway device provides the The charging information reported by the offline charging system includes the charging granularity of the gateway device, and the charging granularity is an IP-CAN Session charging granularity; the offline charging system is configured to process the reported by the gateway device. The IP-CAN Session is the billing granularity of the billing information.
针对上述所有方面,网关设备可以根据自身配置,如Charging Characteristic的配置确定能够支持,或者要求建立的计费会话粒度;或者,网关设备归属域或者拜访域的PCRF设备可以决定网关设备PCEF发起的计费会话的粒度,并通过PCC规则下发给网关设备PCEF,PCEF根据该PCC规则,确定Gy接口计费会话的粒度并发起和OCS之间的协商,这种方式可以避免网关设备PCEF同时上报多个Gy CCR给OCS。For all the above aspects, the gateway device can determine the granularity of the charging session that can be supported or required to be established according to the configuration of the Charging Characteristic, or the PCRF device of the home device of the gateway device or the visited domain can determine the device initiated by the gateway device PCEF. The granularity of the fee session is sent to the gateway device PCEF through the PCC rule. The PCEF determines the granularity of the Gy interface charging session and initiates the negotiation with the OCS according to the PCC rule. This way, the gateway device PCEF can be reported at the same time. Gy CCR to OCS.
本发明实施例还提供了一种计算机可读存储介质,用于储存为上述设备或者系统所用的计算机软件指令,所述计算机程序配置为执行上述方法。The embodiment of the invention further provides a computer readable storage medium for storing computer software instructions for use in the above device or system, the computer program being configured to perform the above method.
本申请的又一方面提供了一种计算机程序产品,当该计算机产品被执行时,其用于执行上述方面所述的方法。Yet another aspect of the present application provides a computer program product for performing the method of the above aspects when the computer product is executed.
从本发明实施例提供的以上技术方案可以看出,本发明主要解决了在 OCS可能同时支持两种计费会话粒度的情况下,网关设备和在线计费系统在建立计费会话时协商会话粒度,并根据协商的粒度建立二者之间的计费会话;或者,在离线计费系统可能同时支持两种计费会话粒度的情况下,在上报计费信息时,指明所上报计费信息的粒度,以便计费系统根据该指示信息处理话单,提高了计费的准确性。It can be seen from the above technical solutions provided by the embodiments of the present invention that the present invention mainly solves When the OCS may support two types of charging session granularity at the same time, the gateway device and the online charging system negotiate the session granularity when establishing the charging session, and establish a charging session between the two according to the granularity of negotiation; or, offline When the charging system may support the two types of charging session granularity, when the charging information is reported, the granularity of the reported charging information is specified, so that the charging system processes the bill according to the indication information, thereby improving the accuracy of the charging. Sex.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1为现有技术提供的策略和计费控制系统逻辑结构图;1 is a logical structural diagram of a policy and charging control system provided by the prior art;
图2(a)为现有技术中计费会话粒度为IP-CAN Bearer的情形示意图;2(a) is a schematic diagram of a situation in which the charging session granularity is IP-CAN Bearer in the prior art;
图2(b)为现有技术中计费会话粒度为IP-CAN Session的情形示意图;2(b) is a schematic diagram showing a situation in which the granularity of the charging session is an IP-CAN Session in the prior art;
图3为现有技术中PCEF和OCS之间一个计费会话过程示意图;3 is a schematic diagram of a charging session process between a PCEF and an OCS in the prior art;
图4为本发明实施例的数据业务计费系统架构示意图;4 is a schematic structural diagram of a data service charging system according to an embodiment of the present invention;
图5为本发明实施例提供的OCS决定计费会话粒度方法示意图;FIG. 5 is a schematic diagram of a method for determining a granularity of a charging session by an OCS according to an embodiment of the present disclosure;
图6为本发明实施例提供的PCEF决定计费会话粒度方法示意图;FIG. 6 is a schematic diagram of a method for determining a granularity of a charging session by a PCEF according to an embodiment of the present invention;
图7为本发明实施例提供的一种网关设备的结构示意图;FIG. 7 is a schematic structural diagram of a gateway device according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种计费系统的结构示意图。FIG. 8 is a schematic structural diagram of a charging system according to an embodiment of the present invention.
下面将结合附图,对本发明实施例中的技术方案进行清楚、完整的描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
本发明中的计费系统包括在线计费系统(OCS)或离线计费系统(OFCS)。The billing system in the present invention includes an online billing system (OCS) or an offline billing system (OFCS).
本发明中的网关设备指网络层的网关,包括但不限于:GGSN、P-GW等,该网关设备包括策略执行实体(PCEF);在本发明实施例中,实体也可以表 述为设备。各个实体既可以是单独的设备,也可以是设置在其他设备中的设备,例如PCRF实体可以是PCRF设备,计费触发功能(CTF,Charging Trigger Function)通常内嵌在网络实体中,如PCEF可以作为CTF,内嵌在P-GW中。The gateway device in the present invention refers to a network layer gateway, including but not limited to: a GGSN, a P-GW, etc., the gateway device includes a policy enforcement entity (PCEF); in the embodiment of the present invention, the entity may also be a table. Described as a device. Each entity may be a separate device or a device that is configured in other devices. For example, the PCRF entity may be a PCRF device, and a Charging Trigger Function (CTF) is usually embedded in a network entity, such as a PCEF. As a CTF, it is embedded in the P-GW.
本发明的主要思路在于,在线计费中,CTF可能同时支持两种计费会话粒度的情况下,在建立计费会话时协商会话粒度,并根据协商的粒度,建立二者之间的计费会话;以及,在离线计费中,CTF可能同时支持两种计费会话粒度的情况下,在上报计费信息时,指明所上报计费信息的粒度,以便OFCS根据该指示信息处理话单。The main idea of the present invention is that, in the case of online charging, if the CTF can support two types of charging session granularity at the same time, the session granularity is negotiated when the charging session is established, and the charging between the two is established according to the granularity of the negotiation. In the offline charging, in the case that the CTF may support the two types of charging session granularity, when the charging information is reported, the granularity of the reported charging information is specified, so that the OFCS processes the bill according to the indication information.
本发明实施例可以基于如附图1中所示的PCC架构实现。实际组网可以参考附图4所示,为本发明实施例的实际网络架构示意图。本发明实施例的改进所涉及的网元主要包括网关401(包含PCEF功能)和计费系统402(包括OCS功能),其中所述网关401和计费系统402分别包含有相应的会话粒度协商模块4011或4012。Embodiments of the invention may be implemented based on a PCC architecture as shown in FIG. The actual networking may be as shown in FIG. 4, which is a schematic diagram of an actual network architecture according to an embodiment of the present invention. The network element involved in the improvement of the embodiment of the present invention mainly includes a gateway 401 (including a PCEF function) and a charging system 402 (including an OCS function), wherein the
具体的,网关401中的会话粒度协商模块4011,用于向计费系统402发送会话建立请求消息,即CCR消息,所述CCR消息中携带该网关401支持计费会话粒度为IP-CAN Session的指示信息,或者携带该网关401使用计费会话粒度为IP-CAN Session进行计费会话的指示信息;会话粒度协商模块4011还可以用于接收计费系统402返回的应答消息,该应答消息中携带有计费系统402确认按照计费会话粒度为IP-CAN Session来进行计费会话的指示信息。Specifically, the session granularity negotiation module 4011 in the
计费系统402中的会话粒度协商模块4012,用于接收网关401发送会话建立请求消息,即CCR消息,所述CCR消息中携带网关401支持计费会话粒度为IP-CAN Session的指示信息,或者携带该网关401使用计费会话粒度为IP-CAN Session进行计费会话的指示信息;会话粒度协商模块4012还用于向所述网关401返回应答消息,当计费系统402收到的CCR消息中包含的是网关401支持计费会话粒度为IP-CAN Session的指示信息时,给网关401
返回的应答消息中可以携带有计费系统402确认按照计费会话粒度为IP-CAN Session来进行计费会话的指示信息。The session
通过本发明实施例中的网关和计费系统,可以实现网关和计费系统在建立计费会话时协商计费会话粒度,并根据协商的粒度建立二者之间的计费会话,避免了两种粒度下计费信息的处理不一致的问题,提高了计费准确性和计费效率。Through the gateway and the charging system in the embodiment of the present invention, the gateway and the charging system can negotiate the charging session granularity when establishing the charging session, and establish a charging session between the two according to the granularity of the negotiation, thereby avoiding two The problem of inconsistent processing of billing information under the granularity improves billing accuracy and billing efficiency.
下面以在线计费为例,来说明本发明实施例的方案,本实施例是网关设备(含PCEF功能)报告支持的计费会话粒度能力,OCS确定计费会话的粒度。图4中所示的网关401与计费系统402可以用来实施本发明实施例的方法。The following is an example of online charging, which is used to describe the solution of the embodiment of the present invention. This embodiment is a granularity of the charging session reported by the gateway device (including the PCEF function), and the OCS determines the granularity of the charging session. The
该实施例下,由于网关设备可能同时为一个IP-CAN Session建立多个IP-CAN Bearer,每个IP-CAN Bearer对应有一个会话建立请求消息,或者叫信用控制请求(credit control request,CCR)发起消息,即CCR-I消息,所以PCEF可能同时向OCS上报多个CCR-I消息。对于这种情况,参考本发明实施例方法流程示意图5,具体方法流程描述如下:In this embodiment, since the gateway device may establish multiple IP-CAN Bearers for one IP-CAN Session at the same time, each IP-CAN Bearer corresponds to a session establishment request message or a credit control request (CCR). The CCR-I message is initiated, so the PCEF may report multiple CCR-I messages to the OCS at the same time. For this case, refer to the schematic flowchart of the method of the embodiment of the present invention. The specific method flow is described as follows:
首先,网关设备接收用户设备UE发送的IP-CAN Session建立请求,网关设备根据PCRF下发的PCC规则确定所要建立的IP-CAN Bearer后,网关设备执行下面的步骤:First, the gateway device receives the IP-CAN Session establishment request sent by the user equipment UE, and after the gateway device determines the IP-CAN Bearer to be established according to the PCC rule issued by the PCRF, the gateway device performs the following steps:
502:网关设备向在线计费装置OCS发送IP-CAN Bearer的计费会话建立请求消息,如CCR-I消息,所述会话建立请求消息中携带该网关设备支持的计费会话粒度,例如粒度为IP-CAN Session的指示信息;502: The gateway device sends a charging session establishment request message of the IP-CAN Bearer to the online charging device OCS, such as a CCR-I message, where the session establishment request message carries the charging session granularity supported by the gateway device, for example, the granularity is Indication information of the IP-CAN Session;
具体的,网关设备为每个IP-CAN Bearer向OCS发送CCR-I消息,以建立Gy接口的计费会话并请求授权,网关设备,通过例如图4中的会话粒度协商模块4011,在CCR-I消息中携带一个参数,用以标识该PCEF可以支持IP-CAN Session粒度Gy会话的参数,例如参数A。网关设备在发送的Gy CCR-I请求中携带参数A用以标识该网关设备支持IP-CAN Session粒度计 费会话。Specifically, the gateway device sends a CCR-I message to the OCS for each IP-CAN Bearer to establish a charging session of the Gy interface and request authorization, and the gateway device, for example, through the session granularity negotiation module 4011 in FIG. The I message carries a parameter that identifies the parameter that the PCEF can support the IP-CAN Session granular Gy session, such as parameter A. The gateway device carries the parameter A in the sent Gy CCR-I request to identify that the gateway device supports the IP-CAN Session granularity meter. Fee session.
网关设备PCEF在CCR消息中携带该参数A的方法具体可以如下:The method for the gateway device PCEF to carry the parameter A in the CCR message may be specifically as follows:
方法一、在第一个CCR-I中携带该参数A;OCS根据该第一个CCR-I携带的参数A,建立第一个CCR-I消息所对应的Gy会话,将该Gy会话作为IP-CAN Session的Gy会话,在返回给网关设备的该CCR-I对应的CCA-I中携带参数B用以向网关设备指明当前Gy Session作为该IP-CAN Session的Gy会话,使得网关设备根据该参数B将该IP-CAN Session下的所有需要在线计费的承载都绑定到该Gy会话,并在该会话中进行整个IP-CAN Session中所有承载对应的配额申请和计费信息上报,并拒绝后续接收到的CCR-I请求,在返回给网关设备的该CCR-I对应的CCA-I中携带拒绝原因。优选的,第一个CCR-I所对应的CCA-I首先返回给网关设备。优选的,若网关设备是同时发送缺省承载和专有承载的CCR-I,则将缺省承载对应的CCR-I视为第一个CCR-I,在默认(或者叫缺省)承载的Gy CCR-I中携带该参数A,PCEF进一步在CCR-I中携带PDP上下文类型(PDP Context Type)以说明当前的请求是否对应默认承载;Method 1: Carrying the parameter A in the first CCR-I; the OCS establishes a Gy session corresponding to the first CCR-I message according to the parameter A carried by the first CCR-I, and uses the Gy session as an IP. - the Gy session of the CAN session, in the CCA-I corresponding to the CCR-I returned to the gateway device, carrying the parameter B to indicate to the gateway device that the current Gy Session is the Gy session of the IP-CAN session, so that the gateway device according to the The parameter B binds all the bearers of the IP-CAN session that need to be charged online to the Gy session, and reports the quota application and charging information corresponding to all the bearers in the entire IP-CAN session in the session, and The subsequent received CCR-I request is rejected, and the rejection reason is carried in the CCA-I corresponding to the CCR-I returned to the gateway device. Preferably, the CCA-I corresponding to the first CCR-I is first returned to the gateway device. Preferably, if the gateway device is the CCR-I that sends the default bearer and the dedicated bearer at the same time, the CCR-I corresponding to the default bearer is regarded as the first CCR-I, and is carried by default (or default). The parameter A is carried in the Gy CCR-I, and the PCEF further carries a PDP Context Type in the CCR-I to indicate whether the current request corresponds to the default bearer.
方法二、在所有发送的CCR-I中携带该参数A;OCS根据该参数A,接收OCS所接收到的第一个Gy CCR-I请求,建立该第一个CCR-I消息所对应的Gy会话,将该Gy会话作为IP-CAN Session的Gy会话,在返回给网关设备的该CCR-I对应的CCA-I中携带参数B用以向网关设备指明当前Gy Session作为该IP-CAN Session的Gy会话,使得网关设备根据该参数B将该IP-CAN Session下的所有需要在线计费的承载都绑定到该Gy会话,并在该会话中进行整个IP-CAN Session中所有承载对应的配额申请和计费信息上报,并拒绝后续接收到的CCR-I请求,在返回给网关设备的该CCR-I对应的CCA-I中携带拒绝原因。优选的,第一个CCR-I所对应的CCA-I首先返回给网关设备。优选的,若网关设备是同时发送缺省承载和专有承载的CCR-I,则OCS将缺省承载对应的CCR-I视为第一个CCR-I,OCS根据该参数A,接受默认承载的Gy CCR-I请求,以建立默认承载对应的Gy会话,将该默认承载对应 的Gy会话作为IP-CAN Session的Gy会话,并拒绝专有(或者专用)承载的CCR-I请求。PCEF在CCR-I中携带PDP Context Type以说明当前的会话是否针对默认承载,每个IP-CAN Session有且仅有一个缺省承载,专有承载和缺省承载的区别是:QoS及优先级不同;Method 2: Carrying the parameter A in all sent CCR-Is; according to the parameter A, the OCS receives the first Gy CCR-I request received by the OCS, and establishes the Gy corresponding to the first CCR-I message. The session, the Gy session is used as the Gy session of the IP-CAN Session, and the parameter B is carried in the CCA-I corresponding to the CCR-I returned to the gateway device to indicate the current Gy Session to the gateway device as the IP-CAN Session. The Gy session, so that the gateway device binds all the bearers that need to be charged online under the IP-CAN session to the Gy session according to the parameter B, and performs quotas corresponding to all the bearers in the entire IP-CAN session in the session. The application and charging information are reported, and the subsequently received CCR-I request is rejected, and the reason for rejection is carried in the CCA-I corresponding to the CCR-I returned to the gateway device. Preferably, the CCA-I corresponding to the first CCR-I is first returned to the gateway device. Preferably, if the gateway device is the CCR-I that sends the default bearer and the dedicated bearer at the same time, the OCS considers the CCR-I corresponding to the default bearer as the first CCR-I, and the OCS accepts the default bearer according to the parameter A. Gy CCR-I request to establish a Gy session corresponding to the default bearer, corresponding to the default bearer The Gy session acts as a Gy session for the IP-CAN Session and rejects the proprietary (or dedicated) hosted CCR-I request. The PCEF carries the PDP Context Type in the CCR-I to indicate whether the current session is for the default bearer. Each IP-CAN Session has one and only one default bearer. The difference between the dedicated bearer and the default bearer is: QoS and priority. different;
方法三、网关设备PCEF首次只发送一个Gy CCR-I,其中携带参数A用以说明该网关设备支持Session粒度;OCS根据该参数A进行判断,若决定本次使用Session粒度,则在返回给网关设备的CCA-I中携带参数B用以向网关设备指明当前Gy Session作为该IP-CAN Session的Gy会话,则网关设备根据该参数B将该IP-CAN Session下的所有需要在线计费的承载都绑定到该Gy会话,并在该会话中进行整个IP-CAN Session中所有承载对应的配额申请和计费信息上报;若OCS决定本次不使用Session粒度,则在返回给网关设备的CCA-I中,不向网关设备指明当前Gy Session作为该IP-CAN Session的粒度,则网关设备在接到该CCA-I后,将该Gy会话仅作为其对应承载的Gy会话,并为其他需要在线计费的承载发起Gy会话建立请求(CCR-I),本次发送的所有CCR-I不携带参数A;若OCS无法识别该参数A,则直接拒绝该CCR-I,并返回错误码给网关设备,则网关设备在接到该CCA-I后,根据该错误码为所有需要在线计费的承载(包括当前承载)发起Gy会话建立请求(CCR-I),本次发送的所有CCR-I不携带参数A。优选的,若网关设备确定缺省承载和专有承载同时需要建立在线计费会话,则首次只发送默认承载对应的Gy CCR-I。方法三可以避免OCS的处理复杂。Method 3: The gateway device PCEF sends only one Gy CCR-I for the first time, which carries parameter A to indicate that the gateway device supports the session granularity; the OCS determines according to the parameter A, and if it decides to use the session granularity, it returns to the gateway. The CCA-I of the device carries the parameter B to indicate to the gateway device that the current Gy Session is the Gy session of the IP-CAN session, and the gateway device according to the parameter B is all the bearers that need to be charged online under the IP-CAN session. Both are bound to the Gy session, and report the quota application and charging information corresponding to all the bearers in the entire IP-CAN session in the session; if the OCS decides not to use the session granularity this time, the CCA is returned to the gateway device. In the case of -I, the gateway device is not specified as the granularity of the IP-CAN session, and after receiving the CCA-I, the gateway device only uses the Gy session as the Gy session of its corresponding bearer, and is other needs. The online charging bearer initiates a Gy session establishment request (CCR-I). All CCR-Is sent this time do not carry parameter A; if OCS cannot identify the parameter A, the CCR-I is directly rejected and an error is returned. After the gateway device is connected to the CCA-I, the gateway device initiates a Gy session establishment request (CCR-I) for all bearers (including the current bearer) that need to be charged online according to the error code, and all CCRs sent this time. -I does not carry parameter A. Preferably, if the gateway device determines that the default bearer and the dedicated bearer need to establish an online charging session at the same time, only the Gy CCR-I corresponding to the default bearer is sent for the first time. Method 3 can avoid the complexity of OCS processing.
具体在CCR-I消息中携带支持Session计费会话粒度的能力指示信息可以如下述示例:Specifically, the capability indication information that carries the coverage of the session charging session in the CCR-I message may be as follows:
其中参数A表示该网关设备支持计费会话粒度为IP-CAN Session,如果 未出现则默认计费会话粒度为IP-CAN Bearer。Where parameter A indicates that the gateway device supports the charging session granularity as IP-CAN Session, if If not, the default charging session granularity is IP-CAN Bearer.
504:在线计费系统OCS根据所述指示信息,处理所述会话建立请求消息,以建立对应粒度的计费会话。504: The online charging system OCS processes the session establishment request message according to the indication information to establish a charging session of a corresponding granularity.
其中,在线计费系统OCS根据所述指示信息,处理所述会话建立请求消息具体包括:The online charging system OCS, according to the indication information, processing the session establishment request message specifically includes:
OCS根据所述指示信息获知网关设备能力支持IP-CAN Session粒度计费会话,进一步根据自身能力及决策机制确定本次计费会话的粒度,具体如下:The OCS learns that the gateway device capability supports the IP-CAN Session granular charging session according to the indication information, and further determines the granularity of the current charging session according to its own capability and decision mechanism, as follows:
若确定本次的计费会话粒度为IP-CAN Session粒度的计费会话,则按照IP-CAN Session粒度的计费会话进行处理,并在返回给网关设备的CCA-I中携带参数B用以说明该Gy计费会话作为IP-CAN Session粒度的计费会话。例如通过附图4中的计费系统的会话粒度协商模块4012向网关401返回的应答消息,给网关401返回的应答消息中携带有计费系统402确认按照计费会话粒度为IP-CAN Session来进行计费的指示信息。If the charging session whose granularity is the IP-CAN Session granularity is determined, the charging session is processed according to the IP-CAN Session granularity, and the parameter B is carried in the CCA-I returned to the gateway device. The Gy charging session is described as a charging session of IP-CAN Session granularity. For example, the response message returned by the session
具体在CCA-I中携带参数B方法示例如下:An example of a method for carrying parameter B in CCA-I is as follows:
其中参数B表示OCS决定采用IP-CAN Session粒度的计费会话,如果未出现则默认OCS采用计费会话粒度为IP-CAN Bearer。The parameter B indicates that the OCS decides to use the IP-CAN Session granularity charging session. If not, the default OCS adopts the charging session granularity as IP-CAN Bearer.
若OCS无法识别该参数A,则OCS忽略该参数A,并按照IP-CAN Bearer粒度进行处理;或者,若OCS无法识别该参数A,则OCS拒绝该CCR-I请求,向PCEF返回错误码以指示其无法识别该参数;或者,虽可识别该参数A,但OCS能力不支持Session粒度的计费会话,或者,OCS能力虽支持,但根据OCS内部策略或者用户的订购关系等确定不使用Session粒度的计费会话,则:OCS忽略该参数A,并按照Bearer粒度的Gy进行处理; If the OCS does not recognize the parameter A, the OCS ignores the parameter A and processes it according to the IP-CAN Bearer granularity; or, if the OCS does not recognize the parameter A, the OCS rejects the CCR-I request and returns an error code to the PCEF. Indicates that the parameter is not recognized; or, although the parameter A can be identified, the OCS capability does not support the session granularity of the charging session, or the OCS capability supports, but the session is not determined according to the OCS internal policy or the user's subscription relationship. For a granular charging session, the OCS ignores the parameter A and processes it according to the Gy of the Bearer granularity;
进一步,若OCS同时接收到网关设备发送的同一IP-CAN Session的多个Gy会话CCR-I(大于或者等于2条),且确定是建立IP-CAN Session粒度的计费会话,则拒绝其他的CCR-I,网关设备将其他Bearer关联到所建立的Gy session;或者,若OCS同时接收到多个Gy会话CCR-I,则拒绝其他的CCR-I,在CCA消息中指示重定向到所建立的Gy Session(携带目的Gy的session ID),网关设备将该Bearer关联到该Session ID对应的Gy Session;Further, if the OCS receives multiple Gy sessions CCR-I (greater than or equal to 2) of the same IP-CAN session sent by the gateway device, and determines that the IP-CAN Session granularity charging session is established, reject the other CCR-I, the gateway device associates other Bearers to the established Gy session; or, if the OCS receives multiple Gy sessions CCR-I at the same time, rejects other CCR-Is, indicating the redirect to the established in the CCA message Gy Session (with the session ID of the destination Gy), the gateway device associates the Bearer to the Gy Session corresponding to the session ID;
进一步,如果OCS回复CCA后且网关设备未接收到该CCA时,网关设备发起新的CCR-I请求,如果OCS确定的是建立Session粒度计费会话且已经建立了Session粒度Gy Session,则拒绝该CCR-I计费会话请求,可选的,在CCA消息中指示重定向到所建立的Gy Session(携带目的Gy的session ID);Further, if the OCS replies to the CCA and the gateway device does not receive the CCA, the gateway device initiates a new CCR-I request. If the OCS determines that the Session granularity charging session is established and the Session granularity Gy Session has been established, the network device rejects the The CCR-I charging session request, optionally, redirecting to the established Gy Session (the session ID carrying the destination Gy) in the CCA message;
进一步,如果OCS同时接收到多个Gy CCR-I,则首先处理默认会话对应的Gy CCR-I;Further, if the OCS receives multiple Gy CCR-Is at the same time, first processing the Gy CCR-I corresponding to the default session;
进一步,OCS按照Session粒度Gy进行处理具体包括:OCS为所接收到的多个CCR-I中的配额申请分配配额,并在所要建立的Session粒度Gy Session的CCA-I中返回所分配配额给网关设备,并在其他CCR-I对应的CCA-I中拒绝CCR-I请求。Further, the processing of the OCS according to the Session granularity Gy includes: the OCS allocates a quota for the quota application in the received multiple CCR-Is, and returns the allocated quota to the gateway in the CCA-I of the Session granularity Gy Session to be established. The device rejects the CCR-I request in the CCA-I corresponding to the other CCR-I.
本发明实施例的方案,通过在网关设备发送给OCS的会话请求消息中携带该网关设备支持计费会话粒度为IP-CAN Session的指示信息,可以使得OCS知晓该网关设备对计费会话粒度的支持情况并进行相应的处置;OCS根据所述指示信息,如果确定按照计费会话粒度为IP-CAN Session来处理所述计费会话,则OCS在返回给网关设备的应答消息中携带该OCS按照计费会话粒度为IP-CAN Session来进行计费的指示信息,从而实现了在建立计费会话时协商计费会话粒度,并根据协商的粒度建立二者之间的计费会话,避免了两种粒度下计费信息的处理不一致的问题,提高了计费准确性和计费效率,本实施例由OCS根据网关设备上报的计费会话粒度支持情况来决 定采用的计费会话粒度,降低了PCRF的决策负担。In the solution of the embodiment of the present invention, the OCS is informed by the gateway device that the gateway device supports the charging session granularity by carrying the indication information that the gateway device supports the charging session granularity as the IP-CAN session in the session request message sent by the gateway device to the OCS. Supporting the situation and performing corresponding processing; the OCS, according to the indication information, if it is determined that the charging session is processed according to the IP-CAN Session, the OCS carries the OCS in the response message returned to the gateway device. The charging session granularity is the indication information of the IP-CAN session for charging, thereby realizing the negotiation of the charging session granularity when establishing the charging session, and establishing the charging session between the two according to the granularity of negotiation, avoiding two The problem that the processing of the charging information is inconsistent under the granularity improves the charging accuracy and the charging efficiency. In this embodiment, the OCS decides according to the granularity of the charging session reported by the gateway device. The granularity of the charging session is adopted, which reduces the decision burden of the PCRF.
下面继续以在线计费的情形为例,说明由网关设备(含PCEF功能)决定Gy接口计费会话粒度的实现方案,如图4中所示的网关401与计费系统402可以用来实施本发明实施例的方法:The following is an example of online charging, which illustrates an implementation scheme for determining the granularity of the Gy interface charging session by the gateway device (including the PCEF function). The
该实施例下,由于由网关设备决定Gy计费会话粒度,当其确定为一个IP-CAN Session只建立一个Gy计费会话时,该网关设备就可以只向OCS发起一个Gy CCR-I消息,这样就避免了同时上报多个Gy CCR-I请求消息,参考流程图6所示,具体方法描述如下:In this embodiment, since the Gy charging session granularity is determined by the gateway device, when it is determined that only one Gy charging session is established for one IP-CAN session, the gateway device can only initiate a Gy CCR-I message to the OCS. This avoids reporting multiple Gy CCR-I request messages at the same time. Referring to flowchart 6, the specific method is described as follows:
602:网关设备向计费系统OCS发送IP-CAN Session的计费会话建立请求消息,所述请求消息中包含计费会话粒度指示信息,以指示该计费会话为IP-CAN Session粒度的计费会话;602: The gateway device sends a charging session establishment request message of the IP-CAN session to the charging system OCS, where the request message includes charging session granularity indication information, to indicate that the charging session is an IP-CAN Session granularity charging. Conversation
具体的,PCEF根据自身配置或者PCRF的指示,确定为该IP-CAN Session建立Session粒度的Gy,则向OCS发起Gy会话建立请求,该CCR-I请求中使用特定AVP指示当前的CCR-I为Session粒度计费会话的请求消息,所携带的参数对应Session粒度计费会话,所请求的配额可能用于多个承载;Specifically, the PCEF determines to establish a Session granularity Gy for the IP-CAN Session according to the configuration of the self-configuration or the PCRF, and initiates a Gy session establishment request to the OCS, where the CCR-I request uses a specific AVP to indicate that the current CCR-I is The request message of the session granularity charging session carries the parameter corresponding to the session granularity charging session, and the requested quota may be used for multiple bearers;
其中,网关设备可以根据自身配置,如Charging Characteristic的配置确定要求建立的计费会话粒度;或者,归属域或者拜访域的PCRF(如附图4中的PCRF 400)决定网关设备PCEF发起的计费会话的粒度,并通过PCC rule下发给网关设备PCEF,PCEF根据该PCC rule确定Gy接口计费会话的粒度。The gateway device may determine the granularity of the charging session to be established according to the configuration of the Charging Characteristic, or the PCRF of the home domain or the visited domain (such as the
604:OCS收到所述会话建立请求消息,根据所述指示信息处理所述CCR-I消息;604: The OCS receives the session establishment request message, and processes the CCR-I message according to the indication information.
具体的,specific,
若OCS同意使用Session粒度计费会话,则正常处理所述会话建立请求消息CCR-I,返回会话建立成功消息。 If the OCS agrees to use the session granular charging session, the session establishment request message CCR-I is normally processed, and a session establishment success message is returned.
若OCS如果不支持所述计费会话粒度指示信息,或者支持所述计费会话粒度指示信息,但根据配置,不接受建立Session粒度计费会话,则拒绝该计费会话请求,并返回错误码指示无法识别或者Session粒度Gy会话建立失败。If the OCS does not support the charging session granularity indication information, or supports the charging session granularity indication information, but does not accept the establishment of a Session granular charging session according to the configuration, rejects the charging session request and returns an error code. The indication is unrecognizable or the Session granularity Gy session establishment failed.
网关设备接收到OCS的失败响应消息后,根据CCA-I所携带的错误码,确定需要建立Bearer粒度的计费会话,则重新为IP-CAN Session中的每个IP-CAN Bearer发起Bearer粒度的Gy计费会话请求。After receiving the failure response message of the OCS, the gateway device determines that a Bearer granularity charging session needs to be established according to the error code carried in the CCA-I, and then initiates a Bearer granularity for each IP-CAN Bearer in the IP-CAN Session. Gy billing session request.
本发明实施例的方案,通过在网关设备发送给OCS的会话请求消息中携带该网关设备使用计费会话粒度为IP-CAN Session进行计费会话的指示信息,可以使得OCS知晓该网关设备确定要采用的计费会话粒度,OCS根据所述指示信息进行相应的处理,从而实现了在建立计费会话时协商计费会话粒度,并根据协商的粒度建立二者之间的计费会话,避免了两种粒度下计费信息的处理不一致的问题,提高了计费准确性和计费效率,进一步的,本方案由网关设备PCEF决定采用的计费会话粒度,可以增强网关设备PCEF的自主性,减轻OCS的负担。In the solution of the embodiment of the present invention, the OCS is aware that the gateway device determines that the gateway device determines that the gateway device uses the charging session granularity to perform the charging session with the IP-CAN Session in the session request message sent by the gateway device to the OCS. The granularity of the charging session is adopted, and the OCS performs corresponding processing according to the indication information, thereby realizing the negotiation of the granularity of the charging session when establishing the charging session, and establishing the charging session between the two according to the granularity of negotiation, thereby avoiding The problem that the processing of the charging information is inconsistent under the two granularities improves the charging accuracy and the charging efficiency. Further, the gateway device PCEF determines the granularity of the charging session, which can enhance the autonomy of the gateway device PCEF. Reduce the burden of OCS.
本发明实施例还进一步提供了离线计费(OFCS)的情况下,网关设备PCEF决定计费信息的采集粒度的实施方案,方法流程图如附图7所示,本实施例可以在附图4中的计费系统402为离线计费系统的情况下实施:The embodiment of the present invention further provides an implementation scheme of the gateway device PCEF determining the collection granularity of the charging information in the case of offline charging (OFCS). The method flowchart is as shown in FIG. 7, and the embodiment can be in FIG. The
702:网关设备在向离线计费系统上报的计费信息中包含指示信息,指示上报的所述计费信息是IP-CAN Session的计费信息;702: The gateway device includes indication information in the charging information reported to the offline charging system, where the charging information that is reported is the charging information of the IP-CAN session.
具体的,若使用ACR(Accounting Request)消息进行计费信息上报,在ACR上报命令中增加一个参数C,用以指示上报的计费信息为IP-CAN Session粒度计费信息或者IP-CAN Bearer粒度的计费信息,或者如果为空,则默认为IP-CAN Bearer粒度的计费信息,CDF(Charging Data Function)模块在接收到PCEF发送的携带该参数的ACR后,根据该指示信息生成CDR(Call Detail Record,呼叫详细记录,即话单),并在CDR中增加一个作用相同的参数D,使得计费系统在处理话单时,根据该字段确定话单中信息是IP-CAN Session粒度的计费信息或者IP-CAN Bearer粒度的计费信息,进行正确的CDR处理,如:去重、合并、关联、批价等。Specifically, if an ACR (Accounting Request) message is used for reporting the charging information, a parameter C is added to the ACR reporting command to indicate that the reported charging information is IP-CAN Session granular charging information or IP-CAN Bearer granularity. Billing information, or if it is empty, the default is IP-CAN Bearer granular billing information, CDF (Charging Data) After receiving the ACR that carries the parameter sent by the PCEF, the function module generates a CDR (Call Detail Record, a call detail record) according to the indication information, and adds a parameter D having the same function to the CDR. When processing the bill, the fee system determines, according to the field, that the information in the bill is the IP-CAN Session granularity charging information or the IP-CAN Bearer granularity charging information, and performs correct CDR processing, such as: deduplication, merging, Association, rating, etc.
若PCEF直接生成CDR,则在生成的CDR中增加一个作用相同的参数D,用以指示上报的计费信息为IP-CAN Session的计费信息或者IP-CAN Bearer的计费信息,或者如果为空,则默认为IP-CAN Bearer的计费信息,使得计费系统在处理话单时,根据该字段确定话单中信息是IP-CAN Session的计费信息或者IP-CAN Bearer的计费信息,进行正确的CDR处理,如:去重、合并、关联、批价等。If the PCEF directly generates the CDR, a parameter D having the same function is added to the generated CDR to indicate that the reported charging information is the charging information of the IP-CAN Session or the charging information of the IP-CAN Bearer, or if If it is empty, it defaults to the accounting information of IP-CAN Bearer, so that when the billing system processes the bill, it determines whether the information in the bill is the billing information of the IP-CAN Session or the billing information of the IP-CAN Bearer according to the field. , to perform correct CDR processing, such as: de-duplication, merging, association, rating, etc.
具体在ACR命令中携带参数C方法示例如下:An example of a method for carrying a parameter C in an ACR command is as follows:
在CDR中增加的参数D如下:The parameter D added in the CDR is as follows:
704:离线计费系统处理所述网关设备上报的以IP-CAN Session为计费粒度的计费信息。704: The offline charging system processes the charging information reported by the gateway device with the IP-CAN Session as the charging granularity.
具体的,离线计费系统,如附图4中的计费系统402(此时为离线计费系统),在处理话单时,根据上述步骤702中计费信息新增加的字段,即计
费粒度信息标识字段,确定话单中信息是IP-CAN Session粒度的计费信息,并进行进一步处理;当然,如果所述新增字段为空,则可以默认为IP-CAN Bearer计费粒度的计费信息。Specifically, the offline charging system, such as the
其中,网关设备可以根据自身配置,如Charging Characteristic的配置确定上报的计费会话粒度(为IP-CAN Session粒度计费信息,或者IP-CAN Bearer粒度计费信息);或者,归属域或者拜访域PCRF(如附图4中的PCRF400)决定PCEF上报的计费会话的粒度。The gateway device may determine the reported charging session granularity (for IP-CAN Session granular charging information or IP-CAN Bearer granular charging information) according to the configuration of the Charging Characteristic, or the home domain or the visited domain. The PCRF (such as
本实施例通过在离线计费系统可能同时支持两种计费粒度的情况下,在上报计费信息时,指明所上报计费信息的粒度,实现了离线计费系统根据该指示信息处理话单,在保证计费准确并提高了计费的效率。In this embodiment, when the offline charging system can support the two types of charging granularity at the same time, when the charging information is reported, the granularity of the reported charging information is specified, and the offline charging system is configured to process the CDR according to the indication information. In order to ensure accurate billing and improve the efficiency of billing.
图8描述了本发明另一个实施例提供的网关设备(含PCEF功能)的结构,可以用来执行前述所有方法实施例中的步骤,该网关设备可以是图4中的网关401,包括至少一个处理器802(例如CPU),至少一个网络接口805或者其他通信接口,存储器806,和至少一个通信总线803,用于实现这些装置之间的连接通信。处理器802用于执行存储器806中存储的可执行模块,例如计算机程序。存储器806可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口805(可以是有线或者无线)实现该系统网关与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。FIG. 8 is a diagram showing the structure of a gateway device (including a PCEF function) according to another embodiment of the present invention, which may be used to perform the steps in all the foregoing method embodiments. The gateway device may be the
本发明实施例还提供了计算机程序产品以及存储有上述计算机程序的存储介质。该计算机程序产品包括在计算机可读存储介质中存储的程序代码,并且该程序代码通过处理器进行加载来实现上述方法。在一些实施方式中,存储器806存储了程序8061,程序8061可以被处理器802执行,这个程序包括:Embodiments of the present invention also provide a computer program product and a storage medium storing the above computer program. The computer program product includes program code stored in a computer readable storage medium, and the program code is loaded by a processor to implement the above method. In some embodiments, the memory 806 stores a program 8061, and the program 8061 can be executed by the
网关设备向在线计费系统发送会话建立请求消息,所述会话建立请求消 息中携带所述网关设备支持计费会话粒度为IP-CAN Session的指示信息;The gateway device sends a session establishment request message to the online charging system, and the session establishment request is cancelled. The information carrying the gateway device supporting the charging session granularity is an IP-CAN session indication information;
所述网关设备接收所述在线计费系统返回的应答消息,所述应答消息中携带所述在线计费系统按照计费会话粒度为IP-CAN Session来进行计费的指示信息。The gateway device receives the response message returned by the online charging system, and the response message carries the indication information that the online charging system performs charging according to the IP-CAN Session of the charging session granularity.
或者:or:
所述程序包括:The program includes:
网关设备向在线计费系统发送会话建立请求消息,所述请求消息中携带该网关设备使用计费会话粒度为IP-CAN Session的指示信息;The gateway device sends a session establishment request message to the online charging system, where the request message carries the indication information that the gateway device uses the charging session granularity as an IP-CAN session;
所述网关设备接收所述在线计费系统返回的会话建立成功消息。The gateway device receives a session establishment success message returned by the online charging system.
本发明另一个实施例提供的在线计费系统(含OCS功能)也包含了图7类似的硬件架构,该在线计费系统可以是图4中的在线计费系统402,可以用来执行前述所有方法实施例中的步骤,所述存储器806存储了程序8062,程序8062可以被处理器802执行,这个程序包括:The online charging system (including the OCS function) provided by another embodiment of the present invention also includes a similar hardware architecture of FIG. 7. The online charging system may be the
在线计费系统接收网关设备发送的会话建立请求消息,所述请求消息中携带该网关设备支持计费会话粒度为IP-CAN Session的指示信息;The online charging system receives a session establishment request message sent by the gateway device, where the request message carries the indication information that the gateway device supports the charging session granularity as an IP-CAN session;
所述在线计费系统根据所述指示信息,按照计费会话粒度为IP-CAN Session来处理所述会话建立请求消息,并在返回给所述网关设备的应答消息中携带所述在线计费系统按照计费会话粒度为IP-CAN Session来进行计费的指示信息。The online charging system processes the session establishment request message according to the indication information according to the charging session granularity as an IP-CAN session, and carries the online charging system in a response message returned to the gateway device. The indication information for charging according to the IP-CAN Session of the charging session granularity.
或者,这个程序包括:Or, this program includes:
在线计费系统接收网关设备发送的会话建立请求消息,所述请求消息中携带该网关设备使用计费会话粒度为IP-CAN Session的指示信息;The online charging system receives a session establishment request message sent by the gateway device, where the request message carries the indication information that the gateway device uses the IP address of the charging session as an IP-CAN session;
所述在线计费系统向所述网关设备返回会话建立成功消息。The online charging system returns a session establishment success message to the gateway device.
从本发明实施例提供的以上技术方案可以看出,在OCS可能同时支持 两种计费会话粒度的情况下,在建立计费会话时协商会话粒度,并根据协商的粒度建立二者之间的计费会话,从而可以避免两种粒度下计费信息的处理不一致的问题,提高了计费准确性和计费效率。It can be seen from the above technical solutions provided by the embodiments of the present invention that the OCS may simultaneously support In the case of two types of charging session granularity, the session granularity is negotiated when the charging session is established, and the charging session between the two is established according to the granularity of the negotiation, so that the problem of inconsistent processing of charging information under two granularities can be avoided. , improve billing accuracy and billing efficiency.
本文中应用了具体实施例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The principles and embodiments of the present invention have been described herein with reference to specific embodiments thereof, and the description of the above embodiments is only to assist in understanding the method and the concept of the present invention. Also, those skilled in the art, in accordance with the present invention, The present invention is not limited by the scope of the present invention.
Claims (29)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP16881055.4A EP3389218B1 (en) | 2015-12-31 | 2016-12-21 | Data service charging method, device and system |
| US16/024,195 US20180309584A1 (en) | 2015-12-31 | 2018-06-29 | Data Service Charging Method, Apparutus, and System |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511028359 | 2015-12-31 | ||
| CN201511028359.0 | 2015-12-31 | ||
| CN201610178261.1A CN106936603B (en) | 2015-12-31 | 2016-03-25 | A data service charging method, device and system |
| CN201610178261.1 | 2016-03-25 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/024,195 Continuation US20180309584A1 (en) | 2015-12-31 | 2018-06-29 | Data Service Charging Method, Apparutus, and System |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017114266A1 true WO2017114266A1 (en) | 2017-07-06 |
Family
ID=59224574
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/111340 Ceased WO2017114266A1 (en) | 2015-12-31 | 2016-12-21 | Data service charging method, device and system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112383405B (en) |
| WO (1) | WO2017114266A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110855785A (en) * | 2019-11-17 | 2020-02-28 | 广州荔支网络技术有限公司 | Data processing method and device |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12143530B2 (en) * | 2020-09-29 | 2024-11-12 | Sandvine Corporation | System and method for classifying and handling voice over IP traffic |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011101021A1 (en) * | 2010-02-16 | 2011-08-25 | Telefonaktiebolaget Lm Ericsson (Publ) | Facilitating a communication session |
| CN102332985A (en) * | 2011-10-26 | 2012-01-25 | 电信科学技术研究院 | Method and device for providing charging support based on local internet protocol (IP) access (LIPA) bearer |
| WO2012079647A1 (en) * | 2010-12-17 | 2012-06-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Policy and/or charging control |
| CN102884757A (en) * | 2010-05-03 | 2013-01-16 | 阿尔卡特朗讯 | Charging method selection for service data flows based on the data services being requested |
| CN103797753A (en) * | 2013-06-28 | 2014-05-14 | 华为技术有限公司 | Credit control method, strategy and charging executive function entity and online charging system |
| WO2015131331A1 (en) * | 2014-03-04 | 2015-09-11 | 华为技术有限公司 | Method and device for managing charging session |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101729265B (en) * | 2008-10-25 | 2013-06-05 | 华为技术有限公司 | Method, device and system for charging in evolved packet system (EPS) |
| CA2742226C (en) * | 2008-11-03 | 2016-12-20 | Nokia Siemens Networks Oy | Charging control providing correction of charging control information |
| CN101662758A (en) * | 2009-10-10 | 2010-03-03 | 中国电信股份有限公司 | Billing method, gateway equipment and content billing system |
| CN102833718B (en) * | 2011-06-16 | 2018-12-21 | 中兴通讯股份有限公司 | Support the evolution block core net charging method and system of non-3 GPP access |
| CN105188043A (en) * | 2014-06-19 | 2015-12-23 | 阿尔卡特朗讯 | Method, device and system for charging based on PDN connection |
| CN106936603B (en) * | 2015-12-31 | 2020-12-08 | 华为技术有限公司 | A data service charging method, device and system |
-
2016
- 2016-03-25 CN CN202011206450.8A patent/CN112383405B/en active Active
- 2016-12-21 WO PCT/CN2016/111340 patent/WO2017114266A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011101021A1 (en) * | 2010-02-16 | 2011-08-25 | Telefonaktiebolaget Lm Ericsson (Publ) | Facilitating a communication session |
| CN102884757A (en) * | 2010-05-03 | 2013-01-16 | 阿尔卡特朗讯 | Charging method selection for service data flows based on the data services being requested |
| WO2012079647A1 (en) * | 2010-12-17 | 2012-06-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Policy and/or charging control |
| CN102332985A (en) * | 2011-10-26 | 2012-01-25 | 电信科学技术研究院 | Method and device for providing charging support based on local internet protocol (IP) access (LIPA) bearer |
| CN103797753A (en) * | 2013-06-28 | 2014-05-14 | 华为技术有限公司 | Credit control method, strategy and charging executive function entity and online charging system |
| WO2015131331A1 (en) * | 2014-03-04 | 2015-09-11 | 华为技术有限公司 | Method and device for managing charging session |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110855785A (en) * | 2019-11-17 | 2020-02-28 | 广州荔支网络技术有限公司 | Data processing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112383405A (en) | 2021-02-19 |
| CN112383405B (en) | 2022-04-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101728265B1 (en) | Method for charging for application, and charging device and system | |
| US20120320801A1 (en) | Nodes For Improved Credit Validation | |
| CN103843374B (en) | Integrated policy and billing control based on SY | |
| US9131071B2 (en) | Binding of SD messages with radius messages | |
| WO2008128470A1 (en) | Method,system and entity of realizing event detection | |
| EP2537312A1 (en) | Facilitating a communication session | |
| WO2009046678A1 (en) | Method and device for obtaining the capability of policy and charging enforcement function | |
| WO2016201999A1 (en) | Third-party application charging method and apparatus, and application function device | |
| CN103517245A (en) | D2D communication charging method and system | |
| CN106936603B (en) | A data service charging method, device and system | |
| WO2013060170A1 (en) | Method and device for providing charging support based on lipa bearer | |
| CN102612821A (en) | Charging correlation for dedicated bearers | |
| CN112702180B (en) | Policy control method, device and system | |
| CN101420361A (en) | Method, terminal, server and customer terminal for terminating session | |
| WO2017114266A1 (en) | Data service charging method, device and system | |
| KR102203354B1 (en) | Network-based policy control for simultaneous access | |
| WO2017084394A1 (en) | Roaming charging method, relevant apparatus, and online charging system | |
| EP3618468B1 (en) | Wireless communication method and device | |
| WO2011003307A1 (en) | Charging method and system for evolved packet system | |
| CN101572954A (en) | Method, device and system for releasing session | |
| WO2011127666A1 (en) | Processing methode, device and system for charging | |
| EP3763079B1 (en) | A method of enabling a standalone traffic detection function, tdf, node in a telecommunication network to act on unsuccessful resource allocation for an over-the-top, ott, application | |
| CN109417683B (en) | Core network online charging control for intermediate network traffic diversion | |
| WO2014110966A1 (en) | Method, apparatus and system for processing traffic data |
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: 16881055 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2016881055 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2016881055 Country of ref document: EP Effective date: 20180710 |