Dynamic ECN threshold adjustment method and system based on queue water level

By dynamically adjusting the WRED parameter through a distributed autonomous mechanism based on queue level and ECN tagging rate, the problems of packet loss and resource utilization in ECN technology under dynamic network traffic are solved, achieving efficient and stable congestion control.

CN121462501APending Publication Date: 2026-02-03BEIJING JILIU TECH CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202610007638.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-06
Publication Date
2026-02-03

AI Technical Summary

Technical Problem

Existing ECN technologies cannot adapt to dynamic network traffic changes with static thresholds, resulting in packet loss and insufficient resource utilization. AI-based solutions are complex and costly to deploy. Centralized control poses a single point of failure risk, and multi-parameter linkage adjustment makes it difficult to guarantee system stability and lacks multi-indicator fusion decision-making.

Method used

By generating and managing dynamic WRED profiles, and combining queue level, ECN tagging rate and packet loss rate, a distributed autonomous mechanism is used to adjust the min_threshold and max_threshold parameters in real time. The queue status is obtained through the SDK interface, and the threshold is adjusted based on preset rules. A gradual strategy and anti-oscillation processing are adopted to avoid frequent fluctuations.

Benefits of technology

It achieves lightweight, adaptive ECN threshold adjustment, reducing computational overhead and deployment costs, improving network response performance and resource utilization, enhancing system stability and congestion control accuracy, and avoiding single points of failure and decision delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121462501A_ABST
    Figure CN121462501A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic ECN threshold value adjusting method and system based on a queue water level. The threshold value adjusting method comprises the steps that a dynamic wred profile is generated and managed, and minthreshold and maxthreshold parameters are maintained; the dynamic wred profile is bound with a specific data queue; obtaining the current occupied water level of the queue in real time through an SDK interface; the ECN mark count of the queue is obtained in real time through an SDK interface, and the ECN mark rate is calculated; the packet loss count of the queue is obtained in real time through the SDK interface, and the packet loss rate is calculated; and judging whether threshold adjustment and direction adjustment need to be carried out based on a preset rule. The implementation complexity is remarkably reduced, the response performance is excellent, and the resource utilization rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic communications, and in particular to a method and system for adjusting the dynamic ECN threshold based on queue level. Background Technology

[0002] ECN (Explicit Congestion Notification) is a network congestion control mechanism that allows network devices to notify terminal devices by marking data packets when congestion occurs, instead of simply discarding them. This is similar to "congestion warning signals" in traffic management systems, alleviating traffic pressure by providing advance warnings rather than forcing devices to stop.

[0003] Working mechanism: Capability negotiation: When a TCP connection is established, the two communicating parties negotiate whether to support the ECN function through the ECN-Echo and CWR flags.

[0004] Congestion label: When a network device detects congestion, it changes the ECN field in the IP header from ECT (ECN-Capable Transport) to CE (Congestion Experienced).

[0005] Notification feedback: The receiver notifies the sender via the ECN-Echo flag in the TCP ACK packet.

[0006] Rate adjustment: The sender responds to a congestion notification by reducing its transmission rate.

[0007] Traditional ECN Implementation Architecture Key component descriptions: WRED (Weighted Random Early Detection) Function: To randomly select data packets for marking or discarding before the queue is full. parameter: min_threshold: The minimum queue length threshold to start marking packets. max_threshold: The threshold for the queue length where all packets are marked. mark_probability: Marking probability parameter Buffer Management Egress Pool (Egress Buffer): The total buffer memory for network device egress. Queue Buffer: Buffer space allocated to a specific queue. Watermark: A real-time measurement of the current depth occupied by the queue. Profile (configuration file) concept The role of Profile: Parameter template: A predefined set of WRED parameters that can be applied to multiple queues. Consistency management: Ensures that queues of the same service level use the same congestion control strategy. Quick configuration: You can update the configuration of related queues in batches by modifying the profile.

[0008] Existing dynamic ECN technology enables dynamic threshold adjustment based on AI / machine learning.

[0009] Implementation architecture: Centralized AI Controller ↓ (Collecting the entire network status via Telemetry) Data analysis platform ↓ (Model Reasoning) Threshold Decision Engine ↓ (Configuration distributed via NETCONF / gRPC) Network equipment (switches / routers) Typical implementation: Data acquisition: Real-time collection of metrics such as queue depth, throughput, and latency using streaming telemetry technology; Feature engineering: Extracting flow patterns, periodic features, burst features, etc.; Model training: The threshold prediction model is trained using algorithms such as LSTM and reinforcement learning; Online inference: Calculates the optimal threshold in real time based on the current network state; Configuration distribution: The new threshold is distributed to network devices through the SDN controller.

