Important Header Fields¶
MAC header¶
EtherType
- two octet (16bits)
0x0800
: IPv40x0806
: ARP0x8100
: VLAN-tagged frame0x86DD
: IPv6
VLAN tagging (802.1Q)
- insertion 802.1Q Header of the four octets (32bits) into the Ethernet frame
- tag protocol identifier (TPID) of
0x8100
IP header¶
Fragment offset
- specifies the offset of a particular fragment relative to the beginning of the original unfragmented IP datagram. The first fragment is always 0.
IP Protocol numbers
- found in field Protocol of the IPv4 header
-
found in field Next Header of the IPv6 header
-
1
: ICMP 6
: TCP17
: UDP
ICMP Header¶
Control messages
0/0
: Echo Reply3
: Destination unreachable- Code
0
: network unreachable - Code
1
: host unreachable
- Code
8/0
: Echo Request9/0
: Router Advertisement (IPv6)10/0
: Router Solicitation (IPv6)11
: Time Exceeded- Code
0
: TTL expired in transit - Code
1
: Fragment reassembly time exceeded
- Code
TCP Header¶
important header fields: source port, destination port, sequence number, Acknowledgment number, options
Connection establishment
SYN
: active open is performed by the client sending a SYN to the serverSYN-ACK
: server replies with a SYN-ACKACK
: the client sends an ACK back to the server
Connection termination
FIN
: endpoint which wishes to stop (initiator)ACK
&FIN
: receiver of FIN packageACK
: initiator
UDP Header¶
important header fields: source port & destination port