CN107708082B - Supplementary charging method and device - Google Patents

Supplementary charging method and device Download PDF

Info

Publication number
CN107708082B
CN107708082B CN201610644532.8A CN201610644532A CN107708082B CN 107708082 B CN107708082 B CN 107708082B CN 201610644532 A CN201610644532 A CN 201610644532A CN 107708082 B CN107708082 B CN 107708082B
Authority
CN
China
Prior art keywords
ticket
offline
charging
online
network service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610644532.8A
Other languages
Chinese (zh)
Other versions
CN107708082A (en
Inventor
宗鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
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 China Mobile Communications Group Co Ltd, China Mobile Group Hubei Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201610644532.8A priority Critical patent/CN107708082B/en
Publication of CN107708082A publication Critical patent/CN107708082A/en
Application granted granted Critical
Publication of CN107708082B publication Critical patent/CN107708082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Meter Arrangements (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a supplementary charging method, which comprises the following steps: acquiring an overtime non-charging online ticket generated based on an online charging mode; after generating the offline call tickets added with the charging identifications, acquiring each offline call ticket added with the non-charging identification; finding out the off-line call ticket corresponding to the on-line call ticket which is not charged overtime in each obtained off-line call ticket; and carrying out charging processing based on the found offline ticket. The embodiment of the invention also discloses a supplementary charging device.

Description

Supplementary charging method and device
Technical Field
The invention relates to a flow charging technology, in particular to a supplementary charging method and a supplementary charging device, which can carry out supplementary charging aiming at the phenomenon of charging leakage caused by the switching between online charging and offline charging when a user accesses a mobile internet through a mobile terminal.
Background
When a user accesses a mobile internet through a mobile terminal at present, the generated charging mode of network flow can be an online charging mode or an offline charging mode; here, the mobile internet may be a 2G Network, a 3G Network, or a 4G Network, and for the online charging mode, the online charging may be implemented according to Credit Control (DCC) message interaction between a Gateway General Packet Radio Service (GPRS) Support Node (GGSN)/PDN Gateway (Public Data Network Gate, PGW) and the BOSS charging system, and for the offline charging mode, the offline charging may be performed through an offline ticket issued by the GGSN/PGW; generally, at the same time, the GGSN/PGW determines whether to use the online charging method or the offline charging method.
When network flow is charged according to an online charging mode, the GGSN/PGW simultaneously issues an offline ticket to an offline charging system, wherein the offline charging system can be realized by adopting a Convergence charging Engine (CBE) charging system, a non-charging identifier is added in the offline ticket at the moment, exemplarily, the non-charging identifier can be a special identifier (3136) which is used for prompting the offline charging system that the offline ticket is charged according to the online charging mode, and the offline ticket does not need to be repeatedly charged in the offline charging system; therefore, the final billing ticket presented to the user is: based on message interaction among GGSN/PGW, BOSS charging system and off-line charging system, and based on the ticket output by the set ticket splitting condition.
When a user accesses the mobile internet through the mobile terminal, the duration of accessing the mobile internet may be from several seconds to dozens of hours, and the GGSN/PGW splits the call ticket according to the set ticket splitting rule in the process of accessing the mobile internet by the mobile terminal according to the duration or the flow threshold of accessing the mobile internet by the mobile terminal until the user actively applies for the mobile terminal to be offline from the mobile internet.
The following describes the process of splitting the dialog list by taking the GPRS service of the user as an example for accessing the mobile internet.
Specifically, a user firstly applies for opening a mobile phone number to a mobile operator, when applying for opening a GPRS service aiming at the opened mobile phone number, an online charging function is opened, and information such as a charging mode adopted by the opened mobile phone number is written into a Home Location Register (HLR)/Home Subscriber Server (HSS) of the opened mobile phone number; when the user uses the opened mobile phone number to use the GPRS service, the GGSN/PGW reads the data on the home HLR/HSS and determines the charging mode of the network flow based on the read data, namely, determines whether to adopt an online charging mode or an offline charging mode.
The using behavior of the GPRS service in the time from the GPRS service access to the GPRS service stop is called a GPRS service session, when a user uses the opened mobile phone number to use the GPRS service each time, the GGSN/PGW can temporarily distribute a GPRS service session ID to the user until the user stops the GPRS service actively, and the GPRS service session ID can not be changed; when using GPRS service, GGSN/PGW sends a Credit Control Request (CCR) message to BOSS charging system to apply for online charging if determining that the user opens the online charging function, wherein the CCR (Initial) message includes the ID of the GPRS service session, the starting time of the GPRS service session, the updating time of the GPRS service session, the GGSN/PGW number required to be used when the GPRS service session carries out network flow meter time consumption, the Serving GPRS Support Node (SGSN) number used by the GPRS service session, and the number of the service used by the GPRS service session; in practical implementation, in the process of using the GPRS service based on the opened mobile phone number, the GGSN/PGW performs ticket splitting when the GPRS service session meets the set ticket splitting condition, and the time when the GPRS service session meets the set ticket splitting condition is the update time of the GPRS service session.
The BOSS charging system determines whether the user can continue to use the GPRS service based on the received CCR (Initial) message and according to the residual flow and the cost of the user, and returns the corresponding determination result to the GGSN/PGW through a Credit Control Answer (CCA) (Initial) message, and the GGSN/PGW controls the user to continue to use the GPRS service or stops the user from using the GPRS service according to the received determination structure.
Here, in the process of using the GPRS service based on the opened mobile phone number, when the GPRS service session meets the set ticket splitting condition, the GGSN/PGW splits an offline ticket, and simultaneously reports a ccr (update) message to the BOSS charging system, which has been prompted to split an online ticket, and after receiving the ccr (update) message, the BOSS charging system calculates the remaining user traffic and issues an authorization message of a fixed traffic to the GGSN/PGW based on the remaining user traffic, and the GGSN/PGW allocates traffic to the GPRS service used by the user according to the authorization message issued by the BOSS charging system.
It should be noted that the ticket tearing condition corresponding to the offline ticket is consistent with the ticket tearing condition corresponding to the online ticket, that is, each online ticket forms a corresponding relationship with one offline ticket; for example, the ticket splitting condition of the online ticket/offline ticket may be: the duration of the GPRS service session reaches 30 minutes, or the network flow used for the GPRS service session reaches 2.5M, or the SGSN used for the GPRS service session is switched.
The first online ticket/offline ticket generated when the user uses the GPRS service is used for charging the network flow generated from the starting time point of the session of the GPRS service to the splitting time point of the first ticket, the kth online ticket/offline ticket generated when the user uses the GPRS service corresponds to the network flow generated from the splitting time point of the kth-1 time ticket to the splitting time point of the kth time ticket, and k is a natural number larger than 1.
It can be seen that, in the whole process of using the GPRS service by the user, when performing online charging/offline charging, the corresponding ticket splitting is performed as long as the corresponding ticket splitting condition is satisfied, until the user actively stops using the GPRS service or the GGSN/PGW controls the user to stop using the GPRS service; in practical application, the condition for the GGSN/PGW to control the user to stop using the GPRS service may be: the BOSS charging system sends a CCA (update) message containing authorization information of the last remaining flow of the GPRS service used by the user to the GGSN/PGW, and the GGSN/PGW is prompted to control the user to stop using the GPRS service after the last remaining flow is used.
The online charging process is further explained below.
Specifically, after a user initiates a request for accessing a mobile internet through a mobile terminal, the GGSN/PGW sends a CCR (initial) message to a BOSS charging system; after receiving ccr (initial) message, the BOSS charging system stores network service Session information (Session) of the mobile terminal accessing the mobile internet into a Session container (Session Store), where the Session container may be implemented by using a memory; the BOSS charging system sends the allowed usage amount information of the network flow to GGSN/PGW according to the received CCR (initial) message; after determining that the usage amount is completely allowed, the GGSN/PGW reports a ccr (update) message to the BOSS charging system to request the BOSS charging system to issue a new usage amount allowed information of the network traffic, and the BOSS charging system may determine, according to the received ccr (update) message, a usage condition of a corresponding usage amount allowed, perform online charging according to the determined usage condition of the usage amount allowed, and update the network service session information in the session container.
It should be noted that, when the user actively applies for offline from the mobile internet, the network service session is ended, at this time, the GGSN/PGW reports the Term message to the BOSS charging system, and the BOSS charging system determines that the charging process of the network service session is completed based on the received Term message; in the process that a user accesses a mobile internet through a mobile terminal, a BOSS charging system can generate at least one online ticket according to a set ticket removing condition and based on the content in a session container, and the BOSS charging system can generate the last online ticket of the current network service session after receiving a Term message reported by a GGSN/PGW.
When the GGSN/PGW and the BOSS charging system are abnormal interactively, or the GGSN/PGW and the mobile terminal are abnormal interactively, the GGSN/PGW converts the charging mode of the network flow from an online charging mode to an offline charging mode, at this time, the BOSS charging system does not receive the subsequent CCR (update) message and Term message, the BOSS charging system records the network service session information in the session container, and generates the last online ticket of the network service session based on the recorded network service session information after the set timeout time is reached.
When the GGSN/PGW and the BOSS charging system are abnormal, the DCC message may be interrupted, and a specific case of the abnormal interaction between the GGSN/PGW and the BOSS charging system may be: and the GGSN/PGW and the BOSS charging system perform interaction timeout, for example, after the GGSN/PGW initiates a ccr (initial) message to the BOSS charging system, if the GGSN/PGW does not receive response information of the BOSS charging system within 3 minutes, it is determined that the GGSN/PGW and the BOSS charging system perform interaction timeout.
When the GGSN/PGW converts the charging mode of the network traffic from the online charging mode to the offline charging mode, the GGSN/PGW adds the identifier to be charged to the offline ticket issued by the offline charging system, the system needs to charge the offline ticket added with the identifier to be charged normally, and before the network service session is finished, the charging mode is not converted from the offline charging mode to the online charging mode, that is, the subsequent network traffic generated by the network service session is charged by the offline charging mode.
It can be seen that the online ticket is generated by the BOSS charging system, and the offline ticket is generated by the GGSN/PGW; when the charging mode of the network flow is converted from the online charging mode to the offline charging mode, the BOSS charging system generates the last online ticket of the current network service session; meanwhile, the GGSN/PGW generates an offline ticket added with the charging identifier.
At the moment of switching the network traffic charging mode from the online charging mode to the offline charging mode, because the BOSS charging system cannot acquire the use condition of the last running usage amount of the network traffic, the last online ticket of the current network service session generated by the BOSS charging system cannot be charged, and here, the last online ticket of the current network service session generated by the BOSS charging system can be recorded as an overtime online ticket without charging.
After the charging mode of the network traffic is converted from the online charging mode to the offline charging mode, in order to avoid repeated charging, a non-charging identifier is still added to a first offline ticket issued by the GGSN/PGW, so that the network traffic generated within a period of time including a time point when the charging mode is converted cannot be charged by the online charging mode or the offline charging mode, that is, a missed charging phenomenon is generated.
The generation principle of the leaky billing phenomenon is exemplarily illustrated by the drawings.
Fig. 1 is a schematic diagram illustrating a principle of a missed charging phenomenon caused by charging mode transition in the prior art, as shown in fig. 1, at a time T0, a mobile terminal of a user starts to access a mobile internet network, a network service session of this time starts, at this time, charging is performed by an online charging mode, and a GGSN/PGW may start a set policy resolution timer according to a CCA message sent by a BOSS charging system.
At the time of T1, the GGSN/PGW discovers that the set ticket splitting condition is met through the ticket splitting timer, and the GGSN/PGW reports a CCR message to the BOSS charging system, where the CCR message carries an timeout duration threshold, a used traffic size within the current duration (a network traffic size used by the mobile terminal from the time of T0 to the time of T1), a mobile phone number corresponding to the current network service session, the current network service session ID, a GGSN/PGW number used by the current network service session, an SGSN number used by the current network service session, a start time point of the current network service session, ticket splitting identification information, and the like; here, the timeout duration threshold is a threshold set for the message interaction time of the GGSN/PGW and the BOSS charging system, and when a fault such as network interruption occurs in the message interaction of the GGSN/PGW and the BOSS charging system, if the waiting duration exceeds the timeout duration threshold, the charging mode of the network traffic is converted from the online charging mode to the offline charging mode; the timeout duration threshold may be set according to an actual situation, for example, the timeout duration threshold may be set to 1800 seconds; the ticket splitting identifier information may be used to indicate a specific identifier carried in the CCR message, and the BOSS charging system distinguishes whether the network service session needs to be split according to the specific identifier, for example, when the CCR message carries the specific identifier 203, the BOSS charging system determines that the network service session needs to be split for the first time.
Obviously, the starting time point of the current network service session is the time T0; when reporting the CCR message to a BOSS charging system, the GGSN/PGW splits an offline call ticket added with a non-charging identifier, and records the split offline call ticket added with the non-charging identifier as an offline call ticket 1; after receiving the CCR message, the BOSS charging system splits an online ticket, and records the split online ticket as an online ticket 1; here, the offline ticket 1 and the online ticket 1 both correspond to the network traffic generated from the time T0 to the time T1; the online ticket 1 is a charging basis of network traffic generated from the time T0 to the time T1, and the content of the online ticket 1 is the content of a CCR message reported by the GGSN/PGW to a BOSS charging system at the time T1; when the BOSS charging system splits the content of the on-line ticket, the CCA message is issued to the GGSN/PGW to inform the GGSN/PGW of the allowed usage amount of the network traffic starting from the time T1, and when the CCA message is issued to the GGSN/PGW, the BOSS charging center starts a set timeout timer.
At the time of T2, due to reasons such as network failure, low signal reception strength, switching of access networks, etc., interaction abnormality occurs between the GGSN/PGW and the BOSS charging system, and the BOSS charging system does not receive the CCR message reported by the GGSN/PGW from the time of T2; the timeout timer started by the BOSS charging system continuously carries out timeout detection, at the time of T4, the time of the timeout timer started by the BOSS charging system is up, the BOSS charging system still does not receive the CCR message reported by the GGSN/PGW, the BOSS charging system generates an online ticket which is not charged overtime at the time of T4, and the online ticket which is not charged overtime corresponds to the network flow generated from the time of T1 to the time of T4; here, the online ticket that is not charged overtime can be used as an error ticket to add an error code identifier, and the online ticket that is not charged overtime can also be added to an error ticket table.
At the time of T3, the GGSN/PGW finds that the current network service session satisfies the set ticket splitting condition again, at this time, the GGSN/PGW reports a CCR message to the BOSS charging system, continues splitting an offline ticket to which a non-charging identifier is added, marks the offline ticket split at the time of T3 as an offline ticket 2, and starts to determine whether a CCA message returned by the BOSS charging system can be received within the set response timing time, for example, the set response timing time may be 3 seconds; and the GGSN/PGW determines that the CCA message returned by the BOSS charging system cannot be received within the set response timing time, and then does not report the CCR message to the BOSS charging system.
From the moment of T3, GGSN/PGW starts to charge network traffic in an offline charging manner until the network service session is ended, so that the offline ticket 3 split later is added with a charging identifier and can be used as a charging basis for network traffic.
With reference to fig. 1, it can be seen that, from the time T1 to the time T3, the BOSS charging system cannot split an online ticket, until the time T4, the BOSS charging system cannot split an online ticket that is not charged overtime, and the GGSN/PGW splits an offline ticket added with a non-charging identifier at the time T3; that is, for the network traffic generated from the time T1 to the time T3, neither the online ticket nor the offline ticket can be used as the charging basis, resulting in charging loss.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present invention are intended to provide a method and an apparatus for performing a supplementary charging, which can perform a supplementary charging for a missed charging phenomenon caused by a handover between an online charging and an offline charging when a user accesses a mobile internet through a mobile terminal.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a supplementary charging method, which comprises the following steps:
acquiring an overtime non-charging online ticket generated based on an online charging mode;
after generating the offline call tickets added with the charging identifications, acquiring each offline call ticket added with the non-charging identification;
finding out the off-line call ticket corresponding to the on-line call ticket which is not charged overtime in each obtained off-line call ticket;
and carrying out charging processing based on the found offline ticket.
In the above scheme, finding out the offline ticket corresponding to the online ticket that is not billed overtime from the acquired offline tickets includes:
finding out the off-line call tickets meeting the call ticket matching condition from the obtained off-line call tickets, and taking the found off-line call tickets meeting the call ticket matching condition as the off-line call tickets corresponding to the on-line call tickets which are not charged overtime;
the ticket matching conditions are as follows: the time period corresponding to the offline ticket and the time period corresponding to the overtime non-charging online ticket have an overlapping part.
In the above scheme, the method is applied to each network service session when a mobile terminal accesses a mobile internet, and finding out an offline ticket corresponding to the online ticket that is not billed overtime from the acquired offline tickets, and includes:
respectively carrying out field matching on the online ticket which is not charged overtime and each offline ticket, finding out the offline ticket with the same set field as the online ticket which is not charged overtime in each acquired offline ticket, and taking the found offline ticket with the same set field as the online ticket which is not charged overtime as: the offline call ticket corresponds to the online call ticket which is not charged overtime;
the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
In the above scheme, the performing charging processing based on the found offline ticket includes: changing the non-charging identification in the found off-line call ticket into a charging identification to obtain an off-line call ticket with updated identification; and performing charging processing in an offline charging mode based on the offline ticket after the identifier is updated.
In the above scheme, the performing charging processing in an offline charging mode based on the updated offline ticket includes: and sending the offline call ticket with the updated identifier to an offline charging system, and performing offline charging by the offline charging system based on the offline call ticket with the updated identifier.
The embodiment of the invention also provides a supplementary charging device, which comprises: the system comprises a first acquisition module, a second acquisition module, a search module and a charging processing module; wherein the content of the first and second substances,
the first acquisition module is used for acquiring an overtime non-charging online ticket generated based on an online charging mode;
the second acquisition module is used for acquiring each offline ticket added with a non-charging identifier after the offline ticket added with the charging identifier is generated;
the searching module is used for finding out the offline call ticket corresponding to the online call ticket which is not charged overtime in each acquired offline call ticket;
and the charging processing module is used for carrying out charging processing based on the found off-line ticket.
In the above scheme, the search module is specifically configured to find an offline ticket meeting a ticket matching condition from among the obtained offline tickets, and use the found offline ticket meeting the ticket matching condition as an offline ticket corresponding to the online ticket that is not billed overtime;
the ticket matching conditions are as follows: the time period corresponding to the offline ticket and the time period corresponding to the overtime non-charging online ticket have an overlapping part.
In the above scheme, the device is configured to charge for each network service session in which the mobile terminal accesses the mobile internet; the search module is specifically used for respectively carrying out field matching on the overtime non-charging online ticket and each offline ticket, finding out the offline ticket with the same set field as the overtime non-charging online ticket from the obtained offline tickets, and taking the found offline ticket with the same set field as the overtime non-charging online ticket as the offline ticket corresponding to the overtime non-charging online ticket;
the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
In the above scheme, the charging processing module is specifically configured to change a non-charging identifier in the found offline ticket into a charging identifier, so as to obtain an offline ticket with an updated identifier; and performing charging processing in an offline charging mode based on the offline ticket after the identifier is updated.
In the above scheme, the charging processing module is specifically configured to send the offline ticket after the identifier is updated to an offline charging system, where the offline ticket after the identifier is updated is used as a charging basis for an offline charging mode.
The embodiment of the invention provides a supplementary charging method and a supplementary charging device, which are used for acquiring an overtime non-charging online ticket generated based on an online charging mode; after generating the offline call tickets added with the charging identifications, acquiring each offline call ticket added with the non-charging identification; finding out the off-line call ticket corresponding to the on-line call ticket which is not charged overtime in each obtained off-line call ticket; performing charging processing based on the found offline ticket; therefore, when a user accesses the mobile internet through the mobile terminal, the charging is supplemented aiming at the phenomenon of charging leakage caused by the switching between online charging and offline charging.
Drawings
Fig. 1 is a schematic diagram illustrating a charging missing phenomenon caused by charging mode transition in the prior art;
FIG. 2 is a schematic diagram of a process for generating an online ticket that is not billed overtime in the prior art;
fig. 3 is a flowchart of a supplementary charging method according to a first embodiment of the present invention;
fig. 4 is another flowchart of the supplementary charging method according to the first embodiment of the present invention;
fig. 5 is a flowchart of a supplementary charging method according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a structure of a supplementary charging apparatus according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Fig. 2 is a schematic diagram of a process for generating an online ticket that is not billed for time out in the prior art, and as shown in fig. 2, the process includes:
step 201: the network service Session information stored in the Session Store is checked.
Step 202: judging whether the network service session is overtime, and executing the step 203 when the network service session is overtime; when the network service session is not timed out, the process returns to step 201.
Step 203: and generating and outputting an online ticket which is not charged overtime.
In the prior art, only an online ticket which is not charged overtime can be generated, and the charging missing problem cannot be subjected to supplementary charging.
After step 203, the flow ends.
First embodiment
Fig. 3 is a flowchart of a supplementary charging method according to a first embodiment of the present invention, as shown in fig. 3, the flowchart includes:
step 301: and acquiring the overtime non-charging online ticket generated based on the online charging mode.
Here, the online ticket that is not billed for the timeout may be: and the last online ticket of the network service session is generated by the BOSS charging system.
Step 302: and after the offline call ticket added with the charging identifier is generated, acquiring each offline call ticket added with the non-charging identifier.
It can be understood that, in the prior art, offline charging can be performed according to the offline ticket added with the charging identifier; however, for each offline ticket added with a non-charging identifier, charging processing is not usually performed; therefore, when the online ticket which is not charged overtime and any one offline ticket added with the non-charging identification have overlapping parts in time, the phenomenon of charging omission can occur.
Step 303: and finding out the offline call ticket corresponding to the online call ticket which is not charged overtime in each acquired offline call ticket.
In one implementation manner of the step, the offline call tickets meeting the call ticket matching condition can be found out from the obtained offline call tickets, and the found offline call tickets meeting the call ticket matching condition are used as the offline call tickets corresponding to the online call tickets which are not charged overtime; here, the ticket matching condition is: the time period corresponding to the offline ticket and the time period corresponding to the overtime non-charging online ticket have an overlapping part.
It can be seen that, in the time period corresponding to the offline ticket satisfying the ticket matching condition, the online ticket is an overtime non-charging online ticket, and obviously no charging is performed; in the time period corresponding to the offline ticket meeting the ticket matching condition, a non-charging identifier is added in the offline ticket, so that charging can not be carried out according to the offline ticket; the embodiment of the invention can carry out supplementary charging according to the off-line call ticket meeting the call ticket matching condition.
The supplementary charging method of the embodiment of the invention can be applied to each network service conversation of the mobile terminal accessing the mobile internet, in another implementation mode of the step, the offline call ticket with the same set field as the online call ticket which is not charged overtime can be found out in each acquired offline call ticket by respectively carrying out field matching on the online call ticket which is not charged overtime and each offline call ticket, and the found offline call ticket with the same set field as the online call ticket which is not charged overtime is taken as: and the offline call ticket corresponds to the online call ticket which is not charged overtime.
Here, the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
Step 304: and carrying out charging processing based on the found offline ticket.
Illustratively, this step may include: changing the non-charging identification in the found off-line call ticket into a charging identification to obtain an off-line call ticket with updated identification; and performing charging processing in an offline charging mode based on the offline ticket after the identifier is updated.
In actual implementation, the offline ticket with the updated identifier may be sent to an offline charging system, and the offline ticket with the updated identifier is used as a charging basis for an offline charging mode.
The flow of the supplementary charging method according to the embodiment of the present invention may also be described with reference to fig. 4, as shown in fig. 4, the flow includes:
step 401-403: the steps are completely the same as the steps 201 to 203, and are not described herein again.
Step 404: checking each offline call ticket added with a non-charging identifier according to the online call ticket which is not charged overtime, and if the offline call ticket corresponding to the online call ticket which is not charged overtime can be found, executing step 405; otherwise, continuing to check each offline ticket added with the non-charging identifier.
In this step, the implementation manner of finding out the offline ticket corresponding to the online ticket that is not billed overtime has already been described in step 303, and is not described here again.
Step 405: and generating a charging omission call ticket according to the found off-line call ticket and the overtime non-charging on-line call ticket.
In a specific implementation manner, a time period overlapping part of the found offline ticket and the online ticket that is not charged overtime can be obtained, and then the offline ticket corresponding to the time period overlapping part is used as a charging omission ticket.
Step 406: and charging according to the charging omission ticket, and then ending the process.
Here, for the missed charging ticket, an offline charging mode may be used for charging.
Therefore, the supplementary charging method of the embodiment of the invention can find out the time period when the online charging mode and the offline charging mode are not both used for charging, and carry out supplementary charging according to the offline call ticket of the corresponding time period; therefore, the reliability and the accuracy of the flow charging can be ensured, the loss can be avoided, and the income can be guaranteed.
Second embodiment
In order to further embody the object of the present invention, further illustration is made on the basis of the first embodiment of the present invention.
The supplementary charging method of the second embodiment of the present invention can be applied to each network service session of the mobile terminal accessing the mobile internet; fig. 5 is a flowchart of a supplementary charging method according to a second embodiment of the present invention, as shown in fig. 5, the flowchart includes:
step S1: GGSN/PGW sends DCC message for indicating online charging to BOSS charging system, BOSS charging system saves CCR message in Session Store.
In actual implementation, the BOSS charging system stores a ccr (int) message, also referred to as a ccr (initial) message, in a Session Store; the content carried by the ccr (int) message includes, but is not limited to, the current network service session ID, the start time point of the current network service session, the update time of the current network service session, the GGSN/PGW number used by the current network service session, the SGSN number used by the current network service session, the service number used by the current network service session, the session state of the current network service session, and the like.
Here, the update time of the current network service session is: determining the time when the current network service session meets the set ticket splitting condition, for example, starting from the time t1, determining that the current network service session meets the set ticket splitting condition, and setting the update time of the current network service session to be the time t 1; the service session of the network service session is used to indicate the network service currently required by the user, for example, if the user needs to access the website 1 during the network service session, the service session of the network service session is a service number corresponding to the website 1, and the service number corresponding to each website may be preset; the session state of the network service session includes, but is not limited to, a normal session state, a waiting session state, an error session state, and the like.
When the GPRS service Session meets the preset ticket splitting condition, the GGSN/PGW splits an offline ticket, and reports a ccr (update) message to the BOSS charging system, where the BOSS charging system may Store the ccr (update) message in a Session Store, and may also report the ccr (update) message to the CBE charging system.
The content carried by the ccr (update) message includes but is not limited to: the network service session ID, the start time point of the network service session, the update time of the network service session, the GGSN/PGW number used by the network service session, the SGSN number used by the network service session, the service number used by the network service session, the uplink traffic used by the user at the update time up to the network service session, the downlink traffic used by the user at the update time up to the network service session, the total traffic used by the user at the update time up to the network service session, and the like.
Step S2: after receiving the CCR (UPDATE) message, the CBE charging system reads the message stored in the Session Store.
In this step, the CBE charging system may perform field matching on the ccr (update) message and the read message, assign a corresponding variable to each field from the start time of the network service Session to the update time of the network service Session when finding that there is a network service Session with the same ID through field matching, and update the field of the message stored in the Session Store by using the assigned variable; in addition, the variable after being assigned may also be output to the specified file directory according to the binary file format after corresponding to each ticket field, and at the same time, information such as the current flow remaining, balance, user status, etc. of the user may also be read, the next authorized amount may be calculated, and cca (update) may be issued to GGSN/PGW, and the process may continue until the user actively goes offline in a normal condition.
Step S3: and judging whether the network service session is abnormal overtime or not, splitting a normal online ticket if the network service session is not abnormal overtime, and executing the step S4 if the network service session is abnormal overtime.
In practical implementation, it may be determined whether a time period from the start time of the current network service session to the start time of the current network service session exceeds a time-out duration threshold, and if so, it is determined that the current network service session is abnormal overtime, otherwise, it is determined that the current network service session is not abnormal overtime.
The timeout duration threshold here may be set according to an actual application scenario, for example, the timeout duration threshold is 3600 seconds.
In a specific embodiment, the GGSN/PGW may determine whether the network service session is abnormal due to timeout by using an online procedure.
Furthermore, the normal online ticket is the online ticket added with the charging identifier, so that the normal online ticket can be used as the basis of online charging; in practical application, the split normal online telephone bill can be stored in the list database through a warehousing process, and the GGSN/PGW can read the normal online telephone bill stored in the list database so as to facilitate online charging.
Step S4: splitting a latest online ticket according to CCR (UPDATE) message, and storing the split online ticket into an online error ticket table.
Here, the latest online ticket is split into the online ticket which is not charged overtime, and the storage program can write the online ticket which is not charged overtime into the online error ticket table.
Further, in this step, the Session state of the network service Session in the ccr (update) message may be updated to a Session error state, and the timeout Session stored in the Session Store is deleted; here, the identification of the session error state may be 10.
Step S5: and the GGSN/PGW normally splits off-line call tickets, the FTP process stores the split off-line call tickets, and then judges whether the identification of the off-line call tickets is a non-charging identification, if so, the step S6 is executed, otherwise, the step S7 is executed.
The FTP process stores the split off-line call ticket into a CBE charging system, and specifically stores the split off-line call ticket into a CBE call ticket file storage directory of the CBE charging system.
Here, the non-charging identifier may be 3136, and the charging identifier may be 3131, where if the identifier of the offline ticket is 3136, it indicates that the ticket does not need to be charged, and if the identifier of the offline ticket is 3136, it indicates that the ticket does not need to be charged offline.
Step S6: and storing the offline call ticket into an offline non-charging list.
In practical implementation, the offline ticket can be output to the non-charging directory, and then the warehousing program writes the offline ticket into the offline non-charging table by reading the non-charging directory.
Step S7: and storing the offline call ticket into a list database.
Here, the off-line call ticket may be stored in the inventory database by using a warehousing process, so that the GGSN/PGW may read the off-line call ticket stored in the inventory database, so as to perform off-line charging.
In practical application, charging and pricing can be carried out according to fields such as roaming types, used services and flow values in the offline call tickets, meanwhile, the charge fields are filled into the cost after pricing, the call tickets are written into an offline call ticket warehousing directory, and a warehousing process reads the call tickets and writes the call tickets into a database for a user to inquire.
Step S8: the supplementary procedure finds out the off-line ticket corresponding to the on-line ticket in the on-line error ticket list from the off-line tickets in the off-line non-charging list, generates supplementary ticket data according to the found off-line ticket, adds the supplementary ticket data into the supplementary ticket data list, and meanwhile, updates the session state of the network service session aiming at the on-line ticket corresponding to the found off-line ticket in the on-line error ticket list.
The charging data is the basis for charging, and is used for indicating the data such as flow, amount and the like which need to be charged; before the offline call ticket meeting the call ticket matching condition is found out, the identification of the session state of the network service session can be updated, so that the screening can be carried out according to the identification of the session state of the network service session, the number of the online call tickets participating in the matching is reduced, and the matching efficiency is improved.
Furthermore, the non-charging identification carried by the charging data in the charging data table can be modified into the charging identification; after the order supplementing data is added to the order supplementing data table, the ex-warehouse process can collect the order supplementing data in the order supplementing data table into a CBE charging system, and then normal offline charging can be performed according to the step S5 and the step S7; it can be seen that the second embodiment of the present invention re-charges the offline ticket that is not participating in the charging when the time is out, and ensures that the ticket particles that should be charged are returned to the bin.
For finding out the offline ticket, two implementation manners are given below.
In one implementation, an offline ticket meeting a ticket matching condition is used as a found offline ticket, where the ticket matching condition is: the time period corresponding to the off-line call ticket and the time period corresponding to the on-line call ticket have an overlapping part.
In another implementation manner, field matching is performed on the online ticket which is not charged overtime and each offline ticket, an offline ticket which has the same set field as the online ticket which is not charged overtime is found out from each acquired offline ticket, and the found offline ticket which has the same set field as the online ticket which is not charged overtime is taken as: the offline call ticket corresponds to the online call ticket which is not charged overtime;
the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
It can be seen that, in fig. 5, the part above the dotted line is the online charging processing flow, and the part below the dotted line is the offline processing flow.
Third embodiment
For the supplementary charging method according to the first embodiment of the present invention, a third embodiment of the present invention also provides a supplementary charging apparatus.
Fig. 6 is a schematic diagram of a structure of a supplementary charging apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes: a first obtaining module 601, a second obtaining module 602, a searching module 603 and a charging processing module 604; wherein the content of the first and second substances,
a first obtaining module 601, configured to obtain an online ticket that is generated based on an online charging manner and is not charged overtime;
a second obtaining module 602, configured to obtain each offline ticket to which a non-charging identifier is added after the offline ticket to which the charging identifier is added is generated;
a searching module 603, configured to find an offline ticket corresponding to the online ticket that is not billed overtime from the acquired offline tickets;
and a charging processing module 604, configured to perform charging processing based on the found offline ticket.
Specifically, the searching module 603 is specifically configured to find an offline ticket meeting a ticket matching condition from among the obtained offline tickets, and use the found offline ticket meeting the ticket matching condition as an offline ticket corresponding to the online ticket that is not billed overtime; here, the ticket matching condition is: the time period corresponding to the offline ticket and the time period corresponding to the overtime non-charging online ticket have an overlapping part.
Optionally, the apparatus is configured to perform charging for each network service session in which the mobile terminal accesses the mobile internet; the searching module 603 is specifically configured to perform field matching on the online ticket that is not billed overtime and each offline ticket, find out, from the obtained offline tickets, an offline ticket that has the same set field as the online ticket that is not billed overtime, and use the found offline ticket that has the same set field as the online ticket that is not billed overtime as an offline ticket corresponding to the online ticket that is not billed overtime;
here, the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
Optionally, the charging processing module 604 is configured to change a non-charging identifier in the found offline ticket into a charging identifier, so as to obtain an offline ticket with an updated identifier; and performing charging processing in an offline charging mode based on the offline ticket after the identifier is updated.
Optionally, the charging processing module 604 is configured to send the identifier-updated offline ticket to an offline charging system, where the identifier-updated offline ticket is used as a charging basis for an offline charging mode.
In practical applications, the first obtaining module 601, the second obtaining module 602, the searching module 603, and the billing Processing module 604 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located in the GGSN/PGW.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method of supplemental charging, the method comprising:
acquiring an overtime non-charging online ticket generated based on an online charging mode;
after generating the offline call tickets added with the charging identifications, acquiring each offline call ticket added with the non-charging identification;
finding out the off-line call ticket corresponding to the on-line call ticket which is not charged overtime in each obtained off-line call ticket;
performing charging processing based on the found offline ticket;
and the overtime non-charging online ticket is the last online ticket of the network service session generated based on the network service session information recorded by the charging system after the set overtime time is reached in the process that the charging system is switched from the online charging mode to the offline charging mode.
2. The method of claim 1, wherein the finding out an offline ticket corresponding to the online ticket that is not billed for the timeout from among the obtained offline tickets comprises:
finding out the off-line call tickets meeting the call ticket matching condition from the obtained off-line call tickets, and taking the found off-line call tickets meeting the call ticket matching condition as the off-line call tickets corresponding to the on-line call tickets which are not charged overtime;
the ticket matching conditions are as follows: the time period corresponding to the offline ticket and the time period corresponding to the overtime non-charging online ticket have an overlapping part.
3. The method of claim 1, wherein the method is applied to each network service session of a mobile terminal accessing a mobile internet, and the finding of the offline ticket corresponding to the online ticket that is not billed for the timeout from the obtained offline tickets comprises:
respectively carrying out field matching on the online ticket which is not charged overtime and each offline ticket, finding out the offline ticket with the same set field as the online ticket which is not charged overtime in each acquired offline ticket, and taking the found offline ticket with the same set field as the online ticket which is not charged overtime as: the offline call ticket corresponds to the online call ticket which is not charged overtime;
the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
4. The method according to any one of claims 1 to 3, wherein the performing charging processing based on the found offline ticket comprises: changing the non-charging identification in the found off-line call ticket into a charging identification to obtain an off-line call ticket with updated identification; and performing charging processing in an offline charging mode based on the offline ticket after the identifier is updated.
5. The method of claim 4, wherein the charging processing is performed in an offline charging mode based on the offline ticket updated by the identifier, and the method comprises the following steps: and sending the offline call ticket with the updated identifier to an offline charging system, and performing offline charging by the offline charging system based on the offline call ticket with the updated identifier.
6. A supplementary charging apparatus, comprising: the system comprises a first acquisition module, a second acquisition module, a search module and a charging processing module; wherein the content of the first and second substances,
the first acquisition module is used for acquiring an overtime non-charging online ticket generated based on an online charging mode;
the second acquisition module is used for acquiring each offline ticket added with a non-charging identifier after the offline ticket added with the charging identifier is generated;
the searching module is used for finding out the offline call ticket corresponding to the online call ticket which is not charged overtime in each acquired offline call ticket;
the charging processing module is used for carrying out charging processing based on the found off-line ticket;
and the overtime non-charging online ticket is the last online ticket of the network service session generated based on the network service session information recorded by the charging system after the set overtime time is reached in the process that the charging system is switched from the online charging mode to the offline charging mode.
7. The device according to claim 6, wherein the search module is specifically configured to find an offline ticket meeting a ticket matching condition from among the obtained offline tickets, and use the found offline ticket meeting the ticket matching condition as an offline ticket corresponding to the online ticket that is not billed for the timeout;
the ticket matching conditions are as follows: the time period corresponding to the offline ticket and the time period corresponding to the overtime non-charging online ticket have an overlapping part.
8. The apparatus according to claim 6, wherein the apparatus is configured to charge for each network service session when the mobile terminal accesses the mobile internet; the search module is specifically used for respectively carrying out field matching on the overtime non-charging online ticket and each offline ticket, finding out the offline ticket with the same set field as the overtime non-charging online ticket from the obtained offline tickets, and taking the found offline ticket with the same set field as the overtime non-charging online ticket as the offline ticket corresponding to the overtime non-charging online ticket;
the setting field includes: the mobile phone number corresponding to the network service session, the network service session ID, the GGSN number of the GPRS support node used by the network service session, the SGSN number of the GPRS support node used by the network service session, the service number of the network service session and the start time of the network service session.
9. The device according to any one of claims 6 to 8, wherein the charging processing module is specifically configured to change a non-charging identifier in the found offline ticket into a charging identifier, and obtain an offline ticket with an updated identifier; and performing charging processing in an offline charging mode based on the offline ticket after the identifier is updated.
10. The apparatus according to claim 9, wherein the charging processing module is specifically configured to send the identifier-updated offline ticket to an offline charging system, and the identifier-updated offline ticket is used as a charging basis for an offline charging mode.
CN201610644532.8A 2016-08-08 2016-08-08 Supplementary charging method and device Active CN107708082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610644532.8A CN107708082B (en) 2016-08-08 2016-08-08 Supplementary charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610644532.8A CN107708082B (en) 2016-08-08 2016-08-08 Supplementary charging method and device

Publications (2)

Publication Number Publication Date
CN107708082A CN107708082A (en) 2018-02-16
CN107708082B true CN107708082B (en) 2021-04-23

Family

ID=61169177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610644532.8A Active CN107708082B (en) 2016-08-08 2016-08-08 Supplementary charging method and device

Country Status (1)

Country Link
CN (1) CN107708082B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073926B (en) * 2020-09-30 2022-02-01 北京思特奇信息技术股份有限公司 Flow auditing method and system based on message charging

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466523C (en) * 2006-06-09 2009-03-04 华为技术有限公司 System and method combined on-line charge with off-line charge
CN101431580B (en) * 2008-10-24 2011-08-17 中国移动通信集团山东有限公司 Voice service charging method and apparatus thereof
CN102075897B (en) * 2009-11-20 2013-12-11 中国移动通信集团江苏有限公司 Method and system for charging mobile data service
CN102355650B (en) * 2011-07-15 2016-08-17 华为软件技术有限公司 A kind of method for processing business and system
CN104717627A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Billing ticket establishing method, data service billing method and related device

Also Published As

Publication number Publication date
CN107708082A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
EP2698946B1 (en) Method for processing a rate group and related gateway device
US11457111B2 (en) Method and apparatus for verifying the correctness of a roaming account balance
CN101183958A (en) Charging control method, charging center and related equipment
CN102238512A (en) Policy application method for machine type communication (MTC) and policy and charging enforcement function
EP2159960A1 (en) Billing testing method and billing device
US9204280B2 (en) Method and apparatus for charging product-related services in a communication network
CN113873455A (en) Flow statistical method and system, computer readable storage medium
CN107708082B (en) Supplementary charging method and device
CN106488428B (en) Policy control method of user equipment, network equipment and system
CN109963260B (en) Method and device for determining service termination
US20170026524A1 (en) Charging method and apparatus
CN103441889B (en) Statistical information generating method and system
CN108270808B (en) Method, device and system for realizing application detection and control
CN102395117A (en) Method and device for identifying content type
CN102238515B (en) Method, device and system for complementarily deducting fee, and online charging system
CN110300235B (en) Communication service charging method and device
CN108270580B (en) Reminding method, device and system for online charging
US10091008B2 (en) Method and apparatus for performing credit reservations for online charging in a communication network
CN105393616A (en) Exchange, wireless network control device, wireless network device, and wireless communication network system
CN111242605B (en) Mobile payment method
US20220279325A1 (en) System and method for online charging telecommunication services in real time
US10587425B2 (en) Real-time co-ordinated fulfillment of refill transactions of a user account in a communication system
CN110876124A (en) Data service charging method, device, service control point and computer storage medium
CN112085539A (en) Method, system and storage medium for rented battery offline charging
EP2590359B1 (en) Method, system, charging equipment, and account balance management center for free resources processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant