Internet of Things (IoT)

Chapter 5
Addressing, Routing and Interoperability

Post Graduate Program in Electronics and Communication Engineering
Internet of Things (IoT)   •   Post Graduate

Addressing, Routing and Interoperability

Introduction and Context

The Internet of Things (IoT) connects sensors, actuators, embedded controllers, gateways, cloud platforms and enterprise applications. These devices differ greatly in processor capability, energy supply, radio technology, data models and administrative ownership. Connectivity alone does not create an IoT system: devices must be uniquely addressable, packets must be routed efficiently, services must meet performance requirements, and systems must exchange meaningful information.

This chapter examines the networking and integration principles that support large-scale IoT deployments. Particular attention is given to IPv6, IPv6 over Low-Power Wireless Personal Area Networks (6LoWPAN), routing for constrained networks, quality of service (QoS), network management, semantic interoperability, application programming interfaces (APIs), middleware and heterogeneous system integration.

Learning Objectives

After completing this chapter, the learner should be able to:

1. Explain IPv6 addressing and its relevance to IoT.

2. Describe how 6LoWPAN adapts IPv6 to constrained wireless networks.

3. Compare routing approaches for low-power and lossy networks.

4. Analyse IoT QoS requirements and management functions.

5. Distinguish syntactic, semantic and organizational interoperability.

6. Evaluate APIs, middleware and data models for heterogeneous integration.

7. Design and critically assess an interoperable IoT architecture.

1. IoT Addressing Requirements

An address identifies a communication endpoint within a defined namespace. IoT systems require several kinds of identity:

  • Network address: identifies an interface for packet delivery.
  • Device identity: identifies a physical or logical device over its lifetime.
  • Resource identifier: identifies a sensor, actuator, service or data stream.
  • Application identity: identifies a software service or tenant.
  • Human or organizational identity: supports ownership, authorization and accountability.

These identities should not be confused. A temperature sensor may retain a device identity while changing its IPv6 address, and a single device may expose several resources. Good architectures therefore separate stable identity from location-dependent network addressing.

IoT addressing must support scalability, auto-configuration, low overhead, mobility where required, security, multicast or group communication, and operation across administrative domains. Address exhaustion is particularly important when very large numbers of devices are deployed. IPv6 provides a 128-bit address space and mechanisms designed for hierarchical allocation and automatic configuration.

2. IPv6 for IoT

An IPv6 address contains 128 bits and is conventionally written as eight groups of four hexadecimal digits. Leading zeroes may be omitted within a group, and one consecutive sequence of zero groups may be compressed using `::`.

IPv6 addresses are classified by function:

  • Global unicast: routable across the public Internet.
  • Link-local unicast: valid only on the local link; normally derived or generated automatically and beginning with `fe80::/10`.
  • Unique local address: intended for private, non-global networks, commonly within `fc00::/7`, subject to the applicable addressing rules.
  • Multicast: identifies a group of interfaces.
  • Anycast: identifies a service available at multiple interfaces; delivery is normally to the nearest instance according to routing.

IPv6 does not use broadcast. Multicast provides group communication, although multicast must be used carefully in constrained networks because maintaining group state and transmitting to many nodes consumes energy.

2.1 Address Structure and Prefixes

A typical unicast address is divided into a routing prefix, a subnet identifier and an interface identifier. For example:

`2001:db8:1200:0042:021a:11ff:fe22:3344/64`

The `/64` prefix length means that the first 64 bits identify the subnet and the remaining 64 bits identify the interface. In practice, prefix lengths can differ for special purposes, but /64 is the normal subnet size for IPv6 interface addressing and should be preserved where standards and operational requirements expect it.

2.2 Configuration and Neighbor Discovery

IPv6 supports manual configuration, Dynamic Host Configuration Protocol version 6 (DHCPv6), and Stateless Address Autoconfiguration (SLAAC). SLAAC uses Router Advertisements to communicate prefixes and configuration flags. A host forms an address using an advertised prefix and an interface identifier or a privacy-oriented randomized identifier.

