Network communication failure resilience flow scheduling protection method, system, medium and device

By acquiring and analyzing traffic characteristics in real time and dynamically adjusting buffer allocation strategies, the network congestion problem caused by burst traffic in Ethernet communication is solved, ensuring low-latency transmission of critical data streams and optimized resource utilization.

CN122293587APending Publication Date: 2026-06-26DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DONGFENG MOTOR GRP
Filing Date
2026-03-11
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing technologies cannot effectively address network congestion caused by sudden traffic surges in Ethernet communication, and traditional static buffer allocation strategies cannot adapt to dynamic traffic fluctuations.

Method used

By acquiring traffic monitoring data in real time and extracting traffic characteristics, it is determined whether there is a sudden surge in traffic. If it exists and the duration exceeds the threshold, a dynamic buffer allocation strategy is adopted to increase the allocation ratio of the security control data queue in the buffer; otherwise, the default queue allocation strategy is adopted.

Benefits of technology

It ensures low-latency transmission of critical data flows for security control when network congestion occurs due to sudden traffic surges, maintaining an optimal balance between network load and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122293587A_ABST
    Figure CN122293587A_ABST
Patent Text Reader

Abstract

This invention provides a method, system, medium, and device for resilient traffic scheduling protection against network communication failures, belonging to the field of vehicle network communication and safety management technology. The method acquires traffic monitoring data in real time and extracts traffic characteristics from the data. Based on these characteristics, it determines whether sudden traffic surges exist. If a sudden surge exists and its duration exceeds a duration threshold, a dynamic buffer allocation strategy is employed; otherwise, a default queue allocation strategy is used. The dynamic buffer allocation strategy, compared to the default queue allocation strategy, increases the allocation ratio of the security control data queue within the buffer. This method intelligently identifies sudden traffic surge characteristics and triggers buffer resource reallocation, ensuring the transmission of critical security control data streams when network congestion occurs due to sudden traffic surges. It maintains the low-latency characteristics of critical security control data, achieving an optimal balance between network load and resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle network communication and security management technology, and in particular to a method, system, medium and device for protecting against network communication failures through flexible traffic scheduling. Background Technology

[0002] Existing methods for preventing high-speed communication failures in vehicle networks manage Ethernet communication through static impedance matching (such as fixed terminating resistors) and predefined priority queues, calibrates protocol layer timing using hardware timestamps, and addresses occasional frame loss through retransmission mechanisms. The core of these methods is to suppress electromagnetic interference through frequency domain S-parameter analysis and shielding layer design. However, traditional static buffer allocation strategies cannot adapt to dynamic traffic fluctuations and cannot address network congestion caused by sudden traffic spikes in Ethernet communication. Summary of the Invention

[0003] This invention aims to solve at least one of the technical problems existing in the prior art, and proposes a method, system, medium and device for elastic traffic scheduling protection against network communication failures.

[0004] In a first aspect, embodiments of the present invention provide a method for protecting against network communication failures through elastic traffic scheduling, comprising the following steps:

[0005] S100: Acquire traffic monitoring data in real time and extract traffic characteristics based on the traffic monitoring data;

[0006] S200. Determine whether there is a sudden traffic surge based on the extracted traffic characteristics. If there is a sudden traffic surge and the duration of the sudden traffic surge exceeds the duration threshold, adopt a dynamic buffer allocation strategy; otherwise, adopt a default queue allocation strategy. Among these strategies, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared to the default queue allocation strategy.

[0007] Furthermore, in step S100, the traffic characteristics include frame arrival interval and traffic slope.

[0008] Furthermore, in step S200, if the frame arrival interval is less than the frame interval threshold and the traffic slope is greater than the traffic slope threshold, it is determined that there is burst traffic; otherwise, it is determined that there is no burst traffic.

[0009] Furthermore, in step S200, the default queue allocation strategy is to divide the buffer into three levels of queues: a security control data queue, a real-time data queue, and a regular data queue. The allocation ratio of the security control data queue, the real-time data queue, and the regular data queue in the buffer is a set ratio.

