CN109218033A - DCC system, switching account charging method, system and storage medium - Google Patents

DCC system, switching account charging method, system and storage medium Download PDF

Info

Publication number
CN109218033A
CN109218033A CN201710536456.3A CN201710536456A CN109218033A CN 109218033 A CN109218033 A CN 109218033A CN 201710536456 A CN201710536456 A CN 201710536456A CN 109218033 A CN109218033 A CN 109218033A
Authority
CN
China
Prior art keywords
message
ccr
dcc
fee
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.)
Pending
Application number
CN201710536456.3A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710536456.3A priority Critical patent/CN109218033A/en
Publication of CN109218033A publication Critical patent/CN109218033A/en
Pending legal-status Critical Current

Links

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/1485Tariff-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

DCC system, switching account charging method, system and storage medium.The invention discloses a kind of data services to switch account charging method, this method comprises: receiving the credit control request CCR message that real time billing reports network element to send, parses the CCR message and obtains Subscriber Number;Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number;If fee-based number is different from Subscriber Number, the Subscriber Number in CCR message is substituted for fee-based number, and the replaced new CCR message of Subscriber Number is forwarded to online charging system OCS.The invention also discloses a kind of data service account switch metering system, DCC system and storage mediums.The present invention can be achieved to determine billing account number according to user's actual conditions, reduce data service wandering fee, realize one-card multi-number medium size intersymbol automatic or manual switch data service billing, promote the enthusiasm that user uses one card multi-number business.

Description

