MAC header format


8 bits 8 bits 8 bits 8 bits
destination mac address[0~3]
destination mac address[4~5] source mac address[0~1]
source mac address[2~5]
message type N/A

ARP header format


8 bits 8 bits 16 bits
hardware typeprotocol type
hardware
address
length
protocol
address
length
operation
sender hardware address(長度不定)
sender protocol address(長度不定)
target hardware address(長度不定)
target protocol address(長度不定)

IP header format


4 bits 4 bits 8 bits 3 bits 13 bits
Version IHL Type of Service Total Length
Identification Flags Fragmentation Offset
Time To Live Protocol Header Checksum
Source Address
Destination Address
Options Padding
Data

TCP header format


4 bits 6 bits 6 bits 8 bits 8 bits
Source Port Destination Port
Sequence Number
Acknowledge Number
Data
Offset
Reserved Code Window
Checksum Urgent Pointer
Options Padding
Data

ICMP header format


8 bits 8 bits 16 bits
typecodechecksum
identifiersequence number
option data(長度不定)

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()