Data reading method and device

A data reading and data technology, applied in the field of data reading, can solve the problems of affecting data reading efficiency, not knowing the relationship between demo.txt, unable to pre-read the subsequent part of the virtual file in advance, etc. Effect

Active Publication Date: 2014-02-19
HUAWEI TECH CO LTD
View PDF3 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the above data reading process, the client can only send one offset and length to the NAS device each time, and the NAS device can only find the corresponding physical storage according to the offset and length sent by the client. One of the physical addresses on the device, because the NAS device does not know the relationship between the multiple physical addresses of demo.txt on the physical storage device, so the NAS device cannot pre-read the follow-up Part, which in turn affects the efficiency of data reading

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
  • Data reading method and device
  • Data reading method and device
  • Data reading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] The embodiment of the present invention provides a method for reading data, and the execution subject is a NAS device such as figure 2 As shown, the method includes the following steps:

[0059] 201. A network attached storage (NAS) device receives a first data reading instruction sent by a client.

[0060] Wherein, the first data reading instruction includes: the virtual address corresponding to the data read this time on the virtual storage file, and the unique identifier corresponding to the file where the data read this time is located, wherein the virtual address on the virtual storage file Addresses include offsets and lengths on said virtual storage file.

[0061] 202. According to the corresponding relationship between the virtual address of the file where the read data is located on the virtual storage file and the unique identifier, the NAS device obtains the file where the read data is located in the The virtual address on the virtual storage file.

[006...

Embodiment 2

[0080] The embodiment of the present invention provides a method for reading data, such as image 3 As shown, the method includes the following steps:

[0081] 301. The client sends a first data reading instruction to the NAS device.

[0082] Here, the first data reading instruction includes: the virtual address of the read data on the virtual storage file this time, and the unique identifier of the file where the data is read this time, wherein the virtual address on the virtual storage file includes Offset and length on the virtual storage file.

[0083] example, such as Figure 4 As shown, when reading the file demo.txt, the data reading instruction sent by the client includes: the unique identifier n of the file where the data is read this time, the virtual address of the data read this time on the virtual storage file, which can be The virtual address of the data block on the virtual storage file is expressed in the form of offset + length, and 0+10 can be used to indi...

Embodiment 3

[0109] An embodiment of the present invention provides a NAS device, such as Figure 5 As shown, it includes: a receiving unit 501 , an obtaining unit 502 , a selecting unit 503 , an accessing unit 504 , a sending unit 505 and a storage unit 506 .

[0110] The receiving unit 501 is configured to receive the first data reading instruction sent by the client, the first data reading instruction includes: the virtual address of the data read this time on the virtual storage file, the address of the file where the data is read this time Uniquely identifies. The obtaining unit 502 is configured to obtain the file where the read data is located in the A virtual address on the virtual storage file; the file where the data read this time is located includes a plurality of data blocks, wherein each data block corresponds to a virtual address on the virtual storage file. The selection unit 503 is configured to select from the virtual address of the file where the data read this time is...

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 embodiment of the invention provides a data reading method and device, and relates to the field of communication. The data reading method and device can improve data reading efficiency. The method includes the steps of receiving a first data reading command sent by a client; obtaining virtual addresses of files, where current reading data are contained, in a virtual storage file; selecting one virtual address to serve as a pre-reading virtual address of pre-reading data on the virtual storage file; having access to physical storage equipment through a virtual address of the current reading data on the virtual storage file to obtain the current reading data according to corresponding relations between the virtual addresses on the virtual storage file and physical addresses on the physical storage equipment, and having access to the physical storage equipment by pre-reading of the virtual addresses to obtain pre-reading data; sending the current reading data to the client, storing the pre-reading data in a cache of NAS equipment and recording physical addresses of the pre-reading data on the physical storage equipment.

Description

technical field [0001] The invention relates to the communication field, in particular to a data reading method and device. Background technique [0002] NAS (Network Attached Storage) is a storage technology for servers or workstations to realize information storage and resource sharing through the network. NAS devices are often used as back-end storage devices in virtualization scenarios. Taking VMware (Virtual Machine Ware, virtual machine software) virtualization scenario as an example, a NAS device serves as a data storage to provide storage resources for clients. When the administrator of the virtual environment adds a disk drive to a virtual machine of the client, a new disk partition C will be generated in the virtual machine, and a virtual storage file *.vmdk1 with the extension vmdk will be generated on the NAS device . When users add or delete directories and files on the new disk partition as needed (such files or directories can be collectively referred to as ...

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 Applications(China)
IPC IPC(8): G06F3/06G06F12/02H04L29/08
CPCG06F3/067G06F3/061G06F3/0659
Inventor 王成利孔晗
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products