[0010] Disadvantages of existing technology: Static ECN thresholds cannot adapt to dynamic changes in network traffic: they are prone to packet loss during high burst traffic and insufficient resource utilization during low load.

[0011] The implementation of AI-based dynamic ECN solutions is complex: they have high computational overhead, high deployment costs, and require a large amount of training data.

[0012] Centralized control architectures have the risk of single point of failure: decision-making delays are large, making it difficult to meet real-time requirements.

[0013] Existing dynamic ECN solutions involve multi-parameter linkage adjustments, making it difficult to guarantee system stability and debug.

[0014] Lack of multi-indicator fusion decision-making: Relying solely on queue level cannot fully reflect network congestion status (such as ECN marking and packet loss). Summary of the Invention

[0015] In view of the above problems, the present invention is proposed to provide a method and system for dynamic ECN threshold adjustment based on queue level to overcome or at least partially solve the above problems.

[0016] According to one aspect of the present invention, a dynamic ECN threshold adjustment method based on queue water level is provided, the threshold adjustment method comprising: Generate and manage dynamic WRED profiles, and maintain the min_threshold and max_threshold parameters; Bind the dynamic WRED profile to a specific data queue; The current water level of the queue can be obtained in real time through the SDK interface; The ECN tag count of the queue is obtained in real time through the SDK interface, and the ECN tag rate is calculated. The packet loss count of the queue can be obtained in real time through the SDK interface, and the packet loss rate can be calculated. The threshold adjustment and its direction are determined based on preset rules.

[0017] Optionally, the generation and management of the dynamic WRED profile, and the maintenance of the min_threshold and max_threshold parameters, specifically include: System initialization includes: Initialize the timer and set the check period to 5 seconds; Enable the dynamic ECN feature to create an initial dynamic Wred profile; Set the initial thresholds: min_threshold = 2205080, max_threshold = 8951240; The `set_queue_attribute` command binds a dynamic WRED profile to the target queue. Set threshold parameters for ECN tagging rate and packet loss rate.

[0018] Optionally, obtaining the current occupied water level of the queue in real time through the SDK interface specifically includes: Regular water level checks include: The timer triggers a check cycle every 5 seconds; The SDK functions can be used to obtain the current water level (curr_occupancy), watermark, ECN marker count, and packet loss count of the queue.

[0019] Optionally, the step of obtaining the ECN tag count of the queue in real time through the SDK interface and calculating the ECN tag rate specifically includes: Calculate the ECN marking rate (ecn_marked_rate) and the packet drop rate (queue_drop_rate): ECN marking rate = (Current ECN marking count - Previous ECN marking count) / Total number of packets within the time period; Optionally, the step of obtaining the packet loss count of the queue in real time through the SDK interface and calculating the packet loss rate specifically includes: The calculation of the packet loss rate, queue_drop_rate, includes: Packet loss rate = (Current packet loss count - Previous packet loss count) / Total number of data packets within the time period; Record this count for use in the next calculation.

[0020] Optionally, the step of determining whether threshold adjustment is needed and the direction of adjustment based on preset rules specifically includes: Threshold adjustment condition judgment and execution; Threshold reduction condition judgment and execution; Shock absorption measures.

[0021] Optionally, the threshold adjustment condition judgment and execution specifically includes: The threshold will be increased if the system detects that any of the following conditions are met, and the adjusted max_threshold does not exceed 30% of the egress_pool_size: Condition 1: The current watermark in the queue exceeds the current max_threshold; Condition 2: The ECN labeling rate exceeds the preset upper limit; Condition 3: The queue packet loss rate exceeds the preset limit; Adjustment method: Increase the current max_threshold by a fixed step; After adjustment, update the max_threshold parameter in the dynamic WRED configuration file.

[0022] Optionally, the threshold reduction condition judgment and execution specifically includes: The threshold will be lowered when the system detects that all of the following conditions are met, and the current max_threshold is higher than the initial value: Condition 1: The current queue occupancy is less than 70% of the current max_threshold; Condition 2: The ECN labeling rate is lower than the preset lower limit; Condition 3: The queue packet loss rate is lower than the preset lower limit; Adjustment method: Decrease the current max_threshold by a fixed step; After adjustment, update the max_threshold parameter in the dynamic WRED configuration file.

