# US 2020/0393975 A1 · Storage device and operating method of storage device

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

- Number: US 2020/0393975 A1
- Document ID: US20200393975A1
- Status: Published application
- Kind: A1
- Application number: 16/806,287
- Filed: 2020-03-02
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: SHIVA PAHWA; ALEX MOHANDAS
- Web page: https://patentgrep.com/patent/US20200393975A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1036: Life time enhancement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7202: Allocation control and policies
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- 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 storage device includes a nonvolatile memory device, and a controller that receives a write command, data, and a signature associated with the data from an external device, generates a first hash value from the data, generates a second hash value from the signature, generates an output hash value based on the first hash value and the second hash, and detects whether the data received from the external device are previously written in the nonvolatile memory device, by using the output hash value.

## Claims

### Claim 1

A storage device comprising:
a nonvolatile memory device; and
a controller configured to:
receive a write command, data, and a signature associated with the data from an external device,
generate a first hash value from the data, a second hash value from the signature, and an output hash value based on the first hash value and the second hash value, and
detect whether the data received from the external device are previously written in the nonvolatile memory device, by using the output hash value.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to check an integrity of the data received from the external device by using the signature.

### Claim 3 (depends on 1)

The storage device of claim 1, wherein the signature includes at least one of a cyclic redundancy check (CRC) code, a checksum code, an error detection code (EDC), an error correction code (ECC), and a hash value.

### Claim 4 (depends on 1)

The storage device of claim 1, wherein the controller includes:
a first hash generator configured to generate the first hash value from the data;
a second hash generator configured to generate the second hash value from the signature; and
a combination logic configured to combine the first hash value and the second hash value to generate the output hash value.

### Claim 5 (depends on 4)

The storage device of claim 4, wherein the combination logic is configured to generate the output hash value by:
arranging the first hash value and the second hash value sequentially,
performing a hash operation on a result of arranging the first hash and the second hash sequentially,
performing a logical operation on the first hash value and the second hash value, or performing a hash operation on a result of a logical operation on the first hash value and the second hash value.

### Claim 6 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to:
determine a similarity by comparing the output hash value and previous output hash value of data previously written in the nonvolatile memory device;
determine a write data hit when the similarity is a threshold value or greater than the threshold value; and
skip an operation of writing the data received from the external device in the nonvolatile memory device when the write data hit is determined.

### Claim 7 (depends on 6)

The storage device of claim 6, wherein, when the write data hit is determined, the controller stores information indicating that the data received from the external device are present in the nonvolatile memory device as the previously written data.

### Claim 8 (depends on 6)

The storage device of claim 6, wherein, when the write data hit is determined, the controller discards the output hash value.

### Claim 9 (depends on 1)

The storage device of claim 1, wherein the controller is further configured to:
determine a similarity by comparing the output hash value and previous output hash value of data previously written in the nonvolatile memory device;
determine a write data miss when the similarity is smaller than a threshold value; and
write the data received from the external device in the nonvolatile memory device when the write data miss is determined.

### Claim 10 (depends on 9)

The storage device of claim 9, wherein, when the write data miss is determined, the controller stores an address of the nonvolatile memory device, at which the data received from the external device are written.

### Claim 11 (depends on 9)

The storage device of claim 9, wherein, when the write data miss is determined, the controller stores the output hash value.

### Claim 12 (depends on 11)

The storage device of claim 11, wherein the controller is further configured to back up the output hash value to the nonvolatile memory device.

### Claim 13 (depends on 1)

The storage device of claim 1, further comprising:
a buffer memory,
wherein the controller is further configured to:
determine a similarity by comparing the output hash value and previous output hash value of data previously written in the nonvolatile memory device;
determine a write data miss when the similarity is smaller than a threshold value; and
store the data received from the external device in the buffer memory when the write data miss is determined.

### Claim 14 (depends on 13)

The storage device of claim 13, wherein, when a specific condition is satisfied, the controller reads the data stored in the buffer memory and writes the data read from the buffer memory in the nonvolatile memory device.

### Claim 15 (depends on 14)

The storage device of claim 14, wherein, the specific condition is satisfied when a flush command is received from the external device, when a sudden power-off (SPO) is detected, when the storage device enters an idle state, or when a free capacity of the buffer memory is smaller than a threshold value.

### Claim 16 (depends on 1)

The storage device of claim 1, further comprising:
a buffer memory,
wherein the controller is further configured to:
store the data and the signature received from the external device in the buffer memory;
read the data and the signature stored in the buffer memory when a write condition is satisfied; and
generate the first hash value and the second hash value from the data and the signature read from the buffer memory, respectively.

### Claim 17 (depends on 16)

The storage device of claim 16, wherein the controller is further configured to:
determine a similarity by comparing the output hash value and previous output hash value of data previously written in the nonvolatile memory device;
determine a write data miss when the similarity is smaller than a threshold value; and
release a storage space of the buffer memory, in which the data and the signature are stored, when the write data miss is determined.

### Claim 18

An operating method of a storage device which includes a nonvolatile memory device and a controller configured to control the nonvolatile memory device, the method comprising:
receiving, by the controller, a write command, data, and a signature associated with the data from an external device;
generating, by the controller, an output hash value from the data and the signature;
skipping, by the controller, an operation of writing the data in the nonvolatile memory device when a similarity between the output hash value and previous output hash value of data previously written in the nonvolatile memory device is a threshold value or greater than the threshold value; and
writing, by the controller, the data in the nonvolatile memory device when the similarity between the output hash value and the previous output hash value is smaller than the threshold value.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
checking, by the controller, an integrity of the data by using the signature.

### Claim 20

A storage device comprising:
a nonvolatile memory device; and
a controller configured to control the nonvolatile memory device,
wherein the controller includes:
a reception block configured to receive a write command, a logical address, data, and a signature associated with the data from an external device;
a signature check block configured to receive the data and the signature from the reception block and to check an integrity of the data by using the signature;
a hash generation block configured to receive the data and the signature from the signature check block and to generate an output hash value from the data and the signature;
a hash data block configured to store previous output hash value associated with previous data previously written in the nonvolatile memory device;
a mapping information block configured to store mapping information between a previous logical address of the previous data and a previous physical address, at which the previous data are written, of a storage space of the nonvolatile memory device; and
a control block configured to receive the data and the output hash value from the hash generation block, to determine a similarity by comparing the output hash value and the previous output hash value of the hash data block, and to determine one of a write data hit and a write data miss depending on the similarity,
wherein, when the write data hit is determined, the control block updates the mapping information block such that the logical address of the data is mapped onto the previous physical address of the previous data, and
wherein, when the write data miss is determined, the controller writes the data in the nonvolatile memory device and updates the mapping information block such that the logical address is mapped onto a physical address, at which the data are written, of a storage space of the nonvolatile memory device.
