# US 2015/0149870 A1 · Method and apparatus for low delay access to key-value based storage systems using fec techniques

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

- Number: US 2015/0149870 A1
- Document ID: US20150149870A1
- Status: Published application
- Kind: A1
- Application number: 14/405,290
- Filed: 2013-03-13
- Published: 2015-05-28
- Earliest claimed: 2012-06-08
- Assignees: Ntt Docomo, Inc.
- Applicants: Ntt Docomo, Inc.
- Inventors: Ulas C. Kozat
- Web page: https://patentgrep.com/patent/US20150149870A1

## CPC

- H04N 21/4334: {Recording operations (recording of a television signal H04N5/76; arrangements for recording or accumulating broadcast information or broadcast-related information H04H60/27)}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 11/1096: {Parity calculation or recalculation after configuration or reconfiguration of the system}
- H04L 1/004: {by using forward error control (H04L1/0618 takes precedence; coding, decoding or code conversion, for error detection or correction H03M13/00)}
- H04L 1/0048: {in conjunction with detection of multiuser or interfering signals, e.g. iteration between CDMA or MIMO detector and FEC decoder (for spatial equalizer H04L25/03286)}
- H04N 21/4408: involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- 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 method and apparatus is disclosed herein for low delay access to key-value based storage systems. In one embodiment, the method for putting data into a key-value store comprising dividing the data into K portions, where K is an integer; selecting an erasure coding to apply to the K portions as a function of delay performance of the key-value based storage system including determining a number of parity blocks to generate to satisfy one or both of a delay target of putting the object into the key-value store and a delay target of subsequent read requests based on an offline performance simulation of delay performance when different numbers of parity blocks are used given the delay distributions obtained through measurements for different request types and object sizes; applying the erasure coding to the K portions to create N blocks of data; sending the N write requests to write blocks of data to the storage system, where each block is assigned a unique key in the key-value store.

## Claims

### Claim 1

A method for use in a key-value based storage system, the method comprising:
dividing an object into K portions, where K is an integer;
selecting an erasure coding to apply to the K portions as a function of delay performance of the key-value based storage system including determining a number of parity blocks to generate to satisfy one or both of a delay target of putting the object into the key-value store and a delay target of subsequent read requests, where both delay targets are based on an offline performance simulation of delay performance when different numbers of parity blocks are used given the delay distributions obtained through measurements for different request types and object sizes;
applying the erasure coding to the K portions to create N blocks of data; and
sending the N blocks of data using separate transfers to the storage system.

### Claim 2 (depends on 1)

The method defined in claim 1 further comprising:
measuring the delay performance of putting objects to and getting objects from the storage system; and
creating the offline performance simulation based on results of measuring the delay performance.

### Claim 3 (depends on 1)

The method defined in claim 1 wherein selecting the erasure coding to apply is based on a cumulative distribution function of the delay performance.

### Claim 4 (depends on 1)

The method defined in claim 1 wherein selecting the erasure coding to apply is based on the delay performance associated with the operation to be performed.

### Claim 5 (depends on 1)

The method defined in claim 1 wherein selecting the erasure coding to apply is based on the object's size.

### Claim 6 (depends on 1)

The method defined in claim 1 wherein the erasure coding comprises forward error correction (FEC) coding.

### Claim 7 (depends on 1)

The method defined in claim 1 wherein sending the N blocks of data over distinct connections to the storage system comprises sending at least two of the N blocks in parallel over two of the distinct connections.

### Claim 8 (depends on 1)

The method defined in claim 1 further comprising:
assigning a distinct key to each of the K portions;
assigning a distinct key to each of N blocks of data resulting from applying the erasure coding to the K portions;
ordering the keys assigned to the K portions and the keys assigned to the N blocks; and
wherein sending the N blocks of data using N separate transfers to the storage system comprises sending all N blocks in parallel on separate connections to the key-value store, including cancelling any of the N separate transfers that haven't been completed successfully after K of the N separate transfers have completed successfully.

### Claim 9 (depends on 1)

The method defined in claim 1 further comprising:
generating a plurality of individual requests, each request for requesting one of the N blocks of data from storage;
applying erasure decoding as each of N blocks are received;
cancelling N−K requests that remain outstanding after receiving K out of N blocks; and
returning the object to a requester.

### Claim 10 (depends on 1)

The method defined in claim 1 wherein N is the number of available threads.

### Claim 11 (depends on 1)