Neighbor Discovery Protocol (NDP), based on ICMPv6, performs functions including address resolution, router discovery, prefix discovery and duplicate address detection. In constrained networks, ordinary NDP can generate too much traffic. 6LoWPAN therefore defines optimizations that reduce neighbor-discovery overhead.

IPv6 also supports extension headers, flow labeling and mandatory support for IPsec in the protocol specification, although deployment of IPsec is not automatic and IoT security commonly also uses link-layer protection, application-layer security and network access control.

3. 6LoWPAN Adaptation

IEEE 802.15.4 networks are designed for low-power, low-rate communication. Their maximum frame size is much smaller than the size of a normal IPv6 packet, and nodes may have limited memory, energy and processing capacity. 6LoWPAN is an adaptation layer that enables IPv6 packets to operate over IEEE 802.15.4 networks.

The principal 6LoWPAN mechanisms are:

1. Header compression: removes or compresses fields whose values can be inferred from the local context. IPv6 and UDP headers can therefore occupy far fewer bytes than their uncompressed sizes.

2. Fragmentation and reassembly: divides an IPv6 packet into fragments that fit the link-layer frame. Fragmentation increases loss sensitivity because loss of one fragment can invalidate the complete packet.

3. Mesh addressing or forwarding support: enables link-layer forwarding in some network arrangements. This must be distinguished from routing at the IPv6 layer.

4. Neighbor Discovery optimizations: reduce multicast traffic and support registration mechanisms suitable for sleeping or constrained nodes.

A design should avoid fragmentation whenever possible. Application payloads should be sized with the complete protocol stack in mind, including security overhead. Compression is effective when addresses, ports and other fields follow predictable patterns; it is not a guarantee that every packet will be small.

3.1 6LoWPAN Node Roles

A constrained network may include:

  • Constrained nodes: sensors and actuators with limited energy and memory.
  • 6LoWPAN routers: forward traffic within the low-power network.
  • Border routers: connect the low-power network to other IPv6 networks and commonly do not translate IPv6 into a proprietary address family.
  • Hosts: participate in IPv6 communication but do not necessarily forward packets.

The end-to-end IPv6 model simplifies integration, but the border router remains important for routing policy, security enforcement, management and protocol transition.

4. Routing in Low-Power and Lossy Networks

Routing selects paths through a network. IoT routing must account for unreliable links, sleeping nodes, limited bandwidth, small buffers, changing topology and energy constraints. A route that minimizes hop count may be inferior to one with fewer retransmissions or greater residual energy.

4.1 Routing Metrics

Common metrics include:

  • hop count;
  • expected transmission count (ETX), estimating the number of transmissions, including retransmissions, needed for successful delivery;
  • latency;
  • link reliability;
  • residual energy;
  • queue occupancy;
  • interference or channel quality;
  • administrative policy.

Metrics may be combined, but a combined metric must be specified carefully. For example, a routing objective can be represented abstractly as

`Cost(path) = Σ [w1 c_reliability + w2 c_latency + w3 c_energy]`

where the sum is taken over links in the path, the `c` terms are normalized link costs, and the non-negative weights `w1`, `w2` and `w3` express design priorities. This is a design model rather than a universal routing formula. The costs must be defined consistently, and changing weights can change the selected route.

4.2 RPL

The IPv6 Routing Protocol for Low-Power and Lossy Networks (RPL) constructs a Destination-Oriented Directed Acyclic Graph (DODAG) toward one or more roots. A RPL instance has an objective function that determines how rank is calculated from routing metrics. Rank represents a node’s relative position and helps prevent routing loops; it is not necessarily a direct measure of physical distance.

RPL supports traffic patterns such as:

  • Multipoint-to-point: sensor data flowing toward a root.
  • Point-to-multipoint: commands flowing from a root toward nodes.
  • Point-to-point: communication between nodes, often using downward routes or routing through a root.

Control messages include DODAG Information Object (DIO), DODAG Information Solicitation (DIS) and Destination Advertisement Object (DAO). Trickle-based transmission helps reduce control traffic when the topology is stable while allowing faster adaptation after inconsistency.

RPL is powerful but not universally optimal. Downward routing can require additional state, and storing and non-storing modes impose different memory and packet-header costs. Large deployments must also consider root redundancy, repair behavior, multicast scaling and security of routing control messages.

4.3 Other Routing Approaches

Reactive protocols discover routes when needed, reducing periodic control traffic but potentially increasing initial delay. Geographic routing uses location information and can scale well, but it depends on localization accuracy and may suffer from obstacles or voids. Data-centric approaches route according to data names or interests rather than fixed device addresses. Time-Slotted Channel Hopping (TSCH) networks can combine scheduled communication with routing to improve reliability and determinism.

Routing should be selected from traffic patterns and operational constraints, not from protocol popularity alone.

5. Quality of Service in IoT

QoS is the ability of a system to provide measurable service characteristics appropriate to an application. Relevant dimensions include:

  • end-to-end latency;
  • jitter, or variation in packet delay;
  • packet delivery ratio;
  • throughput;
  • availability;
  • energy consumption;
  • deadline compliance;
  • service recovery time.

Different IoT applications have different priorities. A periodic environmental monitor may tolerate seconds of delay and occasional loss. A closed-loop industrial controller may require bounded latency, high reliability and carefully controlled jitter. A video-enabled system may require substantially greater throughput than a low-rate telemetry application.

A basic network utilization relationship is

`ρ = λ / μ`

where `λ` is the average arrival rate and `μ` is the average service rate, both expressed in packets per second. The relationship is meaningful for a stable single-server abstraction only when `λ < μ`; as utilization approaches one, queues generally become more sensitive to bursts and delay. Real wireless networks also involve retransmissions, contention, sleep cycles and multiple queues, so this expression is a planning indicator rather than a complete performance model.

QoS mechanisms include traffic classification, admission control, priority queues, rate limiting, scheduling, retransmission policy, path diversity, time synchronization and resource reservation. QoS must be considered end-to-end: a high-priority packet can still miss its deadline because of gateway processing, cloud congestion or an application bottleneck.

6. Network and Device Management

IoT network management covers configuration, fault, performance, security and accounting functions. A mature management system should answer the following questions:

  • Which devices are deployed and where?
  • What firmware and configuration do they use?
  • Are they reachable and operating within expected limits?
  • Are links degrading or batteries approaching depletion?
  • Which changes were authorized and when?
  • Can a faulty device be isolated without disrupting the whole system?

Management protocols and practices include SNMP in traditional IP environments, NETCONF/YANG for structured configuration in suitable networks, Lightweight M2M (LwM2M) for constrained device management, and telemetry exported through modern observability systems. Device management should support secure bootstrapping, authenticated firmware updates, rollback, inventory, time synchronization and audit logs.

Over-the-air updates are particularly sensitive. A secure update process verifies package authenticity and integrity, protects update distribution, preserves power during installation, supports recovery after interruption and prevents rollback to vulnerable versions unless explicitly authorized.

7. Interoperability: More Than Connectivity

Interoperability is the ability of independent systems to exchange and use information effectively. It has several layers:

1. Technical interoperability: physical and network connectivity.

2. Syntactic interoperability: agreement on message structure, encoding and transport.

3. Semantic interoperability: agreement on the meaning of data.

4. Organizational interoperability: alignment of processes, responsibilities, policies and governance.

Two systems may be syntactically interoperable but semantically incompatible. For example, both may exchange a field called `temp`, while one reports Celsius and another Fahrenheit, or one reports an instantaneous measurement and another a daily average.

7.1 Data Models and Ontologies

A robust measurement representation should include at least the observed property, value, unit, time, location, quality indicator and device or source identity where applicable. JSON, CBOR, XML and Protocol Buffers define representations, but a format alone does not establish meaning.