[0010] Furthermore, the initial allocation ratio of the security control data queue, real-time data queue, and regular data queue in the buffer is 50%:30%:20%.

[0011] Furthermore, in step S200, the dynamic buffer allocation strategy is to divide the buffer into a two-level queue: a security control data queue and a real-time data queue. The allocation ratio of the security control data queue and the real-time data queue in the buffer can be dynamically adjusted, and the real-time data is transmitted in a compressed format.

[0012] Furthermore, the initial allocation ratio of the security control data queue and the real-time data queue in the buffer is 70%:30%.

[0013] Furthermore, the allocation ratio parameter is stored in the configuration register, and precise allocation is achieved through control words; the allocation ratio is optimized monthly based on network load statistics, and the parameter value is updated remotely via OTA.

[0014] Secondly, embodiments of the present invention provide a network communication failure elastic traffic scheduling protection system, comprising:

[0015] The acquisition and extraction module is used to acquire traffic monitoring data in real time and extract traffic characteristics based on the traffic monitoring data;

[0016] The judgment and adjustment module is used to determine whether there is a sudden traffic surge based on the extracted traffic characteristics. If a sudden traffic surge exists and its duration exceeds the duration threshold, a dynamic buffer allocation strategy is adopted; otherwise, the default queue allocation strategy is adopted. Among them, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared to the default queue allocation strategy.

[0017] Thirdly, embodiments of the present invention provide an electronic device, including:

[0018] One or more processors;

[0019] Memory, used to store one or more programs;

[0020] When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described above.

[0021] Fourthly, embodiments of the present invention provide a computer-readable medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.

[0022] The network communication failure elastic traffic scheduling protection method, system, medium, and device provided by this invention acquires traffic monitoring data in real time and extracts traffic characteristics based on the traffic monitoring data; it determines whether there is a sudden traffic surge based on the extracted traffic characteristics; if there is a sudden traffic surge and the duration of the sudden traffic surge exceeds the duration threshold, a dynamic buffer allocation strategy is adopted; otherwise, a default queue allocation strategy is adopted. Among them, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared with the default queue allocation strategy; it can intelligently identify the characteristics of sudden traffic surges and trigger the reallocation of buffer resources, ensuring the transmission of critical data streams for security control when network congestion occurs due to sudden traffic surges, maintaining the low latency characteristics of critical data for security control, and achieving the best balance between network load and resource utilization. Attached Figure Description

[0023] Figure 1 A flowchart illustrating a method for protecting against network communication failures through elastic traffic scheduling, provided in an embodiment of the present invention.

[0024] Figure 2 This is an overall flowchart of a network communication failure elastic traffic scheduling protection method provided in an embodiment of the present invention;

[0025] Figure 3 This invention provides an architecture diagram of a network communication failure elastic traffic scheduling protection system.

[0026] Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0028] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.

[0029] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0030] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0031] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.

[0032] This invention provides a method for protecting against network communication failures through elastic traffic scheduling. (See attached document.) Figure 1 , 2 As shown, the method includes the following steps:

[0033] S100: Acquire traffic monitoring data in real time and extract traffic characteristics based on the traffic monitoring data.

[0034] In one embodiment, traffic characteristics include frame arrival interval and traffic slope.

[0035] Specifically, the frame arrival interval is calculated based on the frame arrival time, and the flow rate slope is obtained by calculating the flow rate per unit time based on the flow rate.

[0036] S200. Determine whether there is a sudden traffic surge based on the extracted traffic characteristics. If there is a sudden traffic surge and the duration of the sudden traffic surge exceeds the duration threshold, adopt a dynamic buffer allocation strategy; otherwise, adopt a default queue allocation strategy. Among these strategies, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared to the default queue allocation strategy.

[0037] In this embodiment, a dynamic buffer allocation strategy is adopted when there is a burst of traffic and the duration of the burst exceeds the duration threshold; when there is no burst of traffic or there is a burst of traffic but the duration of the burst does not exceed the duration threshold, a default queue allocation strategy is adopted.

