30% off every course until Sunday, October 11. Our biggest update yet, and we'd like you to try it. Applied automatically at checkout.

Choose your certification
Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

2.6.1. Address Structure

IPv4 Packet Header:

The TTL field decrements at each hop (router)—when it reaches 0, the packet is dropped and an ICMP "Time Exceeded" is sent back. This is how traceroute works.

IPv4 Address Structure

IP Address:    192.168.1.100
Binary:        11000000.10101000.00000001.01100100

Subnet Mask:   255.255.255.0  (or /24)
Binary:        11111111.11111111.11111111.00000000
               |------Network------|--Host--|

Subnetting Quick Reference

CIDR to Subnet Mask:
CIDRSubnet MaskHosts per SubnetBlock Size
/22255.255.252.01,0224 (third octet)
/23255.255.254.05102 (third octet)
/24255.255.255.0254256
/25255.255.255.128126128
/26255.255.255.1926264
/27255.255.255.2243032
/28255.255.255.2401416
/29255.255.255.24868
/30255.255.255.25224

Formula: Hosts per subnet = 2^(host bits) - 2 (subtract network and broadcast)

Classful ranges (still tested, though routing is classless today) are set by the first octet: Class A 1–126 (default /8), B 128–191 (/16), C 192–223 (/24), D 224–239 (multicast), E 240–255 (experimental); 127 is reserved for loopback.

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•20 professional certifications