Semantic models and ontologies define concepts and relationships. Examples of relevant standardization efforts include the W3C Web of Things Thing Description, OGC SensorThings concepts, oneM2M resource structures and domain-specific models such as OPC UA information models in industrial systems. A semantic mapping layer may translate between models, but mappings should preserve units, uncertainty, timestamps, provenance and access restrictions.

7.2 APIs and Middleware

APIs expose capabilities to other software. Common styles include REST over HTTP, publish-subscribe messaging through MQTT, constrained REST through CoAP, and event or streaming interfaces. MQTT uses a broker and topic-based publish-subscribe model; CoAP is designed for constrained environments and supports request-response interaction over UDP or other transports with appropriate security mechanisms.

Middleware hides heterogeneity and provides common functions such as protocol adaptation, device discovery, identity management, event processing, buffering, digital-twin representation, policy enforcement and data normalization. It may be deployed at the edge, in gateways or in the cloud.

Middleware should not become an opaque central dependency. Its failure modes, latency, data ownership, scaling limits and vendor lock-in must be assessed. APIs should specify authentication, authorization, versioning, rate limits, error semantics, idempotency, observability and lifecycle policy. Backward-compatible evolution is essential because many field devices cannot be upgraded frequently.

8. Heterogeneous System Integration

A practical integration architecture often contains four planes:

  • Device and link plane: sensors, actuators and technologies such as IEEE 802.15.4, Wi-Fi, cellular, Ethernet or LPWAN.
  • Network plane: IPv6 addressing, routing, segmentation, QoS and security.
  • Service plane: gateways, brokers, APIs, digital twins and data processing.
  • Enterprise and application plane: analytics, control systems, business workflows and regulatory reporting.

Integration patterns include protocol gateways, canonical data models, event buses, digital twins and edge computing. A protocol gateway may translate Modbus or proprietary radio traffic into MQTT or HTTPS. However, translation should preserve semantic context rather than merely changing syntax.

A canonical model reduces point-to-point mappings, but may become too general or lose domain-specific detail. Direct adapters can preserve detail but become difficult to maintain as the number of systems grows. The appropriate choice depends on system scale, latency, ownership and evolution requirements.

9. Security, Governance and Regulation

Addressing and interoperability expose security boundaries. Important controls include device identity, mutual authentication, least-privilege authorization, encryption in transit, secure key storage, segmentation, secure boot, signed updates and monitoring for anomalous behavior.

Privacy must be considered because sensor data can reveal location, health, behavior or industrial activity. Data minimization, purpose limitation, retention controls and consent or lawful processing should be incorporated into architecture. Device identifiers and telemetry may be personal or commercially sensitive data depending on context and jurisdiction.

Governance should define who owns data, who may operate devices, how incidents are reported, how long logs are retained and how devices are decommissioned. Standards improve interoperability but do not by themselves guarantee safety, privacy or compliance. Regulatory obligations may apply to radio use, critical infrastructure, medical devices, consumer protection and data protection.

10. Illustrative Case: Smart Water Distribution

Background

A municipal utility operates pressure sensors, flow meters and remotely controlled valves across a distributed water network. Sensors use a low-power wireless mesh, while control centers use IPv6, fiber and cellular backhaul.

Problem

The original system used proprietary device identifiers and separate vendor dashboards. Data could be viewed but not combined reliably. Units and timestamps were inconsistent, battery status was unavailable, and valve commands sometimes experienced unpredictable delay.

Analysis

The utility classified traffic into three categories: routine measurements, alarms and valve control. Routine measurements tolerated moderate delay. Alarms required rapid delivery and acknowledgment. Valve commands required authentication, authorization, replay protection and confirmation of final actuator state. The engineering team also identified poor semantic interoperability: flow was reported in both liters per second and cubic meters per hour, with inconsistent time bases.

Approach and Solution

