CN107846288B - Method, device and system for realizing charging - Google Patents

Method, device and system for realizing charging Download PDF

Info

Publication number
CN107846288B
CN107846288B CN201610831084.2A CN201610831084A CN107846288B CN 107846288 B CN107846288 B CN 107846288B CN 201610831084 A CN201610831084 A CN 201610831084A CN 107846288 B CN107846288 B CN 107846288B
Authority
CN
China
Prior art keywords
cumulant
information
platform
abm
network element
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
CN201610831084.2A
Other languages
Chinese (zh)
Other versions
CN107846288A (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 Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201610831084.2A priority Critical patent/CN107846288B/en
Publication of CN107846288A publication Critical patent/CN107846288A/en
Application granted granted Critical
Publication of CN107846288B publication Critical patent/CN107846288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L12/141Indication of costs
    • H04L12/1414Indication of costs in real-time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/857Cumulative charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/88Provision for limiting connection, or expenditure

Abstract

The invention discloses a method, a device and a system for realizing charging, relating to the field of charging. After receiving credit control request end information sent by a service network element, the OCS sends a cumulant query request to the ABM so as to obtain cumulant information with current cumulant version information from the ABM; carrying out pricing processing according to the acquired cumulant information; after the pricing processing is finished, fee deduction end information is sent to the ABM, wherein the fee deduction end information comprises the current cumulant version information, so that the ABM can update cumulant and balance when cumulant versions are consistent; and sending credit control response ending information used for indicating successful charging to the service network element under the condition that the ABM successfully updates the accumulated amount and the balance. The invention can solve the problem of unnecessary cumulant lock conflict caused by overlarge cumulant lock range on the basis of ensuring the accuracy of concurrent cumulant operation by adopting a version check mechanism, thereby improving the charging concurrent processing performance.

Description

Method, device and system for realizing charging
Technical Field
The present invention relates to the field of charging, and in particular, to a method, an apparatus, and a system for implementing charging.
Background
The main telecommunication products comprise mobile phones, wired broadband, ordinary phones, ITV and the like, and the single-product packages or the converged packages are mainly sold in the current business foreground. The basic form of a telecommunications package is that a certain package fee contains a combination of service usage of a certain type or types of products. Service usage is known as cumulative volume in the telecommunications billing industry.
It is common that a user concurrently uses a plurality of services, and has a plurality of cumulants or a plurality of users share cumulants. Currently, cumulant lock technology is adopted to ensure the accuracy of telecommunication charging pricing.
The cumulant LOCK means that the inquired cumulant details are written into a cumulant LOCK table (random _ LOCK) before the first transaction needs to update the cumulant.
If the cumulant is updated if a second transaction exists and the cumulant is inquired under the condition that the cumulant updating operation is not carried out and the data are not deleted from the cumulant lock table, cumulant lock conflicts can be returned if the same records are found in the cumulant lock table, and the lock conflicts can occur frequently.
At present, the situation of using the accumulation lock to operate the accumulation between an OCS (Online Charging System) platform and an ABM (Account Balance Management) platform is shown in fig. 1, for example, there are 6 accumulation details for 1 OCS user, and the details are shown in table 1.
Figure BDA0001115966850000011
Figure BDA0001115966850000021
TABLE 1
Wherein, the following steps are included in fig. 1:
step 101, the service network element sends CCR (Credit Control Request) initial information to the OCS platform.
Step 102, the OCS platform sends cumulant query packets to the ABM platform.
And 103, inquiring the cumulant according to the cumulant by the ABM platform.
The ABM platform provides the cumulative amount information to the OCS platform, step 104.
Step 105, the OCS platform records the accumulated amount information into a ratebleevent to be written into the OCS session.
Step 106, the OCS platform sends CCA (Credit Control Answer) initial information to the service network element.
Step 107, the service network element sends CCR update information to the OCS platform.
And step 108, the OCS platform performs rating processing by using the accumulated quantity information in RatableEvent in the OCS session information.
Step 109, the OCS platform sends CCA update information to the service network element.
Step 110, the service network element sends CCR ending information to the OCS platform.
Step 111, the OCS platform sends an cumulant query packet to the ABM platform, wherein the cumulant query packet carries a locking identifier.
When the CCR ending information reaches the OCS, the OCS calls the rating module to organize the cumulant information needing to be inquired. Because different pricing paragraphs may be entered according to different accumulation amounts, and the rating module does not know all the accumulation amount details that the user can use and cannot make rating, all the accumulation amount details of the user can only be found out by the ABM.
And step 112, inquiring the cumulant according to the cumulant query package by the ABM platform.
At step 113, the ABM platform writes the queried accumulation details into the accumulation LOCK table (table _ LOCK) to indicate that the accumulations are locked.
Step 114, the ABM platform returns the queried cumulant information to the OCS platform.
And step 115, the OCS platform performs rating processing according to the latest accumulated quantity information.
And step 116, after the pricing is finished, the OCS platform sends a deduction ending packet to the ABM platform to request for updating the cumulant and the balance.
Step 117, the ABM platform updates the cumulative amount and balance.
The ABM platform deletes the cumulant detail record from the cumulant lock table to indicate that the cumulant is unlocked, step 118.
Step 119, the ABM platform returns the deduction result to the OCS platform.
Step 120, the OCS platform sends CCA end information to the service network element.
Wherein, in step 113, the 6 accumulation amounts are all written into the accumulation amount lock table. Assuming that this is a voice call ticket trigger, only 3 accumulated quantities 1001, 1003, and 1004 are possible to use. But in practice 6 accumulations have locked.
In addition, if there is a short message ticket trigger of the user, even if only the 1 cumulant of 1002 is used, the cumulant is locked when inquiring the cumulant, which results in failure of the ABM to reply to the OCS system.
At present, the processing method after generating the cumulant lock conflict includes:
(1) the cumulative query packet for the second transaction is sent to the ABM and then re-queued in the message queue for the next transaction. Will result in extended treatment times;
(2) and forcibly deleting the overtime records in the accumulation table, and inserting the records of the new second-time accumulation query. The transaction needs to wait for timeout, which results in prolonged processing time;
(3) the CCA with the accumulated amount query failed is returned to the OCS. Will result in transaction failures.
According to the analysis, the cumulant lock mechanism ensures the accuracy of concurrent cumulant operation, but does not solve the concurrency problem, and the range of the cumulant lock is introduced to be too large, so that some cumulant unnecessary locks are caused, and the concurrent processing performance is reduced.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a system for implementing charging, which can solve the problem of unnecessary cumulant lock conflicts caused by an excessively large cumulant lock range by using a version check mechanism on the basis of ensuring accuracy of concurrent cumulant operations, thereby improving charging concurrent processing performance.
According to an aspect of the present invention, there is provided a method for implementing charging, including:
after credit control request end information sent by a service network element is received, sending an cumulant query request to an ABM platform so as to obtain cumulant information with current cumulant version information from the ABM platform;
carrying out pricing processing according to the acquired cumulant information;
after rating processing is finished, fee deduction end information is sent to the ABM platform, wherein the fee deduction end information comprises current cumulant version information, so that the ABM platform updates cumulant and balance after the current cumulant version information is checked;
and sending credit control response ending information used for indicating successful charging to the service network element under the condition that the ABM platform successfully updates the accumulated amount and the balance.
In one embodiment, in the case that the ABM platform fails to update the cumulant and balance, the number of update failures is counted;
and under the condition that the current updating failure times do not exceed a preset threshold, repeatedly executing the step of sending the cumulant query request to the ABM platform.
In one embodiment, when the current update failure times reach a predetermined threshold, credit control response end information for indicating abnormal charging is sent to the service network element.
In one embodiment, after receiving initial information of a credit control request sent by a service network element, sending an cumulant query packet to an ABM platform so as to receive cumulant information with current cumulant version information from the ABM platform;
storing the received cumulant information into a designated storage space;
and sending the credit control response initial information to the service network element.
In one embodiment, after credit control request update information sent by a service network element is received, pricing is carried out by utilizing cumulant information with latest cumulant version information in a designated storage space;
and sending credit control response updating information to the service network element.
According to another aspect of the present invention, there is provided an online charging system platform for implementing charging, including a first interface unit, a second interface unit, and a rating processing unit, wherein:
the second interface unit is used for sending cumulant inquiry request to the balance management ABM platform after the first interface unit receives the credit control request end information sent by the service network element, so as to obtain cumulant information with current cumulant version information from the ABM platform; under the condition of receiving indication information which is sent by an ABM platform and used for indicating that the cumulant updating and the balance are successful, indicating a first interface unit to send credit control response ending information used for indicating successful charging to a service network element;
the pricing processing unit is used for carrying out pricing processing according to the acquired cumulant information; and after the pricing processing is finished, indicating the second interface unit to send fee deduction end information to the ABM platform, wherein the fee deduction end information comprises current accumulated amount version information, so that the ABM platform updates accumulated amount and balance after the current accumulated amount version information is checked.
In one embodiment, the online charging system platform further comprises a statistics unit, wherein:
the counting unit is used for counting the updating failure times under the condition that the second interface unit receives indication information which is sent by the ABM platform and used for indicating updating cumulant and balance failure; and in the case that the current updating failure times do not exceed the preset threshold, instructing the second interface unit to repeatedly execute the operation of sending the cumulant query request to the ABM platform.
In an embodiment, the counting unit is further configured to instruct the first interface unit to send, to the service network element, credit control response end information indicating abnormal charging, when the current update failure number reaches a predetermined threshold.
In one embodiment, the online charging system platform further comprises a storage control unit, wherein:
the second interface unit is also used for sending cumulant inquiry packets to the ABM platform after the first interface unit receives the credit control request initial information sent by the service network element, so as to receive cumulant information with current cumulant version information from the ABM platform;
a storage control unit for storing the received accumulation amount information into a specified storage space; and instructing the first interface unit to send credit control response initial information to the service network element.
In an embodiment, the pricing processing unit is further configured to, after the first interface unit receives the credit control request update information sent by the service network element, perform pricing by using the accumulated amount information with the latest accumulated amount version information in the specified storage space, and instruct the first interface unit to send the credit control response update information to the service network element.
According to another aspect of the present invention, there is provided a system for implementing charging, including an OCS platform of an online charging system according to any of the above embodiments, and
the balance management ABM platform is used for carrying out cumulant query according to the cumulant query request sent by the OCS platform and providing queried cumulant information to the OCS platform, wherein the cumulant information comprises current cumulant version information; after the deduction ending information sent by the OCS platform is received, if the cumulant version information included in the deduction ending information is consistent with the current cumulant version information, the cumulant and the balance are updated, and indication information used for indicating that the cumulant and the balance are updated successfully is sent to the OCS platform.
In one embodiment, the ABM platform is further configured to send, to the OCS platform, indication information indicating that updating the accumulated amount and the balance fails, in a case that the accumulated amount version information included in the deduction end information is inconsistent with the current accumulated amount version information.
In one embodiment, the ABM platform is further configured to perform accumulation amount query according to the accumulation amount query packet sent by the OCS platform, and provide the queried accumulation amount information to the OCS platform, where the accumulation amount information includes current accumulation amount version information.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a prior art operation between an OCS and an ABM using a cumulant lock on cumulant.
Fig. 2 is a schematic diagram of an embodiment of a method for implementing charging according to the present invention.
Fig. 3 is a schematic diagram of an embodiment of an online charging system platform for implementing charging according to the present invention.
Fig. 4 is a schematic diagram of another embodiment of an online charging system platform for implementing charging according to the present invention.
Fig. 5 is a schematic diagram of an embodiment of a system for implementing charging according to the present invention.
Fig. 6 is a diagram illustrating an embodiment of a charging process according to the present invention.
Fig. 7 is a diagram illustrating another embodiment of the charging process of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 2 is a schematic diagram of an embodiment of a method for implementing charging according to the present invention. Alternatively, the method steps of this embodiment may be performed by the OCS platform. Wherein:
step 201, after receiving the end information of the credit control request sent by the service network element, sending an cumulant query request to the balance management ABM platform, so as to obtain cumulant information with current cumulant version information from the ABM platform.
And step 202, carrying out rating processing according to the acquired accumulated quantity information.
And step 203, after the pricing processing is finished, sending fee deduction finishing information to the ABM platform, wherein the fee deduction finishing information comprises current cumulant version information, so that the ABM platform updates cumulant and balance after the current cumulant version information is checked.
And step 204, under the condition that the ABM platform updates the cumulant and the balance successfully, sending credit control response ending information used for indicating successful charging to the service network element.
According to the method for realizing charging provided by the embodiment of the invention, the problem of unnecessary cumulant lock conflict caused by overlarge cumulant lock range can be solved by adopting a version check mechanism on the basis of ensuring the accuracy of concurrent cumulant operation, so that the charging concurrent processing performance is improved.
For example, on the cumulative table on the ABM side, one field is added: version number (Version _ num), and the initial value of the Version number field of each cumulant record is 0. An AVP (Attribute value pair) needs to be added to the accumulated amount details of CCA returned to the OCS by the ABM to carry the queried version number information. The corresponding contents are shown in table 2.
Figure BDA0001115966850000081
TABLE 2
And when the ABM side updates the cumulant each time, comparing whether the version number in the current record is consistent with the version number in the cumulant result to be updated or not, if not, returning to failure of updating, if so, continuing to update, and adding 1 to the version number accumulation.
Alternatively, in case the ABM platform fails to update the cumulative amount and balance, the OCS needs to count the number of update failures. And under the condition that the current updating failure times do not exceed a preset threshold, repeatedly executing the step of sending the cumulant query request to the ABM platform. And sending credit control response ending information used for indicating abnormal charging to the service network element under the condition that the current updating failure times reach a preset threshold.
To increase the reprocessing mechanism of the accumulation update failure, a rating event attribute field is further added, as shown in table 3.
Figure BDA0001115966850000091
TABLE 3
For example, when the ABM updates the accumulation, the version number of the accumulation is found to be changed inconsistently, and the accumulation updating fails, the agreed error return code is returned: 131231. and when the change of other reasons fails, returning a corresponding failure return code.
The OCS records the number of times the same session gets 131231 return codes from the ABM. The OCS receives the response returned by the ABM, and if the return code is 131231, it returns to the state of initiating the cumulative amount query packet, and records the number of times of 131231 as +1, and puts it in the value _ ACCU _ VERSION _ ERROR attribute of the rating event rateevent. The value of this attribute is more than 2 times later. And the OCS sets the session as an abnormal session, does not interact with the ABM any more, and informs the network element of reprocessing the offline emergency call ticket.
For example, when the normal operation is finished, the CCA returned by the OCS to the service network element carries the code 2001, and if the number of errors exceeds the limit, the CCA returned carries the code 3004.
Optionally, the OCS may send the cumulant query packet to the ABM platform after receiving the initial information of the credit control request sent by the service network element, so as to receive cumulant information with current cumulant version information from the ABM platform, store the received cumulant information in the specified storage space, and send the initial information of the credit control response to the service network element.
For example, the received cumulative amount information may be stored in a designated level two cache.
Optionally, after receiving the credit control request update information sent by the service network element, the OCS may further perform pricing by using the cumulant information with the latest cumulant version information in the specified storage space, and send credit control response update information to the service network element.
Fig. 3 is a schematic diagram of an embodiment of an online charging system platform for implementing charging according to the present invention. As shown in fig. 3, the OCS platform may include a first interface unit 301, a second interface unit 302, and a rating processing unit 303, wherein:
the second interface unit 302 is configured to send an cumulant query request to the balance management ABM platform after the first interface unit 301 receives the credit control request end information sent by the service network element, so as to obtain cumulant information with current cumulant version information from the ABM platform; in case of receiving the indication information indicating that the updating of the accumulated amount and the balance is successful, sent by the ABM platform, the first interface unit 301 is instructed to send credit control response end information indicating that the charging is successful to the service network element.
The pricing processing unit 303 is configured to perform pricing processing according to the acquired accumulation amount information; after the pricing processing is finished, the second interface unit 302 is instructed to send fee deduction end information to the ABM platform, wherein the fee deduction end information includes current accumulated amount version information, so that the ABM platform updates the accumulated amount and the balance after the current accumulated amount version information is checked.
Based on the online charging system platform provided by the embodiment of the invention, the problem of unnecessary cumulant lock conflict caused by overlarge cumulant lock range can be solved by adopting a version check mechanism on the basis of ensuring the accuracy of concurrent cumulant operation, so that the charging concurrent processing performance is improved.
Fig. 4 is a schematic diagram of an embodiment of an online charging system platform for implementing charging according to the present invention. Compared to the embodiment shown in fig. 3, a statistical unit 404 is included in addition to the first interface unit 401, the second interface unit 402, and the rating processing unit 403. Wherein:
the counting unit 404 is configured to count the number of update failures when the second interface unit 402 receives indication information, which is sent by the ABM platform and used for indicating that updating the accumulated amount and the balance fails; in the case where the number of current update failures does not exceed the predetermined threshold, the second interface unit 402 is instructed to repeatedly perform the operation of sending the cumulant query request to the ABM platform.
Optionally, the counting unit 404 is further configured to instruct the first interface unit 401 to send, to the service network element, credit control response end information for indicating charging exception, when the current update failure number reaches a predetermined threshold.
Optionally, in the embodiment shown in fig. 4, a storage control unit 405 is further included. Wherein:
the second interface unit 402 is further configured to send an accumulation query packet to the ABM platform after the first interface unit 401 receives the credit control request initial information sent by the service network element, so as to receive the accumulation information with the current accumulation version information from the ABM platform.
The storage control unit 405 is configured to store the received accumulated amount information in a specified storage space and instruct the first interface unit 401 to send credit control response initial information to the service network element.
Optionally, the pricing processing unit 403 is further configured to, after the first interface unit 401 receives the credit control request update information sent by the service network element, perform pricing by using the accumulated amount information with the latest accumulated amount version information in the specified storage space, and instruct the first interface unit 401 to send credit control response update information to the service network element.
Fig. 5 is a schematic diagram of an embodiment of a system for implementing charging according to the present invention. As shown in fig. 5, the system includes OCS platform 501 and ABM platform 502. The OCS platform 501 may be the OCS platform related to any one of fig. 3 or fig. 4. Wherein:
the ABM platform 502 is configured to perform cumulant query according to the cumulant query request sent by the OCS platform 501, and provide queried cumulant information to the OCS platform 501, where the cumulant information includes current cumulant version information; after receiving the deduction end information sent by the OCS platform 501, if the cumulative amount version information included in the deduction end information is consistent with the current cumulative amount version information, the cumulative amount and the balance are updated, and indication information for indicating that updating of the cumulative amount and the balance is successful is sent to the OCS platform 502.
Optionally, the ABM platform 502 is further configured to send, to the OCS platform 501, indication information for indicating that updating the accumulated amount and the balance fails, in a case that the accumulated amount version information included in the deduction end information is inconsistent with the current accumulated amount version information.
Optionally, the ABM platform 503 is further configured to perform accumulation amount query according to the accumulation amount query packet sent by the OCS platform 501, and provide the queried accumulation amount information to the OCS platform 501, where the accumulation amount information includes current accumulation amount version information.
The present invention is described below by way of specific examples.
Fig. 6 is a diagram illustrating an embodiment of a charging process according to the present invention. Where this embodiment relates to a processing scenario where the cumulative version numbers are consistent.
Step 601, the service network element sends CCR initial information to the OCS platform.
In step 602, the OCS platform sends cumulant query packets to the ABM platform.
Step 603, the ABM platform queries the cumulant according to the cumulant.
In step 604, the ABM platform provides the OCS platform with the cumulative amount information, which carries the cumulative amount version information.
In step 605, the OCS platform records the accumulated amount information into the second level cache.
Step 606, the OCS platform sends CCA initial information to the service network element.
Step 607, the service network element sends CCR update information to the OCS platform.
In step 608, the OCS platform performs rating processing using the cumulative volume information stored in the secondary cache.
Step 609, the OCS platform sends CCA update information to the service network element.
Step 610, the service network element sends CCR ending information to the OCS platform.
In step 611, the OCS platform sends the cumulant query packet to the ABM platform.
Compared with the prior art, the cumulant query packet does not need to be provided with a locking identifier.
And step 612, the ABM platform queries the cumulant according to the cumulant query package.
Step 613, the ABM platform returns the queried cumulant information to the OCS platform, where the cumulant information carries cumulant version information.
And step 614, the OCS platform performs rating processing according to the latest accumulated quantity information.
Step 615, after the rating process is completed, the OCS platform sends a deduction end packet to the ABM platform to request for updating the cumulant and the balance, wherein the deduction end packet has cumulant version information obtained during the query.
In step 616, the ABM platform updates the accumulated amount and balance if the accumulated amount version information is consistent. Namely, the accumulated quantity version information carried in the deduction end packet is consistent with the current accumulated quantity version information of the ABM platform.
Step 617, the ABM platform returns the deduction result to the OCS platform.
Step 618, the OCS platform sends CCA end information to the service network element. The CCA end information carries an identifier 2001 since it is a normal end.
Fig. 7 is a diagram illustrating another embodiment of the charging process of the present invention. Where this embodiment relates to the processing scenario when the accumulated version numbers do not coincide.
Step 701, the service network element sends CCR initial information to the OCS platform.
At step 702, the OCS platform sends cumulant query packets to the ABM platform.
And step 703, inquiring the cumulant according to the cumulant by the ABM platform.
In step 704, the ABM platform provides the OCS platform with the cumulative amount information, which carries the cumulative amount version information.
Step 705, the OCS platform logs the cumulative amount information into the second level cache.
Step 706, the OCS platform sends CCA initial information to the service network element.
Step 707, the service network element sends CCR update information to the OCS platform.
And step 708, the OCS platform performs rating processing by using the cumulant information stored in the secondary cache.
Step 709, the OCS platform sends CCA update information to the service network element.
Step 710, the service network element sends CCR ending information to the OCS platform.
In step 711, the OCS platform sends the cumulant query packet to the ABM platform.
Compared with the prior art, the cumulant query packet does not need to be provided with a locking identifier.
In step 712, the ABM platform queries the cumulants according to cumulant query packages.
Step 713, the ABM platform returns the queried cumulant information to the OCS platform, wherein the cumulant information carries cumulant version information.
And 714, carrying out rating processing by the OCS platform according to the latest accumulated quantity information.
And 715, after the pricing is finished, the OCS sends a deduction end packet to the ABM platform to request for updating the cumulant and the balance, wherein the deduction end packet has cumulant version information obtained during query.
In step 716, the ABM platform determines that the accumulated quantity version information carried in the deduction end packet is consistent with the current accumulated quantity version information of the ABM platform, and updates the accumulated quantity and the balance only when the accumulated quantity version information is consistent. Next, step 717a is performed when the update is successful, and step 717b is performed when the update is unsuccessful.
Step 717a, the ABM platform returns a deduction result to the OCS platform indicating that the update was successful. Then, in step 719a, the OCS platform sends CCA end information to the service network element, where the CCA end information carries an identifier 2001 since it is normally ended.
Step 717b, the ABM platform returns a deduction result to the OCS platform indicating the update failure. With a preset 131231 return code being carried in the deduction result.
In step 718, the OCS platform counts the number of update failures. And judging whether the counted failure times are smaller than a preset threshold or not. If the number of failures is less than the predetermined threshold, the step 711 may be returned to repeat the updating operation. If the number of failures reaches the predetermined threshold, step 719b is performed.
Step 719b, the OCS platform sends CCA end information to the service network element. The CCA end information is marked with an indication 3004 because it is time-out.
For example, 1 OCS user, there are 6 cumulative details, and the details are shown in table 1.
When a CCR ending packet (CCR _ T) message reaches the OCS, the OCS calls a rating module to organize the cumulant information needing to be inquired. Because different pricing paragraphs can be entered according to different accumulation amounts, the pricing module is not clear of all the accumulation amount details which can be used by the user and cannot perform pricing, all the accumulation amount details of the user can be searched out only by the ABM. And the OCS and the version information are packaged into a cumulant query packet to the ABM query cumulant. And querying the cumulant details by the ABM to the cumulant table, and returning a cumulant query result containing the version information to the OCS.
At this time, the details of the accumulation amount returned to the OCS include the 6 accumulation amounts of 1001-. And 5, the OCS carries out pricing according to the accumulated quantity information.
Supposing that the voice call ticket trigger is present, 3 accumulated quantities of 1001, 1003 and 1004 may be used, and supposing that only 1001 accumulated quantity is used, after the voice call ticket pricing is finished, the ABM updates the value of 1001 accumulated quantity and updates the version number to 1.
Meanwhile, if the short message call ticket of the user is triggered, the short message call ticket is supposed to use 1 cumulant of 1001, after the pricing of the short message call ticket is finished, when the cumulant is updated on the ABM side, the version number in the current record is compared with the version number in the cumulant result to be updated, the 1 cumulant of 1001 is updated successfully, and the version number is updated to 2.
By implementing the invention, the problem of unnecessary cumulant lock conflict caused by overlarge cumulant lock range can be solved on the basis of ensuring the accuracy of concurrent cumulant operation by adopting a version check mechanism, thereby improving the charging concurrent processing performance.
The invention can be applied to the cumulant concurrent processing of the on-line charging system and the off-line charging system of the telecom operator.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (9)

1. A method for implementing charging, comprising:
after receiving initial information of a credit control request sent by a service network element, sending an cumulant query packet to an ABM platform so as to receive cumulant information with current cumulant version information from the ABM platform;
storing the received cumulant information into a designated storage space;
sending credit control response initial information to a service network element;
after receiving credit control request updating information sent by a service network element, pricing by utilizing cumulant information with latest cumulant version information in the designated storage space;
sending credit control response updating information to a service network element;
after credit control request end information sent by a service network element is received, sending an cumulant query request to an ABM platform so as to obtain cumulant information with current cumulant version information from the ABM platform;
carrying out pricing processing according to the acquired cumulant information;
after rating processing is finished, fee deduction end information is sent to an ABM platform, wherein the fee deduction end information comprises the current cumulant version information, so that the ABM platform updates cumulant and balance after the current cumulant version information is checked;
and sending credit control response ending information used for indicating successful charging to the service network element under the condition that the ABM platform successfully updates the accumulated amount and the balance.
2. The method of claim 1,
counting the updating failure times under the condition that the updating cumulant and balance of the ABM platform fail;
and under the condition that the current updating failure times do not exceed a preset threshold, repeatedly executing the step of sending the cumulant query request to the ABM platform.
3. The method of claim 2,
and sending credit control response ending information used for indicating abnormal charging to the service network element under the condition that the current updating failure times reach a preset threshold.
4. An online charging system platform for realizing charging is characterized by comprising a first interface unit, a storage control unit, a second interface unit and a rating processing unit, wherein:
the second interface unit is used for sending cumulant inquiry packets to the balance management ABM platform after the first interface unit receives the initial information of the credit control request sent by the service network element, so that cumulant information with current cumulant version information is received from the ABM platform; the balance management ABM platform is also used for sending cumulant query requests to the balance management ABM platform after the first interface unit receives credit control request ending information sent by the service network element, so that cumulant information with current cumulant version information can be obtained from the ABM platform; under the condition of receiving indication information which is sent by an ABM platform and used for indicating that the cumulant updating and the balance are successful, indicating a first interface unit to send credit control response ending information used for indicating successful charging to a service network element;
a storage control unit for storing the received accumulation amount information into a specified storage space; and instructing the first interface unit to send credit control response initial information to the service network element;
the pricing processing unit is used for pricing by utilizing the cumulant information with the latest cumulant version information in the specified storage space after the first interface unit receives credit control request updating information sent by the service network element, and instructing the first interface unit to send credit control response updating information to the service network element; the system is also used for carrying out pricing processing according to the acquired cumulant information; and after rating processing is finished, indicating a second interface unit to send fee deduction end information to an ABM platform, wherein the fee deduction end information comprises the current cumulant version information, so that the ABM platform updates cumulant and balance after the current cumulant version information is checked.
5. The platform of claim 4, further comprising a statistics unit, wherein:
the counting unit is used for counting the updating failure times under the condition that the second interface unit receives indication information which is sent by the ABM platform and used for indicating updating cumulant and balance failure; and in the case that the current updating failure times do not exceed the preset threshold, instructing the second interface unit to repeatedly execute the operation of sending the cumulant query request to the ABM platform.
6. The online charging system platform of claim 5,
the counting unit is further configured to instruct the first interface unit to send, to the service network element, credit control response end information indicating that the charging is abnormal, when the current update failure number reaches a predetermined threshold.
7. A system for enabling charging, comprising an online charging system, OCS, platform according to any of claims 4-6, and
the balance management ABM platform is used for carrying out cumulant query according to the cumulant query request sent by the OCS platform and providing queried cumulant information to the OCS platform, wherein the cumulant information comprises current cumulant version information; after the deduction ending information sent by the OCS platform is received, if the cumulant version information included in the deduction ending information is consistent with the current cumulant version information, the cumulant and the balance are updated, and indication information used for indicating that the cumulant and the balance are updated successfully is sent to the OCS platform.
8. The system of claim 7,
the ABM platform is also used for sending indication information for indicating failure in updating the accumulated amount and the balance to the OCS platform under the condition that the accumulated amount version information included in the deduction ending information is inconsistent with the current accumulated amount version information.
9. The system of claim 7,
the ABM platform is also used for carrying out cumulant query according to the cumulant query packet sent by the OCS platform and providing queried cumulant information to the OCS platform, wherein the cumulant information comprises current cumulant version information.
CN201610831084.2A 2016-09-19 2016-09-19 Method, device and system for realizing charging Active CN107846288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610831084.2A CN107846288B (en) 2016-09-19 2016-09-19 Method, device and system for realizing charging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610831084.2A CN107846288B (en) 2016-09-19 2016-09-19 Method, device and system for realizing charging

Publications (2)

Publication Number Publication Date
CN107846288A CN107846288A (en) 2018-03-27
CN107846288B true CN107846288B (en) 2021-03-23

Family

ID=61657047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610831084.2A Active CN107846288B (en) 2016-09-19 2016-09-19 Method, device and system for realizing charging

Country Status (1)

Country Link
CN (1) CN107846288B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806379B (en) * 2020-06-15 2024-04-09 中国移动通信集团浙江有限公司 Rating method, device, equipment and computer medium based on threshold optimistic lock
CN114598559A (en) * 2021-07-22 2022-06-07 湖南亚信软件有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137869A (en) * 1997-09-16 2000-10-24 Bell Atlantic Network Services, Inc. Network session management
CN101123513A (en) * 2006-08-09 2008-02-13 华为技术有限公司 Online billing system and method
CN101655845A (en) * 2008-08-21 2010-02-24 北京亿企通信息技术有限公司 Method for processing documents in multi-person collaboration working environment
US9124719B2 (en) * 2009-10-13 2015-09-01 At&T Mobility Ii Llc Devices, systems and methods for managing custom alpha tags

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137869A (en) * 1997-09-16 2000-10-24 Bell Atlantic Network Services, Inc. Network session management
CN101123513A (en) * 2006-08-09 2008-02-13 华为技术有限公司 Online billing system and method
CN101655845A (en) * 2008-08-21 2010-02-24 北京亿企通信息技术有限公司 Method for processing documents in multi-person collaboration working environment
US9124719B2 (en) * 2009-10-13 2015-09-01 At&T Mobility Ii Llc Devices, systems and methods for managing custom alpha tags

Also Published As

Publication number Publication date
CN107846288A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
EP3376389A1 (en) Data processing method and device
CN107846288B (en) Method, device and system for realizing charging
CN111163428B (en) Method and server for generating short message bill
CN110570277A (en) order dispatching method and device
CN108647102A (en) Service request processing method, device and the electronic equipment of heterogeneous system
CN110351345B (en) Method and device for processing service request
CN109219051B (en) False number determination method, device, equipment and readable storage medium
CN111045725A (en) Control method, device and storage medium of code management system
CN111246447A (en) eUICC signed data management method, eUICC signed data management module, eUICC signed data management terminal and eUICC signed data management storage medium
CN106874336B (en) Data matching method, data query method and device
CN108156206B (en) Data transfer method, server, client and system
CN114157482A (en) Service access control method, device, control equipment and storage medium
CN108874325B (en) Data printing method and system
CN109559240B (en) Method, device and equipment for preventing repeated payment of premium and readable storage medium
CN115131085A (en) Method, device and equipment for processing super package bills
CN108809666B (en) Method, device and equipment for online charging of flow
CN111367694A (en) Event processing method, server and computer storage medium
CN111488252A (en) Flow playback method and device
WO2018036460A1 (en) User state processing method, apparatus and system
US9432523B1 (en) System, method, and computer program for rerating customer events in parallel with executing one or more open sessions in a consumer telecommunication network
CN108696363B (en) Charging method and device
CN116074384B (en) Method and system for controlling service request quantity
CN113055434B (en) Data transmission method, electronic equipment and computer storage medium
CN114040380B (en) Data issuing method and device, electronic equipment, medium and product
CN113554498B (en) Processing method and device for user account request

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