CN109936672A - A kind of online charging method and device - Google Patents

A kind of online charging method and device Download PDF

Info

Publication number
CN109936672A
CN109936672A CN201711349282.6A CN201711349282A CN109936672A CN 109936672 A CN109936672 A CN 109936672A CN 201711349282 A CN201711349282 A CN 201711349282A CN 109936672 A CN109936672 A CN 109936672A
Authority
CN
China
Prior art keywords
cbpapp
cbpadapter
target
target service
session
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.)
Granted
Application number
CN201711349282.6A
Other languages
Chinese (zh)
Other versions
CN109936672B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201711349282.6A priority Critical patent/CN109936672B/en
Publication of CN109936672A publication Critical patent/CN109936672A/en
Application granted granted Critical
Publication of CN109936672B publication Critical patent/CN109936672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of online charging method and device, for improving the dynamic capacity-expanding ability of convergent billing route distribution node CBPAdapter, and CBPAdapter is avoided to become system resource bottleneck, improves system reliability.The embodiment of the present application method includes: the initial charging request message that the first CBPAdapter receives target service, and the initial charging request message includes at least the session number and Subscriber Number of the target service;First CBPAdapter determines the first CBPAPP from the CBPAPP cluster;The initial charging request message is sent to the first CBPAPP by the first CBPAdapter, so that the first CBPAPP determines the subject fusion chargeable session back end CBPSDB for storing the session data of the target service according to the session number, and the subject fusion metering data node CBPMDB for storing the user data of the target service is determined according to the Subscriber Number.

Description

