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:
Loading diagram...

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
/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)