DCC system, switching account charging method, system and storage medium
Technical field
The present invention relates to mobile communication technology fields more particularly to a kind of DCC system, data service to switch account charged party Method, system and storage medium.
Background technique
One card multi-number business is a kind of in user's roaming, and no replacement is required or increases SIM (Subscriber Identity Model, client identification module) card, the business of original number and roaming place number can be used using former SIM card.With the whole world The formation of economic integration, user needs continually to enter and leave between multiple countries and regions, and various regions data service billing is advised Then it is not quite similar with strategy.Therefore, it when user roams into the network in other areas or country, is used using ownership place number Expensive wandering fee will be generated when data traffic, limits the enthusiasm that user uses one card multi-number business.
The basic function of traditional one card multi-number business countermark is limited to make a phone call, and receives calls, transmitting-receiving short message etc., not The function that number sharing data service is deducted fees based on having leads to user effort mass data service roaming expense.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of DCC system, data service switching account charging method, system and deposit Storage media, it is intended to solve in existing one card multi-number business countermark can not based on a number sharing data service deduct fees, lead to user effort The technical issues of mass data service roaming expense.
To achieve the above object, the present invention provides a kind of data service switching account charging method, the method includes with Lower step:
The credit control request CCR message that real time billing reports network element to send is received, the CCR message is parsed and obtains user number Code;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number;
If fee-based number is different from Subscriber Number, the Subscriber Number in the CCR message is substituted for fee-based number, and The replaced new CCR message of Subscriber Number is forwarded to online charging system OCS.
Optionally, the data service switches account charging method further include:
If detecting, CCR message is sent to OCS, and the first duration is arranged, and waits OCS response;
If receiving the Credit Control Answer CCA message that OCS is returned based on received CCR message in the first duration, release The first duration is put, transparent transmission CCA message to real time billing reports network element;
If not receiving the CCA message that OCS is returned based on CCR message in the first duration, request failure information is sent extremely Real time billing reports network element, discharges the first duration and clears up this session.
Optionally, described the step of receiving the credit control request CCR message that real time billing reports network element to send, includes:
The CCR message that real time billing reports network element to send is received, determines the type of message of the CCR message, the message class Type includes session initiation message CCR-I, session updates message CCR-U and session termination message CCR-T;
If receiving the CCA message that OCS is returned based on received CCR-I or CCR-U message in the first duration, is discharged One duration, transparent transmission CCA message to real time billing reports network element, and the second duration is arranged, and waits real time billing that network element is reported to send New CCR message;
If receiving the CCA message that OCS is returned based on received CCR-T message in the first duration, the first duration is discharged, Transparent transmission CCA message to real time billing reports network element, terminates session.
It is optionally, described and the step of the replaced new CCR message of Subscriber Number is forwarded to OCS further include:
The home domain of Diameter letter control agency by agreement DCC PROXY interface message processor (IMP) in CCR message is substituted for returning for OCS Belong to domain;
The device identification of network element and equipment home domain is reported to be substituted for DCC PROXY interface real time billing in CCR message The device identification of machine and equipment home domain, and increase by one and report the attribute value of network element device mark to AVP comprising real time billing Afterwards, which is forwarded to OCS.
Optionally, described the step of obtaining preset fee-based number, includes:
Judge whether the CCR message is session initiation message CCR-I according to aforementioned CCR message;
If the CCR message is CCR-I, the corresponding data account in database is obtained according to the Subscriber Number in CCR message Number, which is fee-based number;
If the CCR message is not CCR-I, the fee-based number being stored in current sessions is obtained.
Optionally, described that corresponding data account in database, the correspondence number are then obtained according to the Subscriber Number in CCR message Include: for the step of fee-based number according to account
Storing process is called to inquire database according to the Subscriber Number in CCR message;
Corresponding data account is returned to if calling, which is fee-based number;
Error code is returned to if calling, process terminates.
Optionally, the data service switches account charging method further include:
The data service switching notice from service control point (SCP) is received, according to the switching in data service switching notice The corresponding all current sessions of number inquiry Subscriber Number;
Interruption session request ASR message to real time billing is sent in all current sessions and reports network element, waits meter in real time Expense reports network element to return and interrupts session response ASA message and session termination message CCR-T message, to terminate current sessions.
To achieve the above object, the present invention also provides a kind of Diameter to believe control agreement DCC system, the DCC system packet It includes: DCC server-side, DCC PROXY interface message processor (IMP) and DCC client;
The DCC server-side, the CCR message for reporting network element to send for receiving real time billing, and the CCR message is sent out It send to DCC PROXY interface message processor (IMP);
The DCC PROXY interface message processor (IMP) is used for:
It parses the CCR message and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number, if fee-based number and user number Code is different, then the Subscriber Number in the CCR message is substituted for fee-based number, and by the replaced new CCR of Subscriber Number Message is sent to DCC client;
The DCC client, for the replaced new CCR message of Subscriber Number to be forwarded to OCS.
To achieve the above object, the present invention also provides a kind of data service account switch metering system, the data services Account switch metering system includes: that real time billing reports network element, DCC system, database and OCS;
The real time billing reports network element, for sending CCR message to DCC system;
The DCC system includes: DCC server-side, DCC PROXY interface message processor (IMP) and DCC client;
The DCC server-side, the CCR message for reporting network element to send for receiving real time billing, and the CCR message is sent out It send to DCC PROXY interface message processor (IMP);
The DCC PROXY interface message processor (IMP) is used for:
It parses the CCR message and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number, if fee-based number and user number Code is different, then the Subscriber Number in the CCR message is substituted for fee-based number, and by the replaced new CCR of Subscriber Number Message is sent to DCC client;
The DCC client, for the replaced new CCR message of Subscriber Number to be forwarded to OCS;
The database, for providing initial payment number for DCC system;
The OCS, for receiving the new CCR message of DCC system forwards.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with data on the storage medium Service switching account accounting routine, the data service switching account accounting routine realize above-mentioned data when being executed by DCC system The step of service switching account charging method.
A kind of data service that the embodiment of the present invention proposes switches account charging method, by receiving reality in DCC system When charging report network element send CCR message when, parse the Subscriber Number that the CCR message acquisition request is deducted fees;It obtains preset Subscriber Number in aforementioned CCR message is substituted for payment number if Subscriber Number and the fee-based number are inconsistent by fee-based number After code, the replaced CCR message of Subscriber Number is transmitted to OCS, so that the number actually deducted fees is preset fee-based number, is used Fee-based number or system, which can be arranged, according to the actual conditions of oneself in family fee-based number to be arranged automatically according to user situation, make User is obtained when different regions are using data service, can spend note in the number account of location data service, reduce number According to service roaming expense, one-card multi-number medium size intersymbol automatic or manual switch data service billing is realized, promote user and use one The enthusiasm of card multi-number service.
Detailed description of the invention
Fig. 1 is the system structure diagram for the running environment that the embodiment of the present invention is related to;
Fig. 2 is the system structure diagram for the running environment that an alternate embodiment of the present invention scheme is related to;
Fig. 3 is the flow diagram that data service of the present invention switches account charging method first embodiment;
Fig. 4 is data service switch metering data account implementation method flow diagram;
Fig. 5 is the DCC protocol message flow diagram that data service of the present invention switches that account charging method is related to;
Fig. 6 is the flow diagram that data service of the present invention switches account charging method fourth embodiment;
Fig. 7 is another flow diagram of DCC protocol message that data service of the present invention switches that account charging method is related to;
Fig. 8 is the state machine signal that data service of the present invention switches the DCC PROXY interface message processor (IMP) that account charging method is related to Figure.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the data service account switch metering system for the running environment that the embodiment of the present invention is related to System structural schematic diagram.
As shown in Figure 1, the system may include: that real time billing reports network element 15, (the Diameter letter control association of DCC system 14 Discuss Diameter Credit Control), database 13 and OCS16 (online charging system Online Charging System)。
The real time billing reports network element 15, for sending CCR message to DCC system 14.Specifically, real time billing reports Network element 15 may include ISMP (Integrated Service Management Platform Integrated Services Management Platform), SCP (service control point Service Control Point), CCG (content charging gateway Content Charging Gateway), GGSN (GPRS gateway support node Gateway GPRS Support Node), PGW (packet data network gateway PDN ) and the network element of other triggerable accounting requests GateWay.After the service request for receiving user terminal transmission, to DCC system 14 Send authentication request or credit line application (purpose is to realize the charging of pre-payment, for convenience of understanding, referred to hereinafter as accounting request). It can be according to IMSI (international mobile subscriber identity International Mobile Subscriber Identification Number) (but being not limited to IMSI) distributes CCR message.
The DCC system 14 includes: DCC server-side 17, DCC PROXY interface message processor (IMP) 18 and DCC client 19;
The DCC server-side 17, the CCR message for reporting network element 15 to send for receiving real time billing, and the CCR is disappeared Breath is sent to DCC PROXY interface message processor (IMP) 18;
The DCC PROXY interface message processor (IMP) 18 is used for:
It parses the CCR message and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number, if fee-based number and user number Code is different, then the Subscriber Number in the CCR message is substituted for fee-based number, and by the replaced new CCR of Subscriber Number Message is sent to DCC client 19;
The DCC client 19, for the replaced new CCR message of Subscriber Number to be forwarded to OCS.
Specifically, the DCC system 14 reports the accounting request of network element 15 for receiving real time billing, and is forwarded to OCS16, while opposite end response message is back to real time billing and reports network element 15.DCC server-side 17 and DCC client 19 are handled Link maintenance work between DCC system 14 and external module, the communication between them use Diameter.DCC PROXY interface message processor (IMP) 18 and DCC server-side 17, DCC client 19 use interface message processor (IMP) platform interior interface communication, can be used non- Diameter.
By the different settings of communication protocol inside and outside DCC system 14 as described above, DCC PROXY interface message processor (IMP) 18 is realized Universal design, even if the Diameter of change DCC system 14 and PERCOM peripheral communication, i.e. DCC PROXY is connect inside DCC module 14 The communication protocol used between mouth machine 18 and DCC server-side 17, DCC client 19 is without change, such DCC PROXY interface message processor (IMP) 18 can focus on the service logic and process work between database 13.Both protocol section development had been reduced Amount, and substantially increase the efficiency of the exploitation in terms of service application and maintenance.
The database 13, for providing initial payment number for DCC system 14.Specifically, it is used for user account information Storage, when DCC system 14 implements inquiry or when handover operation, provides the interface that invocation of procedure access obtains information judgement.
The OCS16, for receiving the new CCR message of the forwarding of DCC system 14.It is the online charging system that third party provides System realizes that the control of user's real-time credit, pre-payment use data service and real time charging value added business.
Data service switching account charging method of the present invention is based on Diameter and realizes, wherein Diameter Be it is a kind of support the AAA frame based on IP technology aaa protocol (Authentication certification, Accounting charging, Authorization authorization), to realize network system to the accurate recording of the Internet usage situation of specific user.? The diameter credit control application protocol Diameter Credit Control Application extended in Diameter basic agreement is fixed Justice real time billing protocol frame realizes dialogue-based and event charging using credit line control, solves for pre- The accounting requirements of payment.
It will be understood by those skilled in the art that the restriction of the not structure paired systems of system structure shown in Fig. 1, can wrap It includes than illustrating more or fewer modules, perhaps combines certain module or different module arrangements.
As shown in Figure 1, can store data service switching account accounting routine in database, DCC system can call number Switch account accounting routine according to the data service stored in library, and execute following operation:
The credit control request CCR message that real time billing reports network element to send is received, the CCR message is parsed and obtains user number Code;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number;
If fee-based number is different from Subscriber Number, the Subscriber Number in the CCR message is substituted for fee-based number, and The replaced new CCR message of Subscriber Number is forwarded to online charging system OCS.
Further, DCC system can call the data service stored in database to switch account accounting routine, also execute It operates below:
If detecting, CCR message is sent to OCS, and the first duration is arranged, and waits OCS response;
If receiving the Credit Control Answer CCA message that OCS is returned based on received CCR message in the first duration, release The first duration is put, transparent transmission CCA message to real time billing reports network element;
If not receiving the CCA message that OCS is returned based on CCR message in the first duration, request failure information is sent extremely Real time billing reports network element, discharges the first duration and clears up this session.
Further, described the step of receiving the credit control request CCR message that real time billing reports network element to send, includes:
The CCR message that real time billing reports network element to send is received, determines the type of message of the CCR message, the message class Type includes session initiation message CCR-I, session updates message CCR-U and session termination message CCR-T;
If receiving the CCA message that OCS is returned based on received CCR-I or CCR-U message in the first duration, is discharged One duration, transparent transmission CCA message to real time billing reports network element, and the second duration is arranged, and waits real time billing that network element is reported to send New CCR message;
If receiving the CCA message that OCS is returned based on received CCR-T message in the first duration, the first duration is discharged, Transparent transmission CCA message to real time billing reports network element, terminates session.
It is further, described and the step of the replaced new CCR message of Subscriber Number is forwarded to OCS further include:
The home domain of Diameter letter control agency by agreement DCC PROXY interface message processor (IMP) in CCR message is substituted for returning for OCS Belong to domain;
The device identification of network element and equipment home domain is reported to be substituted for DCC PROXY interface real time billing in CCR message The device identification of machine and equipment home domain, and increase by one and report the attribute value of network element device mark to AVP comprising real time billing Afterwards, which is forwarded to OCS.
Further, described the step of obtaining preset fee-based number, includes:
Judge whether the CCR message is session initiation message CCR-I according to aforementioned CCR message;
If the CCR message is CCR-I, the corresponding data account in database is obtained according to the Subscriber Number in CCR message Number, which is fee-based number;
If the CCR message is not CCR-I, the fee-based number being stored in current sessions is obtained.
Further, described that corresponding data account in database, the correspondence are then obtained according to the Subscriber Number in CCR message Data account be fee-based number the step of include:
Storing process is called to inquire database according to the Subscriber Number in CCR message;
Corresponding data account is returned to if calling, which is fee-based number;
Error code is returned to if calling, process terminates.
Further, DCC system can call the data service stored in database to switch account accounting routine, also execute It operates below:
The data service switching notice from service control point (SCP) is received, according to the switching in data service switching notice The corresponding all current sessions of number inquiry Subscriber Number;
ASR message to real time billing is sent in all current sessions and reports network element, waits real time billing that network element is reported to return ASA message and CCR-T message are returned, to terminate current sessions.
In addition, the present embodiment also proposes that a kind of Diameter letter control agreement DCC system, the DCC system include: such as Fig. 1 DCC server-side, DCC PROXY interface message processor (IMP) and DCC client;
The DCC server-side, the CCR message for reporting network element to send for receiving real time billing, and the CCR message is sent out It send to DCC PROXY interface message processor (IMP);
The DCC PROXY interface message processor (IMP) is used for:
It parses the CCR message and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number, if fee-based number and user number Code is different, then the Subscriber Number in the CCR message is substituted for fee-based number, and by the replaced new CCR of Subscriber Number Message is sent to DCC client;
The DCC client, for the replaced new CCR message of Subscriber Number to be forwarded to OCS.
Referring to Fig. 3, data service switching account charging method first embodiment of the present invention provides a kind of data service switching Account charging method, the data service switching account charging method include:
Step S10 receives the credit control request CCR message that real time billing reports network element to send, parses the CCR message and obtain Take Subscriber Number;
When DCC system receives the CCR message comprising accounting request that real time billing reports network element to send, parsing should CCR message obtains real time billing and network element is reported to request the number deducted fees, i.e. Subscriber Number.Charging mode described in the present embodiment For real time billing mode.
User start to surf the web webpage, see video or carry out behavior that other use data traffic when, real time billing Network element is reported to will receive the service request of the user.It is prepayment in the charging property for obtaining user according to aforementioned business request information Time-consuming, real time billing reports network element that will send session initiation message CCR (Initial) (referred to hereinafter as CCR-I) to DCC system, warp DCC system routing forwarding obtains Subscriber Number according to the CCR-I message received to OCS, OCS, checks account status, sentences Whether disconnected user can be used business, and OCS carries out account balance and reserves, and distributing user can use amount.OCS can lead to user with quota Initial response message CCA (Initial) (referred to hereinafter as CCA-I) is crossed to DCC system, through DCC system routing forwarding to real time billing Report network element.User uses business, and real time billing reports network element to interrupt user couple according to the available amount real time monitoring in CCA-I The service condition of business.If the available amount use authorized finishes, real time billing reports network element that need to apply again using matching Volume sends session updates message CCR (Update) (referred to hereinafter as CCR-U) to DCC system again, gives through DCC system routing forwarding OCS, OCS are according to CCR-U more new information, and wholesale price, account balance are reserved again for progress, and amount can be used by redistributing user, then will It can be given with amount by updating response message CCA (Update) (referred to hereinafter as CCA-U) to DCC system through DCC system routing forwarding Real time billing reports network element.Under normal circumstances, user is using in business procedure, in fact it could happen that the available amount repeatedly authorized The case where using finishing, need to authorize again, i.e. real time billing, report network element repeatedly to send CCR-U to DCC system, then by DCC system Routing forwarding of uniting is obtained to OCS can use quota, repeat step, do not repeat.In the case where user terminates business or other conditions, count in real time Expense reports network element to send session termination message CCR (Termination) (referred to hereinafter as CCR-T) to DCC system, and OCS is according to DCC system The CCR-T of system forwarding completes wholesale price, deducts user account expense, replys to DCC system and terminates response message CCA (Termination) (referred to hereinafter as CCA-T).
Data traffic is wherein used, reported to real time billing network element send service request number i.e. the present embodiment institute The Subscriber Number said, namely the request that includes from the CCR message that real time billing reports network element every time deduct fees it is current Using the number of data traffic, it can also claim to request number of deducting fees, so Subscriber Number here can be the master in one-card multi-number Number, or countermark.
Step S20 obtains preset fee-based number, judges whether fee-based number is identical as Subscriber Number;
Fee-based number in the present embodiment is the number for being actually sent to OCS system and deducting fees.By the explanation of step S10 In it is found that real time billing reports network element according to service request or user using sending CCR message, number therein the case where business For Subscriber Number.After DCC system processing forward is to OCS, OCS obtains practical charging according to the processed CCR message of DCC system Number, the practical charge number that fee-based number described in the present embodiment, that is, OCS is obtained.
Fee-based number is stored as corresponding data account in the database, i.e., the corresponding data account in database is payment number Code.Here corresponding data account when can be user's initial registration number the pre-set default for being stored in database deduct fees Number can be the master number in the one-card multi-number of default, be also possible to follow that certain rule changes between several numbers deducts fees Number, for example, card master's ownership place is for A, one ownership place of countermark is B, two ownership place of countermark is C, the determination of data account Rule are as follows: when user uses data traffic in B, then it is data account that ownership place, which is the countermark one on the ground B, and system automatically switches number It is countermark one according to the corresponding data account in library;When user uses data traffic in C, then ownership place is that the countermark two on the ground C is Data account, it is countermark two that system, which automatically switches the corresponding data account in database,.
Preferably, the data account can also be by user's manual switching, at this point, embodiment of the present invention side shown in Fig. 1 On the basis of the system structure for the running environment that case is related to, also need to increase by three modules (such as Fig. 2): AM access module 10, SOAP module 11 (Simple Object Access Protocol Simple Object Access Protocol) and service control point (SCP) 12.
The AM access module 10 is forwarded to SCP12 for receiving user instructions, and by the instruction received, realizes user With the interaction of SCP12.Specifically, AM access module 10 mainly includes USSD (Unstructured Supplementary at present Service Data unstructured supplementary data traffic) and mobile phone application APP two ways.User is handed over by inquiry, switching etc. Mutual formula operational access SCP system, realizes management business data account.
The SOAP module 11, for transmitting information between cell phone application application and SCP12.Specifically, SOAP module 11 is logical Soap protocol is crossed, transmits information between cell phone application application and SCP12, the operation such as inquiry and switching is provided.Switching is grasped Make, message content must carry Handover Number (data account).
The SCP12 is responsible for the control of data account switch logic, and issues handoff notification message to DCC system 14, adjustment Billing account number.Specifically, SCP12 access and operating database 13, realize and control data account switch logic.
The connection relationship of AM access module 10, SOAP module 11 and SCP12 and system shown in Figure 1 is (such as Fig. 2): when access mould When block is USSD, AM access module is directly interacted with SCP12;When AM access module is cell phone application application mode, AM access module passes through SOAP module is interacted with SCP12;By SCP12 and database 13, the interaction of DCC system 14.
User is in AM access module input inquiry or switch data account number instructions, if SCP receives inquiry instruction, basis Inquiry instruction sends relevant information;If SCP receives switch data account number instructions, referring to Fig. 4, following steps are executed:
Step 71, when process starts, whether SCP judgement normal with householder's state, (such as whether arrearage) if normal, 72 are thened follow the steps, otherwise, return terminates.
Step 72 inquires the user with the presence or absence of countermark, if it is present executing step 73, otherwise, return terminates.
Step 73, by taking USSD as an example, there are two types of shortcut, if it is input * ACCESS CODE*MSISDN#, MSISDN is to carry number, then selection mode 1, enters step 74;If it is input * ACCESS CODE#, number is not carried, then Selection mode 2, enters step 75;If inputting other, return terminates.
Step 74 judges whether carrying number is effective, if it is valid, entering step 75 behaviour for switching over data account Make, otherwise, return terminates.
Step 75, SCP execute the movement of switch data account, including access database, execute and call storing process, issue and cut Notification message is changed to operate to DCC system etc..
Finally, process terminates.
When DCC system receives the session initiation message CCR-I that real time billing reports network element to send, it can be somebody's turn to do according to parsing The Subscriber Number that CCR-I message obtains calls the corresponding data account in database, after carrying out corresponding judgement operation, by user Number and the corresponding data account are stored in current sessions as fee-based number, and receiving CCR-U or CCR-T after convenient can It calls fee-based number to carry out judgement and/or replacement operation directly in current sessions, DCC system is also facilitated to receive switching notice When, session is called according to Subscriber Number.
DCC system can determine whether the storage location of fee-based number according to the type of the CCR message when receiving CCR message. The fee-based number being stored in database or session is obtained, judges whether fee-based number is identical as Subscriber Number.As described above, Subscriber Number is the number of currently used data traffic, and fee-based number is default or the number of deducting fees that user specifies, if user number Code is consistent with fee-based number, then the Subscriber Number for currently expending data traffic is also the number deducted fees simultaneously;If Subscriber Number with Fee-based number is inconsistent, then needs the number deducted fees according to certain rule selection, it is however generally that, it is all selection payment in this case Number is as the number deducted fees.
Subscriber Number in the CCR message is substituted for and pays if fee-based number is different from Subscriber Number by step S30 Take number, and the replaced new CCR message of Subscriber Number is forwarded to online charging system OCS.
It is whether identical as Subscriber Number to judge fee-based number, if fee-based number is identical as Subscriber Number, without replacement, directly It connects and the CCR message is forwarded to OCS according to certain routing rule.It, should be by institute if fee-based number is different from Subscriber Number The Subscriber Number stated in CCR message is substituted for fee-based number.Because regardless of fee-based number is number or the user of system default Pre-set number, or be the number after user's switching, it is all to meet user to be intended to or according to the practical feelings of user What condition was made is conducive to the selection of user.By the way that Subscriber Number is substituted for fee-based number, can by the number actually deducted fees by User is intended to or is conducive to the direction setting of user, can so promote user experience, be conducive to the popularization of one card multi-number business. After replacing the Subscriber Number in the CCR message with fee-based number, which is forwarded to by routing rule OCS system carries out charging.
Wherein, related routing rule, specifically, step S30 further include:
Step S31 replaces the home domain of the Diameter letter control agency by agreement DCC PROXY interface message processor (IMP) in CCR message At the home domain of OCS;
Real time billing in CCR message is reported the device identification of network element and equipment home domain to be substituted for DCC by step S32 The device identification of PROXY interface message processor (IMP) and equipment home domain, and increase the category for reporting network element device to identify comprising real time billing After property value is to AVP, which is forwarded to OCS.
Diameter is by a head and the one or more attribute values followed to AVP (Attribute-Value- Pairs it) forms.One AVP includes a head and for encapsulating the data of specific protocol (for example, routing iinformation), and certification, Authorization or charge information.
Wherein originating end device identification Original-Host (sends the mark of the equipment of DCC protocol message, wherein DCC Protocol message includes CCR and CCA) and initiation end equipment home domain Original-Realm AVPs (i.e. transmission DCC protocol message Equipment place domain) any Diameter message must all carry, for identifying the source address of message.The present embodiment In, report the device identification of network element and equipment to return comprising real time billing from the CCR message that real time billing reports network element to send Belong to domain, DCC system, need to be by the originating end device identification in the CCR message for reporting network element from real time billing when forwarding message Device identification and the equipment home domain of DCC PROXY interface message processor (IMP) are substituted for initiation end equipment home domain, i.e., it will be in real time billing Report the device identification of network element and equipment home domain to be substituted for device identification and the equipment home domain of DCC PROXY interface message processor (IMP), with to OCS shows the message from DCC system.Because the CCR message is to be sent to OCS, DCC system need to be in CCR message The home domain of DCC system, that is, purpose end equipment home domain Destination-Realm (receives the institute of the equipment of DCC protocol message In domain) it is changed to the home domain of OCS.In addition, also needing to increase the AVP for reporting network element device to identify comprising real time billing, mark The primary source of the CCR message.
By modifying to CCR message according to routing rule, so that CCR message meets Diameter to message Call format receives the CCR message smoothly by OCS system, and then smooth charging.
In the present embodiment, DCC system need to judge CCR after receiving the CCR message for reporting network element from real time billing Whether the Subscriber Number (requesting number of deducting fees) that message carries is identical as fee-based number, different from fee-based number in Subscriber Number When, Subscriber Number is substituted for fee-based number.Management of the user for practical charge number is realized, so that practical charge number Can according to user's actual need by user's manual switching or by be conducive to user's actual conditions it is certain rule switch, when with When family roams into non-attribution area (i.e. visited place) network of different charge strategy with rule, the number of the visited place can be used Charging is carried out, the roaming that can save data traffic is spent, and improves the enthusiasm that user uses one card multi-number business.In addition, DCC System receives the CCR message that network element is reported from real time billing every time, is both needed to execute above-mentioned judgement and handover operation, to prevent reality When charging report network element there is no learning functionality, can not be deducted fees number according to the request that the operation of front is voluntarily changed in CCR message; After having switched data service billing data account to prevent user, Subscriber Number does not change in time or Subscriber Number is not timely The case where judgement replacement, so that OCS, when carrying out billing data, the billing account number obtained from DCC system is centainly paid for number. Improve the accuracy of data service switching account charging.
Further, referring to Fig. 5, it is based on a upper embodiment, data service switching account charging method second of the present invention is real It applies in example, the data service switches account charging method further include:
Step S40, if detecting, CCR message is sent to OCS, and the first duration is arranged, and waits OCS response;
Step S50 disappears if receiving the Credit Control Answer CCA that OCS is returned based on received CCR message in the first duration Breath, then discharge the first duration, transparent transmission CCA message to real time billing reports network element;
Step S60 sends request and loses if not receiving the CCA message that OCS is returned based on CCR message in the first duration It loses information to real time billing and reports network element, discharge the first duration and clear up this session.
DCC system judge CCR message carry Subscriber Number and fee-based number it is whether identical, if aforementioned Subscriber Number with pair Take the forwarding preparation operation that number is identical, performs the next step;If aforementioned Subscriber Number and fee-based number be not identical, by user After number is substituted for fee-based number, the forwarding performed the next step prepares operation.It includes: to advise according to routing that the forwarding, which prepares operation, DCC message is then modified, message body is assembled.Wherein, DCC system need to follow following routing rule: in DCC protocol message Two fields of Origin-Host and Origin-Realm need to replace with the originating end of DCC PROXY interface message processor (IMP) when forwarding CCR Device identification and initiation end equipment home domain, Destination-Realm is filled according to the side OCS domain name, in addition it is also necessary to increase One AVP route record Route-Record mark real time billing reports the originating end device identification of network element.Forwarding is completed to prepare After operation, the CCR message prepared after the completion of operating can be sent to OCS, when DCC system detection is sent to OCS to CCR message When, setting the first duration of timing waits the response of the side OCS to return to message.
If DCC system receives the CCA response message of the side OCS return in the first duration, then the first duration of timing is discharged. Then, DCC message is modified according to routing rule, and transmitted response message CCA reports network element to real time billing.It is needed herein by CCA Two fields of Origin-Host and Origin-Realm in message replace with the device identification and equipment ownership of DCC PROXY Domain.
If DCC system does not receive the CCA response message of the side OCS return in the first duration, then task time-out, into Enter overtime process, returns to request failure information to real time billing and report network element, and discharge the first duration, clear up this session.
The present embodiment is by further determined DCC on the basis of the judgement of first embodiment or judgement plus replacement operation System forwards CCR message receives CCA message to OCS in the first duration, then the CCA message is forwarded to real time billing and is reported Network element completes the small dialog unit (such as Fig. 5 step 1-4) of composition session.So that charging flow is gone on smoothly.And if DCC system System is not received by CCA message in the first duration, then by overtime clean-up process, can avoid can not receive OCS because of a variety of causes When the CCA response message of side, DCC systems stay is waited for, and wastes Internet resources.It can avoid entire charging procedures to fall into Deadlock state promotes going on smoothly for entire charging flow.
Further, such as Fig. 5, in data service switching account charging method 3rd embodiment of the present invention, the step S10 Further include:
Step S11 receives the CCR message that real time billing reports network element to send, determines the type of message of the CCR message, institute Stating type of message includes session initiation message CCR-I, session updates message CCR-U and session termination message CCR-T;
Step S12, if receiving the CCA message that OCS is returned based on received CCR-I or CCR-U message in the first duration, The first duration is then discharged, transparent transmission CCA message to real time billing reports network element, and the second duration is arranged, and real time billing is waited to report Network element sends new CCR message;
Step S13 discharges if receiving the CCA message that OCS is returned based on received CCR-T message in the first duration First duration, transparent transmission CCA message to real time billing report network element, terminate session.
It is illustrated in figure 5 a complete session, entire session is made of several small dialogues.Real time billing reports network element to send The CCR message is forwarded to OCS by one CCR message to DCC system, DCC system, and OCS is based on the CCR message and sends a CCA Message gives DCC system, which is transmitted to real time billing again and reports network element (detailed process is shown in step S10's by DCC system Illustrate).Above-mentioned transmission and forwarding be one small dialogue (such as Fig. 5 step 1 to 4), be next exactly it is small dialogue recycle process (such as Fig. 5).
When receiving the CCR message that real time billing reports network element to send it is necessary to judge the affiliated type of the message, CCR disappears Breath can be divided into CCR-I, CCR-U, CCR-T.Regardless of the CCR message of type, DCC system all needs to forward the CCR message, if The first duration is set, CCA message of the OCS to be received based on the CCR message back is waited.
If DCC system receives the CCA message that OCS is returned based on CCR-I or CCR-U message in the first duration, release The first duration is put, the aforementioned CCA message of transparent transmission to real time billing reports network element, and the time quota given according to aforementioned CCA message Second duration is set, and the second duration should be not less than the time quota, preferably greater than the time quota fixed value.If when second The CCR message that real time billing reports network element to send is received in length, then continues above-mentioned judgement or judgement plus replacement operation;If second The CCR message that real time billing reports network element to send is not received in duration, then task time-out, into overtime process, return is asked It asks failure information to real time billing to report network element, and discharges the second duration, clear up this session.
If receiving the CCA message that OCS is returned based on received CCR-T message in the first duration, the first duration is discharged, After transparent transmission CCA message reports network element to real time billing, directly termination session.
The present embodiment passes through the type for judging CCR message, determines the condition for jumping out chargeable session: when DCC system is received When CCR message is CCR-T, it should be reported OCS is pass-through to real time billing based on the CCA message that received CCR-T message returns After network element, session is terminated.And if the second duration should be arranged when the received CCR message of DCC system is CCR-I or CCR-I, Wait real time billing that network element is reported to send next CCR message.Determine that session continues and jump out the condition of session, so that meeting Words terminate when meeting condition, and session is avoided to carry out forever, occupy the resources such as Gateway Network Element, waste Internet resources.
Further, such as Fig. 6, in data service switching account charging method fourth embodiment of the present invention, the step S20 The step of middle acquisition fee-based number can include:
Step S21 judges whether the CCR message is session initiation message CCR-I according to aforementioned CCR message;
Step S22 obtains pair in database according to the Subscriber Number in CCR message if the CCR message is CCR-I Data account is answered, which is fee-based number;
Step S23 obtains the fee-based number being stored in current sessions if the CCR message is not CCR-I.
After DCC system receives CCR message, parses the CCR message and obtain the Subscriber Number of its carrying, and judge that this disappears Whether breath is CCR-I, if the message is CCR-I, calls storing process to inquire data according to the Subscriber Number that the CCR-I is carried Library obtains corresponding data account (practical fee-based number), and deposits using the corresponding data account as fee-based number and Subscriber Number Enter in session, in case subsequent CCR-U and CCR-T judgement or modification replacement operation.If the CCR message is not CCR-I, can directly obtain Going bail for, there are the fee-based number in current sessions.
The present embodiment determines the access approaches of fee-based number by the classification of differentiation CCR message.Ensure regardless of real time billing That report network element transmission is CCR-I or CCR-U or CCR-T, and DCC system can get fee-based number, so that subsequent user The judgement of number and fee-based number and replacement operation are gone on smoothly.
Further, step S22 includes:
Step S221 calls storing process to inquire database according to the Subscriber Number in CCR message;
Step S222 returns to corresponding data account if calling, which is fee-based number;
Step S223 returns to error code if calling, and process terminates.
Wherein, storing process is called to inquire database, specific calling process according to the Subscriber Number in CCR message are as follows: will Subscriber Number calls storing process to inquire database as one of ginseng is entered, and storing process judges scene, and there are following several situations:
Determine based on Subscriber Number number, if user setting main number excessively is switched to countermark, and countermark state is normal, returns secondary Number.
Determine based on Subscriber Number number, if user was not provided with a main number switching countermark, and master's state is normal, directly returns Return main number.
Determine that Subscriber Number is countermark, user setting crosses countermark switching main number, and master's state is normal, returns to main number.
Determine that Subscriber Number is countermark, user was not provided with countermark switching main number, and countermark state is normal, returned secondary Number.
Other situations return to mistake.
Therefore, if calling database to return to corresponding data account, the corresponding data account according to the Subscriber Number in CCR message Number may based on number or countermark, using the corresponding data account as fee-based number deposit current sessions.If aforementioned calling returns wrong Accidentally, i.e., main number or countermark state is abnormal or database failure can not returned data account, then malloc failure malloc, by DCC system It replys real time billing and reports network element message CCA error code, process terminates.
DCC system under the corresponding data account to be currently arranged and malloc failure malloc two states is successfully called by determining Further operating, it is ensured that DCC system timely and accurately obtains fee-based number, but also real time billing reports network element can be according to session Fail and carry out next step operation, it is ensured that whole flow process is not stagnated because of malloc failure malloc, reduces network resources waste.
Further, such as Fig. 7, in data service switching the 5th embodiment of account charging method of the present invention, the data industry Business switching account charging method further include:
Step S70 receives the data service switching notice from SCP, according to the switching number in data service switching notice The corresponding all current sessions of code inquiry Subscriber Number;
Step S80 sends ASR message to real time billing in all current sessions and reports network element, waits in real time billing Network element is reported to return to ASA message and CCR-T message, to terminate current sessions.
SCP issues handoff notification message and gives DCC system, and DCC system is receiving the data service switching notice from SCP When (such as Fig. 7 step 11), obtain data service switching notice in Handover Number, it is corresponding with Subscriber Number according to Handover Number Relationship finds user in the table (such as HASH table) of record Subscriber Number and current sessions corresponding relationship that DCC system provides All active session ID, that is, current sessions ID (session-id), then respective session is found by session-id.For example, switching Number A based on number, master A correspond to Subscriber Number A and B (B is countermark), are found in HASH table according to A or B all current Session.Interruption session request ASR message is sent in all current sessions and reports network element to real time billing, cuts off active user number The session of code.Timing third duration is set, and session response ASA message to be interrupted is waited to return, meanwhile, also wait asking for CCR-T It asks and reports, and then terminate session.
The present embodiment receives the notice that data service switches account by DCC system, terminates enlivening for active user's number Session, so that DCC system can make a response as early as possible when receiving data account switching notice in conversation procedure, it is real The switching of fee-based number in existing charging process.
Optionally, such as Fig. 5 and Fig. 8, in data service switching account charging method sixth embodiment of the present invention, the data Service switching account charging method includes:
Step 1 receives the CCR-I request message that network element is reported from real time billing, and DCC system parses CCR-I first and obtains Subscriber Number is taken, and calls database to obtain the corresponding data account to be currently arranged according to the Subscriber Number.If calling is returned Corresponding data account is returned, then it is whether identical as corresponding data account to judge Subscriber Number, if the two is not identical, needs CCR- Subscriber Number in I message is substituted for corresponding data account, if the two is identical, does not have to replacement, and corresponding data account is made It is stored in current sessions for fee-based number and Subscriber Number.DCC system is by Subscriber Number and current meeting corresponding with Subscriber Number Corresponding lists (can be HASH table) is made in words.Then, 2 are entered step;
If aforementioned calling returns to error code or aforementioned data library operation failure, such as because database failure can not be rung It answers or system is busy leads to time-out etc., then real time billing is replied by DCC system and report network element message CCA error code, process terminates.
Step 2 modifies DCC message (i.e. CCR-I message) according to routing rule, and assembles message body, forwards message CCR-I To OCS.And the first duration of timing (referred to hereinafter as T1) is set, wait the response of the side OCS to return;
After step 3, OCS receive CCR-I message, CCA-I response message is returned to DCC system based on the CCR-I message, If DCC system receives the CCA-I response message in timing T1, timing T1 is discharged, while parsing the CCA-I response message and obtaining Time quota is taken, and session the second duration of timing (referred to hereinafter as T2) is set.Specifically, it can be learnt by the CCA-I response message It is charged according to time or by non-temporal charging, either charged according to time or press non-temporal charging, OCS will be according to charging Account account balance distributes time quota, T2 value are as follows: time quota+M (M is default set time, such as 10s).If DCC system It does not receive CCA-I response message in timing T1, then enters overtime process, directly return to failure information to real time billing and report net Member, and discharge timing T1, cleaning session;
Step 4 modifies DCC message according to routing rule, and response message CCA-I is pass-through to real time billing and reports network element, CCA-I is parsed simultaneously and obtains check code RC, if RC is that (error code is any value in pre-set interval, such as RC=to error code 3xxx~6xxx is with the four figures of 3 beginnings to the four figures of 6 beginnings), then process terminates;If RC is not error code, not in mistake Error code section (such as RC=2xxx is with the four figures of 2 beginnings), then continue waiting for real time billing and report network element side network element CCR-U or CCR-T Request message report;
If step 5, DCC system receive the CCR-U request message that real time billing reports network element to send in timing T2, first Release timer T2, whether the fee-based number for then judging the Subscriber Number of CCR-U carrying and being stored in current sessions is identical, If it is different, the Subscriber Number in CCR-U is then substituted for fee-based number, 6 are entered step;If DCC system does not have in timing T2 CCR-U the or CCR-T request message that real time billing reports network element to send is received, then enters overtime process, directly returns and unsuccessfully believe Breath to real time billing reports network element, and discharges timing T2, cleaning session.
Step 6 modifies DCC message according to routing rule, and assembles message body, forwards message CCR-U to OCS.And it is arranged Timing T1 waits the response of the side OCS to return;
If step 7, DCC system receive CCA-U response message in timing T1, timing T1 is discharged, while parsing should CCA-U response message acquisition time quota, and session timing T2 is set.Subsequently into step 8.
If DCC system does not receive CCA-U response message in timing T1, enters overtime process, directly return and unsuccessfully believe Breath to real time billing reports network element, and discharges timing T1, cleaning session.
Step 8 modifies DCC message according to routing rule, and response message CCA-U is pass-through to real time billing and reports network element, CCA-U is parsed simultaneously and obtains check code RC, if RC is error code, process terminates;If RC is not error code, reality is continued waiting for When charging report the request message of network element side network element CCR-U or CCR-T to report;
Step 9~step 10, ibid step 5~step 8 operation, have N (N >=0) is secondary CCR-U/ may be reported to return CCA-U is repeated no more;
If step 11, DCC system receive real time billing in timing T2 and report network element side network element CCR-T request message, release first Timer T2 is put, then, whether the fee-based number for judging the Subscriber Number of CCR-T carrying and being stored in current sessions is identical, If it is different, the Subscriber Number in CCR-T is then substituted for fee-based number.Then, 12 are entered step;If DCC system is in timing T2 Real time billing is not received inside and reports network element side network element CCR-T request message, then directly returns to failure information to real time billing and report net Member, and discharge timing T2, cleaning session.
Step 12 modifies DCC message according to routing rule, and assembles message body, forwards message CCR-T to OCS.And it is arranged Timing T1 waits the response of the side OCS to return;
Step 13, DCC system receive the CCA-T response message of the side OCS return, discharge timing T1;
Step 14 modifies DCC message according to routing rule, and transparent transmission response message CCA-T reports network element to real time billing. So far, which terminates.
In above-mentioned process, if some timed task is overtime, enter overtime process, directly return failure information to real-time meter Expense reports network element, and discharges timing, cleaning session.
In above-mentioned process, if DCC system receives termination process response STA or the RAR (Re-Auth- of OCS transmission Request re-authenticates/authorization requests) or session request ASR is interrupted, it is forwarded directly to real time billing and reports network element.If receiving To STA, then process after the message is forwarded to terminate;If receiving the termination process response request STR that real time billing reports network element to send Either RAA (Re-Auth-Answer re-authenticates/authorization response) or interruption conversational response ASA, then forward the message extremely OCS。
The present embodiment is the entire charging flow occurred in DCC system stages, a series of to DCC message by DCC system The operation such as judgement, replacement, modification, forwarding so that DCC message is successfully forwarded to OCS, and guarantee to be actually charged every time For preset fee-based number, guarantees that the number of practical charging meets user's intention or user benefit, reduce user data service Roaming spend, promoted user experience.
Optionally, such as Fig. 7, in data service switching the 7th embodiment of account charging method of the present invention, step 1 to step 10 With sixth embodiment step 1 as shown in Figure 5~step 10, operation and process are just the same, repeat no more, in conversation procedure In, DCC system receives the data service account switching notice that SCP is sent, and (such as step 11) of Fig. 7, DCC system will execute such as Lower step:
It is step 12, corresponding all current according to the Handover Number inquiry Subscriber Number in data service account switching notice Session;
Step 13 issues ASR request message and reports network element to real time billing, cuts off the session of active user's number.Setting Timing third duration (referred to hereinafter as T3), and ASA message is waited to return, meanwhile, also the request of CCR-T is waited to report;
Step 14 receives ASA response return, discharges timing T3, and clear up session;
Step 15~step 18, with sixth embodiment step 11 as shown in Figure 5~step 14, operation and process complete one Sample repeats no more.
The present embodiment is that user implements data account i.e. fee-based number operation or the automatic root of system in switch data library According to the situation that preset rules automatically switch, in conversation procedure, DCC system receives switching notice, and making an immediate response, it is current to cut off Session may make practical charge number according to user's actual conditions real-time change, and reduction system delays replacing practical meter not in time Take number to lose to user's bring, also achieve management of the user to data service billing account, promotes user experience, favorably The enthusiasm of one-card multi-number is used in improving user.
In addition, the embodiment of the present invention also proposes a kind of storage medium, data service switching is stored on the storage medium Account accounting routine, the data service switching account accounting routine realize the step as described in above-described embodiment when being executed by processor Suddenly, unanimous on the whole, it repeats no more.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that system equipment (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data service switches account charging method, which is characterized in that the data service switches account charging method packet Include following steps:
The credit control request CCR message that real time billing reports network element to send is received, the CCR message is parsed and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number;
If fee-based number is different from Subscriber Number, the Subscriber Number in the CCR message is substituted for fee-based number, and will use Number replaced new CCR message in family is forwarded to online charging system OCS.
2. data service as described in claim 1 switches account charging method, which is characterized in that the data service switches account Number charging method further include:
If detecting, CCR message is sent to OCS, and the first duration is arranged, and waits OCS response;
If receiving the Credit Control Answer CCA message that OCS is returned based on received CCR message in the first duration, is discharged One duration, transparent transmission CCA message to real time billing report network element;
If not receiving the CCA message that OCS is returned based on CCR message in the first duration, request failure information is sent to real-time Charging reports network element, discharges the first duration and clears up this session.
3. data service as claimed in claim 2 switches account charging method, which is characterized in that in the reception real time billing Report network element send credit control request CCR message the step of include:
The CCR message that real time billing reports network element to send is received, determines the type of message of the CCR message, the type of message packet Include session initiation message CCR-I, session updates message CCR-U and session termination message CCR-T;
If the CCA message that OCS is returned based on received CCR-I or CCR-U message is received in the first duration, when discharging first Long, transparent transmission CCA message to real time billing reports network element, and the second duration is arranged, and waits real time billing that network element is reported to send newly CCR message;
If receiving the CCA message that OCS is returned based on received CCR-T message in the first duration, the first duration, transparent transmission are discharged CCA message to real time billing reports network element, terminates session.
4. data service as described in claim 1 switches account charging method, which is characterized in that described and replace Subscriber Number The step of new CCR message after changing is forwarded to OCS further include:
The home domain of Diameter letter control agency by agreement DCC PROXY interface message processor (IMP) in CCR message is substituted for the ownership of OCS Domain;
The device identification of network element and equipment home domain is reported to be substituted for DCC PROXY interface message processor (IMP) real time billing in CCR message Device identification and equipment home domain, and increase by one comprising real time billing report network element device identify attribute value to AVP after, will The CCR message is forwarded to OCS.
5. data service as described in claim 1 switches account charging method, which is characterized in that described to obtain preset payment The step of number includes:
Judge whether the CCR message is session initiation message CCR-I according to aforementioned CCR message;
If the CCR message is CCR-I, the corresponding data account in database is obtained according to the Subscriber Number in CCR message, it should Corresponding data account is fee-based number;
If the CCR message is not CCR-I, the fee-based number being stored in current sessions is obtained.
6. data service as claimed in claim 5 switches account charging method, which is characterized in that described then according to CCR message In Subscriber Number obtain database in corresponding data account, the corresponding data account be fee-based number the step of include:
Storing process is called to inquire database according to the Subscriber Number in CCR message;
Corresponding data account is returned to if calling, which is fee-based number;
Error code is returned to if calling, process terminates.
7. data service as described in claim 1 switches account charging method, which is characterized in that the data service switches account Number charging method further include:
The data service switching notice from service control point (SCP) is received, according to the Handover Number in data service switching notice Inquire the corresponding all current sessions of Subscriber Number;
Interruption session request ASR message to real time billing is sent in all current sessions and reports network element, is waited in real time billing It reports network element to return and interrupts session response ASA message and CCR-T message, to terminate current sessions.
8. a kind of Diameter letter control agreement DCC system, which is characterized in that the DCC system includes: DCC server-side, DCC PROXY interface message processor (IMP) and DCC client;
The DCC server-side, the CCR message for reporting network element to send for receiving real time billing, and the CCR message is sent to DCC PROXY interface message processor (IMP);
The DCC PROXY interface message processor (IMP) is used for:
It parses the CCR message and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number, if fee-based number and Subscriber Number are not Together, then the Subscriber Number in the CCR message is substituted for fee-based number, and by the replaced new CCR message of Subscriber Number It is sent to DCC client;
The DCC client, for the replaced new CCR message of Subscriber Number to be forwarded to OCS.
9. a kind of data service account switch metering system, which is characterized in that the data service account switch metering system packet Include: real time billing reports network element, DCC system, database and OCS;
The real time billing reports network element, for sending CCR message to DCC system;
The DCC system includes: DCC server-side, DCC PROXY interface message processor (IMP) and DCC client;
The DCC server-side, the CCR message for reporting network element to send for receiving real time billing, and the CCR message is sent to DCC PROXY interface message processor (IMP);
The DCC PROXY interface message processor (IMP) is used for:
It parses the CCR message and obtains Subscriber Number;
Preset fee-based number is obtained, judges whether fee-based number is identical as Subscriber Number, if fee-based number and Subscriber Number are not Together, then the Subscriber Number in the CCR message is substituted for fee-based number, and by the replaced new CCR message of Subscriber Number It is sent to DCC client;
The DCC client, for the replaced new CCR message of Subscriber Number to be forwarded to OCS;
The database, for providing initial payment number for DCC system;
The OCS, for receiving the new CCR message of DCC system forwards.
10. a kind of storage medium, which is characterized in that data service switching account accounting routine is stored on the storage medium, The data service switching account accounting routine realizes the number as described in any one of claims 1 to 7 when being executed by DCC system The step of according to service switching account charging method.
CN201710536456.3A 2017-07-03 2017-07-03 DCC system, switching account charging method, system and storage medium Pending CN109218033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710536456.3A CN109218033A (en) 2017-07-03 2017-07-03 DCC system, switching account charging method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710536456.3A CN109218033A (en) 2017-07-03 2017-07-03 DCC system, switching account charging method, system and storage medium

Publications (1)

Publication Number Publication Date
CN109218033A true CN109218033A (en) 2019-01-15

Family

ID=64992526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710536456.3A Pending CN109218033A (en) 2017-07-03 2017-07-03 DCC system, switching account charging method, system and storage medium

Country Status (1)

Country Link
CN (1) CN109218033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418838A (en) * 2020-12-02 2021-02-26 中国联合网络通信集团有限公司 Data processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418838A (en) * 2020-12-02 2021-02-26 中国联合网络通信集团有限公司 Data processing method, device, equipment and storage medium
CN112418838B (en) * 2020-12-02 2023-07-07 中国联合网络通信集团有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102783195B (en) Local roaming charges in LTE/EPC network
KR101160377B1 (en) Converged prepaid and postpaid charging
EP1622304B2 (en) Method for selecting a charging rule in connection with subscriber
CN101212532B (en) Combined billing system and method
JP5373057B2 (en) Online billing for roaming users in visited network proxy online billing system
CN100563388C (en) Strategy under a kind of user roaming state and billing control method
RU2349045C2 (en) Method of diameter-session establishment for tariffing on stream of package data
US20090137226A1 (en) System and device for implementing advice of charges for supplementary service
CN101521868A (en) Roaming on-line charging method, device and control system
WO2009145785A1 (en) Online charging architecture in lte/epc communication networks
WO2010112069A1 (en) Optimized interface between two network elements operating under an authentication, authorization and accounting protocol
KR20110042102A (en) Online charging correlation in ims networks
CN111866778B (en) Authentication method, equipment and system based on roaming scene
CN108401231A (en) A kind of charging method, device and system
CN107911566A (en) Charge on traffic control method, device and system, computer-readable recording medium
CN102480718B (en) Method for supporting sponsored data connectivity at roaming scene and system thereof
CN102291704B (en) Charging method, charging device, exchange device and charging system
CN108011725A (en) A kind of policy control method, apparatus and system
CN102711086B (en) The processing method and strategy and charging regulation function entity of sponsored data cube computation
CN109218033A (en) DCC system, switching account charging method, system and storage medium
CN109547956B (en) Multi-service concurrent processing method
CN106714129A (en) Roaming charging method, related device and online charging system
CN109428734A (en) Billing implementation system, charging realizing method and accounting management functional entity
CN102143466B (en) On-line charging method, access proxy equipment and system
CN101203036A (en) Tactics coordination system and tactics coordination method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190115