Packet Structure
The Address Resolution Protocol uses a simple message format that contains one address resolution request or response. The size of the ARP message depends on the upper layer and lower layer address sizes, which are given by the type of networking protocol (usually IPv4) in use and the type of hardware or virtual link layer that the upper layer protocol is running on. The message header specifies these types, as well as the size of addresses of each. The message header is completed with the operation code for request (1) and reply (2). The payload of the packet consists of four addresses, the hardware and protocol address of the sender and receiver hosts.
The principal packet structure of ARP packets is shown in the following table which illustrates the case of IPv4 networks running on Ethernet. In this scenario, the packet has 48-bit fields for the sender hardware address (SHA) and target hardware address (THA), and 32-bit fields for the corresponding sender and target protocol addresses (SPA and TPA). Thus, the ARP packet size in this case is 28 bytes. The EtherType for ARP is 0x0806.
|
- Hardware type (HTYPE)
- This field specifies the network protocol type. Example: Ethernet is 1.
- Protocol type (PTYPE)
- This field specifies the internetwork protocol for which the ARP request is intended. For IPv4, this has the value 0x0800. The permitted PTYPE values share a numbering space with those for EtherType.
- Hardware length (HLEN)
- Length (in octets) of a hardware address. Ethernet addresses size is 6.
- Protocol length (PLEN)
- Length (in octets) of addresses used in the upper layer protocol. (The upper layer protocol specified in PTYPE.) IPv4 address size is 4.
- Operation
- Specifies the operation that the sender is performing: 1 for request, 2 for reply.
- Sender hardware address (SHA)
- media address of the sender.
- Sender protocol address (SPA)
- internetwork address of the sender.
- Target hardware address (THA)
- media address of the intended receiver. This field is ignored in requests.
- Target protocol address (TPA)
- internetwork address of the intended receiver.
ARP protocol parameter values have been standardized and are maintained by the Internet Assigned Numbers Authority (IANA).
Read more about this topic: Address Resolution Protocol
Famous quotes containing the words packet and/or structure:
“we know our end
A packet of worm-seed, a garden of spent tissues.”
—Allen Tate (18991979)
“Science is intimately integrated with the whole social structure and cultural tradition. They mutually support one otheronly in certain types of society can science flourish, and conversely without a continuous and healthy development and application of science such a society cannot function properly.”
—Talcott Parsons (19021979)