0% found this document useful (0 votes)
19 views26 pages

FT Lecture 8 DHCP Arp Fall22

Uploaded by

woyecex875
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views26 pages

FT Lecture 8 DHCP Arp Fall22

Uploaded by

woyecex875
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

1

DHCP & ARP


Course Code: CSC 3116 Course Title: Computer Networks

Dept. of Computer Science


Faculty of Science and Technology

Lecturer No: 8 Week No: 8 Semester: Summer 19_20


Lecturer: Wardah Saleh, [email protected]
2

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

Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a


server to automatically assign an IP address to a computer from a defined range of
numbers configured for a given network.
7

Basic Term BOOTP

The Bootstrap Protocol (BOOTP) is a computer networking protocol used in Internet


Protocol(IP) networks to automatically assign an IP address to network devices from a
configuration server.

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.

It allows static IP assignment.

Manual configuration of the BootP server is required. Static assignment of IP and


Machine is required.
8

How DHCP works


9

How DHCP works


10

Steps of DHCP
11

Steps of DHCP (cont…)


12

Steps of DHCP (cont…)


13

DHCP process explained:


14

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

ARP Request (cont…)


Packet (Network layer):
10.0.0.5 10.0.0.1 I want to know the MAC address of that
interface who’s ip address is 10.0.0.1

Frame (Data Link layer):


:AA:AA:AA:AA FFFF:FFFF:FFFF
:AA
17

ARP Request (cont…)

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

Frame (Data Link layer):

:CC:CC:CC:CC:CC: :AA:AA:AA:AA
CC :AA
19

ARP Reply (cont…)

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

ARP Cache Timeout


21

ARP Cache Timeout (cont…)


22

ARP Cache Timeout (cont…)


23

Advantage/Disadvantage
References

1. Data Communications and Networking, B. A. Forouzan,


McGraw-Hill, Inc., Fourth Edition, 2007, USA.
2. https://www.geeksforgeeks.org/basics-computer-networking/
3. https://www.tutorialspoint.com/computer_fundamentals/co
mputer_networking.htm
Books

1. Data Communications and Networking, B. A. Forouzan, McGraw-Hill, Inc.,


Fourth Edition, 2007, USA.
2. Computer Networking: A Top-Down Approach, J. F., Kurose, K. W. Ross,
Pearson Education, Inc., Sixth Edition, USA.
3. Official Cert Guide CCNA 200-301 , vol. 1, W. Odom, Cisco Press, First
Edition, 2019, USA.
4. CCNA Routing and Switching, T. Lammle, John Wily & Sons, Second
Edition, 2016, USA.
5. TCP/IP Protocol Suite, B. A. Forouzan, McGraw-Hill, Inc., Fourth Edition,
2009, USA.
6. Data and Computer Communication, W. Stallings, Pearson Education, Inc.,
10th Education, 2013, USA.

You might also like