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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com