Frames:
A frame is a layer 2(data link) unit of data.
It contains:
[ source MAC, destination MAC, +[packet] + [error detection]]
So the frame incapsulate a packet in it with an error detection to detect delivery losses.
Packets:
A packet is a Layer 3(Network) unit of data. It contains [source IP, destination IP, + [segments]]
The difference between Frames and Packets:
Packets travel across networks while frames travel across links.
-
frames are Layer-2, hop-by-hop, MAC-addressed container
-
Packets are Layer-3, end-to-end, IP-addressed unit
-
frames change at every hop
-
packets don’t
-
frames size depends on the network’s MUT
-
packets are fragmented only when required by MUT limits
