CN106487530A - Update user's charging method and device - Google Patents
Update user's charging method and device Download PDFInfo
- Publication number
- CN106487530A CN106487530A CN201611087179.4A CN201611087179A CN106487530A CN 106487530 A CN106487530 A CN 106487530A CN 201611087179 A CN201611087179 A CN 201611087179A CN 106487530 A CN106487530 A CN 106487530A
- Authority
- CN
- China
- Prior art keywords
- request message
- moment
- targeted customer
- user
- accounting request
- 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
- H04L12/1407—Policy-and-charging control [PCC] architecture
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application provides a kind of renewal user's charging method and device, and methods described is applied to access device, and methods described includes:When detecting targeted customer and reaching the standard grade, the accounting request message for the targeted customer is sent to accounting server, and the targeted customer is added to online user's list;In online user's list, add the moment for sending accounting request message next time corresponding to the targeted customer;Based on default detection cycle, detect whether current time is more than or equal to the moment for sending accounting request message next time corresponding to the targeted customer;If it is, the accounting request message corresponding to the targeted customer is sent to accounting server, and update the moment for sending accounting request message next time.The renewal user's charging method provided using the application, can effectively improve the accuracy of user's charging.
Description
Technical field
The application is related to computer communication field, more particularly to updates user's charging method and device.
Background technology
In the billing mechanism based on Portal (door) certification, when user reaches the standard grade, access device can be taken to charging
Business device sends accounting request message, in order to start the charging of user.Then, the charging that access device can be set based on user is more
In the new cycle, termly accounting request message is sent to accounting server, in order to update the charging of user.
However, in actual applications, the moment of accounting request message and theoretic meter are sent as access device is actual
There is very big time error between the delivery time of expense request message, therefore leverage the accuracy of user's charging.
Content of the invention
In view of this, the application is provided and updates user's charging method and device, in order to improve the accuracy of user's charging.
Specifically, the application is achieved by the following technical solution:
According to the embodiment of the present application in a first aspect, provide a kind of update user's charging method, methods described is applied to connect
Enter equipment, methods described includes:
When detecting targeted customer and reaching the standard grade, the accounting request message for the targeted customer is sent to accounting server,
And add the targeted customer to online user's list;
In online user's list, interpolation is corresponding to the accounting request message of transmission next time of the targeted customer
Moment;
Based on default detection cycle, detect whether current time is more than or equal to corresponding under the targeted customer
The moment of accounting request message is once sent;If it is, please corresponding to the charging of the targeted customer to accounting server transmission
Message is sought, and updates the moment for sending accounting request message next time.
According to the second aspect of the embodiment of the present application, a kind of renewal user's message accounting is provided, described device is applied to connect
Enter equipment, described device includes:
Detector unit, for when detecting targeted customer and reaching the standard grade, sending for the targeted customer's to accounting server
Accounting request message, and the targeted customer is added to online user's list;
Adding device, for, in online user's list, adding the transmission next time corresponding to the targeted customer
The moment of accounting request message;
Transmitting element, for being based on default detection cycle, whether detection current time is more than or equal to corresponding to institute
State the moment for sending accounting request message next time of targeted customer;If it is, sending corresponding to the mesh to accounting server
The accounting request message of mark user;
Updating block, for updating the moment for sending accounting request message next time.
The embodiment of the present application provides a kind of renewal user's charging method, and access device can be that the targeted customer for reaching the standard grade adds
The moment for sending accounting request message next time corresponding to the targeted customer, it is possible to based on default detection cycle, fixed
Phase ground was detected to the moment for sending accounting request message corresponding to the targeted customer next time, when detecting current
When quarter corresponds to the moment of the accounting request message of transmission next time of the targeted customer more than or equal to this, access device can be by pin
Accounting request message to the user is sent to accounting server, to carry out the charging renewal of user, at the same time, access device
The moment for sending accounting request message next time can be updated.
As access device with the addition of the transmission next time corresponding to different user for each user not reached the standard grade in the same time
The moment of accounting request message, and periodically to the moment for sending accounting request message corresponding to each user next time,
Moment of the access device based on the normally different transmission accounting request message of each user is allowd, is sent out to accounting server
Send the accounting request message for the user, such that it is able to efficiently reduce access device actual send accounting request message when
The time error and delivery time of theoretic accounting request message between is carved, substantially increases the accuracy of user's charging.
Description of the drawings
Fig. 1 is a kind of network architecture diagram of the renewal user charging method shown in one exemplary embodiment of the application;
Fig. 2 is that the error of the renewal user's charging method in the correlation technique shown in one exemplary embodiment of the application is illustrated
Figure;
Fig. 3 is a kind of flow chart of the renewal user charging method shown in one exemplary embodiment of the application;
Fig. 4 is a kind of hardware configuration of the renewal user message accounting place equipment shown in one exemplary embodiment of the application
Figure;
Fig. 5 is a kind of block diagram of the renewal user message accounting shown in one exemplary embodiment of the application.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.Conversely, they be only with as appended by
The example of consistent apparatus and method in terms of some that described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein is referred to and is wrapped
Containing one or more associated any or all possible combination for listing project.
It will be appreciated that though using term first, second, third, etc. various information may be described in the application, but this
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.For example, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
The network architecture referring to a kind of renewal user charging method shown in one exemplary embodiment of Fig. 1, Fig. 1 the application
Figure.In the network architecture of the billing mechanism based on Portal certification, Authentication Client, access device, Portal is generally included
Server and accounting server.
Wherein, above-mentioned Authentication Client can provide the user an interactive interface, and user is carried out by the interactive interface
Operated based on the certification of Portal, charging etc., the Authentication Client can include the Web client based on browser and PC visitor
Family end etc..
Above-mentioned access device, is the general designation of the broadband access equipments such as switch, router, mainly completes and accounting server
Between interaction, complete the function of charging.When using local verification, above-mentioned access device can enable Portal certification work(
Can, to substitute Portal server.
Above-mentioned Portal server, receives the server-side system of Portal client certificate request, provides portal service
With the interface based on web authentication, the authentication information with access device interactive authentication client.
Above-mentioned accounting server, is interacted with access device, completes the certification to user and charging.Above-mentioned billing of services
Device can (Remote Authentication Dial In User Service, remote subscriber dial in checking clothes for RADIUS
Business) server etc..Here, simply illustrative to above-mentioned accounting server, which is not carried out specifically defined.
Based on the billing mechanism of Portal certification, generally include, two processes of user's checking and user's charging.
For user's checking, user can be verified using various ways, for example, using independent Portal
Server is verified that the flow process of checking is as follows:User can be input into the user profile of the user in above-mentioned Authentication Client, should
Authentication Client can send the user profile of the user input by access device to Portal server, be serviced by Portal
Device is verified to the legitimacy of user, and the result is returned to user by access device.
Again for example, using local verification, in the network architecture, Portal server can not included, by opening
The access device of Portal authentication function replaces Portal server to verify the legitimacy of user.Idiographic flow is as follows:
User can be input into the user profile of the user in above-mentioned Authentication Client, and the Authentication Client can be to enabling Portal certification
The access device of function sends the user profile of the user input, by access device based on the user profile for receiving, to user
Legitimacy verified, and the result is returned to user.
After above-mentioned user's checking is completed, when user reaches the standard grade, above-mentioned access device can be sent to accounting server
First accounting request message (can generally also be referred to as charging and start message), in order to start the charging of user, and by the user
Add to online user's list.Then, the charging update cycle that access device can be set based on user, termly take to charging
Business device sends accounting request message (can generally also be referred to as billing update packet), in order to update the charging of user.For example, exist
In radius protocol, above-mentioned charging start message and billing update packet can be Code=4 accounting request message.
In the mechanism of related renewal user's charging, access device typically updates week using the charging set based on user
Phase, termly the accounting request message unification corresponding to all users in local online user's list is sent to billing of services
Device, updates the charging of user.For example, access device can adopt timer, and time-out time is set to the meter of user's setting
Take the update cycle, when the time-out time is reached, the accounting request message " in batches " of all online users is sent to charging and is taken
Business device.
As the moment of reaching the standard grade of each user is different, and the delivery time of the accounting request message of each user is the user
Reach the standard grade constantly plus integral multiple user set the charging update cycle, so access device send each user charging please
The moment for seeking message should be different, however, using related renewal user's charging method, access device sends each user
Moment of accounting request message be identical, this allow for the access device actual moment for sending accounting request message with theoretical
On accounting request message delivery time between there is very big time error, therefore leverage the accurate of user's charging
Property.
For example, as shown in Fig. 2 Fig. 2 is the renewal user meter in the correlation technique shown in one exemplary embodiment of the application
The error schematic diagram of charging method, wherein, transverse axis is week time, and the point on transverse axis represents the moment.
Assume the A moment be the 300th second, the B moment be the 600th second, the charging update cycle that user sets as 300 seconds, in A, B
Between moment assume have five users to reach the standard grade, this five users reach the standard grade constantly be respectively the 350th second, the 400th second, the 480th second,
500th second and the 580th second.
The moment of each user's transmission accounting request message should be the user that user reaches the standard grade constantly plus integral multiple in theory
The charging update cycle of setting, in other words, if the moment of reaching the standard grade of user is different, send corresponding to each online user
The moment of accounting request message is different next time.
Assume as a example by sending the moment of the second accounting request message, above-mentioned five users, after reaching the standard grade, send second
The moment of accounting request message should be respectively the 650th second, the 700th second, the 780th second, the 800th second and the 880th second.
But in related renewal user's charging method, due to the timing of a length of 300s when access device employs time-out
Device, when reaching 300 seconds, will will be sent to accounting server corresponding to online all user's accounting request messages, change sentence
For words, access device can be in the accounting request message of the online all users of the moment of the integral multiple of 300 seconds transmission.Hypothesis connects
Enter equipment to send the accounting request message corresponding to all online users to billing of services in the A moment (i.e. the 300th second)
Device, then for as the 600th second moment of second accounting request message of transmission of above-mentioned five users.
Below by taking the user for reaching the standard grade for the 580th second as an example, illustrate using related renewal user's charging method, caused
Charging error.
Referring to Fig. 2, when user is when (C moment) reaches the standard grade within the 580th second, in theory, the charging next time for the user please
Ask the delivery time of message to should be 880 seconds, but using related renewal user's charging method, access device only can be at 300 seconds
Moment of integral multiple send the accounting request message of online all users, it is assumed that sent at the 300th second, sent out at the 600th second
Send.So for the user for reaching the standard grade for 580 seconds, using related renewal user's charging method, access device is actual at the 600th second
When send second accounting request message of the user.Now, the theoretical moment the (the 880th for sending second accounting request message
Second) there is the error (error is as shown in Figure 2) of 280 seconds with the actual moment (i.e. 600 seconds) for sending the accounting request message, therefore
Leverage the accuracy of user's charging.
The embodiment of the present application provides a kind of renewal user's charging method, and access device can be that the targeted customer for reaching the standard grade adds
The moment for sending accounting request message next time corresponding to the targeted customer, it is possible to based on default detection cycle, fixed
Phase ground was detected to the moment for sending accounting request message corresponding to the targeted customer next time, when detecting current
When quarter corresponds to the moment of the accounting request message of transmission next time of the targeted customer more than or equal to this, access device can be by pin
Accounting request message to the user is sent to accounting server, to carry out the charging renewal of user, at the same time, access device
The moment for sending accounting request message next time can be updated.
On the one hand, as access device is with the addition of corresponding to the next of different user for each user not reached the standard grade in the same time
The secondary moment for sending accounting request message, and periodically to the accounting request message of transmission next time corresponding to each user
Moment so that access device can be taken to charging based on the moment of the theoretical different transmission accounting request message of each user
Business device sends the accounting request message for the user, and such that it is able to efficiently reduce, access device is actual to send accounting request report
Time error between the moment of text and the delivery time of theoretic accounting request message, substantially increases the accurate of user's charging
Property.
On the other hand, due to access device no longer " concentrate " formula ground the accounting request message of all online users is unified when
Carve and send, but " dispersion " formula ground, it is transmitted based on the different accounting request message delivery time of each user, so as to significantly
The pressure of access device is reduced, improves the equipment performance of access device.
It is a kind of flow process of the renewal user charging method shown in one exemplary embodiment of the application referring to Fig. 3, Fig. 3 Fig. 3
Figure, methods described are applied to access device, and methods described specifically includes step as described below:
Step 301:When detecting targeted customer and reaching the standard grade, the charging sent for the targeted customer to accounting server please
Message is sought, and the targeted customer is added to online user's list;
In the embodiment of the present application, targeted customer can carry out Portal by the Portal client on terminal device and test
Card, after checking is completed, targeted customer sends, to access device, notification message of reaching the standard grade by the Portal client.
Access device termly can be detected to the notification message of reaching the standard grade that user sends, when detecting targeted customer's
Reach the standard grade after notification message, confirm that targeted customer reaches the standard grade.Meanwhile, access device can send to accounting server and use for the target
The accounting request message at family, in order to begin for the charging of the targeted customer.Meanwhile, the targeted customer can be added by access device
Add in online user's list.
It should be noted that above-mentioned targeted customer can represent each user, in the same manner, the renewal for targeted customer is used
Family charging method is applied equally to all of user, here, repeats no more.
Step 302:In online user's list, interpolation please corresponding to the charging of transmission next time of the targeted customer
Ask the moment of message;
In renewal user's charging method that the application is provided, access device is that each user not reached the standard grade in the same time adds
Corresponding to the moment for sending accounting request message of different user next time, and periodically to corresponding under each user
The moment of accounting request message is once sent so that access device can be asked based on the normally different transmission charging of each user
The moment of message is asked, and the accounting request message for the user is sent to accounting server, such that it is able to efficiently reduce access
Time error between the equipment actual moment for sending accounting request message and the delivery time of theoretic accounting request message, greatly
The accuracy of user charging is improve greatly.
For example, still by above-mentioned assume between A, B moment to have five users to reach the standard grade as a example by, in related renewal user's charging
In method, the moment for sending second accounting request message for above-mentioned five users that reach the standard grade is the B moment (i.e. the 600th second).
And in renewal user's charging method that the embodiment of the present application is proposed, it is assumed that S is represented and is assumed default detection cycle
(unit is millisecond), sends the moment of second accounting request message for being directed to above-mentioned five users that reach the standard grade respectively at the 650th second
To the 650th second+S, the 700th second to the 700th second+S, the 780th second to the 780th second+S, the 800th second to+S and the 880th second the 800th second
To the 880th second+S.
Due in actual applications, detection cycle is generally Millisecond, thus actual send accounting request message when
It is only a few tens of milliseconds to carve with theoretical transmission accounting request message moment error, so having little influence on the accurate of user's charging renewal
Property.
In the embodiment of the present application, access device can be by the charging of reach the standard grade moment and the user preset of the targeted customer more
The new cycle is added, the moment for sending accounting request message next time being calculated corresponding to the targeted customer.
After the calculated upper moment for once sending accounting request message corresponding to the targeted customer was got,
During access device can add the calculated moment for sending accounting request message next time to online user's list, and
Preserve the corresponding relation with the targeted customer.
It should be noted that the above-mentioned default update cycle, can carry out equipment according to the demand of user oneself, for connecing
For entering equipment, it is difficult to be modified to the update cycle that user sets, the update cycle set according to user is typically only capable to, more
The charging of new user.
Fig. 2 is participated in, still with the targeted customer that the above-mentioned C moment (the 580th second) reaches the standard grade, and to send second accounting request report
As a example by text, step 302 is described in detail.
When being carved with targeted customer when access device detects C and reaching the standard grade, access device can record that the user reaches the standard grade when
Carve (as the 580th second), and the accounting request message for the targeted customer is sent to accounting server, and by the targeted customer
In adding to online user's list.
Access device can reaching the standard grade the targeted customer moment (i.e. the 580th second) and the charging update cycle of user's setting
Added up (i.e. 300 seconds), obtain corresponding to the targeted customer send next time accounting request message (it is right to send moment
Should be in the moment of the second of the targeted customer accounting request message), as the 880th second.Access device can be used for the target
The moment (i.e. 880 seconds) for sending accounting request message next time corresponding to the targeted customer is added at family.
Step 303:Based on default detection cycle, detect whether current time is more than or equal to corresponding to the target
The moment for sending accounting request message next time of user;If it is, sending corresponding to the targeted customer to accounting server
Accounting request message, and update the moment for sending accounting request message next time.
In the embodiment of the present application, the detection cycle that access device can be set based on developer, periodically in alignment
Targeted customer in table is detected in the corresponding moment for sending accounting request message next time.
Targeted customer in access device detects current time more than or equal to online list corresponds to transmission meter next time
During the moment for taking request message, access device can send corresponding for targeted customer accounting request message to billing of services
Device, so that accounting server updates the charging of user.
Meanwhile, in order to ensure being successfully transmitted for the corresponding message of accounting request next time of the targeted customer, access device can
To calculate the targeted customer moment that accounting request message sends next time, and the moment calculated based on this updates online user
The value for sending the moment of accounting request message next time corresponding to the targeted customer of current record in list.
Calculate when, access device can by online user's list current record corresponding under the targeted customer
The moment for once sending accounting request message was added with the default charging update cycle, and using the moment value obtained after addition more
The new moment for sending accounting request message next time.
Access device can repeat the process of above-mentioned detection and renewal, send follow-up accounting request message to clothes successively
Business device, until the targeted customer is offline.
For example, with reference to Fig. 2, still with the targeted customer that the above-mentioned C moment (the 580th second) reaches the standard grade, and to send second charging
As a example by request message, step 303 is described in detail.For the transmission of remaining accounting request message, count with sending second
The method for taking request message is identical, here, repeats no more.
Assume that detection cycle is 250 milliseconds, in now online user's list, the targeted customer is corresponding to send meter next time
The moment for taking request message is the 880th second.
Access device can be based on the detection cycle, complete one-time detection per 250 milliseconds, when access device is detected currently
Moment more than or equal to the 880th second when, access device can send corresponding for targeted customer accounting request message to charging
Server, now access device send the accounting request message when be engraved in the 880th second to the 880th second between+250 milliseconds.
Meanwhile, access device can calculate the targeted customer and send moment of accounting request message next time and (send the
The moment of three accounting request messages), access device can with the targeted customer of online user's list current record corresponding under
The moment (i.e. the 880th second) for once sending accounting request message was added up with the charging update cycle (i.e. 300 seconds), obtained the mesh
Mark user is in the corresponding moment (sending the moment of the 3rd accounting request message) for sending accounting request message next time
1180th second, then repeat the process of above-mentioned detection and renewal, follow-up accounting request message is sent to server successively, until
The targeted customer is offline.
Additionally, in the embodiment of the present application, above-mentioned default detection cycle is far smaller than that above-mentioned default charging updates week
Phase.
In the embodiment of the present application, the setting of above-mentioned default charging update cycle is typically completed by user, Yong Hushe
The cycle that fixed charging updates is generally in second level, in actual applications, generally 300 seconds.Certainly, merely just charging is updated
Cycle carries out exemplary explanation, does not do specific restriction.
For the setting of detection cycle, generally complete to set by developer.Developer can be based on accounting request report
Process performance of error range, the process performance of the access device and accounting server that literary delivery time is allowed etc. because
Element, sets to the detection cycle.Detection cycle setting is excessive, is likely to result in the moment of actual transmission accounting request message
Increase with the error in the theoretical moment for sending accounting request message, affect the accuracy of charging;Detection cycle setting is too small, due to
The performance of access device or accounting server and the demand of detection cannot be met.
Generally, in order to reduce the moment of actual transmission accounting request message with theoretical transmission accounting request message
Error between moment, the detection cycle are generally located on the rank of millisecond, such as 250 milliseconds.Certainly, merely just to detection
Cycle carries out exemplary explanation, does not do specific restriction.
The embodiment of the present application provides a kind of renewal user's charging method, and access device can be that the targeted customer for reaching the standard grade adds
The moment for sending accounting request message next time corresponding to the targeted customer, it is possible to based on default detection cycle, fixed
Phase ground was detected to the moment for sending accounting request message corresponding to the targeted customer next time, when detecting current
When quarter corresponds to the moment of the accounting request message of transmission next time of the targeted customer more than or equal to this, access device can be by pin
Accounting request message to the user is sent to accounting server, to carry out the charging renewal of user, at the same time, access device
The moment for sending accounting request message next time can be updated.
On the one hand, as access device is with the addition of corresponding to the next of different user for each user not reached the standard grade in the same time
The secondary moment for sending accounting request message, and periodically to the accounting request message of transmission next time corresponding to each user
Moment so that access device can be taken to charging based on the moment of the normally different transmission accounting request message of each user
Business device sends the accounting request message for the user, and such that it is able to efficiently reduce, access device is actual to send accounting request report
Time error between the moment of text and the delivery time of theoretic accounting request message, substantially increases the accurate of user's charging
Property.
On the other hand, due to access device no longer " concentrate " formula ground the accounting request message of all online users is unified when
Carve and send, but " dispersion " formula ground, it is transmitted based on the different accounting request message delivery time of each user, so as to significantly
The pressure of access device is reduced, improves the equipment performance of access device.
Referring to Fig. 2, reached the standard grade in the C moment with targeted customer below, and with reference to the scene that user's charging updates, to above-mentioned renewal
User's charging method is described in detail.
Assume that the C moment is the 580th second, the charging update cycle is 300 seconds, detection cycle is 250 milliseconds.
When being carved with targeted customer when access device detects C and reaching the standard grade, access device can record that the user reaches the standard grade when
Carve (as the 580th second), and the accounting request message for the targeted customer is sent to accounting server, and by the targeted customer
In adding to online user's list.
Access device can reaching the standard grade the targeted customer moment (i.e. the 580th second) and the charging update cycle of user's setting
Added up (i.e. 300 seconds), obtain corresponding to the targeted customer send next time accounting request message (it is right to send moment
Should be in the moment of the second of the targeted customer accounting request message), as the 880th second.Access device can be used for the target
The moment (i.e. 880 seconds) for sending accounting request message next time corresponding to the targeted customer is added at family.
Access device can be based on the detection cycle, complete one-time detection per 250 milliseconds, when access device is detected currently
Moment more than or equal to the 880th second when, access device can send corresponding for targeted customer accounting request message to charging
Server, now access device send the moment of the accounting request message
Meanwhile, access device can calculate the targeted customer and send moment of accounting request message next time and (send the
The moment of three accounting request messages), access device can be corresponding next with the current targeted customer in online user's list
The secondary moment (i.e. the 880th second) for sending accounting request message was added up with the charging update cycle (i.e. 300 seconds), obtained the target
User is the corresponding moment moment of the 3rd accounting request message (send) for sending accounting request message next time
1180 seconds, then repeat the process of above-mentioned detection and renewal, follow-up accounting request message is sent to server successively, until should
Targeted customer is offline.
Corresponding with the aforementioned embodiment for updating user's charging method, present invention also provides updating user's message accounting
Embodiment.
The application updates the embodiment of user's message accounting and can apply on access device.Device embodiment can pass through
Software is realized, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software, anticipate as a logic
Device in justice, be by the processor of its place access device by corresponding computer program instructions in nonvolatile memory
Read what operation in internal memory was formed.From for hardware view, as shown in figure 4, update user's message accounting for the application being located
A kind of hardware structure diagram of access device, except the processor shown in Fig. 4, internal memory, network outgoing interface and non-volatile memories
Outside device, the access device that device is located in embodiment can also include generally according to the actual functional capability of renewal user's charging
Other hardware, repeat no more to this.
A kind of block diagram of renewal user message accounting that Fig. 5, Fig. 5 are shown in one exemplary embodiment of the application is refer to,
Described device is applied to access device, including:
Detector unit 510, for when detecting targeted customer and reaching the standard grade, sending for the targeted customer to accounting server
Accounting request message, and the targeted customer is added to online user's list;
Adding device 520, for, in online user's list, adding sending out corresponding to the targeted customer next time
Send the moment of accounting request message;
Transmitting element 530, for being based on default detection cycle, detection current time whether be more than or equal to corresponding to
The moment for sending accounting request message next time of the targeted customer;If it is, sending corresponding to described to accounting server
The accounting request message of targeted customer;
Updating block 540, for updating the moment for sending accounting request message next time.
In another kind of optional implementation, the adding device 520, specifically for reaching the standard grade the targeted customer
Moment was added with the default charging update cycle, obtained the accounting request report of transmission next time corresponding to the targeted customer
The moment of text;The calculated moment for sending accounting request message next time is added to online user's list
In, and preserve the corresponding relation with the targeted customer.
In another kind of optional implementation, the updating block 540, specifically for by online user's list
The moment for sending accounting request message next time corresponding to the targeted customer of current record is with the default charging more
The new cycle is added, and sends the moment of accounting request message described in the moment value renewal obtained using addition next time.
In another kind of optional implementation, the default detection cycle updates week less than the default charging
Phase.
In another kind of optional implementation, the default detection cycle is adapted to the access device and the meter
Take the process performance of server;The default detection cycle is 250ms.
In said apparatus, the process of realizing of the function of unit and effect specifically refers to corresponding step in said method
Process is realized, be will not be described here.
For device embodiment, as which corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematically, wherein described as separating component
The unit of explanation can be or may not be physically separate, as the part that unit shows can be or can also
It is not physical location, you can be located at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement that is done etc., should be included within the scope of the application protection.
Claims (10)
1. one kind updates user's charging method, it is characterised in that methods described is applied to access device, and methods described includes:
When detecting targeted customer and reaching the standard grade, the accounting request message for the targeted customer is sent to accounting server, and will
The targeted customer adds to online user's list;
In online user's list, add corresponding to the targeted customer next time send accounting request message when
Carve;
Based on default detection cycle, detect whether current time is more than or equal to corresponding to the targeted customer next time
Send the moment of accounting request message;If it is, sending the accounting request report corresponding to the targeted customer to accounting server
Text, and update the moment for sending accounting request message next time.
2. method according to claim 1, it is characterised in that described in online user's list, add corresponding to
The moment for sending accounting request message next time of the targeted customer, including:
The moment of reaching the standard grade of the targeted customer was added with the default charging update cycle, is obtained described corresponding to the target use
The moment for sending accounting request message next time at family;
During the calculated moment for sending accounting request message next time is added to online user's list, and protect
Deposit the corresponding relation with the targeted customer.
3. method according to claim 1, it is characterised in that send accounting request message described in the renewal next time
Moment, including:
The accounting request message of transmission next time corresponding to the targeted customer by current record in online user's list
Moment be added with the default charging update cycle, and counted using being added the moment value that obtains and updating described transmission next time
Take the moment of request message.
4. method according to claim 1, it is characterised in that the default detection cycle is less than the default charging
Update cycle.
5. method according to claim 1, it is characterised in that the default detection cycle be adapted to the access device with
And the process performance of the accounting server;The default detection cycle is 250ms.
6. one kind updates user's message accounting, it is characterised in that described device is applied to access device, and described device includes:
Detector unit, for when detecting targeted customer and reaching the standard grade, sending the charging for the targeted customer to accounting server
Request message, and the targeted customer is added to online user's list;
Adding device, for, in online user's list, adding the transmission charging next time corresponding to the targeted customer
The moment of request message;
Transmitting element, for being based on default detection cycle, whether detection current time is more than or equal to corresponding to the mesh
The moment for sending accounting request message next time of mark user;If it is, send to accounting server using corresponding to the target
The accounting request message at family;
Updating block, for updating the moment for sending accounting request message next time.
7. device according to claim 6, it is characterised in that the adding device, specifically for by the targeted customer
Moment of reaching the standard grade be added with the default charging update cycle, obtain the transmission charging next time corresponding to the targeted customer
The moment of request message;The calculated moment for sending accounting request message next time is added to the online user
In list, and preserve the corresponding relation with the targeted customer.
8. device according to claim 6, it is characterised in that the updating block, specifically for by the online user
In list, the moment for sending accounting request message next time corresponding to the targeted customer of current record is default with described
The charging update cycle is added, and sends the moment of accounting request message described in the moment value renewal obtained using addition next time.
9. device according to claim 6, it is characterised in that the default detection cycle is less than the default charging
Update cycle.
10. device according to claim 6, it is characterised in that the default detection cycle is adapted to the access device
And the process performance of the accounting server;The default detection cycle is 250ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611087179.4A CN106487530A (en) | 2016-11-30 | 2016-11-30 | Update user's charging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611087179.4A CN106487530A (en) | 2016-11-30 | 2016-11-30 | Update user's charging method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106487530A true CN106487530A (en) | 2017-03-08 |
Family
ID=58274592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611087179.4A Pending CN106487530A (en) | 2016-11-30 | 2016-11-30 | Update user's charging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487530A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547323A (en) * | 2017-07-04 | 2018-01-05 | 新华三技术有限公司 | Message transmitting method, device, associated electronic device and readable storage medium storing program for executing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005383A (en) * | 2006-01-18 | 2007-07-25 | 华为技术有限公司 | Off-line charging system and method |
CN101145918A (en) * | 2005-08-23 | 2008-03-19 | 华为技术有限公司 | A billing method and system |
CN101478409A (en) * | 2009-02-09 | 2009-07-08 | 中兴通讯股份有限公司 | Fee charging control method and wideband access server |
CN101742460A (en) * | 2008-11-24 | 2010-06-16 | 中国移动通信集团上海有限公司 | Method and system for charging and charging information determination equipment |
US20130200850A1 (en) * | 2012-02-08 | 2013-08-08 | O2Micro, Inc. | Circuit and Method for Cell Balancing |
-
2016
- 2016-11-30 CN CN201611087179.4A patent/CN106487530A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101145918A (en) * | 2005-08-23 | 2008-03-19 | 华为技术有限公司 | A billing method and system |
CN101005383A (en) * | 2006-01-18 | 2007-07-25 | 华为技术有限公司 | Off-line charging system and method |
CN101742460A (en) * | 2008-11-24 | 2010-06-16 | 中国移动通信集团上海有限公司 | Method and system for charging and charging information determination equipment |
CN101478409A (en) * | 2009-02-09 | 2009-07-08 | 中兴通讯股份有限公司 | Fee charging control method and wideband access server |
US20130200850A1 (en) * | 2012-02-08 | 2013-08-08 | O2Micro, Inc. | Circuit and Method for Cell Balancing |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547323A (en) * | 2017-07-04 | 2018-01-05 | 新华三技术有限公司 | Message transmitting method, device, associated electronic device and readable storage medium storing program for executing |
CN107547323B (en) * | 2017-07-04 | 2020-10-30 | 新华三技术有限公司 | Message transmission method and device, related electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101075875B (en) | Method and system for realizing monopoint login between gate and system | |
CN105025041B (en) | The methods, devices and systems that file uploads | |
US8448233B2 (en) | Dealing with web attacks using cryptographically signed HTTP cookies | |
JP6526248B2 (en) | Server and program | |
CN104767775A (en) | Webpage application information push method and webpage application information push system | |
WO2012120106A1 (en) | Method and system for granting access to a secured website | |
CN105577648A (en) | Method for obtaining and sending short message identifying code, calculating device and mobile terminal | |
CN106412975B (en) | A kind of test method and device of content charging loophole | |
CN107911483A (en) | A kind of information transferring method and device | |
CN106911681A (en) | Network access authentication method and device | |
CN110413329A (en) | IOT equipment remote debugging method, apparatus and system | |
CN102946396B (en) | User agent's device, host web server and user authen method | |
CN108924159A (en) | The verification method and device in a kind of message characteristic identification library | |
CN108476199A (en) | A kind of system and method for detection and defence CC attacks based on token mechanism | |
CN111092904A (en) | Network connection method and device | |
CN102769625A (en) | Client-side Cookie information acquisition method and device | |
WO2024067214A1 (en) | Device communication method and apparatus, and electronic device | |
CN109327455A (en) | A kind of access method of NAS device, device, equipment and readable storage medium storing program for executing | |
CN106487530A (en) | Update user's charging method and device | |
EP1993245A1 (en) | A system and method for realizing message service | |
CN109471723B (en) | Method and system for verifying processing result of task | |
CN109639788B (en) | Cross-domain name joint debugging method and system for voice conversation platform | |
CN111404897A (en) | Message distribution method and device, storage medium and electronic equipment | |
CN112219416A (en) | Techniques for authenticating data transmitted over a cellular network | |
CN110035116A (en) | The method and apparatus of user-association |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
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: 20170308 |