A kind of caching method and device
A cache and buffer area technology, applied in the field of network communication, can solve the problems of queue congestion, waste of cache use, and inability to effectively solve QoS scheduling failure, and achieve the effect of ensuring QoS service quality and good experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Specifically, as image 3 As shown, the specific solution flow of the embodiment of the present disclosure is as follows:
[0029] A caching method, comprising the following steps:
[0030] S1. Divide the shared cache into multiple cache areas, each of which corresponds to a different priority type;
[0031] The multiple buffer areas are respectively used for buffering and forwarding corresponding message queues, and may include two or more buffer areas. For example, three buffer areas are included, wherein the first buffer area buffers the packet-free queue, the second buffer area buffers the high-priority queue, and the third buffer area buffers the low-priority queue. The proportion of the first buffer area, the second buffer area, and the third buffer area to the shared buffer area is less than or equal to 100%.
[0032] S2. Send the message queue to the corresponding buffer area according to the sending priority of the message queue. The sending priority may in...
Embodiment 2
[0040] Specifically, as Figure 4 As shown, the specific solution flow of the embodiment of the present disclosure is as follows:
[0041] First, the shared buffer is divided into a plurality of buffer areas, and each buffer area corresponds to a different priority type; then, according to the sending priority of the message queue, the message queue is sent to the corresponding buffer area. According to the queue priority and the possible congestion state, the transmission priority of the queue is divided into three types: no packet loss queue, high priority queue, and low priority queue.
[0042] No packet loss queue: The following table is set as the queue aggregation group Group A. There are not many queues and they are used for internal protocol packets of the device. In order not to cause protocol flapping, this part of the queue cannot lose packets, nor can the delay It is too large, so it is generally not involved in QoS scheduling. As long as the packets are queued, t...
Embodiment 3
[0061] like Image 6 As shown, a cache device includes:
[0062] The partition module 401 is configured to divide the shared cache into multiple cache areas, each of which corresponds to a different priority type. Among them, a plurality of buffer areas are respectively used for buffering and forwarding corresponding message queues, wherein the first buffer area buffers the packet-free queue, the second buffer area buffers the high-priority queue, and the third buffer area buffers the low-priority queue. queue. The proportion of the first buffer area, the second buffer area, and the third buffer area to the shared buffer area is less than or equal to 100%.
[0063] The sending module 402 is configured to send the message queue to the corresponding buffer area according to the sending priority of the message queue. Sending priorities include: no packet loss, high priority, and low priority.
[0064] If the ratio of the length of the message queue to the capacity of the corr...
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