IoT Technologies · SYCS · Lecture 2

IoT vs M2M, and how IoT is built in layers

From machines that talk in pairs to systems with a floor plan
Nishant Vibhute
Module 1 · Introduction to IoT
Room code IOT2
Recap · Lecture 1

Last class in three questions: answer, then flip

Question 1
What are the four steps of the IoT loop?
Answer
Sense → send → decide → act, and then repeat.
Question 2
Name any four characteristics of IoT.
Answer
Connectivity, unique identity, sensing, intelligence, self-configuring & dynamic, interoperable & scalable.
Question 3
Who coined the term "Internet of Things", and when?
Answer
Kevin Ashton, in 1999, while working on RFID.

Ask a student to answer aloud, then click the card to check.

Today's plan

By the end of today, you can…

1️⃣ Define M2M and give two examples
2️⃣ Give five differences between IoT and M2M
3️⃣ Explain what an IoT architecture is and why we need one
4️⃣ Draw and explain the three-layer architecture
5️⃣ Draw and explain the five-layer architecture
🎯 Course outcome OC 1: design and architecture of IoT systems

Syllabus link: Module 1 → Introduction to IoT: IoT vs M2M, IoT Architectures (Three-layer, Five-layer).

Hook story

Raju's ATM and Riya's smart bulb both "talk". Are both IoT?

🏧 Raju withdraws ₹500.
The ATM sends his card and PIN to one bank server over a private line. The server says "OK". The ATM gives cash. That is all it ever does.
💡 Riya is in college.
From her phone she switches off the bulb at home. Its data goes to the cloud; a voice assistant, an energy app and her mother's phone can all use it.
🤔 Think: both are machines sending data. What is different?
The ATM is M2M: one machine, one partner, one job. The bulb is IoT: many things, the internet and cloud, many apps and people. Today: the difference, and how IoT systems are built in layers.
Part A · M2M

M2M: two machines talk directly, without a person

M2M (machine-to-machine) means one machine sends data straight to another machine to do one fixed job.
  • Usually point-to-point: device talks to one server.
  • Links: SMS, cellular, wired lines or private networks.
  • Built for one purpose, often by one company.
  • Data stays inside that system.
Lift alarm: when a lift in your building stops between floors, its controller sends an automatic SMS to the maintenance company's server.
🛗Machine A: lift 🖥️Machine B: server direct link (SMS / cellular) "STUCK" One partner · one job · no human in between
Part A · M2M

IoT grew out of M2M by adding the internet and the cloud

M2M is the older, narrower idea. IoT keeps M2M links but adds the internet, cloud and many apps.
  • M2M: one device → one server, one job.
  • IoT: many things → cloud → many apps and people.
  • Most books treat M2M as a subset of IoT.
Electricity meter, then and now: an old meter only sent monthly readings to the power company (M2M). A smart meter also feeds your app, live usage graphs and outage alerts (IoT).
IoT ☁️ cloud📱 many apps🌐 internet👥 people M2Mdevice ↔ server M2M is a part (subset) of IoT
Part A · IoT vs M2M

IoT vs M2M: seven differences for the exam

M2M is a private phone line between two machines; IoT is a WhatsApp group of things, apps and people.
BasisM2MIoT
CommunicationPoint-to-point, device to one serverMany things to the cloud and many apps
InternetOften not needed (SMS, private lines)Usually needed (internet and IP)
ProtocolsOften non-IP or company-specificOpen IP-based: HTTP, MQTT, CoAP
ScaleLimited number of devicesVery large: millions of things
Data useOne application uses itShared by many apps via the cloud
IntegrationClosed "silo" for one jobOpen; different makers work together
FocusHardware and the device linkSoftware, data and services for people
Activity · Sort it

M2M or IoT? Sort these eight systems

Ask: one machine, one partner, one job → M2M. Internet + cloud + many apps or people → IoT. Click an item, then a box (or drag).
🏧 ATM ↔ bank server
💡 Bulb controlled from a phone app
🥤 Vending machine SMSes the supplier
⌚ Fitness band → cloud dashboard
🛗 Lift sends a fault SMS
🅿️ City parking app with live free slots
🚛 Old truck tracker texts its GPS to the depot
🏠 Voice assistant runs bulbs of three brands

🔁 M2M

🌐 IoT

☕ Interactive break

Myth or fact? Vote with your hands, then flip

Myth or fact?
"M2M is dead — IoT has replaced it."
Myth ❌
M2M is still everywhere: ATMs, lifts, meters. IoT builds on M2M links.
Myth or fact?
"An IoT system can contain M2M communication."
Fact ✅
A sensor talking to its gateway is M2M. IoT adds the internet, cloud and apps around it.
Myth or fact?
"If it uses a SIM card, it must be IoT."
Myth ❌
A SIM is just a link. An old truck tracker with a SIM that texts one depot is M2M.

Click a card to flip it. Who got all three right?

Part B · IoT architecture

An architecture is the floor plan of an IoT system

An architecture splits an IoT system into layers. Each layer has one job and passes its work to the next.
  • Architecture: the overall plan of parts and links.
  • Layer: a group of parts doing one job.
  • Layers let teams build, fix and upgrade separately.
  • Data usually flows bottom to top; commands flow down.