[0038] In one embodiment, if the frame arrival interval is less than the frame interval threshold and the traffic slope is greater than the traffic slope threshold, it is determined that there is burst traffic; otherwise, it is determined that there is no burst traffic.

[0039] Specifically, the frame interval threshold is selected based on the transmission rate. For example, based on statistics of the minimum frame interval of high-speed Ethernet (e.g., the minimum frame interval of 100Mbps Ethernet is approximately 67μs), combined with actual test data of in-vehicle networks (most burst traffic intervals are <50μs), the frame interval threshold is set to 50μs. This avoids misjudging regular traffic as bursts (traffic with intervals >50μs can usually be processed normally by the queue). The traffic slope threshold is selected based on actual test results in the application scenario. For example, by measuring the burst traffic slope of autonomous driving sensors, taking a certain LiDAR as an example, its data burst slope can reach 1200~1500pps / ms. A conservative value of 1000pps / ms is taken to balance sensitivity and false alarm rate.

[0040] The duration threshold is determined by analyzing the distribution of typical burst traffic durations in actual measurements and selecting the median value. For example, if a burst of data from a camera lasts 1-5ms, the burst duration threshold is set to 3ms.

[0041] In one embodiment, the default queue allocation strategy divides the buffer into three levels: a security control data queue, a real-time data queue, and a regular data queue. The allocation ratio of the security control data queue, the real-time data queue, and the regular data queue in the buffer is a predetermined ratio. In a preferred embodiment, the initial allocation ratio of the security control data queue, the real-time data queue, and the regular data queue in the buffer is 50%:30%:20%.

[0042] Specifically, safety control data includes braking commands and steering signals; real-time data includes video streams and sensor data; and routine data includes logs and diagnostic information.

[0043] In one embodiment, the dynamic buffer allocation strategy divides the buffer into two levels: a security control data queue and a real-time data queue. The allocation ratio of the security control data queue and the real-time data queue in the buffer can be dynamically adjusted, and the real-time data is transmitted in a compressed format. In a preferred embodiment, the initial allocation ratio of the security control data queue and the real-time data queue in the buffer is 70%:30%.

[0044] In one embodiment, the allocation ratio parameter is stored in a configuration register, and precise allocation is achieved through a control word; the allocation ratio is optimized monthly based on network load statistics, and the parameter value is updated remotely via OTA.

[0045] Specifically, the allocation ratio of each data queue in the buffer is determined through the following steps: Statistical analysis of the traffic ratio of various data types under normal operating conditions; measurement of the maximum instantaneous traffic demand of various data types under sudden scenarios; and assessment of the tolerance of different services to frame loss rates. Specific values ​​are determined based on the following principles: Security control data: ensuring 100% transmission even under the worst-case scenario; Real-time data: guaranteeing basic business needs, allowing for moderate degradation; Regular data: which can be sacrificed when resources are scarce.

[0046] Example allocation percentage parameter value explanation:

[0047] 1. Traffic Surge Allocation Plan (70% Plan)

[0048] (1) Safety control queue: 70%. Ensure that critical control signals have absolute priority, based on the fact that safety instructions may account for 65-75% of the instantaneous flow during emergencies, and take the median value.

[0049] (2) Video stream queue: Allocate the remaining 30% and enable frame compression (e.g., truncate redundant video fields).

[0050] (3) Regular data queue: pause receiving until the burst traffic ends.

[0051] 2. Steady-state traffic allocation scheme (50%:30%:20%)

[0052] (1) Security control queue: 50%. Covers daily security communication needs (actually occupied about 45-55%).

[0053] (2) Video stream queue: 30%. Meets the requirements for camera video transmission, transmitting uncompressed frames completely.

[0054] (3) Regular data queue: 20%. Used for non-real-time data such as logs and diagnostics.