The utility adopted IPv6 addressing with link-local operation inside constrained segments and globally managed prefixes at border routers. 6LoWPAN compressed IPv6 traffic over the low-power mesh. RPL was configured with reliability-aware routing, redundant roots and monitoring of link quality. Small telemetry messages were designed to avoid fragmentation.

A gateway exposed constrained devices through MQTT and a REST API. A canonical model defined property names, units, timestamps, uncertainty and provenance. The gateway rejected malformed or unitless measurements and converted approved units while retaining the original value and source metadata. Alarm and control traffic received separate queues and stricter admission rules.

Each device received a unique credential during provisioning. Firmware updates were signed, staged and capable of rollback. Operators used role-based access control, and all valve commands were logged with identity, time, reason and outcome.

Outcome

The utility obtained a unified operational view, reduced manual data reconciliation and improved fault diagnosis. More importantly, it could distinguish a communication failure from a sensor fault and a valid zero reading from missing data. The architecture did not eliminate all risk: mesh links still required maintenance, and the canonical model required governance as new equipment was added.

Learning Points

1. End-to-end design is necessary; choosing IPv6 alone does not solve interoperability.

2. QoS classes should reflect application consequences.

3. Semantic metadata is as important as packet delivery.

4. Security and lifecycle management must be designed before deployment.

5. Standards reduce integration effort, but local governance determines whether interoperability remains sustainable.

11. Contemporary Developments and Best Practices

Current IoT engineering increasingly combines edge computing, deterministic networking, digital twins, machine-learning-assisted anomaly detection and zero-trust security. AI can help predict link degradation, classify faults or optimize maintenance, but it should not replace protocol-level guarantees. Training data may be biased, explanations may be limited and automated actions require safety constraints.

Best practices include:

  • design an address and identity plan before deployment;
  • use IPv6 end to end where feasible and minimize translation layers;
  • select routing metrics from application requirements;
  • budget packet size and avoid unnecessary fragmentation;
  • define measurable QoS objectives and monitor them continuously;
  • use explicit units, timestamps, provenance and uncertainty;
  • version APIs and data models;
  • isolate domains and apply least privilege;
  • test failure, congestion, power loss and partial connectivity;
  • plan device retirement, credential revocation and data deletion;
  • prefer open standards while documenting unavoidable proprietary dependencies.

Chapter Summary

IoT scalability depends on coordinated addressing, routing, QoS, management and interoperability. IPv6 provides a large hierarchical address space, autoconfiguration and a common network layer. 6LoWPAN adapts IPv6 to constrained IEEE 802.15.4 networks through compression, fragmentation and neighbor-discovery optimization. RPL supports routing in low-power and lossy networks, but its objective function, downward routing and repair behavior must be matched to deployment requirements.

QoS is application-dependent and includes latency, reliability, jitter, throughput, availability and energy use. Network management provides inventory, configuration, monitoring, updates and fault response. Interoperability progresses from technical and syntactic compatibility to semantic and organizational alignment. APIs, middleware, canonical models and digital twins help integrate heterogeneous devices, but they introduce governance, scaling and vendor-dependence issues. Secure identities, lifecycle controls, privacy protection and explicit data semantics are essential to dependable IoT systems.

Key Terms

IPv6: Internet Protocol version 6 with 128-bit addressing.

SLAAC: Stateless Host Address Autoconfiguration for IPv6.

NDP: IPv6 Neighbor Discovery Protocol.

6LoWPAN: Adaptation technology for IPv6 over low-power wireless personal area networks.

Header compression: Reduction of protocol-header overhead using shared context and inferred fields.

Border router: Device connecting a constrained IPv6 network to another network.

RPL: Routing Protocol for Low-Power and Lossy Networks.

DODAG: Destination-Oriented Directed Acyclic Graph used by RPL.

ETX: Expected transmission count, a reliability-related routing metric.

QoS: Measurable service performance characteristics such as delay and reliability.

Syntactic interoperability: Agreement on message structure and encoding.

Semantic interoperability: Agreement on the meaning of exchanged information.

