CN102023934B - Data protection method and system, external storage device and storage device controller - Google Patents

Data protection method and system, external storage device and storage device controller Download PDF

Info

Publication number
CN102023934B
CN102023934B CN 200910175153 CN200910175153A CN102023934B CN 102023934 B CN102023934 B CN 102023934B CN 200910175153 CN200910175153 CN 200910175153 CN 200910175153 A CN200910175153 A CN 200910175153A CN 102023934 B CN102023934 B CN 102023934B
Authority
CN
China
Prior art keywords
data
main frame
flow rate
unit
memory storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200910175153
Other languages
Chinese (zh)
Other versions
CN102023934A (en
Inventor
游祥雄
沈育仲
陈耘颉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CN 200910175153 priority Critical patent/CN102023934B/en
Publication of CN102023934A publication Critical patent/CN102023934A/en
Application granted granted Critical
Publication of CN102023934B publication Critical patent/CN102023934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention relates to a data protection method, a data protection system, an external storage device and a storage device controller. In the method, when a host computer stores data in the storage device, whether the host computer performs a playing action or duplicating operation on the data is judged first. When it is determined that the host computer performs the playing operation, the storage device continues to execute playing operation to allow the host computer to store data; however, when it is determined that the host computer performs the duplicating operation, the storage device executes an interference program for preventing or slowing down the duplication of data into the host computer. When the protection method, the data protection system, the storage device and the storage device controller are used, the difficulty in the quick duplication of the data in the storage device into the host computer is improved, so the data can be protected.

Description

Data guard method and system, external storage device and storage controller
Technical field
The present invention relates to a kind of method and system of data protection, relate in particular to a kind of in order to avoid main frame arbitrarily to copy data guard method and system, external storage device and the storage controller of the data in the memory storage.
Background technology
Flourish along with science and technology, medium now is except taking into account the high storage capacity, and carrying convenience also is the reference essential factor of consumer when selecting product.After the Portable disk with characteristics such as plug and play and hot plugs comes out, originally often be used to store and the mediums such as 3.5 inches soft dish (floppy disk) of the transmission of data and CD-RW discsCD-RW, also respectively because the shortcoming such as capacity is too small and Data Update is inconvenient and thereupon decline.
And Portable disk not only external form is compact is easy to carry about with one, and as long as computer system possesses the transmission interface compatible with it, though be so data also to be write Portable disk or the data that read in the Portable disk all very convenient.In addition, the rise of short-access storage also allows the memory capacity of Portable disk and then significantly improve, and the modern also more and more is accustomed to utilizing Portable disk to store various data, so that data circulation change is more convenient.For instance, many users custom utilizes Portable disk to deposit audio/video file, and then all can listen to easily at personal computer or unility computer and to view and admire the audio/video file of liking.
Yet what be not difficult to infer is, just because of Portable disk possesses advantage easy to carry and that data easily copy, the data that virtually cause storing are probably copied to computer system easily.Particularly concerning the commodity with copyright, be easy to by bootlegging, this can cause great infringement to the literary property obligee undoubtedly.
Summary of the invention
The purpose of this invention is to provide a kind of data guard method, be copied freely main frame to avoid the data in the memory storage.
Another purpose of the present invention provides a kind of data protection system, improves the difficulty of the data in the host duplication memory storage.
Another object of the present invention provides a kind of external storage device, can guarantee that the data of storing can't be copied easily by main frame.
A further object of the present invention provides a kind of storage controller, in order to control store device effectively, is copied freely main frame with the data of avoiding memory storage to be stored.
The invention provides a kind of data guard method, during in order to the data in the host accessing memory storage data are protected.The method is at first differentiated main frame and is read purpose to what the data in the memory storage were carried out.Then, according to differentiating the result for the response of reading of reading two or more of main frame.
From another viewpoint, the invention provides a kind of data protection system, this system comprises main frame and memory storage.Wherein, memory storage comprises storage unit and storage controller.Storage unit system is in order to storing data, and storage controller is connected to storage unit.When main frame connected memory storage with access data, what storage controller differentiated that main frame carries out data was playback action or replication actions.When being judged to be playback action, memory storage continues to carry out playback action, to allow the host accessing data.When being judged to be replication actions, memory storage is carried out an interference program, is copied to main frame to prevent or to slow down data.
From another viewpoint, the invention provides a kind of external storage device, comprise connector, storage unit, and storage controller.Wherein, storage unit is divided into the first parking space and the second parking space at least, and the first parking space and the second parking space store respectively data.Storage controller is connected to connector and storage unit, when main frame is connected to external storage device when reading the data in the first parking space by connector, storage controller can be differentiated main frame to the purpose that reads of the data of the first parking space.When main frame is connected to external storage device when reading the data in the second parking space by connector, storage controller can directly allow reading of main frame and not differentiate main frame to the purpose that reads of the data of the second parking space.
From a viewpoint again, the invention provides a kind of storage controller, in order to the instruction of Receiving Host and the storage unit in the control store device.This storage controller comprises microprocessor unit, medium interface unit, host interface unit and data protection unit.Wherein, the medium interface unit is connected to microprocessor unit, with so that storage controller is connected to storage unit.Host interface unit is connected to microprocessor unit, with so that storage controller is connected to main frame.Data protection unit is connected to microprocessor unit, and when connecting memory storage with the data in the access memory cell at main frame, what differentiate that main frame carries out data is playback action or replication actions.When being judged to be playback action, memory storage continues to carry out playback action, to allow the host accessing data.And when being judged to be replication actions, memory storage is carried out an interference program, is copied to main frame to prevent or to slow down data.
Based on above-mentioned, the present invention links to each other with memory storage and then during wherein data of access, judges that the action of access data is playback action or the replication actions that belongs to general at main frame.If be judged as replication actions, then data are not sent to main frame or with utmost point data speed transmission slowly.Accordingly, improve the degree of difficulty of the data quick copy in the memory storage to main frame, and then reach the purpose of data protection.
For above-mentioned feature and advantage of the present invention can be become apparent, embodiment cited below particularly, and be described in detail below by reference to the accompanying drawings.
Description of drawings
Fig. 1 is the calcspar of the data protection system that provides of one embodiment of the invention.
Fig. 2 is the schematic diagram of one embodiment of the invention host computer, input-output unit and the external storage device that provide.
Fig. 3 is the calcspar of the storage controller that provides of another embodiment of the present invention.
Fig. 4 is the process flow diagram of the data guard method that provides of one embodiment of the invention.
Fig. 5 is differentiation host computer that one embodiment of the invention provide carries out playback action or replication actions to data process flow diagram.
Fig. 6 is differentiation host computer that another embodiment of the present invention provides carries out playback action or replication actions to data process flow diagram.
Fig. 7 is the process flow diagram of the data guard method that provides of another embodiment of the present invention.
Fig. 8 is the calcspar of the data protection system that provides of another embodiment of the present invention.
Fig. 9 is the process flow diagram of the data guard method that provides of another embodiment of the present invention.
The main element symbol description:
1000: data protection system; 1100: host computer system;
1110: host computer; 1112: CPU (central processing unit);
1114: storer; 1116: system bus;
1118: data transmission interface; 1150: input-output unit;
1200: external storage device; 1210: connector;
1220: storage controller; 1222: host interface unit;
1224: microprocessor unit; 1226: data protection unit;
1228: the medium interface unit; 1230: storage unit;
1202: mouse; 1204: keyboard;
1206: display; 1208: printer;
1212: Portable disk; 1214: memory card;
1216: solid state hard disc; 1220 ': storage controller;
3002: memory buffer; 3004: error correction unit;
3006: Power Management Unit; 8000: data protection system;
1231,1232,1235: parking space;
410~440: each step of the data guard method that one embodiment of the invention provide;
510~560: what the differentiation host computer that one embodiment of the invention provide carried out data is each step of playback action or replication actions;
610~640: what the differentiation host computer that another embodiment of the present invention provides carried out data is each step of playback action or replication actions;
710~760: each step of the data guard method that another embodiment of the present invention provides;
910~960: each step of the data guard method that another embodiment of the present invention provides.
Embodiment
Following embodiment is during in order to the data of explanation in host accessing one memory storage, and the difference of the action of how data being carried out according to main frame is made relative response, to reach the purpose of data protection.Wherein, main frame can be computer, mobile phone, multimedia player, sound equipment, hand-held mobile device, satellite positioning device (Global Positioning System; Referred to as: GPS) or the various main frames that possess music, image or other guide (such as e-book, electronic chart etc.) ability to play such as e-book, and memory storage is built in the memory storage of main frame inside in can being, or is external in the external storage device of main frame.
Fig. 1 is the calcspar of the data protection system that provides of one embodiment of the invention.As shown in Figure 1, data protection system 1000 comprises host computer system 1100 and external storage device 1200.For convenience of description, host computer system 1100 is take computer system as example in the present embodiment, comprises host computer 1110 and input and output (In put/Out put; Referred to as: I/O) device 1150, yet in other embodiments, host computer system 1100 included main frames also can be the various main frames that possess music, image or other guide (such as e-book, electronic chart etc.) ability to play such as mobile phone, multimedia player, sound equipment, hand-held mobile device, satellite positioning device (GPS) or e-book.In addition, though be to explain with external storage device 1200 in the present embodiment, yet in other embodiment, in be built in host computer system 1100 memory storage also belong to the category that the present invention protects.
Fig. 2 is the schematic diagram of one embodiment of the invention host computer, input-output unit and the external storage device that provide.In the present embodiment, host computer 1110 comprises CPU (central processing unit) (CentralProcessing Unit; Referred to as: CPU) 1112, storer 1114, system bus 1116 and data transmission interface 1118.Wherein, for instance, input-output unit 1150 can be mouse 1202, keyboard 1204, display 1206 and printer 1208 etc. shown in Figure 2, is not limited at this.
External storage device 1200 comprises connector 1210, storage controller 1220 and storage unit 1230.For instance, external storage device 1200 can be Portable disk 1212, memory card 1214 or solid state hard disc (Solid State Drive shown in Figure 2; Referred to as: SSD) 1216, external storage device 1200 also comprises the Portable disk of energy analog rom driver (CD ROM) and any memory storages that link to each other with host computer 1110 by external mode such as Portable disk of energy analog digital video disk driver (DVD ROM).
External storage device 1200 joins with host computer 1110 by connector 1210 and data transmission interface 1118.By this, but just data in the access memory cell 1230 of host computer 1110, or with data write storage unit 1230.In the present embodiment, connector 1210 is universal serial bus (Universal Serial Bus with the transmission interface kind of supporting of data transmission interface 1118; Referred to as: USB) interface.And in other embodiments, connector 1210 also can be advanced annex (the Serial Advanced TechnologyAttachment of sequence with the transmission interface kind of data transmission interface 1118; Referred to as: SATA) interface, Institute of Electrical and Electric Engineers (Institute ofElectrical and Electronic Engineers; Referred to as: IEEE) 1394 interfaces, high-speed peripheral component connecting interface (Peripheral Component Interconnect Express; Referred to as: PCI Express) interface, or save numeral (secure digital from damage; Referred to as: SD) any applicable interface such as interface, do not limited at this.
Storage unit 1230 for example can be short-access storage (NAND flash memory), in order to store such as file configuration table (File Allocation Table; Referred to as: the system data such as FAT), and storage is such as general data such as audio/video file, literal shelves.
Storage controller 1220 is connected to respectively connector 1210 and storage unit 1230.In the present embodiment, storage controller 1220 comprises host interface unit 1222, microprocessor unit 1224, data protection unit 1226 and medium interface unit 1228.Storage controller 1220, receives according to this host computer 1110 and transmits and next instruction and data, and data are back to host computer 1110 to be connected to host computer 1110 via connector 1210 by host interface unit 1222.In the present embodiment, host interface unit 1222 has USB interface, and in other embodiments, host interface unit 1222 also can be to meet SATA interface, IEEE 1394 interfaces, PCI Express interface, save the interface unit of numeral (SD) interface, other rapid memory card interfaces or other interface standards from damage.Yet what must specify is that host interface unit 1222, connector 1210 must adopt identical interface standard with data transmission interface 1118, just can carry out data transfer to each other.
In addition, storage controller 1220 is to connect storage unit 1230 by medium interface unit 1228, according to this storage unit 1230 is controlled.In the present embodiment, medium interface unit 1228 is the short-access storage interface unit.
As shown in Figure 1; host interface unit 1222, data protection unit 1226 and medium interface unit 1228 all are connected to microprocessor unit 1224; and microprocessor unit 1224 is main control units of storage controller 1220; in order to the element cooperative cooperatings such as host interface unit 1222, medium interface unit 1228 and data protection unit 1226, to carry out the various runnings of external storage device 1200.
In the present embodiment; when external storage device 1200 is connected to host computer 1110; and transmit the main frame reading command come and when the data in the storage unit 1230 are processed according to host computer 1110; what data protection unit 1226 will differentiate that host computer 1110 wishs carry out data is playback action or replication actions, and then makes corresponding response.In detail; only have when data protection unit 1226 judge that host computers 1110 carry out be playback action the time; host computer 1110 is just continued normally access data; otherwise in the situation that data protection unit 1226 judges that host computer 1110 is just carrying out replication actions; 1200 of external storage devices are not sent data; or with speed slowly data are sent to host computer 1110, protect accordingly the data in the storage unit 1230 can not copied to easily and rapidly host computer 1110.
In another embodiment of the present invention, the storage controller in the external storage device also comprises other functional module group.Fig. 3 is the calcspar of the storage controller that provides of another embodiment of the present invention, sees also Fig. 3.In storage controller 1220 '; except comprise host interface unit 1222, microprocessor unit 1224, data protection unit 1226 and medium interface unit 1228; also comprise in addition memory buffer 3002, error correction unit 3004, and Power Management Unit 3006.
In detail, memory buffer 3002 is connected to microprocessor unit 1224, in order to the temporary data that come from host computer 1110, or the temporary data that come from storage unit 1230.
Error correction unit 3004 is connected to microprocessor unit 1224, in order to carry out an error-correcting routine to guarantee the correctness of data.Specifically, when storage controller 1220 ' received main frame from host computer 1110 and writes instruction, error correction unit 3004 can produce corresponding error-correcting code (Error Correcting Code for the data writing that corresponding this main frame writes instruction; Referred to as; And this data writing will be write to storage unit 1230 in the lump with corresponding error-correcting code ECC).And when storage controller 1220 ' receives main frame reading command from host computer 1110, then can from storage unit 1230, read data and the error-correcting code thereof of corresponding this main frame reading command.At this moment, error correction unit 3004 can be proofreaied and correct the data execution error of reading according to this error-correcting code.
Power Management Unit 3006 is connected to microprocessor unit 1224, in order to the power supply of external storage device to be provided.
Get back to Fig. 1; in order further to illustrate after external storage device 1200 is connected to host computer 1110; the operation workflow of data protection system 1000 when the data of host computer 1110 access external storage devices 1200 below comes especially exemplified by another embodiment that the present invention will be described in more detail.Fig. 4 is the process flow diagram of the data guard method that provides of one embodiment of the invention, please consults simultaneously Fig. 1 and Fig. 4.
At external storage device 1200 with after host computer 1110 is connected, at first shown in step 410, host computer 1110 can be by assigning the mode of main frame reading command, to play or to copy the data in the storage unit 1230 that is stored in external storage device 1200 to external storage device 1200.
Then shown in step 420, what the data that the 1110 pairs of external storage devices 1200 of data protection unit 1226 meeting differentiation host computers in the storage controller 1220 are stored were carried out is playback action or replication actions.Wherein, what deserves to be explained is, after described playback action refers to that data that host computer 1110 is stored external storage device 1200 read to host computer 1110 herein, only these data are play, separately these data are not write to another Nonvolatile memory devices of non-this external storage device 1200, for example be stored in its hard disk (Hard Disk as an example of host computer example; Referred to as: HD) or among the flash memory, memory disk, after described replication actions refers to that then data that host computer 1110 is stored external storage device 1200 read to host computer 1110 herein, separately these data are write to another Nonvolatile memory devices of non-this external storage device 1200, wherein, another nonvolatile memory can be installed in this host computer 1110 or be external in this host computer 1110.In general, be controlled by host computer 1110 and when being in different use states, speed of its output data also has sizable gap when external storage device 1200.According to statistics, when the user utilizes host computer 1110 to play data in the external storage devices 1200, if what play is the data of MP3 compression standard file layout, the data rate of outflow of external storage device 1200 approximately is 24Kbyte/s so, and when playing the data of MP4 compression standard file layout, the data rate of outflow of external storage device 1200 then is about 125Kbyte/s.Yet with the data Replica in the external storage device 1200 during to host computer 1110, the data rate of outflow of external storage device 1200 can reach 8Mbyte/s easily the user.In other words, during the data of host computer 1110 in playing external storage device 1200, the flow velocity of external storage device 1200 output data will be much smaller than the user with the data Replica in the external storage device 1200 flow velocity during to host computer 1110.Therefore in the present embodiment, data protection unit 1226 is that what to judge that host computer 1110 carries out data at present according to the data stream output of external storage device 1200 is playback action or replication actions.
Fig. 5 is differentiation host computer that one embodiment of the invention provide carries out playback action or replication actions to data process flow diagram, that is, Fig. 5 is the further specifying of step 420 of Fig. 4.In this embodiment, the data stream output refers to data traffic mean value measured in a specified time interval.At first shown in step 510, data protection unit 1226 at first defines a flow velocity threshold value.Flow rate threshold can be a general preset value, or relevant with interface or the purposes of external storage device 1200.Suppose that external storage device 1200 special uses accord with the data of default file form with storage, data protection unit 1226 just can define flow rate threshold according to the kind of default file form so.For instance, if the data that meet MP3 compression standard file layout are deposited in external storage device 1200 special uses, flow rate threshold for example may be defined as 50Kbyte/s so, and in external storage device 1200 special uses when depositing the data that meet MP4 compression standard file layout, flow rate threshold then may be defined as 150Kbyte/s.If for example the transmission interface of external storage device 1200 is high-speed peripheral component connecting interface (PeripheralComponent Interconnect Express again; Referred to as: PCI Express) interface, or save numeral (Secure Digital from damage; Referred to as: SD) or small-sized fast (Compact Flash; Referred to as: CF) interface, then because the peak transfer rate of its standard is different, therefore the current difference distance also can be because the interface peak transfer rate has difference, therefore therefore the setting of flow velocity threshold also can change when data are carried out playback action or replication actions.But must it should be noted that, above-mentioned flow rate threshold only is the example of enumerating in order to illustrate, it can be 1Mbyte/s, also can be 300Kbyte/s etc., not in order to limit the scope of the invention.
After the definition flow rate threshold, then in step 520, data protection unit 1226 in specified time interval, when a sampling apart from the data stream output of measuring an external storage device 1200, distance when wherein specified time interval is greater than sampling.And shown in step 530, utilize all measured in specified time interval data stream outputs, calculate interior during this period of time mean flow rate.For instance, suppose specified time interval be when sampling in 2 seconds apart from being 0.1 second, data protection unit 1226 will calculate the mean value of 20 measured in these 2 seconds data discharges so.Specifically, in the present embodiment, host computer 1110 is after upper one host command that is sent to external storage device 1200 is finished, just can transmit again the host command that next wish is carried out, and should by the host command (or the corresponding command information of host command) of external storage device 1200 execution, then can be temporary in the memory element in the external storage device 1200 (such as memory buffer 3002).Wherein, but the data length that the kind (such as read or write) of the command information include instruction that has in this temporary host command or wish are processed.External storage device 1200 also can only be kept in the reading out data amount in the schedule time.And data protection unit 1226 every when sampling apart from the command information that will record according to this memory buffer 3002, calculate the data volume that exports during this period of time host computer 1110 to, thus when learning this sampling apart from interior data stream output.
Next shown in step 540, data protection unit 1226 judges that whether the mean flow rate that calculates is more than or equal to flow rate threshold in this section specified time interval.If mean flow rate is less than flow rate threshold, shown in step 550, what 1110 pairs of data of data protection unit 1226 judgement host computers were carried out is playback action so.If yet mean flow rate more than or equal to flow rate threshold, shown in step 560, what data protection unit 1226 judged that 1110 pairs of data of host computers carry out is replication actions.
It is worth mentioning that, mainly be to judge according to the speed of data output and the continuity of output in the present embodiment, and be not when finding that the data stream output is excessive, to judge that immediately data are replicated.Accordingly, even if just begun access data and when a large amount of reading out datas are used as play buffering once, also can get rid of the situation that it is regarded as copy data by each step shown in Figure 5 at host computer 1110.
In another embodiment; data protection unit 1226 is when judging that according to the data stream output of external storage device 1,200 1110 pairs of data of host computer are carried out playback action or replication actions, and the data stream output of institute's foundation also can refer at the measured data stream value of a specific time period.When data stream value during more than or equal to a preset value, what data protection unit 1226 judged just that 1110 pairs of data of host computer carry out is replication actions.For example, data protection unit carries out traffic statistics 1226 each second, and when data stream value during more than or equal to a preset value, what data protection unit 1226 judged just that 1110 pairs of data of host computer carry out is replication actions.
Get back to Fig. 4; when the result of determination of data protection unit 1226 is playback action; the action case of expression host computer 1110 usage datas is in this way in played data; therefore shown in step 430; external storage device 1200 continues to carry out this action, unceasingly the data in the storage unit 1230 is carried out access to allow host computer 1110.Next, the flow process of this data guard method will be got back to step 420, judge again that by data protection unit 1226 data are played or copy.
Yet when the result of determination of data protection unit 1226 was replication actions, shown in step 440, external storage device 1200 was namely carried out an interference program, was copied to host computer 1110 to prevent or to slow down data.In this embodiment, external storage device 1200 performed interference programs can comprise a message feedback to host computer 1110.Wherein, the message of feeding back can be (media alternative) message during medium is changed, datacycle redundancy check code (Cyclic RedundancyCheck; Referred to as: CRC) error message, error-correcting code (Error-Correcting Code; Referred to as: ECC) error message, read failed message or medium and do not have message etc.And host computer 1110 just can't be proceeded the action of data Replica after obtaining above-mentioned message feedback.
In another embodiment, external storage device 1200 performed interference programs for example can be to carry out an infinite loop and then make external storage device 1200 enter hook state.Under these circumstances, unless the user reconnects external storage device 1200 to host computer 1110, otherwise external storage device 1200 will no longer be accepted any data read-write operation.
In another embodiment, external storage device 1200 performed interference programs can be according to a very slow pre-set velocity data to be sent to host computer 1110.Thus, also can reach prevent data by quick copy to the purpose of host computer 1110.
In other embodiments; in order to prevent that the user from utilizing the low speed transmissions interface to come copy data; in case the data protection unit 1226 in the storage controller 1220 judges that the transmission interface kind of the connector 1210 of external storage device 1200 is USB interface; and meet the lower USB1.1 standard of transmission speed, external storage device 1200 just is not back to data host computer 1110.
Although above-described embodiment is just to distinguish data with the speed that data flow out merely to be read or be copied, yet such discriminant approach is not in order to limit the scope of the invention.In other words, other can differentiate that data read and the method for data Replica also is applicable to data protection system 1000.Fig. 6 is differentiation host computer that another embodiment of the present invention provides carries out playback action or replication actions to data process flow diagram; in this embodiment; when data protection unit 1226 to differentiate that 1110 pairs of data of host computer carry out be playback action or replication actions the time; at first shown in step 610; data protection unit 1226 according to the transmission interface kind between host computer 1110 and the external storage device 1200 (namely; connector 1210 and data transmission interface 1118 corresponding transmission interface kinds); define one first data volume and one second data volume, wherein the second data volume is greater than the first data volume.For example, when connector 1210 and data transmission interface 1118 corresponding transmission interface kinds were USB interface, the first data volume may be defined as 4KB, and the second data volume may be defined as 64KB.
Then in step 620, data protection unit 1226 judges that the data amount of reading of host computer 1110 requirements is near the first data volume or the second data volume.In detail; the data that host computer 1110 can come requirement external storage device 1200 to return in the storage unit 1230 by assigning the main frame reading command; because the data volume that simple playback action and replication actions once require also has sizable gap, so data protection unit 1226 just can be differentiated according to the desired data of the main frame reading command amount of reading.And should be noted that, can be that single reading command requires the data volume that reads as the data amount of reading of the basis for estimation of data protection unit 1226, also can be the mean value of the data volume that reads of a plurality of reading command decibel requirement.
If the difference between the data amount of reading and the first data volume is less than the difference between the data amount of reading and the second data volume; the expression data amount of reading is near the first data volume; therefore shown in step 630, what data protection unit 1226 judgement host computers 1110 carried out is playback action.
Otherwise; if the difference between the data amount of reading and the first data volume is greater than the difference between the data amount of reading and the second data volume; the expression data amount of reading is near the second data volume, therefore shown in step 640, what data protection unit 1226 judgement host computers 1110 carried out is replication actions.
What must again illustrate is, above-mentioned several embodiment is respectively the height that flows out speed according to the continuous data of external storage device 1200, and how much to differentiate data according to the data amount of reading that host computer 1110 once requires be to be read or to copy, yet these two kinds of discriminant approaches only are enforcement examples of the present invention, not in order to limit the scope of the invention.
It is worth mentioning that, because during the system data (for example file configuration table) of host computer 1110 in reading cells 1230, the flow velocity that the data rate that external storage device 1200 is back to host computer 1110 with data also can be higher than video-audio data when playing.For fear of erroneous judgement; as shown in Figure 7; when external storage device 1200 be connected with host computer 1110 and host computer 1110 access memory cells 1230 in data the time (step 710), data protection unit 1226 must judge at first whether the data of 1110 accesses of host computer belong to system data (step 720).If the data of at present access are system data; then do not carry out any judgement action; and allow unceasingly access data (step 730) of host computer 1110; and repeating step 720 is until the data of judging the access of present institute during the nonsystematic data, and what then data protection unit 1226 differentiated just that 1110 pairs of data of host computer carry out is playback action or replication actions (step 740).And because the step 740 of Fig. 7 is same or similar to step 440 with the step 420 of Fig. 4 to step 760, therefore do not repeat them here.Specifically, be stored in a predetermined logical address zone because system data can be preseted by the deviser, or learn the logical address zone that this system data stores by storage controller 1220 detectings.Therefore, whether be system data to the data protection unit 1226 in the storage controller 1220 if can differentiate it according to the logical address that data are accessed.In addition; because host computer 1110 is when being connected to external storage device 1200; usually can go ahead of the rest system information in the reading cells 1230; therefore in another embodiment; data protection unit 1226 can define first a surge time; the time that is connected to external storage device 1200 when host computer 1110 not yet surpasses above-mentioned surge time; then do not carry out first traffic monitoring; and in through after surge time, what data protection unit 1226 differentiated just that 1110 pairs of data of host computer carry out is playback action or replication actions.
Fig. 8 is the calcspar of the data protection system that provides of another embodiment of the present invention.The data protection system 8000 of Fig. 8 is roughly similar to the data protection system 1000 of Fig. 1; difference is that the storage unit 1230 in the external storage device 1200 is at least part of and is divided into a plurality of parking spaces, and each parking space corresponding flow velocity standard respectively.Do not limit the quantity of parking space at this, and in the present embodiment storage unit 1230 such as can being to be divided into parking space 1231, parking space 1232, parking space 1235 etc.
Thereby; when data protection unit 1226 is when being read or copying at the speed height that flows out continuously data according to external storage device 1200 to differentiate data, then can adopt according to the parking space at data place the flow rate threshold of corresponding flow velocity standard when judging.
In addition, because storage unit 1230 is divided into several parking spaces, thereby data protection system 8000 can be protected whole storage unit 1230 in one embodiment.And data protection system 8000 only can be protected specific parking space in another embodiment; the differentiation that has at least a parking space not do broadcast and replication actions is namely arranged in data protection system 8000; all reading requirement from host side all allow its reading out data; in data protection system 8000, have at least simultaneously another parking space to differentiate broadcast and replication actions according to above-mentioned method, and according to differentiating the result relative response is arranged.
Fig. 9 is the process flow diagram of the data guard method that provides of another embodiment of the present invention; at first shown in step 910; be connected to host computer 1110 at external storage device 1200; and after the data in host computer 1110 access memory cells 1230; then in step 920, data protection unit 1226 must judge first whether the data of 1110 accesses of host computer are positioned at the specific parking space of storage unit 1230.If the data of at present access are not positioned at specific parking space, just data protection unit 1226 can not carry out any judgement action so, and shown in step 930, host computer 1110 is allowed to unceasingly access data.Next; the flow process of this data guard method with repeated execution of steps 920 until what judge present access is when being positioned at the data of specific parking space; then just shown in step 940, what data protection unit 1226 differentiated that 1110 pairs of data of host computers carry out is playback action or replication actions.Because the step 940 of Fig. 9 is same or similar to step 440 with the step 420 of Fig. 4 to step 960, therefore do not repeat them here.
As shown in Figure 9, only have when the user is left data in the specific parking space of storage unit 1230 in by host computer 1110 accesses, the data protection unit 1226 in the storage controller 1220 just can be monitored the action with data protection.In other words, the user can select significant data is left in the specific parking space of storage unit 1230, to prevent other people random copy data.
Further; work as in one embodiment storage unit 1230 and be divided at least the first parking space (for example parking space 1231) and the second parking space (for example parking space 1232); and when the first parking space and the second parking space store data respectively; if host computer 1110 is connected to external storage device 1200 to read the data in the first parking space by connector 1210; data protection unit 1226 in the storage controller 1220 can be differentiated action, so differentiate 1110 pairs of the first parking spaces of host computer data read purpose.Yet; when host computer 1110 connect external storage device 1200 rear read be data in the second parking space the time; 1226 of data protection units in the storage controller 1220 can directly allow reading of host computer 1110, and can not differentiate the purpose that reads of the data of 1110 pairs of the second parking spaces of host computer.
That is to say, in the above-described embodiments, data protection system 8000 has at least one parking space that need not read the judgement of purpose, and the reading requirement of 1110 pairs of these parking spaces of host computer all will directly be allowed.Simultaneously; data protection system 8000 has at least one and need differentiate and read the purpose parking space; when host computer 1110 requires to read wherein data; what 1200 of external storage devices can carry out according to above-mentioned method judgement host computer 1110 is to play or replication actions, and makes corresponding response according to judged result.
In another embodiment; after data protection unit 1226 judges that 1110 pairs of data of host computer are carried out replication actions; external storage device 1200 performed interference programs can implement to stop (for example 5 seconds) after the predetermined interference time, thereby so that external storage device 1200 returns back to the state of being judged by data protection unit 1226.
In another embodiment; because being all, the broadcast of video-audio data reads continuously a tentation data length (such as 8Kbyte/s); the data length (such as 128Kbyte/s) that its data volume reads during less than copy data; therefore data protection unit 1226 can be detected the instruction that host computer 1110 is assigned; when the instruction of a continuous predetermined quantity is all reading command and each reading command is distinguished corresponding reading out data length all greater than a predetermined length; or the quantity of working as continuous reading command is distinguished corresponding reading out data length all greater than a predetermined length greater than predetermined quantity and each reading command; therefore data protection unit 1226 can judge that host computer 1110 is to carry out a replication actions, external storage device 1200 and then execution interference program.
In another embodiment, because the data volume that each reading command of video-audio data transmits is less, therefore the time of carrying out is shorter, so the number of times that reading command is assigned can be more within the unit interval.Therefore data protection unit 1226 can be detected the sum that host computer 1110 is assigned reading command; if the sum of the reading command within the unit interval (for example 0.1 second) is more than or equal to a predetermined value; then can judge the general playback action that is that host computer 1110 carries out; otherwise, then be replication actions.In another embodiment, data protection unit 1226 can be detected reading command sum that host computer 1110 assigns and the data amount of reading simultaneously to judge the action behavior of host computer 1110.In another embodiment; data protection unit 1226 can be within a schedule time (such as 1 second); judgement parameter in average each sub-schedule time (for example reading command sum, the data amount of reading etc.) decides the action behavior of host computer 1110.
What must again emphasize is that although above-mentioned several embodiment is that the present invention will be described with host computer and external storage device, the present invention is not limited thereto.In other embodiment, the various main frames that possess music, image or other guide (such as e-book, electronic chart etc.) ability to play such as mobile phone, multimedia player, sound equipment, hand-held mobile device, satellite positioning device (GPS) or e-book also belong to the category of main frame of the present invention, and memory storage is connected to the external storage device of main frame except comprising in external mode, build any memory storage in the main frame in also can being in.As long as main frame carries out access to the data in the memory storage, main frame the purpose that reads that data are carried out just can be differentiated out in advance so, and wherein discriminant approach for example can be to carry out according to the data stream output of memory storage.Then, according to the difference of differentiating the result and to main frame read employing at least two or more read response.For example, memory storage can be carried out an interference program according to differentiating the result, and then prevents from or slow down data being copied to main frame.
In sum, during the data of the present invention in the host accessing memory storage, what distinguish initiatively that main frame carries out data is general playback action or replication actions.If judge that data are replicated, just memory storage no longer is sent to main frame to data or the speed of the passback data that slow down, thus, guarantees that the data in the memory storage can't be copied to main frame easily and rapidly, and then reach the purpose of data protection.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (18)

1. a data guard method is protected described data during in order to the data in a host accessing one memory storage, it is characterized in that, described method comprises:
When described memory storage receives when processing from a main frame reading command of described main frame and to described data, by the included storage controller of described memory storage differentiate described main frame to the described data in the described memory storage carry out one to read purpose be a playback action or a replication actions, what differentiate wherein that described main frame carries out described data is that the step of described playback action or described replication actions comprises:
Define a flow velocity threshold value;
In a specified time interval every when sampling apart from measuring an once data stream output of described memory storage, wherein said specified time interval distance during greater than described sampling;
Utilization all measured data stream outputs in described specified time interval are calculated a mean flow rate; And
What judge that described main frame carries out according to the comparative result of described mean flow rate and described flow rate threshold is described playback action or described replication actions, if wherein described mean flow rate is less than described flow rate threshold, judge that then described main frame carries out described playback action to described data, if described mean flow rate, judges then that described main frame carries out described replication actions to described data more than or equal to described flow rate threshold; And
By described memory storage according to the described difference that reads purpose, adopt the different responses of reading for reading of described main frame, wherein when being judged to be described playback action, described memory storage continues to carry out described playback action, to allow the described data of described host accessing, but described main frame does not write described data another Nonvolatile memory devices beyond the described memory storage separately
When being judged to be described replication actions, described memory storage is carried out an interference program and is not sent described data or with speed slowly described data are sent, and is copied to described main frame to prevent or to slow down described data.
2. data guard method according to claim 1 is characterized in that, the step that wherein defines described flow rate threshold comprises:
Define described flow rate threshold according to the kind of a default file form or the transmission interface of described memory storage.
3. data guard method according to claim 1; it is characterized in that; one storage unit of wherein said memory storage is at least part of to be divided into a plurality of parking spaces; described a plurality of parking space is a corresponding flow velocity standard respectively; and described data be positioned at described a plurality of parking space one of them, and the step that defines described flow rate threshold comprises:
With described flow velocity standard corresponding to parking space that described data were positioned at as described flow rate threshold.
4. data guard method according to claim 1 is characterized in that, is before the step of described playback action or described replication actions what differentiate that described main frame carries out described data wherein, also comprises:
Store in the scheduled time slot the corresponding command information of at least one host command that described memory storage was carried out or described host command.
5. data guard method according to claim 4 is characterized in that, wherein said command information comprise at least following one of them: the kind of described host command, and the handled data length of described host command.
6. data guard method according to claim 1 is characterized in that, wherein said interference program comprises that feedback one message is to described main frame.
7. data guard method according to claim 6; it is characterized in that; wherein said message comprise at least following one of them: message, one read failed message, a datacycle redundancy check code error message, an error-correcting code error message during a medium was changed, and there is not message in a medium.
8. data guard method according to claim 1 is characterized in that, wherein said interference program comprises carries out an infinite loop to enter a hook state.
9. data guard method according to claim 1 is characterized in that, wherein said interference program comprises according to a pre-set velocity and transmits described data to described main frame.
10. data guard method according to claim 1 is characterized in that, the step that wherein said memory storage is carried out described interference program also comprises:
Within a predetermined interference time, carry out described interference program; And
When through after described predetermined interference time, continue to differentiate that described main frame carries out described data is described playback action or described replication actions.
11. data guard method according to claim 1 is characterized in that, described method also comprises:
Whether the described data of judging the access of described main frame institute belong to a system data; And
If described data do not belong to described system data, what carry out to differentiate then that described main frame carries out described data is the step of described playback action or described replication actions.
12. data guard method according to claim 11 is characterized in that, the step whether described data of wherein judging the access of described main frame institute belong to described system data comprises:
Logical address according to described data determines whether described system data.
13. data guard method according to claim 1 is characterized in that, described method also comprises:
Define a surge time; And
Through after described surge time, carrying out what differentiate that described main frame carries out described data is the step of described playback action or described replication actions.
14. data guard method according to claim 1 is characterized in that, described method also comprises:
Judge whether the described data of described main frame institute access are positioned at a specific parking space of a storage unit of described memory storage; And
If described data are positioned at described specific parking space, what carry out to differentiate then that described main frame carries out described data is the step of described playback action or described replication actions.
15. a data protection system is characterized in that, comprising:
One main frame; And
One memory storage comprises:
One storage unit is stored data; And
One storage controller is connected to described storage unit, and described storage controller comprises:
One microprocessor unit;
One medium interface unit is connected to described microprocessor unit, so that described storage controller is connected to described storage unit;
One host interface unit is connected to described microprocessor unit, so that described storage controller is connected to described main frame; And
One data protection unit is connected to described microprocessor unit, and in order to connect described memory storage at described main frame with access during the data in the described storage unit, what differentiate that described main frame carries out described data is a playback action or a replication actions,
Wherein said data protection unit defines a flow velocity threshold value; and in a specified time interval every when sampling apart from measuring an once data stream output of described memory storage; wherein said specified time interval distance during greater than described sampling; and utilization all measured data stream outputs in described specified time interval are calculated a mean flow rate; and what judge that described main frame carries out according to the comparative result of described mean flow rate and described flow rate threshold is described playback action or described replication actions; if wherein described mean flow rate is less than described flow rate threshold; judge that then described main frame carries out described playback action to described data; if described mean flow rate is more than or equal to described flow rate threshold; judge that then described main frame carries out described replication actions to described data
Described data protection unit adopts the different responses of reading according to the described difference that reads purpose for reading of described main frame,
Wherein when being judged to be described playback action, described memory storage continues to carry out described playback action, and allowing the described data of described host accessing, but described main frame does not write described data another Nonvolatile memory devices beyond the described memory storage separately,
Wherein when being judged to be described replication actions, described memory storage is carried out an interference program and is not sent described data or with speed slowly described data are sent, and is copied to described main frame to prevent or to slow down described data.
16. an external storage device is characterized in that, comprising:
A connector;
One storage unit, described storage unit are divided into one first parking space and one second parking space at least, and wherein said the first parking space and described the second parking space are stored respectively data; And
One storage controller is connected to described connector and described storage unit, described storage
Setup Controller comprises:
One microprocessor unit;
One medium interface unit is connected to described microprocessor unit, so that described storage controller is connected to described storage unit;
One host interface unit is connected to described microprocessor unit, so that described storage controller is connected to a main frame; And
One data protection unit is connected to described microprocessor unit,
When described main frame is connected to described external storage device when reading the described data of described the first parking space by described connector, described data protection unit can be differentiated described main frame to the purpose that reads of the described data of described the first parking space,
Wherein said data protection unit defines a flow velocity threshold value; and in a specified time interval every when sampling apart from measuring an once data stream output of described memory storage; utilization all measured data stream outputs in described specified time interval are calculated a mean flow rate; and judge that according to the comparative result of described mean flow rate and described flow rate threshold the described purpose that reads that described main frame carries out is a playback action or a replication actions; wherein said specified time interval distance during greater than described sampling; if described mean flow rate is less than described flow rate threshold; judge that then described main frame carries out described playback action to described data; if described mean flow rate is more than or equal to described flow rate threshold; judge that then described main frame carries out described replication actions to described data
Wherein said data protection unit is according to the described difference that reads purpose; adopt the different responses of reading for reading of described main frame; wherein when described when reading purpose and being described playback action; described memory storage continues to carry out described playback action; to allow the described data of described host accessing; but described main frame does not write described data another Nonvolatile memory devices beyond the described memory storage separately; when described when reading purpose and being described replication actions; described memory storage is carried out an interference program and is not sent described data or with speed slowly described data are sent; be copied to described main frame to prevent or to slow down described data
When described main frame is connected to described external storage device when reading the described data of described the second parking space by described connector, described data protection unit can directly allow reading of described main frame and not differentiate described main frame to the purpose that reads of the described data of described the second parking space.
17. external storage device according to claim 16 is characterized in that, also comprises:
One memory element is in order to store in the scheduled time slot the corresponding command information of at least one host command that described external storage device was carried out or described host command.
18. a storage controller in order to the instruction that receives a main frame and a storage unit of controlling a memory storage, is characterized in that, described storage controller comprises:
One microprocessor unit;
One medium interface unit is connected to described microprocessor unit, so that described storage controller is connected to described storage unit;
One host interface unit is connected to described microprocessor unit, so that described storage controller is connected to described main frame; And
One data protection unit; be connected to described microprocessor unit; in order to connect described memory storage at described main frame with access during the data in the described storage unit, differentiate described main frame to described data carry out one to read purpose be a playback action or a replication actions
Wherein said data protection unit defines a flow velocity threshold value; in a specified time interval every when sampling apart from measuring an once data stream output of described memory storage; utilization all measured data stream outputs in described specified time interval are calculated a mean flow rate; and what judge that described main frame carries out according to the comparative result of described mean flow rate and described flow rate threshold is described playback action or described replication actions; wherein said specified time interval distance during greater than described sampling; if described mean flow rate is less than described flow rate threshold; judge that then described main frame carries out described playback action to described data; if described mean flow rate is more than or equal to described flow rate threshold; judge that then described main frame carries out described replication actions to described data
Described data protection unit adopts the different responses of reading according to the described difference that reads purpose for reading of described main frame,
Wherein when being judged to be described playback action, described memory storage continues to carry out described playback action, and allowing the described data of described host accessing, but described main frame does not write described data another Nonvolatile memory devices beyond the described memory storage separately,
Wherein when being judged to be described replication actions, described memory storage is carried out an interference program and is not sent described data or with speed slowly described data are sent, and is copied to described main frame to prevent or to slow down described data.
CN 200910175153 2009-09-23 2009-09-23 Data protection method and system, external storage device and storage device controller Active CN102023934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910175153 CN102023934B (en) 2009-09-23 2009-09-23 Data protection method and system, external storage device and storage device controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910175153 CN102023934B (en) 2009-09-23 2009-09-23 Data protection method and system, external storage device and storage device controller

Publications (2)

Publication Number Publication Date
CN102023934A CN102023934A (en) 2011-04-20
CN102023934B true CN102023934B (en) 2013-03-27

Family

ID=43865251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910175153 Active CN102023934B (en) 2009-09-23 2009-09-23 Data protection method and system, external storage device and storage device controller

Country Status (1)

Country Link
CN (1) CN102023934B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521168A (en) * 2011-12-16 2012-06-27 中颖电子股份有限公司 Data anti-copy method for storage card
CN109388916A (en) * 2017-08-04 2019-02-26 北京酷我科技有限公司 A kind of processing method and system of song data
KR20200015185A (en) * 2018-08-03 2020-02-12 에스케이하이닉스 주식회사 Data storage device and operating method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1292922A (en) * 1998-11-02 2001-04-25 松下电器产业株式会社 Recording/reproducing apparatus, program recorded medium, recorded medium, cache device and transmitter
CN1343932A (en) * 2000-09-19 2002-04-10 Agc科技股份有限公司 Method and appts. for preventing illegal copying digit, data
CN1698040A (en) * 2003-03-24 2005-11-16 索尼株式会社 Information recording medium, information processing device, information processing method, and computer program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1292922A (en) * 1998-11-02 2001-04-25 松下电器产业株式会社 Recording/reproducing apparatus, program recorded medium, recorded medium, cache device and transmitter
CN1343932A (en) * 2000-09-19 2002-04-10 Agc科技股份有限公司 Method and appts. for preventing illegal copying digit, data
CN1698040A (en) * 2003-03-24 2005-11-16 索尼株式会社 Information recording medium, information processing device, information processing method, and computer program

Also Published As

Publication number Publication date
CN102023934A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
KR102580820B1 (en) Data storage device and operating method thereof
CN102929748B (en) Data back up method and device
KR102020466B1 (en) Data storage device including a buffer memory device
US8606970B2 (en) Data writing method for non-volatile memory, and controller and storage system using the same
US9424177B2 (en) Clock switching method, memory controller and memory storage apparatus
TW201314455A (en) Memory storage device, memory controller, and temperature management method
TWI420308B (en) Block management method, memory controller and memory storage apparatus
CN107179877B (en) Data transmission method, memory control circuit unit and memory storage device
JP5037734B2 (en) Data protection method and system, storage device, and storage device controller
US20110202780A1 (en) Data writing method for non-volatile memory, and controller and storage system using the same
CN103035282A (en) Memory storage device, memory controller and temperature management method
CN103389948A (en) Device and method for managing memorizer and electronic device
CN107844165A (en) Hard disk hot-plug realization device
US9324444B2 (en) Data storage device
CN102023934B (en) Data protection method and system, external storage device and storage device controller
CN112951298A (en) System and method for reducing stable threshold Voltage (VT) read disturb degradation
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
US9146861B2 (en) Memory address management method, memory controller and memory storage device
CN116235138A (en) Data reading method and related device applied to solid state disk SSD
CN102543184B (en) Memorizer memory devices, its Memory Controller and method for writing data
CN102200890B (en) Storage device for generating virtual disk-recording driver and method thereof
CN103399783A (en) Storage method and device of mirror image documents of virtual machines
CN104461754B (en) A kind of method and apparatus for monitoring eMMC
CN102236606B (en) Storage device, memory controller and data protection method
CN103064803B (en) A kind of data read-write method of NAND Flash storage device and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant