คลาวด์และบริการข้อมูล IoT
Edge–cloud architecture, APIs, time-series databases and data security
Overview
A single drone can report dozens of values every second: position, altitude, battery voltage and sensor health. Once an organisation runs several drones, docking stations and ground sensors, all of this data has to reach one place, be stored in an orderly way, appear on a dashboard, and stay out of reach of people without permission. This unit maps four topics of cloud IoT data services: the edge-to-cloud architecture, data channels and APIs, time-series databases, and data security. Hands-on detail lives in the lessons linked at the end.
IoT (Internet of Things) means systems in which many devices measure, send data and receive commands over a network. Cloud computing, as defined in NIST SP 800-145, is shared computing capacity reached over a network, provisioned on demand by the user and paid for by measured use.
Edge-to-cloud architecture
A drone IoT system has four layers, much like a postal system with senders, a local post office, a sorting centre and recipients.
- Devices, such as the flight controller, a water-level sensor or a dock camera, with limited power and computing.
- Edge: computers close to the data source, such as the companion computer, the ground-station laptop or a field gateway. They filter, compress and convert data before forwarding it. NIST SP 500-325 describes a closely related idea as fog computing.
- Cloud: collects data from every site, stores it long term and runs analysis.
- Applications: control-room dashboards, alerting and reports.
The key design question is which job belongs in which layer. Anything that must react within a fraction of a second, such as obstacle avoidance, stays on the aircraft. Raw data too large for the field link, such as tens of gigabytes of imagery, is processed at the edge and only the results travel on. Work that combines many sources or needs long history, such as monthly fleet statistics, suits the cloud. Sensitive material, such as imagery of people, may stay on the organisation's own network, with only releasable products going to a public cloud.
Cloud services come in three levels. With IaaS you rent virtual machines and install everything yourself; with PaaS you deploy code onto a platform whose servers the provider runs; with SaaS you use finished software in a browser. Higher levels mean less maintenance but less control.
Data channels and APIs
- Push: the device sends a message whenever it has new data. MQTT is the usual choice. Devices publish to a topic such as
fleet/drone3/batteryon a broker, and every subscriber to that topic receives the message at once. This fits telemetry and alerts. - Request/response: one program asks and waits for the answer. The most common form is an HTTP API using the semantics of RFC 9110, for example
GETto read andPOSTto create a record, usually carrying JSON. It fits tasks that are not time-critical, such as listing past flights or uploading a mission plan.
An API (Application Programming Interface) is the agreement on how outside programs may read data or give commands: which address to call, what format to send and what comes back. A well-designed API states the unit of every value, carries a version such as /api/v1/ so it can evolve without breaking older clients, and returns clear status codes.
Polling multiplies load by viewers times devices. Three dashboards asking for the status of 5 drones every second make 900 requests a minute, even though most answers have not changed. Subscribing to pushed messages is far cheaper for live data.
Time-series databases
A time series is a value measured repeatedly over time, with a timestamp on every row, such as battery voltage every 0.1 s. A time-series database is built for this pattern: very fast appends, efficient queries by time range, and built-in aggregation such as one-minute averages.
- Tags identify groups, such as aircraft ID or mission ID. Keep the number of distinct values modest.
- Fields are the measured values, such as voltage, altitude or temperature, each with an agreed unit.
- Downsampling keeps full-rate data for a short period and stores per-second or per-minute summaries for the long term.
- Retention policies set how long each level is kept before deletion, in line with the organisation's data policy.
Record timestamps in UTC and note the time source. Devices rarely agree on local clock time, and merging several drones by their own clocks can put events in the wrong order.
Example: sizing fleet telemetry storage
Assume 5 drones, each sending telemetry 10 times per second, about 60 bytes per stored row (assumed), 6 flight hours a day and 22 working days a month.
- Data rate: 5 × 10 × 60 = 3,000 bytes per second.
- Per hour: 3,000 × 3,600 = 10.8 MB.
- Per day: 10.8 × 6 = 64.8 MB.
- Per month: 64.8 × 22 ≈ 1.43 GB.
If the 10 Hz data is kept for only 30 days for incident investigation and a 1 Hz version is kept long term, the long-term store grows by only about 0.14 GB a month. Numbers like these let you estimate service cost and set retention before the system goes live.
Data security
Drone data can include coordinates of important sites, images of people and aircraft commands. Think in terms of CIA: Confidentiality (only authorised people see it), Integrity (no unauthorised changes) and Availability (usable when needed). Baseline controls for cloud IoT:
- Encrypt in transit with TLS on every channel, MQTT and API alike.
- One identity per device, so a lost aircraft's credential can be revoked on its own.
- Least privilege: drone 3 may write only to its own topics; dashboards may only read.
- No secrets in code: use environment variables or a secrets manager.
- Log and monitor every access, matching the Detect and Respond functions of NIST CSF 2.0.
- Back up and test restores to protect availability.
When buying IoT devices or drones that connect to a vendor cloud, check the manufacturer's security activities against NIST IR 8259 Rev. 1, such as software updates and a channel for reporting vulnerabilities, and find out where the data is stored and who can reach it. Legal duties for personal data are covered in the law courses.
Common pitfalls
- Uploading all raw data without doing the arithmetic. Field links are slower than expected and cloud cost grows with volume.
- Exposing a broker or API to the internet without encryption and authentication.
- One shared account for every device. A single leak compromises the whole fleet.
- Timestamps from unsynchronised local clocks, which scramble event order.
- Dashboards that hide data age, so operators act on stale values.
- No retention policy, so data piles up, raising both cost and exposure.
Continue in the lessons
- UAT 105 Module 4: MQTT and IoT: topic design, QoS, Mosquitto set-up and data age under queueing.
- UAT 105 Module 5: Cloud, edge and basic data security: the NIST cloud definition, edge-or-cloud decisions, HMAC and NIST CSF 2.0.
- UAT 454 Module 7: Integrating cameras, sensors, communications and control centres: linking alarms, cameras and drones to a control room.
Key references
- Mell, P., & Grance, T. (2011). The NIST definition of cloud computing (NIST SP 800-145). National Institute of Standards and Technology. link
- Iorga, M., Feldman, L., Barton, R., Martin, M. J., Goren, N., & Mahmoudi, C. (2018). Fog computing conceptual model (NIST SP 500-325). National Institute of Standards and Technology. link
- OASIS. (2019). MQTT version 5.0 (OASIS Standard, 7 March 2019). link
- Fielding, R. (Ed.), Nottingham, M. (Ed.), & Reschke, J. (Ed.). (2022). HTTP semantics (RFC 9110). RFC Editor. link
- National Institute of Standards and Technology. (2024). The NIST cybersecurity framework (CSF) 2.0. link
- Fagan, M., Megas, K., Cuthill, B., Marron, J., & Hoehn, B. (2026). Foundational cybersecurity activities for IoT product manufacturers (NIST IR 8259 Rev. 1). National Institute of Standards and Technology. link