Network Protocols
Network Protocols
ARP RARP
Position of ARP and RARP in
TCP/IP protocol suite
ARP
ARP
•ARP associates an IP address with its physical address.
On a typical physical network, such as a LAN, each device
on a link is identified by a physical or station address that
is usually imprinted on the NIC.
ARP Operation
An ARP request is broadcast;
an ARP reply is unicast.
ARP Packet
The fields are as follows:
Hardware Type
- This is a 16-bit field defining the type of the
network on which ARP is running.
Protocol Type
- This is a 16-bit field defining the protocol.
For example, the value of this field for the
IPv4 protocol is 080016
Contd...
Hardware Length
- This is an 8-bit field defining the length of
the physical address in bytes.
For example, for Ethernet the value is 6.
Protocol Length
- This is an 8-bit field defining the length of
the logical address in bytes.
For example, for the IPv4 protocol the value
is 4.
Contd...
Operation
- This is a 16-bit field defining the type of
packet.
Two packet types are defined.
ARP Request (1), ARP Reply (2)
Sender Hardware Address
- This is a variable length field defining the
physical address of the sender.
- For Ethernet this field is 6 bytes long.
Contd...
Sender Protocol Address
- This is a variable length field defining the
logical address of the sender.
- For IPv4 protocol, this field is 4 bytes long.
Target Hardware Address
- This is a variable length field defining the
physical address of the target.
- For Ethernet this field is 6 bytes long.
Contd...
Target Protocol Address
- This is a variable length field defining the
logical address of the target.
- For IPv4 protocol, this field is 4 bytes long.
P RARP
RARP finds the logical address for a machine that only
knows its physical address.
The RARP request packets are broadcast;
the RARP reply packets are unicast.
RARP Operation
RARP Packet
DHCP