[0023] Optionally, the anti-vibration treatment specifically includes: The adjustment operation is only performed when an actual change in the queue watermark is detected. Record adjustment history; Increase the threshold when congestion worsens; When congestion eases, lower the threshold.

[0024] A dynamic ECN threshold adjustment system based on queue level, applying the aforementioned dynamic ECN threshold adjustment method based on queue level, the adjustment system comprising: The dynamic WRED configuration module is used to generate and manage dynamic WRED profiles and maintain the min_threshold and max_threshold parameters. The queue attribute binding module is used to bind dynamic WRED profiles to specific data queues; The water level monitoring module is used to obtain the current occupied water level of the queue in real time through the SDK interface; The ECN tag monitoring module is used to obtain the ECN tag count of the queue in real time through the SDK interface and calculate the ECN tag rate; The packet loss monitoring module is used to obtain the packet loss count of the queue in real time through the SDK interface and calculate the packet loss rate; The threshold decision module is used to determine whether threshold adjustment is needed and the direction of adjustment based on preset rules.

[0025] This invention provides a method and system for dynamic ECN threshold adjustment based on queue level. The threshold adjustment method includes: generating and managing a dynamic wred profile, maintaining min_threshold and max_threshold parameters; binding the dynamic wred profile to a specific data queue; obtaining the current occupied level of the queue in real time through an SDK interface; obtaining the ECN tag count of the queue in real time through an SDK interface and calculating the ECN tagging rate; obtaining the packet loss count of the queue in real time through an SDK interface and calculating the packet loss rate; and determining whether threshold adjustment is needed and the direction of adjustment based on preset rules. This significantly reduces implementation complexity, improves response performance, and enhances resource utilization.

[0026] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0027] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 A flowchart illustrating a dynamic ECN threshold adjustment method based on queue water level, provided for an embodiment of the present invention; Figure 2 A detailed flowchart of a dynamic ECN threshold adjustment method based on queue water level is provided for an embodiment of the present invention. Detailed Implementation

[0029] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0030] The terms "comprising" and "having," and any variations thereof, in the specification, embodiments, claims, and drawings of this invention are intended to cover non-exclusive inclusion, such as including a series of steps or units.

[0031] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

[0032] A dynamic ECN threshold adjustment system based on queue water level achieves intelligent adaptation of the ECN threshold through a lightweight distributed autonomous mechanism, including: Dynamic WRED configuration module: Generates and manages dynamic WRED profiles, and maintains parameters such as min_threshold and max_threshold.

[0033] Queue Attribute Binding Module: Binds dynamic Wred profiles to specific data queues.

[0034] Water level monitoring module: Obtains the current occupied water level (watermark) of the queue in real time through the SDK interface.

[0035] ECN tag monitoring module: Obtains the ECN tag count of the queue in real time through the SDK interface and calculates the ECN tag rate.

[0036] Packet loss monitoring module: Obtains the packet loss count of the queue in real time through the SDK interface and calculates the packet loss rate.

[0037] Threshold decision module: Determines whether threshold adjustment is needed and the direction of adjustment based on preset rules.

[0038] like Figure 1 As shown, the present invention provides a dynamic ECN threshold adjustment method and system based on queue water level, wherein the threshold adjustment method includes: Generate and manage dynamic WRED profiles, and maintain the min_threshold and max_threshold parameters; Bind the dynamic WRED profile to a specific data queue; The current water level of the queue can be obtained in real time through the SDK interface; The ECN tag count of the queue is obtained in real time through the SDK interface, and the ECN tag rate is calculated. The packet loss count of the queue can be obtained in real time through the SDK interface, and the packet loss rate can be calculated. The threshold adjustment and its direction are determined based on preset rules.

[0039] like Figure 2 As shown, the specific implementation steps include: Step 1: System Initialization Initialize the timer and set the check period to 5 seconds; Enable the dynamic ECN feature to create an initial dynamic Wred profile; Set the initial thresholds: min_threshold = 2205080, max_threshold = 8951240; The `set_queue_attribute` command binds a dynamic WRED profile to the target queue. Set threshold parameters for ECN tagging rate and packet loss rate (e.g., upper limit of ECN tagging rate is 10%, lower limit is 2%; upper limit of packet loss rate is 5%, lower limit is 1%).

