# US 10,769,132 B1 · Efficient storage and retrieval of time series data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,769,132 B1
- Document ID: US10769132B1
- Status: Granted
- Kind: B1
- Application number: 15/839,463
- Filed: 2017-12-12
- Granted: 2020-09-08
- Earliest claimed: 2017-12-12
- Assignees: Juniper Networks, Inc.
- Applicants: Juniper Networks, Inc.
- Inventors: Rahamath Sharif; Chandrasekhar A
- Web page: https://patentgrep.com/patent/US10769132B1

## CPC

- G06F 16/2365: {Ensuring data consistency and integrity}
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- G06F 16/219: {Managing data history or versioning (querying versioned data G06F16/2474; querying temporal data G06F16/2477)}
- G06F 16/23: Updating
- G06F 16/2477: {Temporal data queries}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/9027: {Trees}
- H04L 41/142: using statistical or mathematical methods
- H04L 43/04: Processing captured monitoring data, e.g. for logfile generation
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 43/16: Threshold monitoring
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A device stores time series data, based on time stamps, in a compact prefix tree, and receives new time series data to be added to the compact prefix tree. The device determines whether the new time series data is different than previously stored time series data in the compact prefix tree. The device selectively stores the new time series data in the compact prefix tree by storing the new time series data in the compact prefix tree when the new time series data is different than the previously stored time series data in the compact prefix tree, and updates a last time stamp for one of the previously stored time series data, based on the new time series data, when the new time series data is not different than the one of the previously stored time series data.

## Claims

### Claim 1

A device, comprising:
one or more processors to:
receive time series data that includes a time stamp date and time parameter;
convert the time stamp date and time parameter into a first time long value parameter;
store the time series data, based on the first time long value parameter, in a compact prefix tree data structure that is based on a time long format;
receive new time series data to potentially be stored in the compact prefix tree data structure;
convert a time stamp date and time parameter of the new time series data into a second time long value parameter;
determine whether a physical parameter of the new time series data is different than a corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure; and
selectively store the new time series data in the compact prefix tree data structure based on whether the physical parameter of the new time series data is different than the corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure,
the new time series data to be stored in the compact prefix tree data structure when the physical parameter of the new time series data is different than the corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure, or
a last time stamp for the previously stored time series data to be updated, based on the new time series data and without storing the new time series data, when the physical parameter of the new time series data matches the corresponding physical parameter of the previously stored time series data.

### Claim 2 (depends on 1)

The device of claim 1, where the one or more processors are further to:
receive, from another device, a request for particular time series data associated with a particular time period;
traverse the compact prefix tree data structure, based on the particular time period and the time long format, to retrieve the particular time series data; and
provide the particular time series data to the other device.

### Claim 3 (depends on 1)

The device of claim 1, where the one or more processors are further to:
generate one or more statistics based on the previously stored time series data in the compact prefix tree data structure.

### Claim 4 (depends on 1)

The device of claim 1, where the one or more processors are further to:
generate one or more statistics based on the new time series data and the previously stored time series data in the compact prefix tree data structure.

### Claim 5 (depends on 1)

The device of claim 1, where the one or more processors are further to:
determine, when the physical parameter of the new time series data is different than the physical parameter of the previously stored time series data in the compact prefix tree data structure, whether a difference between the physical parameter of the new time series data and the physical parameter of the previously stored time series data satisfies a threshold; and
generate an alert when the difference between the physical parameter of the new time series data and the physical parameter of the previously stored time series data satisfies the threshold.

### Claim 6 (depends on 1)

The device of claim 1, where the physical parameter is a temperature parameter.

### Claim 7 (depends on 1)

The device of claim 1, where the one or more processors are further to:
receive the time series data from one or more network devices associated with a network.

### Claim 8

