IPv4 is a 32-bit Layer 3 address used to identify a host and address a message to its final destination. Routers use the destination IP address when making forwarding decisions, while switches use MAC addresses for next-hop delivery. section 7.3 section 4.3.1
IPv4 addresses are written in dotted decimal notation: four 8-bit octets separated by periods. A prefix length such as /24 identifies the network portion; the remaining bits identify the host portion. Hosts on the same LAN share the network portion but use distinct host portions. section 7.3.1
Use these distinctions when analyzing IPv4 communication:
- Keep the destination IP address aimed at the final host throughout delivery; expect the destination MAC address to change at each hop. section 10.0
- Treat the prefix length as the boundary between network and host portions; /24 leaves 8 host bits. section 7.3.1
- Relate IPv4 addressing to subnetting, routing, ARP, routers, switches, and the TCP/IP model. section 7.0 section 10.0
Two LANs connected by a router
Hosts in LAN 1 can use addresses beginning 192.168.1, while hosts in LAN 2 can use addresses beginning 192.168.2. When PC1 sends to PC3 at 192.168.3.11, the Layer 3 destination remains PC3, but each hop uses a new Layer 2 frame addressed to the next hop. section 7.3.1 section 10.0
Figure 7.7 An IPv4 address written in both dotted decimal and binary. The 32-bit address is split into four octets consisting of 8 bits each. The address is divided into two parts: the network portion and the host portion. The prefix length indicates the size of the network portion in bits, and the remainder is the host portion.
Use the diagram to see how a 32-bit IPv4 address divides into four octets and separates network and host portions through a prefix length. section 7.3.1

