Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the embodiment of the invention is described in further details below in conjunction with embodiment and accompanying drawing.At this, illustrative examples of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
The flow chart of a kind of charging method that Fig. 3 provides for the embodiment of the invention, this method is applied to aaa server, please refer to Fig. 3, and this method comprises:
Step 301:AAA server is asked quota according to the access request of prepayment client PPC to prepaid server PPS, and receives the authorization message that this PPS sends, and comprises in the described authorization message to authorize the business unit number;
Step 302:AAA server is determined the use authority amount according to described authorization message;
In the present embodiment, authorization message can comprise authorizes business unit to count GSU, also may further include and authorizes threshold value VT (Volume-Quota-Threshold, traffic threshold, No. 869 attributes).Wherein, GSU is a group attribute, has wherein comprised many attributes, for example the flow byte number CC-Total-Octets of Shou Quaning etc.; VT is that PPS is provided with according to delegated strategy, and whether supports the VT attribute and selectivity issues according to PPC.
Wherein, if in the authorization message except comprising GSU, also comprise and authorize threshold value VT, then the amount of licensing can be described mandate threshold value.If only comprise GSU in the authorization message, do not comprise and authorize threshold value VT, and the flow byte number of authorizing the mandate in the business unit number is less than the threshold value that sets in advance, then the amount of licensing can be described mandate business unit number, wherein, threshold value sets in advance, and for example can be the gateway device of carrying prepayment client, for example use amount of BRAS in 300 seconds etc.If only comprise GSU in the authorization message, do not comprise and authorize threshold value VT, and the flow byte number of authorizing the mandate in the business unit number is greater than the threshold value that sets in advance, then can determine this use authority amount according to the flow error of authorizing business unit number and PPC, the use authority amount determined according to this mode can be the flow byte number of mandate and the product of predefined percentage, wherein, the scope of described predefined percentage is 20%-99%, and described flow error deducts the product of predefined percentage less than the flow byte number and 1 of described mandate, also be, this use authority amount is CC-Total-Octets * n%, wherein, and the flow byte number of CC-Total-Octets for authorizing, n is a positive integer, n ∈ [20,99], the % of and flow error<CC-Total-Octets * (100-n).Also can be the flow byte number of mandate and predefined positive integer poor, wherein, described predefined positive integer is greater than described flow error, also be, this use authority amount is CC-Total-Octets-m, wherein, and the flow byte number of CC-Total-Octets for authorizing, m is a positive integer, and flow error<m.
Step 303:AAA server sends to described PPC with described use authority amount, so that described PPC controls professional use amount according to described use authority amount and described flow error;
In the present embodiment, that aaa server is handed down to PPC is not GSU, but through the quota after handling, and also therefore the i.e. part of this GSU, is equivalent to the warrant quantity that this aaa server has kept a part of PPS.
Step 304:AAA server is reported to described PPS with the professional use amount that described PPC sends, so that described PPS charges according to described professional use amount.
In the present embodiment, after flow used up, PPC can be reported to aaa server with professional use amount, so that aaa server should the business use amount be reported to PPS, PPS charges according to professional use amount.
According to an execution mode of present embodiment, professional use amount is less than authorizing the business unit number, and then aaa server directly is reported to PPS to get final product professional use amount; According to the another one execution mode of present embodiment, professional use amount is greater than authorizing the business unit number, and then aaa server is reported to PPS with professional use amount several times.Below will be illustrated by different embodiment.
In the present embodiment, prepayment client PPC can be arranged in IAD, and for example BRAS, NAS, AC are medium; Same, prepaid server PPS can be arranged in charge system, for example among the OCS, present embodiment not with this as restriction.
The method of present embodiment is applied to aaa server, and the mandate business unit number that issues according to PPS in aaa server is reserved the warrant quantity of a part of PPS, gives PPC and only issue the part warrant quantity, has avoided the charging loss that does not match and cause because of PPS and PPC.
In the method that Fig. 4 provides for the embodiment of the invention, the professional use amount that aaa server sends described PPC is reported to the flow chart of described PPS, please refer to Fig. 4, and this method also comprises:
Step 401:AAA server determines to report number of times and each amount of reporting according to the professional use amount that PPC sends;
Step 402:AAA server sends to described PPS according to the described number of times that reports with described each amount of reporting, so that described PPS charges according to professional use amount and the described mandate business unit number that described PPC reports.
According to an execution mode of present embodiment, if described professional use amount less than GSU, then determines to report number of times for once, the amount of reporting is the described business unit number that used.
In the present embodiment, if professional use amount, just illustrates PPC less than GSU the use of bandwidth is not exceeded the scope of authority, then this aaa server professional use amount that PPC is reported has also promptly been used the business unit number to report PPS and has been got final product.
Another one execution mode according to present embodiment, if described professional use amount is greater than GSU, and described PPS supports the attribute of requested service unit number RSU, then determining to report number of times is twice, the primary amount of reporting is GSU, secondary amount of reporting is the residue use amount, and described residue use amount is the poor of described professional use amount and described GSU.
In the present embodiment, if professional use amount is greater than GSU, just illustrate that PPC has exceeded the scope of authority to the use of bandwidth, if PPS supports the RSU attribute, then the professional use amount that at twice PPC reported of this aaa server reports PPS, wherein: give the correct time for the first time, when the GSU of request is originally reported PPS, report RSU, the value of this RSU is the professional use amount that PPC reports; Give the correct time for the second time, because PPS has adjusted GSU, and adjusted GSU is the professional use amount that PPC reports, then will give the correct time on for the first time residue use amount the use amount that reports of aaa server reports PPS and gets final product, and the difference that also is about to described professional use amount and described mandate business unit number reports PPS.
Another one execution mode according to present embodiment, if described professional use amount is greater than GSU, and described PPS does not support the attribute of requested service unit number RSU, determines that then the merchant who reports number of times and each amount of reporting will look professional use amount and mandate business unit number decides.
If professional use amount is counted the integral multiple of GSU for authorizing business unit, also be that professional use amount can be authorized to the business unit number and divides exactly, then reporting number of times is the merchant's of professional use amount and described mandate business unit number the number of times of integral multiple, and each amount of reporting all is GSU.
In the present embodiment, professional use amount is also greater than GSU, but because PPS does not support the RSU attribute, therefore, this PPS is still behind the available quantity GSU in the next cycle of letting it pass in advance, normally issue, and the available quantity GSU in this next cycle is identical with mandate before, therefore, aaa server can adopt the mode that reports several times when the use amount of report of user, divides exactly owing to professional use amount can be authorized to the business unit number again, therefore, reporting of the number of times of the integral multiple of the merchant by professional use amount and described mandate business unit number will authorize the business unit number to report at every turn, all professional use amounts can be reported to PPS.
Illustrating, suppose that professional use amount is 8x, is 2x and authorize the business unit number, then according to the method for present embodiment, divides the reporting service operating position 8x/2x=4 time, reports 2x at every turn, then all professional use amount 8x can be reported to PPS 4 times.
If professional use amount is not the integral multiple of GSU, also be that professional use amount can not be authorized to the business unit number and divides exactly, then determining to report number of times is that the merchant's of professional use amount and described mandate business unit number the number of times of integral multiple adds once, wherein, the amount of reporting of preceding integral multiple number of times all is GSU, the last amount of reporting is the residue use amount, and the described professional use amount of described residue use amount is counted delivery to described mandate business unit.
In the present embodiment, professional use amount is also greater than GSU, but because PPS does not support the RSU attribute, therefore, this PPS is still behind the available quantity GSU in the next cycle of letting it pass in advance, normally issue, and the available quantity GSU in this next cycle is identical with mandate before, therefore, aaa server can adopt the mode that reports several times when the use amount of report of user, again since professional use amount can not be authorized to the business unit number and divide exactly, therefore, the part that the professional use amount that reports for PPC can be divided exactly by GSU, report several times, each amount of reporting all is GSU, and the part that the professional use amount that reports for PPC can not be divided exactly by GSU reports separately.
Illustrating, suppose that professional use amount is 9x, is 2x and authorize the business unit number, then, divide according to the method for present embodiment | 9x/2x|+1=5 reporting service operating position reports 2x preceding 4 times at every turn, report x for the last time, then all professional use amount 9x can be reported to PPS 5 times.
The charging method of present embodiment is reserved the warrant quantity of a part of PPS at aaa server, only issue the part warrant quantity and give PPC, and when the reporting service use amount, the a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, not only reduced interacting message more after a little while, evaded the problem of use amount simultaneously, and avoided the loss of chargeing greater than quota in quota.
For the method that makes present embodiment is clear more understandable, be illustrated below in conjunction with the method for concrete application to present embodiment.
Fig. 5 is concrete charging flow interaction figure of using of present embodiment, and in should using, PPC is carried on BRAS, and PPS is carried on OCS, and the professional use amount that PPC reports please refer to Fig. 5 less than GSU, and this flow process comprises:
501: the user makes a call, and BRAS sends Access-Request (inserting request) message to aaa server.
The 502:AAA server becomes CCR (Initial) (Credit-Control-Request (Initial), credit control initial request) message with the Access-Request message conversion that receives, and sends to OCS request quota.
In should using, according to the monitoring error difference of different B RAS equipment, the QOS bandwidth difference of different user, CCR (Initial) message is also carried different RSU, and indication OCS authorizes corresponding GSU.
503:OCS is in conjunction with aforementioned RSU, account balance according to the user is reserved expenses of surfing Internet for the user, and according to service tariff standard budget user's available quantity GSU, then this GSU is returned to aaa server by CCA (initial) (Credit-Control-Answer (initial), credit control is initially replied) message.
The 504:AAA server is determined the use authority amount according to the GSU that receives, and by Access-Accept (insert and accept) message the use authority amount is handed down to BRAS.
Wherein, GSU is a group attribute, comprising attribute CC-Total-Octets, and the also flow byte number of promptly authorizing.
Wherein, aaa server determines that according to the GSU that receives the method for use authority amount comprises:
With CC-Total-Octets * n% as the use authority amount, wherein, n is an integer, if n too young pathbreaker causes the BRAS interacting message frequent, if n too senior general causes use amount may surpass CC-Total-Octets, therefore, but the reference configuration scope of n can be [20,99], and the flow error that guarantees BRAS less than the % of CC-Total-Octets * (100-n).As IAD, for example BRAS generally can be provided with a flow error, allows user's bandwidth use amount to float in allowed limits.
As the use authority amount, wherein, m is an integer with CC-Total-Octets-m, based on same reason, needs also to guarantee that the error of BRAS is less than m.
According to an execution mode of present embodiment, if this OCS is in being handed down to the authorization message of aaa server,, also comprised threshold value VT except comprising GSU, then present embodiment also directly usage threshold value VT send to BRAS as quota.
505:BRAS sends Accounting-Request (start) (beginning the request of chargeing) message to aaa server.
The 506:AAA server returns Accounting-Response (response of chargeing) message to BRAS.
507:BRAS sends Accounting-Request (Interim) (real time billing request) message to aaa server, and by this message report user's professional use amount, this business use amount can comprise duration, flow etc.
In the present embodiment, BRAS sends the real time billing request message to aaa server, can when flow uses up, send, also can be timed sending, present embodiment not with this as restriction.
The 508:AAA server becomes CCR (Update) (credit control update request) information reporting to give OCS Accounting-Request (Interim) message conversion.
In should using, the USU attribute in this CCR (Update) message has carried user's professional use amount USU, because USU is less than GSU, therefore, aaa server can normally report, and does not need to carry out extra process.
509:OCS clearing user is use amount, and the available quantity GSU in next cycle of budget returns to aaa server with GSU by CCA (Update) (credit control is upgraded and replied) message.
After the 510:AAA server receives the GSU that OCS issues, carry out the processing as step 504 after, determine the use authority amount, and return Accounting-Response (response of chargeing) message to BRAS, carry new use authority amount in this message.
In the present embodiment, aaa server determines that the mode of use authority amount also can adopt as the described mode of step 504, but present embodiment not with this as qualification, for example, as the flow byte number CC-Total-Octets of the mandate among this GSU during, then this GSU is issued as the use authority amount, wherein less than a predetermined threshold value, this threshold value is set according to use traffic, for example can be the use amount of BRAS in 300 seconds.
In the present embodiment, if the user is in line states always, then can repeated execution of steps 507~510, until user offline.
511: user offline, BRAS sends Accounting-Request (Stop) (stopping the request of chargeing) message to aaa server, and by this message report user's professional use amount, this business use amount can comprise duration, flow etc.
The 512:AAA server becomes CCR (Term) (credit control stops request) information reporting to give OCS Accounting-Request (Stop) message conversion that receives, and wherein, the USU attribute among this CCR (Term) has carried user's professional use amount.
513:OCS clearing user is use amount, and CCA (Term) (credit control stops to reply) message is returned to aaa server.
The 514:AAA server returns Accounting-Response (response of chargeing) message to BRAS.
Fig. 6 is the concrete charging flow interaction figure of using of present embodiment another one, and in should using, PPC is carried on BRAS, and PPS is carried on OCS, and GSU is less than the error of BRAS, and aaa server can't be reserved a part; Perhaps GSU is only big slightly than BRAS error, and aaa server can cause BRAS frequently to send Accounting-Request (interim) message after reserving a part, causes professional use amount that PPC reports greater than GSU thus.Please refer to Fig. 6, this flow process comprises:
601: the user makes a call, and BRAS sends Access-Request message to aaa server.
After the 602:AAA server becomes CCR (Initial) message with the Access-Request message conversion that receives, send to OCS request quota.
In should using, according to the monitoring error difference of different B RAS equipment, the QOS bandwidth difference of different user, in this CCR (Initial) message, carry different RSU, OCS authorizes corresponding GSU with indication.
603:OCS reserves expenses of surfing Internet according to the user account remaining sum for the user in conjunction with RSU, and according to expenses standard budget user's available quantity GSU, then GSU is returned to aaa server by CCA (initial) message.
The 604:AAA server is determined the use authority amount according to the GSU that receives, and by Access-Accept message this use authority amount is handed down to BRAS.
In the present embodiment, GSU is a group attribute, comprising attribute CC-Total-Octets, and the also flow byte number of promptly authorizing, determine that the method for use authority amount comprises:
As the use authority amount, wherein, n is an integer with CC-Total-Octets * n%, and the reference configuration scope can be [20,99], and the error of BRAS is less than the % of CC-Total-Octets * (100-n).Wherein, n too young pathbreaker causes the BRAS interacting message frequent, and n too senior general causes user's professional use amount may surpass CC-Total-Octets.
As the use authority amount, wherein, m is an integer, and the error of BRAS is less than m with CC-Total-Octets-m.
According to an execution mode of present embodiment, if OCS is in being handed down to the authorization message of aaa server,, also comprise threshold value VT except comprising GSU, then according to the method for present embodiment, directly usage threshold value VT issues BRAS as the use authority amount.
Another one execution mode according to present embodiment, can also set in advance a threshold value according to the flow operating position, for example with the use amount of BRAS in 300 seconds as threshold value, as CC-Total-Octets during, GSU is all issued as the use authority amount less than threshold value.
605:BRAS sends Accounting-Request (start) message to aaa server.
The 606:AAA server returns Accounting-Response message to BRAS.
607:BRAS sends Accounting-Request (Interim) message to aaa server, and the professional use amount by this message report user is assumed to be X, and this business use amount can comprise duration, flow etc.
In the present embodiment, BRAS sends the real time billing request message to aaa server, can when flow uses up, send, also can be timed sending, present embodiment not with this as restriction.
The 608:AAA server becomes CCR (Update) information reporting to give OCS Accounting-Request (Interim) message conversion that receives.
In should using, because the user's who reports professional use amount X is greater than warrant quantity GSU, therefore, according to the method for present embodiment,, also be if OCS supports the RSU attribute, allow the BRAS request to authorize the business unit number, then aaa server reports OCS at twice with user's professional use amount X.
In this step, this CCR (Update) message is GSU by the user's that the USU attribute carries professional use amount, and the warrant quantity that needs by the next cycle of RSU attribute indication OCS is X, also is the user's that reports of BRAS professional use amount.
609:OCS clearing user is use amount, and according to the RSU that receives, the available quantity GSU in next cycle of budget is X, and this GSU is returned to aaa server by CCA (Update) message.
The 610:AAA server sends a CCR (Update) information reporting immediately again and gives OCS, in this message, the user's who carries by the USU attribute professional use amount is X-GSU, also promptly except the remaining professional use amount after the professional use amount that reports by step 608, and by the warrant quantity of the next cycle needs of RSU attribute indication OCS is GSU.
611:OCS clearing user is use amount, and according to the RSU that receives, the available quantity GSU in next cycle of budget returns to aaa server with GSU by CCA (Update) message.
The 612:AAA server is determined new use authority amount according to the GSU that receives, and returns Accounting-Response message to BRAS, carries new use authority amount in this message.
In the present embodiment, aaa server determines that the mode of use authority amount also can adopt as the described mode of step 604, but present embodiment not with this as qualification.
In the present embodiment, if the user is in line states always, then can repeated execution of steps 607~612, until user offline.
613: user offline, BRAS sends Accounting-Request (Stop) message to aaa server, report user's professional use amount, this business use amount can comprise duration, flow etc.
The 614:AAA server reports OCS after Accounting-Request (Stop) message conversion that receives is become CCR (Term) message, wherein, in this message, carries user's professional use amount by the USU attribute.
Same, if professional use amount also can be handled greater than GSU at this moment, this CCR (Term) message is split into 2 CCR message as step 608~611, a CCR (update) report use amount GSU, a CCR (Term) reports remaining use amount.
615:OCS clearing user is use amount, and CCA (Term) message is returned to aaa server.
The 616:AAA server returns Accounting-Response message to BRAS.
Fig. 7 is the concrete charging flow interaction figure of using of present embodiment another one, and different with embodiment shown in Figure 6 is that in should using, OCS does not support the RSU attribute, can only authorize fixing GSU.Please refer to Fig. 7, this flow process comprises:
701~707: identical with step 601~607 of embodiment shown in Figure 6, do not repeat them here.
The 708:AAA server becomes CCR (Update) information reporting to give OCS Accounting-Request (Interim) message conversion that receives.
In should using, because the user's that reports professional use amount X is greater than warrant quantity GSU, and OCS does not support the RSU attribute, and therefore, according to the method for present embodiment, this aaa server reports OCS several times with user's professional use amount X.
In this step, the user's that carries by the USU attribute of this CCR (Update) message professional use amount is GSU.
709:OCS clearing user is use amount, because OCS does not support the RSU attribute, the available quantity GSU in its next cycle of budget returns to AAA with GSU by CCA (Update) message.
In the present embodiment, step 708,709 number of times according to the merchant's of X and GSU integral multiple carry out repetition, also are, X is what times of GSU, just need to repeat how many times,, then report remaining professional use amount by following step 710 and step 711 if X can not be divided exactly by GSU.
The 710:AAA server sends a CCR (Update) information reporting immediately again and gives OCS, wherein, the user's who carries in the USU attribute of this CCR (Update) message professional use amount is X to GSU delivery (delivery, i.e. the X part that can not be divided exactly by GSU), also is X mod GSU.
711:OCS clearing user is use amount, and the available quantity GSU in next cycle of budget returns to aaa server with GSU by CCA (Update) message.
In the present embodiment, if X can be divided exactly by GSU, then step 710,711 can be omitted.
The 712:AAA server is determined new use authority amount according to the GSU that receives, and returns Accounting-Response message to BRAS, carries new use authority amount in this message.
In the present embodiment, aaa server determines that the mode of use authority amount also can adopt the mode of taking as step 704, but present embodiment not with this as qualification.
In the present embodiment, if the user is in line states always, then can repeated execution of steps 707~712, until user offline.
713: user offline, BRAS sends Accounting-Request (Stop) message to aaa server, and by this message report user's professional use amount, this business use amount can comprise duration, flow etc.
714:AAA reports OCS after Accounting-Request (Stop) message conversion that receives is become CCR (Term) message, wherein, in this message, carries user's professional use amount by the USU attribute.
Same, if professional use amount also can be handled greater than GSU at this moment, this CCR (Term) message is split into a plurality of CCR message as step 708~711, CCR (update) message report use amount GSU, a CCR (Term) reports remaining use amount.
715:OCS clearing user is use amount, and CCA (Term) message is returned to aaa server.
The 716:AAA server returns Accounting-Response message to BRAS.
Present embodiment is to be carried on OCS with PPS, and it is that example is illustrated that PPC is carried on BRAS, but present embodiment not with this as restriction, for example PPC can be carried on other IADs, for example AC, NAS etc., PPS also can be carried on other charge system.
The charging method of present embodiment is reserved the warrant quantity of a part of PPS at aaa server, only issue the part warrant quantity and give PPC, and a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, not only reduced interacting message in quota more after a little while, evaded the problem of use amount simultaneously, and avoided the loss of chargeing greater than quota.
The composition frame chart of a kind of message accounting that Fig. 8 provides for the embodiment of the invention please refer to Fig. 8, and this message accounting comprises:
Receiving element 81 is used to receive the authorization message that prepaid server PPS sends, and comprises in the described authorization message and authorizes the business unit number;
Determining unit 82 is used for determining the amount of licensing according to the flow error of the PPC of described mandate business unit number and request;
Transmitting element 83 is used for described use authority amount is sent to described PPC, so that described PPC controls professional use amount according to described use authority amount and described flow error;
Report unit 84, be used for the professional use amount that described PPC sends is reported to described PPS, so that described PPS charges according to described professional use amount.
In one embodiment, this determining unit 82 specifically is used for determining that the described amount of licensing is described mandate threshold value when described authorization message comprises mandate business unit number and authorizes threshold value.
In another embodiment, this determining unit 82 specifically is used for comprising mandate business unit number in described authorization message, but do not comprise the mandate threshold value, and the flow byte number of the mandate in the described mandate business unit number determines that the described amount of licensing is described mandate business unit number during less than the threshold value that sets in advance.
In another embodiment, this determining unit 82 specifically is used for comprising mandate business unit number in described authorization message, but do not comprise the mandate threshold value, and the flow byte number of the mandate in the described mandate business unit number is during greater than the threshold value that sets in advance, determines that according to the flow error of the prepayment client PPC of described mandate business unit number and request the use authority amount is:
CC-Total-Octets * n%, wherein, the flow byte number of CC-Total-Octets for authorizing, n is a positive integer, n ∈ [20,99], the % of and flow error<CC-Total-Octets * (100-n); Perhaps
CC-Total-Octets-m, wherein, the flow byte number of CC-Total-Octets for authorizing, m is a positive integer, and flow error<m.
In one embodiment, this reports unit 84 specifically to be used in described professional use amount when authorizing business unit to count, and determines to report number of times for once, and the amount of reporting is for using the business unit number.
In another embodiment, this reports unit 84 specifically to be used in described professional use amount greater than authorizing the business unit number, and when described prepaid server is supported the attribute of requested service unit number, determining to report number of times is twice, the primary amount of reporting is to authorize the business unit number, secondary amount of reporting is the residue use amount, and described residue use amount is the poor of described professional use amount and described mandate business unit number.
In the present embodiment, report unit 84 specifically to be used for giving the correct time on the first time, described mandate business unit number and requested service unit number are sent to described prepaid server, wherein, described request business unit number is described professional use amount; On the second time, give the correct time, described residue use amount is sent to described prepaid server.
In another embodiment, this reports unit 84 specifically to be used in described professional use amount greater than authorizing the business unit number, described prepaid server is not supported the attribute of requested service unit number, and when described professional use amount is the integral multiple of described mandate business unit number, determining to report number of times is the merchant's of described professional use amount and described mandate business unit number the number of times of integral multiple, and each amount of reporting is described mandate business unit number.
In the present embodiment, report unit 84 specifically to be used on the number of times that carries out integral multiple, giving the correct time, described mandate business unit number is sent to described prepaid server.
In another embodiment, this reports unit 84 specifically to be used in described professional use amount greater than authorizing the business unit number, described prepaid server is not supported the attribute of requested service unit number, and when described professional use amount is not the integral multiple of described mandate business unit number, determining to report number of times is that the merchant's of described professional use amount and described mandate business unit number the number of times of integral multiple adds one, the amount of reporting of integral multiple number of times is to authorize the business unit number, the last amount of reporting is the residue use amount, and described residue use amount is that described professional use amount is counted delivery to described mandate business unit.
In the present embodiment, report unit 84 specifically to be used on the number of times of integral multiple, giving the correct time, described mandate business unit number is sent to described prepaid server; Give the correct time the last time, described residue use amount is sent to described prepaid server.
Each part of the message accounting of present embodiment is respectively applied for the function of each step of the method that realizes previous embodiment, owing in preceding method embodiment, each step is had been described in detail, does not repeat them here.
The message accounting of present embodiment can be applied to fixed network, also can be applied to other networks, the charging process of WiMAX network for example is as long as exist the above-quota situation of use amount, and support prepaid, the processing of can chargeing by the message accounting of present embodiment.
The message accounting of present embodiment can be applied to aaa server, by reserve the warrant quantity of a part of PPS at aaa server, only issue the part warrant quantity and give PPC, and a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, not only reduced interacting message more after a little while, evaded the problem of use amount simultaneously, and avoided the loss of chargeing greater than quota in quota.
The composition frame chart of a kind of aaa server that Fig. 9 provides for the embodiment of the invention, please refer to Fig. 9, the aaa server of present embodiment has comprised message accounting 91, in the present embodiment, this message accounting 91 can be realized by message accounting embodiment illustrated in fig. 8, because in the embodiment shown in fig. 8, this device is had been described in detail, do not repeat them here.
The aaa server of present embodiment is reserved the warrant quantity of a part of PPS, only issue the part warrant quantity and give PPC, and a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, not only reduced interacting message in quota more after a little while, evaded the problem of use amount simultaneously, and avoided the loss of chargeing greater than quota.
The embodiment of above-mentioned Fig. 3-Fig. 9 is that to reserve a part of quota with aaa server be example, yet, present embodiment not with this as restriction, for example, aaa server is not reserved a part of quota, and then according to the method for present embodiment, the GSU that professional use amount that aaa server can report according to PPC and PPS authorize and the RSU attribute of support determine to report the mode and the amount of reporting, evading the problem of use amount, and avoid the loss of chargeing greater than quota.Be illustrated below in conjunction with accompanying drawing, the content identical with the embodiment of Fig. 3-Fig. 9 do not repeat them here.
The flow chart of a kind of charging method that Figure 10 provides for another embodiment of the present invention please refer to Figure 10, and this method comprises:
Step 1001:AAA server receives the authorization message that PPS sends, and described authorization message comprises authorizes the business unit number;
Step 1002:AAA server sends to the PPC of request with described authorization message, so that described PPC controls professional use amount according to described authorization message;
Step 1003:AAA server receives the professional use amount that described PPC sends, and described professional use amount is greater than authorizing the business unit number;
Step 1004:AAA server determines to report number of times and each amount of reporting according to the professional use amount that prepayment client sends;
Step 1005: according to the described number of times that reports described each amount of reporting is sent to prepaid server, so that described prepaid server is chargeed according to professional use amount and the described mandate business unit number that described prepayment client reports.
The step 1004 of charging method embodiment illustrated in fig. 10 and step 1005 are identical with the step 401 and the step 402 of method embodiment illustrated in fig. 4, do not repeat them here.
When the professional use amount that the charging method of present embodiment reports at PPC is counted greater than the mandate business unit, the a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, evaded the problem of use amount, and avoided the loss of chargeing greater than quota.
The composition frame chart of a kind of message accounting that Figure 11 provides for another embodiment of the present invention please refer to Figure 11, and this device comprises:
Receiving element 111, be used to receive the authorization message that PPS sends, described authorization message comprises authorizes the business unit number, and described authorization message is being sent to PPC, so that after described PPC controls professional use amount according to described authorization message, receive the professional use amount that described PPC sends, described professional use amount is greater than described mandate business unit number;
Determining unit 112 is used for determining to report number of times and each amount of reporting according to the professional use amount that prepayment client sends;
Transmitting element 113 is used for according to the described number of times that reports described each amount of reporting being sent to described prepaid server, so that described prepaid server is chargeed according to professional use amount and the described mandate business unit number that described prepayment client reports.
Message accounting embodiment illustrated in fig. 11 really order unit 112 and transmitting element 113 and message accounting embodiment illustrated in fig. 8 report unit 84 identical, do not repeat them here.
When the professional use amount that the message accounting of present embodiment reports at PPC is counted greater than the mandate business unit, the a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, evaded the problem of use amount, and avoided the loss of chargeing greater than quota.
The composition schematic diagram of a kind of aaa server that Figure 12 provides for another embodiment of the present invention, please refer to Figure 12, the aaa server of present embodiment has comprised message accounting 121, in the present embodiment, this message accounting 121 can be realized by message accounting embodiment illustrated in fig. 11, since Figure 11 and embodiment illustrated in fig. 8 in, this device is had been described in detail, do not repeat them here.
When the professional use amount that the aaa server of present embodiment reports at PPC is counted greater than the mandate business unit, the a piece of news of PPC is split as multiple messages reports PPS, guaranteed the normal process of PPS, not only evaded the problem of use amount, also avoided the loss of chargeing greater than quota.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.