Ontology: Formal representation of concepts and their relationships.

API: Defined software interface through which services interact.

Middleware: Software layer that abstracts device and protocol heterogeneity.

MQTT: Broker-based publish-subscribe messaging protocol.

CoAP: Constrained Application Protocol for resource-oriented interaction.

Digital twin: Software representation of a physical asset or process.

Zero-trust security: Security approach that continuously verifies access rather than trusting network location.

Review Questions

Short Answer Questions

1. Why is a device identity not equivalent to an IPv6 address?

2. State three functions performed by 6LoWPAN.

3. What is the purpose of rank in RPL?

4. Distinguish syntactic interoperability from semantic interoperability.

5. Name four important IoT QoS dimensions.

Long Answer Questions

1. Explain IPv6 addressing, SLAAC and Neighbor Discovery in the context of IoT.

2. Describe 6LoWPAN architecture and explain why fragmentation should be minimized.

3. Explain RPL operation, traffic patterns and the importance of routing metrics.

4. Discuss how APIs and middleware support integration across heterogeneous IoT systems.

5. Analyse security, privacy and governance requirements for IoT network management.

Analytical / Application Questions

1. Design an addressing, routing and QoS strategy for a battery-powered industrial monitoring network with occasional emergency alarms. Justify your choices.

2. Two systems exchange a field named `pressure`, but one uses bar and the other kilopascals, with different timestamp conventions. Propose a semantic integration solution.

3. Evaluate whether a protocol gateway or a canonical data model is more appropriate for integrating legacy building automation devices with a cloud IoT platform. State the trade-offs and assumptions.

Multiple Choice Questions with Answers

Question 1

Which IPv6 address type is valid only on the local link?

A. Global unicast

B. Link-local unicast

C. Anycast

D. Multicast

Correct Answer: B. Link-local unicast

Question 2

Which 6LoWPAN function reduces the overhead of IPv6 packets on constrained links?

A. Header compression

B. Increasing frame size

C. Removing routing

D. Replacing IPv6 with broadcast

Correct Answer: A. Header compression

Question 3

What does RPL primarily construct?

A. A DODAG

B. A cellular core

C. A DNS zone

D. A hardware bus

Correct Answer: A. A DODAG

Question 4

Which metric estimates transmissions including retransmissions needed for successful delivery?

A. MTU

B. ETX

C. TTL

D. RSSI only

Correct Answer: B. ETX

Question 5

For a stable single-server abstraction, which condition is required for queue stability in ρ = λ/μ?

A. λ > μ

B. λ = 0

C. λ < μ

D. μ = 0

Correct Answer: C. λ < μ

Question 6

Two systems use the same JSON field but assign it different meanings. What interoperability problem exists?

A. Only physical incompatibility

B. Semantic incompatibility

C. Frequency incompatibility

D. Address exhaustion

Correct Answer: B. Semantic incompatibility

Question 7

Which protocol commonly uses broker-based publish-subscribe messaging?

A. MQTT

B. ARP

C. RPL

D. SLAAC

Correct Answer: A. MQTT

Question 8

Why should IoT applications avoid unnecessary 6LoWPAN fragmentation?

A. Fragments always improve latency

B. Loss of one fragment can invalidate the packet

C. Fragmentation disables IPv6 addressing

D. Fragments cannot be encrypted

Correct Answer: B. Loss of one fragment can invalidate the packet

Question 9

Which practice best supports trustworthy sensor data integration?

A. Removing timestamps

B. Omitting units

C. Preserving units, provenance and measurement time

D. Using device names as values

Correct Answer: C. Preserving units, provenance and measurement time

Question 10

What is a primary purpose of secure over-the-air firmware updating?

A. To eliminate device identity

B. To verify authenticity and integrity of updates

C. To increase packet fragmentation

D. To disable rollback recovery

Correct Answer: B. To verify authenticity and integrity of updates

Internet of Things (IoT)
Chapter 5 of 14