Cache management method and device

A management method and caching technology, which is applied in the field of data communication, can solve problems such as business interruption, message loss, and unreasonable buffer pool allocation, and achieve the effect of improving reliability and utilization efficiency

Active Publication Date: 2022-06-24
MAIPU COMM TECH CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a cache management method and device, which solves the problems of low memory utilization, message loss or service interruption caused by unreasonable cache pool allocation or sudden business

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
  • Cache management method and device
  • Cache management method and device
  • Cache management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] The embodiment of the present invention provides a cache management method, and the processing flow chart is as follows figure 1 shown, including the following steps:

[0038] Step S101: Create corresponding buffer pools for different types of messages respectively, and use some buffers in the buffer pools corresponding to the messages of the specified type as shared buffer pools.

[0039] The number of buffers in the buffer pool corresponding to the specified type of message is greater than the number of buffers in the buffer pool corresponding to other messages.

[0040] In this embodiment, a buffer pool with a set number of bytes is used as a unit to create corresponding buffer pools for different types of messages respectively, and the number of buffers in the buffer pool corresponding to each type of message may be different. Among them, the size of the buffer, that is, the set number of bytes can be a power of 2. Buffers are used to hold buffer descriptors and m...

Embodiment 2

[0051] An embodiment of the present invention provides a cache management device 80, the schematic diagram of which is as follows Figure 8 shown, including:

[0052] The buffer pool creation module 801 is used to respectively create corresponding buffer pools for different types of messages; wherein, the number of buffers in the buffer pool corresponding to the messages of the specified type is greater than the number of buffers in the buffer pools corresponding to other messages number;

[0053] A buffer pool management module 802, configured to use part of the buffers in the buffer pool corresponding to the specified type of message as a shared buffer pool;

[0054] The buffer application module 803 is configured to apply for a buffer from the shared buffer pool when no free buffer can be applied for in the buffer pool corresponding to other messages.

[0055]The buffer pool creation module 801 is specifically configured to create corresponding buffer pools for different ...

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 cache management method and device, and relates to the field of data communication. The method of the present invention divides the buffer pool of the specified type into a local buffer pool and a shared buffer pool, the local buffer pool is used for sending and receiving processing of a specified type of message, and the shared buffer pool is used for other buffer pools corresponding to messages that cannot be applied for free When using a buffer, provide a shared buffer for other messages to ensure the normal processing of sudden business. The method of the present invention can also dynamically adjust the size of the shared buffer pool, thereby improving the utilization efficiency of the buffer pool and improving the reliability of equipment operation.

Description

technical field [0001] The present invention relates to the field of data communication, in particular to a cache management method and device. Background technique [0002] Network equipment is an important equipment in a data communication network, and its data transceiver performance and operation stability directly determine the reliability of data communication in the network where it is located. The network device forwards different types of packets, such as Ethernet packets and WAN packets. For each type of packet, a dedicated buffer pool is allocated when the device is initialized. Each type of packet can only be retrieved from the corresponding buffer pool. Allocate buffers to carry messages. A network device usually allocates a larger buffer pool for packets of a specified type, and allocates a smaller buffer pool for other packets of a non-specified type that need to be forwarded. [0003] When processing other types of packet forwarding such as multicast or mir...

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): H04L49/90H04L49/9047H04L49/9005
CPCH04L49/90H04L49/9005H04L49/9047
Inventor 孙琳洋
Owner MAIPU COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products