10-A5-IP For IoT NW Layer
10-A5-IP For IoT NW Layer
N Amanquah
Overview
• What is IP, what is it used for?
• Why relevant for IoT?
• Challenges with using IP in IoT for constrained devices
• Optimizing for IoT
• Adapting vs Adopting
• Common Protocols
• Objective:
• To understand how IP may be used to good advantage in IoT networks, and
adjustments that may be need.
• Also explore options for routing factoring in IP
What is IP
• IP is a protocol:
• “set of rules, for routing and addressing packets of data so that they can travel
across networks and arrive at the correct destination”
• Delivery is solely based on addresses in packet header.
• IP address uniquely identifies a device on Internet or network
• Routers use IP addresses and a routing algorithm to forward packets
• Eg IP address: 192.168.1.5
• Private addresses
• Public addresses (static & dynamic)
1-HTTP 2-TCP
3-IP
An architectural design for L3:
TCP UDP
L3 (network layer) independent of
IP (network layer)
L1 & L2 or >L4
• Examples:
• SCADA devices tend to tunnel serial data through IP network
• Zigbee devices forward data to gateway which translates between IP and
Zigbee
Challenges with using IP in IoT for
constrained devices
Challenges using IP in IoT (constrained devices)
• Some networks pass unidirectional data. eg
• Infrequent reporting of few bytes of data eg switch state, water meter reading
• Full IP stack is overkill.
• Without 2-way data, cannot update firmwire OTA
• Overhead of implementing IP
• IPv4 -20byte header, IPv6 is 40bytes,
• On top of this: UDP has 8, TCP has 20bytes
• For small infrequent data, overhead likely >> actual data
• Should IP be run? Should control plane IP based network services be run?
• Data Flow model: between which devices does data flow
• In IP, peers communicate. In IoT, most data is limited to a few application servers.
• Network Diversity:
• Adaptation is PHY+MAC combo specific. There will be islands of different technologies joined
by a gateway
Challenges using IP in IoT (constrained devices)
• Constrained devices may not have power and memory to run full IP
stack
• IoT devices often communicate over LLN. Lost packets compound
• Topology changes may occur. Convergence may be a challenge.
• Devices may be sleeping, to conserve power, not available to route for
others.