Message management method and device and storage medium
By updating the cache threshold of the network queue based on the message sending and receiving information of the routing device, the problem of insufficient flexibility in queue congestion processing in the prior art is solved, and the utilization rate and user experience of cache resources are improved.
Patent Information
- Application Number
- CN202310802144.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2025-01-07
AI Technical Summary
In the existing QoS network technology, the queue congestion processing method has low flexibility in the utilization of network resources and cannot effectively deal with emergencies, resulting in waste of cache resources and poor user experience.
By obtaining the message sending and receiving information of the target network queue of the routing device, including the traffic peak rate and traffic jitter range, the cache threshold is updated according to the actual information to improve the cache resource utilization and flexibility of the network queue.
Effectively utilize the cache resources of routing devices, reduce the risk of packet loss caused by burst traffic, and improve the flexibility and user experience of network queues.
Smart Images

Figure CN119276820A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network management, and in particular to a message management method, device and storage medium. Background Art
[0002] In the existing QoS (Quality of Service) network technology, network quality problems are mainly caused by queue congestion. The so-called queue congestion refers to a phenomenon in which the forwarding rate decreases and additional delays are introduced due to the relative shortage of queue resources of network devices in routing devices. Therefore, in order to prevent queue congestion from causing poor network quality, the prior art will pre-set a cache threshold for the network queue of the routing device. When the cache of the network queue is greater than the cache threshold, a portion of the messages in the network queue are discarded to ensure the normal operation of the network queue. However, the existing queue congestion processing method has low flexibility in the use of network resources and cannot handle some emergencies in the network well. Summary of the invention
[0003] The embodiments of the present invention provide a message management method, device and storage medium, aiming to improve the flexibility of message management.
[0004] In a first aspect, an embodiment of the present invention provides a message management method, including:
[0005] Acquire message receiving and sending information of network messages in the target network queue of the routing device, wherein the message receiving and sending information includes a flow peak rate and a flow jitter range;
[0006] In a case where the message sending and receiving information satisfies a first preset condition, a buffer threshold of the target network queue is updated according to the message sending and receiving information, and network message management is performed according to the buffer threshold.
[0007] In a second aspect, an embodiment of the present invention further provides a message management device, comprising a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any message management method provided in the embodiments of the present invention are implemented.
[0008] In a third aspect, an embodiment of the present invention further provides a storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any message management method provided in an embodiment of the present invention.
[0009] The embodiment of the present invention provides a message management method, device and storage medium. The embodiment of the present invention obtains the message receiving and sending information of the network message in the target network queue of the routing device, and the message receiving and sending information includes the flow peak rate and the flow jitter range; when the message receiving and sending information meets the first preset condition, the cache threshold of the target network queue is updated according to the message receiving and sending information, and the network message management is performed according to the cache threshold. Since the cache threshold of the target network queue is adjusted according to the actual message receiving and sending information, the cache resources of the routing device can be fully utilized, and the flexibility of message management is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A schematic diagram of a process flow of a message management method provided by an embodiment of the present invention;
[0011] Figure 2 A schematic diagram of a scenario for implementing the message management method provided in an embodiment of the present invention;
[0012] Figure 3 A schematic diagram of the steps of another message management method provided by an embodiment of the present invention;
[0013] Figure 4 A schematic block diagram of the structure of a message management device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0015] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0016] It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0017] The embodiment of the present invention provides a message management method, device and storage medium. The message management method can be applied to a terminal device, which can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant and a wearable device.
[0018] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0019] Please refer to Figure 1 , Figure 1 A schematic flow chart of the steps of a message management method provided by an embodiment of the present invention.
[0020] like Figure 1 As shown, the message management method includes steps S101 to S102.
[0021] Step S101: Acquire message receiving and sending information of network messages in a target network queue of the routing device, wherein the message receiving and sending information includes a flow peak rate and a flow jitter range.
[0022] Exemplarily, the user equipment can remotely access the Internet through a routing device. The routing device can establish network queues with the user equipment and the remote network respectively, receive network messages sent upstream by the user equipment through the network queue, or send network messages downstream to the user equipment.
[0023] Please refer to Figure 2 , Figure 2 A schematic diagram of a scenario for implementing the message management method provided in an embodiment of the present invention.
[0024] like Figure 2 As shown, the routing device can be any network device with message packet forwarding function, such as Figure 2 The Broadband Remote Access Server (BRAS) in the network. The user device can be a terminal device such as a mobile phone, tablet computer, laptop computer, desktop computer, personal digital assistant and wearable device, which is connected to the BRAS through a local area network switch (LAN Switch) and accesses the remote network through the BRAS. In this network, the BRAS has the functions of remote access and routing forwarding. After the user accesses the remote network through the BRAS based on PPPoE (English: Point-to-Point Protocol Over Ethernet), the BRAS can set cache thresholds for the network queues in its upstream and downstream.
[0025] Exemplarily, the routing device may also be a full-service router (Service Router, SR), which also has the function of routing forwarding, and can configure the cache threshold for the network queue of each interface through hierarchical QoS (Hierarchical Quality of Service, H-QoS). The type of routing device is not limited here.
[0026] For example, in existing Quality of Service (QoS) technologies, in order to ensure the stability of communication, the speed of a routing device is usually limited according to actual conditions, and accordingly, there is also a certain cache threshold for the network queue in the routing device.
[0027] For example, in the related art, in order to prevent a single network queue from occupying too much cache resources of a routing device, causing message congestion in the network queue, a cache threshold is usually set for each network queue. When the cache resources occupied by a network queue are greater than the cache threshold, the network queue will discard part of the network messages in the queue to ensure that the cache resources it occupies are less than the cache threshold, thereby ensuring the robustness of the communication. However, since the cache threshold of each queue is a pre-set value, even if there are certain idle resources in the routing device, the network queue will still perform a message discard operation based on the preset cache threshold, resulting in a waste of cache resources in the routing device. In the related art, the network queue can also adjust the cache threshold after executing the message discard. However, at this time, packet loss has already occurred in the network queue, and adjusting the cache threshold is only to prevent subsequent packet loss, resulting in a poor user experience.
[0028] Exemplarily, the message management method provided in the embodiment of the present application can obtain the message sending and receiving information of the target network queue, and adjust the cache threshold of the target network queue according to the traffic peak rate and the traffic jitter range. For example, when there are many idle resources in the routing device, the cache threshold of the target network queue can be adaptively increased to reduce the packet loss caused by burst traffic, thereby improving the flexibility of message management of the network queue in the routing device.
[0029] In some implementations, before obtaining the message receiving and sending information of the network message in the target network queue of the routing device, it also includes: according to the queue numbers of the network queues of the routing device, determining from the network queues that is currently in a service transmission state as the target network queue.
[0030] Exemplarily, there are usually multiple network queues in a routing device, and not every network queue is performing message sending and receiving operations at the same time, but there are some network queues in a service transmission state and some network queues in an idle state. In order to reduce the data processing pressure of the routing device when implementing the message management method provided in the embodiment of the present application, the network queue currently in the service transmission state is determined as the target network queue.
[0031] Exemplarily, whether the network queue is in a service transmission state can be determined by monitoring the message receiving and sending rate on the network queue. For example, when the message receiving and sending rate of the network queue is greater than a preset transmission state threshold, the network queue is determined to be in a service transmission state, and the network queue is determined as a target network queue, wherein the transmission state can be set according to actual needs and is not limited here.
[0032] Step S102: When the message receiving and sending information satisfies a first preset condition, a buffer threshold of the target network queue is updated according to the message receiving and sending information, and network message management is performed according to the buffer threshold.
[0033] Exemplarily, the cache threshold is updated according to actual message sending and receiving information in the target network queue. For example, the cache threshold of the target network queue is increased according to the message sending and receiving information. This improves the flexibility of message management and the utilization efficiency of the cache resources of the routing device, and avoids the situation where the target network queue cannot fully utilize the cache resources of the routing device due to a small cache threshold when there are idle resources in the routing device.
[0034] Please refer to Figure 3 , Figure 3 A schematic flow chart of the steps of another message management method provided by an embodiment of the present invention.
[0035] like Figure 3 As shown, in some embodiments, in the updating of the cache threshold of the target network queue according to the message sending and receiving information, the method includes: step S201, determining the cache utilization of the routing device according to the message sending and receiving information and the cache configuration information of the routing device; step S202, executing the operation of updating the cache threshold of the target network queue according to the message sending and receiving information when the message sending and receiving information satisfies a first preset condition and the cache utilization satisfies a second preset condition.
[0036] Exemplarily, according to the cache utilization rate of the routing device, it is determined whether there are idle cache resources in the routing device, and when there are idle cache resources in the routing device, the cache threshold of the target network queue is increased.
[0037] Exemplarily, the cache utilization rate can be determined based on the message receiving and sending information of each network queue in the routing device and the cache configuration information of the routing device. The message receiving and sending information can include the queue cache of each network queue; the cache configuration information is used to indicate the device cache of the routing device, such as the available cache allocated to the routing device by the upper scheduling device connected to the routing device. Specifically, the cache utilization rate can be obtained by dividing the sum of the caches of each queue by the device cache, but it is not limited to this and is not limited here.
[0038] In some implementations, the second preset condition is that the cache utilization is less than or equal to a preset utilization threshold.
[0039] Exemplarily, when the cache utilization of the routing device is less than or equal to a preset utilization threshold, it indicates that there are more idle cache resources in the routing device. In order to improve the utilization of cache resources, the cache threshold of the target network queue may be increased.
[0040] Exemplarily, the utilization threshold may be set according to actual needs, for example, it may be set to 90% of the device cache of the routing device, but of course it is not limited thereto.
[0041] In some embodiments, the first preset condition includes at least one of the following: the flow peak rate is greater than a preset rate threshold; the flow jitter range is greater than a preset range threshold.
[0042] Exemplarily, the traffic peak rate is the maximum value of the message receiving and sending rate of the target network queue within the first preset time period. Specifically, if the traffic peak rate of the target network queue is greater than the preset rate threshold, it means that the instantaneous value of the message receiving and sending rate in the target network queue is relatively large. In order to prevent the subsequent message receiving and sending rate from increasing instantly and causing queue congestion, the cache threshold of the target network queue is increased so that the target network queue can cope with the traffic that may exist in the future.
[0043] Exemplarily, the flow jitter range is the difference between the minimum and maximum message receiving and sending rates within the second preset time period. Specifically, if the difference between the minimum and maximum message receiving and sending rates is greater than the preset range threshold
[0044] The first preset duration and the second preset duration may be equal or different in size.
[0045] Exemplarily, since the first preset condition can be at least one of the above, the cache threshold of the target network queue can be updated when the traffic peak rate is greater than the preset rate threshold; or the cache threshold of the target network queue can be updated when the traffic jitter range is greater than the preset range threshold; or the cache threshold of the target network queue can be updated when the traffic peak rate is greater than the preset rate threshold and the traffic jitter range is greater than the preset range threshold.
[0046] In some embodiments, updating the cache threshold of the target network queue according to the message sending and receiving information includes at least one of the following: based on a preset first target correspondence, determining the updated cache threshold according to the traffic jitter range, wherein the first target correspondence is a correspondence between the range threshold and the cache threshold adjustment amount; based on a preset second target correspondence, determining the updated cache threshold according to the traffic peak rate, wherein the second target correspondence is a correspondence between the rate threshold and the cache threshold adjustment amount.
[0047] Exemplarily, the updated cache threshold is determined according to a preset first target correspondence and a second target correspondence. Specifically, the first target correspondence is a correspondence between a range threshold and a cache threshold adjustment amount, and the second target correspondence is a correspondence between a rate threshold and a cache threshold adjustment amount, wherein the cache threshold adjustment amount is a difference between the cache threshold before the update and the cache threshold after the update.
[0048] Exemplarily, the cache threshold of the target network queue is increased or decreased according to the cache threshold adjustment amount.
[0049] Exemplarily, taking the case where the traffic jitter range is greater than a preset range threshold, multiple range thresholds can be set, for example, the range threshold can include a first range threshold and a second range threshold, where the first range threshold is smaller than the second range threshold; if the traffic jitter range is greater than the first range threshold, determine the cache adjustment amount corresponding to the first range threshold; if the traffic jitter range is greater than the second range threshold, determine the cache adjustment amount corresponding to the second range threshold.
[0050] For example, if the first range threshold is 5%, the corresponding cache threshold adjustment amount is 200M; if the second range threshold is 10%, the corresponding cache threshold adjustment amount is 500M. If the traffic jitter range of the target network queue is greater than 5%, the cache threshold of the target network queue is increased by 200M; if the traffic jitter range of the target network queue is greater than 10%, the cache threshold of the target network queue is increased by 500M.
[0051] For another example, the first rate threshold is 10G / s, and the corresponding cache threshold adjustment amount is 32M; the second rate threshold is 15G / s, and the corresponding cache threshold adjustment amount is 64M. If the traffic peak rate of the target network queue is greater than 10G / s, the cache threshold of the target network queue is increased by 32M; if the traffic jitter range of the target network queue is greater than 15G / s, the cache threshold of the target network queue is increased by 64M.
[0052] In some implementations, performing network message management according to the buffer threshold includes: performing a message discarding operation when the queue buffer of the target network queue is greater than or equal to the buffer threshold.
[0053] Exemplarily, the buffer threshold is used to manage the messages in the network queue. Specifically, when the queue buffer of the network queue is greater than or equal to the preset buffer threshold, the message discard operation is performed to ensure that a single network queue does not occupy too many resources in the routing device.
[0054] Exemplarily, executing the message discarding operation may be to randomly determine the target message to be discarded from the network queue, or to determine the target message to be discarded according to the priority of the network message in the network queue, which will not be elaborated herein.
[0055] In some embodiments, updating the cache threshold of the target network queue according to the message sending and receiving information includes: updating the cache threshold of the target network queue from a first cache threshold to a second cache threshold according to the message sending and receiving information; the method also includes: monitoring the message sending and receiving information of the target network queue during the process of performing network message management according to the second cache threshold; and updating the cache threshold of the target network queue from the second cache threshold to the first cache threshold when the message sending and receiving information of the target network queue matches the message sending and receiving information when the network message management is performed according to the first cache threshold.
[0056] Exemplarily, after adjusting the cache threshold according to the mutation of message receiving and sending information in the target network queue, if the message receiving and sending information recovers to the level before the mutation, the cache threshold can be adjusted back to the level before the mutation, thereby improving the flexibility of message management.
[0057] Taking the case where the first preset condition is that the traffic peak rate is greater than the preset rate threshold as an example, if the traffic peak rate of the target network queue increases from the original first traffic peak rate to the second traffic peak rate, and the first traffic peak rate is less than the preset rate threshold and the second traffic peak rate is greater than the preset cache threshold, the cache threshold of the target network queue is increased from the first cache threshold to the second cache threshold, and network message management is performed according to the second cache threshold. In the process of performing network message management according to the second cache threshold, the traffic peak rate of the target network queue is monitored; if the traffic peak rate of the target network queue is less than the preset cache threshold within a certain period of time (for example, within a third preset time length), the cache threshold of the target queue is adjusted from the second cache threshold back to the first cache threshold.
[0058] Exemplarily, the first preset condition is that the flow jitter range is greater than the preset range threshold, which is similar to the above and will not be elaborated here.
[0059] The message management method provided in the above embodiment obtains the message receiving and sending information of the network message in the target network queue of the routing device, wherein the message receiving and sending information includes the flow peak rate and the flow jitter range; when the message receiving and sending information meets the first preset condition, the cache threshold of the target network queue is updated according to the message receiving and sending information, and network message management is performed according to the cache threshold. Since the cache threshold of the target network queue is adjusted according to the actual message receiving and sending information, the cache resources of the routing device can be fully utilized, thereby improving the flexibility of message management.
[0060] See also Figure 4 , Figure 4 A schematic block diagram of the structure of a message management device provided in an embodiment of the present invention.
[0061] like Figure 4 As shown, the message management device 300 includes a processor 301 and a memory 302, and the processor 301 and the memory 302 are connected via a bus 303, such as an I2C (Inter-integrated Circuit) bus.
[0062] Specifically, the processor 301 is used to provide computing and control capabilities to support the operation of the entire message management device. The processor 301 can be a central processing unit (CPU), and the processor 301 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0063] Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0064] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the embodiment of the present invention, and does not constitute a limitation on the message management device to which the embodiment of the present invention is applied. The specific message management device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0065] The processor is used to run a computer program stored in the memory, and implement any one of the message management methods provided by the embodiments of the present invention when executing the computer program.
[0066] In one embodiment, the processor is used to run a computer program stored in the memory, and implements the following steps when executing the computer program:
[0067] Acquire message receiving and sending information of network messages in the target network queue of the routing device, wherein the message receiving and sending information includes a flow peak rate and a flow jitter range;
[0068] In a case where the message sending and receiving information satisfies a first preset condition, a buffer threshold of the target network queue is updated according to the message sending and receiving information, and network message management is performed according to the buffer threshold.
[0069] In one embodiment, the processor, when implementing the updating of the cache threshold of the target network queue according to the message sending and receiving information, is used to implement:
[0070] Determining a cache utilization rate of the routing device according to the message receiving and sending information and the cache configuration information of the routing device;
[0071] When the message receiving and sending information satisfies a first preset condition and the cache utilization rate satisfies a second preset condition, the operation of updating the cache threshold of the target network queue according to the message receiving and sending information is performed.
[0072] In one embodiment, when the processor implements updating the cache threshold of the target network queue according to the message sending and receiving information, it is configured to implement at least one of the following:
[0073] Based on a preset first target corresponding relationship, determining the updated cache threshold according to the traffic jitter range, wherein the first target corresponding relationship is a corresponding relationship between the range threshold and the cache threshold adjustment amount;
[0074] Based on a preset second target corresponding relationship, the updated cache threshold is determined according to the traffic peak rate, wherein the second target corresponding relationship is a corresponding relationship between the rate threshold and the cache threshold adjustment amount.
[0075] In one embodiment, before implementing the acquiring of the message sending and receiving information of the network message in the target network queue of the routing device, the processor is used to implement:
[0076] According to the queue numbers of the network queues of the routing device, a queue currently in a service transmission state is determined from the network queues as the target network queue.
[0077] In one embodiment, when the processor implements updating the cache threshold of the target network queue according to the message sending and receiving information, it is used to implement:
[0078] According to the message sending and receiving information, updating the cache threshold of the target network queue from the first cache threshold to the second cache threshold;
[0079] When implementing the message management method, the processor is further used to implement:
[0080] In the process of performing network message management according to the second buffer threshold, monitoring message sending and receiving information of the target network queue;
[0081] When the message sending and receiving information of the target network queue matches the message sending and receiving information when the network message management is performed according to the first buffer threshold, the buffer threshold of the target network queue is updated from the second buffer threshold to the first buffer threshold.
[0082] In one embodiment, when implementing the performing of network message management according to the cache threshold, the processor is used to implement:
[0083] When the queue buffer of the target network queue is greater than or equal to the buffer threshold, a message discarding operation is performed.
[0084] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the message management device described above can refer to the corresponding process in the aforementioned message management method embodiment, and will not be repeated here.
[0085] An embodiment of the present invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any message management method provided in the embodiment of the present invention.
[0086] The storage medium may be an internal storage unit of the message management device described in the above embodiment, such as a hard disk or memory of the message management device. The storage medium may also be an external storage device of the message management device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the message management device.
[0087] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description 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 by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As 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 instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0088] The serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A message management method, characterized in that: Applied to a routing device, the method comprises: Acquire message receiving and sending information of network messages in the target network queue of the routing device, wherein the message receiving and sending information includes a flow peak rate and a flow jitter range; In a case where the message sending and receiving information satisfies a first preset condition, a buffer threshold of the target network queue is updated according to the message sending and receiving information, and network message management is performed according to the buffer threshold.
2. The message management method according to claim 1, characterized in that: In the updating of the cache threshold of the target network queue according to the message sending and receiving information, the method includes: Determining a cache utilization rate of the routing device according to the message receiving and sending information and the cache configuration information of the routing device; When the message receiving and sending information satisfies a first preset condition and the cache utilization rate satisfies a second preset condition, the operation of updating the cache threshold of the target network queue according to the message receiving and sending information is performed.
3. The message management method according to claim 2, characterized in that: The second preset condition is that the cache utilization is less than or equal to a preset utilization threshold.
4. The message management method according to any one of claims 1 to 3, characterized in that: The first preset condition includes at least one of the following: The peak flow rate is greater than a preset rate threshold; The flow jitter range is greater than a preset range threshold.
5. The message management method according to claim 4, characterized in that: The updating of the cache threshold of the target network queue according to the message sending and receiving information includes at least one of the following: Based on a preset first target corresponding relationship, determining the updated cache threshold according to the traffic jitter range, wherein the first target corresponding relationship is a corresponding relationship between the range threshold and the cache threshold adjustment amount; Based on a preset second target corresponding relationship, the updated cache threshold is determined according to the traffic peak rate, wherein the second target corresponding relationship is a corresponding relationship between the rate threshold and the cache threshold adjustment amount.
6. The message management method according to claim 1, characterized in that: Before acquiring the message receiving and sending information of the network message in the target network queue of the routing device, the method further includes: According to the queue numbers of the network queues of the routing device, a queue currently in a service transmission state is determined from the network queues as the target network queue.
7. The message management method according to claim 1, characterized in that: The updating of the cache threshold of the target network queue according to the message sending and receiving information includes: According to the message sending and receiving information, updating the cache threshold of the target network queue from the first cache threshold to the second cache threshold; The method further comprises: In the process of performing network message management according to the second buffer threshold, monitoring message sending and receiving information of the target network queue; When the message sending and receiving information of the target network queue matches the message sending and receiving information when the network message management is performed according to the first buffer threshold, the buffer threshold of the target network queue is updated from the second buffer threshold to the first buffer threshold.
8. The message management method according to claim 1, characterized in that: The performing network message management according to the cache threshold comprises: When the queue buffer of the target network queue is greater than or equal to the buffer threshold, a message discarding operation is performed.
9. A message management device, characterized in that: The message management device includes a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the message management method as described in any one of claims 1 to 8 are implemented.
10. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the message management method according to any one of claims 1 to 8.