Traffic Limitation Control Using Segmented Time Tracking
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional traffic limitation control methods are coarse and inaccurate, leading to failures in managing network congestion, as they do not effectively account for the distribution of requests across sub-time segments, resulting in inadequate traffic management.
Innovation Solution
A method that divides a unit time length into multiple sub-time segments, using storage blocks to track request counts within each segment, and updates a traffic limitation instance based on timestamps and thresholds to determine the need for traffic limitation based on request waiting time, thereby enhancing the accuracy of traffic control.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If traditional counter-based traffic limitation is used, then the control is simple to implement, but the accuracy of traffic limitation is poor
Solution Approach 1:
The patent divides the time window into multiple sub-time segments (first time segment, second time segment, etc.) and uses separate counters for each segment. This segmentation allows precise tracking of request distribution across different time periods, resolving the contradiction by maintaining simple counter-based implementation while achieving accurate traffic limitation through segmented time tracking.
2Device complexity
If coarse traffic limitation control is used, then the system complexity is low, but the traffic management effectiveness is poor
Solution Approach 1:
The patent dynamically adjusts traffic limitation decisions by comparing request counts in different time segments and calculating waiting times based on segment-specific rates. This dynamic approach enhances traffic management effectiveness without significantly increasing system complexity, as it builds upon the existing counter-based framework with additional temporal dimension.
3Speed
If traditional time window counting is used, then the processing speed is fast, but the request distribution accuracy is poor
Solution Approach 1:
By segmenting the time window into multiple sub-time segments with separate counters, the patent achieves accurate request distribution tracking while maintaining fast processing speed. Each segment is counted independently using simple counter operations, avoiding complex calculations while precisely capturing temporal patterns in request distribution.
Data Source
AI summary
The present application discloses a method, an apparatus, a device for controlling traffic limitation and a storage medium, and belongs to the field of data processing. The method for controlling traffic limitation includes: acquiring, in response to a present request, a first timestamp of the present request; acquiring a pre-created traffic limitation instance, the traffic limitation instance including 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; updating the traffic limitation instance 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 traffic limitation instance.


