Data packet processing method, device, equipment and storage medium based on network status

By obtaining the current network status data of the network device and calculating the target weight, and dynamically adjusting the WRED weight, the problem of lack of dynamic adaptability when network traffic changes in the prior art is solved, and more efficient network performance and management efficiency are achieved.

CN118984308BActive Publication Date: 2025-02-18SHENZHEN FENGRUNDA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411413029.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-02-18
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

The existing WRED technology lacks dynamic adaptability when network traffic changes, complex management, slow response speed and low resource utilization.

Method used

By obtaining the current network status data of the network device, calculating the target weight based on the current network status data and load threshold, dynamically adjusting the WRED weight to realize dynamic processing of the data packet.

Benefits of technology

It improves the dynamic adaptability of the network, simplifies management processes, speeds up the response speed, and improves resource utilization efficiency, significantly improving network performance and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984308B_ABST
    Figure CN118984308B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for processing data packets based on network status, relates to the field of wireless communication technology, and discloses a method for processing data packets based on network status, including: obtaining current network status data of a network device; calculating a target weight according to the current network status data and a load threshold; obtaining a discarded data packet set according to the target weight and the data packets of the network device, and processing the discarded data packet set. By dynamically adjusting the WRED weight parameter, the optimization of the data packet discarding strategy based on the real-time network status is realized, achieving the technical effect of improving network performance and resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a method, apparatus, device and storage medium for processing data packets based on network status. Background Art

[0002] WRED (Weighted Random Early Detection) is a network traffic management technology, mainly used for network congestion control. It randomly discards some low-priority data packets according to the traffic priority and the current state of the network when the data packets arrive at the network device (such as a switch or router), thereby alleviating network congestion in advance and improving the overall network performance.

[0003] The WRED function of switches is widely used in traffic management and network congestion control. It randomly discards some data packets according to traffic priority to relieve network congestion in advance and improve overall network performance. However, traditional WRED technology has problems such as being unable to dynamically adapt to changes in network traffic and dynamically adjust WRED weights in real-time network status, complex management, slow response speed, and low resource utilization efficiency. It cannot adapt to complex network status.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a network status-based data packet processing method, device, equipment and storage medium, aiming to solve the technical problems of the existing WRED technology that lacks dynamic adaptability when network traffic changes, has complex management, slow response speed and low resource utilization.

[0006] To achieve the above object, the present application proposes a method for processing data packets based on network status, the method comprising:

[0007] Get the current network status data of the network device;

[0008] Calculate the target weight according to the current network status data and the load threshold;

[0009] A discarded data packet set is obtained according to the target weight and the data packets of the network device, and the discarded data packet set is processed.

[0010] In one embodiment, the step of calculating the target weight according to the current network status data and the load threshold comprises:

[0011] Determine the load state of the current network state according to the current network state data and the load threshold;

[0012] Determine a flow weight coefficient, a delay weight coefficient, and a packet loss rate weight coefficient according to the load state;

[0013] The target weight is calculated according to the current network status data, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient.

[0014] In one embodiment, the step of calculating the target weight according to the current network status data, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient comprises:

[0015] Obtaining current network traffic, current network delay, and current packet loss rate according to the current network status data;

[0016] Calculate the initial weight according to the current network traffic, the traffic weight coefficient, the current network delay, the delay weight coefficient, the current packet loss rate, and the packet loss rate weight coefficient;

[0017] Normalization is performed according to the initial weight, the traffic weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient to obtain a target weight.

[0018] In one embodiment, the step of determining the flow weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient according to the load state includes:

[0019] Obtain a first traffic weight coefficient, a first delay weight coefficient, a first packet loss rate weight coefficient, a second traffic weight coefficient, a second delay weight coefficient, a second packet loss rate weight coefficient, a third traffic weight coefficient, a third delay weight coefficient, and a third packet loss rate weight coefficient, wherein the first traffic weight coefficient is less than the second traffic weight coefficient, the second traffic weight coefficient is less than the third traffic weight coefficient, the first delay weight coefficient is less than the second delay weight coefficient, the second delay weight coefficient is less than the third delay weight coefficient, the first packet loss rate weight coefficient is less than the second packet loss rate weight coefficient, and the second packet loss rate weight coefficient is less than the third packet loss rate weight coefficient;

[0020] When the load state is a first load state, selecting the first flow weight coefficient, the first delay weight coefficient, and the first packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient;

[0021] When the load state is a second load state, selecting the second flow weight coefficient, the second delay weight coefficient, and the second packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient;

[0022] When the load state is a third load state, selecting the third flow weight coefficient, the third delay weight coefficient, and the third packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient;

[0023] The network status data of the first load state is greater than the network status data of the second load state, and the network status data of the second load state is greater than the network status data of the third load state.

[0024] In one embodiment, the step of determining the load state of the current network state according to the current network state data and the load threshold comprises:

[0025] Obtain a first network traffic threshold, a second network traffic threshold, a first network delay threshold, a second network delay threshold, a first packet loss rate threshold, a second packet loss rate threshold, and current network traffic, current network delay, and current packet loss rate of the current network traffic data of the load threshold, wherein the first network traffic threshold is greater than the second network traffic threshold, the first network delay threshold is greater than the second network delay threshold, and the first packet loss rate threshold is greater than the second packet loss rate threshold;

