WO2014059911A1 - Accounting synchronization method, apparatus and system - Google Patents

Accounting synchronization method, apparatus and system Download PDF

Info

Publication number
WO2014059911A1
WO2014059911A1 PCT/CN2013/085190 CN2013085190W WO2014059911A1 WO 2014059911 A1 WO2014059911 A1 WO 2014059911A1 CN 2013085190 W CN2013085190 W CN 2013085190W WO 2014059911 A1 WO2014059911 A1 WO 2014059911A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
pgw
tdf
bearer
perform
Prior art date
Application number
PCT/CN2013/085190
Other languages
French (fr)
Chinese (zh)
Inventor
卢飞
周晓云
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014059911A1 publication Critical patent/WO2014059911A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • H04M15/73Validating charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/82Criteria or parameters used for performing billing operations
    • H04M15/8214Data or packet based

Definitions

  • the present invention relates to the field of communications, and in particular, to a charging synchronization method, apparatus, and system.
  • BACKGROUND OF THE INVENTION Worldwide Interoperability for Microwave Access (World Interoperability for Microwave Access, referred to as
  • Evolved Packet Core Evolved Packet Core
  • EPC can provide higher transmission rate, shorter transmission delay, optimized packet, and support for evolved UTRAN (Evolved UTRAN, E-UTRAN for short), UTRAN, Wireless Local Area Network (WLAN) And mobility management between other non-3GPP access networks.
  • the SAE includes the following network elements: an evolved radio access network (Evolved RAN, referred to as E-RAN): can provide higher on/ Downlink rate, lower transmission delay and more reliable wireless transmission.
  • the network element included in the E-RAN is an E-NodeB (Evolved NodeB), which is set to provide radio resources for user access.
  • Packet Data Network (PDN) A network that provides services to users.
  • the E-Packet Core provides lower latency and allows more wireless access systems to access.
  • the network element includes the following: a Mobility Management Entity (MME): A control plane function entity, a server that temporarily stores user data, and is responsible for managing and storing a user equipment (User Equipment, UE for short) context (such as UE).
  • MME Mobility Management Entity
  • UE User Equipment
  • User identification, mobility management status, user security parameters, etc. assigning a temporary identifier to the user, and when the UE is camped in the tracking area or the network, is responsible for authenticating the user; All non-access stratum messages between the UE and the UE; triggering paging on the SAE.
  • the MME is the mobility management unit of the SAE system.
  • the mobility management unit is an SGSN (Serving GPRS Support Node).
  • the Serving Gateway (SGW) is a user plane entity that is responsible for user plane data routing processing and terminates downlink data of UEs in idle (ECMJDLE) state. Manage and store the SAE bearer context of the UE, such as IP bearer service parameters and network internal routing information.
  • the SGW is the anchor point of the internal user plane of the 3GPP system. One user can only have one SGW at a time.
  • the packet data network gateway (PDN Gateway, PGW for short) is responsible for the UE accessing the PDN gateway, assigning the user IP address, and
  • PDN Gateway Packet Data Network Gateway, PGW for short
  • the mobility anchor of 3GPP and non-3GPP access systems, the functions of the PGW also include policy implementation and charging support.
  • the PCEF Policy and Charging Enforcement Function
  • the Policy and Charging Rules Function is responsible for providing policy control and charging rules to the PCEF.
  • the Home Subscriber Server (HSS) permanently stores user subscription data.
  • the content stored in the HSS includes the IMSI (International Mobile Subscriber Identification) of the UE and the IP address of the PGW.
  • the HSS is connected to the serving GPRS support node, and the serving GPRS support node is connected to a Radio Network Controller (RNC).
  • RNC Radio Network Controller
  • the Traffic Detection Function is responsible for detecting and controlling the service application of the user. It can also perform charging based on the detected service application. Physically, the SGW and the PGW may be one.
  • the EPC system user plane network element includes SGW and PGW.
  • the SGW and the PGW are connected by the GTP (GPRS Tunneling Protocol), there is no interface between the SGW and the PCRF.
  • the SGW and the PGW are connected by the PMIP (Proxy Mobile Internet Protocol)
  • the SGW and the PCRF pass the Gxc interface. connection.
  • the SGW has a function of buffering downlink data of the UE in an idle state.
  • the SGW cannot send the downlink data in time because the SGW does not know the address of the E-NodeB (or eNodeB) that the UE is in.
  • the SGW needs to buffer the received downlink data, and needs to send a downlink data arrival notification message (Downlink Data Notification) to the MME, and the MME triggers paging (Paging). If the MME receives the paging response within a certain period of time, the Serving GW can obtain the address of the eNodeB in time, and can deliver the message to the eNodeB.
  • the cached data the specific process is shown in Figure 2. However, when the SGW does not have related bearer information, the SGW can only discard the arriving downlink data packet, and cannot send the downlink data arrival notification message to the MME.
  • TAU Tracking Area Update
  • RAU Routing Area Update
  • Step S202 The UE moves to an E-UTRAN coverage area under another MME, and sends a tracking area update request to the new MME to request registration in a new area.
  • the request message carries the GUTIo allocated by the old MME for the UE.
  • Step 204 The new MME finds the old MME according to the GUTI identifier, and sends a context request signaling to perform a context acquisition process.
  • Step 206 The old MME sends the mobility management and bearer information of the user equipment to the new MME, BP, to perform a context response.
  • Step 210 The new MME initiates an update bearer request to the SGW, where the request message carries the source GTP-C tunnel identifier and the destination GTP-C tunnel identifier, and the SGW updates the binding relationship of the bearer.
  • Step 212 The SGW sends an update bearer request to the PGW, and sends parameters such as address information, tunnel identifier information, and access technology type of the SGW to the PGW.
  • Step 216 The SGW returns an update bearer response to the new MME, and brings the destination GTP-C tunnel identifier specified by the SGW, its own address, and the address and tunnel information of the PGW to the MME.
  • the new MME notifies the HSS registration location of the change by the location update message.
  • Step 220 The HSS sends location cancellation signaling to the old MME to maintain only the registration of the new MME.
  • the old MME returns a location cancellation response to the HSS.
  • step 224 the HSS confirms the location update of the new MME.
  • Step 226 If the new MME confirms that the UE is valid in the current tracking area, it sends a tracking area update accept message to the UE, where the message carries a periodic tracking area update timer, and the recommended value in the current standard protocol is 54 minutes.
  • Step 228 If the new MME allocates a new GUTI identifier to the UE through the TAU procedure, the UE returns a tracking area update complete message to confirm to the MME.
  • the RAU process initiated by the UEs registered under the E-UTRAN coverage area moving to the UTRAN coverage area is similar to the above process, and therefore will not be described. In an actual network, the SGW may restart due to system instability or upgrade.
  • the mobility management unit and the PGW After the mobility management unit and the PGW detect the SGW restart, the mobility management unit and the PGW in the existing operation network delete the user context associated with the PGW, and the mobility management unit cannot contact the user equipment and the user equipment cannot be obtained. Downstream data, can only be reconnected to the network when the user equipment has uplink data transmission. In order to enable the user service to recover as soon as possible, after the mobility management unit and the PGW detect the SGW restart, the mobility management unit and the PGW continue to retain the user context and the user bearer context for a period of time, but mark that the bearers are unavailable, and when the PGW is in these bearers When receiving the downlink data packet, the PGW discards it and does not perform charging.
  • the present invention provides a charging synchronization method, apparatus, and system to at least solve the related art PGW and
  • a charging synchronization method comprising: the PGW notifying the TDF to perform the same charging operation as the PGW described above.
  • the PGW notifying the TDF to perform the same charging operation as the PGW includes: the PGW notifying the TDF by the policy and charging rule function entity PCRF to perform the same charging operation as the PGW.
  • the method further includes: after receiving the downlink data packet, the PGW determines to perform a charging stop operation or a charging recovery operation on the data packet.
  • the PGW notifying the TDF by the PCRF to perform the same charging operation as the PGW includes: when the PGW determines to perform the charging stop operation on the data packet, the PGW notifies the TDF to perform the charging stop operation by using the PCRF, And/or notifying the TDF to discard the data packet directly; and when the PGW determines to perform a charging recovery operation on the data packet, the PGW notifies the TDF to perform a charging recovery operation by using the PCRF.
  • the PGW determines that performing the charging stop operation or the charging recovery operation on the data packet includes: after receiving the downlink data packet on the unavailable bearer, the PGW determines to perform the charging stop on the data packet.
  • the PGW determines to perform a charging recovery operation on the data packet.
  • the method further includes: the PGW notifying the TDF to perform a charging recovery operation when the bearer returns to normal.
  • the method further includes: after the PGW detects that the serving gateway SGW restarts, retaining the bearer context and the user context; and the PGW marking the bearer as being unavailable.
  • the method further includes: the PGW receiving the bearer suspension notification message sent by the mobility management entity MME through the SGW; and the PGW returning the bearer suspension confirmation to the MME by using the SGW.
  • the suspended bearer of the PGW is an unusable bearer.
  • the method further includes: the PGW receiving the modify bearer request message sent by the MME by using the SGW, where the PGW returns a modify bearer response message to the MME by using the SGW;
  • the modified bearer of the above PGW is to restore the normal bearer.
  • the method further includes: the MME reselecting the SGW; wherein the reselected SGW is the restarted SGW or the working SGW.
  • the method further includes: the MME receiving the non-access stratum message sent by the user equipment UE.
  • the non-access stratum message is a tracking area update TAU request message.
  • the PGW notifying the TDF to perform the same charging operation as the PGW by using the PCRF includes: the PGW sending a charging notification message to the PCRF; wherein the charging notification message is used to notify the TDF to perform the same charging as the PGW.
  • the PCRF sends the charging notification message to the TDF.
  • the method further includes: the TDF returning a charging notification response message to the PCRF; and the PGW receiving the charging notification response message sent by the PCRF.
  • the method further includes: after the SGW detects that the SGW restarts, the bearer context and the user context are reserved, and the bearer is marked as unavailable; the PCRF detects that the SGW is restarted, deletes the connection with the SGW, and retains user information and
  • the foregoing PCRF sends the foregoing charging notification message to the TDF, where the charging notification message is used to notify the TDF to perform the charging stop operation.
  • the method further includes: after the detecting, by the PCRF, the SGW to resume the operation, sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • the method further includes: after the PCRF detects that the PGW is restarted, deleting the connection with the PGW, and retaining the user information and the policy; the PCRF sending the charging notification message to the TDF; wherein the charging notification message is used to notify The above TDF performs a charging stop operation.
  • the method further includes: after detecting the PGW recovery operation, the PCRF sends the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • a billing synchronization apparatus comprising: a billing execution module configured to notify the TDF to perform the same billing operation as the PGW.
  • the charging execution module includes: a charging execution unit configured to notify the TDF by the policy and charging rule function entity PCRF to perform the same charging operation as the PGW.
  • the device further includes: a charging determining module, configured to: after receiving the downlink data packet, determine to perform a charging stop operation or a charging recovery operation on the data packet.
  • the charging execution unit includes: a first execution subunit, configured to notify the TDF to perform a charging stop operation by using the PCRF, and/or notify the TDF, in a case where the PGW determines to perform a charging stop operation on the data packet
  • the second execution subunit is configured to, when the PGW determines to perform a charging recovery operation on the data packet, notify the TDF to perform a charging recovery operation by using the PCRF.
  • the charging determination module includes: a charging stop determining unit, configured to: after receiving the downlink data packet on the unavailable bearer, determine to perform a charging stop operation on the data packet; or, the charging recovery determining unit is configured to be After receiving the downlink data packet on the normal bearer, it is determined that the charging recovery operation is performed on the foregoing data packet.
  • the apparatus further includes: a notification module, configured to notify the TDF to perform a charging recovery operation if the bearer returns to normal.
  • the foregoing charging determining module further includes: a retaining unit configured to: after detecting that the serving gateway SGW restarts, retain the bearer context and the user context; and the marking unit is set to mark the foregoing The bearer is a bearer that is not available.
  • the foregoing charging determining module further includes: a notification message receiving unit, configured to receive a bearer suspension notification message sent by the mobility management entity MME through the SGW; and a confirmation message returning unit, And the MME is configured to return a bearer suspension confirmation message to the MME by using the foregoing SGW, where the suspended bearer of the PGW is an unavailable bearer.
  • the charging determining module further includes: a request message receiving unit, configured to receive the modify bearer request message sent by the MME by using the SGW; and the response message returning unit is set to pass The SGW returns a modify bearer response message to the MME, where the modified bearer of the PGW is a normal bearer.
  • a billing synchronization system is provided.
  • the system includes: a PGW, a PCRF, and a TDF, wherein the PGW includes the charging synchronization device, and the PGW includes: a first sending module, configured to Sending a charging notification message to the PCRF; wherein the charging notification message is used to notify the TDF to perform the same charging operation as the PGW; the PCRF includes: a second sending module, configured to send the charging notification to the TDF Message.
  • the TDF includes: a response module, configured to return a charging notification response message to the PCRF; the PGW further includes: a receiving module, configured to receive the charging notification response message sent by the PCRF.
  • the foregoing PGW further includes: a reservation module, configured to: after detecting the restart of the SGW, retain the bearer context and the user context, and mark the bearer that the bearer is unavailable; the PCRF further includes: a first deleting module, configured to detect the SGW After the restart, the connection with the SGW is deleted, and the user information and the policy are retained.
  • the PCRF further includes: a first message sending module, configured to send the charging notification message to the TDF; wherein the charging notification message is used to notify The above TDF performs a charging stop operation.
  • the PCRF further includes: a second message sending module, configured to send the charging notification message to the TDF after detecting the SGW recovery work; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • the PCRF further includes: a second deleting module, configured to: after detecting the restart of the PGW, deleting a connection with the PGW, and retaining user information and a policy; the PCRF further includes: a third message sending module, configured to be to the TDF Sending the foregoing charging notification message; wherein the charging notification message is used to notify the TDF to perform a charging stop operation.
  • the PCRF further includes: a fourth message sending module, configured to send the charging notification message to the TDF after detecting the PGW recovery operation; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • the PGW notifies the TDF to perform the same charging operation as the PGW, solves the problem that the PGW and the TDF are not synchronized in the related art, reduces the error caused by the unsynchronized charging of the PGW and the TDF, and improves the PGW and the TDF.
  • Billing process BRIEF DESCRIPTION OF THE DRAWINGS
  • the accompanying drawings which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  • FIG. 1 is a schematic diagram of the architecture of a current SAE according to the related art
  • FIG. 2 is a TAU flow triggered by a UE registered under the E-UTRAN coverage area moving to another MME coverage area according to the related art
  • Is a flowchart of a charging synchronization method according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a PGW and TDF charging synchronization method according to an embodiment of the present invention
  • FIG. 5 is a notification of TDF after an SGW restart according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a PGW notifying TDF charging synchronization when a bearer "suspend" state on a PGW in an SRVCC according to an embodiment of the present invention
  • FIG. 7 is an MME according to an embodiment of the present invention.
  • a flow chart for notifying the TDF to resume charging after the bearer on the PGW is reselected after reselecting an SGW
  • 8 is a flowchart of notifying the TDF to resume charging after returning to the E-UTRAN coverage and returning to the TDF to resume charging after ending the CS session according to the embodiment of the present invention
  • FIG. 9 is a PCRF detecting the SGW restart notification TDF stop according to an embodiment of the present invention
  • FIG. 10 is a flowchart of detecting a PGW restart notification TDF stop charging according to an embodiment of the present invention
  • FIG. 11 is a structural block diagram of a charge synchronization apparatus according to an embodiment of the present invention
  • Step S302 The PGW notifies the TDF to perform the same.
  • the same billing operation of the PGW Through the above method, the PGW notifies the TDF to perform the same charging operation as the PGW, and solves the related art.
  • the problem that the PGW and the TDF are not synchronized is reduced, and the error caused by the unsynchronized charging of the PGW and the TDF is reduced, and the charging process of the PGW and the TDF is improved.
  • No matter how the PGW notifies the TDF as long as the two guarantee to perform the same charging operation.
  • the notification process can be implemented by PCRF in most cases. Therefore, this embodiment provides a preferred implementation manner, that is, the PGW notifies the above by PCRF.
  • the TDF performs the same charging operation as the PGW.
  • the PGW After the PGW receives the downlink data sent by the TDF on the unavailable bearer, if the PGW does not perform the charging, the PGW also notifies the TDF that the charging is not performed. After the PGW resumes normal charging, the PGW also notifies the TDF to resume normal charging. In general, the PGW notifies the TDF that charging is not performed by the PCRF.
  • the user bearer unavailability on the PGW includes detecting the SGW restart and receiving the Suspend Notification message sent by the SGW during the SRVCC and CSFB. After the user bearer on the PGW returns to normal, the PGW needs to notify the TDF to resume normal charging. .
  • the method further includes: after receiving the downlink data packet, the PGW determines to perform a charging stop operation or a charging recovery operation on the data packet.
  • the PGW determines to perform the charging stop operation on the data packet
  • the PGW notifies the TDF to perform the charging stop operation by using the PCRF, and/or notifies the TDF to directly discard the data packet; and the PGW determines to perform the counting on the data packet.
  • the PGW notifies the TDF to perform the charge recovery operation through the PCRF described above. In the above manner, the charging synchronization of the PGW and the TDF is realized.
  • the PGW determines that performing the charging stop operation or the charging recovery operation on the data packet comprises: after receiving the downlink data packet on the unavailable bearer, the PGW determines to perform charging on the data packet. The operation is stopped. Alternatively, after receiving the downlink data packet on the normal bearer, the PGW determines to perform a charging recovery operation on the data packet. In the case that the PGW notifies the TDF to directly discard the foregoing data packet, the foregoing method further includes: the PGW notifying the TDF to perform the charging recovery operation if the bearer returns to normal. In the above manner, the synchronization of the charging stop operation and the synchronization of the charging recovery operation are respectively implemented.
  • the method further includes: after the PGW detects that the serving gateway SGW restarts, the bearer context and the user context are reserved; and the PGW marks the bearer that the bearer is unavailable. This mode provides a basis for subsequently performing a charging stop operation or a charging recovery operation according to whether the bearer is available or not.
  • the method before the PGW receives the downlink data packet on the unavailable bearer, the method further includes: the PGW receiving the bearer suspension notification message sent by the mobility management entity MME through the SGW; and the PGW returning the bearer suspension confirmation to the MME by using the SGW.
  • the bearer of the PGW is a bearer that is unavailable.
  • the method further includes: the PGW receiving the modify bearer request message sent by the MME by using the SGW; and the PGW returning the modify bearer response message to the MME by using the SGW;
  • the modified bearer of the PGW is to restore the normal bearer.
  • the method further includes: the MME reselecting the SGW; wherein the reselected SGW is the restarted SGW or the working SGW.
  • the method further includes: the MME receiving the non-access stratum message sent by the user equipment UE. The above non-access stratum message may update the TAU request message for the tracking area.
  • the PGW notifying the TDF to perform the same charging operation as the PGW by using the PCRF includes: the PGW sending a charging notification message to the PCRF; wherein the charging notification message is used to notify the TDF to perform the same charging operation as the PGW; The foregoing charging notification message is sent to the TDF.
  • the method further includes: the TDF returns a charging notification response message to the PCRF; and the PGW receives the charging notification response message sent by the PCRF.
  • the method further includes: after detecting that the SGW restarts, the PGW retains the bearer context and the user context, and marks the bearer that the bearer is unavailable; the PCRF detects that the SGW restarts, deletes the connection with the SGW, and retains the user.
  • the information and the policy are sent by the PCRF to the TDF.
  • the charging notification message is used to notify the TDF to perform the charging stop operation.
  • the method further includes: after the detecting, by the PCRF, the SGW to resume the operation, sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • the method further includes: after the PCRF detects that the PGW is restarted, deleting the connection with the PGW, and retaining the user information and the policy; the PCRF sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF Perform the accounting stop operation.
  • the method further includes: after the PCRF detects the PGW recovery operation, sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • 4 is a flowchart of a PGW and TDF charging synchronization method according to an embodiment of the present invention. As shown in FIG. 4, the following steps are included (steps S402-S406): Step S402: The PGW receives a downlink on an unavailable bearer.
  • the PGW does not charge and discard packets.
  • the PGW notifies the TDF that the bearer is temporarily unavailable and suspends the charging through the PCRF. If the PCRF directly detects the SGW restart or the PGW restarts, the PCRF directly notifies the TDF that the bearer is unavailable and suspends the charging.
  • the bearer of the PGW is restored to normal, and the PGW needs to notify the TDF through the PCRF that the bearer has been restored and the charging is resumed.
  • FIG. 5 is a flowchart of notifying the TDF charging synchronization after the SGW restarts, as shown in FIG.
  • Step S502 after the MME detects the SGW restart, the MME The bearer context and user context are still preserved for a period of time.
  • Step S504 After the PGW detects that the SGW is restarted, the PGW still retains the bearer context and the user context for a period of time, but the affected bearer is temporarily unavailable.
  • Step S506 When the PGW receives the downlink data on the reserved bearers, the PGW does not perform charging and directly discards the received data packets.
  • Step S508 the PGW sends a TDF stop charging request message to the PCRF to notify the PCRF that the bearer is temporarily unavailable and requires TDF to stop charging.
  • Step S510 the PCRF sends a TDF stop charging request message to the TDF to notify the TDF that the bearer is temporarily unavailable and requires TDF to stop charging.
  • Step S512 the TDF returns a TDF stop charging response message to the PCRF.
  • Step S514, the PCRF returns a TDF stop charging response message to the PGW.
  • the coverage area of the MME is taken as an example.
  • the processing method is similar, and therefore will not be described in detail.
  • 6 is a flowchart of a PGW notifying TDF charging synchronization when a bearer "suspend" state on a PGW in an SRVCC according to an embodiment of the present invention, as shown in FIG.
  • Step S602 the UE sends a measurement report to the eNodeB.
  • Step S604 according to the measurement report of the UE, the eNodeB decides to initiate an SRVCC handover to the GERAN, and the eNodeB sends a handover request message to the MME.
  • Step S606 The MME classifies according to the QCI of the bearer, and switches the voice bearer to the circuit domain, and the MME sends a PS to CS handover request message to the MSC.
  • Step S608 the MSC sends a handover request message to the BSS, and the BSS returns a handover confirmation message to the MSC.
  • Step S610 the MSC returns a PS to CS handover response message to the MME.
  • Step S612 the source MME sends a handover command to the source eNodeB.
  • Step S614, the source eNodeB sends a handover command to the UE.
  • Step S618, the target BSS forwards the bearer suspension message to the target SGSN.
  • Step S620 The target SGSN initiates a suspension notification message to the source MME, and the source MME returns a corresponding acknowledgement message.
  • Step S622, the target BSS sends a handover complete message to the target SGSN.
  • Step S624 the MSC sends a PS to CS handover complete message to the MME; the MME returns a PS to CS handover confirmation message to the MSC.
  • Step S626 the source MME sends a suspension notification message to the SGW.
  • Step S628, the SGW forwards the suspension notification message to the PGW.
  • Step S630 the PGW returns a suspend confirmation message to the SGW.
  • Step S634 When the PGW receives downlink data on the suspended bearers, the PGW does not perform charging and directly discards the received data packets.
  • Step S636 the PGW sends a TDF stop charging request message to the PCRF to notify the PCRF that the bearer is temporarily suspended and the TDF is required to stop charging.
  • Step S640 the TDF returns a TDF stop charging response message to the PCRF.
  • Step S642 the PCRF returns a TDF stop charging response message to the PGW.
  • the original coverage area of the MME is taken as an example. For the coverage area where the UE is originally located in the SGSN, the processing method is similar, and therefore will not be described in detail.
  • FIG. 7 is a flowchart of the TDF recovery charging after the bearer on the PGW is reselected after the MME reselects an SGW according to an embodiment of the present invention. As shown in FIG. 7, the following steps are included (step S702 - step S718): Step S702, The MME reselects an SGW, which may be an SGW that has been restarted or another SGW that is working normally.
  • Step S704 the MME sends a setup session request message to the new SGW, where the message carries an IMSI, a user IP address, and a QoS-bearing parameter.
  • Step S706 the new SGW sends a modify bearer request message to the PGW.
  • Step S710 the SGW returns a setup session response message to the MME.
  • Step S712 After the bearer on the PGW returns to normal, the PGW sends a TDF recovery charging notification message to the PCRF to notify the bearer to return to normal and needs TDF to resume charging.
  • Step S714 the PCRF sends a TDF recovery charging notification message to the TDF to notify that the bearer returns to normal and requires TDF to resume charging.
  • FIG. 8 is a flowchart of notifying the TDF to resume charging after returning to the E-UTRAN coverage and returning to the TDF to resume the charging according to the embodiment of the present invention. The flow of FIG. 8 may be added to the process of FIG.
  • Step S802 After the UE ends the CS call, the UE returns to the eNodeB coverage area, and the UE sends a TAU request message to the MME.
  • Step S804 the MME sends a modify bearer request message to the SGW.
  • Step S810 the SGW returns a setup session response message to the MME.
  • Step S812 the MME returns a TAU accept message to the UE.
  • Step S814 After the bearer on the PGW returns to normal, the PGW sends a TDF recovery charging notification message to the PCRF to notify the bearer to return to normal and needs TDF to resume charging. Step S816, the PCRF sends a TDF recovery charging notification message to the TDF to notify that the bearer returns to normal and requires TDF to resume charging. Step S818, the TDF returns a TDF recovery charging confirmation message to the PCRF. Step S820, the PCRF returns a TDF recovery charging confirmation message to the PGW.
  • This embodiment uses a TAU message as an example for description. For other non-access stratum messages, the specific process is similar and will not be specifically described. FIG.
  • Step S902 After the MME detects that the SGW is restarted, The MME still retains the bearer context and the user context for a period of time; Step S904, after the PGW detects that the SGW restarts, the PGW still retains the bearer context and the user context for a period of time, but marks that the affected bearer is temporarily unavailable; Step S906, the PCRF detects the SGW restart.
  • FIG. 10 is a flowchart of a PCRF detecting a PGW restart notification TDF stop charging according to an embodiment of the present invention. As shown in FIG.
  • Step S1002 the PGW restarts.
  • Step S1004 After the PCRF detects that the PGW is restarted, the PCRF locally deletes the connection with the PGW, but still retains other information and policies of the user.
  • Step S1006 The PCRF sends a TDF stop charging request message to the TDF to notify the TDF that the bearer is temporarily unavailable and needs to stop charging.
  • step S1008 the TDF returns a TDF stop charging response message to the PCRF.
  • the charging recovery process can still be performed in a manner similar to that provided in FIG. 7. After the PCRF detects that the PGW restarts, the subsequent charging recovery process is performed, and details are not described herein.
  • FIG. 11 is a structural block diagram of a charging synchronization apparatus according to an embodiment of the present invention.
  • the apparatus includes: a charging execution module 12 configured to notify the TDF to perform the same charging operation as the PGW.
  • the charging execution module of the PGW notifies the TDF to perform the same charging operation as the PGW, solves the problem that the PGW and the TDF charging are not synchronized in the related art, and reduces the error caused by the unsynchronized charging of the PGW and the TDF.
  • the billing process for PGW and TDF has been improved.
  • the charging execution module includes: a charging execution unit configured to notify the TDF by the PCRF to perform the same charging operation as the PGW.
  • the device further includes: a charging determining module, configured to: after receiving the downlink data packet, determine to perform a charging stop operation or a charging recovery operation on the data packet. This ensures the accuracy and timeliness of the notification process.
  • the charging execution unit includes: a first execution subunit, configured to notify the TDF to perform a charging stop operation by using the PCRF, and/or notify the TDF, in a case where the PGW determines to perform a charging stop operation on the data packet
  • the second execution subunit is configured to, when the PGW determines to perform a charging recovery operation on the data packet, notify the TDF to perform a charging recovery operation by using the PCRF.
  • the charging determination module includes: a charging stop determining unit, configured to: after receiving the downlink data packet on the unavailable bearer, determine to perform a charging stop operation on the data packet; or, the charging recovery determining unit is configured to be After receiving the downlink data packet on the normal bearer, it is determined that the charging recovery operation is performed on the foregoing data packet.
  • the apparatus further includes: a notification module, configured to notify the TDF to perform a charging recovery operation if the bearer returns to normal.
  • the foregoing charging determining module further includes: a retaining unit configured to: after detecting that the serving gateway SGW restarts, retain the bearer context and the user context; and the marking unit is configured to mark the bearer A bearer that is not available.
  • the structure provides a basis for subsequently performing a charging stop operation or a charging recovery operation depending on whether the bearer is available or not.
  • the foregoing charging determining module further includes: a notification message receiving unit, configured to receive a bearer suspension notification message sent by the mobility management entity MME through the SGW; confirming the message returning unit, setting The bearer suspension confirmation message is returned to the MME by using the foregoing SGW.
  • the suspended bearer of the PGW is a bearer that is unavailable.
  • the foregoing charging determining module further includes: a request message receiving unit, configured to receive the modify bearer request message sent by the MME by using the SGW; and the response message returning unit is configured to pass the foregoing
  • the SGW returns a modify bearer response message to the MME, where the modified bearer of the PGW is a normal bearer.
  • this embodiment provides a charging synchronization system, which is used to implement the foregoing embodiment.
  • FIG. 12 is a structural block diagram of a charging synchronization system according to an embodiment of the present invention. As shown in FIG.
  • the system includes: a PGW, a PCRF, and a TDF.
  • the PGW includes the charging synchronization device introduced in the foregoing embodiment, and the PGW includes:
  • the first sending module 14 is configured to send a charging notification message to the PCRF.
  • the charging notification message is used to notify the TDF to perform the same charging operation as the PGW.
  • the PCRF includes: a second sending module 16, configured to The TDF sends the above charging notification message.
  • the TDF includes: a response module, configured to return a charging notification response message to the PCRF; the PGW further includes: a receiving module, configured to receive the charging notification response message sent by the PCRF.
  • the PGW can learn the notification of the PGW of the TDF response, and improve the accuracy and efficiency of the charging synchronization.
  • the foregoing PGW further includes: a reservation module, configured to: after detecting the restart of the SGW, retain the bearer context and the user context, and mark the bearer that the bearer is unavailable; the PCRF further includes: a first deleting module, configured to detect the SGW After the restart, the connection with the SGW is deleted, and the user information and the policy are retained.
  • the PCRF further includes: a first message sending module, configured to send the charging notification message to the TDF; wherein the charging notification message is used to notify The above TDF performs a charging stop operation.
  • the PCRF can trigger the charging stop operation or the charging recovery operation by detecting the restart of the SGW, and expand the applicable range of the charging synchronization.
  • the PCRF further includes: a second message sending module, configured to send the charging notification message to the TDF after detecting the SGW recovery work; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • the PCRF further includes: a second deleting module, configured to: after detecting the restart of the PGW, deleting a connection with the PGW, and retaining user information and a policy; the PCRF further includes: a third message sending module, configured to be to the TDF Sending the foregoing charging notification message; wherein the charging notification message is used to notify the TDF to perform a charging stop operation.
  • the PCRF further includes: a fourth message sending module, configured to send the charging notification message to the TDF after detecting the PGW recovery operation; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation.
  • the PCRF can trigger the charging stop operation or the charging recovery operation by detecting the restart of the PGW, and expand the applicable range of the charging synchronization.
  • the PGW notifies the TDF to perform the same charging operation as the PGW, realizes the charging synchronization of the PGW and the TDF, and reduces the error caused by the unsynchronized charging of the PGW and the TDF, and is improved.
  • the billing process for PGW and TDF is improved.
  • a charging synchronization method, apparatus, and system provided by an embodiment of the present invention have the following beneficial effects: Realizing billing synchronization of PGW and TDF, and reducing unsynchronized billing due to PGW and TDF The error has improved the billing process for PGW and TDF.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.

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)

Abstract

Disclosed are an accounting synchronization method, apparatus and system. The method comprises: a PGW instructing a TDF to perform an accounting operation same as that of the foregoing PGW. Through the present invention, a PGW instructs a TDF to perform an accounting operation same as that of the PGW, so as to solve the problem of accounting asynchronization between a PGW and a TDF in the prior art, reduce errors caused due to the accounting asynchronization between the PGW and the TDF, and improve the accounting process of the PGW and the TDF.

Description

计费同步方法、 装置及***  Billing synchronization method, device and system
技术领域 本发明涉及通信领域, 具体而言, 涉及一种计费同步方法、 装置及***。 背景技术 随着全球微波接入互通 (World Interoperability for Microwave Access, 简称为TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a charging synchronization method, apparatus, and system. BACKGROUND OF THE INVENTION Worldwide Interoperability for Microwave Access (World Interoperability for Microwave Access, referred to as
WiMax)的异军突起,第三代移动通信***要保持其在移动通信领域的强有力竞争力, 必须提高其网络性能和降低网络建设及运营成本。 因此, 第三代合作伙伴计划 (3rd Generation Partnership Project, 简称为 3GPP) 的标准化工作组, 目前正致力于研究包 交换核心网 (Packet Switch Core, 简称为 PS Core) 和全球移动通信***无线接入网 (Universal Mobile Telecommunication System Radio Access Network, 简禾尔为 UTRAN) 的演进, 这个研究的课题叫做***架构演进 (System Architecture Evolution, 简称为 SAE), 目的是使得演进的分组网 (Evolved Packet Core, 简称为 EPC) 可提供更高的 传输速率, 更短的传输延时, 优化分组, 及支持演进的 UTRAN (Evolved UTRAN, 简称为 E-UTRAN)、UTRAN、无线局域网(Wireless Local Area Network,简称为 WLAN) 以及其他非 3GPP的接入网络之间的移动性管理。 图 1是根据相关技术的当前 SAE的架构示意图,如图 1所示, SAE包含了如下网 元: 演进的无线接入网 (Evolved RAN, 简称为 E-RAN): 可以提供更高的上 /下行速 率、更低的传输延迟和更加可靠的无线传输。 E-RAN中包含的网元是 E-NodeB( Evolved NodeB, 演进节点 B), 设置为为用户的接入提供无线资源。 分组数据网 (Packet Data Network, 简称为 PDN): 为用户提供业务的网络。 演进的分组网 (E-Packet Core), 提供了更低的延迟, 并允许更多的无线接入*** 接入。 其包含如下网元: 移动管理实体 (Mobility Management Entity, 简称为 MME): 控制面功能实体, 临时存储用户数据的服务器, 负责管理和存储用户设备(User Equipment, 简称为 UE) 的上下文 (比如 UE/用户标识, 移动性管理状态, 用户安全参数等), 为用户分配临时 标识, 当 UE驻扎在该跟踪区域或者该网络时, 负责对该用户进行鉴权; 处理 MME 和 UE之间的所有非接入层消息; 触发在 SAE的寻呼。 MME是 SAE***的移动管理 单元。在 UMTS***中,移动管理单元是 SGSN(Serving GPRS Support Node,服务 GPRS 支持节点)。 服务网关(Serving Gateway, 简称为 SGW)是一个用户面实体, 负责用户面数据 路由处理, 终结处于空闲 (ECMJDLE) 状态的 UE的下行数据。 管理和存储 UE的 SAE承载 (bearer) 上下文, 比如 IP承载业务参数和网络内部路由信息等。 SGW是 3GPP***内部用户面的锚点, 一个用户在一个时刻只能有一个 SGW; 分组数据网网关 (PDN Gateway, 简称为 PGW), 负责 UE接入 PDN的网关, 分 配用户 IP地址, 同时是 3GPP和非 3GPP接入***的移动性锚点, PGW的功能还包括 策略实施、计费支持。用户在同一时刻能够接入多个 PGW。 PCEF (Policy and Charging Enforcement Function, 策略与计费实施功能实体) 也位于 PGW中。 策略与计费规则功能实体 (Policy and Charging Rules Function, 简称为 PCRF) 负 责向 PCEF提供策略控制与计费规则。 归属用户服务器(Home Subscriber Server, 简称为 HSS)永久存储用户签约数据, HSS存储的内容包括 UE的 IMSI (International Mobile Subscriber Identification, 国际 移动用户识别码)、 PGW的 IP地址。 HSS与服务 GPRS支持节点连接, 服务 GPRS支 持节点与无线网络控制器 (Radio Network Controller, 简称为 RNC) 连接。 业务检测功能实体(Traffic Detection Function, 简称为 TDF), 负责用户的业务应 用检测并进行控制, 还可以根据检测到的业务应用进行计费。 在物理上, SGW和 PGW可能合一。 EPC***用户面网元包括 SGW和 PGW。 当WiMax's sudden emergence, the third generation of mobile communication systems to maintain their strong competitiveness in the field of mobile communications, must improve their network performance and reduce network construction and operating costs. Therefore, the 3rd Generation Partnership Project (3GPP) standardization working group is currently working on the research of Packet Switch Core (PS Core) and global mobile communication system wireless access. The evolution of the Universal Mobile Telecommunication System Radio Access Network (UTRAN) is called System Architecture Evolution (SAE). The purpose is to make Evolved Packet Core (referred to as Evolved Packet Core). EPC) can provide higher transmission rate, shorter transmission delay, optimized packet, and support for evolved UTRAN (Evolved UTRAN, E-UTRAN for short), UTRAN, Wireless Local Area Network (WLAN) And mobility management between other non-3GPP access networks. 1 is a schematic structural diagram of a current SAE according to the related art. As shown in FIG. 1, the SAE includes the following network elements: an evolved radio access network (Evolved RAN, referred to as E-RAN): can provide higher on/ Downlink rate, lower transmission delay and more reliable wireless transmission. The network element included in the E-RAN is an E-NodeB (Evolved NodeB), which is set to provide radio resources for user access. Packet Data Network (PDN): A network that provides services to users. The E-Packet Core provides lower latency and allows more wireless access systems to access. The network element includes the following: a Mobility Management Entity (MME): A control plane function entity, a server that temporarily stores user data, and is responsible for managing and storing a user equipment (User Equipment, UE for short) context (such as UE). User identification, mobility management status, user security parameters, etc., assigning a temporary identifier to the user, and when the UE is camped in the tracking area or the network, is responsible for authenticating the user; All non-access stratum messages between the UE and the UE; triggering paging on the SAE. The MME is the mobility management unit of the SAE system. In the UMTS system, the mobility management unit is an SGSN (Serving GPRS Support Node). The Serving Gateway (SGW) is a user plane entity that is responsible for user plane data routing processing and terminates downlink data of UEs in idle (ECMJDLE) state. Manage and store the SAE bearer context of the UE, such as IP bearer service parameters and network internal routing information. The SGW is the anchor point of the internal user plane of the 3GPP system. One user can only have one SGW at a time. The packet data network gateway (PDN Gateway, PGW for short) is responsible for the UE accessing the PDN gateway, assigning the user IP address, and The mobility anchor of 3GPP and non-3GPP access systems, the functions of the PGW also include policy implementation and charging support. Users can access multiple PGWs at the same time. The PCEF (Policy and Charging Enforcement Function) is also located in the PGW. The Policy and Charging Rules Function (PCRF) is responsible for providing policy control and charging rules to the PCEF. The Home Subscriber Server (HSS) permanently stores user subscription data. The content stored in the HSS includes the IMSI (International Mobile Subscriber Identification) of the UE and the IP address of the PGW. The HSS is connected to the serving GPRS support node, and the serving GPRS support node is connected to a Radio Network Controller (RNC). The Traffic Detection Function (TDF) is responsible for detecting and controlling the service application of the user. It can also perform charging based on the detected service application. Physically, the SGW and the PGW may be one. The EPC system user plane network element includes SGW and PGW. when
SGW与 PGW之间通过 GTP (GPRS Tunneling Protocol, GPRS隧道协议) 连接时, SGW与 PCRF之间没有接口; 当 SGW与 PGW之间通过 PMIP (Proxy Mobile Internet Protocol) 连接时, SGW与 PCRF通过 Gxc接口连接。 在 SAE***中, SGW具有缓存处于空闲状态的 UE下行数据的功能。当 UE处于 空闲模式下, SGW收到来自 PGW向 UE下发的下行数据时, 由于 SGW不知道 UE 所处服务 E-NodeB (或称为 eNodeB) 的地址, 因此 SGW不能及时下发下行数据, 因 此 SGW需对收到的下行数据进行缓存, 同时需要向 MME发送下行数据到达通知消 息 (Downlink Data Notification),由 MME触发寻呼(Paging)。在一定时间内如果 MME 收到寻呼响应, 那么 Serving GW可以及时获得 eNodeB的地址, 可以向 eNodeB下发 缓存的数据, 具体的流程如图 2所示。 但是当 SGW没有相关的承载信息时, SGW只 能丢弃到达的下行数据包, 并且无法向 MME发送下行数据到达通知消息。 当 UE所处的覆盖区发生改变, 例如, 从一个移动性管理单元覆盖区移动到另一 个移动性管理单元覆盖区时, UE通过监听广播信道发现进入到了一个未注册的区域, 为了保证 UE与核心网之间的业务连续,则需要在新的 RAT覆盖区下进行注册,因此, UE会发起跟踪区更新(Tracking Area Update, 简称为 TAU)或者路由区更新(Routing Area Update, 简称为 RAU)流程。 图 2是根据相关技术的注册在 E-UTRAN覆盖区下 的 UE移动到另一个 MME覆盖区下引发的 TAU流程。如图 2所示,包括以下步骤(步 骤 S202-步骤 S228): 步骤 202, UE移动到另外一个 MME下的 E-UTRAN覆盖区, 向新 MME发送跟 踪区更新请求, 请求在新的区域进行注册, 请求消息中携带旧 MME 为 UE 分配的 GUTIo 步骤 204, 新 MME根据 GUTI标识找到旧 MME, 发送上下文请求信令进行上下 文获取过程。 步骤 206, 旧 MME将用户设备的移动管理和承载信息发送给新 MME, BP, 进行 上下文响应。 步骤 208, 新 MME收到相应的信息后对上下文进行确认, SP, 上下文确认。 步骤 210, 新 MME向 SGW发起更新承载请求, 请求消息中携带源 GTP-C隧道 标识和目的 GTP-C隧道标识, SGW更新承载的绑定关系。 步骤 212, SGW向 PGW发送更新承载请求, 将 SGW的地址信息、 隧道标识信 息、 接入技术类型等参数发送给 PGW。 步骤 214, PGW更新自己的上下文并向 SGW返回更新承载响应信息, 信息内容 包括 PGW的地址和隧道标识等。 步骤 216, SGW向新 MME返回更新承载响应, 将 SGW指定的目的 GTP-C隧道 标识、 自身的地址、 以及 PGW的地址和隧道信息等带给 MME。 步骤 218, 新 MME通过位置更新消息通知 HSS注册位置的改变。 步骤 220, HSS向旧 MME发送位置取消信令, 只维护新 MME的注册。 步骤 222, 旧 MME向 HSS返回位置取消响应。 步骤 224, HSS对新 MME的位置更新进行确认。 步骤 226, 如果新 MME确认 UE在当前的跟踪区内有效, 则向 UE发送跟踪区更 新接受消息, 该消息中携带周期性跟踪区更新定时器, 目前标准协议中推荐值是 54 分钟。 步骤 228, 如果新 MME通过 TAU流程为 UE分配了一个新的 GUTI标识, 那么 UE会返回跟踪区更新完成消息向 MME进行确认。 对于注册在 E-UTRAN覆盖区下的 UE移动到 UTRAN覆盖区下引发的 RAU流程, 与上述流程类似, 故不做赘述。在实际网络中, SGW可能由于***不稳定或者升级导 致重启。在移动性管理单元及 PGW检测到 SGW重启之后, 现有的运营网络中移动性 管理单元与 PGW将删除与之关联的用户上下文, 导致移动性管理单元不能联系到用 户设备以及造成该用户设备无法得到下行数据, 只有当用户设备有上行数据发送时才 能与网络重新连接。 为了使用户业务能够尽快恢复, 移动性管理单元及 PGW检测到 SGW重启之后, 移动性管理单元及 PGW继续保留用户上下文和用户承载上下文一段 时间,但是标记这些承载不可用,并且当 PGW在这些承载上收到下行数据包时, PGW 进行丢弃, 也不进行计费。 但是因为 TDF会对发送给 PGW的数据包进行计费, 这样 就造成了计费的不同步。 针对相关技术中 PGW和 TDF计费不同步的问题,目前尚未提出有效的解决方案。 发明内容 本发明提供了一种计费同步方法、 装置及***, 以至少解决相关技术中 PGW和When the SGW and the PGW are connected by the GTP (GPRS Tunneling Protocol), there is no interface between the SGW and the PCRF. When the SGW and the PGW are connected by the PMIP (Proxy Mobile Internet Protocol), the SGW and the PCRF pass the Gxc interface. connection. In the SAE system, the SGW has a function of buffering downlink data of the UE in an idle state. When the SGW receives the downlink data from the PGW to the UE, the SGW cannot send the downlink data in time because the SGW does not know the address of the E-NodeB (or eNodeB) that the UE is in. Therefore, the SGW needs to buffer the received downlink data, and needs to send a downlink data arrival notification message (Downlink Data Notification) to the MME, and the MME triggers paging (Paging). If the MME receives the paging response within a certain period of time, the Serving GW can obtain the address of the eNodeB in time, and can deliver the message to the eNodeB. The cached data, the specific process is shown in Figure 2. However, when the SGW does not have related bearer information, the SGW can only discard the arriving downlink data packet, and cannot send the downlink data arrival notification message to the MME. When the coverage area where the UE is located changes, for example, from one mobility management unit coverage area to another mobility management unit coverage area, the UE discovers that it has entered an unregistered area by listening to the broadcast channel, in order to ensure the UE and If the services between the core networks are contiguous, the registration needs to be performed under the new RAT coverage area. Therefore, the UE initiates Tracking Area Update (TAU) or Routing Area Update (RAU). Process. 2 is a TAU procedure initiated by a UE registered under an E-UTRAN coverage area moving to another MME coverage area according to the related art. As shown in FIG. 2, the following steps are included (step S202 - step S228): Step 202: The UE moves to an E-UTRAN coverage area under another MME, and sends a tracking area update request to the new MME to request registration in a new area. The request message carries the GUTIo allocated by the old MME for the UE. Step 204: The new MME finds the old MME according to the GUTI identifier, and sends a context request signaling to perform a context acquisition process. Step 206: The old MME sends the mobility management and bearer information of the user equipment to the new MME, BP, to perform a context response. Step 208: After receiving the corresponding information, the new MME confirms the context, SP, and confirms the context. Step 210: The new MME initiates an update bearer request to the SGW, where the request message carries the source GTP-C tunnel identifier and the destination GTP-C tunnel identifier, and the SGW updates the binding relationship of the bearer. Step 212: The SGW sends an update bearer request to the PGW, and sends parameters such as address information, tunnel identifier information, and access technology type of the SGW to the PGW. Step 214: The PGW updates its own context and returns an update bearer response information to the SGW, where the information content includes an address of the PGW, a tunnel identifier, and the like. Step 216: The SGW returns an update bearer response to the new MME, and brings the destination GTP-C tunnel identifier specified by the SGW, its own address, and the address and tunnel information of the PGW to the MME. In step 218, the new MME notifies the HSS registration location of the change by the location update message. Step 220: The HSS sends location cancellation signaling to the old MME to maintain only the registration of the new MME. In step 222, the old MME returns a location cancellation response to the HSS. In step 224, the HSS confirms the location update of the new MME. Step 226: If the new MME confirms that the UE is valid in the current tracking area, it sends a tracking area update accept message to the UE, where the message carries a periodic tracking area update timer, and the recommended value in the current standard protocol is 54 minutes. Step 228: If the new MME allocates a new GUTI identifier to the UE through the TAU procedure, the UE returns a tracking area update complete message to confirm to the MME. The RAU process initiated by the UEs registered under the E-UTRAN coverage area moving to the UTRAN coverage area is similar to the above process, and therefore will not be described. In an actual network, the SGW may restart due to system instability or upgrade. After the mobility management unit and the PGW detect the SGW restart, the mobility management unit and the PGW in the existing operation network delete the user context associated with the PGW, and the mobility management unit cannot contact the user equipment and the user equipment cannot be obtained. Downstream data, can only be reconnected to the network when the user equipment has uplink data transmission. In order to enable the user service to recover as soon as possible, after the mobility management unit and the PGW detect the SGW restart, the mobility management unit and the PGW continue to retain the user context and the user bearer context for a period of time, but mark that the bearers are unavailable, and when the PGW is in these bearers When receiving the downlink data packet, the PGW discards it and does not perform charging. However, because TDF charges the data packets sent to the PGW, this causes the billing to be out of sync. In view of the problem that the PGW and TDF billing are not synchronized in the related art, an effective solution has not been proposed yet. SUMMARY OF THE INVENTION The present invention provides a charging synchronization method, apparatus, and system to at least solve the related art PGW and
TDF计费不同步的问题。 根据本发明的一个方面, 提供了一种计费同步方法, 该方法包括: PGW通知 TDF 执行与上述 PGW相同的计费操作。 上述 PGW通知上述 TDF执行与上述 PGW相同的计费操作包括:上述 PGW通过 策略与计费规则功能实体 PCRF通知上述 TDF执行与上述 PGW相同的计费操作。 上述 PGW通知上述 TDF执行与上述 PGW相同的计费操作之前, 上述方法还包 括: 上述 PGW接收到下行数据包后, 确定对上述数据包执行计费停止操作或者计费 恢复操作。 上述 PGW通过上述 PCRF通知上述 TDF执行与上述 PGW相同的计费操作包括: 在上述 PGW确定对上述数据包执行计费停止操作的情况下,上述 PGW通过上述 PCRF 通知上述 TDF执行计费停止操作, 和 /或通知上述 TDF直接丢弃上述数据包; 在上述 PGW确定对上述数据包执行计费恢复操作的情况下, 上述 PGW通过上述 PCRF通知 上述 TDF执行计费恢复操作。 上述 PGW接收到下行数据包后, 确定对上述数据包执行计费停止操作或者计费 恢复操作包括: 上述 PGW在不可用的承载上接收到下行数据包后, 确定对上述数据 包执行计费停止操作; 或者, 上述 PGW在恢复正常的承载上接收到下行数据包后, 确定对上述数据包执行计费恢复操作。 在上述 PGW通知上述 TDF直接丢弃上述数据包的情况下, 上述方法还包括: 上 述 PGW在承载恢复正常的情况下, 通知上述 TDF执行计费恢复操作。 上述 PGW在不可用的承载上接收到下行数据包之前,上述方法还包括:上述 PGW 检测到服务网关 SGW重启后, 保留承载上下文和用户上下文; 上述 PGW标记上述承 载为不可用的承载。 上述 PGW在不可用的承载上接收到下行数据包之前,上述方法还包括:上述 PGW 接收移动管理实体 MME通过 SGW发送的承载挂起通知消息; 上述 PGW通过上述 SGW向上述 MME返回承载挂起确认消息; 其中, 上述 PGW的挂起的承载为不可用 的承载。 上述 PGW在恢复正常的承载上接收到下行数据包之前, 上述方法还包括: 上述 PGW接收上述 MME通过 SGW发送的修改承载请求消息; 上述 PGW通过上述 SGW 向上述 MME返回修改承载响应消息; 其中, 上述 PGW的修改的承载为恢复正常的 承载。 上述 PGW接收上述 MME通过 SGW发送的修改承载请求消息之前,上述方法还 包括: 上述 MME重选 SGW; 其中, 重选的 SGW为已重启的 SGW或者正常工作的 SGW。 上述 PGW接收上述 MME通过 SGW发送的修改承载请求消息之前,上述方法还 包括: 上述 MME接收用户设备 UE发送的非接入层消息。 上述非接入层消息为跟踪区更新 TAU请求消息。 上述 PGW通过上述 PCRF通知上述 TDF执行与上述 PGW相同的计费操作包括: 上述 PGW向上述 PCRF发送计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行与上述 PGW相同的计费操作; 上述 PCRF向上述 TDF发送上述计费通知消 息。 上述 PGW通过上述 PCRF通知上述 TDF执行与上述 PGW相同的计费操作之后, 上述方法还包括: 上述 TDF向上述 PCRF返回计费通知响应消息; 上述 PGW接收上 述 PCRF发送的上述计费通知响应消息。 上述方法还包括:上述 PGW检测到 SGW重启后,保留承载上下文和用户上下文, 并标记上述承载为不可用的承载; 上述 PCRF检测到 SGW重启后, 删除与上述 SGW 的连接, 并保留用户信息和策略; 上述 PCRF向上述 TDF发送上述计费通知消息; 其 中, 上述计费通知消息用于通知上述 TDF执行计费停止操作。 上述方法还包括: 上述 PCRF检测到 SGW恢复工作后, 向上述 TDF发送上述计 费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行计费恢复操作。 上述方法还包括:上述 PCRF检测到上述 PGW重启后,删除与上述 PGW的连接, 并保留用户信息和策略; 上述 PCRF向上述 TDF发送上述计费通知消息; 其中, 上述 计费通知消息用于通知上述 TDF执行计费停止操作。 上述方法还包括: 上述 PCRF检测到上述 PGW恢复工作后, 向上述 TDF发送上 述计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行计费恢复操作。 根据本发明的另一方面, 提供了一种计费同步装置, 该装置包括: 计费执行模块, 设置为通知 TDF执行与上述 PGW相同的计费操作。 上述计费执行模块包括: 计费执行单元, 设置为通过策略与计费规则功能实体 PCRF通知上述 TDF执行与上述 PGW相同的计费操作。 上述装置还包括: 计费确定模块, 设置为接收到下行数据包后, 确定对上述数据 包执行计费停止操作或者计费恢复操作。 上述计费执行单元包括: 第一执行子单元, 设置为在上述 PGW确定对上述数据 包执行计费停止操作的情况下, 通过上述 PCRF通知上述 TDF执行计费停止操作, 和 /或通知上述 TDF直接丢弃上述数据包; 第二执行子单元, 设置为在上述 PGW确定对 上述数据包执行计费恢复操作的情况下,通过上述 PCRF通知上述 TDF执行计费恢复 操作。 上述计费确定模块包括: 计费停止确定单元, 设置为在不可用的承载上接收到下 行数据包后, 确定对上述数据包执行计费停止操作; 或者, 计费恢复确定单元, 设置 为在恢复正常的承载上接收到下行数据包后, 确定对上述数据包执行计费恢复操作。 在上述 PGW通知上述 TDF直接丢弃上述数据包的情况下, 上述装置还包括: 通 知模块, 设置为在承载恢复正常的情况下, 通知上述 TDF执行计费恢复操作。 上述 PGW在不可用的承载上接收到下行数据包之前, 上述计费确定模块还包括: 保留单元, 设置为检测到服务网关 SGW重启后, 保留承载上下文和用户上下文; 标 记单元, 设置为标记上述承载为不可用的承载。 上述 PGW在不可用的承载上接收到下行数据包之前, 上述计费确定模块还包括: 通知消息接收单元, 设置为接收移动管理实体 MME通过 SGW发送的承载挂起通知 消息; 确认消息返回单元, 设置为通过上述 SGW向上述 MME返回承载挂起确认消 息; 其中, 上述 PGW的挂起的承载为不可用的承载。 上述 PGW在恢复正常的承载上接收到下行数据包之前, 上述计费确定模块还包 括: 请求消息接收单元, 设置为接收上述 MME通过 SGW发送的修改承载请求消息; 响应消息返回单元, 设置为通过上述 SGW向上述 MME返回修改承载响应消息; 其 中, 上述 PGW的修改的承载为恢复正常的承载。 根据本发明的再一方面, 提供了一种计费同步***, 该***包括: PGW、 PCRF 以及 TDF, 其中, 上述 PGW包括上述的计费同步装置, 上述 PGW包括: 第一发送模 块, 设置为向上述 PCRF发送计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行与上述 PGW相同的计费操作; 上述 PCRF包括: 第二发送模块, 设置为向 上述 TDF发送上述计费通知消息。 上述 TDF包括: 响应模块, 设置为向上述 PCRF返回计费通知响应消息; 上述 PGW还包括: 接收模块, 设置为接收上述 PCRF发送的上述计费通知响应消息。 上述 PGW还包括: 保留模块, 设置为在检测到 SGW重启后, 保留承载上下文和 用户上下文, 并标记上述承载为不可用的承载; 上述 PCRF还包括: 第一删除模块, 设置为在检测到 SGW重启后, 删除与上述 SGW的连接, 并保留用户信息和策略; 上 述 PCRF还包括: 第一消息发送模块, 设置为向上述 TDF发送上述计费通知消息; 其 中, 上述计费通知消息用于通知上述 TDF执行计费停止操作。 上述 PCRF还包括: 第二消息发送模块, 设置为在检测到 SGW恢复工作后, 向 上述 TDF发送上述计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行 计费恢复操作。 上述 PCRF还包括: 第二删除模块, 设置为在检测到上述 PGW重启后, 删除与 上述 PGW的连接, 并保留用户信息和策略; 上述 PCRF还包括: 第三消息发送模块, 设置为向上述 TDF 发送上述计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行计费停止操作。 上述 PCRF还包括: 第四消息发送模块, 设置为在检测到上述 PGW恢复工作后, 向上述 TDF发送上述计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执 行计费恢复操作。 通过本发明, PGW通知 TDF执行与 PGW相同的计费操作, 解决了相关技术中 PGW和 TDF计费不同步的问题, 减少了由于 PGW和 TDF计费不同步导致的误差, 完善了 PGW和 TDF的计费流程。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据相关技术的当前 SAE的架构示意图; 图 2是根据相关技术的注册在 E-UTRAN覆盖区下的 UE移动到另一个 MME覆 盖区下引发的 TAU流程; 图 3是根据本发明实施例的计费同步方法的流程图; 图 4是根据本发明实施例的 PGW和 TDF计费同步方法的流程图; 图 5是根据本发明实施例的在 SGW重启后通知 TDF计费同步的流程图; 图 6是根据本发明实施例的在 SRVCC中 PGW上的承载"挂起"状态时, PGW通 知 TDF计费同步的流程图; 图 7是根据本发明实施例的 MME重新选择一个 SGW后 PGW上的承载恢复后通 知 TDF恢复计费的流程图; 图 8是根据本发明实施例的结束 CS会话后回到 E-UTRAN覆盖下 PGW恢复正常 后通知 TDF恢复计费的流程图; 图 9是根据本发明实施例的 PCRF检测到 SGW重启通知 TDF停止计费的流程图; 图 10是根据本发明实施例的 PCRF检测到 PGW重启通知 TDF停止计费的流程图; 图 11是根据本发明实施例的计费同步装置的结构框图; 图 12是根据本发明实施例的计费同步***的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例提供了一种计费同步方法、 装置及***, 下面通过具体实施例进行 详细介绍。 本实施例提供了一种计费同步方法, 图 3是根据本发明实施例的计费同步方法的 流程图, 如图 3所示, 该方法包括以下步骤: 步骤 S302, PGW通知 TDF执行与该 PGW相同的计费操作。 通过上述方法, PGW通知 TDF执行与 PGW相同的计费操作,解决了相关技术中TDF billing is not synchronized. According to an aspect of the present invention, a charging synchronization method is provided, the method comprising: the PGW notifying the TDF to perform the same charging operation as the PGW described above. The PGW notifying the TDF to perform the same charging operation as the PGW includes: the PGW notifying the TDF by the policy and charging rule function entity PCRF to perform the same charging operation as the PGW. Before the PGW notifies the TDF to perform the same charging operation as the PGW, the method further includes: after receiving the downlink data packet, the PGW determines to perform a charging stop operation or a charging recovery operation on the data packet. The PGW notifying the TDF by the PCRF to perform the same charging operation as the PGW includes: when the PGW determines to perform the charging stop operation on the data packet, the PGW notifies the TDF to perform the charging stop operation by using the PCRF, And/or notifying the TDF to discard the data packet directly; and when the PGW determines to perform a charging recovery operation on the data packet, the PGW notifies the TDF to perform a charging recovery operation by using the PCRF. After receiving the downlink data packet, the PGW determines that performing the charging stop operation or the charging recovery operation on the data packet includes: after receiving the downlink data packet on the unavailable bearer, the PGW determines to perform the charging stop on the data packet. Alternatively, after receiving the downlink data packet on the normal bearer, the PGW determines to perform a charging recovery operation on the data packet. In the case that the PGW notifies the TDF to directly discard the data packet, the method further includes: the PGW notifying the TDF to perform a charging recovery operation when the bearer returns to normal. Before the PGW receives the downlink data packet on the unavailable bearer, the method further includes: after the PGW detects that the serving gateway SGW restarts, retaining the bearer context and the user context; and the PGW marking the bearer as being unavailable. Before the PGW receives the downlink data packet on the unavailable bearer, the method further includes: the PGW receiving the bearer suspension notification message sent by the mobility management entity MME through the SGW; and the PGW returning the bearer suspension confirmation to the MME by using the SGW. The suspended bearer of the PGW is an unusable bearer. Before the PGW receives the downlink data packet on the normalized bearer, the method further includes: the PGW receiving the modify bearer request message sent by the MME by using the SGW, where the PGW returns a modify bearer response message to the MME by using the SGW; The modified bearer of the above PGW is to restore the normal bearer. Before the PGW receives the modify bearer request message sent by the MME by using the SGW, the method further includes: the MME reselecting the SGW; wherein the reselected SGW is the restarted SGW or the working SGW. Before the PGW receives the modify bearer request message sent by the MME by using the SGW, the method further includes: the MME receiving the non-access stratum message sent by the user equipment UE. The non-access stratum message is a tracking area update TAU request message. The PGW notifying the TDF to perform the same charging operation as the PGW by using the PCRF includes: the PGW sending a charging notification message to the PCRF; wherein the charging notification message is used to notify the TDF to perform the same charging as the PGW. Operation: The PCRF sends the charging notification message to the TDF. After the PGW notifies the TDF to perform the same charging operation as the PGW, the method further includes: the TDF returning a charging notification response message to the PCRF; and the PGW receiving the charging notification response message sent by the PCRF. The method further includes: after the SGW detects that the SGW restarts, the bearer context and the user context are reserved, and the bearer is marked as unavailable; the PCRF detects that the SGW is restarted, deletes the connection with the SGW, and retains user information and The foregoing PCRF sends the foregoing charging notification message to the TDF, where the charging notification message is used to notify the TDF to perform the charging stop operation. The method further includes: after the detecting, by the PCRF, the SGW to resume the operation, sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. The method further includes: after the PCRF detects that the PGW is restarted, deleting the connection with the PGW, and retaining the user information and the policy; the PCRF sending the charging notification message to the TDF; wherein the charging notification message is used to notify The above TDF performs a charging stop operation. The method further includes: after detecting the PGW recovery operation, the PCRF sends the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. According to another aspect of the present invention, a billing synchronization apparatus is provided, the apparatus comprising: a billing execution module configured to notify the TDF to perform the same billing operation as the PGW. The charging execution module includes: a charging execution unit configured to notify the TDF by the policy and charging rule function entity PCRF to perform the same charging operation as the PGW. The device further includes: a charging determining module, configured to: after receiving the downlink data packet, determine to perform a charging stop operation or a charging recovery operation on the data packet. The charging execution unit includes: a first execution subunit, configured to notify the TDF to perform a charging stop operation by using the PCRF, and/or notify the TDF, in a case where the PGW determines to perform a charging stop operation on the data packet The second execution subunit is configured to, when the PGW determines to perform a charging recovery operation on the data packet, notify the TDF to perform a charging recovery operation by using the PCRF. The charging determination module includes: a charging stop determining unit, configured to: after receiving the downlink data packet on the unavailable bearer, determine to perform a charging stop operation on the data packet; or, the charging recovery determining unit is configured to be After receiving the downlink data packet on the normal bearer, it is determined that the charging recovery operation is performed on the foregoing data packet. In the case that the PGW notifies the TDF to directly discard the data packet, the apparatus further includes: a notification module, configured to notify the TDF to perform a charging recovery operation if the bearer returns to normal. Before the PGW receives the downlink data packet on the unavailable bearer, the foregoing charging determining module further includes: a retaining unit configured to: after detecting that the serving gateway SGW restarts, retain the bearer context and the user context; and the marking unit is set to mark the foregoing The bearer is a bearer that is not available. Before the PGW receives the downlink data packet on the unavailable bearer, the foregoing charging determining module further includes: a notification message receiving unit, configured to receive a bearer suspension notification message sent by the mobility management entity MME through the SGW; and a confirmation message returning unit, And the MME is configured to return a bearer suspension confirmation message to the MME by using the foregoing SGW, where the suspended bearer of the PGW is an unavailable bearer. Before the PGW receives the downlink data packet on the normal bearer, the charging determining module further includes: a request message receiving unit, configured to receive the modify bearer request message sent by the MME by using the SGW; and the response message returning unit is set to pass The SGW returns a modify bearer response message to the MME, where the modified bearer of the PGW is a normal bearer. According to still another aspect of the present invention, a billing synchronization system is provided. The system includes: a PGW, a PCRF, and a TDF, wherein the PGW includes the charging synchronization device, and the PGW includes: a first sending module, configured to Sending a charging notification message to the PCRF; wherein the charging notification message is used to notify the TDF to perform the same charging operation as the PGW; the PCRF includes: a second sending module, configured to send the charging notification to the TDF Message. The TDF includes: a response module, configured to return a charging notification response message to the PCRF; the PGW further includes: a receiving module, configured to receive the charging notification response message sent by the PCRF. The foregoing PGW further includes: a reservation module, configured to: after detecting the restart of the SGW, retain the bearer context and the user context, and mark the bearer that the bearer is unavailable; the PCRF further includes: a first deleting module, configured to detect the SGW After the restart, the connection with the SGW is deleted, and the user information and the policy are retained. The PCRF further includes: a first message sending module, configured to send the charging notification message to the TDF; wherein the charging notification message is used to notify The above TDF performs a charging stop operation. The PCRF further includes: a second message sending module, configured to send the charging notification message to the TDF after detecting the SGW recovery work; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. The PCRF further includes: a second deleting module, configured to: after detecting the restart of the PGW, deleting a connection with the PGW, and retaining user information and a policy; the PCRF further includes: a third message sending module, configured to be to the TDF Sending the foregoing charging notification message; wherein the charging notification message is used to notify the TDF to perform a charging stop operation. The PCRF further includes: a fourth message sending module, configured to send the charging notification message to the TDF after detecting the PGW recovery operation; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. Through the invention, the PGW notifies the TDF to perform the same charging operation as the PGW, solves the problem that the PGW and the TDF are not synchronized in the related art, reduces the error caused by the unsynchronized charging of the PGW and the TDF, and improves the PGW and the TDF. Billing process. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the accompanying drawings - FIG. 1 is a schematic diagram of the architecture of a current SAE according to the related art; FIG. 2 is a TAU flow triggered by a UE registered under the E-UTRAN coverage area moving to another MME coverage area according to the related art; Is a flowchart of a charging synchronization method according to an embodiment of the present invention; FIG. 4 is a flowchart of a PGW and TDF charging synchronization method according to an embodiment of the present invention; FIG. 5 is a notification of TDF after an SGW restart according to an embodiment of the present invention; FIG. 6 is a flowchart of a PGW notifying TDF charging synchronization when a bearer "suspend" state on a PGW in an SRVCC according to an embodiment of the present invention; FIG. 7 is an MME according to an embodiment of the present invention. A flow chart for notifying the TDF to resume charging after the bearer on the PGW is reselected after reselecting an SGW; 8 is a flowchart of notifying the TDF to resume charging after returning to the E-UTRAN coverage and returning to the TDF to resume charging after ending the CS session according to the embodiment of the present invention; FIG. 9 is a PCRF detecting the SGW restart notification TDF stop according to an embodiment of the present invention; FIG. 10 is a flowchart of detecting a PGW restart notification TDF stop charging according to an embodiment of the present invention; FIG. 11 is a structural block diagram of a charge synchronization apparatus according to an embodiment of the present invention; A structural block diagram of a charging synchronization system according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The embodiment of the invention provides a charging synchronization method, device and system, which are described in detail below through specific embodiments. This embodiment provides a charging synchronization method. FIG. 3 is a flowchart of a charging synchronization method according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps: Step S302: The PGW notifies the TDF to perform the same. The same billing operation of the PGW. Through the above method, the PGW notifies the TDF to perform the same charging operation as the PGW, and solves the related art.
PGW和 TDF计费不同步的问题, 减少了由于 PGW和 TDF计费不同步导致的误差, 完善了 PGW和 TDF的计费流程。 无论 PGW如何通知到 TDF, 只要二者保证执行相同的计费操作即可。 优选地, 为了保证通知流程的准确性和时效性, 在实际应用中, 大多数情况下可以通过 PCRF 实现该通知过程, 因此, 本实施例提供了一种优选实施方式, 即 PGW通过 PCRF通 知上述 TDF执行与 PGW相同的计费操作。 The problem that the PGW and the TDF are not synchronized is reduced, and the error caused by the unsynchronized charging of the PGW and the TDF is reduced, and the charging process of the PGW and the TDF is improved. No matter how the PGW notifies the TDF, as long as the two guarantee to perform the same charging operation. Preferably, in order to ensure the accuracy and timeliness of the notification process, in actual applications, the notification process can be implemented by PCRF in most cases. Therefore, this embodiment provides a preferred implementation manner, that is, the PGW notifies the above by PCRF. The TDF performs the same charging operation as the PGW.
PGW在不可用的承载上收到 TDF发送的下行数据后, 如果 PGW不进行计费, PGW也通知 TDF不进行计费。如果 PGW恢复正常计费后, PGW也通知 TDF恢复正 常计费。 一般情况下, PGW通过 PCRF通知 TDF不进行计费。 PGW上的用户承载不 可用包括检测到 SGW重启以及在 SRVCC、 CSFB过程中收到 SGW发送的挂起通知 (Suspend Notification) 消息; PGW上的用户承载恢复正常后, PGW需要通知 TDF 恢复正常计费。 在 PGW通知 TDF执行与 PGW相同的计费操作之前, 上述方法还包括: PGW接 收到下行数据包后, 确定对上述数据包执行计费停止操作或者计费恢复操作。在 PGW 确定对上述数据包执行计费停止操作的情况下, PGW通过上述 PCRF通知上述 TDF 执行计费停止操作, 和 /或通知上述 TDF直接丢弃上述数据包; 在 PGW确定对上述数 据包执行计费恢复操作的情况下, PGW通过上述 PCRF通知上述 TDF执行计费恢复 操作。 通过上述方式, 实现了 PGW和 TDF的计费同步。 优选地, PGW接收到下行数据包后, 确定对该数据包执行计费停止操作或者计费 恢复操作包括: PGW在不可用的承载上接收到下行数据包后, 确定对上述数据包执行 计费停止操作; 或者, PGW在恢复正常的承载上接收到下行数据包后, 确定对上述数 据包执行计费恢复操作。 在 PGW通知 TDF直接丢弃上述数据包的情况下, 上述方法 还包括: PGW在承载恢复正常的情况下, 通知 TDF执行计费恢复操作。 通过上述方 式, 分别实现了计费停止操作的同步和计费恢复操作的同步。 优选地, PGW在不可用的承载上接收到下行数据包之前, 上述方法还包括: PGW 检测到服务网关 SGW重启后, 保留承载上下文和用户上下文; PGW标记上述承载为 不可用的承载。 该方式为后续根据承载的是否可用决定执行计费停止操作或计费恢复 操作, 提供了基础。 优选地, PGW在不可用的承载上接收到下行数据包之前, 上述方法还包括: PGW 接收移动管理实体 MME通过 SGW发送的承载挂起通知消息; PGW通过上述 SGW 向上述 MME返回承载挂起确认消息; 其中, PGW的挂起的承载为不可用的承载。 优选地, PGW在恢复正常的承载上接收到下行数据包之前,上述方法还包括: PGW 接收上述 MME通过 SGW发送的修改承载请求消息; PGW通过上述 SGW向上述 MME 返回修改承载响应消息; 其中, PGW的修改的承载为恢复正常的承载。 After the PGW receives the downlink data sent by the TDF on the unavailable bearer, if the PGW does not perform the charging, the PGW also notifies the TDF that the charging is not performed. After the PGW resumes normal charging, the PGW also notifies the TDF to resume normal charging. In general, the PGW notifies the TDF that charging is not performed by the PCRF. The user bearer unavailability on the PGW includes detecting the SGW restart and receiving the Suspend Notification message sent by the SGW during the SRVCC and CSFB. After the user bearer on the PGW returns to normal, the PGW needs to notify the TDF to resume normal charging. . Before the PGW notifies the TDF to perform the same charging operation as the PGW, the method further includes: after receiving the downlink data packet, the PGW determines to perform a charging stop operation or a charging recovery operation on the data packet. When the PGW determines to perform the charging stop operation on the data packet, the PGW notifies the TDF to perform the charging stop operation by using the PCRF, and/or notifies the TDF to directly discard the data packet; and the PGW determines to perform the counting on the data packet. In the case of the fee recovery operation, the PGW notifies the TDF to perform the charge recovery operation through the PCRF described above. In the above manner, the charging synchronization of the PGW and the TDF is realized. Preferably, after receiving the downlink data packet, the PGW determines that performing the charging stop operation or the charging recovery operation on the data packet comprises: after receiving the downlink data packet on the unavailable bearer, the PGW determines to perform charging on the data packet. The operation is stopped. Alternatively, after receiving the downlink data packet on the normal bearer, the PGW determines to perform a charging recovery operation on the data packet. In the case that the PGW notifies the TDF to directly discard the foregoing data packet, the foregoing method further includes: the PGW notifying the TDF to perform the charging recovery operation if the bearer returns to normal. In the above manner, the synchronization of the charging stop operation and the synchronization of the charging recovery operation are respectively implemented. Preferably, before the PGW receives the downlink data packet on the unavailable bearer, the method further includes: after the PGW detects that the serving gateway SGW restarts, the bearer context and the user context are reserved; and the PGW marks the bearer that the bearer is unavailable. This mode provides a basis for subsequently performing a charging stop operation or a charging recovery operation according to whether the bearer is available or not. Preferably, before the PGW receives the downlink data packet on the unavailable bearer, the method further includes: the PGW receiving the bearer suspension notification message sent by the mobility management entity MME through the SGW; and the PGW returning the bearer suspension confirmation to the MME by using the SGW. The bearer of the PGW is a bearer that is unavailable. Preferably, before the PGW receives the downlink data packet on the normal bearer, the method further includes: the PGW receiving the modify bearer request message sent by the MME by using the SGW; and the PGW returning the modify bearer response message to the MME by using the SGW; The modified bearer of the PGW is to restore the normal bearer.
PGW接收上述 MME通过 SGW发送的修改承载请求消息之前,上述方法还包括: 上述 MME重选 SGW; 其中, 重选的 SGW为已重启的 SGW或者正常工作的 SGW。 PGW接收上述 MME通过 SGW发送的修改承载请求消息之前,上述方法还包括: 上述 MME接收用户设备 UE发送的非接入层消息。 上述非接入层消息可以为跟踪区 更新 TAU请求消息。 Before the PGW receives the modify bearer request message sent by the MME by using the SGW, the method further includes: the MME reselecting the SGW; wherein the reselected SGW is the restarted SGW or the working SGW. Before the PGW receives the modify bearer request message sent by the MME by using the SGW, the method further includes: the MME receiving the non-access stratum message sent by the user equipment UE. The above non-access stratum message may update the TAU request message for the tracking area.
PGW通过上述 PCRF通知上述 TDF执行与 PGW相同的计费操作包括: PGW向 上述 PCRF发送计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行与 PGW相同的计费操作; 上述 PCRF向上述 TDF发送上述计费通知消息。 PGW通过上述 PCRF通知上述 TDF执行与 PGW相同的计费操作之后,上述方法 还包括: 上述 TDF向上述 PCRF返回计费通知响应消息; PGW接收上述 PCRF发送 的上述计费通知响应消息。 优选地, 上述方法还包括: PGW检测到 SGW重启后, 保留承载上下文和用户上 下文, 并标记上述承载为不可用的承载; 上述 PCRF检测到 SGW重启后, 删除与上 述 SGW的连接, 并保留用户信息和策略; 上述 PCRF向上述 TDF发送上述计费通知 消息; 其中, 上述计费通知消息用于通知上述 TDF执行计费停止操作。 上述方法还包括: 上述 PCRF检测到 SGW恢复工作后, 向上述 TDF发送上述计 费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行计费恢复操作。 上述方法还包括: 上述 PCRF检测到 PGW重启后, 删除与 PGW的连接, 并保留 用户信息和策略; 上述 PCRF向上述 TDF发送上述计费通知消息; 其中, 上述计费通 知消息用于通知上述 TDF执行计费停止操作。 上述方法还包括: 上述 PCRF检测到 PGW恢复工作后, 向上述 TDF发送上述计费通知消息; 其中, 上述计费通知消息用 于通知上述 TDF执行计费恢复操作。 图 4是根据本发明实施例的 PGW和 TDF计费同步方法的流程图, 如图 4所示, 包括以下步骤 (步骤 S402-步骤 S406): 步骤 S402, PGW在不可用的承载上收到下行数据, PGW不计费并丢弃数据包。 步骤 S404, PGW通过 PCRF向 TDF通知承载暂时不可用、暂停计费;如果 PCRF 直接检测到 SGW重启或者 PGW重启, PCRF将直接通知 TDF承载不可用,暂停计费。 步骤 S406, PGW的承载恢复正常, PGW需要通过 PCRF向 TDF通知承载已经恢 复并恢复计费。 图 5是根据本发明实施例的在 SGW重启后通知 TDF计费同步的流程图, 如图 5 所示, 包括以下步骤 (步骤 S502-步骤 S514): 步骤 S502, MME检测到 SGW重启后, MME仍然保留承载上下文和用户上下文 一段时间。 步骤 S504, PGW检测到 SGW重启后, PGW仍然保留承载上下文和用户上下文 一段时间, 但是标记受影响的承载暂时不可用。 步骤 S506, PGW在这些保留的承载上收到下行数据时 PGW并不进行计费并直接 丢弃这些收到的数据包。 步骤 S508, PGW向 PCRF发送 TDF停止计费请求消息通知 PCRF: 承载暂时不 可用并需要 TDF停止计费。 步骤 S510, PCRF向 TDF发送 TDF停止计费请求消息通知 TDF: 承载暂时不可 用并需要 TDF停止计费。 步骤 S512, TDF向 PCRF返回 TDF停止计费响应消息。 步骤 S514, PCRF向 PGW返回 TDF停止计费响应消息。 本实施例中是以 UE在 MME覆盖区域为例说明的, 对于 UE在 SGSN覆盖区域, 处理方法与其类似, 故不再详细说明。 图 6是根据本发明实施例的在 SRVCC中 PGW上的承载"挂起"状态时, PGW通 知 TDF计费同步的流程图, 如图 6所示, 包括以下步骤 (步骤 S602-步骤 S642): 步骤 S602, UE向 eNodeB发送测量报告。 步骤 S604,根据 UE的测量报告, eNodeB决定向 GERAN发起 SRVCC切换, eNodeB 向 MME发送切换请求消息。 步骤 S606, MME根据承载的 QCI进行分类, 将语音承载切换到电路域中, MME 向 MSC发送 PS到 CS的切换请求消息。 步骤 S608, MSC向 BSS发送切换请求消息, BSS向 MSC返回切换确认消息。 步骤 S610, MSC向 MME返回 PS到 CS的切换响应消息。 步骤 S612, 源 MME向源 eNodeB发送切换命令。 步骤 S614, 源 eNodeB向 UE发送切换命令。 步骤 S616, UE切换至 GERAN, UE向 BSS发送承载挂起过程。 步骤 S618, 目标 BSS向目标 SGSN转发承载挂起消息。 步骤 S620, 目标 SGSN向源 MME发起挂起通知消息, 源 MME返回相应的确认 消息。 步骤 S622, 目标 BSS向目标 SGSN发送切换完成消息。 步骤 S624, MSC向 MME发送 PS到 CS切换完成消息; MME向 MSC返回 PS 到 CS切换确认消息。 步骤 S626, 源 MME向 SGW发送挂起通知消息。 步骤 S628, SGW向 PGW转发挂起通知消息。 步骤 S630, PGW向 SGW返回挂起确认消息。 步骤 S632, SGW向 MME返回挂起确认消息。 步骤 S634, PGW在这些挂起的承载上收到下行数据时 PGW并不进行计费并直接 丢弃这些收到的数据包。 步骤 S636, PGW向 PCRF发送 TDF停止计费请求消息通知 PCRF: 承载暂时挂 起并需要 TDF停止计费。 步骤 S638, PCRF向 TDF发送 TDF停止计费请求消息通知 TDF: 承载暂时挂起 并需要 TDF停止计费。 步骤 S640, TDF向 PCRF返回 TDF停止计费响应消息。 步骤 S642, PCRF向 PGW返回 TDF停止计费响应消息。 本实施例中是以 UE原来在 MME覆盖区域为例说明的;对于 UE原来处在 SGSN 的覆盖区域, 处理方法与其类似, 故不再详细说明。 本实施例中是以 SRVCC 为例说 明的, 对于 UE进行 CSFB的过程, 处理方法与其类似, 故不再详细说明。 图 7是根据本发明实施例的 MME重新选择一个 SGW后 PGW上的承载恢复后通 知 TDF恢复计费的流程图, 如图 7所示, 包括以下步骤 (步骤 S702-步骤 S718): 步骤 S702, MME重新选择一个 SGW, 这个 SGW可以是已经重启的 SGW或者 其他正常工作的 SGW。 步骤 S704, MME向新 SGW发送建立会话请求消息, 消息中携带 IMSI, 用户 IP 地址, 承载 QoS等参数。 步骤 S706, 新 SGW向 PGW发送修改承载请求消息。 步骤 S708, PGW向 SGW返回修改承载响应消息。 步骤 S710, SGW向 MME返回建立会话响应消息。 步骤 S712, PGW上的承载恢复正常后, PGW向 PCRF发送 TDF恢复计费通知消 息用于通知承载恢复正常并需 TDF恢复计费。 步骤 S714, PCRF向 TDF发送 TDF恢复计费通知消息用于通知承载恢复正常并 需 TDF恢复计费。 步骤 S716, TDF向 PCRF返回 TDF恢复计费确认消息。 步骤 S718, PCRF向 PGW返回 TDF恢复计费确认消息。 图 8是根据本发明实施例的结束 CS会话后回到 E-UTRAN覆盖下 PGW恢复正常 后通知 TDF恢复计费的流程图,图 8的流程可以附加在图 6的流程之上,如图 8所示, 包括以下步骤 (步骤 S802-步骤 S820): 步骤 S802, UE结束 CS通话后回到 eNodeB覆盖区域, UE向 MME发送 TAU请 求消息。 步骤 S804, MME向 SGW发送修改承载请求消息。 步骤 S806, SGW向 PGW发送修改承载请求消息。 步骤 S808, PGW向 SGW返回修改承载响应消息。 步骤 S810, SGW向 MME返回建立会话响应消息。 步骤 S812, MME向 UE返回 TAU接受消息。 步骤 S814, PGW上的承载恢复正常后, PGW向 PCRF发送 TDF恢复计费通知消 息用于通知承载恢复正常并需 TDF恢复计费。 步骤 S816, PCRF向 TDF发送 TDF恢复计费通知消息用于通知承载恢复正常并 需 TDF恢复计费。 步骤 S818, TDF向 PCRF返回 TDF恢复计费确认消息。 步骤 S820, PCRF向 PGW返回 TDF恢复计费确认消息。 本实施例以 TAU消息为例进行说明, 对于其他非接入层消息, 其具体流程类似, 不做具体阐述。 图 9是根据本发明实施例的 PCRF检测到 SGW重启通知 TDF停止计费的流程图, 如图 9所示, 包括以下步骤 (步骤 S902-步骤 S910): 步骤 S902, MME检测到 SGW重启后, MME仍然保留承载上下文和用户上下文 一段时间; 步骤 S904, PGW检测到 SGW重启后, PGW仍然保留承载上下文和用户上下文 一段时间, 但是标记受影响的承载暂时不可用; 步骤 S906, PCRF检测到 SGW重启后, PCRF本地删除与 SGW的连接, 但是仍 然保留用户的其他信息和策略; 步骤 S908, PCRF向 TDF发送 TDF停止计费请求消息通知 TDF: 承载暂时不可 用并需要停止计费; 步骤 S910, TDF向 PCRF返回 TDF停止计费响应消息; 在该实施例的应用场景下, 计费恢复流程仍然可以采用类似图 7所提供的方式, 即 PCRF检测到 SGW重启完成后, 执行后续的计费恢复流程, 在此不再赘述。 图 10是根据本发明实施例的 PCRF检测到 PGW重启通知 TDF停止计费的流程图, 如图 10所示, 包括以下步骤 (步骤 S1002-步骤 S1008): 步骤 S 1002, PGW重启。 步骤 S1004, PCRF检测到 PGW重启后, PCRF本地删除与 PGW的连接, 但是 仍然保留用户的其他信息和策略。 步骤 S1006, PCRF向 TDF发送 TDF停止计费请求消息通知 TDF: 承载暂时不可 用并需要停止计费。 步骤 S1008, TDF向 PCRF返回 TDF停止计费响应消息。 在该实施例的应用场景下, 计费恢复流程仍然可以采用类似图 7所提供的方式, PCRF检测到 PGW重启完成后, 执行后续的计费恢复流程, 在此不再赘述。 对应于上述实施例介绍的计费同步方法, 本实施例提供一种计费同步装置, 该装 置可以设置在 PGW上, 用以实现上述实施例。 图 11是根据本发明实施例的计费同步 装置的结构框图, 如图 11所示, 该装置包括: 计费执行模块 12, 设置为通知 TDF执 行与上述 PGW相同的计费操作。 通过上述装置, PGW的计费执行模块通知 TDF执行与 PGW相同的计费操作,解 决了相关技术中 PGW和 TDF计费不同步的问题, 减少了由于 PGW和 TDF计费不同 步导致的误差, 完善了 PGW和 TDF的计费流程。 优选地,上述计费执行模块包括:计费执行单元,设置为通过 PCRF通知上述 TDF 执行与上述 PGW相同的计费操作。 上述装置还包括: 计费确定模块, 设置为接收到 下行数据包后, 确定对上述数据包执行计费停止操作或者计费恢复操作。 从而保证了 通知流程的准确性和时效性。 上述计费执行单元包括: 第一执行子单元, 设置为在上述 PGW确定对上述数据 包执行计费停止操作的情况下, 通过上述 PCRF通知上述 TDF执行计费停止操作, 和 /或通知上述 TDF直接丢弃上述数据包; 第二执行子单元, 设置为在上述 PGW确定对 上述数据包执行计费恢复操作的情况下,通过上述 PCRF通知上述 TDF执行计费恢复 操作。 通过上述装置, 实现了 PGW和 TDF的计费同步。 上述计费确定模块包括: 计费停止确定单元, 设置为在不可用的承载上接收到下 行数据包后, 确定对上述数据包执行计费停止操作; 或者, 计费恢复确定单元, 设置 为在恢复正常的承载上接收到下行数据包后, 确定对上述数据包执行计费恢复操作。 在上述 PGW通知上述 TDF直接丢弃上述数据包的情况下, 上述装置还包括: 通知模 块, 设置为在承载恢复正常的情况下, 通知上述 TDF执行计费恢复操作。 通过上述装 置, 分别实现了计费停止操作的同步和计费恢复操作的同步。 The PGW notifying the TDF to perform the same charging operation as the PGW by using the PCRF includes: the PGW sending a charging notification message to the PCRF; wherein the charging notification message is used to notify the TDF to perform the same charging operation as the PGW; The foregoing charging notification message is sent to the TDF. After the PGW notifies the TDF to perform the same charging operation as the PGW, the method further includes: the TDF returns a charging notification response message to the PCRF; and the PGW receives the charging notification response message sent by the PCRF. Preferably, the method further includes: after detecting that the SGW restarts, the PGW retains the bearer context and the user context, and marks the bearer that the bearer is unavailable; the PCRF detects that the SGW restarts, deletes the connection with the SGW, and retains the user. The information and the policy are sent by the PCRF to the TDF. The charging notification message is used to notify the TDF to perform the charging stop operation. The method further includes: after the detecting, by the PCRF, the SGW to resume the operation, sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. The method further includes: after the PCRF detects that the PGW is restarted, deleting the connection with the PGW, and retaining the user information and the policy; the PCRF sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF Perform the accounting stop operation. The method further includes: after the PCRF detects the PGW recovery operation, sending the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. 4 is a flowchart of a PGW and TDF charging synchronization method according to an embodiment of the present invention. As shown in FIG. 4, the following steps are included (steps S402-S406): Step S402: The PGW receives a downlink on an unavailable bearer. Data, the PGW does not charge and discard packets. In step S404, the PGW notifies the TDF that the bearer is temporarily unavailable and suspends the charging through the PCRF. If the PCRF directly detects the SGW restart or the PGW restarts, the PCRF directly notifies the TDF that the bearer is unavailable and suspends the charging. In step S406, the bearer of the PGW is restored to normal, and the PGW needs to notify the TDF through the PCRF that the bearer has been restored and the charging is resumed. FIG. 5 is a flowchart of notifying the TDF charging synchronization after the SGW restarts, as shown in FIG. 5, including the following steps (step S502 - step S514): Step S502, after the MME detects the SGW restart, the MME The bearer context and user context are still preserved for a period of time. Step S504: After the PGW detects that the SGW is restarted, the PGW still retains the bearer context and the user context for a period of time, but the affected bearer is temporarily unavailable. Step S506: When the PGW receives the downlink data on the reserved bearers, the PGW does not perform charging and directly discards the received data packets. Step S508, the PGW sends a TDF stop charging request message to the PCRF to notify the PCRF that the bearer is temporarily unavailable and requires TDF to stop charging. Step S510, the PCRF sends a TDF stop charging request message to the TDF to notify the TDF that the bearer is temporarily unavailable and requires TDF to stop charging. Step S512, the TDF returns a TDF stop charging response message to the PCRF. Step S514, the PCRF returns a TDF stop charging response message to the PGW. In this embodiment, the coverage area of the MME is taken as an example. For the coverage area of the SGSN in the UE, the processing method is similar, and therefore will not be described in detail. 6 is a flowchart of a PGW notifying TDF charging synchronization when a bearer "suspend" state on a PGW in an SRVCC according to an embodiment of the present invention, as shown in FIG. 6, including the following steps (step S602 - step S642): Step S602, the UE sends a measurement report to the eNodeB. Step S604, according to the measurement report of the UE, the eNodeB decides to initiate an SRVCC handover to the GERAN, and the eNodeB sends a handover request message to the MME. Step S606: The MME classifies according to the QCI of the bearer, and switches the voice bearer to the circuit domain, and the MME sends a PS to CS handover request message to the MSC. Step S608, the MSC sends a handover request message to the BSS, and the BSS returns a handover confirmation message to the MSC. Step S610, the MSC returns a PS to CS handover response message to the MME. Step S612, the source MME sends a handover command to the source eNodeB. Step S614, the source eNodeB sends a handover command to the UE. Step S616, the UE switches to the GERAN, and the UE sends a bearer suspension procedure to the BSS. Step S618, the target BSS forwards the bearer suspension message to the target SGSN. Step S620: The target SGSN initiates a suspension notification message to the source MME, and the source MME returns a corresponding acknowledgement message. Step S622, the target BSS sends a handover complete message to the target SGSN. Step S624, the MSC sends a PS to CS handover complete message to the MME; the MME returns a PS to CS handover confirmation message to the MSC. Step S626, the source MME sends a suspension notification message to the SGW. Step S628, the SGW forwards the suspension notification message to the PGW. Step S630, the PGW returns a suspend confirmation message to the SGW. Step S632, the SGW returns a suspend confirmation message to the MME. Step S634: When the PGW receives downlink data on the suspended bearers, the PGW does not perform charging and directly discards the received data packets. Step S636, the PGW sends a TDF stop charging request message to the PCRF to notify the PCRF that the bearer is temporarily suspended and the TDF is required to stop charging. Step S638, the PCRF sends a TDF stop charging request message to the TDF to notify the TDF that the bearer is temporarily suspended and the TDF is required to stop charging. Step S640, the TDF returns a TDF stop charging response message to the PCRF. Step S642, the PCRF returns a TDF stop charging response message to the PGW. In this embodiment, the original coverage area of the MME is taken as an example. For the coverage area where the UE is originally located in the SGSN, the processing method is similar, and therefore will not be described in detail. In this embodiment, the SRVCC is taken as an example. For the CSFB process of the UE, the processing method is similar, and therefore will not be described in detail. FIG. 7 is a flowchart of the TDF recovery charging after the bearer on the PGW is reselected after the MME reselects an SGW according to an embodiment of the present invention. As shown in FIG. 7, the following steps are included (step S702 - step S718): Step S702, The MME reselects an SGW, which may be an SGW that has been restarted or another SGW that is working normally. Step S704, the MME sends a setup session request message to the new SGW, where the message carries an IMSI, a user IP address, and a QoS-bearing parameter. Step S706, the new SGW sends a modify bearer request message to the PGW. Step S708, the PGW returns a modify bearer response message to the SGW. Step S710, the SGW returns a setup session response message to the MME. Step S712: After the bearer on the PGW returns to normal, the PGW sends a TDF recovery charging notification message to the PCRF to notify the bearer to return to normal and needs TDF to resume charging. Step S714, the PCRF sends a TDF recovery charging notification message to the TDF to notify that the bearer returns to normal and requires TDF to resume charging. Step S716, the TDF returns a TDF recovery charging confirmation message to the PCRF. Step S718, the PCRF returns a TDF recovery charging confirmation message to the PGW. FIG. 8 is a flowchart of notifying the TDF to resume charging after returning to the E-UTRAN coverage and returning to the TDF to resume the charging according to the embodiment of the present invention. The flow of FIG. 8 may be added to the process of FIG. As shown, the following steps are included (step S802 - step S820): Step S802: After the UE ends the CS call, the UE returns to the eNodeB coverage area, and the UE sends a TAU request message to the MME. Step S804, the MME sends a modify bearer request message to the SGW. Step S806, the SGW sends a modify bearer request message to the PGW. Step S808, the PGW returns a modify bearer response message to the SGW. Step S810, the SGW returns a setup session response message to the MME. Step S812, the MME returns a TAU accept message to the UE. Step S814: After the bearer on the PGW returns to normal, the PGW sends a TDF recovery charging notification message to the PCRF to notify the bearer to return to normal and needs TDF to resume charging. Step S816, the PCRF sends a TDF recovery charging notification message to the TDF to notify that the bearer returns to normal and requires TDF to resume charging. Step S818, the TDF returns a TDF recovery charging confirmation message to the PCRF. Step S820, the PCRF returns a TDF recovery charging confirmation message to the PGW. This embodiment uses a TAU message as an example for description. For other non-access stratum messages, the specific process is similar and will not be specifically described. FIG. 9 is a flowchart of a PCRF detecting an SGW restart notification TDF to stop charging according to an embodiment of the present invention. As shown in FIG. 9, the method includes the following steps (step S902 to step S910): Step S902: After the MME detects that the SGW is restarted, The MME still retains the bearer context and the user context for a period of time; Step S904, after the PGW detects that the SGW restarts, the PGW still retains the bearer context and the user context for a period of time, but marks that the affected bearer is temporarily unavailable; Step S906, the PCRF detects the SGW restart. Afterwards, the PCRF locally deletes the connection with the SGW, but still retains other information and policies of the user; Step S908, the PCRF sends a TDF stop charging request message to the TDF to notify the TDF that the bearer is temporarily unavailable and needs to stop charging; Step S910, TDF Returning the TDF stop charging response message to the PCRF; in the application scenario of the embodiment, the charging recovery process can still adopt a manner similar to that provided in FIG. 7 , that is, after the PCRF detects that the SGW restarts, the subsequent charging recovery process is performed. , will not repeat them here. FIG. 10 is a flowchart of a PCRF detecting a PGW restart notification TDF stop charging according to an embodiment of the present invention. As shown in FIG. 10, the following steps are included (step S1002 - step S1008): Step S1002, the PGW restarts. Step S1004: After the PCRF detects that the PGW is restarted, the PCRF locally deletes the connection with the PGW, but still retains other information and policies of the user. Step S1006: The PCRF sends a TDF stop charging request message to the TDF to notify the TDF that the bearer is temporarily unavailable and needs to stop charging. In step S1008, the TDF returns a TDF stop charging response message to the PCRF. In the application scenario of the embodiment, the charging recovery process can still be performed in a manner similar to that provided in FIG. 7. After the PCRF detects that the PGW restarts, the subsequent charging recovery process is performed, and details are not described herein. Corresponding to the charging synchronization method introduced in the above embodiment, the embodiment provides a charging synchronization device, which can be set on the PGW to implement the above embodiment. FIG. 11 is a structural block diagram of a charging synchronization apparatus according to an embodiment of the present invention. As shown in FIG. 11, the apparatus includes: a charging execution module 12 configured to notify the TDF to perform the same charging operation as the PGW. Through the foregoing apparatus, the charging execution module of the PGW notifies the TDF to perform the same charging operation as the PGW, solves the problem that the PGW and the TDF charging are not synchronized in the related art, and reduces the error caused by the unsynchronized charging of the PGW and the TDF. The billing process for PGW and TDF has been improved. Preferably, the charging execution module includes: a charging execution unit configured to notify the TDF by the PCRF to perform the same charging operation as the PGW. The device further includes: a charging determining module, configured to: after receiving the downlink data packet, determine to perform a charging stop operation or a charging recovery operation on the data packet. This ensures the accuracy and timeliness of the notification process. The charging execution unit includes: a first execution subunit, configured to notify the TDF to perform a charging stop operation by using the PCRF, and/or notify the TDF, in a case where the PGW determines to perform a charging stop operation on the data packet The second execution subunit is configured to, when the PGW determines to perform a charging recovery operation on the data packet, notify the TDF to perform a charging recovery operation by using the PCRF. Through the above device, the charging synchronization of the PGW and the TDF is realized. The charging determination module includes: a charging stop determining unit, configured to: after receiving the downlink data packet on the unavailable bearer, determine to perform a charging stop operation on the data packet; or, the charging recovery determining unit is configured to be After receiving the downlink data packet on the normal bearer, it is determined that the charging recovery operation is performed on the foregoing data packet. In the case that the PGW notifies the TDF to directly discard the data packet, the apparatus further includes: a notification module, configured to notify the TDF to perform a charging recovery operation if the bearer returns to normal. Through the above apparatus, the synchronization of the charging stop operation and the synchronization of the charging recovery operation are respectively implemented.
PGW在不可用的承载上接收到下行数据包之前, 上述计费确定模块还包括: 保留 单元, 设置为检测到服务网关 SGW重启后, 保留承载上下文和用户上下文; 标记单 元, 设置为标记上述承载为不可用的承载。 该结构为后续根据承载的是否可用决定执 行计费停止操作或计费恢复操作, 提供了基础。 Before the PGW receives the downlink data packet on the unavailable bearer, the foregoing charging determining module further includes: a retaining unit configured to: after detecting that the serving gateway SGW restarts, retain the bearer context and the user context; and the marking unit is configured to mark the bearer A bearer that is not available. The structure provides a basis for subsequently performing a charging stop operation or a charging recovery operation depending on whether the bearer is available or not.
PGW在不可用的承载上接收到下行数据包之前, 上述计费确定模块还包括: 通知 消息接收单元, 设置为接收移动管理实体 MME通过 SGW发送的承载挂起通知消息; 确认消息返回单元, 设置为通过上述 SGW向上述 MME返回承载挂起确认消息; 其 中, 上述 PGW的挂起的承载为不可用的承载。 PGW在恢复正常的承载上接收到下行数据包之前, 上述计费确定模块还包括: 请 求消息接收单元, 设置为接收上述 MME通过 SGW发送的修改承载请求消息; 响应 消息返回单元, 设置为通过上述 SGW向上述 MME返回修改承载响应消息; 其中, 上述 PGW的修改的承载为恢复正常的承载。 对应于上述实施例介绍的计费同步方法, 本实施例提供一种计费同步***, 该系 统用以实现上述实施例。 图 12是根据本发明实施例的计费同步***的结构框图, 如图 12所示, 该***包括: PGW、 PCRF以及 TDF, 其中, PGW包括上述实施例介绍的 计费同步装置, PGW包括: 第一发送模块 14, 设置为向 PCRF发送计费通知消息; 其中, 该计费通知消息用于通知上述 TDF执行与 PGW相同的计费操作; PCRF包括: 第二发送模块 16, 设置为向上述 TDF发送上述计费通知消息。 上述 TDF包括: 响应模块, 设置为向上述 PCRF返回计费通知响应消息; 上述 PGW还包括: 接收模块, 设置为接收上述 PCRF发送的上述计费通知响应消息。通过 该结构, PGW可以获知 TDF响应的 PGW的通知, 提高了计费同步的准确性和效率。 上述 PGW还包括: 保留模块, 设置为在检测到 SGW重启后, 保留承载上下文和 用户上下文, 并标记上述承载为不可用的承载; 上述 PCRF还包括: 第一删除模块, 设置为在检测到 SGW重启后, 删除与上述 SGW的连接, 并保留用户信息和策略; 上 述 PCRF还包括: 第一消息发送模块, 设置为向上述 TDF发送上述计费通知消息; 其 中, 上述计费通知消息用于通知上述 TDF执行计费停止操作。 通过该结构, PCRF通 过对 SGW的重启进行检测, 便可触发计费停止操作或计费恢复操作, 扩展了计费同 步的适用范围。 上述 PCRF还包括: 第二消息发送模块, 设置为在检测到 SGW恢复工作后, 向 上述 TDF发送上述计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执行 计费恢复操作。 上述 PCRF还包括: 第二删除模块, 设置为在检测到上述 PGW重启 后, 删除与上述 PGW的连接, 并保留用户信息和策略; 上述 PCRF还包括: 第三消 息发送模块, 设置为向上述 TDF发送上述计费通知消息; 其中, 上述计费通知消息用 于通知上述 TDF执行计费停止操作。 上述 PCRF还包括: 第四消息发送模块, 设置为在检测到上述 PGW恢复工作后, 向上述 TDF发送上述计费通知消息; 其中, 上述计费通知消息用于通知上述 TDF执 行计费恢复操作。 通过该结构, PCRF通过对 PGW的重启进行检测, 便可触发计费停 止操作或计费恢复操作, 扩展了计费同步的适用范围。 从以上的描述中可以看出, 本发明中 PGW通知 TDF执行与该 PGW相同的计费 操作, 实现了 PGW和 TDF的计费同步, 减少了由于 PGW和 TDF计费不同步导致的 误差, 完善了 PGW和 TDF的计费流程。 工业实用性 如上所述, 本发明实施例提供的一种计费同步方法、 装置及***具有以下有益效 果: 实现了 PGW和 TDF的计费同步, 减少了由于 PGW和 TDF计费不同步导致的误 差, 完善了 PGW和 TDF的计费流程。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 Before the PGW receives the downlink data packet on the unavailable bearer, the foregoing charging determining module further includes: a notification message receiving unit, configured to receive a bearer suspension notification message sent by the mobility management entity MME through the SGW; confirming the message returning unit, setting The bearer suspension confirmation message is returned to the MME by using the foregoing SGW. The suspended bearer of the PGW is a bearer that is unavailable. Before the PGW receives the downlink data packet on the normal bearer, the foregoing charging determining module further includes: a request message receiving unit, configured to receive the modify bearer request message sent by the MME by using the SGW; and the response message returning unit is configured to pass the foregoing The SGW returns a modify bearer response message to the MME, where the modified bearer of the PGW is a normal bearer. Corresponding to the charging synchronization method introduced in the foregoing embodiment, this embodiment provides a charging synchronization system, which is used to implement the foregoing embodiment. FIG. 12 is a structural block diagram of a charging synchronization system according to an embodiment of the present invention. As shown in FIG. 12, the system includes: a PGW, a PCRF, and a TDF. The PGW includes the charging synchronization device introduced in the foregoing embodiment, and the PGW includes: The first sending module 14 is configured to send a charging notification message to the PCRF. The charging notification message is used to notify the TDF to perform the same charging operation as the PGW. The PCRF includes: a second sending module 16, configured to The TDF sends the above charging notification message. The TDF includes: a response module, configured to return a charging notification response message to the PCRF; the PGW further includes: a receiving module, configured to receive the charging notification response message sent by the PCRF. Through this structure, the PGW can learn the notification of the PGW of the TDF response, and improve the accuracy and efficiency of the charging synchronization. The foregoing PGW further includes: a reservation module, configured to: after detecting the restart of the SGW, retain the bearer context and the user context, and mark the bearer that the bearer is unavailable; the PCRF further includes: a first deleting module, configured to detect the SGW After the restart, the connection with the SGW is deleted, and the user information and the policy are retained. The PCRF further includes: a first message sending module, configured to send the charging notification message to the TDF; wherein the charging notification message is used to notify The above TDF performs a charging stop operation. Through this structure, the PCRF can trigger the charging stop operation or the charging recovery operation by detecting the restart of the SGW, and expand the applicable range of the charging synchronization. The PCRF further includes: a second message sending module, configured to send the charging notification message to the TDF after detecting the SGW recovery work; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. The PCRF further includes: a second deleting module, configured to: after detecting the restart of the PGW, deleting a connection with the PGW, and retaining user information and a policy; the PCRF further includes: a third message sending module, configured to be to the TDF Sending the foregoing charging notification message; wherein the charging notification message is used to notify the TDF to perform a charging stop operation. The PCRF further includes: a fourth message sending module, configured to send the charging notification message to the TDF after detecting the PGW recovery operation; wherein the charging notification message is used to notify the TDF to perform a charging recovery operation. Through this structure, the PCRF can trigger the charging stop operation or the charging recovery operation by detecting the restart of the PGW, and expand the applicable range of the charging synchronization. As can be seen from the above description, in the present invention, the PGW notifies the TDF to perform the same charging operation as the PGW, realizes the charging synchronization of the PGW and the TDF, and reduces the error caused by the unsynchronized charging of the PGW and the TDF, and is improved. The billing process for PGW and TDF. INDUSTRIAL APPLICABILITY As described above, a charging synchronization method, apparatus, and system provided by an embodiment of the present invention have the following beneficial effects: Realizing billing synchronization of PGW and TDF, and reducing unsynchronized billing due to PGW and TDF The error has improved the billing process for PGW and TDF. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种计费同步方法, 包括: A billing synchronization method, comprising:
分组数据网网关 PGW通知业务检测功能实体 TDF执行与所述 PGW相同 的计费操作。  The packet data network gateway PGW notifies the service detection function entity that the TDF performs the same charging operation as the PGW.
2. 根据权利要求 1所述的方法,其中,所述 PGW通知所述 TDF执行与所述 PGW 相同的计费操作包括: 2. The method of claim 1, wherein the PGW notifying the TDF to perform the same charging operation as the PGW comprises:
所述 PGW通过策略与计费规则功能实体 PCRF通知所述 TDF执行与所述 PGW相同的计费操作。  The PGW notifies the TDF to perform the same charging operation as the PGW through the Policy and Charging Rules Function Entity PCRF.
3. 根据权利要求 2所述的方法,其中,所述 PGW通知所述 TDF执行与所述 PGW 相同的计费操作之前, 所述方法还包括: The method according to claim 2, wherein, before the PGW notifies the TDF to perform the same charging operation as the PGW, the method further includes:
所述 PGW接收到下行数据包后, 确定对所述数据包执行计费停止操作或 者计费恢复操作。  After receiving the downlink data packet, the PGW determines to perform a charging stop operation or a charging recovery operation on the data packet.
4. 根据权利要求 3所述的方法, 其中, 所述 PGW通过所述 PCRF通知所述 TDF 执行与所述 PGW相同的计费操作包括: The method according to claim 3, wherein the PGW notifying the TDF to perform the same charging operation as the PGW by using the PCRF includes:
在所述 PGW确定对所述数据包执行计费停止操作的情况下,所述 PGW通 过所述 PCRF通知所述 TDF执行计费停止操作, 和 /或通知所述 TDF直接丢弃 所述数据包;  And in the case that the PGW determines to perform a charging stop operation on the data packet, the PGW notifies the TDF to perform a charging stop operation by using the PCRF, and/or notify the TDF to directly discard the data packet;
在所述 PGW确定对所述数据包执行计费恢复操作的情况下,所述 PGW通 过所述 PCRF通知所述 TDF执行计费恢复操作。  And in a case where the PGW determines to perform a charging recovery operation on the data packet, the PGW notifies the TDF to perform a charging recovery operation by using the PCRF.
5. 根据权利要求 3所述的方法, 其中, 所述 PGW接收到下行数据包后, 确定对 所述数据包执行计费停止操作或者计费恢复操作包括: The method according to claim 3, wherein, after receiving the downlink data packet, the determining, by the PGW, performing a charging stop operation or a charging recovery operation on the data packet includes:
所述 PGW在不可用的承载上接收到下行数据包后, 确定对所述数据包执 行计费停止操作; 或者,  After receiving the downlink data packet on the unavailable bearer, the PGW determines to perform the charging stop operation on the data packet; or
所述 PGW在恢复正常的承载上接收到下行数据包后, 确定对所述数据包 执行计费恢复操作。  After receiving the downlink data packet on the normal bearer, the PGW determines to perform a charging recovery operation on the data packet.
6. 根据权利要求 4所述的方法, 其中, 在所述 PGW通知所述 TDF直接丢弃所述 数据包的情况下, 所述方法还包括: 所述 PGW在承载恢复正常的情况下, 通知所述 TDF执行计费恢复操作。 The method according to claim 4, wherein, in a case that the PGW notifies the TDF to directly discard the data packet, the method further includes: The PGW notifies the TDF to perform a charging recovery operation if the bearer returns to normal.
7. 根据权利要求 5所述的方法, 其中, 所述 PGW在不可用的承载上接收到下行 数据包之前, 所述方法还包括: The method according to claim 5, wherein, before the PGW receives the downlink data packet on the unavailable bearer, the method further includes:
所述 PGW检测到服务网关 SGW重启后, 保留承载上下文和用户上下文; 所述 PGW标记所述承载为不可用的承载。  After the PGW detects that the serving gateway SGW restarts, the bearer context and the user context are reserved; the PGW marks the bearer as being unavailable.
8. 根据权利要求 5所述的方法, 其中, 所述 PGW在不可用的承载上接收到下行 数据包之前, 所述方法还包括: The method according to claim 5, wherein, before the PGW receives the downlink data packet on the unavailable bearer, the method further includes:
所述 PGW接收移动管理实体 MME通过 SGW发送的承载挂起通知消息; 所述 PGW通过所述 SGW向所述 MME返回承载挂起确认消息; 其中, 所 述 PGW的挂起的承载为不可用的承载。  The PGW receives a bearer suspension notification message sent by the mobility management entity MME through the SGW; the PGW returns a bearer suspension confirmation message to the MME by using the SGW, where the suspended bearer of the PGW is unavailable. Hosted.
9. 根据权利要求 5所述的方法, 其中, 所述 PGW在恢复正常的承载上接收到下 行数据包之前, 所述方法还包括: The method according to claim 5, wherein, before the PGW receives the downlink data packet on the normal bearer, the method further includes:
所述 PGW接收所述 MME通过 SGW发送的修改承载请求消息; 所述 PGW通过所述 SGW向所述 MME返回修改承载响应消息; 其中, 所 述 PGW的修改的承载为恢复正常的承载。  And the PGW receives the modify bearer request message sent by the MME by using the SGW; the PGW returns a modify bearer response message to the MME by using the SGW, where the modified bearer of the PGW is a normal bearer.
10. 根据权利要求 9所述的方法, 其中, 所述 PGW接收所述 MME通过 SGW发送 的修改承载请求消息之前, 所述方法还包括: The method according to claim 9, wherein, before the PGW receives the modify bearer request message sent by the MME by using the SGW, the method further includes:
所述 MME重选 SGW; 其中, 重选的 SGW为已重启的 SGW或者正常工 作的 SGW。  The MME reselects the SGW; wherein the reselected SGW is a restarted SGW or a working SGW.
11. 根据权利要求 9所述的方法, 其中, 所述 PGW接收所述 MME通过 SGW发送 的修改承载请求消息之前, 所述方法还包括: The method according to claim 9, wherein, before the PGW receives the modify bearer request message sent by the MME by using the SGW, the method further includes:
所述 MME接收用户设备 UE发送的非接入层消息。  The MME receives a non-access stratum message sent by the user equipment UE.
12. 根据权利要求 11所述的方法, 其中, 所述非接入层消息为跟踪区更新 TAU请 求消息。 The method according to claim 11, wherein the non-access stratum message is a tracking area update TAU request message.
13. 根据权利要求 2所述的方法, 其中, 所述 PGW通过所述 PCRF通知所述 TDF 执行与所述 PGW相同的计费操作包括: 所述 PGW向所述 PCRF发送计费通知消息; 其中, 所述计费通知消息用 于通知所述 TDF执行与所述 PGW相同的计费操作; The method according to claim 2, wherein the PGW notifying the TDF to perform the same charging operation as the PGW by using the PCRF includes: The PGW sends a charging notification message to the PCRF, where the charging notification message is used to notify the TDF to perform the same charging operation as the PGW;
所述 PCRF向所述 TDF发送所述计费通知消息。  The PCRF sends the charging notification message to the TDF.
14. 根据权利要求 13所述的方法, 其中, 所述 PGW通过所述 PCRF通知所述 TDF 执行与所述 PGW相同的计费操作之后, 所述方法还包括: The method according to claim 13, wherein, after the PGW notifies the TDF that the TDF performs the same charging operation as the PGW, the method further includes:
所述 TDF向所述 PCRF返回计费通知响应消息;  Returning, by the TDF, a charging notification response message to the PCRF;
所述 PGW接收所述 PCRF发送的所述计费通知响应消息。  The PGW receives the charging notification response message sent by the PCRF.
15. 根据权利要求 2所述的方法, 其中, 所述方法还包括: The method according to claim 2, wherein the method further comprises:
所述 PGW检测到 SGW重启后,保留承载上下文和用户上下文, 并标记所 述承载为不可用的承载;  After detecting that the SGW restarts, the PGW reserves the bearer context and the user context, and marks the bearer that the bearer is unavailable;
所述 PCRF检测到 SGW重启后, 删除与所述 SGW的连接, 并保留用户信 息和策略;  After detecting that the SGW restarts, the PCRF deletes the connection with the SGW, and retains user information and policies;
所述 PCRF向所述 TDF发送所述计费通知消息; 其中, 所述计费通知消息 用于通知所述 TDF执行计费停止操作。  The PCRF sends the charging notification message to the TDF. The charging notification message is used to notify the TDF to perform a charging stop operation.
16. 根据权利要求 2所述的方法, 其中, 所述方法还包括: The method according to claim 2, wherein the method further comprises:
所述 PCRF检测到 SGW恢复工作后,向所述 TDF发送所述计费通知消息; 其中, 所述计费通知消息用于通知所述 TDF执行计费恢复操作。  After the PCRF detects the SGW recovery work, the charging notification message is sent to the TDF. The charging notification message is used to notify the TDF to perform a charging recovery operation.
17. 根据权利要求 2所述的方法, 其中, 所述方法还包括: 17. The method according to claim 2, wherein the method further comprises:
所述 PCRF检测到所述 PGW重启后, 删除与所述 PGW的连接, 并保留用 户信息和策略;  After detecting, by the PCRF, that the PGW restarts, deleting the connection with the PGW, and retaining user information and policies;
所述 PCRF向所述 TDF发送所述计费通知消息; 其中, 所述计费通知消息 用于通知所述 TDF执行计费停止操作。  The PCRF sends the charging notification message to the TDF. The charging notification message is used to notify the TDF to perform a charging stop operation.
18. 根据权利要求 2所述的方法, 其中, 所述方法还包括: The method according to claim 2, wherein the method further comprises:
所述 PCRF检测到所述 PGW恢复工作后, 向所述 TDF发送所述计费通知 消息; 其中, 所述计费通知消息用于通知所述 TDF执行计费恢复操作。  After the PCRF detects that the PGW resumes working, the charging notification message is sent to the TDF. The charging notification message is used to notify the TDF to perform a charging recovery operation.
19. 一种计费同步装置, 包括: 计费执行模块, 设置为通知业务检测功能实体 TDF执行与所述 PGW相同 的计费操作。 19. A billing synchronization device, comprising: The charging execution module is configured to notify the service detecting function entity TDF to perform the same charging operation as the PGW.
20. 根据权利要求 19所述的装置, 其中, 所述计费执行模块包括: The device according to claim 19, wherein the charging execution module comprises:
计费执行单元, 设置为通过策略与计费规则功能实体 PCRF通知所述 TDF 执行与所述 PGW相同的计费操作。  The charging execution unit is configured to notify the TDF through the policy and charging rule function entity PCRF to perform the same charging operation as the PGW.
21. 根据权利要求 20所述的装置, 其中, 所述装置还包括: 计费确定模块, 设置为接收到下行数据包后, 确定对所述数据包执行计费 停止操作或者计费恢复操作。 The device according to claim 20, wherein the device further comprises: a charging determining module, configured to: after receiving the downlink data packet, determine to perform a charging stop operation or a charging recovery operation on the data packet.
22. 根据权利要求 21所述的装置, 其中, 所述计费执行单元包括: The device according to claim 21, wherein the charging execution unit comprises:
第一执行子单元, 设置为在所述 PGW确定对所述数据包执行计费停止操 作的情况下, 通过所述 PCRF通知所述 TDF执行计费停止操作, 和 /或通知所 述 TDF直接丢弃所述数据包;  a first execution subunit, configured to notify the TDF to perform a charging stop operation by the PCRF, and/or notify the TDF to directly discard, if the PGW determines to perform a charging stop operation on the data packet The data packet;
第二执行子单元, 设置为在所述 PGW确定对所述数据包执行计费恢复操 作的情况下, 通过所述 PCRF通知所述 TDF执行计费恢复操作。  And a second execution subunit, configured to notify the TDF to perform a charging recovery operation by the PCRF if the PGW determines to perform a charging recovery operation on the data packet.
23. 根据权利要求 21所述的装置, 其中, 所述计费确定模块包括: The device according to claim 21, wherein the charging determination module comprises:
计费停止确定单元, 设置为在不可用的承载上接收到下行数据包后, 确定 对所述数据包执行计费停止操作; 或者,  The charging stop determining unit is configured to: after receiving the downlink data packet on the unavailable bearer, determine to perform a charging stop operation on the data packet; or
计费恢复确定单元, 设置为在恢复正常的承载上接收到下行数据包后, 确 定对所述数据包执行计费恢复操作。  The charging recovery determining unit is configured to perform a charging recovery operation on the data packet after receiving the downlink data packet on the restored normal bearer.
24. 根据权利要求 22所述的装置, 其中, 在所述 PGW通知所述 TDF直接丢弃所 述数据包的情况下, 所述装置还包括: The device according to claim 22, wherein, in a case that the PGW notifies the TDF to directly discard the data packet, the device further includes:
通知模块, 设置为在承载恢复正常的情况下,通知所述 TDF执行计费恢复 操作。  The notification module is configured to notify the TDF to perform a charging recovery operation when the bearer returns to normal.
25. 根据权利要求 23所述的装置, 其中, 所述 PGW在不可用的承载上接收到下行 数据包之前, 所述计费确定模块还包括: The device according to claim 23, wherein, before the PGW receives the downlink data packet on the unavailable bearer, the charging determining module further includes:
保留单元, 设置为检测到服务网关 SGW重启后, 保留承载上下文和用户 上下文;  a reserved unit, configured to detect that the serving gateway SGW restarts, retaining the bearer context and the user context;
标记单元, 设置为标记所述承载为不可用的承载。 A tag unit, set to mark the bearer that the bearer is not available.
26. 根据权利要求 23所述的装置, 其中, 所述 PGW在不可用的承载上接收到下行 数据包之前, 所述计费确定模块还包括: The device according to claim 23, wherein, before the PGW receives the downlink data packet on the unavailable bearer, the charging determining module further includes:
通知消息接收单元, 设置为接收移动管理实体 MME通过 SGW发送的承 载挂起通知消息;  a notification message receiving unit, configured to receive a bearer suspension notification message sent by the mobility management entity MME through the SGW;
确认消息返回单元, 设置为通过所述 SGW向所述 MME返回承载挂起确 认消息; 其中, 所述 PGW的挂起的承载为不可用的承载。  The acknowledgment message returning unit is configured to return a bearer acknowledgment message to the MME by using the SGW, where the suspended bearer of the PGW is an unusable bearer.
27. 根据权利要求 23所述的装置, 其中, 所述 PGW在恢复正常的承载上接收到下 行数据包之前, 所述计费确定模块还包括: The device according to claim 23, wherein, before the PGW receives the downlink data packet on the normal bearer, the charging determining module further includes:
请求消息接收单元, 设置为接收所述 MME通过 SGW发送的修改承载请 求消息;  a request message receiving unit, configured to receive a modified bearer request message sent by the MME through the SGW;
响应消息返回单元, 设置为通过所述 SGW向所述 MME返回修改承载响 应消息; 其中, 所述 PGW的修改的承载为恢复正常的承载。  The response message returning unit is configured to return a modified bearer response message to the MME by using the SGW, where the modified bearer of the PGW is a normal bearer.
28. 一种计费同步***, 包括: 分组数据网网关 PGW、 策略与计费规则功能实体 PCRF以及业务检测功能实体 TDF, 其中, 所述 PGW包括权利要求 19至 27 中任一项所述的计费同步装置, A billing synchronization system, comprising: a packet data network gateway PGW, a policy and charging rule function entity PCRF, and a service detection function entity TDF, wherein the PGW includes the one described in any one of claims 19 to 27. Billing synchronization device,
所述 PGW包括: 第一发送模块, 设置为向所述 PCRF发送计费通知消息; 其中,所述计费通知消息用于通知所述 TDF执行与所述 PGW相同的计费操作; 所述 PCRF包括: 第二发送模块, 设置为向所述 TDF发送所述计费通知消 息。  The PGW includes: a first sending module, configured to send a charging notification message to the PCRF, where the charging notification message is used to notify the TDF to perform the same charging operation as the PGW; The method includes: a second sending module, configured to send the charging notification message to the TDF.
29. 根据权利要求 28所述的***, 其中, 29. The system of claim 28, wherein
所述 TDF包括: 响应模块, 设置为向所述 PCRF返回计费通知响应消息; 所述 PGW还包括: 接收模块, 设置为接收所述 PCRF发送的所述计费通 知响应消息。  The TDF includes: a response module, configured to return a charging notification response message to the PCRF; the PGW further includes: a receiving module, configured to receive the charging notification response message sent by the PCRF.
30. 根据权利要求 28所述的***, 其中, 30. The system of claim 28, wherein
所述 PGW还包括: 保留模块, 设置为在检测到 SGW重启后, 保留承载上 下文和用户上下文, 并标记所述承载为不可用的承载;  The PGW further includes: a reservation module, configured to: after detecting the restart of the SGW, retain the bearer context and the user context, and mark the bearer that the bearer is unavailable;
所述 PCRF还包括: 第一删除模块, 设置为在检测到 SGW重启后, 删除 与所述 SGW的连接, 并保留用户信息和策略; 所述 PCRF还包括: 第一消息发送模块, 设置为向所述 TDF发送所述计费 通知消息; 其中, 所述计费通知消息用于通知所述 TDF执行计费停止操作。 The PCRF further includes: a first deleting module, configured to delete a connection with the SGW after detecting the restart of the SGW, and retain user information and policies; The PCRF further includes: a first message sending module, configured to send the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging stop operation.
31. 根据权利要求 28所述的***, 其中, 31. The system of claim 28, wherein
所述 PCRF还包括: 第二消息发送模块, 设置为在检测到 SGW恢复工作 后, 向所述 TDF发送所述计费通知消息; 其中, 所述计费通知消息用于通知所 述 TDF执行计费恢复操作。  The PCRF further includes: a second message sending module, configured to send the charging notification message to the TDF after detecting that the SGW resumes working; wherein the charging notification message is used to notify the TDF to execute the meter Fee recovery operation.
32. 根据权利要求 28所述的***, 其中, 32. The system of claim 28, wherein
所述 PCRF还包括: 第二删除模块, 设置为在检测到所述 PGW重启后, 删除与所述 PGW的连接, 并保留用户信息和策略;  The PCRF further includes: a second deleting module, configured to delete the connection with the PGW after detecting the restart of the PGW, and retain user information and policies;
所述 PCRF还包括: 第三消息发送模块, 设置为向所述 TDF发送所述计费 通知消息; 其中, 所述计费通知消息用于通知所述 TDF执行计费停止操作。  The PCRF further includes: a third message sending module, configured to send the charging notification message to the TDF; wherein the charging notification message is used to notify the TDF to perform a charging stop operation.
33. 根据权利要求 28所述的***, 其中, 33. The system of claim 28, wherein
所述 PCRF还包括: 第四消息发送模块, 设置为在检测到所述 PGW恢复 工作后, 向所述 TDF发送所述计费通知消息; 其中, 所述计费通知消息用于通 知所述 TDF执行计费恢复操作。  The PCRF further includes: a fourth message sending module, configured to send the charging notification message to the TDF after detecting that the PGW resumes working; wherein the charging notification message is used to notify the TDF Perform a billing recovery operation.
PCT/CN2013/085190 2012-10-18 2013-10-14 Accounting synchronization method, apparatus and system WO2014059911A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210397754.6 2012-10-18
CN201210397754.6A CN103781041B (en) 2012-10-18 2012-10-18 Charging synchronous method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2014059911A1 true WO2014059911A1 (en) 2014-04-24

Family

ID=50487577

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/085190 WO2014059911A1 (en) 2012-10-18 2013-10-14 Accounting synchronization method, apparatus and system

Country Status (2)

Country Link
CN (1) CN103781041B (en)
WO (1) WO2014059911A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104704866A (en) * 2014-06-30 2015-06-10 华为技术有限公司 Method for re-establishing PDN connection, reset center server, mobile management network element and data network gateway

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166962B (en) * 2018-02-14 2021-01-05 华为技术有限公司 Rule management method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478791A (en) * 2008-01-02 2009-07-08 ***通信集团上海有限公司 Quality of Service management method under SAE fusion architecture
WO2011082036A2 (en) * 2010-01-04 2011-07-07 Tekelec Methods, systems, and computer readable media for providing group policy configuration in a communications network using a fake user
CN102131172A (en) * 2010-01-18 2011-07-20 中兴通讯股份有限公司 Traffic processing method and system
CN102625272A (en) * 2011-01-31 2012-08-01 中兴通讯股份有限公司 Usage monitoring method supporting traffic detection function and usage monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102378405A (en) * 2010-08-23 2012-03-14 中兴通讯股份有限公司 Resource release method and serving gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478791A (en) * 2008-01-02 2009-07-08 ***通信集团上海有限公司 Quality of Service management method under SAE fusion architecture
WO2011082036A2 (en) * 2010-01-04 2011-07-07 Tekelec Methods, systems, and computer readable media for providing group policy configuration in a communications network using a fake user
CN102131172A (en) * 2010-01-18 2011-07-20 中兴通讯股份有限公司 Traffic processing method and system
CN102625272A (en) * 2011-01-31 2012-08-01 中兴通讯股份有限公司 Usage monitoring method supporting traffic detection function and usage monitoring system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HUAWEI ET AL.: "Policy and Charging for NSWO traffic", SA WG2 MEETING #93 S2-123651, 14 October 2012 (2012-10-14) *
NOKIA SIEMENS NETWORKS: "PCC Considerations for SIRIG", 3GPP TSGCT WG4 MEETING #56 C4-120356, 3GPPTSG CT WG3 MEETING #67 C3-120146, 10 February 2012 (2012-02-10), pages 2 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104704866A (en) * 2014-06-30 2015-06-10 华为技术有限公司 Method for re-establishing PDN connection, reset center server, mobile management network element and data network gateway
WO2016000196A1 (en) * 2014-06-30 2016-01-07 华为技术有限公司 Method of reestablishing pdn connection, reset central server, mobility management network element and data gateway
CN104704866B (en) * 2014-06-30 2019-03-08 华为技术有限公司 It rebuilds the method for PDN connection, reset central server, mobile management net element and data gateway
US10499292B2 (en) 2014-06-30 2019-12-03 Huawei Technologies Co., Ltd. PDN connection reestablishing method, reset central server, mobility management network element, and data gateway

Also Published As

Publication number Publication date
CN103781041A (en) 2014-05-07
CN103781041B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN107371215B (en) Method and equipment for controlling light connection
US8638750B2 (en) Method and network device for creating and deleting resources
US9219643B2 (en) Node and method for the handling of serving gateway partial failure
US20190149458A1 (en) Method and apparatus for relocating and resotring connections through a failed serving gateway and traffic offloading
EP2291014B1 (en) Method and corresponding terminal for association relationship updating
US11083039B2 (en) Mobile network optimization processing method, device, and system
DK2702793T3 (en) Improvements to completed mobile calls
RU2421938C2 (en) Methods and device to preserve call continuity in wireless communication
US10708827B2 (en) Method and nodes for handling a UE which has moved from an old location to a new location
US8855045B2 (en) Method and system for controlling establishment of local IP access
EP2259657B1 (en) Method for indicating the bearer management of a serving gateway
WO2011136248A1 (en) Communication method, mobile network system and apparatus
KR20130107302A (en) Methods and apparatus for relocating and restoring connections through a failed serving gateway and traffic offloading
US20110310868A1 (en) P-gw/ggsn issued paging requests
US9392566B2 (en) Avoiding unlimited number of unsuccessful location update or packet data connection establishment attempts
WO2012167478A1 (en) Method, user equipment and system for processing paging
WO2010031353A1 (en) A processing method, device and system of service request
WO2009111983A1 (en) Method, radio access equipment and terminal for paging users
WO2011157189A2 (en) Method, device and system for reporting location
WO2012024989A1 (en) Method and system for bearer release
WO2017028637A1 (en) Gateway recovery processing method and device
WO2014059911A1 (en) Accounting synchronization method, apparatus and system
WO2011097813A1 (en) Method for deactivating the idle mode signaling reduction (isr), method for modifying the bearer parameters and network system
CN101959209B (en) Synchronization method and system for partial failure handling
WO2015176256A1 (en) Information processing method and apparatus for location area update

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: 13846733

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13846733

Country of ref document: EP

Kind code of ref document: A1