A kind of online charging method and device
Technical field
This application involves the communications field more particularly to a kind of online charging method and devices.
Background technique
Nowadays internet, internet of things service flourish, and the service features such as high concurrent, always online require charge system tool The computing capability and storage capacity of standby super large, very big challenge is caused to charge system system architecture and processing capacity.
Currently employed online charging system (online charging system, OCS) framework as shown in Figure 1, fusion Charging route distribution node (convergent billing point adapter, CBPAdapter) is responsible for solving message road By convergent billing application node (convergent billing point application, CBPAPP) is responsible for service logic Processing, convergent billing back end (convergent billing point memory database, CBPMDB) are responsible for depositing Store up user data and session data.User data just refers to user information data, account, set meal, remaining sum including user, open-minded Business etc., session data is ephemeral data, and storage is business is used in user status information, generally comprises a meeting Words number, to identify the session data;Wherein, CBPAdapter is two-node networking, and CBPAPP is single machine cluster networking, CBPMDB For dual computer group networking.
In existing OCS scheme, due to the limitation of storage capacity of single node, usually according to certain mapping ruler by user Data partitioned storage is stored to multiple CBPMDB nodes, at the same by the mapping ruler of Subscriber Number and CBPMDB (such as using number The mode of code routing table) it is used as independent data to be stored in CBPAdapter.According to Subscriber Number mapping ruler, with Subscriber Number Corresponding CBPMDB is known as " CBPMDB of user attaching ".When active user's online is using business, it is also necessary to by the session of user The CBPMDB of user attaching is arrived in data (Session Data) storage, and the meeting of memory banked cache is used in CBPAdapter node Route mapping relationship of the words number with CBPMDB, session route mapping relationship as shown in Figure 2 (Dialog Route Mapping), When handling so as to the information reporting of deducting fees that user's online is triggered to CBPAdapter, CBPAdapter be can be used in it The route mapping relationship of the session number and CBPMDB that record in warehousing inquires the session data of user.
User routes data and concentrates on CBPAdapter node, and is stored in the form of routing table, with number of users and Portfolio increases, and under the impact of large capacity high concurrent, routing mapping (mapping relations of Subscriber Number and CBPMDB, with And the mapping relations of session number and BPMDB) data volume will be increasing, and since CBPAdapter node is two-node networking Deployment, it is not easy to which automatic extended resources are easy to cause CBPAdatper node to become the bottleneck of system resource.
Summary of the invention
The embodiment of the present application provides a kind of online charging method and device, for improving convergent billing route distribution node The dynamic capacity-expanding ability of CBPAdapter, and CBPAdapter is avoided to become system resource bottleneck, improve system reliability.
The application first aspect provides a kind of online charging method, and the online charging method is applied to online charging system System, the online charging system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, the CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, described CBPAPP cluster includes the first CBPAPP and at least one the 2nd CBPAPP, comprising: the first CBPAdapter receives target The initial charging request message of business, the initial charging request message at least carry the session number and use of the target service Family number;First CBPAdapter determines described first from the multiple CBPAPP for including in the CBPAPP cluster CBPAPP;The initial charging request message is sent to the first CBPAPP by the first CBPAdapter, so that institute It states the first CBPAPP and determines the subject fusion chargeable session number for storing the session data of the target service according to the session number According to node CBPSDB, and the first CBPAPP is made to determine the number of users for storing the target service according to the Subscriber Number According to subject fusion metering data node CBPMDB.The embodiment of the present application, by user data and session data from convergent billing road By separating on distribution node CBPAdapter, the dynamic capacity-expanding energy of convergent billing route distribution node CBPAdapter is improved Power, and CBPAdapter is avoided to become system resource bottleneck, improve system reliability.
In a kind of possible design, in the first implementation of the embodiment of the present application first aspect, described After the initial charging request message is sent to the first CBPAPP by one CBPAdapter, the online charging method is also It include: that the first CBPAdapter receives the initial accounting request response message that the first CBPAPP is sent;Described first The initial accounting request response message is sent to the core net connecting with the first CBPAdapter by CBPAdapter.
In a kind of possible design, in second of implementation of the embodiment of the present application first aspect, described The initial accounting request response message is sent to the core net connecting with the first CBPAdapter by one CBPAdapter Later, the online charging method further include: the first CBPAdapter receives the update accounting request of the target service Message, and data update is carried out according to the update charging request message.
In a kind of possible design, in the third implementation of the embodiment of the present application first aspect, described first CBPAdapter receives the update charging request message of the target service, and is counted according to the update charging request message Include: step 1 according to update: the first CBPAdapter receives the update charging request message of the target service, it is described more New charging request message includes at least the session number;Step 2: the first CBPAdapter is true from the CBPAPP cluster Fixed first CBPAPP;Step 3: the update charging request message is sent to described first by the first CBPAdapter CBPAPP, so that the first CBPAPP updates the target industry stored on the target CBPSDB according to the session number The session data of business, and update according to the session data number of users of the target service stored on the target CBPMDB According to;Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
In a kind of possible design, in the 4th kind of implementation of the embodiment of the present application first aspect, described first CBPAdapter receives the update charging request message of the target service, and is counted according to the update charging request message Include: step 1 according to update: the first CBPAdapter receives the update charging request message of the target service, it is described more New charging request message includes at least the session number and the Subscriber Number;Step 2: the first CBPAdapter is from described The first CBPAPP is determined in CBPAPP cluster;Step 3: the first CBPAdapter is by the update charging request message It is sent to the first CBPAPP, is deposited on the target CBPSDB so that the first CBPAPP is updated according to the session number The session data of the target service of storage, and the mesh stored on the target CBPMDB is updated according to the Subscriber Number The user data of mark business;Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP is deleted Session data on the target CBPSDB.
The application second aspect provides a kind of online charging method, and the online charging method is applied to online charging system System, the online charging system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, the CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, described CBPAPP cluster includes the first CBPAPP and at least one the 2nd CBPAPP, comprising: the first CBPAPP receives described first The initial charging request message for the target service that CBPAdapter is sent, the initial charging request message include at least the mesh The session number and Subscriber Number of mark business;First CBPAPP determines the meeting for storing the target service according to the session number Talk about the subject fusion chargeable session back end CBPSDB of data;First CBPAPP is determined according to the Subscriber Number and is stored The subject fusion metering data node CBPMDB of the user data of the target service;First CBPAPP updates the target The user data stored on CBPMDB;First CBPAPP updates the session data stored on the target CBPSDB.This Shen Please embodiment, route mapping relationship is replaced by session routing algorithm and user data routing algorithm, and by the session number of user According to from separating storage in CBPMDB into independent CBPSDB, and have recorded on CBPSDB user data and CBPMDB Mapping relations, CBPApp can find Subscriber Number according to the session number in mapping relations when processing updates charging message, into And it finds user data and is updated.The dynamic capacity-expanding ability of convergent billing application node CBPAPP is improved, and is avoided CBPAPP becomes system resource bottleneck, improves system reliability.
In a kind of possible design, in the first implementation of the embodiment of the present application second aspect, described After one CBPAPP updates the session data stored on the target CBPSDB, the online charging method further include: described One CBPAPP sends initial accounting request response message to the first CBPAdapter.
In a kind of possible design, in second of implementation of the embodiment of the present application second aspect, described After one CBPAPP sends initial accounting request response message to the first CBPAdapter, the online charging method is also wrapped Include: the first CBPAPP receives the update charging request message for the target service that the first CBPAdapter is sent, described Update the session number that charging request message includes at least the target service;First CBPAP is asked according to the update charging Message is asked to carry out data update.
In a kind of possible design, in the third implementation of the embodiment of the present application second aspect, described first It includes: step 1 that CBPAP, which carries out data update according to the update charging request message: the first CBPAP receives described first The update charging request message for the target service that CBPAdapter is sent, the update charging request message includes the meeting Words number;Step 2: the first CBPAP updates the session data of the target service stored on the target CBPSDB, described Target CBPSDB is corresponding with the session number;Step 3: the first CBPAP determines the target industry according to the session data The Subscriber Number of business;Step 4: the first CBPAP updates the institute stored on the target CBPMDB according to the Subscriber Number The user data of target service is stated, the target CBPMDB is corresponding with the Subscriber Number;It is straight to step 4 that circulation executes step 1 Terminate to the target service, the first CBPAPP deletes the session data on the target CBPSDB.
In a kind of possible design, in the 4th kind of implementation of the embodiment of the present application second aspect, described first It includes: step 1 that CBPAP, which carries out data update according to the update charging request message: the first CBPAP receives described first The update charging request message for the target service that CBPAdapter is sent, the update charging request message includes the meeting Words number and the Subscriber Number;Step 2: the first CBPAP updates the target service stored on the target CBPSDB Session data, the target CBPSDB is corresponding with the session number;Step 3: the first CBPAP is according to the Subscriber Number Update the user data of the target service stored on the target CBPMDB, the target CBPMDB and the Subscriber Number It is corresponding;Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target Session data on CBPSDB.
The application third aspect provides a kind of online charging device, and the online charging device is applied to online charging system System, the online charging system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, the CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, described CBPAPP cluster includes the first CBPAPP and at least one the 2nd CBPAPP, comprising: the first receiving unit, for receiving target industry The initial charging request message of business, the initial charging request message include at least the session number and user number of the target service Code;Determination unit, for determining the first CBPAPP from the CBPAPP cluster;First transmission unit, being used for will be described Initial charging request message is sent to the first CBPAPP, so that the first CBPAPP is deposited according to session number determination The subject fusion chargeable session back end CBPSDB of the session data of the target service is stored up, and true according to the Subscriber Number Surely the subject fusion metering data node CBPMDB of the user data of the target service is stored.The embodiment of the present application, by user Data and session data are separated from convergent billing route distribution node (CBPAdapter), improve convergent billing route distribution The dynamic capacity-expanding ability of node CBPAdapter, and CBPAdapter is avoided to become system resource bottleneck, improve system reliability.
It is described online in the first implementation of the embodiment of the present application third aspect in a kind of possible design Message accounting further include: the second receiving unit, the initial accounting request response message sent for receiving the first CBPAPP; Second transmission unit, for the initial accounting request response message to be sent to the core connecting with the first CBPAdapter Heart net.
It is described online in second of implementation of the embodiment of the present application third aspect in a kind of possible design Message accounting further include: processing unit, for receiving the update charging request message of the target service, and according to the update Charging request message carries out data update.
In a kind of possible design, in the third implementation of the embodiment of the present application third aspect, the processing Unit is specifically used for: step 1: receiving the update charging request message of the target service, the update charging request message is extremely It less include the session number;Step 2: the first CBPAPP is determined from the CBPAPP cluster;Step 3: by the update Charging request message is sent to the first CBPAPP, so that the first CBPAPP updates the mesh according to the session number The session data of the target service stored on mark CBPSDB, and updated on the target CBPMDB according to the session data The user data of the target service of storage;Circulation executes step 1 to step 3 until the target service terminates, and described the One CBPAPP deletes the session data on the target CBPSDB.
In a kind of possible design, in the 4th kind of implementation of the embodiment of the present application third aspect, the processing Unit is specifically also used to: step 1: receiving the update charging request message of the target service, the update charging request message Including at least the session number and the Subscriber Number;Step 2: the first CBPAPP is determined from the CBPAPP cluster; Step 3: the update charging request message being sent to the first CBPAPP, so that the first CBPAPP is according to Session number updates the session data of the target service stored on the target CBPSDB, and is updated according to the Subscriber Number The user data of the target service stored on the target CBPMDB;Circulation executes step 1 to step 3 until the target Service ending, the first CBPAPP delete the session data on the target CBPSDB.
The application fourth aspect provides a kind of online charging device, and the online charging device is applied to online charging system System, the online charging system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, the CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, described CBPAPP cluster includes the first CBPAPP and at least one the 2nd CBPAPP, comprising: the first receiving unit, for receiving described the The initial charging request message for the target service that one CBPAdapter is sent, the initial charging request message include at least described The session number and Subscriber Number of target service;First determination unit stores the target industry for determining according to the session number The subject fusion chargeable session back end CBPSDB of the session data of business;Second determination unit, for according to the user number Code determines the subject fusion metering data node CBPMDB for storing the user data of the target service;First updating unit is used In the user data stored on the update target CBPMDB;Second updating unit is deposited on the target CBPSDB for updating The session data of storage.The embodiment of the present application replaces route mapping relationship by session routing algorithm and user data routing algorithm, And the session data of user and is had recorded into use from storage is separated in CBPMDB into independent CBPSDB on CBPSDB The mapping relations of user data and CBPMDB, CBPApp, can be according to the sessions in mapping relations when processing updates charging message Number Subscriber Number is found, and then finds user data and be updated.The dynamic for improving convergent billing application node CBPAPP expands Appearance ability, and CBPAPP is avoided to become system resource bottleneck, improve system reliability.
It is described online in the first implementation of the embodiment of the present application fourth aspect in a kind of possible design Message accounting further include: the first transmission unit, for sending initial accounting request response message to the first CBPAdapter.
It is described online in second of implementation of the embodiment of the present application fourth aspect in a kind of possible design Message accounting further include: the second receiving unit, based on the update of target service for receiving the first CBPAdapter transmission Take request message, the session number for updating charging request message and including at least the target service;Third updating unit, is used for Data update is carried out according to the update charging request message.
In a kind of possible design, in the third implementation of the embodiment of the present application fourth aspect, the third Updating unit is specifically used for: step 1: receiving the update accounting request for the target service that the first CBPAdapter is sent Message, the update charging request message includes the session number;Step 2: update stored on the target CBPSDB it is described The session data of target service, the target CBPSDB are corresponding with the session number;Step 3: being determined according to the session data The Subscriber Number of the target service;Step 4: the mesh stored on the target CBPMDB is updated according to the Subscriber Number The user data of mark business, the target CBPMDB are corresponding with the Subscriber Number;Circulation executes step 1 to step 4 until institute Stating target service terminates, and the first CBPAPP deletes the session data on the target CBPSDB.
In a kind of possible design, in the 4th kind of implementation of the embodiment of the present application fourth aspect, the processing Unit is specifically also used to: step 1: the update accounting request for receiving the target service that the first CBPAdapter is sent disappears Breath, the update charging request message includes the session number and the Subscriber Number;Step 2: updating the target CBPSDB The session data of the target service of upper storage, the target CBPSDB are corresponding with the session number;Step 3: according to described Subscriber Number updates the user data of the target service stored on the target CBPMDB, the target CBPMDB with it is described Subscriber Number is corresponding;Circulation executes step 1 to step 3 until the target service terminates, described in the first CBPAPP deletion Session data on target CBPSDB.
The 5th aspect of the application provides a kind of computer readable storage medium, deposits in the computer readable storage medium Instruction is contained, when run on a computer, so that computer executes method described in above-mentioned various aspects.
The 6th aspect of the application provides a kind of computer program product comprising instruction, when it runs on computers When, so that computer executes method described in above-mentioned various aspects.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
First CBPAdapter receives the initial charging request message of target service, the initial charging request message Including at least the session number and Subscriber Number of the target service;First CBPAdapter is true from the CBPAPP cluster Fixed first CBPAPP;The initial charging request message is sent to described first by the first CBPAdapter CBPAPP, so that the first CBPAPP determines the target for storing the session data of the target service according to the session number Convergent billing session data node CBPSDB, and the user data for storing the target service is determined according to the Subscriber Number Subject fusion metering data node CBPMDB.In the embodiment of the present application, the first CBPAdapter by initial accounting request according to The loading condition of CBPAPP cluster is distributed to the first CBPApp, so that the first CBPApp determines the meeting for storing the target service The target CBPSDB of data is talked about, and determines the target for storing the user data of the target service by user's routing algorithm CBPMDB improves the dynamic capacity-expanding ability of convergent billing route distribution node CBPAdapter, avoids CBPAdapter from becoming and is The bottleneck for resource of uniting improves system reliability.
Detailed description of the invention
The network architecture schematic diagram of online charging system based on Fig. 1;
Fig. 2 is a kind of network architecture schematic diagram for the online charging system that the prior art uses;
Fig. 3 is the network architecture schematic diagram for the online charging system that the embodiment of the present application uses;
Fig. 4 is one embodiment schematic diagram of online charging method in the embodiment of the present application;
Fig. 5 is another embodiment schematic diagram of online charging method in the embodiment of the present application;
Fig. 6 is one embodiment schematic diagram of online charging device in the embodiment of the present application;
Fig. 7 is another embodiment schematic diagram of online charging device in the embodiment of the present application;
Fig. 8 is another embodiment schematic diagram of online charging device in the embodiment of the present application;
Fig. 9 is another embodiment schematic diagram of online charging device in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of online charging method and device, for improving convergent billing route distribution node The dynamic capacity-expanding ability of CBPAdapter, and CBPAdapter is avoided to become system resource bottleneck, improve system reliability.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " or " having " and its any deformation, it is intended that covering is not Exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units be not necessarily limited to it is clear Step or unit those of is listed on ground, but is not clearly listed or for these process, methods, product or is set Standby intrinsic other step or units.
The embodiment of the present application can be applied to Convergence Billing System as shown in Figure 3 (Convergent Billing System, CBS) framework, which includes: convergent billing route distribution node (convergent billing point Adapter, CBPAdapter) cluster, convergent billing application node (convergent billing point Application, CBPAPP) cluster, convergent billing back end (convergent billing point memory Database, CBPMDB) cluster and convergent billing session data node (convergent billing session memory Database, CBPSDB) cluster, wherein CBPAdapter cluster is responsible for solving message routing, and CBPAPP cluster is responsible for business and is patrolled Processing is collected, CBPMDB cluster is used to store the user data of target service, and CBPSDB cluster is used to store the session of target service Data.
Compared with the existing technology, CBS framework shown in Fig. 2, CBPAdapter are changed to single machine cluster networking by Two-node Cluster Deployment Deployment, the ability that only reservation message is distributed.And by the local memory library inquiry separating function of the original position CBPMDB to CBPApp; User session data is stripped out from CBPMDB, is stored in CBPSDB;CBPAdapter storage session routing has been removed to reflect The function of firing table and user's routing rule realizes that CBPAdapter's removes memory bank;CBPApp using user's routing algorithm and Session routing algorithm obtains the location information of CBPMDB and CBPSDB.
For ease of understanding, the detailed process of the embodiment of the present application is described below, the embodiment of the present application and subsequent Embodiment provides a kind of online charging method, which is applied to online charging system, the online charging system It, should including convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, which includes first CBPAPP and at least one the 2nd CBPAPP.
It should be noted that the first CBPAdapter is that determining preferred CBPAdapter is required according to load balancing, 2nd CBPAdapter is that determining alternative CBPAdapter is required according to load balancing, and the first CBPAdapter's is current Load the present load less than the 2nd CBPAdapter;First CBPAPP is that determining first choice is required according to load balancing CBPAPP, the 2nd CBPAdapter are that determining alternative CBPAPP is required according to load balancing, and the first CBPAPP's is current Load the present load less than the 2nd CBPAPP.
Referring to Fig. 4, under carrying the scene of session number and Subscriber Number simultaneously in the update charging message of target service, One embodiment of online charging method includes: in the embodiment of the present application
401, the first CBPAdapter receives the initial charging request message of target service.
First CBPAdapter receives the initial charging request message of target service, and the initial charging request message is at least Session number and Subscriber Number including the target service.
It should be noted that the first CBPAdapter is CBPAdapter cluster according to CBPAdapter's each in cluster Current load situation, the smallest CBPAdapter of determining present load, CBPAdapter cluster can be according to actual loading feelings Condition carries out dilatation or capacity reducing to the CBPAdapter in cluster, to meet business demand.
It is understood that target service can be data service, for example, online etc., in initial charging request message also It may include the information such as type of message, type of message may include: initial charging request message, update charging request message, end Only charging request message.
402, the first CBPAdapter determines the first CBPAPP from CBPAPP cluster.
First CBPAdapter determines the first CBPAPP from CBPAPP cluster.
It should be noted that the first CBPAPP is present load feelings of the CBPAPP cluster according to CBPAPP each in cluster Condition, the smallest CBPAPP of determining present load, CBPAPP cluster can be according to actual loading situations, to the CBPAPP in cluster Dilatation or capacity reducing are carried out, to meet business demand.
403, initial charging request message is sent to the first CBPAPP by the first CBPAdapter.
The initial charging request message of target service is sent to the first CBPAPP by the first CBPAdapter, the initial charging Request message includes at least the session number and Subscriber Number of target service.
It should be noted that each target service has a session number, and with the user's that uses the business Subscriber Number is associated, and Subscriber Number is unique.
404, the first CBPAPP determines the subject fusion chargeable session of the session data of storage target service according to session number Back end CBPSDB.
First CBPAPP determines the subject fusion chargeable session data of the session data of storage target service according to session number Node CBPSDB.
It should be noted that session data is ephemeral data, session data storage is that target service is used in user Status information, for example, user is surfing the Internet, then there are an online session datas by user, after target service use, Session data can be synchronized to delete.Session data includes a session number, to identify the session data.
405, the first CBPAPP determines the subject fusion charging number of the user data of storage target service according to Subscriber Number According to node CBPMDB.
First CBPAPP determines the subject fusion metering data section of the user data of storage target service according to Subscriber Number Point CBPMDB.
It is account, set meal, remaining sum including user, open-minded it should be noted that user data just refers to user information data Business etc..
406, the user data stored on the first CBPAPP more fresh target CBPMDB.
The user data stored on first CBPAPP more fresh target CBPMDB.
Specifically, the first CBPAPP searches target CBPMDB according to the Subscriber Number for including in initial charging request message, And the user data stored on target CBPMDB is updated.For example, can be to the account balance in user data, set meal is surplus The data such as residual current amount are modified update.
It should be noted that the first CBPAPP calculates the target for being stored with user data by user's routing algorithm CBPMDB, user's routing algorithm can be consistency hash algorithm, can also be other algorithms, specifically herein without limitation.
407, the session data stored on the first CBPAPP more fresh target CBPSDB.
The session data stored on first CBPAPP more fresh target CBPSDB.
Specifically, the first CBPAPP finds target CBPSDB according to the session number for including in initial charging request message, And the session data stored on target CBPSDB is updated.
It should be noted that the first CBPAPP calculates the target for being stored with session data by session routing algorithm CBPSDB, session routing algorithm can be consistency hash algorithm, can also be other algorithms, specifically herein without limitation.
It is understood that step 407 and step 406 are without specific sequencing, step 407 can be in step 406 Before, it can also can also be performed simultaneously after step 406 with step 406, specifically herein without limitation.
408, the first CBPAPP sends initial accounting request response message to the first CBPAdapter.
First CBPAPP sends initial accounting request response message to the first CBPAdapter.
It should be noted that after the update that the first CBPAPP completes session data, the first CBPAPP is to first CBPAdapter sends initial accounting request response message, so that the first CBPAdapter updates accounting request and disappears receiving After breath, related data is updated by identical session number and Subscriber Number.
409, initial accounting request response message is sent to by the first CBPAdapter connect with the first CBPAdapter Core net.
Initial accounting request response message is sent to the core connecting with the first CBPAdapter by the first CBPAdapter Net.
It should be noted that core net is connect with CBPAdapter cluster, CBPAdapter cluster passes through main convergent billing Route distribution node (Master CBPAdapter) management is each from convergent billing route distribution node (Slave CBPAdapter), it is core net distribution that the first CBPAdapter, which is the Master CBPAdapter in CBPAdapter cluster, A Slave CBPAdapter.
410, the first CBPAdapter receives the update charging request message of target service.
At the end of the corresponding duration of initial charging request message, the first CBPAdapter receives the update meter of target service Take request message, updates charging request message and include at least session number and Subscriber Number.
It should be noted that the first CBPAdapter is CBPAdapter cluster according to CBPAdapter's each in cluster Current load situation, the smallest CBPAdapter of determining present load, CBPAdapter cluster can be according to actual loading feelings Condition carries out dilatation or capacity reducing to the CBPAdapter in cluster, to meet business demand.
It is understood that it is core that the first CBPAdapter, which is Master CBPAdapter in CBPAdapter cluster, One Slave CBPAdapter of heart net distribution.First CBPAdapter is Slave idle or that load is small CBPAdapter receives the first of the first CBPAdapter for updating charging request message and the initial charging request message of reception CBPAdapter can be the same hardware device, be also possible to different hardware devices.
411, the first CBPAdapter determines the first CBPAPP from CBPAPP cluster.
First CBPAdapter determines the first CBPAPP from CBPAPP cluster.
It should be noted that the first CBPAPP is present load feelings of the CBPAPP cluster according to CBPAPP each in cluster Condition, the smallest CBPAPP of determining present load, CBPAPP cluster can be according to actual loading situations, to the CBPAPP in cluster Dilatation or capacity reducing are carried out, to meet business demand.
It is understood that the first CBPAPP is to load small CBPAPP in CBPAPP cluster, receives and update accounting request First CBPAPP of message and the first CBPAPP for receiving initial charging request message, can be the same hardware device, can also To be different hardware device.
412, the first CBPAdapter is sent to the first CBPAPP for charging request message is updated.
The update charging request message of target service is sent to the first CBPAPP by the first CBPAdapter, the update charging Request message includes at least the session number and Subscriber Number of target service.
413, the session data of the target service stored on the first CBPAP more fresh target CBPSDB.
The session data of the target service stored on first CBPAP more fresh target CBPSDB, target CBPSDB and session number It is corresponding.Specifically, the session number carried in charging request message is updated, with the session number phase carried in initial charging request message It together, is the same session number.
It should be noted that session data is ephemeral data, session data storage is that target service is used in user Status information, for example, user is surfing the Internet, then there are an online session datas by user, after target service use, Session data can be synchronized to delete.Session data includes a session number, to identify the session data.
414, the first CBPAP is according to the user data of the target service stored on Subscriber Number more fresh target CBPMDB.
User data of first CBPAP according to the target service stored on Subscriber Number more fresh target CBPMDB, target CBPMDB is corresponding with Subscriber Number.
It should be noted that update the Subscriber Number that carries in charging request message, and taken in initial charging request message The Subscriber Number of band is identical, is the same Subscriber Number.
415, the first CBPAPP is sent to the first CBPAdapter updates accounting request response message.
First CBPAPP is sent to the first CBPAdapter updates accounting request response message.
It should be noted that after the update that the first CBPAPP completes user data, the first CBPAPP is to first CBPAdapter, which is sent, updates accounting request response message.
416, the first CBPAdapter, which will update accounting request response message and be sent to, connect with the first CBPAdapter Core net.
First CBPAdapter is sent to the core connecting with the first CBPAdapter for accounting request response message is updated Net.
It should be noted that circulation executes step 410 to step 416, until target service terminates, the first CBPAPP is deleted Until session data on target CBPSDB.
In the embodiment of the present application, rule are routed due to no longer storing session routing mapping table and user on CBPAdapter Then, dependence of the CBPAdapter to memory bank, when the capacity of CBPAdapter is not able to satisfy business demand, CBPAdapter collection Group and CBPSDB cluster can realize automatic equalization dilatation, realize the extension of real level of constellation, avoid CBPAdapter at For the bottleneck of system resource;When the capacity of CBPAdapter is idle more, CBPAdapter cluster and CBPSDB cluster are carried out Capacity reducing saves the maintenance cost of equipment.
Referring to Fig. 5, updating in charging message under the scene of carrying session number in target service, the embodiment of the present application One embodiment of middle online charging method includes:
501, the first CBPAdapter receives the initial charging request message of target service.
First CBPAdapter receives the initial charging request message of target service, and the initial charging request message is at least Session number and Subscriber Number including the target service.
502, the first CBPAdapter determines the first CBPAPP from CBPAPP cluster.
First CBPAdapter determines the first CBPAPP from CBPAPP cluster.
503, initial charging request message is sent to the first CBPAPP by the first CBPAdapter.
The initial charging request message of target service is sent to the first CBPAPP by the first CBPAdapter, the initial charging Request message includes at least the session number and Subscriber Number of target service.
504, the first CBPAPP determines the subject fusion chargeable session of the session data of storage target service according to session number Back end CBPSDB.
First CBPAPP determines the subject fusion chargeable session data of the session data of storage target service according to session number Node CBPSDB.
505, the first CBPAPP determines the subject fusion charging number of the user data of storage target service according to Subscriber Number According to node CBPMDB.
First CBPAPP determines the subject fusion metering data section of the user data of storage target service according to Subscriber Number Point CBPMDB.
506, the user data stored on the first CBPAPP more fresh target CBPMDB.
The user data stored on first CBPAPP more fresh target CBPMDB.
Specifically, the first CBPAPP searches target CBPMDB according to the Subscriber Number for including in initial charging request message, And the user data stored on target CBPMDB is updated.For example, can be to the account balance in user data, set meal is surplus Residual current amount etc. is modified update.
507, the session data stored on the first CBPAPP more fresh target CBPSDB.
The session data stored on first CBPAPP more fresh target CBPSDB.
Specifically, the first CBPAPP finds target CBPSDB according to the session number for including in initial charging request message, And the session data stored on target CBPSDB is updated.
It is understood that step 507 and step 506 are without specific sequencing, step 507 can be in step 506 Before, it can also can also be performed simultaneously after procedure 506 with step 506, specifically herein without limitation.
508, the first CBPAPP sends initial accounting request response message to the first CBPAdapter.
First CBPAPP sends initial accounting request response message to the first CBPAdapter.
509, initial accounting request response message is sent to by the first CBPAdapter connect with the first CBPAdapter Core net.
Initial accounting request response message is sent to the core connecting with the first CBPAdapter by the first CBPAdapter Net.
Step 501 is similar to step 409 with step 401 to step 509, and specific details are not described herein again.
510, the first CBPAdapter receives the update charging request message of target service.
At the end of the corresponding duration of initial charging request message, the first CBPAdapter receives the update meter of target service Take request message, updates charging request message and include at least session number.Specifically, updating the session carried in charging request message Number, it is identical as the session number carried in initial charging request message, it is the same session number.
It should be noted that the first CBPAdapter is CBPAdapter cluster according to CBPAdapter's each in cluster Current load situation, the smallest CBPAdapter of determining present load, CBPAdapter cluster can be according to actual loading feelings Condition carries out dilatation or capacity reducing to the CBPAdapter in cluster, to meet business demand.
It is understood that it is core that the first CBPAdapter, which is Master CBPAdapter in CBPAdapter cluster, One Slave CBPAdapter of heart net distribution.First CBPAdapter is Slave idle or that load is small CBPAdapter receives the first of the first CBPAdapter for updating charging request message and the initial charging request message of reception CBPAdapter can be the same hardware device, be also possible to different hardware devices.
511, the first CBPAdapter determines the first CBPAPP from CBPAPP cluster.
First CBPAdapter determines the first CBPAPP from CBPAPP cluster.
It should be noted that the first CBPAPP is present load feelings of the CBPAPP cluster according to CBPAPP each in cluster Condition, the smallest CBPAPP of determining present load, CBPAPP cluster can be according to actual loading situations, to the CBPAPP in cluster Dilatation or capacity reducing are carried out, to meet business demand.
It is understood that the first CBPAPP is to load small CBPAPP in CBPAPP cluster, receives and update accounting request First CBPAPP of message and the first CBPAPP for receiving initial charging request message, can be the same hardware device, can also To be different hardware device.
512, the first CBPAdapter is sent to the first CBPAPP for charging request message is updated.
The update charging request message of target service is sent to the first CBPAPP by the first CBPAdapter, the update charging Request message includes at least the session number of target service.
513, the session data of the target service stored on the first CBPAP more fresh target CBPSDB.
The session data of the target service stored on first CBPAP more fresh target CBPSDB, target CBPSDB and session number It is corresponding, and session data is obtained, Subscriber Number is carried in session data.
514, the first CBPAP determines the Subscriber Number of target service according to session data.
First CBPAP determines the Subscriber Number of target service according to session data.
515, the first CBPAP is according to the user data of the target service stored on Subscriber Number more fresh target CBPMDB.
User data of first CBPAP according to the target service stored on Subscriber Number more fresh target CBPMDB, target CBPMDB is corresponding with Subscriber Number.
Subscriber Number is not carried in charging request message it should be noted that updating, Subscriber Number is included in session number In.
516, the first CBPAPP is sent to the first CBPAdapter updates accounting request response message.
First CBPAPP is sent to the first CBPAdapter updates accounting request response message.
It should be noted that after the update that the first CBPAPP completes user data, the first CBPAPP is to first CBPAdapter, which is sent, updates accounting request response message.
517, the first CBPAdapter, which will update accounting request response message and be sent to, connect with the first CBPAdapter Core net.
First CBPAdapter is sent to the core connecting with the first CBPAdapter for accounting request response message is updated Net.
It should be noted that circulation executes step 510 to step 517, until target service terminates, the first CBPAPP is deleted Until session data on target CBPSDB.
In the embodiment of the present application, rule are routed due to no longer storing session routing mapping table and user on CBPAdapter Then, dependence of the CBPAdapter to memory bank, when the capacity of CBPAdapter is not able to satisfy business demand, CBPAdapter collection Group and CBPSDB cluster can realize automatic equalization dilatation, realize the extension of real level of constellation, avoid CBPAdapter at For the bottleneck of system resource;When the capacity of CBPAdapter is idle more, CBPAdapter cluster and CBPSDB cluster are carried out Capacity reducing saves the maintenance cost of equipment.
Online charging method in the embodiment of the present application is described above, below to online in the embodiment of the present application Message accounting is described, referring to Fig. 6, one embodiment of online charging device includes: in the embodiment of the present application
First receiving unit 601, for receiving the initial charging request message of target service, the initial accounting request disappears Breath includes at least the session number and Subscriber Number of the target service;
Determination unit 602, for determining the first CBPAPP from the CBPAPP cluster;
First transmission unit 603, for the initial charging request message to be sent to the first CBPAPP, so that First CBPAPP determines the subject fusion chargeable session for storing the session data of the target service according to the session number Back end CBPSDB, and the subject fusion charging for storing the user data of the target service is determined according to the Subscriber Number Back end CBPMDB.
In a kind of feasible embodiment, online charging device can further comprise:
Second receiving unit 604, the initial accounting request response message sent for receiving the first CBPAPP;
Second transmission unit 605, for the initial accounting request response message to be sent to and described first CBPAdapter connection core net.
In a kind of feasible embodiment, online charging device can further comprise:
Processing unit 606, for receiving the update charging request message of the target service, and according to the update charging Request message carries out data update.
In a kind of feasible embodiment, processing unit 606 is specifically used for:
Step 1: receiving the update charging request message of the target service, the update charging request message includes at least The session number;
Step 2: the first CBPAPP is determined from the CBPAPP cluster;
Step 3: the update charging request message being sent to the first CBPAPP, so that the first CBPAPP The session data of the target service stored on the target CBPSDB is updated according to the session number, and according to the session Data update the user data of the target service stored on the target CBPMDB;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target Session data on CBPSDB.
In a kind of feasible embodiment, processing unit 606 is specifically used for:
Step 1: receiving the update charging request message of the target service, the update charging request message includes at least The session number and the Subscriber Number;
Step 2: the first CBPAPP is determined from the CBPAPP cluster;
Step 3: the update charging request message being sent to the first CBPAPP, so that the first CBPAPP The session data of the target service stored on the target CBPSDB is updated according to the session number, and according to the user Number updates the user data of the target service stored on the target CBPMDB;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target Session data on CBPSDB.
The embodiment of the present application divides user data and session data from convergent billing route distribution node CBPAdapter From, improve the dynamic capacity-expanding ability of convergent billing route distribution node CBPAdapter, and avoid CBPAdapter become be System resource bottleneck, improves system reliability.
Referring to Fig. 7, another embodiment of online charging device includes: in the embodiment of the present application
First receiving unit 701, the initial charging for receiving the target service that the first CBPAdapter is sent are asked Message is sought, the initial charging request message includes at least the session number and Subscriber Number of the target service;
First determination unit 702, for determining the mesh for storing the session data of the target service according to the session number Mark convergent billing session data node CBPSDB;
Second determination unit 703, for according to the determining user data for storing the target service of the Subscriber Number Subject fusion metering data node CBPMDB;
First updating unit 704, for updating the user data stored on the target CBPMDB;
Second updating unit 705, for updating the session data stored on the target CBPSDB.
In a kind of feasible embodiment, online charging device can further comprise:
First transmission unit 706, for sending initial accounting request response message to the first CBPAdapter.
In a kind of feasible embodiment, online charging device can further comprise:
Second receiving unit 707, the update charging for receiving the target service that the first CBPAdapter is sent are asked Ask message, the session number for updating charging request message and including at least the target service;
Third updating unit 708, for carrying out data update according to the update charging request message.
In a kind of feasible embodiment, third updating unit 708 is specifically used for:
Step 1: the update charging request message for the target service that the first CBPAdapter is sent is received, it is described Updating charging request message includes the session number;
Step 2: updating the session data of the target service stored on the target CBPSDB, the target CBPSDB It is corresponding with the session number;
Step 3: the Subscriber Number of the target service is determined according to the session data;
Step 4: the number of users of the target service stored on the target CBPMDB is updated according to the Subscriber Number According to the target CBPMDB is corresponding with the Subscriber Number;
Circulation executes step 1 to step 4 until the target service terminates, and the first CBPAPP deletes the target Session data on CBPSDB.
In a kind of feasible embodiment, third updating unit 708 is specifically used for:
Step 1: the update charging request message for the target service that the first CBPAdapter is sent is received, it is described Updating charging request message includes the session number and the Subscriber Number;
Step 2: updating the session data of the target service stored on the target CBPSDB, the target CBPSDB It is corresponding with the session number;
Step 3: the number of users of the target service stored on the target CBPMDB is updated according to the Subscriber Number According to the target CBPMDB is corresponding with the Subscriber Number;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target Session data on CBPSDB.
The embodiment of the present application replaces route mapping relationship by session routing algorithm and user data routing algorithm, and will The session data of user and has recorded number of users from storage is separated in CBPMDB into independent CBPSDB on CBPSDB According to the mapping relations with CBPMDB, CBPApp can be looked for when processing updates charging message according to the session number in mapping relations To Subscriber Number, and then finds user data and be updated.Improve the dynamic capacity-expanding energy of convergent billing application node CBPAPP Power, and CBPAPP is avoided to become system resource bottleneck, improve system reliability.
Angle of the above figure 6 to Fig. 7 from modular functionality entity is respectively to the online charging device in the embodiment of the present application It is described in detail, the online charging device in the embodiment of the present application is described in detail from the angle of hardware handles below.
Fig. 8 is a kind of structural schematic diagram of online charging device provided by the embodiments of the present application, the online charging device 800 Bigger difference can be generated because configuration or performance are different, may include one or more processors (central Processing units, CPU) 801 (for example, one or more processors) and memory 809, one or more Store the storage medium 808 (such as one or more mass memory units) of application program 809 or data 809.Wherein, it deposits Reservoir 809 and storage medium 808 can be of short duration storage or persistent storage.The program for being stored in storage medium 808 may include One or more modules (diagram does not mark), each module may include to the series of instructions behaviour in online charging device Make.Further, processor 801 can be set to communicate with storage medium 808, execute on the online charging device 800 Series of instructions operation in storage medium 808.
Online charging device 800 can also include one or more power supplys 802, one or more wired or nothings Wired network interface 803, one or more input/output interfaces 804, and/or, one or more operating systems 805, Such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD etc..It will be understood by those skilled in the art that Fig. 8 Shown in online charging apparatus structure do not constitute the restriction to online charging device, may include than illustrate it is more or less Component, perhaps combine certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 8 to online charging device:
Processor 801 is the control centre of online charging device, can be handled according to the online charging method of setting. Processor 801 utilizes the various pieces of various interfaces and the entire online charging device of connection, by running or executing storage Software program and/or module in memory 809, and the data being stored in memory 809 are called, execute online charging The various functions and processing data of device, to realize online charging.
Memory 809 can be used for storing software program and module, and processor 801 is stored in memory 809 by operation Software program and module, thereby executing the various function application and data processing of online charging device 800.Memory 809 can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least one function Application program needed for energy (for example determine the first CBPApp etc.) etc.;Storage data area can be stored to be made according to online charging device With the data (such as load condition of CBPAdapter cluster etc.) etc. created.In addition, memory 809 may include high speed with Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its His volatile solid-state part.The program of the online charging method provided in the embodiment of the present application and receive it is initial/ Update charging request message storage in memory, when it is desired to be used, processor 801 is called from memory 809.
Fig. 9 is a kind of structural schematic diagram of online charging device provided by the embodiments of the present application, the online charging device 900 Can generate bigger difference because configuration or performance are different, may include one or more processors (central Processing units, CPU) 901 (for example, one or more processors) and memory 909, one or more Store the storage medium 908 (such as one or more mass memory units) of application program 907 or data 906.Wherein, it deposits Reservoir 909 and storage medium 908 can be of short duration storage or persistent storage.The program for being stored in storage medium 908 may include One or more modules (diagram does not mark), each module may include to the series of instructions behaviour in online charging device Make.Further, processor 901 can be set to communicate with storage medium 908, executes and deposits on online charging device 900 Series of instructions operation in storage media 908.
Online charging device 900 can also include one or more power supplys 902, one or more wired or nothings Wired network interface 903, one or more input/output interfaces 904, and/or, one or more operating systems 905, Such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD etc..It will be understood by those skilled in the art that Fig. 9 Shown in the structure of online charging device do not constitute the restriction to online charging device, may include more or more than illustrating Few component perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 9 to online charging device:
Processor 901 is the control centre of online charging device, can be handled according to the online charging method of setting. Processor 901 utilizes the various pieces of various interfaces and the entire online charging device of connection, by running or executing storage Software program and/or module in memory 909, and the data being stored in memory 909 are called, execute online charging The various functions and processing data of device, to realize online charging.
Memory 909 can be used for storing software program and module, and processor 901 is stored in memory 909 by operation Software program and module, thereby executing the various function application and data processing of online charging device 900.Memory 909 can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least one function Application program needed for energy (for example CBPSDB etc. is determined according to session number) etc.;Storage data area can store and be filled according to online charging That sets uses created data (such as session routing algorithm etc.) etc..In addition, memory 909 may include high random access Memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are volatile Property solid-state memory.The program of the online charging method provided in the embodiment of the present application and the initial/update meter received Take request message storage in memory, when it is desired to be used, processor 901 is called from memory 909.
The computer program product includes one or more computer instructions.Load and execute on computers the meter When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present application.The computer can To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center Such as coaxial cable, optical fiber, Digital Subscriber Line (digital subscriber line, DSL)) or wireless (such as infrared, wireless, Microwave etc.) mode transmitted to another web-site, computer, server or data center.It is described computer-readable to deposit Storage media can be any usable medium that computer can store or include the integrated clothes of one or more usable mediums The data storage devices such as business device, data center.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), Optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk (solid state disk, SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of equipment and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in the embodiment of the present application can integrate in one processing unit, it is also possible to each A unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit was both It can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (22)

1. a kind of online charging method, which is characterized in that the online charging method is applied to online charging system, described online Charge system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, institute Stating CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, and the CBPAPP cluster includes First CBPAPP and at least one the 2nd CBPAPP, comprising:
First CBPAdapter receives the initial charging request message of target service, and the initial charging request message is at least Session number and Subscriber Number including the target service;
First CBPAdapter determines the first CBPAPP from the CBPAPP cluster;
The initial charging request message is sent to the first CBPAPP by the first CBPAdapter, so that described One CBPAPP determines the subject fusion chargeable session data section for storing the session data of the target service according to the session number Point CBPSDB, and the subject fusion metering data section for storing the user data of the target service is determined according to the Subscriber Number Point CBPMDB.
2. online charging method according to claim 1, which is characterized in that the first CBPAdapter will it is described just Beginning charging request message is sent to after the first CBPAPP, the online charging method further include:
First CBPAdapter receives the initial accounting request response message that the first CBPAPP is sent;
The initial accounting request response message is sent to by the first CBPAdapter to be connected with the first CBPAdapter The core net connect.
3. online charging method according to claim 2, which is characterized in that the first CBPAdapter will it is described just Beginning accounting request response message is sent to after the core net connecting with the first CBPAdapter, the online charging method Further include:
First CBPAdapter receives the update charging request message of the target service, and is asked according to the update charging Message is asked to carry out data update.
4. online charging method according to claim 3, which is characterized in that the first CBPAdapter receives the mesh The update charging request message of mark business, and data update is carried out according to the update charging request message and includes:
Step 1: the first CBPAdapter receives the update charging request message of the target service, and the update charging is asked Message is asked to include at least the session number;
Step 2: the first CBPAdapter determines the first CBPAPP from the CBPAPP cluster;
Step 3: the update charging request message is sent to the first CBPAPP by the first CBPAdapter, so that First CBPAPP updates the session data of the target service stored on the target CBPSDB according to the session number, And the user data of the target service stored on the target CBPMDB is updated according to the session data;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
5. online charging method according to claim 3, which is characterized in that the first CBPAdapter receives the mesh The update charging request message of mark business, and data update is carried out according to the update charging request message and includes:
Step 1: the first CBPAdapter receives the update charging request message of the target service, and the update charging is asked Message is asked to include at least the session number and the Subscriber Number;
Step 2: the first CBPAdapter determines the first CBPAPP from the CBPAPP cluster;
Step 3: the update charging request message is sent to the first CBPAPP by the first CBPAdapter, so that First CBPAPP updates the session data of the target service stored on the target CBPSDB according to the session number, And the user data of the target service stored on the target CBPMDB is updated according to the Subscriber Number;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
6. a kind of online charging method, which is characterized in that the online charging method is applied to online charging system, described online Charge system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, institute Stating CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, and the CBPAPP cluster includes First CBPAPP and at least one the 2nd CBPAPP, comprising:
First CBPAPP receives the initial charging request message for the target service that the first CBPAdapter is sent, described Initial charging request message includes at least the session number and Subscriber Number of the target service;
First CBPAPP determines the subject fusion charging for storing the session data of the target service according to the session number Session data node CBPSDB;
First CBPAPP determines the subject fusion meter for storing the user data of the target service according to the Subscriber Number Take back end CBPMDB;
First CBPAPP updates the user data stored on the target CBPMDB;
First CBPAPP updates the session data stored on the target CBPSDB.
7. online charging method according to claim 6, which is characterized in that update the target in the first CBPAPP After the session data stored on CBPSDB, the online charging method further include:
First CBPAPP sends initial accounting request response message to the first CBPAdapter.
8. online charging method according to claim 7, which is characterized in that in the first CBPAPP to described first After CBPAdapter sends initial accounting request response message, the online charging method further include:
First CBPAPP receives the update charging request message for the target service that the first CBPAdapter is sent, described Update the session number that charging request message includes at least the target service;
First CBPAP carries out data update according to the update charging request message.
9. online charging method according to claim 8, which is characterized in that the first CBPAP is counted according to the update Expense request message carries out data update
Step 1: the first CBPAP receives the update accounting request for the target service that the first CBPAdapter is sent Message, the update charging request message includes the session number;
Step 2: the first CBPAP updates the session data of the target service stored on the target CBPSDB, described Target CBPSDB is corresponding with the session number;
Step 3: the first CBPAP determines the Subscriber Number of the target service according to the session data;
Step 4: the first CBPAP updates the target service stored on the target CBPMDB according to the Subscriber Number User data, the target CBPMDB is corresponding with the Subscriber Number;
Circulation executes step 1 to step 4 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
10. online charging method according to claim 8, which is characterized in that the first CBPAP is counted according to the update Expense request message carries out data update
Step 1: the first CBPAP receives the update accounting request for the target service that the first CBPAdapter is sent Message, the update charging request message includes the session number and the Subscriber Number;
Step 2: the first CBPAP updates the session data of the target service stored on the target CBPSDB, described Target CBPSDB is corresponding with the session number;
Step 3: the first CBPAP updates the target service stored on the target CBPMDB according to the Subscriber Number User data, the target CBPMDB is corresponding with the Subscriber Number;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
11. a kind of online charging device, which is characterized in that the online charging device be applied to online charging system, it is described Line charge system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, The CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, the CBPAPP cluster packet Containing the first CBPAPP and at least one the 2nd CBPAPP, comprising:
First receiving unit, for receiving the initial charging request message of target service, the initial charging request message is at least Session number and Subscriber Number including the target service;
Determination unit, for determining the first CBPAPP from the CBPAPP cluster;
First transmission unit, for the initial charging request message to be sent to the first CBPAPP, so that described One CBPAPP determines the subject fusion chargeable session data section for storing the session data of the target service according to the session number Point CBPSDB, and the subject fusion metering data section for storing the user data of the target service is determined according to the Subscriber Number Point CBPMDB.
12. online charging device according to claim 11, which is characterized in that the online charging device further include:
Second receiving unit, the initial accounting request response message sent for receiving the first CBPAPP;
Second transmission unit is connect for being sent to the initial accounting request response message with the first CBPAdapter Core net.
13. device according to claim 12, which is characterized in that the online charging device further include:
Processing unit disappears for receiving the update charging request message of the target service, and according to the update accounting request Breath carries out data update.
14. device according to claim 13, which is characterized in that the processing unit is specifically used for:
Step 1: receiving the update charging request message of the target service, the update charging request message includes at least described Session number;
Step 2: the first CBPAPP is determined from the CBPAPP cluster;
Step 3: the update charging request message is sent to the first CBPAPP so that the first CBPAPP according to The session number updates the session data of the target service stored on the target CBPSDB, and according to the session data Update the user data of the target service stored on the target CBPMDB;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
15. device according to claim 13, which is characterized in that the processing unit is specifically also used to:
Step 1: receiving the update charging request message of the target service, the update charging request message includes at least described Session number and the Subscriber Number;
Step 2: the first CBPAPP is determined from the CBPAPP cluster;
Step 3: the update charging request message is sent to the first CBPAPP so that the first CBPAPP according to The session number updates the session data of the target service stored on the target CBPSDB, and according to the Subscriber Number Update the user data of the target service stored on the target CBPMDB;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
16. a kind of online charging device, which is characterized in that the online charging device be applied to online charging system, it is described Line charge system includes convergent billing route distribution node CBPAdapter cluster and convergent billing application node CBPAPP cluster, The CBPAdapter cluster includes the first CBPAdapter and at least one the 2nd CBPAdapter, the CBPAPP cluster packet Containing the first CBPAPP and at least one the 2nd CBPAPP, comprising:
First receiving unit, for receiving the initial charging request message for the target service that the first CBPAdapter is sent, The initial charging request message includes at least the session number and Subscriber Number of the target service;
First determination unit, by being determined according to the session number based on the subject fusion for storing the session data of the target service Take session data node CBPSDB;
Second determination unit, for determining the subject fusion for storing the user data of the target service according to the Subscriber Number Metering data node CBPMDB;
First updating unit, for updating the user data stored on the target CBPMDB;
Second updating unit, for updating the session data stored on the target CBPSDB.
17. device according to claim 16, which is characterized in that the online charging device further include:
First transmission unit, for sending initial accounting request response message to the first CBPAdapter.
18. device according to claim 17, which is characterized in that the online charging device further include:
Second receiving unit, for receiving the update charging request message for the target service that the first CBPAdapter is sent, The session number for updating charging request message and including at least the target service;
Third updating unit, for carrying out data update according to the update charging request message.
19. device according to claim 18, which is characterized in that the third updating unit is specifically used for:
Step 1: receiving the update charging request message for the target service that the first CBPAdapter is sent, the update Charging request message includes the session number;
Step 2: updating the session data of the target service stored on the target CBPSDB, the target CBPSDB and institute It is corresponding to state session number;
Step 3: the Subscriber Number of the target service is determined according to the session data;
Step 4: the user data of the target service stored on the target CBPMDB, institute are updated according to the Subscriber Number It is corresponding with the Subscriber Number to state target CBPMDB;
Circulation executes step 1 to step 4 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
20. device according to claim 18, which is characterized in that the processing unit is specifically also used to:
Step 1: receiving the update charging request message for the target service that the first CBPAdapter is sent, the update Charging request message includes the session number and the Subscriber Number;
Step 2: updating the session data of the target service stored on the target CBPSDB, the target CBPSDB and institute It is corresponding to state session number;
Step 3: the user data of the target service stored on the target CBPMDB, institute are updated according to the Subscriber Number It is corresponding with the Subscriber Number to state target CBPMDB;
Circulation executes step 1 to step 3 until the target service terminates, and the first CBPAPP deletes the target CBPSDB On session data.
21. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as Method described in claim 1-10 any one.
22. a kind of computer program product comprising instruction, when run on a computer, so that computer executes such as right It is required that method described in 1-10 any one.
CN201711349282.6A 2017-12-15 2017-12-15 Online charging method and device Active CN109936672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711349282.6A CN109936672B (en) 2017-12-15 2017-12-15 Online charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711349282.6A CN109936672B (en) 2017-12-15 2017-12-15 Online charging method and device

Publications (2)

Publication Number Publication Date
CN109936672A true CN109936672A (en) 2019-06-25
CN109936672B CN109936672B (en) 2021-03-02

Family

ID=66979853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711349282.6A Active CN109936672B (en) 2017-12-15 2017-12-15 Online charging method and device

Country Status (1)

Country Link
CN (1) CN109936672B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116015990A (en) * 2022-12-27 2023-04-25 中国联合网络通信集团有限公司 Service processing method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794637A (en) * 2005-04-20 2006-06-28 华为技术有限公司 Charge network and charge agency device and charge method
CN101257394A (en) * 2008-04-14 2008-09-03 北京首信科技有限公司 Method of on-line real time content charging
CN101309334A (en) * 2008-07-15 2008-11-19 中兴通讯股份有限公司 Charging method of number portable service in IP multimedia sub-system
JP4385559B2 (en) * 2001-12-05 2009-12-16 沖電気工業株式会社 Network connection method
CN101754165A (en) * 2008-12-01 2010-06-23 华为技术有限公司 Routing method, system and device
CN101843034A (en) * 2007-10-30 2010-09-22 朗讯科技公司 Method, apparatus and system for supporting distributed IMS charging
WO2014012594A1 (en) * 2012-07-19 2014-01-23 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for implementing policy and charging control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4385559B2 (en) * 2001-12-05 2009-12-16 沖電気工業株式会社 Network connection method
CN1794637A (en) * 2005-04-20 2006-06-28 华为技术有限公司 Charge network and charge agency device and charge method
CN101843034A (en) * 2007-10-30 2010-09-22 朗讯科技公司 Method, apparatus and system for supporting distributed IMS charging
CN101257394A (en) * 2008-04-14 2008-09-03 北京首信科技有限公司 Method of on-line real time content charging
CN101309334A (en) * 2008-07-15 2008-11-19 中兴通讯股份有限公司 Charging method of number portable service in IP multimedia sub-system
CN101754165A (en) * 2008-12-01 2010-06-23 华为技术有限公司 Routing method, system and device
WO2014012594A1 (en) * 2012-07-19 2014-01-23 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for implementing policy and charging control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116015990A (en) * 2022-12-27 2023-04-25 中国联合网络通信集团有限公司 Service processing method, device and storage medium

Also Published As

Publication number Publication date
CN109936672B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN104601680B (en) A kind of method for managing resource and device
CN104579761B (en) A kind of nosql clusters automatic configuration system and method for automatic configuration based on cloud computing
CN109660466A (en) A kind of more live load balance realizing methods towards cloud data center tenant
CN109548155B (en) Distributed unbalanced edge cloud network access and resource allocation method
EP2979409A1 (en) A method and system to allocate bandwidth for heterogeneous bandwidth request in cloud computing networks
WO2012100544A1 (en) Method, device and cluster system for virtual machine migration based on network data flow direction
CN105897484A (en) Traffic management device, server and method
CN108632063B (en) Method, device and system for managing network slice instances
Cerroni Multiple virtual machine live migration in federated cloud systems
WO2023040538A1 (en) Data migration method and apparatus, and device, medium and computer product
PH12014502594B1 (en) Service node switching method and system
CN107124453A (en) Platform Interworking GateWay stacks the SiteServer LBS and video call method of deployment
CN107566511A (en) A kind of method and cloud storage system for realizing cloud storage
CN110515731A (en) A kind of data processing method, apparatus and system
CN109379281A (en) A kind of traffic scheduling method and system based on time window
CN103001892A (en) Network resource distribution method and system based on cloud computing
CN105391651A (en) Virtual optical network multilayer resource convergence method and system
CN105262604B (en) Virtual machine migration method and equipment
CN108200211A (en) Method, node and the inquiry server that image file is downloaded in cluster
CN109936672A (en) A kind of online charging method and device
CN107257356B (en) Social user data optimal placement method based on hypergraph segmentation
CN106201711B (en) A kind of task processing method and server
CN108833570A (en) A kind of cluster-based storage and balanced transmission system based on cloud storage
JP2013015986A (en) Prepaid charging system, method and program
WO2021057150A1 (en) Port sharing method and apparatus, storage medium and electronic apparatus

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200211

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Applicant before: Huawei Technologies Co.,Ltd.

GR01 Patent grant
GR01 Patent grant