[0026] According to the current network status data, current network traffic, current network delay and current packet loss rate are obtained;

[0027] When the current network traffic is less than the first network traffic threshold and greater than the second network traffic threshold, determining that the current network state meets the preset network traffic condition;

[0028] When the current network delay is less than the first network delay threshold and greater than the second network delay threshold, determining that the current network state meets a preset network delay condition;

[0029] When the current packet loss rate is less than the first packet loss rate threshold and greater than the second packet loss rate threshold, determining that the current network state meets a preset packet loss rate condition;

[0030] When it is determined that the current network state satisfies the preset network traffic condition, the preset network delay condition, and the preset packet loss rate condition at the same time, the current network state is determined to be a second load state.

[0031] In one embodiment, the step of obtaining a discarded data packet set according to the target weight and the data packets of the network device, and processing the discarded data packet set comprises:

[0032] Sorting the data packets of the network device according to the target weight to obtain a weighted data packet sorting;

[0033] According to the weighted data packet sorting and the low weight threshold, a discarded data packet set is obtained;

[0034] The discarded data packet set is discarded from the data packets of the network device.

[0035] In one embodiment, after the step of calculating the target weight according to the current network status data and the load threshold, the method further includes:

[0036] Storing the current network state data and the target weight;

[0037] Obtaining historical network status data and weight parameter adjustment records based on the stored current network status data and the target weight;

[0038] Analyze the change trend of the network status according to the historical network status data and the weight parameter adjustment record to obtain the network change trend;

[0039] The load threshold is adjusted according to the network change trend.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a method and device for processing a data packet based on a network state, and the method and device for processing a data packet based on a network state includes:

[0041] An acquisition module is used to obtain current network status data of network devices;

[0042] A calculation module, used to calculate the target weight according to the current network status data and the load threshold;

[0043] The processing module is used to obtain a discarded data packet set according to the target weight and the data packets of the network device, and process the discarded data packet set.

