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

A data multi-level cache processing method

A cache processing and data buffer technology, which is applied in the direction of data exchange network, digital transmission system, electrical components, etc., can solve the problems of loss, different size, affecting data processing, etc., and achieve the effect of avoiding sticky packets

Active Publication Date: 2016-06-08
BEIJING JINHER SOFTWARE
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the server-side communication of the cs architecture, it is often necessary to process a large number of data sent by the client. These data packets are of different sizes, and after network transmission, many data will appear sticky packets and sub-packets. The directly extracted data It may not be a complete data packet. Direct parsing will lead to data confusion and loss, which will affect the subsequent processing of data.

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
  • A data multi-level cache processing method
  • A data multi-level cache processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.

[0020] Such as figure 1 As shown, the present invention provides a kind of data multilevel cache processing method, comprises the following steps:

[0021] Step 1. When the service starts successfully, the system will create the second data buffer and the third data buffer, and start the data packet out-of-order control thread and data business processing thread at the same time, in a waiting state. When a client successfully connects to the service and After the handshake is successful, the service creates the first data buffer and the fourth data buffer. When a client continues to connect to the service, the service continues to create its own buffer. In this way, the first data buffer and the fourth data buffer respectively constitute A buffer cluster is established. When...

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 relates to the field of data caching, in particular to a multi-level data cache processing method. The method is characterized by including the following steps that a first data buffer receives one-piece big data sent by a client side and carries out caching; the length of target data is calculated, the target data are taken out of the first data buffer according to the length of the target data, the target data form a complete data package after being analyzed through two steps, the complete data package is stored in a second data buffer, the target data are taken out by repetition of the previous steps until the rest of the data in the first data buffer are not enough to form a complete data package, and the rest of the data are transferred to the head portion of the first data buffer; the complete data package in the head portion of the second data buffer enters a third data buffer to carry out service processing and enters a fourth data buffer ready for being transmitted after the processing is completed. According to the method, on the premise of ensuring the fact that the data cannot be in disorder and or be lost, the data can reach the data buffers accurately and effectively, and be extracted and processed.

Description

technical field [0001] The invention relates to the field of data cache, in particular to a data multi-level cache processing method. Background technique [0002] In the server-side communication of the cs architecture, it is often necessary to process a large number of data sent by the client. These data packets are of different sizes, and after network transmission, many data will appear sticky packets and sub-packets. The directly extracted data It may not be a complete data packet, and direct parsing will lead to data confusion and loss, which will affect the subsequent processing of data. Contents of the invention [0003] Aiming at the above technical problems, the present invention designs and develops a data multi-level cache processing method, the purpose of which is to ensure that data can arrive at the data buffer accurately and efficiently, and then be extracted and processed. [0004] The technical scheme provided by the invention is: [0005] A data multil...

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): H04L29/08H04L12/861
Inventor 徐志刚杨爱民
Owner BEIJING JINHER SOFTWARE
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