Method of time charging to DHCP online users in a broadband access server
First Claim
1. A method of recording online DHCP (Dynamic Host Configuration Protocol) usage duration of a user in a broadband access server, the method comprising the steps of:
- a) determining, by the broadband access server, an inner time interval, an outer time interval, and a flow threshold, wherein the inner time interval is less than the outer time interval;
b) authenticating, by the broadband access server, the user and transmitting, by the broadband access server, start charging message to a charging server upon the authentication of the user;
c) calculating, by the broadband access server, a number of elements of a circular link list by dividing the outer time interval by the inner time interval and creating, by the broadband access server, the circular link list with the calculated number of elements;
e) monitoring, by the broadband access server, a data flow of the user and recording the monitored data flow in a current element of the circular link list at the inner time interval until all the elements in the circular link list are filled with the monitored data flow, wherein the circular link list is shifted at each intervals of the inner time interval such that last element of the circular link list is in position of the current element of the circular link list;
f) at the inner time interval, detecting, by the broadband access server, a data flow of the user, shifting the circular link list such that the last element of the circular link list is in position of the current element of the circular link list, and obtaining the lastly recorded data flow from the current element of the circular link list;
g) determining, by the broadband access server, whether the user is in the IDLE state by comparing the difference of the detected data flow and the obtained data flow from the current element of the circular link list with the flow threshold; and
h) sending, by the broadband access server, stop charging message to the charging server and logging off the user based on the determination of IDLE state.
2 Assignments
0 Petitions
Accused Products
Abstract
A method of calculating broadband access server DHCP user'"'"'s on-line time, includes these steps: (a) setting the inner time, outer time and traffic threshold for said access server calculating user'"'"'s data traffic, and the inner time is shorter than the outer time; (b) user accesses the said access server, after authenticated successfully, the access server notifies starting to charge the user'"'"'s online time; (c) according to each user, said access server establishes a ring list to record data traffic; (d) said access server sets the number of ring list elements as multiple of said outer time to said inner time; (e) said access server inspects the said user'"'"'s data traffic according to inner time, fills it in content indicated by top element index of ring list, until current data traffic inspected and value recorded by top index are not more than said traffic threshold. The advantage of the invention is that timing is precise and error is small.
9 Citations
3 Claims
-
1. A method of recording online DHCP (Dynamic Host Configuration Protocol) usage duration of a user in a broadband access server, the method comprising the steps of:
-
a) determining, by the broadband access server, an inner time interval, an outer time interval, and a flow threshold, wherein the inner time interval is less than the outer time interval; b) authenticating, by the broadband access server, the user and transmitting, by the broadband access server, start charging message to a charging server upon the authentication of the user; c) calculating, by the broadband access server, a number of elements of a circular link list by dividing the outer time interval by the inner time interval and creating, by the broadband access server, the circular link list with the calculated number of elements; e) monitoring, by the broadband access server, a data flow of the user and recording the monitored data flow in a current element of the circular link list at the inner time interval until all the elements in the circular link list are filled with the monitored data flow, wherein the circular link list is shifted at each intervals of the inner time interval such that last element of the circular link list is in position of the current element of the circular link list; f) at the inner time interval, detecting, by the broadband access server, a data flow of the user, shifting the circular link list such that the last element of the circular link list is in position of the current element of the circular link list, and obtaining the lastly recorded data flow from the current element of the circular link list; g) determining, by the broadband access server, whether the user is in the IDLE state by comparing the difference of the detected data flow and the obtained data flow from the current element of the circular link list with the flow threshold; and h) sending, by the broadband access server, stop charging message to the charging server and logging off the user based on the determination of IDLE state. - View Dependent Claims (2, 3)
-
Specification