Ch4.H CN Network Layer
Ch4.H CN Network Layer
(CT 702)
Sharad Kumar Ghimire
Department of Electronics and Computer Engineering
Pulchowk Campus
Institute of Engineering
Tribhuvan University
Nepal
Chapter 4
Network Layer
Contd...
S. K. Ghimire
Contents
Protocols:
● ARP
● RARP
Additional Topics
- S. K. Ghimire
Address Mapping
ARP & RARP
ARP
Used for Mapping Logical to Physical Address
The logical (IP) address is known itself or obtained from the DNS if the sender is
the host or it is found in a routing table if the sender is a router
Hardware type: 16-bit field defining the type of the network on which ARP is
running, e.g. Ethernet is given the type 1
Protocol type: 16-bit field defining the protocol, e.g. the value of this field for the
IPv4 protocol is 0800H
Hardware length: 8-bit field defining the length of the physical address in bytes,
e.g. for Ethernet the value is 6
Protocol length: 8-bit field defining the length of the logical address in bytes, e.g.
for the IPv4 protocol the value is 4
Operation: 16-bit field defining the type of packet, 1 for ARP request & 2 for reply
ARP Packet Encapsulation
An ARP packet is encapsulated directly into a data link frame
Note that the type field indicates that the data carried by the frame are an ARP
packet
Host Configuration
RARP: Reverse Address Resolution Protocol
Used to find the logical address for a machine that knows only its physical address
Each host or router is assigned one or more logical (IP) addresses, which are
unique and independent of the physical (hardware) address of the machine
The IP address of a machine is usually read from its configuration file stored on a
disk file
RARP
A diskless machine is usually booted from ROM, with minimum boot information
The machine has its physical address from its NIC which is unique locally
It can then use the physical address to get the logical address by using the RARP
protocol → a RARP request is created and broadcast on the local network
Another machine on the local network that knows all the IP addresses will respond
with a RARP reply
RARP Packet Format
The format of the RARP packet is the same as the ARP packet
The physical broadcast address, all 1s in the case of Ethernet, does not pass the
boundaries of a network
DHCP
NAT
NPIX
International Authorities
● IANA
● RIR - S. K. Ghimire
Bootstrap Protocol (BOOTP)
Client/server protocol designed to overcome some deficiencies of RARP protocol
When a client requests its IP address, the BOOTP server consults a table that
matches the physical address of the client with its IP address
This implies that the binding between the physical address and the IP address of
the client already exists
DHCP is more versatile than BOOTP, and it is backward compatible which means
that it can interoperate with BOOTP clients.
Features of DHCP:
American Registry for Internet Numbers (ARIN): Serves Canada, the United
States, and many Caribbean and North Atlantic islands
Latin America and Caribbean Network Information Centre (LACNIC): serves Latin
American and Caribbean regions
One of the world's five Regional Internet address Registry (RIR) and is part of the
Number Resource Organization