[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a network status-based data packet processing method device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network status-based data packet processing method as described above.

[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the network status-based data packet processing method as described above are implemented.

[0046] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the data packet processing method based on network status as described above.

[0047] One or more technical solutions proposed in this application have at least the following technical effects:

[0048] The technical means of obtaining the current network status data of the network device; calculating the target weight according to the current network status data and the load threshold; obtaining the discarded data packet set according to the target weight and the data packet of the network device, and processing the discarded data packet set solves the problems of WRED lacking dynamic adaptability, high management complexity, slow response speed and low resource utilization. Compared with the existing technology, dynamic adjustment of WRED weight is achieved, and it has the advantages of strong adaptability, simple management, rapid response and high resource utilization efficiency, which significantly improves network performance and management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0051] Figure 1 A flowchart of a method for processing a data packet based on network status according to an embodiment of the present invention is provided;

[0052] Figure 2 A schematic diagram of a weight update process provided in Embodiment 1 of the method for processing a data packet based on network status of the present application;

[0053] Figure 3 A flowchart of a second embodiment of a method for processing a data packet based on a network state according to the present application is provided;

[0054] Figure 4 A schematic diagram of a historical data feedback process flow provided for Embodiment 2 of the method for processing data packets based on network status of the present application;

[0055] Figure 5 A flowchart of a method for processing a data packet based on network status according to a third embodiment of the present invention;

[0056] Figure 6A schematic diagram of the module structure of a method and device for processing data packets based on network status according to an embodiment of the present application;

[0057] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the network status-based data packet processing method in the embodiment of the present application.

[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0061] The main solution of the embodiment of the present application is: obtaining the current network status data of the network device;

[0062] Calculate the target weight according to the current network status data and the load threshold;

[0063] A discarded data packet set is obtained according to the target weight and the data packets of the network device, and the discarded data packet set is processed.

[0064] In this embodiment, for the convenience of description, the following description is made by taking the method and device for processing a data packet based on a network state as the execution subject.

[0065] Since the prior art lacks dynamic adaptability, is complex to manage, has a slow response speed and low resource utilization when network traffic changes, the present application provides a solution, which adopts a technical means of obtaining current network status data of a network device; calculating a target weight according to the current network status data and a load threshold; obtaining a discarded data packet set according to the target weight and the data packets of the network device, and processing the discarded data packet set, which solves the problems of WRED lacking dynamic adaptability, high management complexity, slow response speed and low resource utilization. Compared with the prior art, it realizes dynamic adjustment of WRED weights, has the advantages of strong adaptability, simple management, rapid response and high resource utilization efficiency, and significantly improves network performance and management efficiency.

[0066] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a data packet processing method device based on network status, etc. The following takes the data packet processing method device based on network status as an example to illustrate this embodiment and the following embodiments.

[0067] Based on this, the embodiment of the present application provides a method for processing data packets based on network status, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the method for processing data packets based on network status of the present application.

[0068] In this embodiment, the data packet processing method based on network status includes steps S10 to S30:

[0069] Step S10, obtaining current network status data of the network device;

[0070] It should be noted that network devices refer to any device connected to the network, such as switches, routers, firewalls, etc., which are responsible for processing and forwarding data packets. Current network status data refers to the performance indicator data of network devices at a certain moment, including but not limited to traffic, latency, packet loss rate, etc.

[0071] It is understandable that obtaining the current network status data of the network device usually involves using a network monitoring tool or protocol to collect data. In this embodiment, the network status data can be obtained by protocols including but not limited to Simple Network Management Protocol (SNMP), Network Flow (NetFlow) or Switched Port Analyzer Flow (sFlow).

[0072] Step S20, calculating a target weight according to the current network status data and a load threshold;

[0073] It should be noted that the load threshold is a preset standard used to determine the load status of the network, such as high load, medium load or low load. These thresholds can be derived from historical data analysis, network performance testing or expert experience. The target weight is a weight parameter calculated based on the current network status data and the load threshold, and is used for packet processing decisions in the WRED algorithm.

[0074] In a feasible implementation, step S20 may include steps S21 to S23:

[0075] Step S21, determining the load state of the current network state according to the current network state data and the load threshold;

[0076] It is understandable that the load state is determined based on the comparison result between the current network state data and the load threshold, to determine which load state the network is currently in. The load state includes a high load state, a medium load state, and a low load state.

[0077] In a feasible implementation, step S21 may include steps S211 to S216:

[0078] Step S211, obtaining a first network traffic threshold, a second network traffic threshold, a first network delay threshold, a second network delay threshold, a first packet loss rate threshold, a second packet loss rate threshold, and current network traffic, current network delay, and current packet loss rate of current network traffic data of the load threshold, wherein the first network traffic threshold is greater than the second network traffic threshold, the first network delay threshold is greater than the second network delay threshold, and the first packet loss rate threshold is greater than the second packet loss rate threshold;

[0079] It should be noted that the first network traffic threshold represents the traffic threshold of the high load state, and exceeding this value can be used as one of the judgment bases for the network to be in a high load. The second network traffic threshold represents the traffic threshold of the low load state, and being between the first and second traffic thresholds usually indicates that the network is in a medium load, and being lower than the second network traffic threshold can be used as one of the judgment bases for the network to be in a low load. The first network delay threshold represents the delay threshold of the high load state, and exceeding this value can be used as one of the judgment bases for the network to be in a high load. The second network delay threshold represents the delay threshold of the low load state, and being between the first and second delay thresholds usually indicates that the network is in a medium load, and being lower than the second network delay threshold can be used as one of the judgment bases for the network to be in a low load. The first packet loss rate threshold represents the packet loss rate threshold of the high load state, and exceeding this value can be used as one of the judgment bases for the network to be in a high load. The second packet loss rate threshold represents the packet loss rate threshold of the low load state, and being between the first and second packet loss rate thresholds usually indicates that the network is in a medium load, and being lower than the second packet loss rate threshold can be used as one of the judgment bases for the network to be in a low load.

[0080] Step S212, obtaining the current network traffic, the current network delay and the current packet loss rate according to the current network status data;

[0081] It should be noted that the current network traffic refers to the amount of data currently transmitted through the network device. Typically, this can be the number of bytes transmitted through the network link or interface per unit time, which can be obtained through network monitoring tools such as NetFlow or sFlow. The current network delay refers to the transmission time of the data packet from the source to the destination. Network delay may include transmission delay, processing delay and propagation delay, which can be measured by various network testing tools or protocols, such as ping or traceroute. The current packet loss rate refers to the ratio of the number of data packets lost during transmission in a certain period of time to the total number of data packets sent. It can be calculated by checking the number of data packets sent and received, and is usually tracked in the network monitoring system.

[0082] Step S213, when the current network traffic is less than the first network traffic threshold and greater than the second network traffic threshold, determining that the current network state meets the preset network traffic condition;

[0083] It can be understood that the current network traffic being less than the first network traffic threshold and greater than the second network traffic threshold indicates checking whether the current network traffic is between two preset traffic thresholds, that is, whether the traffic condition of the medium load state is met.

[0084] It should be noted that the preset network traffic condition is that the current network traffic < the first network traffic threshold (high load threshold) and > the second network traffic threshold (low load threshold), indicating that the network traffic meets one of the medium load conditions.

[0085] Step S214, when the current network delay is less than the first network delay threshold and greater than the second network delay threshold, determining that the current network state satisfies a preset network delay condition;

[0086] It can be understood that the current network delay being less than the first network delay threshold and greater than the second network delay threshold indicates checking whether the current network delay is between two preset delay thresholds, that is, whether the delay condition of the medium load state is met.

[0087] It should be noted that the preset network delay condition is that the current network delay < the first network delay threshold (high load threshold) and > the second network delay threshold (low load threshold), indicating that the network delay meets one of the conditions of medium load.

[0088] Step S215, when the current packet loss rate is less than the first packet loss rate threshold and greater than the second packet loss rate threshold, determining that the current network state meets a preset packet loss rate condition;

[0089] It can be understood that the current packet loss rate being less than the first packet loss rate threshold and greater than the second packet loss rate threshold indicates checking whether the current packet loss rate is between two preset packet loss rate thresholds, that is, whether the packet loss rate condition of the medium load state is met.

[0090] It should be noted that the preset packet loss rate condition is that the current packet loss rate < the first packet loss rate threshold (high load threshold) and > the second packet loss rate threshold (low load threshold), indicating that the packet loss rate meets one of the conditions of medium load.

[0091] Step S216, when it is determined that the current network state satisfies the preset network traffic condition, the preset network delay condition, and the preset packet loss rate condition at the same time, determining that the current network state is a second load state.

[0092] It can be understood that if the current network status satisfies the above three conditions, network traffic, network delay and packet loss rate, it is determined that the network is in a medium load state.

[0093] In addition, it can be understood that if the current network traffic is greater than the first network traffic threshold, the current network delay is greater than the first network delay threshold, and the current packet loss rate is greater than the first packet loss rate threshold, it is determined that the network is in a high load state.

[0094] It can be understood that if the current network traffic is less than the second network traffic threshold, the current network delay is less than the second network delay threshold, and the current packet loss rate is less than the second packet loss rate threshold, it is determined that the network is in a low load state.

[0095] Step S22, determining a flow weight coefficient, a delay weight coefficient, and a packet loss rate weight coefficient according to the load state;

[0096] It should be noted that the traffic weight coefficient is a coefficient used to quantify the impact of traffic on packet loss decisions in the WRED algorithm. The delay weight coefficient is a coefficient used to quantify the impact of network delay on packet loss decisions in the WRED algorithm. The packet loss rate weight coefficient is a coefficient used to quantify the impact of packet loss rate on packet loss decisions in the WRED algorithm.

[0097] It is understandable that in the WRED (Weighted Random Early Detection) algorithm, the design principle of the weight coefficient is to ensure that the packet drop rate can be appropriately adjusted under different network load conditions. Under high load conditions, we hope to drop packets more aggressively to avoid congestion.

[0098] In a feasible implementation, step S22 may include steps S221 to S225:

[0099] Step S221, obtaining a first flow weight coefficient, a first delay weight coefficient, a first packet loss rate weight coefficient, a second flow weight coefficient, a second delay weight coefficient, a second packet loss rate weight coefficient, a third flow weight coefficient, a third delay weight coefficient and a third packet loss rate weight coefficient, wherein the first flow weight coefficient is less than the second flow weight coefficient, the second flow weight coefficient is less than the third flow weight coefficient, the first delay weight coefficient is less than the second delay weight coefficient, the second delay weight coefficient is less than the third delay weight coefficient, the first packet loss rate weight coefficient is less than the second packet loss rate weight coefficient, and the second packet loss rate weight coefficient is less than the third packet loss rate weight coefficient;

[0100] It should be noted that the first flow weight coefficient, the first delay weight coefficient, and the first packet loss rate weight coefficient correspond to the weight coefficient, delay weight coefficient, and packet loss rate weight coefficient under high load. The second flow weight coefficient, the second delay weight coefficient, and the second packet loss rate weight coefficient correspond to the weight coefficient, delay weight coefficient, and packet loss rate weight coefficient under medium load. The third flow weight coefficient, the third delay weight coefficient, and the third packet loss rate weight coefficient correspond to the weight coefficient, delay weight coefficient, and packet loss rate weight coefficient under low load.

[0101] It can be understood that the first traffic weight coefficient is smaller than the second traffic weight coefficient, the second traffic weight coefficient is smaller than the third traffic weight coefficient, the first delay weight coefficient is smaller than the second delay weight coefficient, the second delay weight coefficient is smaller than the third delay weight coefficient, the first packet loss rate weight coefficient is smaller than the second packet loss rate weight coefficient, and the second packet loss rate weight coefficient is smaller than the third packet loss rate weight coefficient, indicating that more packet loss is required in a high load state and less packet loss is required in a low load state to adapt to different network states. WRED will randomly discard some low-priority data packets, so the weight coefficients of high load are smaller than the weight coefficients of medium load, and the weight coefficients of medium load are smaller than the weight coefficients of low load, which can make the weight of data packets in a high load state more likely to be smaller than the weight of data packets in a medium load state, and the weight of data packets in a medium load state is more likely to be smaller than the weight of data packets in a low load state, so as to achieve the effect of more packet loss in a high load and less packet loss in a low load.

[0102] Step S222, when the load state is the first load state, selecting the first flow weight coefficient, the first delay weight coefficient, and the first packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient;

[0103] Step S223, when the load state is the second load state, selecting the second flow weight coefficient, the second delay weight coefficient, and the second packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient;

[0104] Step S224, when the load state is the third load state, selecting the third flow weight coefficient, the third delay weight coefficient and the third packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient;

[0105] Step S225: The network status data of the first load state is greater than the network status data of the second load state, and the network status data of the second load state is greater than the network status data of the third load state.

[0106] It should be noted that the first load state, the second load state and the third load state in steps S222 to S225 represent a high load state, a medium load state and a low load state, respectively.

[0107] It is understandable that different traffic weight coefficients, delay weight coefficients, and packet loss rate weight coefficients need to be selected under different load conditions.

[0108] Step S23, calculating the target weight according to the current network status data, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient.

[0109] It should be noted that the target weight represents a value calculated based on the current network status and a preset weight coefficient, and is used to determine the discard priority of a data packet in the WRED algorithm.

[0110] In a feasible implementation, step S23 may include steps S231 to S233:

[0111] Step S231, obtaining the current network traffic, the current network delay and the current packet loss rate according to the current network status data;

[0112] Step S232, calculating an initial weight according to the current network traffic, the traffic weight coefficient, the current network delay, the delay weight coefficient, the current packet loss rate, and the packet loss rate weight coefficient;

[0113] It can be understood that steps S231 to S232 indicate that after obtaining the current network traffic, the current network delay, and the current packet loss rate, the initial weight can be calculated based on these three parameters and three weight coefficients.

[0114] It should be noted that the initial weight represents a preliminary weight value calculated based on the current network status data and the weight coefficient, and can be used for subsequent WRED algorithm decisions after subsequent processing.

[0115] It can be understood that the calculation method of the initial weight can be: initial weight = (current network traffic * traffic weight coefficient) + (network delay * delay weight coefficient) + (packet loss rate * packet loss rate weight coefficient).

[0116] Step S233, normalizing the initial weight, the traffic weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient to obtain a target weight.

[0117] It should be noted that normalization is to convert the initial weights into values ​​within a standard range to ensure that the target weights are within a reasonable range.

[0118] It can be understood that the calculation method for normalizing the initial weight to obtain the target weight can be: target weight = initial weight / (traffic weight coefficient + delay weight coefficient + packet loss rate weight coefficient).

[0119] Step S30, obtaining a discarded data packet set according to the target weight and the data packets of the network device, and processing the discarded data packet set.

[0120] It should be noted that the discarded packet set is a set of packets that need to be discarded calculated based on the target weight. Packets in low priority queues have a higher probability of being discarded.

[0121] It can be understood that processing discarded packet sets is to selectively discard packets based on dynamically calculated target weights in response to current network load conditions. This process helps to alleviate network congestion, protect high-priority traffic, and improve the overall performance and efficiency of the network.

[0122] This embodiment provides a method for processing data packets based on network status, which solves the technical problems of the existing WRED technology, such as lack of dynamic adaptability, complex management, slow response speed and low resource utilization when network traffic changes, by real-time monitoring of key performance indicators such as network traffic, delay and packet loss rate, and dynamically calculating and adjusting the traffic weight coefficient, delay weight coefficient and packet loss rate weight coefficient according to these data and preset load thresholds, and achieves the beneficial effects of improving network performance, optimizing resource utilization and enhancing management efficiency.

[0123] Please refer to Figure 2 , Figure 2 This is a schematic diagram of a weight update process of the first embodiment of the method for processing a data packet based on network status of the present application, such as Figure 2 As shown:

[0124] First, the network status is monitored in real time, and then the network status data is collected. Then, the data is analyzed and judged to calculate the WRED weight, and the newly calculated weight parameters are sent to the WRED module. After that, the WRED module updates its configuration according to the received new weight parameters and starts to process data packets in the network according to the new weights.

[0125] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 After step S20, the method for processing data packets based on network status further includes steps S26 to S29:

[0126] Step S26, storing the current network status data and the target weight;

[0127] It can be understood that storing the current network status data and the target weight means retaining the data in a database or storage system to facilitate historical data analysis, trend analysis or for future network management decisions.

[0128] Step S27, obtaining historical network status data and weight parameter adjustment records according to the stored current network status data and the target weight;

[0129] It should be noted that historical network status data refers to network performance indicator data collected over a period of time, such as traffic, delay, and packet loss rate. The weight parameter adjustment record indicates detailed information on how to adjust the weight parameters of the WRED algorithm under different network conditions.

[0130] It is understandable that, according to the stored current network status data and the target weight, obtaining the historical network status data and the weight parameter adjustment record means extracting the stored network status data and the target weight from the database or storage system. The extracted data is integrated into the historical network status data, and the integration method can be to arrange the data in chronological order or summarize them. Record the adjustment of the target weight each time the network status changes, including the time point of the adjustment, the magnitude of the adjustment and the result of the adjustment.

[0131] Step S28, analyzing the change trend of the network status according to the historical network status data and the weight parameter adjustment record to obtain the network change trend;

[0132] It should be noted that the changing trend of the network status refers to the pattern or law of the network performance indicators changing over time obtained by analyzing historical data.

[0133] It is understandable that the process of analyzing the change trend of the network state according to the historical network state data and the weight parameter adjustment record to obtain the network change trend can be to extract the historical network state data and the weight parameter adjustment record from the database or storage system. Sort and classify the extracted data in chronological order. Use statistical methods or data analysis tools, such as line charts, bar charts, trend line analysis, etc. to identify the change trend of network performance indicators over time. Analyze patterns in the data, such as periodic changes, abnormal points, long-term trends, etc.

[0134] Step S29: adjusting the load threshold according to the network change trend.

[0135] It should be noted that the process of adjusting the load threshold according to the network change trend can be to identify the change trend of network performance indicators, such as long-term changes, periodic fluctuations, etc. in traffic, delay and packet loss rate. Evaluate the applicability of the current load threshold according to the change trend to determine whether it needs to be adjusted. If the current threshold no longer conforms to the actual operating status of the network, adjust it to more accurately reflect the load status of the network. Update the load threshold in the system configuration so that the WRED algorithm can use the new threshold for data packet processing.

[0136] In the specific implementation process, suppose that by analyzing historical data, it is found that the average level of network traffic and delay increases during a certain period of time every day (such as 8 pm to 10 pm). This indicates that the network load is high during this period. Therefore, the load threshold can be adjusted to appropriately increase the high load threshold to adapt to this change. The original high load threshold: 90% of traffic, 100ms delay; the adjusted high load threshold: 95% of traffic, 120ms delay. In this way, the WRED algorithm can more accurately identify and respond to changes in network load, thereby more effectively managing network congestion.

[0137] This embodiment provides a method for processing data packets based on network status, which solves the problems of traditional network management methods that are difficult to adapt to changes in network conditions and lack of real-time optimization by analyzing and storing network status data and target weights, and using these data to generate historical records, analyze network status change trends, and dynamically adjust load thresholds accordingly, thereby achieving the beneficial effects of improving the accuracy and responsiveness of network congestion control, optimizing network resource allocation, enhancing network performance, and improving user experience.

[0138] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the historical data feedback process of the second embodiment of the method for processing data packets based on network status of this application, such as Figure 4 As shown:

[0139] The monitoring module is responsible for real-time monitoring of the network status and obtaining network data; the control module receives the data from the monitoring module, calculates and updates the WRED parameters, and then sends these parameters to the WRED module through data transmission; after receiving the parameters from the control module, the WRED module executes the WRED algorithm in combination with these parameters to process the data packet; the data storage module is responsible for storing historical network status data and WRED parameter adjustment records, providing historical data support for the control module to analyze and optimize the algorithm. The entire process forms a closed-loop system, allowing network devices to dynamically adjust data packet processing strategies based on real-time and historical data.

[0140] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , step S30 of the data packet processing method based on network status includes steps S31 to S33:

[0141] Step S31, sorting the data packets of the network device according to the target weight to obtain weighted data packet sorting;

[0142] It can be understood that all pending data packets are obtained from the network device, each data packet is compared with the calculated target weight, and the data packets are sorted according to the target weight, and the data packets with lower weights have higher discarding priority. Weighted data packet sorting is the sorting of all data packets according to the target weight.

[0143] Step S32, obtaining a discarded data packet set according to the weighted data packet sorting and the low weight threshold;

[0144] It should be noted that the low weight threshold represents a value with a relatively low weight, and any data packet below this threshold is considered as a candidate for discarding. In this embodiment, the specific value of the low weight threshold is not limited. The discarded data packet set represents a set of data packets that need to be discarded, identified based on the weight sorting and the low weight threshold.

[0145] Step S33, discarding the discarded data packet set from the data packets of the network device.

[0146] It can be understood that discarding the discarded data packet set from the data packets of the network device means performing a discard operation on the data packets selected for discarding. The WRED algorithm can sort and selectively discard data packets according to the dynamically calculated target weights, thereby optimizing network performance and resource utilization. This method enables the network to respond to traffic changes more flexibly and efficiently, and improves the stability and performance of the network.

[0147] This embodiment provides a method for processing data packets based on network status, which obtains data packets to be processed through network equipment, sorts the data packets according to target weights, sets low weight thresholds to identify a set of discarded data packets, and executes data packet discarding. This technical approach solves the problem that static discarding strategies in traditional networks cannot adapt to traffic changes, and achieves the beneficial effects of optimizing network performance, improving resource utilization, and enhancing network stability and response efficiency.

[0148] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the network status-based data packet processing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0149] This application also provides a method and device for processing data packets based on network status, please refer to Figure 6 , the data packet processing method and device based on network status includes:

[0150] An acquisition module 10 is used to acquire current network status data of a network device;

[0151] A calculation module 20, configured to calculate a target weight according to the current network status data and a load threshold;

[0152] The processing module 30 is used to obtain a discarded data packet set according to the target weight and the data packets of the network device, and process the discarded data packet set.

[0153] The network state-based packet processing method and device provided by the present application adopts the network state-based packet processing method in the above-mentioned embodiment, which can solve the technical problems of the existing WRED technology that lacks dynamic adaptability, complex management, slow response speed and low resource utilization when network traffic changes. Compared with the prior art, the beneficial effects of the network state-based packet processing method and device provided by the present application are the same as the beneficial effects of the network state-based packet processing method provided by the above-mentioned embodiment, and the other technical features in the network state-based packet processing method and device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0154] In one embodiment, the calculation module 20 is also used to determine the load state of the current network state based on the current network state data and the load threshold; determine the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient based on the load state; calculate the target weight based on the current network state data, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient.

[0155] In one embodiment, the calculation module 20 is also used to obtain the current network traffic, the current network delay and the current packet loss rate based on the current network status data; calculate the initial weight based on the current network traffic, the traffic weight coefficient, the current network delay, the delay weight coefficient, the current packet loss rate and the packet loss rate weight coefficient; normalize according to the initial weight, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient to obtain the target weight.

