| CPC H04L 47/12 (2013.01) [H04L 47/11 (2013.01)] | 17 Claims |

|
1. A method for controlling traffic limitation, comprising:
acquiring, in response to detecting presence of a present request, a first timestamp of the present request;
retrieving a pre-created instance of a traffic limitation program, the instance of the traffic limitation program comprising N storage blocks, a total number of instance requests, a traffic limitation request threshold number, an identifier of a storage block for a previous request, a second timestamp of the previous request and request waiting time, wherein the N storage blocks correspond to N sub-time segments which are formed by dividing a pre-set unit time length respectively, where N is an integer greater than 1, and each of the storage blocks stores a number of requests within the respective sub-time segment corresponding to the storage block, and the total number of instance requests is a sum of respective numbers of requests stored in the respective storage blocks;
updating the pre-created instance of the traffic limitation program based on a time interval between the first timestamp and the second timestamp, the unit time length and the traffic limitation request threshold number; and
determining whether to perform traffic limitation based on the request waiting time in the updated instance of the traffic limitation program.
|