WO2016070595A1 - Method, tne, fcs, bd entity and system for performing charging - Google Patents

Method, tne, fcs, bd entity and system for performing charging Download PDF

Info

Publication number
WO2016070595A1
WO2016070595A1 PCT/CN2015/077840 CN2015077840W WO2016070595A1 WO 2016070595 A1 WO2016070595 A1 WO 2016070595A1 CN 2015077840 W CN2015077840 W CN 2015077840W WO 2016070595 A1 WO2016070595 A1 WO 2016070595A1
Authority
WO
WIPO (PCT)
Prior art keywords
acr
ocs
cdr
abnormal
session
Prior art date
Application number
PCT/CN2015/077840
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 WO2016070595A1 publication Critical patent/WO2016070595A1/en

Links

Images

Classifications

    • 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for implementing charging, a TNE, an FCS, a BD, and a system.
  • the charging system is one of the important functional systems, including an offline charging system and an online charging system.
  • the offline charging process does not affect the user's use of the telecommunication service in real time, and the offline user is the post-paid user.
  • Online charging affects the user's charging process in real time affecting the user's use of telecommunication services. That is, the user must ensure that the corresponding account balance is sufficient to allow the use of telecommunication services, and the online users are prepaid users.
  • FIG. 1 is a schematic structural diagram of a charging system defined by 3GPP, as shown in FIG. 1.
  • the access layer network element is used to carry a user access function, such as a Wireless Local Area Network (WLAN), or a Packet Data Network Gateway (PGW).
  • the network element of the control layer is the core network element, which is used to control the route of the user call or session, for example, the service call session control function (SCSCF, Server Call Session Control Function).
  • SCSCF Service Call Session Control Function
  • the service layer network element is used to process a service called by a user or a session, such as a Session Initial Protocol Application Server (SIP AS).
  • SIP AS Session Initial Protocol Application Server
  • Traditional switched network elements are used for traditional circuit switching.
  • the access layer network element, the control layer network element, the service layer network element, and the traditional switching network element are collectively referred to as a TNE (Telecom Network Element).
  • the Offline Charging Server (FCS) is an important functional entity in the offline charging system. The specific functions are described in conjunction with Figure 2.
  • the Online Charging Server (OCS) is an important functional entity in the online charging system. The specific functions are described in conjunction with Figure 3.
  • the billing domain (BD) entity is mainly used for billing processing according to the CDR (Charging Data Record), and is also used for billing related processing, that is, settlement, business analysis, and statistical processing according to the CDR.
  • the offline charging system logically includes a Charging Trigger Function (CTF), FCS and BD.
  • the CTF is embedded in each TNE, and is mainly used for collecting charging information according to the usage of the monitored network resources, and sending an accounting request (ACR, Accounting Request).
  • the FCS logically includes a Charging Data Function (CDF) and a Charging Gateway Function (CGF).
  • CDF Charging Data Function
  • CGF Charging Gateway Function
  • the CDF is mainly used to receive the ACR from the CTF, construct and transmit the CDR.
  • the CGF is mainly used to receive, store, and manage CDRs from the CDF, and send CDRs to the BD (in particular, the CDR files carrying one or more CDRs are sent to the BD).
  • the offline charging process in the offline charging system includes: the TNE embedded with the CTF sends an ACR to the FCS according to the collected charging information; the FCS constructs the CDR according to the obtained ACR, and sends the CDR to the BD; The CDR determines that the user corresponding to the CDR is an offline user by searching the user profile database, and performs charging related processing, that is, charging, settlement, business analysis, and statistical processing.
  • FIG. 3 is a schematic diagram showing the logical composition of an online charging system in a 3GPP network. As shown in FIG. 3, it includes: CTF, OCS, FCS, and BD.
  • the CTF has the same function as the CTF in the offline charging system.
  • the OCS logically includes an Online Charging Function (OCF), an RF (Rating Function), and an Account Management Management Function (ABMF).
  • OCF is mainly used to complete the main control and processing flow of online charging for users.
  • RF is mainly used to complete the pricing function according to different services used by users.
  • ABMF is mainly used to complete the user's account balance management function.
  • the online charging process in the online charging system generally includes: when the prepaid user requests the telecommunication service, the TNE sends an initial charging request (CCR Initial, Charging Credit Request Initial) to the OCS; the OCF in the OCS calls the RF to complete the user's The AMF in the OCS determines whether to pre-authorize the prepaid user according to the result of the rating; if the prepaid user's account balance is sufficient, the OCF in the OCS returns an online charging response (CCA) indicating the successful pre-authorization to the TNE.
  • CCR Initial Charging Credit Request Initial
  • CCA online charging response
  • the TNE establishes a corresponding session for the prepaid user and allocates resources according to the obtained CCA, the prepaid user starts to use the requested telecommunication service, and the TNE sends the TNS to the FCS for The ACR indicating the start of the session;
  • the FCS establishes the CDR corresponding to the ACR according to the obtained ACR, and sets the information in the CDR, such as setting the session start time in the CDR as the time for obtaining the ACR; and determining the end of the session to the FCS by the TNE hair
  • the ACR is sent to indicate the end of the session;
  • the FCS sets the information in the CDR corresponding to the ACR according to the obtained ACR, such as setting the session end time in the CDR to the time of obtaining the ACR, sending the CDR to the BD, and deleting the CDR.
  • the BD determines that the user corresponding to the CDR is a prepaid
  • the online charging process generally includes: the TNE sends an indication to the FCS to indicate an OCS abnormality.
  • the OCS abnormality identifier in the CDR corresponding to the ACR is set to be abnormal; when the TNE determines that the session ends, the ACR is sent to the FCS to indicate the end of the session; the FCS sets the ACR according to the obtained ACR.
  • the CDR is sent to the BD, and the CDR is deleted.
  • the BD determines, according to the obtained CDR, that the user corresponding to the CDR is a prepaid user, and determines the CDR in the CDR by using the OCS abnormal identifier in the CDR. Whether the OCS exception has occurred in the corresponding session duration. If the result of the determination is over, the user's deducted fee and the undeducted fee are calculated by searching the historical CDR database, and the calculated undeducted fee is calculated. The fee-related processing performs settlement-related processing based on the calculated deducted fee.
  • the BD When an OCS exception occurs in the process of using a telecommunication service by a prepaid subscriber, the BD needs to look up the historical CDR database in order to calculate the deducted fee and the undeducted fee of the user.
  • the time for searching the historical CDR database once is a second time, such as 5 seconds.
  • the BD needs to search the historical CDR database for a large number of CDRs such as tens of thousands or even more prepaid users, which greatly increases the processing complexity of the BD for the CDR of the prepaid user, and significantly reduces the BD.
  • the processing efficiency of the CDR affects the user experience.
  • the present invention provides a method for implementing charging, a TNE, an FCS, a BD entity, and a system, which can effectively improve a BD for a prepaid user when an OCS abnormality occurs in a process of using a telecommunication service by a prepaid user.
  • the processing efficiency of the CDR can improve the user experience.
  • a method for implementing billing comprising:
  • the telecommunication network element TNE is configured for each pre-authorized prepaid user session: when detecting the online charging server OCS abnormality, sending a first charging request ACR for indicating an OCS abnormality to the offline charging server FCS; and detecting Sending, to the FCS, a second ACR for indicating the abnormal recovery of the OCS when the OCS is abnormally restored;
  • the FCS sets abnormal information in the corresponding charging bill CDR according to the received ACR
  • the charging domain BD entity calculates the OCS abnormal duration according to the received CDR from the FCS, and performs charging related processing according to the calculated OCS abnormal duration.
  • the abnormality information includes the OCS abnormal start time and the OCS abnormal recovery time; and the FCS sets the abnormal information in the corresponding CDR according to the received ACR, including:
  • the abnormality information further includes an OCS abnormality identifier
  • the setting an OCS abnormality start time in the CDR to be the time after receiving the first ACR further includes: setting an OCS abnormality identifier in the CDR to abnormal
  • the method further includes: determining whether the CDR corresponds to a prepaid user, and determining whether the CDR corresponding to the prepaid user determines whether the OCS abnormality identifier in the CDR is abnormal; if determining the OCS If the abnormality is abnormal, the step of calculating the OCS abnormal duration is performed.
  • the CDR further includes a session start time and a session end time
  • the method further includes:
  • the BD entity subtracts the session start time in the CDR from the session start time in the CDR, and the obtained difference is the duration of the session corresponding to the CDR; and reduces the duration of the session corresponding to the obtained CDR. Going to the OCS abnormal duration, the obtained difference is the normal duration of the OCS; and the settlement related processing is performed according to the calculated normal duration of the OCS.
  • the calculating the OCS abnormal duration includes: recovering the OCS abnormality time The OCS abnormal start time is subtracted, and the obtained difference is the OCS abnormal duration.
  • the method further includes:
  • the fourth ACR indicating the end of the session is sent to the FCS.
  • the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time.
  • the FCS sets the abnormal information in the corresponding CDR according to the received ACR, including:
  • the FCS When the FCS receives the first ACR, setting a session end time in the first CDR corresponding to the first ACR to a time when the first ACR is received, and setting a second corresponding to the first ACR
  • the session start time in the CDR is the time when the first ACR is received, and the OCS abnormality identifier in the second CDR is set to be abnormal, and the first CDR is sent;
  • the FCS When the FCS receives the second ACR, setting a session end time in the second CDR corresponding to the second ACR to a time when the second ACR is received, and setting a third corresponding to the second ACR
  • the session start time in the CDR is the time when the second ACR is received, and the OCS abnormality identifier in the third CDR is set to be normal, and the second CDR is sent;
  • the method before the calculating the OCS abnormal duration, the method further includes:
  • the calculating the OCS abnormal duration includes:
  • the session end time in the second CDR is subtracted from the session start time, and the resulting difference is the OCS abnormal duration.
  • the method further includes: the TNE setting a user identifier in the ACR as a prepaid user;
  • the method further includes: the FCS setting a user identifier in the CDR as a user identifier in the ACR corresponding to the CDR;
  • Whether the BD entity determines whether the CDR corresponds to a prepaid user comprises: determining, according to a user identifier in the CDR, whether the CDR corresponds to a prepaid user.
  • a method for implementing charging, applied to TNE includes:
  • a first ACR indicating an OCS abnormality is sent to the FCS; when an OCS abnormal recovery is detected, an FCS is sent to indicate an abnormal recovery of the OCS The second ACR.
  • the method further includes:
  • a third ACR for instructing the start of the session is sent to the FCS; when the end of the session is detected, a fourth ACR indicating the end of the session is sent to the FCS.
  • the method further includes:
  • the user ID in the ACR to be sent is set as a prepaid user.
  • a method for implementing billing, applied to FCS including:
  • setting the abnormal information in the corresponding CDR according to the received ACR includes:
  • setting an OCS abnormal start time in the CDR corresponding to the first ACR is a time when the first ACR is received;
  • setting the OCS abnormal recovery time in the CDR corresponding to the second ACR is the time when the second ACR is received.
  • the abnormality information further includes an OCS abnormality identifier
  • the method further includes: when the first ACR is received, setting an OCS abnormality identifier in the CDR to be abnormal.
  • setting abnormal information in the corresponding CDR according to the received ACR include:
  • the session start time in the first CDR corresponding to the third ACR is set to be the time when the third ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal;
  • the ACR is an ACR sent when the TNE detects that the session is pre-authorized;
  • the session end time in the first CDR corresponding to the first ACR is set to the time when the first ACR is received, and the session start time in the second CDR corresponding to the first ACR is set to be received.
  • the session start time in the second CDR corresponding to the first ACR is set to be received.
  • the session end time in the third CDR corresponding to the fourth ACR is set to be the time when the fourth ACR is received, and the third CDR is sent; the fourth ACR is detected by the TNE.
  • the method further includes: setting a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
  • a method for implementing billing comprising:
  • the CDR includes the FCS set according to the charging request ACR sent by the telecommunication network element TNE Abnormal information;
  • the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
  • the charging related processing is performed according to the OCS abnormal duration.
  • calculating an online charging server OCS abnormal duration includes:
  • the OCS abnormal recovery time is the FCS receiving the first The time of an ACR
  • the OCS abnormal recovery time is the time when the FCS receives the second ACR.
  • calculating an online charging server OCS abnormal duration includes:
  • the OCS abnormality is identified as the session end time in the abnormal CDR minus the session start time, and the obtained difference is the OCS abnormal duration; in the CDR where the OCS abnormality is abnormal, the session start time is The time when the FCS receives the first ACR, the session end time is the time when the FCS receives the second ACR; the OCS abnormality identifier is not an abnormal CDR, and the session start time is The time when the FCS receives the third ACR, the session end time is the time when the FCS receives the first ACR, or the session start time is the time when the FCS receives the second ACR, The session end time is a time when the FCS receives the fourth ACR; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized, and the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
  • a telecommunication network element TNE for implementing charging comprising:
  • the first sending unit is configured to send a pre-authorized prepaid user's session for each: when detecting the online charging server OCS abnormality, sending a first charging request ACR for indicating an OCS abnormality to the offline charging server FCS ;
  • the second transmitting unit is configured to set a session for each pre-authorized pre-paid user: when an OCS abnormal recovery is detected, a second ACR for indicating an OCS abnormal recovery is sent to the FCS.
  • the TNE further includes:
  • a third sending unit configured to send a third ACR for indicating a start of the session to the FCS when detecting that the session is pre-authorized;
  • the fourth transmitting unit is configured to, when the end of the session is detected, send a fourth ACR indicating the end of the session to the FCS.
  • the TNE further includes:
  • a user identification setting unit configured to set a user identifier in the ACR to be sent as a pre- Paying users.
  • FCS that implements charging, including:
  • a receiving unit configured to receive a charging request ACR from the telecommunication network element TNE; the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
  • the abnormality information setting unit is configured to set abnormality information in the CDR of the charging bill corresponding to the received ACR.
  • the abnormality information includes an OCS abnormality start time and an OCS abnormality recovery time;
  • the exception information setting unit according to the received ACR setting corresponding to the abnormal information in the CDR is:
  • Setting the abnormality information setting unit when receiving the first ACR from the TNE, setting an OCS abnormal start time in the CDR corresponding to the first ACR to a time when the first ACR is received; when receiving When the second ACR is from the TNE, setting an OCS abnormal recovery time in the CDR corresponding to the second ACR is a time when the second ACR is received.
  • the abnormality information further includes an OCS abnormality identifier; the abnormality information setting unit is further configured to: when the first ACR is received, set an OCS abnormality identifier in the CDR to be abnormal.
  • the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time.
  • the exception information setting unit according to the received ACR setting corresponds to the abnormal information in the CDR, where:
  • the abnormality information setting unit when receiving the third ACR from the TNE, setting a session start time in the first CDR corresponding to the third ACR to a time when the third ACR is received, and setting the first CDR
  • the OCS abnormality identifier is normal;
  • the third ACR is an ACR sent when the TNE detects that the session is pre-authorized;
  • the abnormality information setting unit sets the session end time in the first CDR corresponding to the first ACR to the time when the first ACR is received, and sets the first ACR when receiving the first ACR from the TNE.
  • the session start time in the corresponding second CDR is the first time received At the time of the ACR, setting the OCS abnormality identifier in the second CDR to be abnormal, and sending the first CDR;
  • the session start time is the time when the second ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal, and the second CDR is sent;
  • the fourth ACR When receiving the fourth ACR from the TNE, setting a session end time in the third CDR corresponding to the fourth ACR to receive the fourth ACR, and transmitting a third CDR; the fourth ACR is The TCR is sent to the FCS when the TNE detects the end of the session.
  • the abnormality information setting unit is further configured to: set a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
  • a billing domain BD entity that implements billing including:
  • the calculating unit is configured to calculate an abnormal duration of the online charging server OCS according to the received charging bill CDR from the offline charging server FCS;
  • the processing unit is configured to perform charging related processing according to an OCS abnormal duration from the computing unit.
  • the BD entity further includes: a first determining unit, configured to determine whether the CDR corresponds to a prepaid user, and when the CDR corresponds to a prepaid user, determining whether the OCS abnormal identifier in the CDR is abnormal;
  • the calculating unit is configured to perform an operation of calculating an OCS abnormal duration according to the received CDRs from the FCS when the first determining unit determines that the OCS abnormality identifier is abnormal.
  • the CDR further includes a session start time and a session end time
  • the calculating unit is further configured to: subtract a session end time in the CDR from a start time of a session in the CDR, and obtain a difference value as a duration of a session corresponding to the CDR; The duration of the session minus the OCS abnormal duration, and the resulting difference is the normal duration of the OCS;
  • the processing unit is further configured to perform settlement related processing based on an OCS normal duration from the computing unit.
  • the calculating unit according to the received CDRs from the FCS, calculating an OCS abnormal duration refers to: subtracting an OCS abnormal recovery time in the CDR from an OCS abnormal start time in the CDR, and the obtained The difference is the OCS abnormal duration.
  • the calculating unit calculates the OCS abnormal duration according to the received CDR from the FCS, where:
  • the session end time in the CDR is subtracted from the session start time, and the obtained difference is the OCS abnormal duration.
  • the determining, by the first determining unit, whether the CDR corresponds to a prepaid user refers to:
  • the first determining unit Determining, by the first determining unit, whether the CDR corresponds to a prepaid user according to the user identifier in the CDR; the user identifier in the CDR is set to be the same as the user identifier in the corresponding ACR; and for the prepaid user, the The user ID in the ACR is set as a prepaid user.
  • a system for implementing billing includes: the TNE, FCS, and BD entities described above.
  • the technical solution of the embodiment of the present invention includes: a TNE for each pre-authorized pre-paid user session: when detecting an OCS abnormality, sending a first ACR for indicating an OCS abnormality to the FCS; When the OCS abnormal recovery is detected, the second ACR for indicating the abnormal recovery of the OCS is sent to the FCS; the FCS sets the abnormal information in the corresponding CDR according to the received ACR; and the BD calculates the OCS abnormality according to the received CDR from the FCS. Duration, and billing related processing based on the calculated OCS abnormal duration.
  • the BD entity when the OCS abnormality occurs in the process of using the telecommunication service, the BD entity can calculate the OCS abnormal duration simply calculated according to the received CDR, thereby avoiding the query history CDR.
  • the data calculates the OCS abnormal duration, which effectively improves the processing efficiency of the BD entity to the online user's CDR, thereby improving the user experience.
  • 1 is a schematic structural diagram of a charging system defined by 3GPP;
  • FIG. 2 is a schematic diagram showing the logical composition of an offline charging system in a 3GPP network
  • FIG. 3 is a schematic diagram showing the logical composition of an online charging system in a 3GPP network
  • FIG. 4 is a flowchart of a method for implementing charging in a 3GPP network according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a system for implementing charging in a 3GPP network according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a TNE according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an FCS according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a BD entity according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for implementing charging in a 3GPP network according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
  • Step 401 The TNE sends a pre-authorized pre-paid user session: when an OCS abnormality is detected, a first ACR for indicating an OCS abnormality is sent to the FCS; and when the OCS abnormal recovery is detected, the FCS is sent to the FCS for A second ACR indicating an abnormal recovery of the OCS.
  • the TNE detects the implementation of the OCS abnormality/OCS abnormal recovery, which is a common technical means by those skilled in the art, and is not described here.
  • This step emphasizes that when an OCS abnormality/OCS abnormal recovery is detected, a first ACR/second for indicating an OCS abnormality/OCS abnormality recovery is sent to the FCS for each session of the pre-authorized prepaid user.
  • ACR may use an information in the ACR, such as two reserved values for indicating the start of the session, to indicate an OCS exception and an OCS abnormality recovery, respectively, to implement sending an ACR for indicating an OCS abnormality/OCS abnormal recovery to the FCS. .
  • the method further includes: when the TNE detects that the session is pre-authorized, sending a third ACR for indicating the start of the session to the FCS; and when detecting the end of the session, the TNE sends a fourth ACR for indicating the end of the session to the FCS.
  • Step 402 The FCS sets abnormal information in the corresponding CDR according to the received ACR.
  • the abnormality information in this step includes an OCS abnormal start time and an OCS abnormal end time
  • step 402 includes:
  • the FCS When receiving the first ACR, the FCS sets the OCS abnormal start time in the CDR to the time when the first ACR is received; when the second ACR is received, sets the OCS abnormal recovery time in the CDR to the time when the second ACR is received. .
  • the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time.
  • Step 402 includes:
  • the FCS When receiving the third ACR, the FCS sets the session start time in the first CDR corresponding to the ACR to the time when the third ACR is received, and sets the OCS abnormality identifier in the first CDR to be normal; when the first ACR is received. Setting the session end time in the first CDR corresponding to the ACR to the time when the first ACR is received, setting the session start time in the second CDR corresponding to the ACR to the time of receiving the first ACR, and setting the second CDR.
  • the OCS abnormality identifier is abnormal, and the first CDR is sent; when the second ACR is received, the session end time in the second CDR corresponding to the ACR is set to the time when the second ACR is received, and the third CDR corresponding to the ACR is set.
  • the session start time is the time when the second ACR is received, the OCS abnormality identifier in the third CDR is set to be normal, and the second CDR is sent; when the fourth ACR is received, the session in the third CDR corresponding to the ACR is set.
  • the end time is the time when the fourth ACR is received, and the third CDR is transmitted.
  • Step 403 The BD entity calculates an OCS abnormal duration according to the received CDRs from the FCS, and performs charging related processing according to the calculated OCS abnormal duration.
  • the BD entity calculates the OCS abnormal duration according to the abnormal information in the CDR, which is different from the BD entity in the related art in searching the historical CDR database; and the implementation of the charging related processing belongs to the field. The technical means of the technicians will not be described here.
  • the calculation of the OCS abnormal duration by the BD entity in step 403 specifically includes:
  • the OCS abnormal recovery time is subtracted from the OCS abnormal start time, and the obtained difference is the OCS abnormal duration.
  • the CDR further includes a session start time and a session end time
  • the method further includes:
  • the BD entity calculates the normal duration of the OCS according to the session start time and the session end time in the CDR, and the OCS abnormal duration, and performs settlement related processing according to the calculated normal duration of the OCS.
  • the calculating the OCS normal duration includes: subtracting the session end time in the CDR from the start time of the session in the CDR, and the obtained difference is the duration of the session corresponding to the CDR; and reducing the duration of the session corresponding to the obtained CDR. Go to the OCS abnormal duration and the resulting difference is the normal duration of the OCS.
  • the abnormality information may further include an OCS abnormality identifier, and setting an OCS abnormality start time in the CDR to a time after receiving the first ACR further includes: setting an OCS abnormality identifier in the CDR as an abnormality.
  • the method before the BD entity calculates the OCS abnormal duration, the method further includes: determining whether the OCS abnormality identifier in the CDR is abnormal; if the abnormality is determined, calculating the OCS abnormal duration, and calculating the OCS abnormal duration according to the calculated duration The charging related processing is performed; if it is determined to be normal, the normal duration of the OCS is calculated, and the settlement related processing is performed according to the calculated normal duration of the OCS.
  • the method before the BD entity calculates the OCS abnormal duration, the method further includes:
  • the BD entity determines whether the OCS abnormality identifier in the CDR is abnormal; if it is determined to be abnormal, calculates an OCS abnormal duration, and performs charging related processing according to the calculated OCS abnormal duration; if it is determined to be normal, calculates the normal duration of the OCS, The settlement related processing is performed according to the calculated normal duration of the OCS. among them,
  • the calculating the OCS abnormal duration of the BD entity comprises: subtracting the session end time in the second CDR from the session start time, and the obtained difference is an OCS abnormal duration; calculating the normal duration of the OCS includes: the CDR (the first and third CDRs) The session end time in the CDR is subtracted from the session start time in the CDR, and the resulting difference is the normal duration of the OCS.
  • the BD entity may further include:
  • the BD entity determines whether the CDR corresponds to a prepaid subscriber, and if it is determined to correspond to a prepaid subscriber, A step of determining whether the OCS abnormality flag in the CDR is abnormal.
  • determining whether the CDR corresponds to the prepaid user may include: querying the user profile database according to the CDR; and if the query result indicates that the user corresponding to the CDR is a prepaid user, determining that the user corresponding to the CDR is a prepaid user.
  • the TNE may further include: the TNE sets the user identifier in the ACR as a prepaid user.
  • the method may further include: the FCS setting the user identifier in the CDR as the user identifier in the ACR corresponding to the CDR.
  • Whether the BD entity determines whether the CDR corresponds to the prepaid user may include determining whether the CDR corresponds to the prepaid user according to the user identifier in the CDR.
  • the BD entity obtains the CDR corresponding to the prepaid user
  • the user corresponding to the CDR is determined to be a prepaid user or an offline user according to the user identifier carried in the CDR, and the BD entity is prevented from determining the user corresponding to the CDR as a prepaid user by searching the user profile database. Or offline users, further improving the processing efficiency of the BD entity for the CDR of the prepaid user or the offline user.
  • a method for implementing charging, applied to TNE includes:
  • a first ACR indicating an OCS abnormality is sent to the FCS; when an OCS abnormal recovery is detected, an FCS is sent to indicate an abnormal recovery of the OCS The second ACR.
  • the method further includes:
  • a third ACR for instructing the start of the session is sent to the FCS; when the end of the session is detected, a fourth ACR indicating the end of the session is sent to the FCS.
  • the method further includes:
  • the user ID in the ACR to be sent is set as a prepaid user.
  • a method for implementing billing, applied to FCS including:
  • setting the abnormal information in the corresponding CDR according to the received ACR includes:
  • setting an OCS abnormal start time in the CDR corresponding to the first ACR is a time when the first ACR is received;
  • setting the OCS abnormal recovery time in the CDR corresponding to the second ACR is the time when the second ACR is received.
  • the abnormality information further includes an OCS abnormality identifier
  • the method further includes: when the first ACR is received, setting an OCS abnormality identifier in the CDR to be abnormal.
  • setting the abnormal information in the corresponding CDR includes:
  • the session start time in the first CDR corresponding to the third ACR is set to be the time when the third ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal;
  • the ACR is an ACR sent when the TNE detects that the session is pre-authorized;
  • the session end time in the first CDR corresponding to the first ACR is set to the time when the first ACR is received, and the session start time in the second CDR corresponding to the first ACR is set to be received.
  • the session start time in the second CDR corresponding to the first ACR is set to be received.
  • the session end time is the time when the fourth ACR is received, and the third CDR is sent; the fourth ACR is the ACR sent to the FCS when the TNE detects the end of the session.
  • the method further includes: setting a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
  • a method for implementing charging, applied to a BD entity including:
  • the CDR includes the FCS set according to the charging request ACR sent by the telecommunication network element TNE Abnormal information;
  • the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
  • the charging related processing is performed according to the OCS abnormal duration.
  • calculating an online charging server OCS abnormal duration includes:
  • the OCS abnormal recovery time is a time when the FCS receives the first ACR
  • the OCS abnormal recovery time is the time when the FCS receives the second ACR.
  • calculating an online charging server OCS abnormal duration includes:
  • the OCS abnormality is identified as the session end time in the abnormal CDR minus the session start time, and the obtained difference is the OCS abnormal duration; in the CDR where the OCS abnormality is abnormal, the session start time is The time when the FCS receives the first ACR, the session end time is the time when the FCS receives the second ACR; the OCS abnormality identifier is not an abnormal CDR, and the session start time is The time when the FCS receives the third ACR, the session end time is the time when the FCS receives the first ACR, or the session start time is the time when the FCS receives the second ACR, The session end time is a time when the FCS receives the fourth ACR; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized, and the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
  • FIG. 5 is a schematic structural diagram of a system for implementing charging in a 3GPP network according to an embodiment of the present invention. As shown in FIG. 5, the system includes: TNE, FCS, and BD entities, where
  • the TNE for billing is shown in Figure 6, which includes:
  • a first sending unit configured to: for each pre-authorized pre-paid user's session: when an OCS abnormality is detected, sending a first ACR indicating an OCS abnormality to the FCS;
  • the second transmitting unit is configured to send a second ACR for indicating an abnormal recovery of the OCS to the FCS when the OCS abnormal recovery is detected.
  • the TNE further includes:
  • a third sending unit configured to send a third ACR for indicating the start of the session to the FCS when the session is pre-authorized is detected;
  • the fourth transmitting unit is configured to send a fourth ACR for indicating the end of the session to the FCS when the end of the session is detected.
  • the TNE further includes:
  • a user identification setting unit is configured to set a user identifier in the ACR to be transmitted as a prepaid user.
  • FCS for billing is shown in Figure 7, including:
  • a receiving unit configured to receive an ACR
  • the abnormality information setting unit is configured to set abnormality information in the corresponding CDR according to the received ACR.
  • the abnormality information setting unit sets the abnormal information in the corresponding CDR according to the received ACR, which means:
  • the abnormality information setting unit sets the OCS abnormal start time in the CDR corresponding to the first ACR to the time when the first ACR is received when receiving the first ACR from the TNE;
  • setting the OCS abnormal recovery time in the CDR corresponding to the second ACR is the time when the second ACR is received.
  • the abnormality information further includes an OCS abnormality identifier
  • the abnormality information setting unit is further configured to: when the first ACR is received, set the OCS abnormality identifier in the CDR to be abnormal.
  • the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time.
  • the abnormality information setting unit sets the abnormal information in the corresponding CDR according to the received ACR:
  • the abnormality information setting unit sets the session start time in the first CDR corresponding to the third ACR to the time when the third ACR is received, and sets the OCS abnormality identifier in the first CDR to be normal;
  • the third ACR is an ACR sent when the TNE detects that the session is pre-authorized;
  • the session end time in the first CDR corresponding to the first ACR is set to the time when the first ACR is received, and the session start time in the second CDR corresponding to the first ACR is set to be received.
  • the session start time in the second CDR corresponding to the first ACR is set to be received.
  • the session end time in the third CDR corresponding to the fourth ACR is set to be the time when the fourth ACR is received, and the third CDR is sent; the fourth ACR is detected by the TNE.
  • the abnormality information setting unit is further configured to: set a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
  • the BD entity that implements charging is as shown in FIG. 8 , and includes a computing unit and a processing unit, where
  • a calculating unit configured to calculate an OCS abnormal duration according to the received CDR from the FCS;
  • the CDR includes abnormal information set by the FCS according to a charging request ACR sent by the telecommunication network element TNE;
  • the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormality recovery is detected;
  • the processing unit is configured to perform charging related processing according to an OCS abnormal duration from the computing unit.
  • the calculating unit calculates the OCS abnormal duration as follows: the calculating unit subtracts the OCS abnormality recovery time in the CDR from the OCS abnormal start time in the CDR, and the obtained difference is the OCS abnormal duration.
  • the BD entity further includes a first determining unit, configured to determine whether the received OCS abnormality identifier in the CDR from the FCS is abnormal;
  • the calculating unit is configured to: when the first determining unit determines that the OCS abnormality identifier is abnormal, perform the operation of calculating the OCS abnormal duration according to the received CDR from the FCS.
  • the CDR also includes a session start time and a session end time.
  • the calculating unit is further configured to: calculate the normal duration of the OCS according to the session start time and the session end time in the CDR, and the OCS abnormal duration;
  • the processing unit is further arranged to perform settlement related processing based on the OCS normal duration from the computing unit.
  • the calculation unit calculates the OCS normal duration according to the session start time and the session end time in the CDR, and the OCS abnormal duration, which means:
  • the calculation unit subtracts the OCS abnormality recovery time in the CDR from the OCS abnormal start time in the CDR, and the obtained difference is the OCS abnormal duration; the session end time in the CDR is subtracted from the start time of the session in the CDR, and the difference is obtained.
  • the value is the duration of the session corresponding to the CDR; the duration of the session corresponding to the obtained CDR is subtracted from the abnormal duration of the OCS, and the obtained difference is the normal duration of the OCS.
  • the calculation unit calculates the OCS abnormal duration as:
  • the calculation unit subtracts the session end time in the second CDR from the session start time, and the resulting difference The duration of the OCS exception.
  • the BD entity further includes: the first determining unit is configured to determine whether the received OCS abnormality identifier in the CDR from the FCS is abnormal;
  • the calculating unit is configured to: when the first determining unit determines that the OCS abnormality identifier is abnormal, perform an operation of calculating an OCS abnormal duration; when the first determining unit determines that the OCS abnormality identifier is normal, calculate an OCS normal duration.
  • the processing unit is further configured to: perform settlement related processing based on the calculated normal duration of the OCS.
  • the calculation unit calculates the normal duration of the OCS as:
  • the session end time in the first and third CDRs is subtracted from the session start time in the CDR, and the sum of the obtained differences is the OCS normal duration.
  • the second determining unit is further configured to determine whether the CDR corresponds to the prepaid user; when it is determined to correspond to the prepaid user, perform an operation of determining whether the OCS abnormality identifier in the CDR is abnormal.
  • the first determining unit is configured to: query the user profile database according to the CDR; and when the query result indicates that the user corresponding to the CDR is a prepaid user, determine that the user corresponding to the CDR is a prepaid user.
  • the FCS is further configured to set the user identity in the CDR to be sent as the user in the ACR corresponding to the CDR.
  • the first determining unit is configured to: determine whether the CDR corresponds to the prepaid user according to the user identifier in the CDR.
  • the technical solution of the embodiment of the present invention can implement the simple calculation of the BD entity according to the received CDR when the prepaid user has an OCS abnormality in the process of using the telecommunication service.
  • the OCS abnormal duration is obtained, and the OCS abnormal duration is calculated by querying the historical CDR data, thereby effectively improving the processing efficiency of the BD entity to the online user's CDR, thereby improving the user experience.

