The M2M System Architecture
The M2M System Architecture
1. M2M Device
Machine with embedded cellular/serial module
Machine with embedded cellular/serial module
➔ 2. Communication Network
Cellular GSM, Satellite, or Private Radio ➔
Cellular GSM, Satellite, or Private Radio ➔
3. M2M Gateway
Translates protocols
Translates protocols
➔ 4. Central Server
Dedicated application server
Dedicated application server
Explanation
- A field device gathers a reading and may pass it through a gateway.
- A communication network delivers it to the service that interprets it.
M2M vs. IoT Paradigm Shift
M2M vs. IoT Paradigm Shift
M2M (Isolated Point-to-Point)
Private networks, company-specific protocols, hardware-focused, point-to-point connection.
IoT (Open Cloud Ecosystem)
Open Internet protocols (IP/MQTT), cloud-based, software-focused, works across different brands.
Explanation
- M2M connects machines for a specific exchange.
- An IoT service can reuse and combine those exchanges across applications.
SDN Architecture: Decoupling the Brain from the Muscle
SDN Architecture: Decoupling the Brain from the Muscle
Application Layer
IoT Network Apps, Security Policies, Firewalls
IoT Network Apps, Security Policies, Firewalls
➔ Northbound API (REST) ➔
Control Layer (The Brain)
Central Software SDN Controller (e.g. OpenDaylight, ONOS)
Central Software SDN Controller (e.g. OpenDaylight, ONOS)
➔ Southbound API (OpenFlow) ➔
Infrastructure Layer (Data Plane / Muscle)
Hardware switches & routers that forward packets
Hardware switches & routers that forward packets
Explanation
- Applications express network needs to a controller.
- The controller installs forwarding rules in devices that handle the packets.
ETSI NFV Architectural Framework
ETSI NFV Architectural Framework
1. VNFs (Software Functions)
Virtual Firewall, Virtual IoT Gateway, Virtual Router
Virtual Firewall, Virtual IoT Gateway, Virtual Router
⬆ Runs On Top Of ⬆
2. NFVI (Infrastructure)
Standard Servers (Compute, Storage) + Hypervisors / Docker
Standard Servers (Compute, Storage) + Hypervisors / Docker
➔ Managed By ➔
3. NFV MANO
Management and Orchestration Software
Management and Orchestration Software
Explanation
- Virtual network functions run on compute, storage and network infrastructure.
- Management and orchestration arrange their deployment and lifecycle.
SDN and NFV Complementary Partnership
SDN and NFV Complementary Partnership
Software-Defined Networking (SDN)
Separates the Control Plane (Brain) from the Data Plane (Muscle).
Focuses on smart traffic routing and forwarding.
Focuses on smart traffic routing and forwarding.
Network Function Virtualization (NFV)
Moves Network Functions from dedicated hardware boxes to virtual software on servers.
Focuses on firewalls, gateways, and load balancers.
Focuses on firewalls, gateways, and load balancers.
Explanation
- NFV runs network functions such as firewalls in software.
- SDN controls the paths that can steer traffic through those functions.
Edge Storage vs. Cloud Storage Spectrum
Edge Storage vs. Cloud Storage Spectrum
Local (Edge / Gateway) Storage
Stores data directly on microcontrollers (MicroSD), Raspberry Pi, or local computers.
Zero delay, works 100% offline, limited storage space.
Zero delay, works 100% offline, limited storage space.
Cloud-Based Storage
Sends data to cloud servers (AWS, Azure, Google Cloud).
Virtually unlimited storage, global app access, requires active Internet.
Virtually unlimited storage, global app access, requires active Internet.
Explanation
- Edge storage can keep a device working during a disconnection.
- Cloud storage combines readings from many sites for later analysis.
Database Engines for IoT
Database Engines for IoT
Traditional Relational (RDBMS)
Rigid tables and columns, heavy locking.
Gets slow and crashes under millions of simultaneous sensor writes per second.
Gets slow and crashes under millions of simultaneous sensor writes per second.
NoSQL & Time-Series Databases
Flexible JSON format, distributed clusters, easily handles millions of continuous writes per second.
Explanation
- A time-series database organises readings by time and device.
- Other stores organise records by key, document or relationships for different queries.
Essential Functions of an IoT Cloud Platform
Essential Functions of an IoT Cloud Platform
1. Device Registry & Identity
Registers every device with a unique ID and security certificate so hackers cannot send fake data.
2. Message Broker (Gateway)
A high-speed MQTT/HTTPS server capable of receiving millions of sensor messages per second.
3. Rules Engine
Checks incoming readings using simple rules (e.g.
IF temperature > 50°C THEN send SMS alert).4. Device Shadow / Device Twin
Maintains a virtual JSON copy of the physical device's state in the cloud 24/7.
Explanation
- A platform registers devices and authenticates incoming traffic.
- Routing, storage and processing make the readings available to applications.
The Device Shadow Architecture
The Device Shadow Architecture
Physical Smart Bulb
Reported State: {"light": "ON"}
Reported State: {"light": "ON"}
➔ Cloud Device Shadow (JSON)
Stores Reported & Desired States ➔
Stores Reported & Desired States ➔
User Mobile App
Sets Desired State: {"light": "OFF"}
Sets Desired State: {"light": "OFF"}
Explanation
- A shadow keeps reported device state and a desired state in the cloud.
- After reconnecting, the device can reconcile differences and report its new state.