Caching method and device
A cache and cache area technology, applied in the field of network communication, can solve problems such as queue congestion, cache use waste, and inability to effectively solve QoS scheduling failures, 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
Example Embodiment
[0027] Example 1
[0028] Specific, such as image 3 As shown, the specific solution process of the embodiment of the present disclosure is as follows:
[0029] A caching method includes the following steps:
[0030] S1. Divide the shared cache into multiple cache areas, each of which corresponds to a different priority type;
[0031] Among them, multiple buffer areas are respectively used for buffering and forwarding corresponding message queues, and may include two or more buffer areas. For example, it includes three buffer areas, where the first buffer area buffers packet queues without packet loss, the second buffer area buffers high priority queues, and the third buffer area buffers low priority queues. The proportion of the first cache area, the second cache area, and the third cache area in the shared cache 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 pri...
Example Embodiment
[0039] Example 2
[0040] Specific, such as Figure 4 As shown, the specific solution process of the embodiment of the present disclosure is as follows:
[0041] First, the shared buffer is divided into multiple 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 possible congestion status, the sending priority of the queue is divided into 3 types: no packet loss queue, high priority queue, and low priority queue.
[0042] No packet loss queue: Set as the queue aggregation group Group A in the following table. This kind of queue is not many and is provided for the internal protocol packets of the device. In order not to cause protocol oscillations, this part of the queue cannot be lost and delayed. It is too large, so it is generally not involved in QoS scheduling. As long as the message is queued, it ...
Example Embodiment
[0060] Example 3
[0061] Such as Image 6 As shown, a cache device includes:
[0062] The partition module 401 is configured to divide the shared cache into multiple cache areas, and each cache area corresponds to a different priority type. Among them, multiple buffer areas are respectively used for buffering and forwarding corresponding message queues. Among them, the first buffer area buffers no packet loss message queue, the second buffer area buffers high priority queues, and the third buffer area buffers low priority queues. queue. The proportion of the first cache area, the second cache area, and the third cache area in the shared cache 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 priority includes: no packet loss, high priority, low priority.
[0064] If the ratio of the length of the message queue to the capacity of the...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap