IoT data flow: from sensor to cloud and back
Short answer: A reference architecture paper splits IoT data flow into three steps: collection, processing, and acting on the world. In its cloud layer, data takes a stream path for data in motion and a stored path for data at rest. Digi, a vendor, describes four stages from sensors to the cloud, and says processes also send instructions in the other direction.
How IoT data flows from sensors through gateways to the cloud: collection, filtering, the stream and stored paths, and commands that travel back to devices.
This article covers the steps data takes from a sensor to an application, the difference between data in motion and data at rest, where filtering happens, the two cloud paths, and the return path for commands It does not cover a choice of gateway, broker or cloud product, the message format of a specific protocol, or the cost of moving data
Data flow is the route a reading takes from a sensor to the place it is used, and the route a command takes back. This guide sets out the steps two sources give for that route, where data is filtered, and where it is stored. For the full stage list from device to dashboard, see the IoT data pipeline guide.
Three steps
The reference architecture paper, “Internet of Things: System Reference Architecture” (arXiv 2204.01872), describes a functional view “with focus on data flows and types of processing from capture to output actions.” It names three steps: “data collection, processing, and acting upon the world based on the outcomes.”
Digi, a vendor, lists four stages in order: sensors and actuators, internet gateways and data acquisition systems, pre-processing at the edge, and in-depth analysis in the cloud or a data center. Its first stage is sensors and actuators.
Filtering before transmission
Digi says the data acquisition system “collects raw data from the sensors and converts it from analog into digital format.” It also says the data is “filtered and compressed to an optimum size for transmission.”
The reference paper says data-acquisition modules usually do the filtering: “Data-acquisition modules usually perform the preliminary analysis and filtering to determine what to do with each particular data item or stream.” It then says that based on data values and the processing rules in effect, “data may be routed directly to applications, stored, or discarded.”
Data in motion and data at rest
The paper says data can be “processed as they arrive, stored for subsequent reference and analysis, or both.” It also says that, depending on the age of the data an application retrieves, the data is “often referred to as data in motion and data at rest.”
The cloud side: two paths
The paper describes two parallel paths in the cloud, “Stream data processing and storage”. Some data goes through only one path. Some goes through both, to be processed as a stream and stored for batch processing. The paper says the two paths “are sometimes referred as the data in motion, for streaming data, and the data at rest for stored items in the database”.
It notes that this “dual-path design is sometimes referred to as the lambda architecture.”
For stored data, the paper says “IoT data and events ingested from the edge sources can be stored for batch processing and archival purposes such as the long-term comparisons or auditing.” It adds that “Computationally intensive applications, such as ML and AI, often work with large collections of data in the batch mode”.
Time stamps travel with the data
The paper says “IoT measurements and events are commonly marked with time stamps at capture or as close as possible to their point of origin.” It also says “Time stamps are used for data correlation and access and need to be stored in the database.” Data can also carry metadata: “loosely structured key, value pairs that need to be stored and retrievable with or in conjunction with the related sensor readings and events.”
Commands travel back
Commands also flow back down to devices. Digi says processes also send data “in the other direction in the form of instructions”. The reference paper’s edge layer includes a smart thing “with a sensor and actuator”.
Where the sources stop
The reference paper is general. It calls itself “a template and a starting blueprint for constructing specific IoT system solutions.” The passages checked give no figures for data rates, payload sizes or costs, and the reference paper reports no tests. A flow that suits one site still has to be checked against that site’s volume and links.
Common questions
What are the steps in an IoT data flow?
The reference architecture paper highlights three key steps: data collection, processing, and acting upon the world based on the outcomes.
What is data in motion and data at rest?
The paper says that depending on the age of data an application retrieves, the data is often referred to as data in motion and data at rest. Stream processing works on data in motion, and stored data is used for later processing.
Where is data filtered?
The paper says data-acquisition modules usually perform the preliminary analysis and filtering. Digi says data is filtered and compressed to an optimum size for transmission.
Do commands travel back to devices?
Digi says processes in the IoT architecture also send data in the other direction in the form of instructions, and the reference paper lists actuators among the devices in the system.
Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.