Abstract

A method, TNE, FCS, BD and system for performing charging, comprising: with regard to a session of each prepayment user who is pre-authorized, a TNE sends a first ACR for indicating an OCS abnormality to an FCS when detecting the OCS abnormality, and sends a second ACR for indicating the recovery of the OCS abnormality to the FCS when detecting that the OCS abnormality has recovered; the FCS sets abnormality information in a respective CDR according to the received ACR; a BD computes a duration time of the OCS abnormality according to the CDR received from the FCS, and performs charging related processing according to the computed duration time of the OCS abnormality. By means of the technical solution in the embodiments of the present invention, when OCS abnormality occurs during the process that a prepayment user uses a telecommunications service, the processing efficiency of a BD to a CDR of a prepayment user is effectively improved, and thus the user experience is improved.

Description

实现计费的方法、TNE、FCS、BD实体和系统Method for implementing billing, TNE, FCS, BD entity and system 技术领域Technical field
本发明涉及通信领域,尤其涉及一种实现计费的方法、TNE、FCS、BD和系统。The present invention relates to the field of communications, and in particular, to a method for implementing charging, a TNE, an FCS, a BD, and a system.
背景技术Background technique
在3GPP网络中,计费系统是重要的功能系统之一,包括离线计费系统和在线计费系统。其中,离线计费对用户的计费过程并不实时影响用户使用电信业务,离线用户即为后付费用户。在线计费对用户的计费过程实时影响用户使用电信业务,也就是说,用户必须确保对应的账户余额充足才允许使用电信业务,在线用户即为预付费用户。In the 3GPP network, the charging system is one of the important functional systems, including an offline charging system and an online charging system. The offline charging process does not affect the user's use of the telecommunication service in real time, and the offline user is the post-paid user. Online charging affects the user's charging process in real time affecting the user's use of telecommunication services. That is, the user must ensure that the corresponding account balance is sufficient to allow the use of telecommunication services, and the online users are prepaid users.
图1为3GPP定义的计费系统的组成结构示意图,如图1所示。接入层网元用于承载用户接入功能,例如为无线本地网络(WLAN,Wireless Local Area Network)、或分组网络网关(PGW,Packet Data Network Gateway)等。控制层网元为核心的网元,用于控制用户呼叫或者会话的路由,例如为服务呼叫会话控制功能(SCSCF,Server Call Session Control Function)等。业务层网元用于处理用户呼叫或会话所请求业务,例如为会话初始化协议应用服务器(SIP AS,Session Initial Protocol Application Server)等。传统交换网元用于传统的电路交换。其中,接入层网元、控制层网元、业务层网元和传统交换网元统称为电信网元(TNE,Telecom Network Element)。离线计费服务器(FCS,Offline Charging Server)为离线计费系统中的重要的功能实体,具体功能结合图2进行介绍。在线计费服务器(OCS,Online Charging Server)为在线计费系统中的重要的功能实体,具体功能结合图3进行介绍。计费域(BD,Billing domain)实体主要用于根据计费话单(CDR,Charging Data Record)进行计费处理,还用于根据CDR进行结算相关处理即结算、经营分析和统计处理。FIG. 1 is a schematic structural diagram of a charging system defined by 3GPP, as shown in FIG. 1. The access layer network element is used to carry a user access function, such as a Wireless Local Area Network (WLAN), or a Packet Data Network Gateway (PGW). The network element of the control layer is the core network element, which is used to control the route of the user call or session, for example, the service call session control function (SCSCF, Server Call Session Control Function). The service layer network element is used to process a service called by a user or a session, such as a Session Initial Protocol Application Server (SIP AS). Traditional switched network elements are used for traditional circuit switching. The access layer network element, the control layer network element, the service layer network element, and the traditional switching network element are collectively referred to as a TNE (Telecom Network Element). The Offline Charging Server (FCS) is an important functional entity in the offline charging system. The specific functions are described in conjunction with Figure 2. The Online Charging Server (OCS) is an important functional entity in the online charging system. The specific functions are described in conjunction with Figure 3. The billing domain (BD) entity is mainly used for billing processing according to the CDR (Charging Data Record), and is also used for billing related processing, that is, settlement, business analysis, and statistical processing according to the CDR.
图2为3GPP网络中的离线计费系统的逻辑组成示意图。如图2所示,离线计费系统在逻辑上包括计费触发功能(CTF,Charging Trigger Function)、 FCS和BD。CTF内嵌在各TNE中,主要用于根据监测到的网络资源的使用情况,进行计费信息的收集,并发送计费请求(ACR,Accounting Request)。FCS在逻辑上包括计费数据功能(CDF,Charging Data Function)和计费网关功能(CGF,Charging Gateway Function)。CDF主要用于接收来自CTF的ACR,构造并发送CDR。CGF主要用于接收、存储和管理来自CDF的CDR,并向BD发送CDR(具体实现上,向BD发送携带有一个或一个以上CDR的CDR文件)。2 is a schematic diagram showing the logical composition of an offline charging system in a 3GPP network. As shown in FIG. 2, the offline charging system logically includes a Charging Trigger Function (CTF), FCS and BD. The CTF is embedded in each TNE, and is mainly used for collecting charging information according to the usage of the monitored network resources, and sending an accounting request (ACR, Accounting Request). The FCS logically includes a Charging Data Function (CDF) and a Charging Gateway Function (CGF). The CDF is mainly used to receive the ACR from the CTF, construct and transmit the CDR. The CGF is mainly used to receive, store, and manage CDRs from the CDF, and send CDRs to the BD (in particular, the CDR files carrying one or more CDRs are sent to the BD).
目前,离线计费系统中的离线计费流程包括:内嵌有CTF的TNE根据搜集到的计费信息向FCS发送ACR;FCS根据获得的ACR构造CDR,并向BD发送CDR;BD根据获得的CDR,通过查找用户资料数据库确定出该CDR对应的用户为离线用户,并进行计费相关处理即计费、结算、经营分析和统计处理。At present, the offline charging process in the offline charging system includes: the TNE embedded with the CTF sends an ACR to the FCS according to the collected charging information; the FCS constructs the CDR according to the obtained ACR, and sends the CDR to the BD; The CDR determines that the user corresponding to the CDR is an offline user by searching the user profile database, and performs charging related processing, that is, charging, settlement, business analysis, and statistical processing.
图3为3GPP网络中的在线计费系统的逻辑组成示意图。如图3所示,包括:CTF、OCS、FCS和BD。CTF同离线计费系统中的CTF功能相同。OCS在逻辑上包括在线计费功能(OCF,Online Charging Function)、批价功能(RF,Rating Function)和账户管理功能(ABMF,Account Balance Management Function)。OCF主要用于完成用户在线计费的主要控制和处理流程。RF主要用于根据用户使用的不同业务等完成批价功能。ABMF主要用于完成用户的账户余额管理功能。3 is a schematic diagram showing the logical composition of an online charging system in a 3GPP network. As shown in FIG. 3, it includes: CTF, OCS, FCS, and BD. The CTF has the same function as the CTF in the offline charging system. The OCS logically includes an Online Charging Function (OCF), an RF (Rating Function), and an Account Management Management Function (ABMF). OCF is mainly used to complete the main control and processing flow of online charging for users. RF is mainly used to complete the pricing function according to different services used by users. ABMF is mainly used to complete the user's account balance management function.
目前,在线计费系统中的在线计费流程大致包括:预付费用户请求电信业务时,TNE向OCS发送计费初始请求(CCR Initial,Charging Credit Request Initial);OCS中的OCF调用RF完成用户的批价;OCS中的ABMF根据批价的结果确定是否对预付费用户预授权;如果预付费用户的账户余额充足,OCS中的OCF向TNE返回用于指示预授权成功的在线计费响应(CCA,Charging Credit Answer),以通知预付费用户获得预授权;TNE根据获得的CCA,为预付费用户建立对应的会话并分配资源,预付费用户开始使用请求的电信业务,同时TNE向FCS发送用于指示会话开始的ACR;FCS根据获得的ACR,建立该ACR对应的CDR并设置该CDR中的信息,如设置该CDR中的会话开始时间为获得ACR的时间;TNE确定出会话结束时,向FCS发 送用于指示会话结束的ACR;FCS根据获得的ACR,设置该ACR对应的CDR中的信息,如设置该CDR中的会话结束时间为获得ACR的时间,向BD发送该CDR,并删除该CDR;BD根据获得的CDR,通过查找用户资料数据库确定出该CDR对应的用户为预付费用户,并进行结算相关处理。At present, the online charging process in the online charging system generally includes: when the prepaid user requests the telecommunication service, the TNE sends an initial charging request (CCR Initial, Charging Credit Request Initial) to the OCS; the OCF in the OCS calls the RF to complete the user's The AMF in the OCS determines whether to pre-authorize the prepaid user according to the result of the rating; if the prepaid user's account balance is sufficient, the OCF in the OCS returns an online charging response (CCA) indicating the successful pre-authorization to the TNE. , Charging Credit Answer), to notify the prepaid user to obtain the pre-authorization; the TNE establishes a corresponding session for the prepaid user and allocates resources according to the obtained CCA, the prepaid user starts to use the requested telecommunication service, and the TNE sends the TNS to the FCS for The ACR indicating the start of the session; the FCS establishes the CDR corresponding to the ACR according to the obtained ACR, and sets the information in the CDR, such as setting the session start time in the CDR as the time for obtaining the ACR; and determining the end of the session to the FCS by the TNE hair The ACR is sent to indicate the end of the session; the FCS sets the information in the CDR corresponding to the ACR according to the obtained ACR, such as setting the session end time in the CDR to the time of obtaining the ACR, sending the CDR to the BD, and deleting the CDR. According to the obtained CDR, the BD determines that the user corresponding to the CDR is a prepaid user by searching the user profile database, and performs settlement related processing.
预付费用户开始使用请求的电信业务之后,TNE检测到与OCS断链或者OCS出现异常(本文中,统称为OCS异常)时,在线计费流程大致还包括:TNE向FCS发送用于指示OCS异常的ACR;FCS根据获得的ACR,设置该ACR对应的CDR中的OCS异常标识为异常;TNE确定出会话结束时,向FCS发送用于指示会话结束的ACR;FCS根据获得的ACR,设置该ACR对应的CDR,向BD发送该CDR,并删除该CDR;BD根据获得的CDR,通过查找用户资料数据库确定出该CDR对应的用户为预付费用户,通过该CDR中的OCS异常标识确定在该CDR对应的会话持续时间中是否出现过OCS异常,如果确定结果是出现过,通过查找历史CDR数据库计算用户的已被扣除的费用和未被扣除的费用,根据计算出的未被扣除的费用进行计费相关处理,根据计算出的已被扣除的费用进行结算相关处理。After the prepaid user starts to use the requested telecommunication service, when the TNE detects an abnormality with the OCS or the OCS (in this case, collectively referred to as an OCS abnormality), the online charging process generally includes: the TNE sends an indication to the FCS to indicate an OCS abnormality. According to the obtained ACR, the OCS abnormality identifier in the CDR corresponding to the ACR is set to be abnormal; when the TNE determines that the session ends, the ACR is sent to the FCS to indicate the end of the session; the FCS sets the ACR according to the obtained ACR. Corresponding CDR, the CDR is sent to the BD, and the CDR is deleted. The BD determines, according to the obtained CDR, that the user corresponding to the CDR is a prepaid user, and determines the CDR in the CDR by using the OCS abnormal identifier in the CDR. Whether the OCS exception has occurred in the corresponding session duration. If the result of the determination is over, the user's deducted fee and the undeducted fee are calculated by searching the historical CDR database, and the calculated undeducted fee is calculated. The fee-related processing performs settlement-related processing based on the calculated deducted fee.
当预付费用户在使用电信业务过程中出现OCS异常时,BD为了计算用户的已被扣除的费用和未被扣除的费用,需要查找历史CDR数据库。实际中,由于历史CDR数据库中保存大量信息,查找历史CDR数据通常费时费力,一次查找历史CDR数据库的时间为秒级时间如5秒钟。这样,当OCS出现异常时,BD就需要对大量如几万甚至更多个预付费用户的CDR查找历史CDR数据库,较大地增加了BD对于预付费用户的CDR的处理复杂度,明显降低了BD对CDR的处理效率,从而影响了用户体验。When an OCS exception occurs in the process of using a telecommunication service by a prepaid subscriber, the BD needs to look up the historical CDR database in order to calculate the deducted fee and the undeducted fee of the user. In practice, because a large amount of information is stored in the historical CDR database, it is usually time-consuming and laborious to find historical CDR data, and the time for searching the historical CDR database once is a second time, such as 5 seconds. In this way, when the OCS is abnormal, the BD needs to search the historical CDR database for a large number of CDRs such as tens of thousands or even more prepaid users, which greatly increases the processing complexity of the BD for the CDR of the prepaid user, and significantly reduces the BD. The processing efficiency of the CDR affects the user experience.
发明内容Summary of the invention
为了解决上述技术问题,本发明提供一种实现计费的方法、TNE、FCS、BD实体和系统,能够当预付费用户在使用电信业务过程中出现OCS异常时有效地提高BD对预付费用户的CDR的处理效率,从而能够提高用户体验。In order to solve the above technical problem, the present invention provides a method for implementing charging, a TNE, an FCS, a BD entity, and a system, which can effectively improve a BD for a prepaid user when an OCS abnormality occurs in a process of using a telecommunication service by a prepaid user. The processing efficiency of the CDR can improve the user experience.
为实现上述目的,采用如下技术方案: In order to achieve the above objectives, the following technical solutions are adopted:
一种实现计费的方法,包括:A method for implementing billing, comprising:
电信网元TNE针对每个获得预授权的预付费用户的会话:检测到在线计费服务器OCS异常时,向离线计费服务器FCS发送用于指示OCS异常的第一计费请求ACR;以及,检测到所述OCS异常恢复时,向所述FCS发送用于指示所述OCS异常恢复的第二ACR;The telecommunication network element TNE is configured for each pre-authorized prepaid user session: when detecting the online charging server OCS abnormality, sending a first charging request ACR for indicating an OCS abnormality to the offline charging server FCS; and detecting Sending, to the FCS, a second ACR for indicating the abnormal recovery of the OCS when the OCS is abnormally restored;
所述FCS根据接收到的ACR,设置对应的计费话单CDR中的异常信息;The FCS sets abnormal information in the corresponding charging bill CDR according to the received ACR;
计费域BD实体根据接收到的来自所述FCS的所述CDR,计算所述OCS异常持续时间,并根据计算出的OCS异常持续时间进行计费相关处理。The charging domain BD entity calculates the OCS abnormal duration according to the received CDR from the FCS, and performs charging related processing according to the calculated OCS abnormal duration.
可选地,所述异常信息包括所述OCS异常开始时间和所述OCS异常恢复时间;所述FCS根据接收到的ACR,设置对应的CDR中的异常信息包括:Optionally, the abnormality information includes the OCS abnormal start time and the OCS abnormal recovery time; and the FCS sets the abnormal information in the corresponding CDR according to the received ACR, including:
所述FCS当接收到所述第一ACR时,设置所述第一ACR对应的CDR中的OCS异常开始时间为接收到所述第一ACR的时间;When the FCS receives the first ACR, setting an OCS abnormal start time in the CDR corresponding to the first ACR to a time when the first ACR is received;
所述FCS当接收到所述第二ACR时,设置所述第二ACR对应的CDR中的OCS异常恢复时间为接收到所述第二ACR的时间。When the FCS receives the second ACR, setting an OCS abnormal recovery time in the CDR corresponding to the second ACR is a time when the second ACR is received.
可选地,所述异常信息还包括OCS异常标识;所述设置所述CDR中的OCS异常开始时间为接收到所述第一ACR的时间之后还包括:设置所述CDR中的OCS异常标识为异常;Optionally, the abnormality information further includes an OCS abnormality identifier; the setting an OCS abnormality start time in the CDR to be the time after receiving the first ACR further includes: setting an OCS abnormality identifier in the CDR to abnormal;
所述BD实体计算OCS异常持续时间之前还包括:确定所述CDR是否对应预付费用户,如果确定所述CDR对应预付费用户,则确定所述CDR中的OCS异常标识是否为异常;如果确定OCS异常标识为异常,则执行所述计算OCS异常持续时间的步骤。Before the BD entity calculates the OCS abnormality duration, the method further includes: determining whether the CDR corresponds to a prepaid user, and determining whether the CDR corresponding to the prepaid user determines whether the OCS abnormality identifier in the CDR is abnormal; if determining the OCS If the abnormality is abnormal, the step of calculating the OCS abnormal duration is performed.
可选地,所述CDR中还包括会话开始时间和会话结束时间;Optionally, the CDR further includes a session start time and a session end time;
所述进行计费相关处理之后还包括:After the performing the charging related processing, the method further includes:
所述BD实体将所述CDR中的会话结束时间减去所述CDR中的会话开始时间,所得的差值为所述CDR对应的会话的持续时间;将得到的CDR对应的会话的持续时间减去所述OCS异常持续时间,所得的差值为所述OCS正常持续时间;根据计算出的所述OCS正常持续时间进行结算相关处理。The BD entity subtracts the session start time in the CDR from the session start time in the CDR, and the obtained difference is the duration of the session corresponding to the CDR; and reduces the duration of the session corresponding to the obtained CDR. Going to the OCS abnormal duration, the obtained difference is the normal duration of the OCS; and the settlement related processing is performed according to the calculated normal duration of the OCS.
可选地,所述计算OCS异常持续时间包括:将所述OCS异常恢复时间 减去所述OCS异常开始时间,所得的差值为所述OCS异常持续时间。Optionally, the calculating the OCS abnormal duration includes: recovering the OCS abnormality time The OCS abnormal start time is subtracted, and the obtained difference is the OCS abnormal duration.
可选地,所述的方法还包括:Optionally, the method further includes:
所述TNE检测到所述会话获得预授权时,向所述FCS发送用于指示会话开始的第三ACR;When the TNE detects that the session is pre-authorized, sends a third ACR indicating the start of the session to the FCS;
所述TNE检测到所述会话结束时,向所述FCS发送用于指示会话结束的第四ACR。When the TNE detects that the session ends, the fourth ACR indicating the end of the session is sent to the FCS.
可选地,所述异常信息包括OCS异常标识、会话开始时间和会话结束时间;所述FCS根据接收到的ACR,设置对应的CDR中的异常信息包括:Optionally, the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time. The FCS sets the abnormal information in the corresponding CDR according to the received ACR, including:
所述FCS当接收到所述第三ACR时,设置所述第三ACR对应的第一CDR中的会话开始时间为接收到所述第三ACR的时间,设置第一CDR中的所述OCS异常标识为正常;When the FCS receives the third ACR, setting a session start time in the first CDR corresponding to the third ACR to a time when the third ACR is received, and setting the OCS abnormality in the first CDR The logo is normal;
所述FCS当接收到所述第一ACR时,设置所述第一ACR对应的第一CDR中的会话结束时间为接收到所述第一ACR的时间,设置所述第一ACR对应的第二CDR中的会话开始时间为接收到所述第一ACR的时间,设置第二CDR中的所述OCS异常标识为异常,发送所述第一CDR;When the FCS receives the first ACR, setting a session end time in the first CDR corresponding to the first ACR to a time when the first ACR is received, and setting a second corresponding to the first ACR The session start time in the CDR is the time when the first ACR is received, and the OCS abnormality identifier in the second CDR is set to be abnormal, and the first CDR is sent;
所述FCS当接收到所述第二ACR时,设置所述第二ACR对应的第二CDR中的会话结束时间为接收到所述第二ACR的时间,设置所述第二ACR对应的第三CDR中的会话开始时间为接收到所述第二ACR的时间,设置第三CDR中的所述OCS异常标识为正常,发送所述第二CDR;When the FCS receives the second ACR, setting a session end time in the second CDR corresponding to the second ACR to a time when the second ACR is received, and setting a third corresponding to the second ACR The session start time in the CDR is the time when the second ACR is received, and the OCS abnormality identifier in the third CDR is set to be normal, and the second CDR is sent;
当接收到所述第四ACR时,设置所述第四ACR对应的第三CDR中的会话结束时间为接收到所述第四ACR的时间,发送所述第三CDR。And when the fourth ACR is received, setting a session end time in the third CDR corresponding to the fourth ACR to a time when the fourth ACR is received, and sending the third CDR.
可选地,所述计算OCS异常持续时间之前还包括:Optionally, before the calculating the OCS abnormal duration, the method further includes:
所述BD实体确定所述CDR是否对应预付费用户,如果确定所述CDR对应预付费用户,则确定所述CDR中的OCS异常标识是否为异常;如果确定OCS异常标识为异常,执行所述计算OCS异常持续时间的步骤。Determining, by the BD entity, whether the CDR corresponds to a prepaid user, if it is determined that the CDR corresponds to a prepaid user, determining whether the OCS abnormality identifier in the CDR is abnormal; if determining that the OCS abnormality identifier is abnormal, performing the calculation The step of OCS abnormal duration.
可选地,所述计算OCS异常持续时间包括:Optionally, the calculating the OCS abnormal duration includes:
将所述第二CDR中的所述会话结束时间减去所述会话开始时间,所得的差值为所述OCS异常持续时间。 The session end time in the second CDR is subtracted from the session start time, and the resulting difference is the OCS abnormal duration.
可选地,所述TNE向FCS发送ACR之前还包括:所述TNE设置所述ACR中的用户标识为预付费用户;Optionally, before the TNE sends the ACR to the FCS, the method further includes: the TNE setting a user identifier in the ACR as a prepaid user;
所述FCS向所述BD发送所述CDR之前还包括:所述FCS设置所述CDR中的用户标识为所述CDR对应的所述ACR中的用户标识;Before the FCS sends the CDR to the BD, the method further includes: the FCS setting a user identifier in the CDR as a user identifier in the ACR corresponding to the CDR;
所述BD实体确定所述CDR是否对应预付费用户包括:根据所述CDR中的用户标识确定所述CDR是否对应预付费用户。Whether the BD entity determines whether the CDR corresponds to a prepaid user comprises: determining, according to a user identifier in the CDR, whether the CDR corresponds to a prepaid user.
一种实现计费的方法,应用于TNE,包括:A method for implementing charging, applied to TNE, includes:
针对每个获得预授权的预付费用户的会话:当检测到OCS异常时,向FCS发送用于指示OCS异常的第一ACR;当检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR。For each pre-authorized pre-paid user's session: when an OCS abnormality is detected, a first ACR indicating an OCS abnormality is sent to the FCS; when an OCS abnormal recovery is detected, an FCS is sent to indicate an abnormal recovery of the OCS The second ACR.
可选地,所述方法还包括:Optionally, the method further includes:
当检测到会话获得预授权时,向FCS发送用于指示会话开始的第三ACR;当检测到会话结束时,向FCS发送用于指示会话结束的第四ACR。When it is detected that the session is pre-authorized, a third ACR for instructing the start of the session is sent to the FCS; when the end of the session is detected, a fourth ACR indicating the end of the session is sent to the FCS.
可选地,所述方法还包括:Optionally, the method further includes:
将要发送的所述ACR中的用户标识设置为预付费用户。The user ID in the ACR to be sent is set as a prepaid user.
一种实现计费的方法,应用于FCS,包括:A method for implementing billing, applied to FCS, including:
接收ACR;根据接收到的ACR,设置对应的CDR中的异常信息。Receiving an ACR; setting an exception information in the corresponding CDR according to the received ACR.
可选地,根据接收到的ACR,设置对应的CDR中的异常信息包括:Optionally, setting the abnormal information in the corresponding CDR according to the received ACR includes:
当接收到来自TNE的第一ACR时,设置第一ACR对应的CDR中的OCS异常开始时间为接收到第一ACR的时间;When receiving the first ACR from the TNE, setting an OCS abnormal start time in the CDR corresponding to the first ACR is a time when the first ACR is received;
当接收到来自TNE的第二ACR时,设置第二ACR对应的CDR中的OCS异常恢复时间为接收到第二ACR的时间。When receiving the second ACR from the TNE, setting the OCS abnormal recovery time in the CDR corresponding to the second ACR is the time when the second ACR is received.
可选地,所述异常信息还包括OCS异常标识,所述方法还包括:当接收到第一ACR时,设置CDR中的OCS异常标识为异常。Optionally, the abnormality information further includes an OCS abnormality identifier, and the method further includes: when the first ACR is received, setting an OCS abnormality identifier in the CDR to be abnormal.
可选地,可选地,根据接收到的ACR,设置对应的CDR中的异常信息 包括:Optionally, optionally, setting abnormal information in the corresponding CDR according to the received ACR. include:
当接收到来自TNE的第三ACR时,设置第三ACR对应的第一CDR中的会话开始时间为接收到第三ACR的时间,设置第一CDR中的OCS异常标识为正常;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR;When the third ACR from the TNE is received, the session start time in the first CDR corresponding to the third ACR is set to be the time when the third ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal; The ACR is an ACR sent when the TNE detects that the session is pre-authorized;
当接收到来自TNE的第一ACR时,设置第一ACR对应的第一CDR中的会话结束时间为接收到第一ACR的时间,设置第一ACR对应的第二CDR中的会话开始时间为接收到第一ACR的时间,设置第二CDR中的OCS异常标识为异常,发送第一CDR;When the first ACR from the TNE is received, the session end time in the first CDR corresponding to the first ACR is set to the time when the first ACR is received, and the session start time in the second CDR corresponding to the first ACR is set to be received. At the time of the first ACR, setting the OCS abnormality identifier in the second CDR to be abnormal, and transmitting the first CDR;
当接收到来自TNE的第二ACR时,设置第二ACR对应的第二CDR中的会话结束时间为接收到第二ACR的时间,设置第二ACR对应的第三CDR中的会话开始时间为接收到第二ACR的时间,设置第三CDR中的OCS异常标识为正常,发送第二CDR;When receiving the second ACR from the TNE, setting the session end time in the second CDR corresponding to the second ACR to the time when the second ACR is received, and setting the session start time in the third CDR corresponding to the second ACR as the receiving At the time of the second ACR, setting the OCS abnormality identifier in the third CDR to be normal, and transmitting the second CDR;
当接收到来自TNE的第四ACR时,设置第四ACR对应的第三CDR中的会话结束时间为接收到第四ACR的时间,发送第三CDR;所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。When the fourth ACR from the TNE is received, the session end time in the third CDR corresponding to the fourth ACR is set to be the time when the fourth ACR is received, and the third CDR is sent; the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
可选地,所述方法还包括:将要发送的CDR中的用户标识设置为该CDR对应的ACR中的用户标识。Optionally, the method further includes: setting a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
一种实现计费的方法,包括:A method for implementing billing, comprising:
根据接收到的来自离线计费服务器FCS的计费话单CDR,计算在线计费服务器OCS异常持续时间;所述CDR中包括所述FCS根据电信网元TNE所发送的计费请求ACR而设置的异常信息;所述ACR包括检测到所述OCS异常时发送的第一ACR和检测到所述OCS异常恢复时发送的第二ACR;Calculating an online charging server OCS abnormal duration according to the received charging bill CDR from the offline charging server FCS; the CDR includes the FCS set according to the charging request ACR sent by the telecommunication network element TNE Abnormal information; the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
根据所述OCS异常持续时间进行计费相关处理。The charging related processing is performed according to the OCS abnormal duration.
可选地,计算在线计费服务器OCS异常持续时间包括:Optionally, calculating an online charging server OCS abnormal duration includes:
将所述OCS异常恢复时间减去所述OCS异常开始时间,所得的差值为所述OCS异常持续时间;所述OCS异常开始时间为所述FCS接收到所述第 一ACR的时间;所述OCS异常恢复时间为所述FCS接收到所述第二ACR的时间。Substituting the OCS abnormal recovery time by the OCS abnormal start time, and the obtained difference is the OCS abnormal duration; the OCS abnormal start time is the FCS receiving the first The time of an ACR; the OCS abnormal recovery time is the time when the FCS receives the second ACR.
可选地,计算在线计费服务器OCS异常持续时间包括:Optionally, calculating an online charging server OCS abnormal duration includes:
所述OCS异常标识为异常的CDR中的会话结束时间减去会话开始时间,所得的差值为所述OCS异常持续时间;所述OCS异常标识为异常的CDR中,所述会话开始时间为所述FCS接收到所述第一ACR的时间,所述会话结束时间为所述FCS接收到所述第二ACR的时间;所述OCS异常标识不为异常的CDR中,所述会话开始时间为所述FCS接收到第三ACR的时间,所述会话结束时间为所述FCS接收到所述第一ACR的时间,或者,所述会话开始时间为所述FCS接收到所述第二ACR的时间,所述会话结束时间为所述FCS接收到第四ACR的时间;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR,所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。The OCS abnormality is identified as the session end time in the abnormal CDR minus the session start time, and the obtained difference is the OCS abnormal duration; in the CDR where the OCS abnormality is abnormal, the session start time is The time when the FCS receives the first ACR, the session end time is the time when the FCS receives the second ACR; the OCS abnormality identifier is not an abnormal CDR, and the session start time is The time when the FCS receives the third ACR, the session end time is the time when the FCS receives the first ACR, or the session start time is the time when the FCS receives the second ACR, The session end time is a time when the FCS receives the fourth ACR; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized, and the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
一种实现计费的电信网元TNE,包括:A telecommunication network element TNE for implementing charging, comprising:
第一发送单元,设置成针对每个获得预授权的预付费用户的会话:当检测到在线计费服务器OCS异常时,向离线计费服务器FCS发送用于指示OCS异常的第一计费请求ACR;The first sending unit is configured to send a pre-authorized prepaid user's session for each: when detecting the online charging server OCS abnormality, sending a first charging request ACR for indicating an OCS abnormality to the offline charging server FCS ;
以及,as well as,
第二发送单元,设置成针对每个获得预授权的预付费用户的会话:当检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR。The second transmitting unit is configured to set a session for each pre-authorized pre-paid user: when an OCS abnormal recovery is detected, a second ACR for indicating an OCS abnormal recovery is sent to the FCS.
可选地,所述的TNE还包括:Optionally, the TNE further includes:
第三发送单元,设置成当检测到所述会话获得预授权时,向所述FCS发送用于指示会话开始的第三ACR;a third sending unit, configured to send a third ACR for indicating a start of the session to the FCS when detecting that the session is pre-authorized;
第四发送单元,设置成当检测到所述会话结束时,向所述FCS发送用于指示会话结束的第四ACR。The fourth transmitting unit is configured to, when the end of the session is detected, send a fourth ACR indicating the end of the session to the FCS.
可选地,所述的TNE还包括:Optionally, the TNE further includes:
用户标识设置单元,设置成将要发送的所述ACR中的用户标识设置为预 付费用户。a user identification setting unit configured to set a user identifier in the ACR to be sent as a pre- Paying users.
一种实现计费的离线计费服务器FCS,包括:An offline charging server FCS that implements charging, including:
接收单元,设置成接收来自电信网元TNE的计费请求ACR;所述ACR包括检测到所述OCS异常时发送的第一ACR和检测到所述OCS异常恢复时发送的第二ACR;a receiving unit, configured to receive a charging request ACR from the telecommunication network element TNE; the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
异常信息设置单元,设置成根据接收到的ACR设置对应的计费话单CDR中的异常信息。The abnormality information setting unit is configured to set abnormality information in the CDR of the charging bill corresponding to the received ACR.
可选地,所述异常信息包括OCS异常开始时间和OCS异常恢复时间;所述异常信息设置单元根据接收到的ACR设置对应的CDR中的异常信息是指:Optionally, the abnormality information includes an OCS abnormality start time and an OCS abnormality recovery time; the exception information setting unit according to the received ACR setting corresponding to the abnormal information in the CDR is:
所述异常信息设置单元当接收到来自所述TNE的所述第一ACR时,设置所述第一ACR对应的CDR中的OCS异常开始时间为接收到所述第一ACR的时间;当接收到来自所述TNE的所述第二ACR时,设置所述第二ACR对应的CDR中的OCS异常恢复时间为接收到所述第二ACR的时间。Setting the abnormality information setting unit, when receiving the first ACR from the TNE, setting an OCS abnormal start time in the CDR corresponding to the first ACR to a time when the first ACR is received; when receiving When the second ACR is from the TNE, setting an OCS abnormal recovery time in the CDR corresponding to the second ACR is a time when the second ACR is received.
可选地,所述异常信息还包括OCS异常标识;所述异常信息设置单元还设置成:当接收到所述第一ACR时,设置所述CDR中的OCS异常标识为异常。Optionally, the abnormality information further includes an OCS abnormality identifier; the abnormality information setting unit is further configured to: when the first ACR is received, set an OCS abnormality identifier in the CDR to be abnormal.
可选地,所述异常信息包括OCS异常标识、会话开始时间和会话结束时间;所述异常信息设置单元根据接收到的ACR设置对应的CDR中的异常信息是指:Optionally, the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time. The exception information setting unit according to the received ACR setting corresponds to the abnormal information in the CDR, where:
所述异常信息设置单元当接收到来自TNE的第三ACR时,设置所述第三ACR对应的第一CDR中的会话开始时间为接收到所述第三ACR的时间,设置第一CDR中的OCS异常标识为正常;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR;The abnormality information setting unit, when receiving the third ACR from the TNE, setting a session start time in the first CDR corresponding to the third ACR to a time when the third ACR is received, and setting the first CDR The OCS abnormality identifier is normal; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized;
所述异常信息设置单元当接收到来自TNE的第一ACR时,设置所述第一ACR对应的第一CDR中的会话结束时间为接收到所述第一ACR的时间,设置所述第一ACR对应的第二CDR中的会话开始时间为接收到所述第一 ACR的时间,设置第二CDR中的OCS异常标识为异常,发送第一CDR;The abnormality information setting unit sets the session end time in the first CDR corresponding to the first ACR to the time when the first ACR is received, and sets the first ACR when receiving the first ACR from the TNE. The session start time in the corresponding second CDR is the first time received At the time of the ACR, setting the OCS abnormality identifier in the second CDR to be abnormal, and sending the first CDR;
当接收到来自TNE的第二ACR时,设置所述第二ACR对应的第二CDR中的会话结束时间为接收到所述第二ACR的时间,设置所述第二ACR对应的第三CDR中的会话开始时间为接收到所述第二ACR的时间,设置第一CDR中的OCS异常标识为正常,发送第二CDR;When receiving the second ACR from the TNE, setting a session end time in the second CDR corresponding to the second ACR to a time when the second ACR is received, and setting a third CDR corresponding to the second ACR The session start time is the time when the second ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal, and the second CDR is sent;
当接收到来自TNE的第四ACR时,设置所述第四ACR对应的第三CDR中的会话结束时间为接收到所述第四ACR的时间,发送第三CDR;所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。When receiving the fourth ACR from the TNE, setting a session end time in the third CDR corresponding to the fourth ACR to receive the fourth ACR, and transmitting a third CDR; the fourth ACR is The TCR is sent to the FCS when the TNE detects the end of the session.
可选地,所述异常信息设置单元还设置成:将要发送的CDR中的用户标识设置为该CDR对应的ACR中的用户标识。Optionally, the abnormality information setting unit is further configured to: set a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
一种实现计费的计费域BD实体,包括:A billing domain BD entity that implements billing, including:
计算单元,设置成根据接收到的来自离线计费服务器FCS的计费话单CDR,计算在线计费服务器OCS异常持续时间;The calculating unit is configured to calculate an abnormal duration of the online charging server OCS according to the received charging bill CDR from the offline charging server FCS;
处理单元,设置成根据来自计算单元的OCS异常持续时间进行计费相关处理。The processing unit is configured to perform charging related processing according to an OCS abnormal duration from the computing unit.
可选地,所述的BD实体还包括:第一确定单元,设置成确定所述CDR是否对应预付费用户,当所述CDR对应预付费用户时,确定所述CDR中的OCS异常标识是否为异常;Optionally, the BD entity further includes: a first determining unit, configured to determine whether the CDR corresponds to a prepaid user, and when the CDR corresponds to a prepaid user, determining whether the OCS abnormal identifier in the CDR is abnormal;
所述计算单元设置成当所述第一确定单元确定OCS异常标识为异常时,执行所述根据接收到的来自FCS的CDR,计算OCS异常持续时间的操作。The calculating unit is configured to perform an operation of calculating an OCS abnormal duration according to the received CDRs from the FCS when the first determining unit determines that the OCS abnormality identifier is abnormal.
可选地,所述CDR中还包括会话开始时间和会话结束时间;Optionally, the CDR further includes a session start time and a session end time;
所述计算单元还设置成:将所述CDR中的会话结束时间减去所述CDR中的会话的开始时间,所得的差值为所述CDR对应的会话的持续时间;将得到的CDR对应的会话的持续时间减去所述OCS异常持续时间,所得的差值为所述OCS正常持续时间;The calculating unit is further configured to: subtract a session end time in the CDR from a start time of a session in the CDR, and obtain a difference value as a duration of a session corresponding to the CDR; The duration of the session minus the OCS abnormal duration, and the resulting difference is the normal duration of the OCS;
所述处理单元还设置成:根据来自所述计算单元的OCS正常持续时间进行结算相关处理。 The processing unit is further configured to perform settlement related processing based on an OCS normal duration from the computing unit.
可选地,所述计算单元具体根据接收到的来自FCS的CDR,计算OCS异常持续时间是指:将所述CDR中的OCS异常恢复时间减去所述CDR中的OCS异常开始时间,所得的差值为所述OCS异常持续时间。Optionally, the calculating unit, according to the received CDRs from the FCS, calculating an OCS abnormal duration refers to: subtracting an OCS abnormal recovery time in the CDR from an OCS abnormal start time in the CDR, and the obtained The difference is the OCS abnormal duration.
可选地,所述计算单元根据接收到的来自FCS的CDR,计算OCS异常持续时间是指:Optionally, the calculating unit calculates the OCS abnormal duration according to the received CDR from the FCS, where:
当来自第一确定单元的确定结果为异常时,将所述CDR中的会话结束时间减去所述会话开始时间,所得的差值为所述OCS异常持续时间。When the determination result from the first determining unit is abnormal, the session end time in the CDR is subtracted from the session start time, and the obtained difference is the OCS abnormal duration.
可选地,所述第一确定单元确定所述CDR是否对应预付费用户是指:Optionally, the determining, by the first determining unit, whether the CDR corresponds to a prepaid user refers to:
所述第一确定单元根据所述CDR中的用户标识确定所述CDR是否对应预付费用户;所述CDR中的用户标识设置成和对应的ACR中的用户标识相同;对于预付费用户,所述ACR中的用户标识被设置为预付费用户。Determining, by the first determining unit, whether the CDR corresponds to a prepaid user according to the user identifier in the CDR; the user identifier in the CDR is set to be the same as the user identifier in the corresponding ACR; and for the prepaid user, the The user ID in the ACR is set as a prepaid user.
一种实现计费的系统,包括:上述的TNE、FCS、和BD实体。A system for implementing billing includes: the TNE, FCS, and BD entities described above.
与相关技术相比,本发明实施例的技术方案包括:TNE针对每个获得预授权的预付费用户的会话:检测到OCS异常时,向FCS发送用于指示OCS异常的第一ACR;以及,检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR;FCS根据接收到的ACR,设置对应的CDR中的异常信息;BD根据接收到的来自FCS的CDR,计算OCS异常持续时间,并根据计算出的OCS异常持续时间进行计费相关处理。通过本发明实施例的技术方案,当预付费用户在使用电信业务过程中出现OCS异常时,实现了BD实体能根据接收到的CDR简单地计算出的OCS异常持续时间,避免了通过查询历史CDR数据计算OCS异常持续时间,有效提高了BD实体对在线用户的CDR的处理效率,从而提高了用户体验。Compared with the related art, the technical solution of the embodiment of the present invention includes: a TNE for each pre-authorized pre-paid user session: when detecting an OCS abnormality, sending a first ACR for indicating an OCS abnormality to the FCS; When the OCS abnormal recovery is detected, the second ACR for indicating the abnormal recovery of the OCS is sent to the FCS; the FCS sets the abnormal information in the corresponding CDR according to the received ACR; and the BD calculates the OCS abnormality according to the received CDR from the FCS. Duration, and billing related processing based on the calculated OCS abnormal duration. With the technical solution of the embodiment of the present invention, when the OCS abnormality occurs in the process of using the telecommunication service, the BD entity can calculate the OCS abnormal duration simply calculated according to the received CDR, thereby avoiding the query history CDR. The data calculates the OCS abnormal duration, which effectively improves the processing efficiency of the BD entity to the online user's CDR, thereby improving the user experience.
附图概述BRIEF abstract
图1为3GPP定义的计费系统的组成结构示意图;1 is a schematic structural diagram of a charging system defined by 3GPP;
图2为3GPP网络中的离线计费系统的逻辑组成示意图;2 is a schematic diagram showing the logical composition of an offline charging system in a 3GPP network;
图3为3GPP网络中的在线计费系统的逻辑组成示意图; 3 is a schematic diagram showing the logical composition of an online charging system in a 3GPP network;
图4为本发明实施例3GPP网络中实现计费的方法的流程图;4 is a flowchart of a method for implementing charging in a 3GPP network according to an embodiment of the present invention;
图5为本发明实施例3GPP网络中实现计费的系统的组成结构示意图FIG. 5 is a schematic structural diagram of a system for implementing charging in a 3GPP network according to an embodiment of the present invention;
图6为本发明实施例的TNE的示意图;FIG. 6 is a schematic diagram of a TNE according to an embodiment of the present invention; FIG.
图7为本发明实施例的FCS的示意图;FIG. 7 is a schematic diagram of an FCS according to an embodiment of the present invention; FIG.
图8为本发明实施例的BD实体的示意图。FIG. 8 is a schematic diagram of a BD entity according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图4为本发明实施例3GPP网络中实现计费的方法的流程图,如图4所示,包括:4 is a flowchart of a method for implementing charging in a 3GPP network according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
步骤401:TNE针对每个获得预授权的预付费用户的会话:检测到OCS异常时,向FCS发送用于指示OCS异常的第一ACR;以及,检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR。Step 401: The TNE sends a pre-authorized pre-paid user session: when an OCS abnormality is detected, a first ACR for indicating an OCS abnormality is sent to the FCS; and when the OCS abnormal recovery is detected, the FCS is sent to the FCS for A second ACR indicating an abnormal recovery of the OCS.
本步骤中,TNE检测OCS异常/OCS异常恢复的实现,属于本领域技术人员的惯用技术手段,此处不再赘述。In this step, the TNE detects the implementation of the OCS abnormality/OCS abnormal recovery, which is a common technical means by those skilled in the art, and is not described here.
本步骤强调的是,在检测到OCS异常/OCS异常恢复时,会针对每个获得预授权的预付费用户的会话,向FCS发送用于指示OCS异常/OCS异常恢复的第一ACR/第二ACR。其中,TNE可以利用ACR中的某个信息如用于指示会话开始的信息的两个保留数值来分别指示OCS异常和OCS异常恢复,以实现向FCS发送用于指示OCS异常/OCS异常恢复的ACR。This step emphasizes that when an OCS abnormality/OCS abnormal recovery is detected, a first ACR/second for indicating an OCS abnormality/OCS abnormality recovery is sent to the FCS for each session of the pre-authorized prepaid user. ACR. The TNE may use an information in the ACR, such as two reserved values for indicating the start of the session, to indicate an OCS exception and an OCS abnormality recovery, respectively, to implement sending an ACR for indicating an OCS abnormality/OCS abnormal recovery to the FCS. .
可选地,还可以包括:TNE检测到会话获得预授权时,向FCS发送用于指示会话开始的第三ACR;TNE检测到会话结束时,向FCS发送用于指示会话结束的第四ACR。 Optionally, the method further includes: when the TNE detects that the session is pre-authorized, sending a third ACR for indicating the start of the session to the FCS; and when detecting the end of the session, the TNE sends a fourth ACR for indicating the end of the session to the FCS.
步骤402:FCS根据接收到的ACR,设置对应的CDR中的异常信息。Step 402: The FCS sets abnormal information in the corresponding CDR according to the received ACR.
在本发明第一实施例中,本步骤中的异常信息包括OCS异常开始时间和OCS异常结束时间,步骤402包括:In the first embodiment of the present invention, the abnormality information in this step includes an OCS abnormal start time and an OCS abnormal end time, and step 402 includes:
FCS当接收到第一ACR时,设置CDR中的OCS异常开始时间为接收到第一ACR的时间;当接收到第二ACR时,设置CDR中的OCS异常恢复时间为接收到第二ACR的时间。When receiving the first ACR, the FCS sets the OCS abnormal start time in the CDR to the time when the first ACR is received; when the second ACR is received, sets the OCS abnormal recovery time in the CDR to the time when the second ACR is received. .
在本发明第二实施例中,异常信息包括OCS异常标识、会话开始时间和会话结束时间,步骤402包括:In the second embodiment of the present invention, the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time. Step 402 includes:
FCS当接收到第三ACR时,设置该ACR对应的第一CDR中的会话开始时间为接收到第三ACR的时间,设置第一CDR中的OCS异常标识为正常;当接收到第一ACR时,设置该ACR对应的第一CDR中的会话结束时间为接收到第一ACR的时间,设置该ACR对应的第二CDR中的会话开始时间为接收到第一ACR的时间,设置第二CDR中的OCS异常标识为异常,发送第一CDR;当接收到第二ACR时,设置该ACR对应的第二CDR中的会话结束时间为接收到第二ACR的时间,设置该ACR对应的第三CDR中的会话开始时间为接收到第二ACR的时间,设置第三CDR中的OCS异常标识为正常,发送第二CDR;当接收到第四ACR时,设置该ACR对应的第三CDR中的会话结束时间为接收到第四ACR的时间,发送第三CDR。When receiving the third ACR, the FCS sets the session start time in the first CDR corresponding to the ACR to the time when the third ACR is received, and sets the OCS abnormality identifier in the first CDR to be normal; when the first ACR is received. Setting the session end time in the first CDR corresponding to the ACR to the time when the first ACR is received, setting the session start time in the second CDR corresponding to the ACR to the time of receiving the first ACR, and setting the second CDR. The OCS abnormality identifier is abnormal, and the first CDR is sent; when the second ACR is received, the session end time in the second CDR corresponding to the ACR is set to the time when the second ACR is received, and the third CDR corresponding to the ACR is set. The session start time is the time when the second ACR is received, the OCS abnormality identifier in the third CDR is set to be normal, and the second CDR is sent; when the fourth ACR is received, the session in the third CDR corresponding to the ACR is set. The end time is the time when the fourth ACR is received, and the third CDR is transmitted.
步骤403:BD实体根据接收到的来自FCS的CDR,计算OCS异常持续时间,并根据计算出的OCS异常持续时间进行计费相关处理。Step 403: The BD entity calculates an OCS abnormal duration according to the received CDRs from the FCS, and performs charging related processing according to the calculated OCS abnormal duration.
本步骤中,BD实体是根据CDR中的异常信息计算出OCS异常持续时间,这点和相关技术中BD实体查找历史CDR数据库的做法是不同的;而进行计费相关处理的实现,属于本领域技术人员的惯用技术手段,此处不再赘述。In this step, the BD entity calculates the OCS abnormal duration according to the abnormal information in the CDR, which is different from the BD entity in the related art in searching the historical CDR database; and the implementation of the charging related processing belongs to the field. The technical means of the technicians will not be described here.
在第一实施例中,步骤403中BD实体计算OCS异常持续时间具体包括:In the first embodiment, the calculation of the OCS abnormal duration by the BD entity in step 403 specifically includes:
将OCS异常恢复时间减去OCS异常开始时间,所得的差值为OCS异常持续时间。The OCS abnormal recovery time is subtracted from the OCS abnormal start time, and the obtained difference is the OCS abnormal duration.
可选地,在第一实施例中,CDR中还包括会话开始时间和会话结束时间,步骤403之后还包括: Optionally, in the first embodiment, the CDR further includes a session start time and a session end time, and after step 403, the method further includes:
BD实体根据CDR中的会话开始时间和会话结束时间、及OCS异常持续时间,计算OCS正常持续时间,并根据计算出的OCS正常持续时间进行结算相关处理。The BD entity calculates the normal duration of the OCS according to the session start time and the session end time in the CDR, and the OCS abnormal duration, and performs settlement related processing according to the calculated normal duration of the OCS.
其中,计算OCS正常持续时间包括:将CDR中的会话结束时间减去CDR中的会话的开始时间,所得的差值为CDR对应的会话的持续时间;将得到的CDR对应的会话的持续时间减去OCS异常持续时间,所得的差值为OCS正常持续时间。The calculating the OCS normal duration includes: subtracting the session end time in the CDR from the start time of the session in the CDR, and the obtained difference is the duration of the session corresponding to the CDR; and reducing the duration of the session corresponding to the obtained CDR. Go to the OCS abnormal duration and the resulting difference is the normal duration of the OCS.
可选地,在第一实施例中,异常信息还可以包括OCS异常标识,设置CDR中的OCS异常开始时间为接收到第一ACR的时间之后还包括:设置CDR中的OCS异常标识为异常。Optionally, in the first embodiment, the abnormality information may further include an OCS abnormality identifier, and setting an OCS abnormality start time in the CDR to a time after receiving the first ACR further includes: setting an OCS abnormality identifier in the CDR as an abnormality.
相应地,Correspondingly,
在第一实施例中,BD实体计算OCS异常持续时间之前还可以包括:确定CDR中的OCS异常标识是否为异常;如果确定为异常,计算OCS异常持续时间,并根据计算出的OCS异常持续时间进行计费相关处理;如果确定为正常,计算OCS正常持续时间,并根据计算出的OCS正常持续时间进行结算相关处理。In the first embodiment, before the BD entity calculates the OCS abnormal duration, the method further includes: determining whether the OCS abnormality identifier in the CDR is abnormal; if the abnormality is determined, calculating the OCS abnormal duration, and calculating the OCS abnormal duration according to the calculated duration The charging related processing is performed; if it is determined to be normal, the normal duration of the OCS is calculated, and the settlement related processing is performed according to the calculated normal duration of the OCS.
在第二实施例中,BD实体计算OCS异常持续时间之前还包括:In the second embodiment, before the BD entity calculates the OCS abnormal duration, the method further includes:
BD实体确定CDR中的OCS异常标识是否为异常;如果确定为异常,计算OCS异常持续时间,并根据计算出的OCS异常持续时间进行计费相关处理;如果确定为正常,计算OCS正常持续时间,并根据计算出的OCS正常持续时间进行结算相关处理。其中,The BD entity determines whether the OCS abnormality identifier in the CDR is abnormal; if it is determined to be abnormal, calculates an OCS abnormal duration, and performs charging related processing according to the calculated OCS abnormal duration; if it is determined to be normal, calculates the normal duration of the OCS, The settlement related processing is performed according to the calculated normal duration of the OCS. among them,
BD实体计算OCS异常持续时间包括:将第二CDR中的会话结束时间减去会话开始时间,所得的差值为OCS异常持续时间;计算OCS正常持续时间包括:将CDR(第一、第三CDR)中的会话结束时间减去CDR中会话开始时间,所得的差值为OCS正常持续时间。The calculating the OCS abnormal duration of the BD entity comprises: subtracting the session end time in the second CDR from the session start time, and the obtained difference is an OCS abnormal duration; calculating the normal duration of the OCS includes: the CDR (the first and third CDRs) The session end time in the CDR is subtracted from the session start time in the CDR, and the resulting difference is the normal duration of the OCS.
可选地,Optionally,
BD实体确定CDR中的OCS异常标识是否为异常之前还可以包括:Before the BD entity determines whether the OCS abnormality identifier in the CDR is abnormal, the BD entity may further include:
BD实体确定CDR是否对应预付费用户,如果确定为对应预付费用户, 执行确定CDR中的OCS异常标识是否为异常的步骤。The BD entity determines whether the CDR corresponds to a prepaid subscriber, and if it is determined to correspond to a prepaid subscriber, A step of determining whether the OCS abnormality flag in the CDR is abnormal.
在一种可选方案中,确定CDR是否对应预付费用户可以包括:根据CDR查询用户资料数据库;如果查询结果显示CDR对应的用户为预付费用户,确定CDR对应的用户为预付费用户。In an optional solution, determining whether the CDR corresponds to the prepaid user may include: querying the user profile database according to the CDR; and if the query result indicates that the user corresponding to the CDR is a prepaid user, determining that the user corresponding to the CDR is a prepaid user.
其中,根据CDR查询用户资料数据库的具体实现,属于本领域技术人员的惯用技术手段,此处不再赘述。The specific implementation of the user data database according to the CDR query belongs to the conventional technical means of those skilled in the art, and details are not described herein again.
在另一种可选方案中,In another alternative,
TNE向FCS发送ACR之前还可以包括:TNE设置ACR中的用户标识为预付费用户。Before the TNE sends the ACR to the FCS, the TNE may further include: the TNE sets the user identifier in the ACR as a prepaid user.
相应地,Correspondingly,
FCS向BD实体发送CDR之前,该方法还可以包括:FCS设置CDR中的用户标识为CDR对应的ACR中的用户标识。Before the FCS sends the CDR to the BD entity, the method may further include: the FCS setting the user identifier in the CDR as the user identifier in the ACR corresponding to the CDR.
相应地,Correspondingly,
BD实体确定CDR是否对应预付费用户可以包括:根据CDR中的用户标识确定CDR是否对应预付费用户。Whether the BD entity determines whether the CDR corresponds to the prepaid user may include determining whether the CDR corresponds to the prepaid user according to the user identifier in the CDR.
当BD实体获得预付费用户对应的CDR时,根据CDR中携带的用户标识确定CDR对应的用户为预付费用户或者离线用户,避免了BD实体通过查找用户资料数据库确定CDR对应的用户为预付费用户或者离线用户,进一步地提高了BD实体对于预付费用户或者离线用户的CDR的处理效率。When the BD entity obtains the CDR corresponding to the prepaid user, the user corresponding to the CDR is determined to be a prepaid user or an offline user according to the user identifier carried in the CDR, and the BD entity is prevented from determining the user corresponding to the CDR as a prepaid user by searching the user profile database. Or offline users, further improving the processing efficiency of the BD entity for the CDR of the prepaid user or the offline user.
一种实现计费的方法,应用于TNE,包括:A method for implementing charging, applied to TNE, includes:
针对每个获得预授权的预付费用户的会话:当检测到OCS异常时,向FCS发送用于指示OCS异常的第一ACR;当检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR。For each pre-authorized pre-paid user's session: when an OCS abnormality is detected, a first ACR indicating an OCS abnormality is sent to the FCS; when an OCS abnormal recovery is detected, an FCS is sent to indicate an abnormal recovery of the OCS The second ACR.
可选地,所述方法还包括:Optionally, the method further includes:
当检测到会话获得预授权时,向FCS发送用于指示会话开始的第三ACR;当检测到会话结束时,向FCS发送用于指示会话结束的第四ACR。 When it is detected that the session is pre-authorized, a third ACR for instructing the start of the session is sent to the FCS; when the end of the session is detected, a fourth ACR indicating the end of the session is sent to the FCS.
可选地,所述方法还包括:Optionally, the method further includes:
将要发送的所述ACR中的用户标识设置为预付费用户。The user ID in the ACR to be sent is set as a prepaid user.
一种实现计费的方法,应用于FCS,包括:A method for implementing billing, applied to FCS, including:
接收ACR;根据接收到的ACR,设置对应的CDR中的异常信息。Receiving an ACR; setting an exception information in the corresponding CDR according to the received ACR.
可选地,根据接收到的ACR,设置对应的CDR中的异常信息包括:Optionally, setting the abnormal information in the corresponding CDR according to the received ACR includes:
当接收到来自TNE的第一ACR时,设置第一ACR对应的CDR中的OCS异常开始时间为接收到第一ACR的时间;When receiving the first ACR from the TNE, setting an OCS abnormal start time in the CDR corresponding to the first ACR is a time when the first ACR is received;
当接收到来自TNE的第二ACR时,设置第二ACR对应的CDR中的OCS异常恢复时间为接收到第二ACR的时间。When receiving the second ACR from the TNE, setting the OCS abnormal recovery time in the CDR corresponding to the second ACR is the time when the second ACR is received.
可选地,所述异常信息还包括OCS异常标识,所述方法还包括:当接收到第一ACR时,设置CDR中的OCS异常标识为异常。Optionally, the abnormality information further includes an OCS abnormality identifier, and the method further includes: when the first ACR is received, setting an OCS abnormality identifier in the CDR to be abnormal.
可选地,可选地,根据接收到的ACR,设置对应的CDR中的异常信息包括:Optionally, optionally, according to the received ACR, setting the abnormal information in the corresponding CDR includes:
当接收到来自TNE的第三ACR时,设置第三ACR对应的第一CDR中的会话开始时间为接收到第三ACR的时间,设置第一CDR中的OCS异常标识为正常;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR;When the third ACR from the TNE is received, the session start time in the first CDR corresponding to the third ACR is set to be the time when the third ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal; The ACR is an ACR sent when the TNE detects that the session is pre-authorized;
当接收到来自TNE的第一ACR时,设置第一ACR对应的第一CDR中的会话结束时间为接收到第一ACR的时间,设置第一ACR对应的第二CDR中的会话开始时间为接收到第一ACR的时间,设置第二CDR中的OCS异常标识为异常,发送第一CDR;When the first ACR from the TNE is received, the session end time in the first CDR corresponding to the first ACR is set to the time when the first ACR is received, and the session start time in the second CDR corresponding to the first ACR is set to be received. At the time of the first ACR, setting the OCS abnormality identifier in the second CDR to be abnormal, and transmitting the first CDR;
当接收到来自TNE的第二ACR时,设置第二ACR对应的第二CDR中的会话结束时间为接收到第二ACR的时间,设置第二ACR对应的第三CDR中的会话开始时间为接收到第二ACR的时间,设置第三CDR中的OCS异常标识为正常,发送第二CDR;When receiving the second ACR from the TNE, setting the session end time in the second CDR corresponding to the second ACR to the time when the second ACR is received, and setting the session start time in the third CDR corresponding to the second ACR as the receiving At the time of the second ACR, setting the OCS abnormality identifier in the third CDR to be normal, and transmitting the second CDR;
当接收到来自TNE的第四ACR时,设置第四ACR对应的第三CDR中 的会话结束时间为接收到第四ACR的时间,发送第三CDR;所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。When receiving the fourth ACR from the TNE, setting the third CDR corresponding to the fourth ACR The session end time is the time when the fourth ACR is received, and the third CDR is sent; the fourth ACR is the ACR sent to the FCS when the TNE detects the end of the session.
可选地,所述方法还包括:将要发送的CDR中的用户标识设置为该CDR对应的ACR中的用户标识。Optionally, the method further includes: setting a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
一种实现计费的方法,应用于BD实体,包括:A method for implementing charging, applied to a BD entity, including:
根据接收到的来自离线计费服务器FCS的计费话单CDR,计算在线计费服务器OCS异常持续时间;所述CDR中包括所述FCS根据电信网元TNE所发送的计费请求ACR而设置的异常信息;所述ACR包括检测到所述OCS异常时发送的第一ACR和检测到所述OCS异常恢复时发送的第二ACR;Calculating an online charging server OCS abnormal duration according to the received charging bill CDR from the offline charging server FCS; the CDR includes the FCS set according to the charging request ACR sent by the telecommunication network element TNE Abnormal information; the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
根据所述OCS异常持续时间进行计费相关处理。The charging related processing is performed according to the OCS abnormal duration.
可选地,计算在线计费服务器OCS异常持续时间包括:Optionally, calculating an online charging server OCS abnormal duration includes:
将所述OCS异常恢复时间减去所述OCS异常开始时间,所得的差值为所述OCS异常持续时间;所述OCS异常开始时间为所述FCS接收到所述第一ACR的时间;所述OCS异常恢复时间为所述FCS接收到所述第二ACR的时间。Substituting the OCS abnormal recovery time by the OCS abnormal start time, and the obtained difference is the OCS abnormal duration; the OCS abnormal start time is a time when the FCS receives the first ACR; The OCS abnormal recovery time is the time when the FCS receives the second ACR.
可选地,计算在线计费服务器OCS异常持续时间包括:Optionally, calculating an online charging server OCS abnormal duration includes:
所述OCS异常标识为异常的CDR中的会话结束时间减去会话开始时间,所得的差值为所述OCS异常持续时间;所述OCS异常标识为异常的CDR中,所述会话开始时间为所述FCS接收到所述第一ACR的时间,所述会话结束时间为所述FCS接收到所述第二ACR的时间;所述OCS异常标识不为异常的CDR中,所述会话开始时间为所述FCS接收到第三ACR的时间,所述会话结束时间为所述FCS接收到所述第一ACR的时间,或者,所述会话开始时间为所述FCS接收到所述第二ACR的时间,所述会话结束时间为所述FCS接收到第四ACR的时间;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR,所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。The OCS abnormality is identified as the session end time in the abnormal CDR minus the session start time, and the obtained difference is the OCS abnormal duration; in the CDR where the OCS abnormality is abnormal, the session start time is The time when the FCS receives the first ACR, the session end time is the time when the FCS receives the second ACR; the OCS abnormality identifier is not an abnormal CDR, and the session start time is The time when the FCS receives the third ACR, the session end time is the time when the FCS receives the first ACR, or the session start time is the time when the FCS receives the second ACR, The session end time is a time when the FCS receives the fourth ACR; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized, and the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
图5为本发明实施例3GPP网络中实现计费的系统的组成结构示意图, 如图5所示,该系统包括:TNE、FCS和BD实体,其中,FIG. 5 is a schematic structural diagram of a system for implementing charging in a 3GPP network according to an embodiment of the present invention; As shown in FIG. 5, the system includes: TNE, FCS, and BD entities, where
实现计费的TNE如图6所示,包括:The TNE for billing is shown in Figure 6, which includes:
第一发送单元,设置成针对每个获得预授权的预付费用户的会话:当检测到OCS异常时,向FCS发送用于指示OCS异常的第一ACR;a first sending unit, configured to: for each pre-authorized pre-paid user's session: when an OCS abnormality is detected, sending a first ACR indicating an OCS abnormality to the FCS;
以及,as well as,
第二发送单元,设置成当检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR。The second transmitting unit is configured to send a second ACR for indicating an abnormal recovery of the OCS to the FCS when the OCS abnormal recovery is detected.
可选地,所述TNE还包括:Optionally, the TNE further includes:
第三发送单元,设置成当检测到会话获得预授权时,向FCS发送用于指示会话开始的第三ACR;a third sending unit, configured to send a third ACR for indicating the start of the session to the FCS when the session is pre-authorized is detected;
第四发送单元,设置成当检测到会话结束时,向FCS发送用于指示会话结束的第四ACR。The fourth transmitting unit is configured to send a fourth ACR for indicating the end of the session to the FCS when the end of the session is detected.
可选地,所述TNE还包括:Optionally, the TNE further includes:
用户标识设置单元,设置成将要发送的所述ACR中的用户标识设置为预付费用户。A user identification setting unit is configured to set a user identifier in the ACR to be transmitted as a prepaid user.
实现计费的FCS如图7所示,包括:The FCS for billing is shown in Figure 7, including:
接收单元,设置成接收ACR;a receiving unit configured to receive an ACR;
异常信息设置单元,设置成根据接收到的ACR,设置对应的CDR中的异常信息。The abnormality information setting unit is configured to set abnormality information in the corresponding CDR according to the received ACR.
本发明第三实施例中,所述异常信息包括OCS异常开始时间和OCS异常恢复时间时,异常信息设置单元根据接收到的ACR,设置对应的CDR中的异常信息是指:In the third embodiment of the present invention, when the abnormality information includes the OCS abnormal start time and the OCS abnormal recovery time, the abnormality information setting unit sets the abnormal information in the corresponding CDR according to the received ACR, which means:
异常信息设置单元当接收到来自TNE的第一ACR时,设置第一ACR对应的CDR中的OCS异常开始时间为接收到第一ACR的时间;The abnormality information setting unit sets the OCS abnormal start time in the CDR corresponding to the first ACR to the time when the first ACR is received when receiving the first ACR from the TNE;
当接收到来自TNE的第二ACR时,设置第二ACR对应的CDR中的OCS异常恢复时间为接收到第二ACR的时间。 When receiving the second ACR from the TNE, setting the OCS abnormal recovery time in the CDR corresponding to the second ACR is the time when the second ACR is received.
可选地,所述异常信息还包括OCS异常标识,异常信息设置单元还设置成:当接收到第一ACR时,设置CDR中的OCS异常标识为异常。Optionally, the abnormality information further includes an OCS abnormality identifier, and the abnormality information setting unit is further configured to: when the first ACR is received, set the OCS abnormality identifier in the CDR to be abnormal.
本发明第四实施例中,异常信息包括OCS异常标识、会话开始时间和会话结束时间,异常信息设置单元根据接收到的ACR,设置对应的CDR中的异常信息是指:In the fourth embodiment of the present invention, the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time. The abnormality information setting unit sets the abnormal information in the corresponding CDR according to the received ACR:
异常信息设置单元当接收到来自TNE的第三ACR时,设置第三ACR对应的第一CDR中的会话开始时间为接收到第三ACR的时间,设置第一CDR中的OCS异常标识为正常;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR;When the third ACR from the TNE is received, the abnormality information setting unit sets the session start time in the first CDR corresponding to the third ACR to the time when the third ACR is received, and sets the OCS abnormality identifier in the first CDR to be normal; The third ACR is an ACR sent when the TNE detects that the session is pre-authorized;
当接收到来自TNE的第一ACR时,设置第一ACR对应的第一CDR中的会话结束时间为接收到第一ACR的时间,设置第一ACR对应的第二CDR中的会话开始时间为接收到第一ACR的时间,设置第二CDR中的OCS异常标识为异常,发送第一CDR;When the first ACR from the TNE is received, the session end time in the first CDR corresponding to the first ACR is set to the time when the first ACR is received, and the session start time in the second CDR corresponding to the first ACR is set to be received. At the time of the first ACR, setting the OCS abnormality identifier in the second CDR to be abnormal, and transmitting the first CDR;
当接收到来自TNE的第二ACR时,设置第二ACR对应的第二CDR中的会话结束时间为接收到第二ACR的时间,设置第二ACR对应的第三CDR中的会话开始时间为接收到第二ACR的时间,设置第三CDR中的OCS异常标识为正常,发送第二CDR;When receiving the second ACR from the TNE, setting the session end time in the second CDR corresponding to the second ACR to the time when the second ACR is received, and setting the session start time in the third CDR corresponding to the second ACR as the receiving At the time of the second ACR, setting the OCS abnormality identifier in the third CDR to be normal, and transmitting the second CDR;
当接收到来自TNE的第四ACR时,设置第四ACR对应的第三CDR中的会话结束时间为接收到第四ACR的时间,发送第三CDR;所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。When the fourth ACR from the TNE is received, the session end time in the third CDR corresponding to the fourth ACR is set to be the time when the fourth ACR is received, and the third CDR is sent; the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
可选地,所述异常信息设置单元还设置成:将要发送的CDR中的用户标识设置为该CDR对应的ACR中的用户标识。Optionally, the abnormality information setting unit is further configured to: set a user identifier in the CDR to be sent as a user identifier in the ACR corresponding to the CDR.
实现计费的BD实体如图8所示,包括计算单元和处理单元,其中,The BD entity that implements charging is as shown in FIG. 8 , and includes a computing unit and a processing unit, where
计算单元,设置成根据接收到的来自FCS的CDR,计算OCS异常持续时间;所述CDR中包括所述FCS根据电信网元TNE所发送的计费请求ACR而设置的异常信息;所述ACR包括检测到所述OCS异常时发送的第一ACR和检测到所述OCS异常恢复时发送的第二ACR; a calculating unit, configured to calculate an OCS abnormal duration according to the received CDR from the FCS; the CDR includes abnormal information set by the FCS according to a charging request ACR sent by the telecommunication network element TNE; the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormality recovery is detected;
处理单元,设置成根据来自计算单元的OCS异常持续时间进行计费相关处理。The processing unit is configured to perform charging related processing according to an OCS abnormal duration from the computing unit.
在本发明第三实施例中,计算单元计算OCS异常持续时间是指:计算单元将CDR中的OCS异常恢复时间减去CDR中的OCS异常开始时间,所得的差值为OCS异常持续时间。In the third embodiment of the present invention, the calculating unit calculates the OCS abnormal duration as follows: the calculating unit subtracts the OCS abnormality recovery time in the CDR from the OCS abnormal start time in the CDR, and the obtained difference is the OCS abnormal duration.
可选地,在第三实施例中,Optionally, in the third embodiment,
BD实体还包括第一确定单元,用于确定接收到的来自FCS的CDR中的OCS异常标识是否为异常;The BD entity further includes a first determining unit, configured to determine whether the received OCS abnormality identifier in the CDR from the FCS is abnormal;
相应地,Correspondingly,
计算单元设置成:当第一确定单元确定所述OCS异常标识为异常时,执行所述根据接收到的来自FCS的CDR,计算OCS异常持续时间的操作。The calculating unit is configured to: when the first determining unit determines that the OCS abnormality identifier is abnormal, perform the operation of calculating the OCS abnormal duration according to the received CDR from the FCS.
可选地,CDR中还包括会话开始时间和会话结束时间。Optionally, the CDR also includes a session start time and a session end time.
计算单元还设置成:根据CDR中的会话开始时间和会话结束时间、及OCS异常持续时间计算OCS正常持续时间;The calculating unit is further configured to: calculate the normal duration of the OCS according to the session start time and the session end time in the CDR, and the OCS abnormal duration;
相应地,Correspondingly,
处理单元还设置成:根据来自计算单元的OCS正常持续时间进行结算相关处理。The processing unit is further arranged to perform settlement related processing based on the OCS normal duration from the computing unit.
计算单元根据CDR中的会话开始时间和会话结束时间、及OCS异常持续时间计算OCS正常持续时间是指:The calculation unit calculates the OCS normal duration according to the session start time and the session end time in the CDR, and the OCS abnormal duration, which means:
计算单元将CDR中的OCS异常恢复时间减去CDR中的OCS异常开始时间,所得的差值为OCS异常持续时间;将CDR中的会话结束时间减去CDR中的会话的开始时间,所得的差值为CDR对应的会话的持续时间;将得到的CDR对应的会话的持续时间减去OCS异常持续时间,所得的差值为OCS正常持续时间。The calculation unit subtracts the OCS abnormality recovery time in the CDR from the OCS abnormal start time in the CDR, and the obtained difference is the OCS abnormal duration; the session end time in the CDR is subtracted from the start time of the session in the CDR, and the difference is obtained. The value is the duration of the session corresponding to the CDR; the duration of the session corresponding to the obtained CDR is subtracted from the abnormal duration of the OCS, and the obtained difference is the normal duration of the OCS.
在本发明第四实施例中,In the fourth embodiment of the present invention,
计算单元计算OCS异常持续时间是指:The calculation unit calculates the OCS abnormal duration as:
计算单元将第二CDR中的会话结束时间减去会话开始时间,所得的差值 为OCS异常持续时间。The calculation unit subtracts the session end time in the second CDR from the session start time, and the resulting difference The duration of the OCS exception.
可选地,在第四实施例中,Optionally, in the fourth embodiment,
BD实体还包括第一确定单元设置于确定接收到的来自FCS的CDR中的OCS异常标识是否为异常;The BD entity further includes: the first determining unit is configured to determine whether the received OCS abnormality identifier in the CDR from the FCS is abnormal;
计算单元设置成:当第一确定单元确定OCS异常标识为异常时,执行计算OCS异常持续时间的操作;当第一确定单元确定OCS异常标识为正常时,计算OCS正常持续时间。The calculating unit is configured to: when the first determining unit determines that the OCS abnormality identifier is abnormal, perform an operation of calculating an OCS abnormal duration; when the first determining unit determines that the OCS abnormality identifier is normal, calculate an OCS normal duration.
相应地,Correspondingly,
处理单元还设置成:根据计算出的OCS正常持续时间进行结算相关处理。The processing unit is further configured to: perform settlement related processing based on the calculated normal duration of the OCS.
计算单元计算OCS正常持续时间是指:The calculation unit calculates the normal duration of the OCS as:
将第一、第三CDR中的会话结束时间减去CDR中的会话开始时间,所得的差值之和为OCS正常持续时间。The session end time in the first and third CDRs is subtracted from the session start time in the CDR, and the sum of the obtained differences is the OCS normal duration.
可选地,Optionally,
所述第二确定单元还设置成确定CDR是否对应预付费用户;当确定为对应预付费用户时,执行确定CDR中的OCS异常标识是否为异常的操作。The second determining unit is further configured to determine whether the CDR corresponds to the prepaid user; when it is determined to correspond to the prepaid user, perform an operation of determining whether the OCS abnormality identifier in the CDR is abnormal.
在一种可选方案中,第一确定单元设置成:根据CDR查询用户资料数据库;当查询结果显示CDR对应的用户为预付费用户时,确定CDR对应的用户为预付费用户。In an optional solution, the first determining unit is configured to: query the user profile database according to the CDR; and when the query result indicates that the user corresponding to the CDR is a prepaid user, determine that the user corresponding to the CDR is a prepaid user.
在另一种可选方案中,当TNE还设置成将要发送的ACR中的用户标识设置为预付费用户,FCS还设置成将要发送的CDR中的用户标识设置为该CDR对应的ACR中的用户标识时,第一确定单元设置成:根据CDR中的用户标识确定CDR是否对应预付费用户。In another alternative, when the TNE is further configured to set the user identity in the ACR to be sent as a prepaid user, the FCS is further configured to set the user identity in the CDR to be sent as the user in the ACR corresponding to the CDR. When identifying, the first determining unit is configured to: determine whether the CDR corresponds to the prepaid user according to the user identifier in the CDR.
工业实用性Industrial applicability
与相关技术相比,本发明实施例的技术方案当预付费用户在使用电信业务过程中出现OCS异常时,能实现BD实体根据接收到的CDR简单地计算 出的OCS异常持续时间,避免了通过查询历史CDR数据计算OCS异常持续时间,有效提高了BD实体对在线用户的CDR的处理效率,从而提高了用户体验。 Compared with the related art, the technical solution of the embodiment of the present invention can implement the simple calculation of the BD entity according to the received CDR when the prepaid user has an OCS abnormality in the process of using the telecommunication service. The OCS abnormal duration is obtained, and the OCS abnormal duration is calculated by querying the historical CDR data, thereby effectively improving the processing efficiency of the BD entity to the online user's CDR, thereby improving the user experience.

Claims (28)

  1. 一种实现计费的方法,包括:A method for implementing billing, comprising:
    电信网元TNE针对每个获得预授权的预付费用户的会话:检测到在线计费服务器OCS异常时,向离线计费服务器FCS发送用于指示OCS异常的第一计费请求ACR;以及,检测到所述OCS异常恢复时,向所述FCS发送用于指示所述OCS异常恢复的第二ACR;The telecommunication network element TNE is configured for each pre-authorized prepaid user session: when detecting the online charging server OCS abnormality, sending a first charging request ACR for indicating an OCS abnormality to the offline charging server FCS; and detecting Sending, to the FCS, a second ACR for indicating the abnormal recovery of the OCS when the OCS is abnormally restored;
    所述FCS根据接收到的ACR,设置对应的计费话单CDR中的异常信息;The FCS sets abnormal information in the corresponding charging bill CDR according to the received ACR;
    计费域BD实体根据接收到的来自所述FCS的所述CDR,计算所述OCS异常持续时间,并根据计算出的OCS异常持续时间进行计费相关处理。The charging domain BD entity calculates the OCS abnormal duration according to the received CDR from the FCS, and performs charging related processing according to the calculated OCS abnormal duration.
  2. 根据权利要求1所述的方法,其中,所述异常信息包括所述OCS异常开始时间和所述OCS异常恢复时间;所述FCS根据接收到的ACR,设置对应的CDR中的异常信息包括:The method according to claim 1, wherein the abnormality information includes the OCS abnormal start time and the OCS abnormal recovery time; and the FCS sets the abnormal information in the corresponding CDR according to the received ACR, including:
    所述FCS当接收到所述第一ACR时,设置所述第一ACR对应的CDR中的OCS异常开始时间为接收到所述第一ACR的时间;When the FCS receives the first ACR, setting an OCS abnormal start time in the CDR corresponding to the first ACR to a time when the first ACR is received;
    所述FCS当接收到所述第二ACR时,设置所述第二ACR对应的CDR中的OCS异常恢复时间为接收到所述第二ACR的时间。When the FCS receives the second ACR, setting an OCS abnormal recovery time in the CDR corresponding to the second ACR is a time when the second ACR is received.
  3. 根据权利要求2所述的方法,其中,所述异常信息还包括OCS异常标识;所述设置所述CDR中的OCS异常开始时间为接收到所述第一ACR的时间之后还包括:设置所述CDR中的OCS异常标识为异常;The method of claim 2, wherein the abnormality information further comprises an OCS abnormality identifier; the setting an OCS abnormality start time in the CDR to a time after receiving the first ACR further comprises: setting the The OCS exception in the CDR is identified as abnormal;
    所述BD实体计算OCS异常持续时间之前还包括:确定所述CDR是否对应预付费用户,如果确定所述CDR对应预付费用户,则确定所述CDR中的OCS异常标识是否为异常;如果确定OCS异常标识为异常,则执行所述计算OCS异常持续时间的步骤。Before the BD entity calculates the OCS abnormality duration, the method further includes: determining whether the CDR corresponds to a prepaid user, and determining whether the CDR corresponding to the prepaid user determines whether the OCS abnormality identifier in the CDR is abnormal; if determining the OCS If the abnormality is abnormal, the step of calculating the OCS abnormal duration is performed.
  4. 根据权利要求3所述的方法,其中,所述CDR中还包括会话开始时间和会话结束时间;The method according to claim 3, wherein the CDR further includes a session start time and a session end time;
    所述进行计费相关处理之后还包括:After the performing the charging related processing, the method further includes:
    所述BD实体将所述CDR中的会话结束时间减去所述CDR中的会话开 始时间,所得的差值为所述CDR对应的会话的持续时间;将得到的CDR对应的会话的持续时间减去所述OCS异常持续时间,所得的差值为所述OCS正常持续时间;根据计算出的所述OCS正常持续时间进行结算相关处理。The BD entity subtracts the session end time in the CDR from the session in the CDR The initial time, the obtained difference is the duration of the session corresponding to the CDR; the duration of the session corresponding to the obtained CDR is subtracted from the abnormal duration of the OCS, and the obtained difference is the normal duration of the OCS; The calculated normal duration of the OCS is used for settlement related processing.
  5. 根据权利要求2~4任一项所述的方法,其中,所述计算OCS异常持续时间包括:将所述OCS异常恢复时间减去所述OCS异常开始时间,所得的差值为所述OCS异常持续时间。The method according to any one of claims 2 to 4, wherein the calculating the OCS abnormal duration comprises: subtracting the OCS abnormal recovery time from the OCS abnormal start time, and the obtained difference is the OCS abnormality duration.
  6. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    所述TNE检测到所述会话获得预授权时,向所述FCS发送用于指示会话开始的第三ACR;When the TNE detects that the session is pre-authorized, sends a third ACR indicating the start of the session to the FCS;
    所述TNE检测到所述会话结束时,向所述FCS发送用于指示会话结束的第四ACR。When the TNE detects that the session ends, the fourth ACR indicating the end of the session is sent to the FCS.
  7. 根据权利要求6所述的方法,其中,所述异常信息包括OCS异常标识、会话开始时间和会话结束时间;所述FCS根据接收到的ACR,设置对应的CDR中的异常信息包括:The method according to claim 6, wherein the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time; and the FCS sets the abnormal information in the corresponding CDR according to the received ACR, including:
    所述FCS当接收到所述第三ACR时,设置所述第三ACR对应的第一CDR中的会话开始时间为接收到所述第三ACR的时间,设置第一CDR中的所述OCS异常标识为正常;When the FCS receives the third ACR, setting a session start time in the first CDR corresponding to the third ACR to a time when the third ACR is received, and setting the OCS abnormality in the first CDR The logo is normal;
    所述FCS当接收到所述第一ACR时,设置所述第一ACR对应的第一CDR中的会话结束时间为接收到所述第一ACR的时间,设置所述第一ACR对应的第二CDR中的会话开始时间为接收到所述第一ACR的时间,设置第二CDR中的所述OCS异常标识为异常,发送所述第一CDR;When the FCS receives the first ACR, setting a session end time in the first CDR corresponding to the first ACR to a time when the first ACR is received, and setting a second corresponding to the first ACR The session start time in the CDR is the time when the first ACR is received, and the OCS abnormality identifier in the second CDR is set to be abnormal, and the first CDR is sent;
    所述FCS当接收到所述第二ACR时,设置所述第二ACR对应的第二CDR中的会话结束时间为接收到所述第二ACR的时间,设置所述第二ACR对应的第三CDR中的会话开始时间为接收到所述第二ACR的时间,设置第三CDR中的所述OCS异常标识为正常,发送所述第二CDR;When the FCS receives the second ACR, setting a session end time in the second CDR corresponding to the second ACR to a time when the second ACR is received, and setting a third corresponding to the second ACR The session start time in the CDR is the time when the second ACR is received, and the OCS abnormality identifier in the third CDR is set to be normal, and the second CDR is sent;
    当接收到所述第四ACR时,设置所述第四ACR对应的第三CDR中的会话结束时间为接收到所述第四ACR的时间,发送所述第三CDR。And when the fourth ACR is received, setting a session end time in the third CDR corresponding to the fourth ACR to a time when the fourth ACR is received, and sending the third CDR.
  8. 根据权利要求7所述的方法,其中,所述计算OCS异常持续时间之 前还包括:The method of claim 7 wherein said calculating an OCS abnormal duration Also included before:
    所述BD实体确定所述CDR是否对应预付费用户,如果确定所述CDR对应预付费用户,则确定所述CDR中的OCS异常标识是否为异常;如果确定OCS异常标识为异常,执行所述计算OCS异常持续时间的步骤。Determining, by the BD entity, whether the CDR corresponds to a prepaid user, if it is determined that the CDR corresponds to a prepaid user, determining whether the OCS abnormality identifier in the CDR is abnormal; if determining that the OCS abnormality identifier is abnormal, performing the calculation The step of OCS abnormal duration.
  9. 根据权利要求7或8所述的方法,其中,所述计算OCS异常持续时间包括:The method of claim 7 or 8, wherein said calculating an OCS abnormal duration comprises:
    将所述第二CDR中的所述会话结束时间减去所述会话开始时间,所得的差值为所述OCS异常持续时间。The session end time in the second CDR is subtracted from the session start time, and the resulting difference is the OCS abnormal duration.
  10. 根据权利要求3或8所述的方法,其中,所述TNE向FCS发送ACR之前还包括:所述TNE设置所述ACR中的用户标识为预付费用户;The method according to claim 3 or 8, wherein before the TNE sends the ACR to the FCS, the method further comprises: the TNE setting a user identifier in the ACR as a prepaid user;
    所述FCS向所述BD发送所述CDR之前还包括:所述FCS设置所述CDR中的用户标识为所述CDR对应的所述ACR中的用户标识;Before the FCS sends the CDR to the BD, the method further includes: the FCS setting a user identifier in the CDR as a user identifier in the ACR corresponding to the CDR;
    所述BD实体确定所述CDR是否对应预付费用户包括:根据所述CDR中的用户标识确定所述CDR是否对应预付费用户。Whether the BD entity determines whether the CDR corresponds to a prepaid user comprises: determining, according to a user identifier in the CDR, whether the CDR corresponds to a prepaid user.
  11. 一种实现计费的方法,包括:A method for implementing billing, comprising:
    根据接收到的来自离线计费服务器FCS的计费话单CDR,计算在线计费服务器OCS异常持续时间;所述CDR中包括所述FCS根据电信网元TNE所发送的计费请求ACR而设置的异常信息;所述ACR包括检测到所述OCS异常时发送的第一ACR和检测到所述OCS异常恢复时发送的第二ACR;Calculating an online charging server OCS abnormal duration according to the received charging bill CDR from the offline charging server FCS; the CDR includes the FCS set according to the charging request ACR sent by the telecommunication network element TNE Abnormal information; the ACR includes a first ACR sent when the OCS abnormality is detected and a second ACR sent when the OCS abnormal recovery is detected;
    根据所述OCS异常持续时间进行计费相关处理。The charging related processing is performed according to the OCS abnormal duration.
  12. 如权利要求11所述的方法,其中,计算在线计费服务器OCS异常持续时间包括:The method of claim 11 wherein calculating the online billing server OCS abnormal duration comprises:
    将所述OCS异常恢复时间减去所述OCS异常开始时间,所得的差值为所述OCS异常持续时间;所述OCS异常开始时间为所述FCS接收到所述第一ACR的时间;所述OCS异常恢复时间为所述FCS接收到所述第二ACR的时间。Substituting the OCS abnormal recovery time by the OCS abnormal start time, and the obtained difference is the OCS abnormal duration; the OCS abnormal start time is a time when the FCS receives the first ACR; The OCS abnormal recovery time is the time when the FCS receives the second ACR.
  13. 如权利要求11所述的方法,其中,计算在线计费服务器OCS异常持续时间包括: The method of claim 11 wherein calculating the online billing server OCS abnormal duration comprises:
    所述OCS异常标识为异常的CDR中的会话结束时间减去会话开始时间,所得的差值为所述OCS异常持续时间;所述OCS异常标识为异常的CDR中,所述会话开始时间为所述FCS接收到所述第一ACR的时间,所述会话结束时间为所述FCS接收到所述第二ACR的时间;所述OCS异常标识不为异常的CDR中,所述会话开始时间为所述FCS接收到第三ACR的时间,所述会话结束时间为所述FCS接收到所述第一ACR的时间,或者,所述会话开始时间为所述FCS接收到所述第二ACR的时间,所述会话结束时间为所述FCS接收到第四ACR的时间;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR,所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。The OCS abnormality is identified as the session end time in the abnormal CDR minus the session start time, and the obtained difference is the OCS abnormal duration; in the CDR where the OCS abnormality is abnormal, the session start time is The time when the FCS receives the first ACR, the session end time is the time when the FCS receives the second ACR; the OCS abnormality identifier is not an abnormal CDR, and the session start time is The time when the FCS receives the third ACR, the session end time is the time when the FCS receives the first ACR, or the session start time is the time when the FCS receives the second ACR, The session end time is a time when the FCS receives the fourth ACR; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized, and the fourth ACR is detected by the TNE. The ACR sent to the FCS at the end of the session.
  14. 一种实现计费的电信网元TNE,包括:A telecommunication network element TNE for implementing charging, comprising:
    第一发送单元,设置成针对每个获得预授权的预付费用户的会话:当检测到在线计费服务器OCS异常时,向离线计费服务器FCS发送用于指示OCS异常的第一计费请求ACR;The first sending unit is configured to send a pre-authorized prepaid user's session for each: when detecting the online charging server OCS abnormality, sending a first charging request ACR for indicating an OCS abnormality to the offline charging server FCS ;
    以及,as well as,
    第二发送单元,设置成针对每个获得预授权的预付费用户的会话:当检测到OCS异常恢复时,向FCS发送用于指示OCS异常恢复的第二ACR。The second transmitting unit is configured to set a session for each pre-authorized pre-paid user: when an OCS abnormal recovery is detected, a second ACR for indicating an OCS abnormal recovery is sent to the FCS.
  15. 根据权利要求14所述的TNE,还包括:The TNE of claim 14 further comprising:
    第三发送单元,设置成当检测到所述会话获得预授权时,向所述FCS发送用于指示会话开始的第三ACR;a third sending unit, configured to send a third ACR for indicating a start of the session to the FCS when detecting that the session is pre-authorized;
    第四发送单元,设置成当检测到所述会话结束时,向所述FCS发送用于指示会话结束的第四ACR。The fourth transmitting unit is configured to, when the end of the session is detected, send a fourth ACR indicating the end of the session to the FCS.
  16. 根据权利要求15所述的TNE,还包括:The TNE of claim 15 further comprising:
    用户标识设置单元,设置成将要发送的所述ACR中的用户标识设置为预付费用户。A user identification setting unit is configured to set a user identifier in the ACR to be transmitted as a prepaid user.
  17. 一种实现计费的离线计费服务器FCS,包括:An offline charging server FCS that implements charging, including:
    接收单元,设置成接收来自电信网元TNE的计费请求ACR;所述ACR包括检测到所述OCS异常时发送的第一ACR和检测到所述OCS异常恢复时 发送的第二ACR;a receiving unit, configured to receive a charging request ACR from the telecommunication network element TNE; the ACR includes a first ACR sent when the OCS abnormality is detected, and an abnormal recovery when the OCS is detected The second ACR sent;
    异常信息设置单元,设置成根据接收到的ACR设置对应的计费话单CDR中的异常信息。The abnormality information setting unit is configured to set abnormality information in the CDR of the charging bill corresponding to the received ACR.
  18. 根据权利要求17所述的FCS,其中,所述异常信息包括OCS异常开始时间和OCS异常恢复时间;所述异常信息设置单元根据接收到的ACR设置对应的CDR中的异常信息是指:The FCS according to claim 17, wherein the abnormality information includes an OCS abnormality start time and an OCS abnormality recovery time; and the abnormality information setting unit according to the received ACR setting corresponds to the abnormality information in the CDR:
    所述异常信息设置单元当接收到来自所述TNE的所述第一ACR时,设置所述第一ACR对应的CDR中的OCS异常开始时间为接收到所述第一ACR的时间;当接收到来自所述TNE的所述第二ACR时,设置所述第二ACR对应的CDR中的OCS异常恢复时间为接收到所述第二ACR的时间。Setting the abnormality information setting unit, when receiving the first ACR from the TNE, setting an OCS abnormal start time in the CDR corresponding to the first ACR to a time when the first ACR is received; when receiving When the second ACR is from the TNE, setting an OCS abnormal recovery time in the CDR corresponding to the second ACR is a time when the second ACR is received.
  19. 根据权利要求18所述的FCS,其中,所述异常信息还包括OCS异常标识;所述异常信息设置单元还设置成:当接收到所述第一ACR时,设置所述CDR中的OCS异常标识为异常。The FCS according to claim 18, wherein the abnormality information further includes an OCS abnormality identifier; the abnormality information setting unit is further configured to: when the first ACR is received, set an OCS abnormality identifier in the CDR Is abnormal.
  20. 根据权利要求17所述的FCS,其中,所述异常信息包括OCS异常标识、会话开始时间和会话结束时间;所述异常信息设置单元根据接收到的ACR设置对应的CDR中的异常信息是指:The FCS according to claim 17, wherein the abnormality information includes an OCS abnormality identifier, a session start time, and a session end time; and the abnormal information setting unit according to the received ACR setting corresponds to the abnormal information in the CDR:
    所述异常信息设置单元当接收到来自TNE的第三ACR时,设置所述第三ACR对应的第一CDR中的会话开始时间为接收到所述第三ACR的时间,设置第一CDR中的OCS异常标识为正常;所述第三ACR为所述TNE检测到所述会话获得预授权时发送的ACR;The abnormality information setting unit, when receiving the third ACR from the TNE, setting a session start time in the first CDR corresponding to the third ACR to a time when the third ACR is received, and setting the first CDR The OCS abnormality identifier is normal; the third ACR is an ACR sent when the TNE detects that the session is pre-authorized;
    所述异常信息设置单元当接收到来自TNE的第一ACR时,设置所述第一ACR对应的第一CDR中的会话结束时间为接收到所述第一ACR的时间,设置所述第一ACR对应的第二CDR中的会话开始时间为接收到所述第一ACR的时间,设置第二CDR中的OCS异常标识为异常,发送第一CDR;The abnormality information setting unit sets the session end time in the first CDR corresponding to the first ACR to the time when the first ACR is received, and sets the first ACR when receiving the first ACR from the TNE. The session start time in the corresponding second CDR is the time when the first ACR is received, and the OCS abnormality identifier in the second CDR is set to be abnormal, and the first CDR is sent;
    当接收到来自TNE的第二ACR时,设置所述第二ACR对应的第二CDR中的会话结束时间为接收到所述第二ACR的时间,设置所述第二ACR对应的第三CDR中的会话开始时间为接收到所述第二ACR的时间,设置第一CDR中的OCS异常标识为正常,发送第二CDR; When receiving the second ACR from the TNE, setting a session end time in the second CDR corresponding to the second ACR to a time when the second ACR is received, and setting a third CDR corresponding to the second ACR The session start time is the time when the second ACR is received, and the OCS abnormality identifier in the first CDR is set to be normal, and the second CDR is sent;
    当接收到来自TNE的第四ACR时,设置所述第四ACR对应的第三CDR中的会话结束时间为接收到所述第四ACR的时间,发送第三CDR;所述第四ACR为所述TNE检测到所述会话结束时,向所述FCS发送的ACR。When receiving the fourth ACR from the TNE, setting a session end time in the third CDR corresponding to the fourth ACR to receive the fourth ACR, and transmitting a third CDR; the fourth ACR is The TCR is sent to the FCS when the TNE detects the end of the session.
  21. 根据权利要求17所述的FCS,其中,所述异常信息设置单元还设置成:将要发送的CDR中的用户标识设置为该CDR对应的ACR中的用户标识。The FCS according to claim 17, wherein the abnormality information setting unit is further configured to set a user identifier in the CDR to be transmitted as a user identifier in the ACR corresponding to the CDR.
  22. 一种实现计费的计费域BD实体,包括:A billing domain BD entity that implements billing, including:
    计算单元,设置成根据接收到的来自离线计费服务器FCS的计费话单CDR,计算在线计费服务器OCS异常持续时间;The calculating unit is configured to calculate an abnormal duration of the online charging server OCS according to the received charging bill CDR from the offline charging server FCS;
    处理单元,设置成根据来自计算单元的OCS异常持续时间进行计费相关处理。The processing unit is configured to perform charging related processing according to an OCS abnormal duration from the computing unit.
  23. 根据权利要求22所述的BD实体,还包括:第一确定单元,设置成确定所述CDR是否对应预付费用户,当所述CDR对应预付费用户时,确定所述CDR中的OCS异常标识是否为异常;The BD entity according to claim 22, further comprising: a first determining unit, configured to determine whether the CDR corresponds to a prepaid user, and when the CDR corresponds to a prepaid user, determining whether an OCS abnormality identifier in the CDR is Is abnormal;
    所述计算单元设置成当所述第一确定单元确定OCS异常标识为异常时,执行所述根据接收到的来自FCS的CDR,计算OCS异常持续时间的操作。The calculating unit is configured to perform an operation of calculating an OCS abnormal duration according to the received CDRs from the FCS when the first determining unit determines that the OCS abnormality identifier is abnormal.
  24. 根据权利要求23所述的BD实体,其中,所述CDR中还包括会话开始时间和会话结束时间;The BD entity according to claim 23, wherein the CDR further includes a session start time and a session end time;
    所述计算单元还设置成:将所述CDR中的会话结束时间减去所述CDR中的会话的开始时间,所得的差值为所述CDR对应的会话的持续时间;将得到的CDR对应的会话的持续时间减去所述OCS异常持续时间,所得的差值为所述OCS正常持续时间;The calculating unit is further configured to: subtract a session end time in the CDR from a start time of a session in the CDR, and obtain a difference value as a duration of a session corresponding to the CDR; The duration of the session minus the OCS abnormal duration, and the resulting difference is the normal duration of the OCS;
    所述处理单元还设置成:根据来自所述计算单元的OCS正常持续时间进行结算相关处理。The processing unit is further configured to perform settlement related processing based on an OCS normal duration from the computing unit.
  25. 根据权利要求22~24中任一项所述的BD实体,其中,所述计算单元具体根据接收到的来自FCS的CDR,计算OCS异常持续时间是指:将所述CDR中的OCS异常恢复时间减去所述CDR中的OCS异常开始时间,所得的差值为所述OCS异常持续时间。The BD entity according to any one of claims 22 to 24, wherein the calculating unit specifically calculates the OCS abnormal duration according to the received CDRs from the FCS, and refers to: recovering the OCS abnormality time in the CDR The OCS abnormal start time in the CDR is subtracted, and the difference obtained is the OCS abnormal duration.
  26. 根据权利要求23所述的BD实体,其中,所述计算单元根据接收到 的来自FCS的CDR,计算OCS异常持续时间是指:The BD entity according to claim 23, wherein said computing unit receives according to The CDR from the FCS, calculating the OCS abnormal duration means:
    当来自第一确定单元的确定结果为异常时,将所述CDR中的会话结束时间减去所述会话开始时间,所得的差值为所述OCS异常持续时间。When the determination result from the first determining unit is abnormal, the session end time in the CDR is subtracted from the session start time, and the obtained difference is the OCS abnormal duration.
  27. 根据权利要求23所述的BD实体,其中,所述第一确定单元确定所述CDR是否对应预付费用户是指:The BD entity according to claim 23, wherein the first determining unit determines whether the CDR corresponds to a prepaid user or not:
    所述第一确定单元根据所述CDR中的用户标识确定所述CDR是否对应预付费用户;所述CDR中的用户标识设置成和对应的ACR中的用户标识相同;对于预付费用户,所述ACR中的用户标识被设置为预付费用户。Determining, by the first determining unit, whether the CDR corresponds to a prepaid user according to the user identifier in the CDR; the user identifier in the CDR is set to be the same as the user identifier in the corresponding ACR; and for the prepaid user, the The user ID in the ACR is set as a prepaid user.
  28. 一种实现计费的系统,包括:权利要求14~16任一项所述的TNE、权利要求17~21任一项所述的FCS、和权利要求22~27任一项所述的BD实体。 A system for realizing billing, comprising: the TNE according to any one of claims 14 to 16, the FCS according to any one of claims 17 to 21, and the BD entity according to any one of claims 22 to 27. .