College canteen: the counter takes your order, a runner carries the slip, the kitchen cooks and serves. Each "layer" does one job.
If the dosa is late, you can check one layer at a time: was the order taken? carried? cooked?
🧾 Counter — takes in what customers want (collect)
🏃 Runner — carries the order slip to the kitchen (carry)
🍳 Kitchen & serving — cooks and gives you the dish (use)
Part C · Three-layer architecture

Three layers: perception, network, application

The simplest IoT plan: sense things (perception), carry the data (network), use it (application).
  • Perception: sensors and actuators touch the real world.
  • Network: moves data using Wi-Fi, 4G/5G, gateways.
  • Application: apps and services people actually use.
  • Data rises bottom → top; commands come back down.
Smart farm: a soil sensor reads "dry" (perception), a 4G gateway sends it (network), the farmer's app shows "Water field 3" (application).
1 · Perception🌱 soil sensor, 📷 camera, RFID 2 · Network📶 Wi-Fi, 4G/5G, Bluetooth, gateway 3 · Application📱 farmer's app, dashboard, alerts data flows up
Part C · Layer 1

Perception layer: the eyes, ears and hands of IoT

The perception layer is where IoT touches the real world: it measures, identifies and acts.
  • Sensors measure: temperature, light, motion, moisture.
  • Actuators act: motors, relays, valves, buzzers.
  • Identifiers name things: RFID tags, barcodes, QR codes.
  • Also called the sensing or physical layer.
FASTag lane: the RFID tag on the windscreen and the reader above the lane form the perception layer; the barrier motor is the actuator.
🌡️ Sense
Temperature, humidity, light, gas sensors
🏷️ Identify
RFID tags and readers, barcodes, QR
⚙️ Act
Motors, relays, valves, buzzers
📷 Capture
Cameras, microphones, GPS receivers
Rule of thumb: if you can touch it in the field, it is usually perception.
Part C · Layers 2 & 3

Network carries the data; application makes it useful

The network layer is the road for data; the application layer is the shop where people get the service.
  • Network: Wi-Fi, Bluetooth, Zigbee, 4G/5G, Ethernet.
  • Gateways join small local networks to the internet.
  • Application: apps, dashboards, alerts, voice assistants.
  • One network can serve many applications.
Smart home: sensors talk to a hub over Zigbee, the hub reaches the internet over Wi-Fi (network), and you see everything in one app (application).
3 · Application
🏠 smart home · ❤️ smart health · 🌾 smart farming · 🏙️ smart city
2 · Network
📶 Wi-Fi · 🔵 Bluetooth · 🐝 Zigbee · 📡 4G/5G · 🔌 Ethernet · 🚪 gateway
🛣️ Same road, many shops: one city network can carry data for parking, street lights and bins.
📊 Poll · Quick check

Which layer does this belong to?

🌡️ A temperature sensor in a cold-storage room for vegetables measures the air every minute.

Think for 20 seconds, vote with fingers (1–4), then click an option.

Activity · Build the stack

Put each part into its layer

Ask: does it touch the world (perception), carry data (network) or serve a person (application)?
🌱 Soil moisture sensor
📶 Wi-Fi router
📱 Farmer's mobile app
🏷️ RFID reader
📡 4G gateway
📊 Smart-home dashboard
⚙️ Relay switching a pump
🔵 Bluetooth link
🔔 SMS alert service

1 · Perception

2 · Network

3 · Application

☕ Interactive break · What would you do?

The parking app says "slot free", but a car is parked there

You run the mall's smart parking. A technician checks on site: the slot's sensor correctly reads "occupied". Where do you look next? Click one.
Part D · Five-layer architecture

Three layers hide two big jobs: processing and business

The five-layer model splits out data processing and adds a business layer on top.
  • Three-layer: good for basics, too simple for products.
  • Who stores and analyses the data? → processing.
  • Who earns money and sets rules? → business.
  • "Network" is renamed transport.
Food-delivery app: GPS and the network are not enough — servers must process lakhs of orders, and the company must decide pricing. Those are the extra layers.
3-layer 5-layer Application Network Perception Business Application Processing Transport Perception NEW ➜ NEW ➜
Part D · Five-layer architecture

Five layers, bottom to top: one job each

Sense → carry → process → serve → manage. Remember: "Please Take Pizza And Biryani".
Smart electricity meter: meter measures units → mobile link carries them → company servers calculate the bill → your app shows it → managers plan tariffs.
1 · Perception — sensors, actuators, RFID: collect data
2 · Transport — Wi-Fi, 4G/5G, Bluetooth: carry data
3 · Processing — databases, cloud: store & analyse
4 · Application — apps, dashboards: serve users
5 · Business — profit, privacy, strategy: manage it all
Part D · Layers 2 & 3

Transport moves the data; processing makes sense of it

Transport is the delivery van for data; processing is the office that files, checks and analyses it.
  • Transport: 4G/5G, Wi-Fi, Bluetooth, RFID, NFC, LAN.
  • It moves data up and commands down.
  • Processing: stores, filters, analyses huge data volumes.
  • Uses databases, cloud computing and big-data tools.
