CN106411536A - Accounting method and device - Google Patents
Accounting method and device Download PDFInfo
- Publication number
- CN106411536A CN106411536A CN201610950566.XA CN201610950566A CN106411536A CN 106411536 A CN106411536 A CN 106411536A CN 201610950566 A CN201610950566 A CN 201610950566A CN 106411536 A CN106411536 A CN 106411536A
- Authority
- CN
- China
- Prior art keywords
- user
- information
- aaa server
- bill information
- bras
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1432—Metric aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides an accounting billing method and device. The method includes the following steps that: after the authentication of a user succeeds, a broadband remote access server (BRAS) obtains locally-stored bill information for the user, wherein the bill information contains consumed traffic or online duration of offline users which is calculated by the BRAS in an AAA (authentication-authorization-accounting server) inaccessible period; and an accounting message carrying the bill information is sent to the AAA server, so that the AAA server can perform deduction for the user according to the bill information. According to the accounting method and device provided by the embodiments of the invention, after online authentication of the user succeeds, the accounting message carrying the bill information is sent to the AAA server immediately, and therefore, the times sequence problem of the uploading and analysis of the bill information, and the going online again of the user can be avoided, and the AAA server can immediately perform deduction according to the bill information.
Description
Technical field
The present invention relates to Internet technical field, particularly to a kind of charging method and device.
Background technology
BRAS (Broadband Remote Access Server, Broadband Remote Access Server) is a kind of towards broadband
The access gateway of network application, is the bridge between broadband access network and backbone network, provides basic access means and broadband to connect
The management function networking.BRAS according to the relevant information of the user of access network, to AAA (Authentication-
Authorization-Accounting, certification-mandate-charging) server sends authentication authorization request, aaa server according to
Received authentication authorization request, is authenticated to user and authorizes.Further, aaa server is directed to Certificate Authority and leads to
The user crossing carries out charging using flow or online hours.However, in aaa server unreachable period, due to aaa server
The charging message that the use flow based on user for the BRAS or online hours send can not be received, aaa server can not be directed to be recognized
Card authorizes the user passing through to carry out normal billing.
Content of the invention
The embodiment of the invention discloses a kind of charging method and device, gone up again with user with the upload and parsing avoiding bill
Sequence problem between line, realizes aaa server and is deducted fees in time for the local bill that BRAS is counted.Particular technique side
Case is as follows:
On the one hand, embodiments provide a kind of charging method, be applied to Broadband Remote Access Server BRAS, institute
The method of stating includes:
After user authentication success, obtain the locally stored bill information for described user, wherein, described bill information
In be included in authentication and authorization charging aaa server unreachable period, described BRAS is directed to the use flow of offline user's statistics
Or online hours;
Send the charging message carrying described bill information to described aaa server, so that described aaa server is according to institute
State bill information described user is deducted fees.
On the one hand, embodiments provide a kind of charging method, be applied to authentication and authorization charging aaa server, institute
The method of stating includes:
Receive the charging message carrying bill information that Broadband Remote Access Server BRAS sends, wherein, described bill
Be included in described aaa server unreachable period in information, described BRAS be directed to offline user's statistics use flow or
Line duration, after described charging message is corresponding user authentication success, the message that described BRAS is sent based on this user;
According to described bill information, corresponding user is deducted fees.
On the one hand, embodiments provide a kind of message accounting, be applied to Broadband Remote Access Server BRAS, institute
State device to include:
Obtain module, after user authentication success, obtain the locally stored bill information for described user, its
In, it is included in authentication and authorization charging aaa server unreachable period in described bill information, described BRAS is directed to offline user
The use flow of statistics or online hours;
First sending module, for sending the charging message carrying described bill information to described aaa server, so that institute
State aaa server according to described bill information, described user to be deducted fees.
On the other hand, embodiments provide a kind of message accounting, be applied to authentication and authorization charging aaa server,
Described device includes:
Second receiver module, for receiving the charging report carrying bill information of Broadband Remote Access Server BRAS transmission
Literary composition, wherein, is included in described aaa server unreachable period in described bill information, described BRAS is directed to offline user's system
The use flow of meter or online hours, after described charging message is corresponding user authentication success, described BRAS is based on this user
The message sending;
Deduct fees module, for according to described bill information, deducting fees to corresponding user.
In this programme, Broadband Remote Access Server BRAS, after user authentication success, obtains locally stored being directed to
The bill information of this user, wherein, is included in aaa server unreachable period in this bill information, BRAS is directed to offline use
The use flow of family statistics or online hours;Send the charging message carrying this bill information to aaa server, so that AAA clothes
Business device is deducted fees to this user according to this bill information.It can be seen that, after user reaches the standard grade certification success again, send immediately and carry this
The charging message of the bill information of user is to aaa server, it is to avoid the upload of bill information and parsing reach the standard grade it again with user
Between sequence problem, and so that aaa server is deducted fees for this bill information in time.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of charging method provided in an embodiment of the present invention;
Fig. 2 is a kind of office point cell networking figure;
Fig. 3 is a kind of another schematic flow sheet of charging method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another kind charging method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of message accounting provided in an embodiment of the present invention;
Fig. 6 is a kind of another structural representation of message accounting provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another kind message accounting provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
In AAA (Authentication-Authorization-Accounting, certification-mandate-charging), server is not
When being provided that billing of services (as aaa server is unreachable), do not lose, do not malfunction for guarantee bill, BRAS (Broadband
Remote Access Server, Broadband Remote Access Server) can be in user offline, for user in aaa server not
During being provided that billing of services, offline front used flow/duration generates bill, and is buffered in local.
BRAS can be uploaded to being buffered in local bill on a specified path.When aaa server can provide meter
After taking service, aaa server is uploaded to bill and itself configuration information on specified path according to this, corresponds to for this bill
User deducted fees.Wherein, BRAS uploads the bill of local cache to specified path presence upload and manual upload two automatically
Plant upload mechanism.Specifically, the upload procedure of automatic upload mechanism is:BRAS periodically uploads bill to specified path, or
When the billing amount of local cache reaches predetermined threshold value, automatically upload bill to specified path;And manual upload mechanism
Upload procedure is:Bill is uploaded to manually by specified path by order line.
However, either automatically uploading or uploading manually, between the upload of bill and parsing and user are reached the standard grade again
Sequence problem can occur, and this sequence problem can lead to aaa server be directed to bill deduct fees not in time, to service provider cause damage
Lose.For example for a certain during aaa server is not provided that billing of services, for generating the user of bill, aaa server pin
After this bill is deducted fees, this user upper linear flow rate/when grow to a little, then can not reach the standard grade again before this user fills expense;And such as
This user and first reaches the standard grade again in fruit, and parses the bill of upload after uploading bill or aaa server after BRAS and deducted fees
Situation, may result in the phenomenon that aaa server is deducted fees not in time for bill.
The phenomenon deducted fees not in time for bill for above-mentioned aaa server, embodiments provides a kind of charging
Method and device, with avoid the upload of bill and parsing and user reach the standard grade again between sequence problem, realize aaa server and be directed to
The local bill that BRAS is counted is deducted fees in time.
First below a kind of charging method provided in an embodiment of the present invention is introduced.
As shown in figure 1, a kind of charging method provided in an embodiment of the present invention, can apply to Broadband Remote Access Server
BRAS, may include steps of:
S101:After user authentication success, obtain the locally stored bill information for this user, wherein, this bill is believed
Be included in authentication and authorization charging aaa server unreachable period in breath, BRAS be directed to offline user's statistics use flow or
Online hours;
It is understood that when user needs to reach the standard grade, this BRAS can be authenticated to aaa server based on this user,
And after certification is passed through, this aaa server is authorized to this user and is carried out aaa authentication charging, to be made based on this user
Normally deducted fees with flow or online hours.However, when this aaa server breaks down or this BRAS and aaa server
Between link failure, when leading to this aaa server unreachable, this aaa server cannot receive this BRAS be based on use
The certification request at family, causes user cannot complete certification (Radius certification is invalid), and then this user can not reach the standard grade.However, according to
Understand according to prior art, the unreachable front user having reached the standard grade for this aaa server, then can continue online.Now, AAA clothes
Business device can not carry out aaa authentication charging for the user that this has been reached the standard grade.And now, this BRAS then can be in local statistics
The aaa server unreachable period still online use flow of user or online hours, and in the aaa server unreachable phase
Between offline user generate bill information, be stored in BRAS local or be stored in the storage device connecting outside BRAS.As shown in Figure 2
Office point cell networking figure, wherein, link failure between this BRAS and aaa server, lead to this aaa server can not
Reach, in aaa server unreachable period, with being authenticated again reaching the standard grade per family, and, in aaa server unreachable period,
The user that reached the standard grade can continue online.
When aaa server up to, when user needs to reach the standard grade, BRAS is authenticated to aaa server based on this user, and
After certification is passed through, BRAS can inquire about all of local bill information locally being stored, from all of locally stored
Obtain the bill information for this user in ground bill information, wherein, in this bill information, be included in the aaa server unreachable phase
Between, BRAS is directed to the offline use flow of user's statistics or online hours, and the identification information of corresponding offline user.
Wherein, when the locally stored bill information having for user it may be determined that this user is the user reaching the standard grade again.
S102:Send the charging message carrying this bill information to aaa server, so that aaa server is according to this bill
Information is deducted fees to this user.
After obtaining the locally stored bill information for this user, the charging message carrying this bill information can be sent
To aaa server, after this aaa server receives the charging message that this carries bill information, according to included in bill information
User in aaa server unreachable period used flow or online hours, to this user, corresponding account is deducted fees.
In one implementation, described transmission carries the charging message of this bill information to aaa server (S102), can
To include:
Bill information is filled in the default bill attribute field of charging message;
Send the charging message comprising this bill attribute field to aaa server.
In this charging message, newly-increased setting bill attribute field, this bill information is filled into this default bill attribute word
Duan Zhong, and the charging message comprising this bill attribute field is sent to aaa server, wherein, this bill attribute field is permissible
Use Local-Bill-History attribute-bit.After this aaa server receives this charging message, and aaa server according to
The configuration information of itself, when determination needs expense produced by each user to aaa server unreachable period to deduct fees, from meter
Parse bill information in the bill attribute field of expense message, and deducted fees for this bill information.
The application embodiment of the present invention, Broadband Remote Access Server BRAS, after user authentication success, obtains locally stored
The bill information for this user, wherein, in this bill information, be included in aaa server unreachable period, BRAS is directed to down
The use flow of user's statistics of line or online hours;Send the charging message carrying this bill information to aaa server, so that
Aaa server is deducted fees to this user according to this bill information.It can be seen that, after user reaches the standard grade certification success again, send immediately
The charging message of bill information carrying this user is to aaa server, it is to avoid the upload of bill information and parsing are with user again
Sequence problem between reaching the standard grade, and so that aaa server is deducted fees for this bill information in time.
In another embodiment, as shown in figure 3, a kind of charged party of being provided from the angle of BRAS of the embodiment of the present invention
Method, may include steps of:
S301:After user authentication success, the locally stored local bill information of BRAS inquiry, determine that local bill information is
No have the bill information mating this user;
S302:If it does, obtaining the locally stored bill information for this user, wherein, wrap in this bill information
Be contained in authentication and authorization charging aaa server unreachable period, BRAS be directed to the use flow of offline user's statistics or online when
Long;
S303:Send the charging message carrying this bill information to aaa server, so that aaa server is according to this bill
Information is deducted fees to this user.
It is understood that after user reaches the standard grade certification success, this BRAS is directed to this user, locally stored local of inquiry
Bill information, and determine that local bill information whether there is the bill information mating this user, when from locally stored local account
Finding the bill information of this user in single information, as there is the bill information mating this user, conversely, then not existing.When
In the presence of determining, obtain the bill information of this user, and send the charging message carrying this bill information to aaa server.
Specifically, send and carry the charging message of this bill information to the specific implementation of aaa server and be referred to
The associated description content of S102.
When from locally stored local bill information, not finding the bill information of this user it may be determined that this use
Family is zero in aaa server institute of unreachable period using flow or online hours, now can be based on according to prior art flow process
This user sends charging message to aaa server, wherein, does not carry bill information (i.e. in this charging message in this charging message
Do not increase newly setting bill attribute field), or, to aaa server send carry filling content by used flow or online when
The charging message of a length of zero bill information, this is all possible.
Further, in this aaa server unreachable period, it is possible that the used flow of some still online users
Reach or exceeded the flow that it is bought, or online hours have reached or exceeded the situation of its bought duration, that is, when this
The charging message carrying bill information that aaa server is sent for this user according to BRAS, and detained for this user
Fei Hou, the remaining flow of this user or the situation that remaining online hours are zero (may be negative value), for such situation, AAA takes
Business device can notify BRAS to force this user offline, specifically, in another embodiment, carries this bill information in described transmission
Charging message to after aaa server (S102), the charging method that the embodiment of the present invention is provided can also include:
Receive the feedback information for this user that aaa server sends, wherein, this feedback information includes strong for indicating
Make the information of this user offline, this feedback information or remains in the remaining utilizable flow determining this user for aaa server
The information sending to BRAS when a length of zero during line;
This user offline is forced according to this feedback information.
It is understood that when aaa server is zero in the remaining utilizable flow determining user or remaining online hours
When (may be negative value), send the feedback information for this user to BRAS, for indicating that this BRAS forces this user offline,
After this BRAS receives feedback information, this user offline is forced according to feedback information.In actual applications, aaa server is permissible
By existing COA (Change of Authorization, authorization message changes) request message, BRAS is according to this COA for instruction
Information change authorized user message in request message, the residue such as forcing user offline or change user can be using flow/surplus
Remaining online hours.
Certainly, it is directed to some charging messages carrying bill information in aaa server, corresponding user is deducted fees
Afterwards, when the remaining utilizable flow of this user or remaining online hours are not zero, in order to point out the used flow of user or online when
Long situation, this aaa server, after the bill information for this user is deducted fees, can also send another feedback to this BRAS
Information is to point out the used flow of this user or online hours situation by this BRAS, wherein, permissible in this another feedback information
Including:After aaa server is deducted fees according to the bill information of this user, the residue of this user can be using flow or remaining online
Duration.
Specifically, after BRAS receives this feedback information or another feedback information, the pin locally being stored can be removed
Bill information to this user, to save the local bill information memory space of storage device that is local or connecting outward, and, is beneficial to
The follow-up lookup to local bill information.Certainly, after BRAS receives this feedback information or another feedback information it is also possible to
Do not remove the bill information for this user that storage device that is local or outreaching is stored, now, this local bill information can
So that original mechanism uses, local bill information is uploaded to by specified circuit by automatic upload mechanism or manual upload mechanism
Footpath, and stored, carry out artificial treatment with customer network management, CNM personnel for this local bill information.
As shown in figure 4, the embodiment of the present invention additionally provides a kind of charging message, it is applied to authentication and authorization charging AAA service
Device, can include step:
S401:Receive the charging message carrying bill information that Broadband Remote Access Server BRAS sends, wherein, this account
It is included in aaa server unreachable period, BRAS is directed to the offline use flow of user's statistics or online hours in single information,
After this charging message is corresponding user authentication success, the message that BRAS is sent based on this user;
It is understood that BRAS is after user reaches the standard grade certification success, it is based on this user immediately and takes to aaa server transmission
With the charging message of bill information, and then, this aaa server receives the charging message that this carries bill information, can avoid using
The sequence problem reached the standard grade again and the upload of bill information between in family.
S402:According to described bill information, corresponding user is deducted fees.
After aaa server receives the charging message carrying bill information, from this charging message, parse bill information,
And according to this bill information, corresponding user is deducted fees.
Specifically, described corresponding user is deducted fees (S402) according to described bill information, including:
According to the configuration information of itself, determine whether aaa server meets predetermined attribute of deducting fees, wherein, this makes a reservation for deduct fees
Attribute is:The attribute deducted fees for expense produced by aaa server unreachable period each user;
When being judged as YES, according to this bill information, this user is deducted fees.
This aaa server can be according to the configuration information of itself, it is determined whether to itself unreachable period, each user is produced
Raw expense is deducted fees, when determine need expense produced by each user to itself unreachable period to deduct fees when, that is,
Meet predetermined deduct fees attribute when, according to bill information, this user is deducted fees.Wherein, the configuration information according to itself, determines
Expense produced by each user to itself unreachable period carries out deducting fees and can adopt prior art, will not be described here.
Wherein, in one implementation, this bill information can be filled in the default bill attribute field of charging message;This
When, after receiving this charging message, aaa server needs first to parse this bill information from bill attribute field, then, according to
Bill information, deducts fees to this user.
The application embodiment of the present invention, aaa server receives the charging message carrying bill information that BRAS sends, wherein,
It is included in described aaa server unreachable period, described BRAS is directed to the use of offline user's statistics in described bill information
Flow or online hours, after this charging message is corresponding user authentication success, the message that BRAS is sent based on this user;According to
Described bill information, deducts fees to corresponding user.It can be seen that, after user reaches the standard grade certification success again, send immediately and carry this
The charging message of the bill information of user is to aaa server, it is to avoid the upload of bill information and parsing reach the standard grade it again with user
Between sequence problem, and so that aaa server is deducted fees for this bill information in time.
Further, in this aaa server unreachable period, it is possible that the used flow of some users still reaching the standard grade
Reach or exceeded the flow that it is bought, or online hours have reached or exceeded the situation of its bought duration, that is, when this
The charging message carrying bill information that aaa server is sent for this user according to BRAS, and detained for this user
Fei Hou, the remaining flow of this user or the situation that remaining online hours are zero (may be negative value), for such situation, this AAA
Server can notify this BRAS to force this user offline, specifically, in another embodiment, in the described configuration according to itself
Information and described bill information, after corresponding user is deducted fees, the charging method that the embodiment of the present invention is provided is also
Can include:
Determine the remaining utilizable flow of this user or remaining online hours;
When this residue can be zero using flow or remaining online hours, send the feedback letter for this user to BRAS
Breath, so that BRAS is after receiving this feedback information, forces this user offline, wherein, this feedback information is included for indicating
Force the information of this user offline.
It is understood that when aaa server is zero in the remaining utilizable flow determining user or remaining online hours
When (may be negative value), send the feedback information for this user to BRAS, for indicating that this BRAS forces this user offline,
After this BRAS receives feedback information, this user offline is forced according to feedback information.In actual applications, aaa server is permissible
By existing COA (Change of Authorization, authorization message changes) request message, BRAS is according to this COA for instruction
Information change authorized user message in request message, the residue such as forcing user offline or change user can be using flow/surplus
Remaining online hours.
Certainly, it is directed to some charging messages carrying bill information in aaa server, corresponding user is deducted fees
Afterwards, when the remaining utilizable flow of this user or remaining online hours are not zero, in order to point out the used flow of user or online when
Long situation, this aaa server, after the bill information for this user is deducted fees, can also send another feedback to this BRAS
Information is to point out the used flow of this user or online hours situation by this BRAS, wherein, permissible in this another feedback information
Including:After aaa server is deducted fees according to the bill information of this user, the residue of this user can be using flow or remaining online
Duration.
Corresponding to said method embodiment, embodiments provide a kind of message accounting, be applied to broad band remote and connect
Enter server B RAS, as shown in figure 5, described device can include:
Obtain module 510, after user authentication success, obtain the locally stored bill information for described user,
Wherein, it is included in authentication and authorization charging aaa server unreachable period in described bill information, described BRAS is directed to offline use
The use flow of family statistics or online hours;
First sending module 520, for sending the charging message carrying described bill information extremely described aaa server, with
Described aaa server is made according to described bill information, described user to be deducted fees.
The application embodiment of the present invention, Broadband Remote Access Server BRAS, after user authentication success, obtains locally stored
The bill information for this user, wherein, in this bill information, be included in aaa server unreachable period, BRAS is directed to down
The use flow of user's statistics of line or online hours;Send the charging message carrying this bill information to aaa server, so that
Aaa server is deducted fees to this user according to this bill information.It can be seen that, after user reaches the standard grade certification success again, send immediately
The charging message of bill information carrying this user is to aaa server, it is to avoid the upload of bill information and parsing are with user again
Sequence problem between reaching the standard grade, and so that aaa server is deducted fees for this bill information in time.
In one implementation, based on shown in Fig. 5, as shown in fig. 6, a kind of charging that the embodiment of the present invention is provided fills
Put and also include the first determining module 610;
Described first determining module 610, for described obtain the locally stored bill information for described user it
Before, inquire about locally stored local bill information, determine that described local bill information whether there is the bill mating described user
Information;If it does, triggering described acquisition module 510.
In one implementation, a kind of message accounting that the embodiment of the present invention is provided also include the first receiver module and
Force downline module;
Described first receiver module, for carrying the charging message of described bill information to described AAA clothes in described transmission
After business device, receive the feedback information for described user that described aaa server sends, wherein, described feedback information includes
Force the information of described user offline for instruction, described feedback information is that described aaa server is determining described user
Remaining utilizable flow or remaining online hours are the information sending to described BRAS when zero;
Described pressure downline module, for forcing described user offline according to described feedback information.
Corresponding to said method embodiment, embodiments provide a kind of message accounting, be applied to Certificate Authority meter
Take aaa server, as shown in fig. 7, described device can include:
Second receiver module 710, by receive Broadband Remote Access Server BRAS transmission carry bill information based on
Take message, wherein, in described bill information, be included in described aaa server unreachable period, described BRAS is directed to offline use
The use flow of family statistics or online hours, after described charging message is corresponding user authentication success, described BRAS is based on should
The message that user sends;
Module of deducting fees 720, for according to described bill information, deducting fees to corresponding user.
The application embodiment of the present invention, aaa server receives the charging message carrying bill information that BRAS sends, wherein,
It is included in described aaa server unreachable period, described BRAS is directed to the use of offline user's statistics in described bill information
Flow or online hours, after this charging message is corresponding user authentication success, the message that BRAS is sent based on this user;According to
Described bill information, deducts fees to corresponding user.It can be seen that, after user reaches the standard grade certification success again, send immediately and carry this
The charging message of the bill information of user is to aaa server, it is to avoid the upload of bill information and parsing reach the standard grade it again with user
Between sequence problem, and so that aaa server is deducted fees for this bill information in time.
In one implementation, described module 720 of deducting fees, specifically for the configuration information according to itself, determines described
Whether aaa server meets predetermined attribute of deducting fees, and wherein, described predetermined attribute of deducting fees is:Unreachable for described aaa server
The attribute that expense produced by period each user is deducted fees;
When the described aaa server of determination meets and makes a reservation for deduct fees attribute, according to described bill information, described user is carried out
Deduct fees.
In one implementation, a kind of message accounting that the embodiment of the present invention is provided also include the second determining module and
Second sending module;
Described second determining module, for determining the remaining utilizable flow of described user or remaining online hours;
Described second sending module, for when described residue can be zero using flow or remaining online hours, to described
BRAS sends the feedback information for described user, so that described BRAS is after receiving described feedback information, forces described
User offline, wherein, described feedback information includes forcing the information of described user offline for instruction.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating
In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to
Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that
Also there is other identical element including in the process of described key element, method, article or equipment.
Each embodiment in this specification is all described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation
Part illustrate.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All
Any modification, equivalent substitution and improvement made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
Interior.
Claims (12)
1. it is characterised in that being applied to Broadband Remote Access Server BRAS, methods described includes a kind of charging method:
After user authentication success, obtain the locally stored bill information for described user, wherein, wrap in described bill information
Be contained in authentication and authorization charging aaa server unreachable period, described BRAS be directed to offline user's statistics use flow or
Line duration;
Send the charging message carrying described bill information to described aaa server, so that described aaa server is according to described account
Single information is deducted fees to described user.
2. method according to claim 1 is it is characterised in that obtain the locally stored account for described user described
Before single information, methods described also includes:
Inquire about locally stored local bill information, determine and in described local bill information, whether there is the account mating described user
Single information;
If it does, the described step obtaining the locally stored bill information for described user of execution.
3. method according to claim 1 and 2 it is characterised in that carry the charging of described bill information in described transmission
To after described aaa server, methods described also includes message:
Receive the feedback information for described user that described aaa server sends, wherein, described feedback information is included for referring to
Show the information forcing described user offline, described feedback information is that described aaa server can in the residue determining described user
It is the information sending to described BRAS when zero with flow or remaining online hours;
Described user offline is forced according to described feedback information.
4. it is characterised in that being applied to authentication and authorization charging aaa server, methods described includes a kind of charging method:
Receive the charging message carrying bill information that Broadband Remote Access Server BRAS sends, wherein, described bill information
In be included in described aaa server unreachable period, described BRAS be directed to the use flow of offline user's statistics or online when
Long, after described charging message is corresponding user authentication success, the message that described BRAS is sent based on this user;
According to described bill information, corresponding user is deducted fees.
5. method according to claim 4 it is characterised in that described according to described bill information, corresponding user is entered
Row is deducted fees, including:
According to the configuration information of itself, determine whether described aaa server meets predetermined deduct fees attribute, wherein, described predetermined button
Taking attribute is:The attribute deducted fees for expense produced by each user of described aaa server unreachable period;
When the determination is yes, according to described bill information, described user is deducted fees.
6. the method according to claim 4 or 5 is it is characterised in that described according to described bill information, to corresponding use
After being deducted fees in family, methods described also includes:
Determine the remaining utilizable flow of described user or remaining online hours;
When described residue can be zero using flow or remaining online hours, send the feedback for described user to described BRAS
Information, so that described BRAS is after receiving described feedback information, forces described user offline, wherein, described feedback information
Including the information forcing described user offline for instruction.
7. it is characterised in that being applied to Broadband Remote Access Server BRAS, described device includes a kind of message accounting:
Obtain module, after user authentication success, obtain the locally stored bill information for described user, wherein, institute
State and in bill information, be included in authentication and authorization charging aaa server unreachable period, described BRAS is directed to offline user's statistics
Use flow or online hours;
First sending module, for sending the charging message carrying described bill information to described aaa server, so that described
Aaa server is deducted fees to described user according to described bill information.
8. device according to claim 7 is it is characterised in that described device also includes the first determining module;
Described first determining module, before the bill information for described user locally stored in described acquisition, inquiry
Locally stored local bill information, determines and whether there is the bill information mating described user in described local bill information;
If it does, triggering described acquisition module.
9. the device according to claim 7 or 8 is it is characterised in that described device also includes the first receiver module and pressure
Downline module;
Described first receiver module, for carrying the charging message of described bill information to described aaa server in described transmission
Afterwards, receive the feedback information for described user that described aaa server sends, wherein, described feedback information include for
Indicate the information forcing described user offline, described feedback information is described aaa server in the residue determining described user
Utilizable flow or remaining online hours are the information sending to described BRAS when zero;
Described pressure downline module, for forcing described user offline according to described feedback information.
10. it is characterised in that being applied to authentication and authorization charging aaa server, described device includes a kind of message accounting:
Second receiver module, for receiving the charging message carrying bill information of Broadband Remote Access Server BRAS transmission,
Wherein, it is included in described aaa server unreachable period in described bill information, described BRAS is directed to what offline user counted
Using flow or online hours, after described charging message is corresponding user authentication success, described BRAS is based on this user and sends
Message;
Deduct fees module, for according to described bill information, deducting fees to corresponding user.
11. devices according to claim 10 it is characterised in that described module of deducting fees, specifically for joining according to itself
Confidence ceases, and determines whether described aaa server meets predetermined attribute of deducting fees, and wherein, described predetermined attribute of deducting fees is:For described
The attribute that expense produced by aaa server unreachable period each user is deducted fees;
When the described aaa server of determination meets and makes a reservation for deduct fees attribute, according to described bill information, described user is detained
Take.
12. devices according to claim 10 or 11 are it is characterised in that described device also includes the second determining module and
Two sending modules;
Described second determining module, for determining the remaining utilizable flow of described user or remaining online hours;
Described second sending module, for when described residue can be zero using flow or remaining online hours, to described BRAS
Send the feedback information for described user, so that described BRAS is after receiving described feedback information, force described user
Offline, wherein, described feedback information includes forcing the information of described user offline for instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610950566.XA CN106411536A (en) | 2016-10-27 | 2016-10-27 | Accounting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610950566.XA CN106411536A (en) | 2016-10-27 | 2016-10-27 | Accounting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106411536A true CN106411536A (en) | 2017-02-15 |
Family
ID=58014276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610950566.XA Pending CN106411536A (en) | 2016-10-27 | 2016-10-27 | Accounting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106411536A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108900480A (en) * | 2018-06-12 | 2018-11-27 | 新华三技术有限公司 | Client certificate management method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103036753A (en) * | 2012-12-11 | 2013-04-10 | 华为技术有限公司 | Message sending method and broadband remote access server (BRAS) |
CN106059781A (en) * | 2016-06-23 | 2016-10-26 | 杭州华三通信技术有限公司 | Accounting method and device |
-
2016
- 2016-10-27 CN CN201610950566.XA patent/CN106411536A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103036753A (en) * | 2012-12-11 | 2013-04-10 | 华为技术有限公司 | Message sending method and broadband remote access server (BRAS) |
CN106059781A (en) * | 2016-06-23 | 2016-10-26 | 杭州华三通信技术有限公司 | Accounting method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108900480A (en) * | 2018-06-12 | 2018-11-27 | 新华三技术有限公司 | Client certificate management method and device |
CN108900480B (en) * | 2018-06-12 | 2021-12-07 | 新华三技术有限公司 | Client authentication management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1833219B1 (en) | Methods, apparatus and software for using a token to calculate time-limited password within cellular telephone | |
AU741703B2 (en) | Implementation of access service | |
US10182161B2 (en) | Modifying a quality of a connection between a terminal and an application server | |
CN102546770A (en) | Unified account management method and third-party account management system | |
US9426307B2 (en) | Non-linear data charging | |
CN102739409A (en) | Internet traffic charging device and method | |
US8078510B2 (en) | Method, system and server for charging a prepaid account | |
CN1223140C (en) | Method for implementing broad band pre-payment based on authentication, authorization and charging protocol | |
CN106487788A (en) | A kind of user access method, SDN controller, forwarding unit and subscriber access system | |
WO2013108136A1 (en) | Method and apparatus for performing charging control to a sponsored data application | |
US11915330B2 (en) | Secure tokens for controlling access to a resource in a resource distribution network | |
CN102497379A (en) | Network access method, system and equipment | |
EP4046358B1 (en) | Secure tokens for controlling access to a resource in a resource distribution network | |
IES991037A2 (en) | Data communication | |
JP2003162591A (en) | Communication service quality assurance method and system | |
EP1684458B1 (en) | A method of calculating broadband access server dhcp user's on-line time | |
CN109286506B (en) | Method, system and device for charging flow | |
CN106411536A (en) | Accounting method and device | |
EP2547145A1 (en) | Method and equipment for controlling quality of service of user terminal device | |
US11790349B2 (en) | Secure tokens for controlling access to a resource in a resource distribution network | |
CN109417485B (en) | Method and apparatus for charging in a telecommunications network | |
US20120095858A1 (en) | Pre-paid service system and method | |
CN102244581B (en) | Accounting method and device | |
CN109963260A (en) | A kind of method and device that determining business terminates | |
CN103841088A (en) | Method for providing network service connection quality detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou science and Technology Industrial Park, high tech Industrial Development Zone, Zhejiang Province, No. six and road, No. 310 Applicant before: Huasan Communication Technology Co., Ltd. |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |