CR Kit Packet Formatting WINLAB Rutgers University Date : June Authors : Khanh Le, Prasanthi Maddala,
Outline Ethernet Frame, IP/TCP/UDP headers Packet types Host -> HW : three packet types RMAP packets (register map read/write) Data packets TCP/IP packets HW -> Host : three packet types RMAP packets (read data) Data packets TCP/IP packets
CR Kit Packet Format Ethernet Header : Board MAC address : fixed value Host MAC Address : machine dependent e.g. as defined by Ethernet card IP Header : Board IP : Host IP : UDP for board level communication e.g. RMAP and data packets HOST -> HW : UDP port 1000 – RMAP UDP port 1001 – INTR (not used for Host -> HW) UDP port 1002 – Data HW -> HOST : UDP port 1000 – RMAP UDP port 1001 – INTR UDP port 1002 – Data TCP for any other applications e.g. ARP, DHCP. Ex. 1) RMAP packet to HW : UDP src port = 00, UDP dest port = 00 2) Data packets to HW : UDP src port = 02, UDP dest port = 02 3) RMAP packet to HOST: UDP src port = 00, UDP dest port = 00 4) RMAP INTR packet to HOST: UDP src port = 01, UDP dest port = 01 5) Data packet to HOST: UDP src port = 02, UDP dest port = 02
Ethernet Frame (source : wikipedia) 802.1Q header is NOT used. Type II Ethernet Frame format for TCP/IP application. EtherType = 0x0800 (IPv4), 0x0806 (ARP) Ethernet payload = bytes
EtherType (source : wikipedia)
IPv4 packet header 1/3 (source : wikipedia)
IPv4 packet header 2/3 (source : wikipedia)
IPv4 packet header 3/3 (source : wikipedia)
Fragmentation and Reassembly 1/2 (source : wikipedia)
Fragmentation and Reassembly 2/2 (source : wikipedia)
TCP (source : wikipedia)
UDP (source : wikipedia)