- how devices split and reassemble data into packets,
- how addressing (IP and MAC) helps packets find their destination,
- how routers forward packets between networks, and
- how switches deliver frames inside local networks.
- a header with delivery information (source/destination IPs, source/destination ports, protocol, sequence or identification fields),
- a payload carrying part of the message,
- and usually a checksum or CRC to detect transmission errors.

| Component | Purpose | Example fields |
|---|---|---|
| Header | Delivery metadata used by network devices | src IP, dst IP, src port, dst port, protocol, seq |
| Payload | The actual chunk of the application data | part of an HTTP GET or HTML text |
| Checksum / CRC | Error detection for the packet | TCP checksum, CRC32 (link-layer) |
- DNS returns the destination IP address that identifies the server on the network.
- Kody’s laptop uses a private IP inside her home LAN; her home router holds a public IP visible to the wider Internet.
- The packet header therefore carries a source IP (where it originated) and a destination IP (where it should arrive).
DNS: try
dig +short www.calicatnip.com or nslookup www.calicatnip.com to see how names map to addresses. Note that private IPs (RFC 1918) are only meaningful inside a local network; NAT translates private-to-public at the router.| Addressing type | Scope | Used by |
|---|---|---|
| IP address | Global/logical across networks | Routers (layer 3 routing) |
| MAC address | Local/link-layer within a LAN segment | Switches (layer 2 forwarding) |

- Each router reads the destination IP in the packet header and consults its routing table to decide the next hop.
- Routers forward packets hop-by-hop rather than computing a full end-to-end path for each packet.
- Routing tables are built and updated using routing protocols (for example, BGP between ASes, OSPF or IS‑IS within an AS).
- When links fail or become congested, routing protocols help routers converge on new paths.

- Switches learn which MAC addresses are reachable on which physical ports and build a MAC address table.
- When a frame arrives, the switch looks up the destination MAC and forwards the frame only to the port where that MAC was last seen.
- This design is efficient and supports many simultaneous conversations over the same physical media (multiplexing), unlike circuit switching which reserved a dedicated path.

B. MAC addresses are used to route packets across the Internet.
C. The entire route is chosen before the packet leaves Kody’s device.
D. Switches reserve a dedicated path between devices to avoid collisions. Pause now to lock in your answer. Correct answer: A. Data is divided into smaller packets that are labeled and reassembled on arrival. Why the other options are incorrect:
- B: MAC addresses are used only for local delivery inside a LAN; routers use IP addresses to forward packets between networks.
- C: Routers make hop-by-hop forwarding decisions; they do not precompute a fixed end-to-end path for each packet.
- D: Circuit switching reserved dedicated paths; modern Ethernet switching is packet-based and multiplexes many flows over the same media.
- Data is split into packets to reduce retransmission cost; packets include a header, payload, and checksum.
- Packets travel independently and are reassembled at the receiver using sequence identifiers.
- IP addresses provide logical, globally routable addressing across networks.
- MAC addresses provide link-layer addressing for local delivery inside a LAN.
- Routers use destination IPs and routing tables to choose the next hop; routes can change dynamically.
- Switches use MAC addresses to forward frames inside local networks without reserving a path.

- DNS: https://en.wikipedia.org/wiki/Domain_Name_System
- IP addressing: https://tools.ietf.org/html/rfc791
- MAC addresses and Ethernet: https://en.wikipedia.org/wiki/MAC_address
- BGP overview: https://en.wikipedia.org/wiki/Border_Gateway_Protocol
- OSPF overview: https://en.wikipedia.org/wiki/Open_Shortest_Path_First