[0156] In one embodiment, the calculation module 20 is further used to obtain a first flow weight coefficient, a first delay weight coefficient, a first packet loss rate weight coefficient, a second flow weight coefficient, a second delay weight coefficient, a second packet loss rate weight coefficient, a third flow weight coefficient, a third delay weight coefficient and a third packet loss rate weight coefficient, wherein the first flow weight coefficient is less than the second flow weight coefficient, the second flow weight coefficient is less than the third flow weight coefficient, the first delay weight coefficient is less than the second delay weight coefficient, the second delay weight coefficient is less than the third delay weight coefficient, the first packet loss rate weight coefficient is less than the second packet loss rate weight coefficient, and the second packet loss rate weight coefficient is less than the third packet loss rate weight coefficient; when the load state is the first load state, the first flow weight coefficient is selected. weight coefficient, the first delay weight coefficient and the first packet loss rate weight coefficient as the flow weight coefficient, delay weight coefficient and packet loss rate weight coefficient; when the load state is the second load state, the second flow weight coefficient, the second delay weight coefficient and the second packet loss rate weight coefficient are selected as the flow weight coefficient, delay weight coefficient and packet loss rate weight coefficient; when the load state is the third load state, the third flow weight coefficient, the third delay weight coefficient and the third packet loss rate weight coefficient are selected as the flow weight coefficient, delay weight coefficient and packet loss rate weight coefficient; the network status data of the first load state is greater than the network status data of the second load state, and the network status data of the second load state is greater than the network status data of the third load state.