Google Maps traffic: phones send speed data over mobile networks (transport); servers combine it to find jams (processing).
📟devices Transport Processing 🗄️ store🧹 filter📈 analyse✅ decide "Jam on SV Road"→ to the app
Part D · Layers 4 & 5

Application serves users; business runs the whole show

The application layer gives people a service. The business layer decides how the system earns, grows and protects users.
  • Application: smart home, health, farming, city services.
  • It shapes what users see: apps, alerts, dashboards.
  • Business: business model, profit, user privacy.
  • Managers use reports and graphs to decide.
Fitness band company: the app shows your steps (application); managers study usage reports and decide to launch a paid premium plan (business).
5 · Business
📊 "40% of users open the sleep page daily → launch a sleep-coach plan." (sample report)
4 · Application
📱 "You walked 8,240 steps today. 🎉"
👤 Application = for the user · 💼 Business = for the company
Part D · One system, five layers

Follow one car through a mall's smart parking

One event — a car parks — passes up all five layers, each adding something.
Smart parking is common in large malls and airports: green and red lights above each slot guide drivers to a free space.
Perception — 🚗 A car parks; the slot's sensor detects it and the light turns red.
Transport — 📡 The sensor's message goes through a gateway to the server.
Processing — 🗄️ Server updates the count: Level 2 now has 14 free slots.
Application — 📱 Entry display and app show "Level 2: 14 free".
Business — 💼 Manager sees weekend peaks and adds a premium valet option.
☕ Interactive break · 1-minute brain teaser

A fitness company is stuck. Which layer is missing?

⌚ The band counts steps → the phone sends them to the cloud → servers store and analyse them → the app shows charts. Everything works, but the company cannot decide whether a paid plan would make money, and has no privacy policy. Which layer is missing?
Discussion timer
1:00
Part D · Compare

Three-layer vs five-layer: when to use which

Three layers explain how IoT works; five layers explain how an IoT product is run.
BasisThree-layerFive-layer
LayersPerception, Network, ApplicationPerception, Transport, Processing, Application, Business
Data processingHidden inside network or applicationOwn layer: processing (middleware)
Business viewNot coveredBusiness layer: profit, privacy, strategy
DetailSimple, easy to drawMore complete, closer to real products
Best forBasic understanding, small systemsLarge, commercial IoT systems
Analogy: a 3-layer plan is a hostel room sketch; a 5-layer plan is the full building plan with the office and the accounts room.
Activity · Put it in order

Smart irrigation: order the events from layer 1 to layer 5

Click the events bottom layer first (perception) up to the top (business). A wrong click shakes.
Your stack (layer 1 first)
    Common mistakes

    Four mistakes students make in this topic

    ❌ "M2M never uses the internet."
    ✅ It often doesn't; the real difference is closed vs open, one job vs many apps.
    ❌ Drawing layers top-down with perception on top.
    ✅ Perception at the bottom, business (or application) at the top.
    ❌ Putting the cloud in the network layer.
    ✅ The network carries; the cloud stores and analyses → processing layer.
    ❌ Listing layer names without jobs.
    ✅ Write each layer's job + one example from the same system.
    Group activity · 12 minutes

    Map a smart parking system onto five layers

    1. Form groups of 4. Choose: college parking or railway station parking.
    2. Draw the five-layer stack, perception at the bottom.
    3. Write two devices or tasks in each layer.
    4. Mark which parts are M2M links.
    5. Speaker presents the business layer idea in 30 seconds.
    🪜 Stuck? Climb the ladder
    Activity timer
    12:00
    Cheat sheet

    Lecture 2 on one page

    M2M
    Machine talks directly to one machine, for one job; closed system. E.g. ATM, lift SMS.
    IoT vs M2M
    Point-to-point vs cloud · private vs open protocols · one app vs many · small vs huge scale.
    Architecture
    Floor plan of an IoT system in layers; each layer one job; data flows up.
    Three-layer
    Perception (sense) → Network (carry) → Application (serve).
    Five-layer
    Perception → Transport → Processing → Application → Business. "Please Take Pizza And Biryani".
    Exam tip
    Draw the stack bottom-up; write job + example per layer from one system.
    What's next

    Next class: physical and logical design of IoT

    🔜 Lecture 3
    • What is inside a generic IoT device?
    • IoT protocols layer by layer
    • Communication models: request–response, publish–subscribe
    📝 Homework
    1. Draw the five-layer architecture for a smart hostel, one example per layer.
    2. Write five IoT vs M2M differences from memory.
    3. Read your textbook's sections on IoT vs M2M and architectures.
    Exit question · exam style

    Differentiate IoT and M2M. Explain the five-layer architecture.

    ✍️ (a) Any five differences. (b) Diagram + each layer's job. Write for 8 minutes.(5 + 5 marks)
    IoT Technologies · Lecture 2

    Thank you! Questions?

    Remember: Please Take Pizza And Biryani — perception to business
    Room code IOT2 · Next: physical and logical design of IoT