One table per header, from the wire up. Sizes are in bits unless they say bytes. Keep this open beside a Wireshark capture and match each field to what you see.
Ethernet II
Field
Size
Purpose
Preamble and SFD
7 + 1 bytes
Alternating 1s and 0s to synchronise, then 10101011 to mark the start. Sent by the physical layer, not counted in the frame size
Destination MAC
6 bytes
Unicast, multicast (01-00-5E… for IPv4, 33-33… for IPv6) or broadcast FF-FF-FF-FF-FF-FF
Source MAC
6 bytes
Always unicast; what the switch learns
EtherType
2 bytes
The payload's protocol: 0x0800 IPv4, 0x86DD IPv6, 0x0806 ARP. A value of 1500 or less is a length instead (802.3 with LLC)
Payload
46–1500 bytes
Padded up to 46 bytes when shorter
FCS
4 bytes
A CRC-32 over the frame; a frame that fails it is dropped and counted as a CRC error
A frame is 64 to 1518 bytes, or up to 1522 with an 802.1Q tag. Anything shorter is a runt, anything longer a giant (unless jumbo frames are on).
The 802.1Q tag
Field
Size
Purpose
TPID
16
0x8100: says a tag follows; sits where the EtherType was
PCP
3
Priority 0–7 for QoS (802.1p); voice usually 5
DEI
1
Drop eligible: may be dropped first under congestion
VID
12
The VLAN, 1–4094 (0 and 4095 are reserved)
IPv4
Field
Size
Purpose
Version
4
4
IHL
4
Header length in 32-bit words: 5 (20 bytes) without options, up to 15 (60 bytes)
DSCP and ECN
6 + 2
QoS marking, and congestion notification
Total length
16
Header and data in bytes, up to 65,535
Identification
16
Ties the fragments of one packet together
Flags
3
Reserved, Don't Fragment (DF), More Fragments (MF)
Fragment offset
13
Where this fragment sits, in 8-byte units
TTL
8
Each router subtracts 1 and drops the packet at 0, sending ICMP Time Exceeded (what traceroute uses)
Protocol
8
What the data is: 1 ICMP, 6 TCP, 17 UDP, 89 OSPF…
Header checksum
16
Checks the header only; recomputed by each router because the TTL changes
Source and destination
32 + 32
The addresses
IPv6
Field
Size
Purpose
Version
4
6
Traffic class
8
DSCP and ECN, as in IPv4
Flow label
20
Marks packets of one flow so routers can keep them on one path
Payload length
16
Bytes after this 40-byte header, extension headers included
Next header
8
The next header's type: 6 TCP, 17 UDP, 58 ICMPv6, or an extension header
Hop limit
8
IPv4's TTL under its real name
Source and destination
128 + 128
The addresses
The IPv6 header is a fixed 40 bytes with no checksum and no fragmentation fields: routers never fragment, only the sender does (with an extension header), after Path MTU Discovery.
TCP and UDP
TCP field
Size
Purpose
Source and destination port
16 + 16
Which application on each host
Sequence number
32
Number of the first byte in this segment
Acknowledgment number
32
The next byte expected from the other side
Data offset
4
Header length in 32-bit words: 20 to 60 bytes
Reserved
4
Zero
Flags
8
CWR, ECE, URG, ACK, PSH, RST, SYN, FIN (older books show only the last six)
Window
16
How many bytes the receiver can take now: flow control
Checksum
16
Over the header, the data and a pseudo-header of the IP addresses
Urgent pointer
16
Used with URG; rare today
UDP field
Size
Purpose
Source and destination port
16 + 16
Which application
Length
16
Header and data in bytes
Checksum
16
Optional over IPv4, required over IPv6
TCP opens a connection with a three-way handshake (SYN, SYN-ACK, ACK), numbers every byte, acknowledges what arrived, resends what did not and slows down when the receiver's window closes. UDP's header is 8 bytes and does none of that, which suits DNS, voice and video, where late is as bad as lost.
HDLC and PPP on serial links
Not on the current CCNA, but still found on older WAN links. Both frames start and end with the flag 01111110 (0x7E). On synchronous links the sender inserts a 0 after any five 1s in the data (bit stuffing), so the flag never appears inside a frame.
Field
HDLC
PPP
Flag
0x7E
0x7E
Address
The station; 8 bits or more
Always 0xFF (all stations): a point-to-point link needs none
Control
Frame type (information, supervisory, unnumbered) with sequence numbers
Always 0x03 (unnumbered information)
Protocol
None in ISO HDLC; Cisco's HDLC adds a 2-byte type, which is why it only talks to Cisco
PPP may leave out the address and control bytes and shorten the protocol to one byte once both ends agree (ACFC and PFC, negotiated by LCP). Its value over Cisco HDLC is that it works between vendors and brings authentication (PAP, CHAP).