[0157] In one embodiment, the calculation module 20 is further used to obtain a first network traffic threshold, a second network traffic threshold, a first network delay threshold, a second network delay threshold, a first packet loss rate threshold, a second packet loss rate threshold and current network traffic data, current network traffic, current network delay and current packet loss rate, wherein the first network traffic threshold is greater than the second network traffic threshold, the first network delay threshold is greater than the second network delay threshold, and the first packet loss rate threshold is greater than the second packet loss rate threshold; obtain the current network traffic, current network delay and current packet loss rate according to the current network status data; when the current network traffic is less than the first network traffic threshold and greater than the second network traffic threshold, determine that the current network status meets the preset network traffic condition;

[0158] When the current network delay is less than the first network delay threshold and greater than the second network delay threshold, it is determined that the current network state meets the preset network delay condition; when the current packet loss rate is less than the first packet loss rate threshold and greater than the second packet loss rate threshold, it is determined that the current network state meets the preset packet loss rate condition; when it is determined that the current network state simultaneously meets the preset network traffic condition, the preset network delay condition and the preset packet loss rate condition, it is determined that the current network state is a second load state.

[0159] In one embodiment, the processing module 30 is also used to sort the data packets of the network device according to the target weight to obtain a weighted data packet sorting; obtain a discarded data packet set according to the weighted data packet sorting and a low weight threshold; and discard the discarded data packet set from the data packets of the network device.

