Fiveable

๐ŸŒInternet of Things (IoT) Systems Unit 5 Review

QR code for Internet of Things (IoT) Systems practice questions

5.1 Network Topologies and Protocols

๐ŸŒInternet of Things (IoT) Systems
Unit 5 Review

5.1 Network Topologies and Protocols

Written by the Fiveable Content Team โ€ข Last updated September 2025
Written by the Fiveable Content Team โ€ข Last updated September 2025
๐ŸŒInternet of Things (IoT) Systems
Unit & Topic Study Guides

IoT networks come in various shapes and sizes, each with its own pros and cons. Star, mesh, and tree topologies offer different levels of centralization, redundancy, and scalability. Choosing the right one depends on your specific IoT needs and constraints.

Communication protocols like HTTP, MQTT, CoAP, and AMQP play a crucial role in IoT systems. Each protocol has its strengths, from HTTP's wide support to MQTT's lightweight design. Matching the right protocol to your IoT devices and network requirements is key to building efficient and reliable systems.

Network Topologies in IoT Systems

Common network topologies for IoT

  • Star topology
    • Central node (hub) connects to all other nodes like spokes on a wheel
    • Nodes communicate through the central node, not directly with each other
    • Failure of the central node brings down the entire network (single point of failure)
    • Works well for small-scale IoT networks with centralized control (home automation systems)
  • Mesh topology
    • Each node connects to multiple other nodes, forming a web-like structure
    • Nodes can communicate directly with each other without going through a central hub
    • High redundancy and fault tolerance since data can be rerouted if a node fails
    • Self-healing network adapts to changes and node failures
    • More complex to set up and manage, and nodes consume more power due to multiple connections
  • Tree topology
    • Hierarchical structure with a root node at the top and child nodes branching out below
    • Each node has a single parent node, except for the root
    • Data flows from child nodes up to the root node
    • Scalable and suitable for large-scale IoT networks (industrial monitoring systems)
    • Failure of a parent node affects all its child nodes below it in the tree

Communication Protocols in IoT Networks

Communication protocols in IoT

  • HTTP (Hypertext Transfer Protocol)
    • Request-response protocol commonly used for client-server communication on the web
    • Suitable for IoT applications that send data updates infrequently
    • Higher overhead compared to lightweight IoT protocols
  • MQTT (Message Queuing Telemetry Transport)
    • Lightweight publish-subscribe protocol
    • Designed for resource-constrained devices and low-bandwidth networks
    • Supports Quality of Service (QoS) levels to ensure reliable message delivery
    • Ideal for real-time data collection and remote monitoring (sensor networks)
  • CoAP (Constrained Application Protocol)
    • Lightweight protocol designed for resource-constrained devices
    • Based on the RESTful architecture, similar to HTTP but with lower overhead
    • Supports UDP for lower overhead and multicast communication
    • Suitable for low-power and lossy networks (LLNs) like wireless sensor networks
  • AMQP (Advanced Message Queuing Protocol)
    • Message-oriented middleware protocol for reliable message queuing and delivery
    • Provides features like transaction management and message acknowledgments
    • Suitable for enterprise-level IoT applications that require high scalability (supply chain management)

Topology and protocol comparisons

  • Star topology advantages
    • Simple to set up and manage
    • Low latency communication between nodes and the central hub
    • Suitable for small-scale IoT networks with centralized control (smart homes)
  • Star topology disadvantages
    • Central node is a single point of failure that can disrupt the entire network
    • Limited scalability due to the central node's capacity constraints
  • Mesh topology advantages
    • High redundancy and fault tolerance with multiple paths between nodes
    • Self-healing network can adapt and reroute data if a node fails
    • Suitable for large-scale and decentralized IoT networks (smart cities)
  • Mesh topology disadvantages
    • Increased complexity in network setup and management
    • Higher power consumption for nodes due to maintaining multiple connections
  • Tree topology advantages
    • Scalable and suitable for large-scale IoT networks (industrial automation)
    • Efficient data aggregation and processing at intermediate nodes
    • Reduced network traffic compared to flat topologies
  • Tree topology disadvantages
    • Failure of a parent node affects all its child nodes below it
    • Potential bottlenecks at higher-level nodes handling more traffic
  • HTTP advantages
    • Widely supported and easy to integrate with existing web infrastructure
    • Suitable for IoT applications that send data updates infrequently (weather stations)
  • HTTP disadvantages
    • Higher overhead compared to lightweight IoT protocols
    • Not optimized for resource-constrained devices and low-bandwidth networks
  • MQTT advantages
    • Lightweight and efficient for resource-constrained devices (wearables)
    • Supports QoS levels to ensure reliable message delivery
    • Ideal for real-time data collection and remote monitoring (fleet tracking)
  • MQTT disadvantages
    • Requires a message broker, adding complexity to the system architecture
    • Limited message size compared to other protocols
  • CoAP advantages
    • Lightweight and designed specifically for resource-constrained devices
    • Supports UDP for lower overhead and multicast communication
    • Suitable for low-power and lossy networks like wireless sensor networks
  • CoAP disadvantages
    • Limited reliability compared to TCP-based protocols
    • Lacks built-in security features, requiring additional measures
  • AMQP advantages
    • Reliable message queuing and delivery with transaction support
    • Supports message acknowledgments and guarantees delivery
    • Suitable for enterprise-level IoT applications with high scalability needs (logistics)
  • AMQP disadvantages
    • Higher complexity compared to lightweight IoT protocols
    • Requires more resources and processing power on devices

IoT network design considerations

  1. Identify the scale and distribution of IoT devices

    • Small-scale and centralized networks may work well with a star topology
    • Large-scale and decentralized networks may benefit from mesh or tree topologies
  2. Determine the power and resource constraints of IoT devices

    • Resource-constrained devices may require lightweight protocols like MQTT or CoAP
    • Devices with higher processing power can handle HTTP or AMQP
  3. Evaluate the network bandwidth and reliability requirements

    • Low-bandwidth and lossy networks may work better with CoAP or MQTT
    • Applications requiring reliable message delivery can use MQTT with QoS or AMQP
  4. Assess the real-time data collection and monitoring needs

    • Real-time data collection benefits from MQTT or CoAP
    • Applications with infrequent data updates can use HTTP
  5. Consider integration with existing systems and infrastructure

    • Integration with web-based systems may favor HTTP
    • Integration with enterprise messaging systems may favor AMQP
  6. Analyze security requirements and select protocols with appropriate features

    • Secure communication can use MQTT or AMQP with TLS/SSL
    • Lightweight security can use CoAP with DTLS
  7. Test and validate the selected topology and protocols in a pilot deployment

    • Monitor performance, reliability, and scalability metrics
    • Iterate and refine the design based on pilot results and lessons learned