[0040] Step 2: Regular water level checks The timer triggers a check cycle every 5 seconds; The current curr_occupancy, watermark, ECN mark count, and packet loss count of the queue can be obtained through SDK functions. Calculate the ECN marking rate (ecn_marked_rate) and the packet drop rate (queue_drop_rate): ECN marking rate = (Current ECN marking count - Previous ECN marking count) / Total number of packets within the time period; Packet loss rate = (Current packet loss count - Previous packet loss count) / Total number of data packets within the time period; Record this count for use in the next calculation.

[0041] Step 3: Threshold Adjustment Condition Judgment and Execution The threshold will be increased if the system detects that any of the following conditions are met, and the adjusted max_threshold does not exceed 30% of the egress_pool_size: Condition 1: The current watermark of the queue exceeds the current max_threshold.

[0042] Condition 2: The ECN marking rate (ecn_marked_rate) exceeds the preset limit (e.g., 10%).

[0043] Condition 3: The queue drop rate exceeds the preset limit (e.g., 5%).

[0044] Adjustment method: Increase the current max_threshold by a fixed step (1% of egress_pool_size). After adjustment, update the max_threshold parameter in the dynamic WRED configuration file.

[0045] Step 4: Threshold Down Adjustment Condition Judgment and Execution The threshold will be lowered when the system detects that all of the following conditions are met, and the current max_threshold is higher than the initial value (8951240): Condition 1: The current occupancy of the queue (curr_occupancy) is less than 70% of the current max_threshold.

[0046] Condition 2: The ECN labeling rate is lower than the preset lower limit (e.g., 2%).

[0047] Condition 3: The queue packet loss rate is lower than the preset lower limit (e.g., 1%).

[0048] Adjustment method: Reduce the current max_threshold by a fixed step (1% of egress_pool_size). After adjustment, update the max_threshold parameter in the dynamic WRED configuration file.

[0049] These two adjustment steps work together to form a complete closed-loop control logic. This logic allows for timely relaxation of threshold limits to reduce packet marking and dropping when network congestion worsens, and appropriate tightening of thresholds to maintain the network's rapid response to congestion when network load eases. The entire adjustment process employs a gradual strategy, ensuring the smoothness and reliability of system adjustments through fixed adjustment steps and clear boundary conditions, effectively avoiding the adverse effects of frequent threshold fluctuations on network performance.

[0050] Step 5: Anti-vibration treatment The adjustment operation is performed only when an actual change in the queue watermark is detected. Record adjustment history to prevent frequent adjustments in a short period of time. When congestion worsens (high water level, high ECN marking rate, or high packet loss rate), the threshold is increased to reduce marking and packet loss.

[0051] When congestion eases (low water level, low ECN labeling rate, and low packet loss rate), the threshold is lowered to improve network response speed.

[0052] The design avoids the limitations of a single indicator, improving the system's adaptability and stability.

[0053] Key technical features description: Essential features: A dual-condition triggering mechanism based on comparing queue water level and threshold. The single-parameter tuning strategy that only adjusts max_threshold A gradual adjustment method with a fixed step size (1% of egress_pool_size). Boundary protection mechanism (not exceeding 30% of egress_pool_size) Optional features: The inspection cycle is configurable (default 5 seconds, can be adjusted according to network conditions). The sensitivity coefficient (70%) for the downsetting condition is adjustable. The initial threshold parameter can be customized according to different application scenarios. Optimal implementation method: Deploy this solution on a Leaf switch in the data center, set the check cycle to 5 seconds, adjust the step size to 1% of egress_pool_size, lower the sensitivity coefficient to keep it at 70%, and set the boundary protection limit to 30% of egress_pool_size.

[0054] Example 1: Deployment in a Data Center Network 1.1 Hardware Environment Preparation 1.1.1. Use data center switches that support programmable ASICs. 1.1.2. Configure sufficient egress pool memory, assuming egress_pool_size = 40,000,000 bytes. 1.1.3. Set initial parameters: min_threshold = 2205080, max_threshold = 8951240 1.2. Software Configuration 1.2.1. Enable dynamic ECN function in the switch's qosorch module. 1.2.2. Configure the check interval to 5 seconds. 1.2.3. Set the adjustment step size to 1% of egress_pool_size (i.e., 400,000 bytes). 1.2.4. Set the boundary protection limit to 30% of the egress_pool_size (i.e., 12,000,000 bytes). 1.3. System Operation 1.3.1. After system initialization, the dynamic WRED profile is automatically created and bound to the target queue. 1.3.2. The timer triggers a check process every 5 seconds: 1.3.3. Collect queue water level, ECN tagging rate and packet loss rate.