[0160] In one embodiment, the calculation module 20 is also used to store the current network status data and the target weight; obtain historical network status data and weight parameter adjustment records based on the stored current network status data and the target weight; analyze the change trend of the network status based on the historical network status data and the weight parameter adjustment records to obtain the network change trend; adjust the load threshold according to the network change trend.

[0161] The present application provides a network status-based data packet processing method device, and the network status-based data packet processing method device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network status-based data packet processing method in the above-mentioned embodiment one.

[0162] Reference below Figure 7, which shows a schematic diagram of the structure of a data packet processing method based on network status suitable for implementing the embodiment of the present application. The data packet processing method based on network status in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The network status-based data packet processing method and device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0163] like Figure 7 As shown, the packet processing method device based on network status may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the packet processing method device based on network status are also stored in RAM1004. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the network status-based packet processing method device to communicate wirelessly or wired with other devices to exchange data. Although the network status-based packet processing method device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0164] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0165] The network state-based packet processing method and device provided by the present application adopts the network state-based packet processing method in the above embodiment, which can solve the technical problems of the existing WRED technology, such as lack of dynamic adaptability, complex management, slow response speed and low resource utilization when network traffic changes. Compared with the prior art, the beneficial effects of the network state-based packet processing method and device provided by the present application are the same as the beneficial effects of the network state-based packet processing method provided by the above embodiment, and the other technical features in the network state-based packet processing method and device are the same as the features disclosed in the previous embodiment, which will not be repeated here.

[0166] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0168] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the network status-based data packet processing method in the above-mentioned embodiment.

[0169] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0170] The computer-readable storage medium may be included in the device for processing a data packet based on a network state; or may exist independently without being assembled into the device for processing a data packet based on a network state.

[0171] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a data packet processing method device based on network status, the data packet processing method device based on network status: obtains current network status data of the network device; calculates the target weight according to the current network status data and the load threshold; obtains a discarded data packet set according to the target weight and the data packet of the network device, and processes the discarded data packet set.

[0172] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through 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).

[0173] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0174] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0175] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned network state-based packet processing method, and can solve the technical problems of the existing WRED technology that lacks dynamic adaptability, complex management, slow response speed, and low resource utilization when network traffic changes. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the network state-based packet processing method provided by the above-mentioned embodiment, and will not be repeated here.

[0176] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned network status-based data packet processing method when executed by a processor.

[0177] The computer program product provided by the present application can solve the technical problems of the existing WRED technology, such as lack of dynamic adaptability, complex management, slow response speed and low resource utilization when network traffic changes. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the network status-based data packet processing method provided by the above-mentioned embodiment, and will not be described in detail here.