The method defined in claim 1 wherein the separate transfers comprise a combination of parallel and serial transfers.

### Claim 12 (depends on 1)

The method defined in claim 1 further comprising cancelling any of the N separate transfers that haven't been completed successfully after K of the N separate transfers have completed successfully.

### Claim 13

An apparatus for use in a key-value based storage system, the apparatus comprising:
a communication interface for coupling to a network, the communication interface operable to receive an object from the network;
a memory coupled to the communication interface to store the object; and
a processor coupled to the memory and the communication interface, the processor operable to
divide the object into K portions, where K is an integer,
select an erasure coding to apply to the K portions as a function of delay performance of the key-value based storage system, by, at least in part, determining a number of parity blocks to generate to satisfy one or both of a delay target of putting the object into the key-value store and a delay target of subsequent read requests, where both delay targets are based on an offline performance simulation of delay performance when different numbers of parity blocks are used given the delay distributions obtained through measurements for different request types and object sizes; and
apply the erasure coding to the K portions to create N blocks of data; and wherein the processor operates with the communication interface to send the N blocks of data using separate transfers to the storage system.

### Claim 14 (depends on 13)

The apparatus defined in claim 13 wherein the processor further operable to:
measure the delay performance of putting objects to and getting objects from the storage system; and
create the offline performance simulation based on results of measuring the delay performance.

### Claim 15 (depends on 13)

The apparatus defined in claim 13 wherein the processor selects the erasure coding to apply based on a cumulative distribution function of the delay performance.

### Claim 16 (depends on 13)

The apparatus defined in claim 13 wherein the processor selects the erasure coding to apply based on the delay performance associated with the operation to be performed.

### Claim 17 (depends on 13)

The apparatus defined in claim 13 wherein the processor selects the erasure coding to apply based on the object's size.

### Claim 18 (depends on 13)

The apparatus defined in claim 13 wherein the erasure coding comprises forward error correction (FEC) coding.

### Claim 19 (depends on 13)

The apparatus defined in claim 13 wherein the communication interface sends the at least two of the N blocks in parallel over two of the distinct connections.

### Claim 20 (depends on 13)

The apparatus defined in claim 13 wherein the processor is further operable to:
assign a distinct key to each of the K portions;
assign a distinct key to each of N blocks of data resulting from applying the erasure coding to the K portions;
order the keys assigned to the K portions and the keys assigned to the N blocks; and
wherein the communication interface sends the N blocks of data using N separate transfers in parallel on separate connections to the key-value store, and cancels any of the N separate transfers that haven't been completed successfully after K of the N separate transfers have completed successfully.

### Claim 21 (depends on 13)

The apparatus defined in claim 13 wherein the processor is further operable to:
generate a plurality of individual requests, each request for requesting one of the N blocks of data from storage;
apply erasure decoding as each of N blocks are received;
cancel N−K requests that remain outstanding after receiving K out of N blocks; and
return the object to a requester.

### Claim 22

An article of manufacture having one or more non-transitory computer readable storage media storing instructions which, when executed by a system, causes the system to perform a method comprising:
dividing an object into K portions, where K is an integer;
selecting an erasure coding to apply to the K portions as a function of delay performance of a key-value based storage system, including determining a number of parity blocks to generate to satisfy one or both of a delay target of putting the object into the key-value store and a delay target of subsequent read requests, where both delay targets are based on an offline performance simulation of delay performance when different numbers of parity blocks are used given the delay distributions obtained through measurements for different request types and object sizes;
applying the erasure coding to the K portions to create N blocks of data; and
sending the N blocks of data using separate transfers to the storage system.

### Claim 23 (depends on 22)

The article of manufacture defined in claim 22 further comprising:
measuring the delay performance of putting objects to and getting objects from the storage system; and
creating the offline performance simulation based on results of measuring the delay performance.

### Claim 24 (depends on 22)

The article of manufacture defined in claim 22 wherein selecting the erasure coding to apply is based on a cumulative distribution function of the delay performance.

### Claim 25

A method for use in a key-value based storage system, the method comprising:
dividing each of a plurality of objects into a plurality of portions, wherein each of the plurality of objects is associated with a delay target;
applying erasure coding to the plurality of portions of each of the plurality of objects, including adapting the erasure coding in order to apply a different erasure coding to at least two objects of the plurality of objects based on differences between delay targets associated with the at least two objects; and
sending erasure coded data that resulted from applying the erasure coding to portions of the plurality of objects to the storage system.