[0055] 1.3.4. If the water level is greater than the current max_threshold (8951240), or the ECN tagging rate is greater than 10%, or the packet loss rate is greater than 5%, and the adjusted max_threshold is less than or equal to 12,000,000, then increase max_threshold by 400,000. 1.3.5. If the water level is less than 70% of the current max_threshold, the ECN tagging rate is less than 2%, the packet loss rate is less than 1%, and the current max_threshold is greater than the initial value of 8951240, then reduce max_threshold by 400000. 1.4. Effect Verification 1.4.1. During periods of network traffic surge, the system can automatically increase the threshold to reduce ECN marking and packet loss. 1.4.2. During network idle periods, the system automatically lowers the threshold to improve network response sensitivity. 1.4.3. The entire adjustment process was smooth, without drastic fluctuations. Example 2: Parameter Tuning Implementation Based on the characteristics of different network environments, key parameters can be optimized: 2.1. For delay-sensitive applications, the inspection cycle can be shortened to 2-3 seconds. 2.2. For scenarios with high burst traffic, the adjustment step size can be appropriately increased to 1.5%-2% of egress_pool_size. 2.3. For scenarios with extremely high stability requirements, stricter boundary protection conditions can be set.

[0056] This invention addresses the problem that traditional static ECN thresholds cannot adapt to dynamic network traffic changes, providing a lightweight, adaptive dynamic ECN threshold adjustment scheme. This technology can be applied to network devices such as data center network switches and routers, and is particularly suitable for scenarios with stringent requirements for network latency and packet loss rates, such as AI training and high-performance computing.

[0057] Multi-indicator fusion triggering mechanism: Based on the comprehensive judgment of queue water level, ECN marking rate and queue packet loss rate, precise threshold adjustment triggering is achieved.

[0058] Single-threshold incremental adjustment strategy: Only max_threshold is dynamically adjusted, while min_threshold remains fixed, reducing system complexity.

[0059] Distributed autonomous architecture: Each network device makes independent decisions without a central controller, avoiding single points of failure and decision delays.

[0060] Anti-vibration design: By detecting water level changes and adjusting historical records, frequent fluctuations in the threshold are avoided.

[0061] Boundary protection mechanism: Set an upper limit (30% of egress_pool_size) and a lower limit (initial max_threshold) to prevent threshold overflow.

[0062] ECN Marking and Packet Loss Awareness: Using ECN marking rate and queue packet loss rate as adjustment conditions enhances the comprehensiveness of congestion control.

[0063] Beneficial effects: Significantly reduced implementation complexity: Compared to AI model-based dynamic ECN solutions, this application adopts a rule-based lightweight algorithm, which reduces computational overhead by about 70% and is easier to deploy in real-world devices; Excellent response performance: The distributed autonomous architecture avoids the decision-making delay of centralized control, and the threshold adjustment delay is reduced from the second level to the millisecond level; The system boasts strong stability: the single threshold adjustment strategy and anti-oscillation mechanism effectively avoid threshold fluctuations, making the system operation more stable and reliable. Improved resource utilization: By dynamically adjusting thresholds, packet loss rate is reduced by approximately 40% under high network load, and link utilization is increased by approximately 25% under low load. Easy deployment and maintenance: Parameter configuration is simple and clear, eliminating the need for complex model training and parameter tuning processes, which greatly reduces operation and maintenance costs; High compatibility: Based on the standard ECN protocol extension, it is fully compatible with existing network equipment and protocols, requiring no modification to terminal equipment; More precise congestion control: By integrating multiple indicators (queue level, ECN marker, packet loss) for decision-making, misjudgments are reduced and network performance is improved.

[0064] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for adjusting the dynamic ECN threshold based on queue water level, characterized in that, The threshold adjustment method includes: Generate and manage dynamic WRED profiles, and maintain the min_threshold and max_threshold parameters; Bind the dynamic WRED profile to a specific data queue; The current water level of the queue can be obtained in real time through the SDK interface; The ECN tag count of the queue is obtained in real time through the SDK interface, and the ECN tag rate is calculated. The packet loss count of the queue can be obtained in real time through the SDK interface, and the packet loss rate can be calculated. The threshold adjustment and its direction are determined based on preset rules.

2. The dynamic ECN threshold adjustment method based on queue water level according to claim 1, characterized in that, The generation and management of dynamic WRED profiles, and the maintenance of the min_threshold and max_threshold parameters, specifically include: System initialization includes: Initialize the timer and set the check period to 5 seconds; Enable the dynamic ECN feature to create an initial dynamic Wred profile; Set the initial thresholds: min_threshold = 2205080, max_threshold = 8951240; The `set_queue_attribute` command binds a dynamic WRED profile to the target queue. Set threshold parameters for ECN tagging rate and packet loss rate.

