Core Networking · Study deck

Subnetting and CIDR for IoT Networks

Picture a school adding thirty air sensors beside cameras, printers, and staff laptops.

Packet Pete is your guide for this deck.

addrsubnetting
Packet Pete, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: The installer must know which devices should speak directly, which must cross a checked boundary, and how many spare places the next term will need.
  • Explain: That visual pairing grounds device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently in named evidence.
  • Explain: Ground under the hood: prefix bits define the address budget with the visual at Figure: Variable-length subnet masking lets large and small device.
  • Explain: That labelled check bounds device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently.
iotclass.org

Major section

Start With the Boundary Line

Giving every device an address is not enough.

  • The installer must know which devices should speak directly, which must cross a checked boundary, and how many spare places the next term will need.
  • A subnet is a group of addresses treated as one local area.
  • This example does not replace address arithmetic or policy design.

Key terms

Subnetting
Subnetting is the moment an address becomes a design decision.

Why it matters

The arithmetic matters because the deployment will inherit every boundary the design creates.

iotclass.org

Major section

Start With the Boundary Line (continued)

The arithmetic matters because the deployment will inherit every boundary the design creates.

  • A gateway is the device that carries traffic from that area toward another one.
  • The deeper sections show how prefixes, host counts, route summaries, address assignment, and security rules make the boundary reviewable.
  • Subnetting is the moment an address becomes a design decision.
iotclass.org

Major section

Overview: A Subnet Is an Address Boundary

Addresses with the same reviewed prefix are treated as local; other destinations use the configured gateway.

  • That relationship connects the arithmetic to broadcast scope, routing policy, DHCP capacity, and the failure clues a deployment will expose.
IPv4 address divided into network and host portions by a subnet prefix
IPv4 address divided into network and host portions by a subnet prefix
iotclass.org

Major section

Practitioner: Build the Subnet Plan From Inventory

That visual pairing grounds device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently in named evidence.

  • That labelled check bounds device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently.
Device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently.
Device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently.
iotclass.org

Major section

Under the Hood: Prefix Bits Define the Address Budget

Ground under the hood: prefix bits define the address budget with the visual at Figure: Variable-length subnet masking lets large and small device.

  • That sequence keeps under the hood: prefix bits define the address budget tied to what is visibly labelled.
Shorter prefixes leave more host bits; longer prefixes create smaller subnets.
Shorter prefixes leave more host bits; longer prefixes create smaller subnets.
iotclass.org

Major section

Divide a Building by Device Population

A school has 50 cameras, 20 room sensors, and 10 door controllers.

  • A /26 leaves 6 host bits, so it contains 2^6=64 addresses and normally 62 usable IPv4 host addresses.
  • The 20 room sensors need a /27: 2^5=32 total and 30 usable.
  • The valid network start covering 80 is 64.
IPv4 address divided into network and host portions by a subnet prefix
IPv4 address divided into network and host portions by a subnet prefix
iotclass.org

Major section

Divide a Building by Device Population (continued)

The 10 controllers fit a /28: 2^4=16 total and 14 usable.

  • Those three allocations consume 112 address slots while preserving a clear subnet boundary for each device family.
  • A camera should not receive the broadcast address, and a controller should not collide with the router.
  • Its addresses run from 10.20.0.0 through 10.20.0.63.
  • Routing and firewall policy still decide which device families may exchange unicast traffic.
iotclass.org

Major section

Summary

CIDR prefix length determines how many host bits remain and therefore how many addresses are available.

  • A subnet plan should count endpoints, gateways, infrastructure, DHCP reservations, static addresses, and spare capacity.
  • VLSM lets different IoT zones use different subnet sizes when device counts and growth records differ.
  • A defensible subnet design includes route summaries, gateway placement, security policy, monitoring scope, and recheck triggers.
iotclass.org

Deck summary

Key takeaways

Giving every device an address is not enough.

  • The arithmetic matters because the deployment will inherit every boundary the design creates.
  • Addresses with the same reviewed prefix are treated as local; other destinations use the configured gateway.
  • That visual pairing grounds device families can need different subnet sizes because cameras, sensors, lighting, access control, and infrastructure grow differently in named evidence.
  • Ground under the hood: prefix bits define the address budget with the visual at Figure: Variable-length subnet masking lets large and small device.
iotclass.org

Retrieval practice

Recall check 1 of 3

Packet Pete says: answer from memory, then check your reasoning.

Q1Why is subnetting useful in an IoT deployment beyond simply creating more address ranges?

AIt creates operational boundaries for IoT segments.
BIt guarantees that every device can communicate directly with every other device without routing.
CIt removes the need to count gateways, DHCP reservations, and spare addresses.
DIt only matters for public Internet addresses and has no role inside private IoT networks.
Show answer

Answer: A Subnetting connects address math to operational boundaries: security zones, broadcast domains, routing, ownership, and troubleshooting.

iotclass.org

Retrieval practice

Recall check 2 of 3

Packet Pete says: answer from memory, then check your reasoning.

Q2A site has 180 sensors, 12 infrastructure addresses, 8 reserved maintenance addresses, and a documented need for 40 spare addresses. Which review step matters before choosing a prefix?

ACount all required addresses, then choose a prefix whose usable host capacity is at least 240.
BCount only sensors, because infrastructure addresses do not belong to the subnet plan.
CPick the smallest visible diagram and assume address capacity can be fixed after deployment.
DUse any prefix because CIDR notation affects labels but not actual usable host counts.
Show answer

Answer: A Subnet sizing should include every address consumer and the documented spare capacity, not just the endpoint device count.

iotclass.org

Retrieval practice

Recall check 3 of 3

Packet Pete says: answer from memory, then check your reasoning.

Q3For an ordinary IPv4 host subnet using /26, why are there 62 usable host addresses?

AA /26 leaves 26 host bits, but most addresses are reserved for routing protocols.
BA /26 always supports 254 hosts because it is smaller than a /24.
CA /26 has 6 host bits: 64 total addresses, minus network and broadcast.
DThe usable count is unrelated to the prefix length and depends only on DHCP configuration.
Show answer

Answer: C CIDR host capacity comes from the number of host bits left by the prefix, with ordinary IPv4 host subnets reserving network and broadcast addresses.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Subnetting connects address math to operational boundaries: security zones, broadcast domains, routing, ownership, and troubleshooting.
  2. A · Subnet sizing should include every address consumer and the documented spare capacity, not just the endpoint device count.
  3. C · CIDR host capacity comes from the number of host bits left by the prefix, with ordinary IPv4 host subnets reserving network and broadcast addresses.
iotclass.org