Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Queue cache resource control method and device, server and storage medium

A resource control and queuing technology, applied in the field of queue buffering, can solve problems such as message discarding, buffering resource waste, and bandwidth waste, and achieve the effects of rational allocation, improved utilization, and improved scheduling bandwidth utilization

Active Publication Date: 2020-06-23
北京东土军悦科技有限公司 +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the above method still has shortcomings: when a certain queue is close to the threshold value, for example, the threshold value is 2000B, and the current 1700B has been occupied, if the next enqueue message is 500B, the first 300B of the message After entering the queue, the truncation mark must be marked, and the remaining 200B packets will be discarded
As a result, the last 300B cache resources are wasted, and the bandwidth waste caused by scheduling the useless 300B packets when leaving the team is also caused.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Queue cache resource control method and device, server and storage medium
  • Queue cache resource control method and device, server and storage medium
  • Queue cache resource control method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] figure 1 It is a flow chart of the queue buffer resource control method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of queue buffering messages, especially the case of few remaining queue resources. The method can be executed by the queue buffer resource control device. Such as figure 1 As shown, the method specifically includes the following steps:

[0046] Step 110, after receiving the message, determine the designated queue of the message, and calculate the sum of the preset message length and the current length of the designated queue to obtain the calculation result.

[0047] Wherein, the message may carry information to identify the designated queue of the message. The preset packet length is not the actual length of the received packet, but a general value preset according to the current network. Preferably, the preset packet length may be the maximum packet length that can be transmitted by the current network...

Embodiment 2

[0054] On the basis of the first embodiment above, this embodiment provides multi-level cache resource control, which can control resource occupancy from a higher level. For example, it can control resource occupancy from the port level as a whole. Occupies resources, 1G port occupies less resources. The preset resource control level includes: queue, port, QoS priority, multi-port and multi-priority. Each item in each preset resource control level is set with a corresponding preset maximum resource threshold.

[0055] In practical applications, at least one level can be selected from the above preset resource levels for cache resource control according to the actual situation. It should be noted that the selected level must include at least the queue level, so as not to judge the A situation occurs in which telegrams can no longer actually be received.

[0056] The above-mentioned preset resource control levels are described below.

[0057] (1) Queue level (Queue): Each que...

Embodiment 3

[0086] Embodiment 1 of the present invention provides one level (ie queue level) cache resource control. On the basis of the foregoing embodiments, this embodiment provides several preferred examples of multi-level cache resource control. The descriptions will be made respectively below, and the preset message length is recorded as Vlength (Virtual length).

[0087] (1) Two levels of cache resource control

[0088] Take the queue level and port level as an example, that is, the queue is configured to collect statistics on the port it belongs to. When a message enters the queue management system, it calculates the preset message length Vlength plus the current queue length of the specified queue, and if the calculation result exceeds the threshold value of the specified queue, the message is completely discarded. If the calculation result does not exceed the threshold value of the specified queue, according to the queue configuration information, it is judged that the specifi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a queue buffer resource control method and device, a server and a storage medium, wherein the method includes: receiving a message, determining the designated queue of the message, and calculating the preset message length and the current value of the designated queue The sum of lengths to obtain the calculation result; compare the calculation result with the preset maximum resource threshold value corresponding to the specified queue; if the calculation result is greater than or equal to the preset maximum resource threshold value corresponding to the specified queue, discard the report arts. The present invention can avoid the waste of buffer resources caused by storing the remaining resources in the truncated message and the waste of scheduling bandwidth caused by scheduling the truncated message when leaving the queue when there are not many remaining buffer resources, and improve the utilization rate of cache resources and the utilization rate of scheduling bandwidth. The present invention can control the cache resource from at least one level of queue, port, priority, multi-port, and multi-priority, and realize the refinement and rational allocation of the cache resource on the whole.

Description

technical field [0001] Embodiments of the present invention relate to queue buffer technology, and in particular, to a method and device for controlling queue buffer resources, a server, and a storage medium. Background technique [0002] In a switching network, quality of service (Quality of Service, QOS) queues usually buffer packets by sharing buffer resources. When the shared buffer resources are exhausted, all queues cannot receive packets anymore. In order to avoid the continuous discarding of subsequent packets caused by the exhaustion of shared resource pool resources, the following methods are usually used for resource management: [0003] Set a maximum resource occupancy limit for each queue. When the maximum resource occupancy is exceeded, the queue will no longer receive messages, preventing a queue from occupying too many resources and causing messages from other queues not to be cached. At the same time, in order to prevent the queue from continuing to lose pa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/823H04L12/863H04L12/873H04L47/32H04L47/52
CPCH04L47/32H04L47/50H04L47/52
Inventor 吴祖生
Owner 北京东土军悦科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products