3. The method for adjusting the dynamic ECN threshold based on queue water level according to claim 1, characterized in that, The process of obtaining the current water level of the queue in real time through the SDK interface specifically includes: Regular water level checks include: The timer triggers a check cycle every 5 seconds; The SDK functions can be used to obtain the current water level (curr_occupancy), watermark, ECN marker count, and packet loss count of the queue.

4. The method for adjusting the dynamic ECN threshold based on queue water level according to claim 1, characterized in that, The step of obtaining the ECN tag count of the queue in real time through the SDK interface and calculating the ECN tag rate specifically includes: Calculate the ECN marking rate (ecn_marked_rate) and the packet drop rate (queue_drop_rate): ECN marking rate = (Current ECN marking count - Previous ECN marking count) / Total number of packets within the time period.

5. The method for adjusting the dynamic ECN threshold based on queue water level according to claim 1, characterized in that, The process of obtaining the packet loss count of the queue in real time through the SDK interface and calculating the packet loss rate specifically includes: The calculation of the packet loss rate, queue_drop_rate, includes: Packet loss rate = (Current packet loss count - Previous packet loss count) / Total number of data packets within the time period; Record this count for use in the next calculation.

6. The method for dynamic ECN threshold adjustment based on queue water level according to claim 1, characterized in that, The step of determining whether threshold adjustment is needed and the direction of adjustment based on preset rules specifically includes: Threshold adjustment condition judgment and execution; Threshold reduction condition judgment and execution; Shock absorption measures.

7. The dynamic ECN threshold adjustment method based on queue water level according to claim 6, characterized in that, The threshold adjustment condition judgment and execution specifically include: The threshold will be increased if the system detects that any of the following conditions are met, and the adjusted max_threshold does not exceed 30% of the egress_pool_size: Condition 1: The current watermark in the queue exceeds the current max_threshold; Condition 2: The ECN labeling rate exceeds the preset upper limit; Condition 3: The packet loss rate of the queue exceeds the preset limit; Adjustment method: Increase the current max_threshold by a fixed step; After adjustment, update the max_threshold parameter in the dynamic WRED configuration file.

8. The dynamic ECN threshold adjustment method based on queue water level according to claim 6, characterized in that, The threshold reduction condition judgment and execution specifically include: The threshold will be lowered when the system detects that all of the following conditions are met, and the current max_threshold is higher than the initial value: Condition 1: The current queue occupancy is less than 70% of the current max_threshold; Condition 2: The ECN labeling rate is lower than the preset lower limit; Condition 3: The queue packet loss rate is lower than the preset lower limit; Adjustment method: Decrease the current max_threshold by a fixed step; After adjustment, update the max_threshold parameter in the dynamic WRED configuration file.

9. The method for dynamic ECN threshold adjustment based on queue water level according to claim 6, characterized in that, The anti-vibration treatment specifically includes: The adjustment operation is only performed when an actual change in the queue watermark is detected. Record adjustment history; Increase the threshold when congestion worsens; When congestion eases, lower the threshold.

10. A dynamic ECN threshold adjustment system based on queue level, employing the dynamic ECN threshold adjustment method based on queue level as described in any one of claims 1-8, characterized in that, The adjustment system includes: The dynamic WRED configuration module is used to generate and manage dynamic WRED profiles and maintain the min_threshold and max_threshold parameters. The queue attribute binding module is used to bind dynamic WRED profiles to specific data queues; The water level monitoring module is used to obtain the current occupied water level of the queue in real time through the SDK interface; The ECN tag monitoring module is used to obtain the ECN tag count of the queue in real time through the SDK interface and calculate the ECN tag rate; The packet loss monitoring module is used to obtain the packet loss count of the queue in real time through the SDK interface and calculate the packet loss rate; The threshold decision module is used to determine whether threshold adjustment is needed and the direction of adjustment based on preset rules.

Citation Information

Patent Citations

  • Caching method and device

    CN110493145A

  • Method and device for optimizing network congestion

    CN112532535A

  • Method and equipment for setting explicit congestion notification threshold value of outbound direction queue

    CN119211132A

  • Implementation method and device for triggering ECN mark based on dynamic threshold value, and network equipment

    CN119232689A

  • Power system RDMA network dynamic congestion control method based on DCQCN

    CN120499106A