Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for storing device port state data in memory

A port state, storage device technology, applied in structured data retrieval, digital data processing, database management systems, etc., can solve problems such as single data structure, and achieve the effect of avoiding memory waste

Active Publication Date: 2019-04-16
BEIJING ENOVELL TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Although some NoSQL databases can store and query data very well, but the data structure is relatively simple, and can only support simple key=value character storage

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 method for storing device port state data in memory
  • A method for storing device port state data in memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] A method for storing device port status data in memory according to the present invention will be described in detail below in combination with embodiments and drawings.

[0023] A method for storing device port state data in memory according to the present invention is divided into several times according to data statistics, including device level data, port level data, and time point level data, and each level of data is stored using a Hash table or an array. The level data directly refers to the next level data, so as to realize data structured storage and ensure efficient query service.

[0024] In addition, the data cache is applied for and reused once, avoiding frequent memory application release operations. For long-term services, as the amount of data changes, the memory usage can be automatically increased or decreased to achieve the effect of memory adaptation.

[0025] A kind of method of memory storage device port state data of the present invention, at fir...

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 method for storing specific equipment port state data in a memory. A step of starting a memory state data service comprises the following steps: applying for two cache assemblies, wherein each cache assembly comprises an equipment Hash list cache, an equipment information cache, a port information cache and a state data cache; storing the equipment state data of a previous storage period in the first cache assembly, and storing the equipment state data of a current storage period in the rear cache assembly; connecting with a database, and generating an equipment collection granularity cache; periodically reading a collected task list, and updating the equipment collection granularity cache; at the end of each storage period, switching data in the two cache assemblies, and clearing data in the second cache assembly after the data is switched; reading the equipment state data from the start time of the previous storage period to current time in an equipment state data table, and storing the equipment state data into the cache; and starting HTTP (Hyper Text Transport Protocol) monitoring service, and waiting to receive and process a remote data query and data update request. By use of the method, the self-adaption of the occupation of a memory size can be realized, and memory waste is avoided.

Description

technical field [0001] The invention relates to a method for storing device port state data in memory. In particular, it relates to a method for memory storage device port status data supporting fast query status data. Background technique [0002] Today's informatization has entered the era of big data, network services are becoming more and more abundant, network speed has been greatly improved, network business, office, etc. are extremely convenient, and people rely on the Internet for more and more activities. With the rapid increase of network traffic, the processing and storage of network device data is particularly important. [0003] For the amount of data at the terabyte level, conventional relational databases can also store it well. In the case of infrequent updates, the query speed of conventional relational databases is also very good. [0004] However, for the huge amount of data, the update storage of hundreds of millions of data every day, and the requirem...

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): G06F16/2455G06F16/25
CPCG06F16/24552G06F16/25
Inventor 孟凡新俞力杰
Owner BEIJING ENOVELL TECH