The application relates to the technical field of data storage and
distributed information processing, in particular to a decentralized storage and distributed storage
system, which comprises the following steps: a
system receives sensor data, generates basic fields such as device identification, a
timestamp, a sampling value and a
data type, judges and outputs a data state mark according to the change amount of adjacent sampling values and a historical fluctuation threshold, splices the state mark, the device identification and the
timestamp into a routing code, and generates a
content identifier through hash calculation, shunts according to the state mark, writes normal data into a first
storage area and writes abnormal data into a second
storage area, for the abnormal data, the
system takes the
timestamp as the center, backtracks to search for normal data in a time window and establishes a pointer association, and comprehensively checks the uniqueness of the identifier, the consistency between fields and the writing sequence of the data, so that the
processing is accurate; and the application facilitates quick retrieval of
context data before and after an abnormal event.