FT Lecture 8 DHCP Arp Fall22
FT Lecture 8 DHCP Arp Fall22
Lecture Outline
• DHCP
• What is DHCP?
• How DHCP works?
• Steps of DHCP
• ARP
• What is ARP?
• How ARP works?
• ARP cache timeout
• Advantage
• Disadvantage
3
4
5
6
What is DHCP
When a computer that is connected to a network is powered up and boots its operating
system, the system software broadcasts BOOTP messages onto the network to request
an IP address assignment. A BOOTP configuration server assigns an IP address based on
the request from a pool of addresses configured by an administrator.
Steps of DHCP
11
What is ARP?
In networking it is necessary for the sender to know the IP address and the Physical address of
the receiver for successful communication. If the MAC address of the receiver is unknown to
the sender; it uses ARP protocol to identify the specific MAC address of the receiver.
15
ARP Request
PC – A PC – B PC- C
IP Add. : 10.0.0.5 IP Add. : 10.0.0.3 IP Add. : 10.0.0.1
MAC Add. MAC Add. MAC Add.
:AA:AA:AA:AA:AA :BB:BB:BB:BB:BB:BB :CC:CC:CC:CC:CC:CC
In the above scenario there are three computers in a single network. PC-A wants to
communicate with PC-C. But it only knows the IP address of PC-C. So, PC-A will
take the help of ARP to get the MAC address of PC-C.
16
After making the ARP request frame PC-A will broadcast the frame in the network.
Assume that PC-B have got the frame it will read the header of the frame and find out
the physical address (FFFF:FFFF:FFFF) as destination MAC address. Which means it’s
a broadcast MAC address and the frame is for everyone in that network. Therefore, PC-
B will take the frame to the network layer. In the network layer when the destination IP
address is checked. There will be a mismatch as PC-B doesn’t hold the ip address
10.0.0.1.
18
ARP Reply
Packet (Network layer):
10.0.0.1 10.0.0.5 My MAC address is :CC:CC:CC:CC:CC:CC
:CC:CC:CC:CC:CC: :AA:AA:AA:AA
CC :AA
19
On the other hand, when PC-C will get the frame it will read the header of the frame and
find out the physical address (FFFF:FFFF:FFFF) as destination address. So, PC-C will
transfer it to network layer. In network layer the host will check the destination IP and
finds out that it matches with its own IP address. Therefore, PC-C will start reading the
content of the packet. And it will make an ARP reply frame and send it back to PC- A.
20
Advantage/Disadvantage
References