As a host encapsulates outgoing data, the Network layer and the Data Link layer each add addressing. Which statement correctly matches each address type to the layer that adds it?
- AThe Data Link layer adds source and destination IP addresses, while the Network layer adds source and destination MAC addresses.
- BThe Network layer adds source and destination IP addresses, while the Data Link layer adds source and destination MAC addresses. Correct
- CThe Network layer adds source and destination port numbers, while the Data Link layer adds IP addresses.
- DThe Transport layer adds source and destination MAC addresses, while the Network layer adds port numbers.
Why A is wrong: This inverts the two layers: IP addressing is a Network-layer function and MAC addressing is a Data Link function, not the reverse.
Why B is correct: The Network layer (Layer 3) writes IP addresses into the packet header and the Data Link layer (Layer 2) writes MAC addresses into the frame header during encapsulation.
Why C is wrong: Port numbers are added by the Transport layer, and IP addresses are added by the Network layer, so both assignments here sit at the wrong layer.
Why D is wrong: MAC addresses are a Data Link function and port numbers are a Transport function, so neither pairing in this option is correct.