A non-transitory computer-readable medium storing instructions, the instructions comprising:
one or more instructions that, when executed by one or more processors, cause the one or more processors to:
receive time series data that includes a time stamp date and time parameter;
convert the time stamp date and time parameter into a first time long value parameter;
store the time series data, based on the first time long value parameter, in a compact prefix tree data structure that is based on a time long format;
receive, from a plurality of network devices, new time series data to potentially be stored in the compact prefix tree data structure;
convert a time stamp date and time parameter of the new time series data into a second time long value parameter;
determine whether a physical parameter of the new time series data is different than a corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure; and
selectively store the new time series data in the compact prefix tree data structure based on whether the physical parameter of the new time series data is different than the corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure,
the new time series data to be stored in the compact prefix tree data structure when the physical parameter of the new time series data is different than the corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure, or
a last time stamp for one of the previously stored time series data to be updated, based on the new time series data, when the physical parameter of the new time series data matches the corresponding physical parameter of the one of the previously stored time series data.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:
receive, from a device, a request for particular time series data associated with a particular time period;
traverse the compact prefix tree data structure, based on the particular time period and the time long format, to retrieve the particular time series data; and
provide the particular time series data to the device.

### Claim 10 (depends on 8)

The non-transitory computer-readable medium of claim 8, where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:
generate one or more statistics based on the previously stored time series data in the compact prefix tree data structure.

### Claim 11 (depends on 8)

The non-transitory computer-readable medium of claim 8, where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:
generate one or more statistics based on the new time series data and the previously stored time series data in the compact prefix tree data structure.

### Claim 12 (depends on 8)

The non-transitory computer-readable medium of claim 8, where the one or more instructions, when executed by the one or more processors, further cause the one or more processors to:
determine, when the physical parameter of the new time series data is different than the corresponding physical parameter of the previously stored time series data in the compact prefix tree data structure, whether a difference between the physical parameter of the new time series data and the corresponding physical parameter of the previously stored time series data satisfies a threshold; and
generate an alert when the difference between the physical parameter of the new time series data and the corresponding physical parameter of the previously stored time series data satisfies the threshold.

### Claim 13 (depends on 8)

The non-transitory computer-readable medium of claim 8, where the physical parameter is a temperature parameter.

### Claim 14 (depends on 8)

The non-transitory computer-readable medium of claim 8, where the new time series data includes a sequence of data points providing measurements over a time interval for a given metric associated with the plurality of network devices.

### Claim 15

A method, comprising:
receiving, by a device, time series data from a plurality of network devices,
where the time series data includes time stamp date and time parameters;
converting, by the device, the time stamp date and time parameters into time long value parameters;
storing, by the device and based on the time long value parameters, the time series data in a compact prefix tree data structure;
receiving, by the device, new time series data to potentially be stored in the compact prefix tree data structure;
converting, by the device, a time stamp date and time parameter of the new time series data into a new time long value parameter;
determining, by the device, whether a physical parameter of the new time series data is different than a corresponding physical parameter of one of the previously stored time series data in the compact prefix tree data structure; and
selectively storing, by the device, the new time series data in the compact prefix tree data structure based on whether the physical parameter of the new time series data is different than the corresponding physical parameter of one of the previously stored time series data in the compact prefix tree data structure,
the new time series data to be stored in the compact prefix tree data structure when the physical parameter of the new time series data is different than the corresponding physical parameter of the one of the previously stored time series data in the compact prefix tree data structure, or
a last time stamp to be updated for one of the previously stored time series data, based on the new time series data, when the physical parameter of the new time series data matches the corresponding physical parameter of the one of the previously stored time series data.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
receiving, from another device, a request for particular time series data associated with a particular time period;
traversing, by the device, the compact prefix tree data structure, based on the particular time period and the time long format, to retrieve the particular time series data; and
providing, by the device, the particular time series data to the other device.

### Claim 17 (depends on 15)

The method of claim 15, further comprising:
generating, by the device, one or more statistics based on the previously stored time series data in the compact prefix tree data structure.

### Claim 18 (depends on 15)

The method of claim 15, further comprising:
generating, by the device, one or more statistics based on the new time series data and the previously stored time series data in the compact prefix tree data structure.

### Claim 19 (depends on 15)

The method of claim 15, further comprising:
determining, by the device, when the physical parameter of the new time series data is different than the corresponding physical parameter of the one of the previously stored time series data in the compact prefix tree data structure, whether a difference between the physical parameter of the new time series data and the corresponding physical parameter of the one of the previously stored time series data satisfies a threshold; and
generating, by the device, an alert when the difference between the physical parameter of the new time series data and the corresponding physical parameter of the one of the previously stored time series data satisfies the threshold.

### Claim 20 (depends on 15)

The method of claim 15, where receiving the new time series data includes receiving the new time series data from one or more network devices associated with a network,
where the physical parameter is a temperature parameter associated with at least one of the one or more network devices associated with the network.