PCT/CN2015/077840 2014-11-07 2015-04-29 Method, tne, fcs, bd entity and system for performing charging WO2016070595A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410625750.8A CN105634752B (en) 2014-11-07 2014-11-07 Method, TNE, FCS, BD and system for realizing charging
CN201410625750.8 2014-11-07

Publications (1)

Publication Number Publication Date
WO2016070595A1 true WO2016070595A1 (en) 2016-05-12

Family

ID=55908491

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077840 WO2016070595A1 (en) 2014-11-07 2015-04-29 Method, tne, fcs, bd entity and system for performing charging

Country Status (2)

Country Link
CN (1) CN105634752B (en)
WO (1) WO2016070595A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171836B (en) * 2017-05-10 2019-11-26 烽火通信科技股份有限公司 A kind of the resource ID management method and system of distribution switch
CN112243202B (en) * 2019-07-18 2023-08-04 中兴通讯股份有限公司 Charging method, device and system
CN112351396A (en) * 2019-08-06 2021-02-09 中国移动通信有限公司研究院 Charging mode switching method, SMF module and fusion charging system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183953A (en) * 2007-12-13 2008-05-21 中国移动通信集团广东有限公司 Added charging method for online charging system
CN101267480A (en) * 2008-04-23 2008-09-17 华为技术有限公司 Billing processing method, system and online billing system
CN101340635A (en) * 2008-08-14 2009-01-07 中兴通讯股份有限公司 Method for processing exception of on-line billing system
CN101860838A (en) * 2010-06-28 2010-10-13 中兴通讯股份有限公司 Method and system for charging prepayment
CN103095484A (en) * 2011-11-01 2013-05-08 中兴通讯股份有限公司 Processing method and system for abnormal application server (AS)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933526A (en) * 2005-09-15 2007-03-21 华为技术有限公司 Prepayment charging system and charging information collecting and reporting method
CN100370732C (en) * 2005-11-04 2008-02-20 华为技术有限公司 Charge metering method and system
CN100466523C (en) * 2006-06-09 2009-03-04 华为技术有限公司 System and method combined on-line charge with off-line charge
CN101212316A (en) * 2006-12-25 2008-07-02 华为技术有限公司 Media stream based billing method and system in multi-party session
CN101022348B (en) * 2007-02-07 2010-09-22 华为技术有限公司 Method, system and equipment for realizing on-line billing
EP2466790B1 (en) * 2010-12-15 2017-11-15 Alcatel Lucent Network managing system
CN102647697B (en) * 2012-03-30 2015-07-08 华为技术有限公司 Charging control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183953A (en) * 2007-12-13 2008-05-21 中国移动通信集团广东有限公司 Added charging method for online charging system
CN101267480A (en) * 2008-04-23 2008-09-17 华为技术有限公司 Billing processing method, system and online billing system
CN101340635A (en) * 2008-08-14 2009-01-07 中兴通讯股份有限公司 Method for processing exception of on-line billing system
CN101860838A (en) * 2010-06-28 2010-10-13 中兴通讯股份有限公司 Method and system for charging prepayment
CN103095484A (en) * 2011-11-01 2013-05-08 中兴通讯股份有限公司 Processing method and system for abnormal application server (AS)

Also Published As

Publication number Publication date
CN105634752B (en) 2021-01-26
CN105634752A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US10972613B2 (en) Charging control method, charging trigger apparatus, and online charging system
US9826103B2 (en) Offload of service charging from an online charging system
KR101154289B1 (en) Online charging for supplementary services in ims networks
US20110161248A1 (en) Online charging correlation in ims networks
EP1871084A1 (en) Method and system for third party charging
US9215077B2 (en) Method and system for supporting multiple time zones and charging method and system in IMS
US10182161B2 (en) Modifying a quality of a connection between a terminal and an application server
WO2020119325A1 (en) Charging processing method and device, storage medium, and electronic device
WO2012149725A1 (en) Volume service billing method, device, and system
WO2009100669A1 (en) Charging method, control device, charging device and charging system
WO2016070595A1 (en) Method, tne, fcs, bd entity and system for performing charging
WO2008110123A1 (en) A method and system of charging and an account period switching module
US10680838B2 (en) Aggregated handling of quota in a network node
WO2009062408A1 (en) Method for implementing value-added service and service control point
WO2009149610A1 (en) Method and apparatus for online charging
CN102420807B (en) IMS supports the method and system of zone and charging method and system
CN108476389A (en) Position processing in VOLTE networks
CN101150416A (en) Third-party billing method and system
CN101448235B (en) Method and system for achieving charging in interactive voice response service
CN112383405B (en) Data service charging method, device and system
WO2021008256A1 (en) Charging method, apparatus and system, and computer readable storage medium
WO2013063910A1 (en) As abnormity processing method and system
CN108270580B (en) Reminding method, device and system for online charging
CN108574579A (en) A kind for the treatment of method and apparatus and telecommunication system for telecom charging
EP2590359B1 (en) Method, system, charging equipment, and account balance management center for free resources processing

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

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

Country of ref document: EP

Kind code of ref document: A1