[0055] This invention acquires traffic monitoring data in real time and extracts traffic characteristics based on the data. It then determines whether sudden traffic surges exist based on these characteristics. If a sudden surge exists and its duration exceeds a sustained threshold, a dynamic buffer allocation strategy is employed; otherwise, a default queue allocation strategy is used. Compared to the default queue allocation strategy, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue within the buffer. It intelligently identifies sudden traffic surge characteristics and triggers buffer resource reallocation, ensuring the transmission of critical security control data streams when network congestion occurs due to sudden traffic surges. This maintains the low-latency characteristics of critical security control data and achieves the optimal balance between network load and resource utilization.

[0056] This invention also provides a network communication failure elastic traffic scheduling protection system, see reference. Figure 3 As shown, the system includes:

[0057] The acquisition and extraction module 11 is used to acquire traffic monitoring data in real time and extract traffic features based on the traffic monitoring data.

[0058] The judgment and adjustment module 12 is used to determine whether there is a sudden traffic based on the extracted traffic characteristics. If there is a sudden traffic and the duration of the sudden traffic exceeds the duration threshold, a dynamic buffer allocation strategy is adopted; otherwise, a default queue allocation strategy is adopted. Among them, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared with the default queue allocation strategy.

[0059] This invention also provides an electronic device, see below. Figure 4 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement any of the network communication failure elastic traffic scheduling protection methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0060] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0061] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0062] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0063] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps of any of the network communication failure resilient traffic scheduling protection methods described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.

[0064] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0065] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0066] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0067] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0068] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0069] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0070] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0071] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0072] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0073] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.

Claims

1. A method for protecting against network communication failures through elastic traffic scheduling, characterized in that, Includes the following steps: S100: Acquire traffic monitoring data in real time and extract traffic characteristics based on the traffic monitoring data; S200. Determine whether there is a burst of traffic based on the extracted traffic characteristics. If there is a burst of traffic and the duration of the burst of traffic exceeds the duration threshold, adopt a dynamic buffer allocation strategy. Otherwise, the default queue allocation strategy is adopted; among them, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared to the default queue allocation strategy.

2. The method according to claim 1, characterized in that, In step S100, the traffic characteristics include frame arrival interval and traffic slope.

3. The method according to claim 2, characterized in that, In step S200, if the frame arrival interval is less than the frame interval threshold and the traffic slope is greater than the traffic slope threshold, it is determined that there is burst traffic; otherwise, it is determined that there is no burst traffic.

4. The method according to claim 1, characterized in that, In step S200, the default queue allocation strategy is to divide the buffer into three levels of queues: security control data queue, real-time data queue, and regular data queue. The allocation ratio of the security control data queue, real-time data queue, and regular data queue in the buffer is a set ratio.

5. The method according to claim 1, characterized in that, The initial allocation ratio of the security control data queue, real-time data queue, and regular data queue in the buffer is 50%:30%:20%.

6. The method according to claim 1, characterized in that, In step S200, the dynamic buffer allocation strategy is to divide the buffer into two levels: a security control data queue and a real-time data queue. The allocation ratio of the security control data queue and the real-time data queue in the buffer can be dynamically adjusted, and the real-time data is transmitted in a compressed format.

7. The method according to claim 6, characterized in that, The initial allocation ratio of the security control data queue and the real-time data queue in the buffer is 70%:30%.

8. The method according to any one of claims 4-7, characterized in that, The allocation ratio parameter is stored in the configuration register and precise allocation is achieved through control words; the allocation ratio is optimized monthly based on network load statistics and the parameter value is updated remotely via OTA.

9. A network communication failure elastic traffic scheduling protection system, characterized in that, include: The acquisition and extraction module is used to acquire traffic monitoring data in real time and extract traffic characteristics based on the traffic monitoring data; The judgment and adjustment module is used to determine whether there is a sudden traffic based on the extracted traffic characteristics. If there is a sudden traffic and the duration of the sudden traffic exceeds the duration threshold, a dynamic buffer allocation strategy is adopted. Otherwise, the default queue allocation strategy is adopted; among them, the dynamic buffer allocation strategy increases the allocation ratio of the security control data queue in the buffer compared to the default queue allocation strategy.

10. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 8.

11. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 8.