[0178] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for processing data packets based on network status, characterized in that: The method comprises: Get the current network status data of the network device; Calculate the target weight according to the current network status data and the load threshold; The step of calculating the target weight according to the current network status data and the load threshold comprises: Determine the load state of the current network state according to the current network state data and the load threshold; Determine a flow weight coefficient, a delay weight coefficient, and a packet loss rate weight coefficient according to the load state; Calculate the target weight according to the current network status data, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient; The step of calculating the target weight according to the current network status data, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient comprises: Obtaining current network traffic, current network delay, and current packet loss rate according to the current network status data; Calculate the initial weight according to the current network traffic, the traffic weight coefficient, the current network delay, the delay weight coefficient, the current packet loss rate, and the packet loss rate weight coefficient; Normalizing the initial weight, the traffic weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient to obtain a target weight; A discarded data packet set is obtained according to the target weight and the data packets of the network device, and the discarded data packet set is processed.

2. The method according to claim 1, characterized in that The step of determining the flow weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient according to the load state comprises: Obtain a first traffic weight coefficient, a first delay weight coefficient, a first packet loss rate weight coefficient, a second traffic weight coefficient, a second delay weight coefficient, a second packet loss rate weight coefficient, a third traffic weight coefficient, a third delay weight coefficient, and a third packet loss rate weight coefficient, wherein the first traffic weight coefficient is less than the second traffic weight coefficient, the second traffic weight coefficient is less than the third traffic weight coefficient, the first delay weight coefficient is less than the second delay weight coefficient, the second delay weight coefficient is less than the third delay weight coefficient, the first packet loss rate weight coefficient is less than the second packet loss rate weight coefficient, and the second packet loss rate weight coefficient is less than the third packet loss rate weight coefficient; When the load state is a first load state, selecting the first flow weight coefficient, the first delay weight coefficient, and the first packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient; When the load state is a second load state, selecting the second flow weight coefficient, the second delay weight coefficient, and the second packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient; When the load state is a third load state, selecting the third flow weight coefficient, the third delay weight coefficient, and the third packet loss rate weight coefficient as the flow weight coefficient, the delay weight coefficient, and the packet loss rate weight coefficient; The network status data of the first load state is greater than the network status data of the second load state, and the network status data of the second load state is greater than the network status data of the third load state.

3. The method according to claim 1, characterized in that The step of determining the load state of the current network state according to the current network state data and the load threshold comprises: Obtain a first network traffic threshold, a second network traffic threshold, a first network delay threshold, a second network delay threshold, a first packet loss rate threshold, a second packet loss rate threshold, and current network traffic, current network delay, and current packet loss rate of the current network traffic data of the load threshold, wherein the first network traffic threshold is greater than the second network traffic threshold, the first network delay threshold is greater than the second network delay threshold, and the first packet loss rate threshold is greater than the second packet loss rate threshold; According to the current network status data, current network traffic, current network delay and current packet loss rate are obtained; When the current network traffic is less than the first network traffic threshold and greater than the second network traffic threshold, determining that the current network state meets the preset network traffic condition; When the current network delay is less than the first network delay threshold and greater than the second network delay threshold, determining that the current network state meets a preset network delay condition; When the current packet loss rate is less than the first packet loss rate threshold and greater than the second packet loss rate threshold, determining that the current network state meets a preset packet loss rate condition; When it is determined that the current network state satisfies the preset network traffic condition, the preset network delay condition, and the preset packet loss rate condition at the same time, the current network state is determined to be a second load state.

4. The method according to claim 1, characterized in that The step of obtaining a discarded data packet set according to the target weight and the data packet of the network device, and processing the discarded data packet set comprises: Sorting the data packets of the network device according to the target weight to obtain a weighted data packet sorting; According to the weighted data packet sorting and the low weight threshold, a discarded data packet set is obtained; The discarded data packet set is discarded from the data packets of the network device.

5. The method according to any one of claims 1 to 4, characterized in that After the step of calculating the target weight according to the current network status data and the load threshold, the method further includes: Storing the current network state data and the target weight; Obtaining historical network status data and weight parameter adjustment records based on the stored current network status data and the target weight; Analyze the change trend of the network status according to the historical network status data and the weight parameter adjustment record to obtain the network change trend; The load threshold is adjusted according to the network change trend.

6. A data packet processing device based on network status, characterized in that: The device comprises: An acquisition module is used to obtain current network status data of network devices; A calculation module, used to calculate the target weight according to the current network status data and the load threshold; The calculation module is further used to determine the load state of the current network state according to the current network state data and the load threshold; determine the flow weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient according to the load state; calculate the target weight according to the current network state data, the flow weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient; The calculation module is further used to obtain the current network traffic, the current network delay and the current packet loss rate according to the current network status data; calculate the initial weight according to the current network traffic, the traffic weight coefficient, the current network delay, the delay weight coefficient, the current packet loss rate and the packet loss rate weight coefficient; and perform normalization according to the initial weight, the traffic weight coefficient, the delay weight coefficient and the packet loss rate weight coefficient to obtain the target weight; The processing module is used to obtain a discarded data packet set according to the target weight and the data packets of the network device, and process the discarded data packet set.

7. A data packet processing device based on network status, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for processing a data packet based on a network state as claimed in any one of claims 1 to 5.

8. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the network status-based data packet processing method as described in any one of claims 1 to 5 are implemented.