SlideShare a Scribd company logo
1 of 28
CChhaapptteerr 77 
AARRPP aanndd RRAARRPP 
Objectives 
Upon completion you will be able to: 
• Understand the need for ARP 
• Understand the cases in which ARP is used 
• Understand the components and interactions in an ARP package 
• Understand the need for RARP 
TCP/IP Protocol Suite 1
Figure 7.1 ARP and RARP 
TCP/IP Protocol Suite 2
Figure 7.2 Position of ARP and RARP in TCP/IP protocol suite 
TCP/IP Protocol Suite 3
7.1 ARP 
ARP associates an IP address with its physical aaddddrreessss.. OOnn aa ttyyppiiccaall 
pphhyyssiiccaall nneettwwoorrkk,, ssuucchh aass aa LLAANN,, eeaacchh ddeevviiccee oonn aa lliinnkk iiss iiddeennttiiffiieedd bbyy aa 
pphhyyssiiccaall oorr ssttaattiioonn aaddddrreessss tthhaatt iiss uussuuaallllyy iimmpprriinntteedd oonn tthhee NNIICC.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
PPaacckkeett FFoorrmmaatt 
EEnnccaappssuullaattiioonn 
OOppeerraattiioonn 
AARRPP oovveerr AATTMM 
PPrrooxxyy AARRPP 
TCP/IP Protocol Suite 4
Figure 7.3 ARP operation 
TCP/IP Protocol Suite 5
Figure 7.4 ARP packet 
TCP/IP Protocol Suite 6
Figure 7.5 Encapsulation of ARP packet 
TCP/IP Protocol Suite 7
Figure 7.6 Four cases using ARP 
TCP/IP Protocol Suite 8
NNoottee:: 
An ARP request is broadcast; 
an ARP reply is unicast. 
TCP/IP Protocol Suite 9
ExamplE 1 
A host with IP address 130.23.43.20 and physical 
address B2:34:55:10:22:10 has a packet to send to 
another host with IP address 130.23.43.25 and 
physical address A4:6E:F4:59:83:AB (which is 
unknown to the first host). The two hosts are on the 
same Ethernet network. Show the ARP request and 
reply packets encapsulated in Ethernet frames. 
See Next Slide 
TCP/IP Protocol Suite 10
ExamplE 1 (ContinuEd) 
Solution 
Figure 7.7 shows the ARP request and reply packets. 
Note that the ARP data field in this case is 28 bytes, 
and that the individual addresses do not fit in the 4- 
byte boundary. That is why we do not show the 
regular 4-byte boundaries for these addresses. Also 
note that the IP addresses are shown in hexadecimal. 
For information on binary or hexadecimal notation 
see Appendix B. 
See Next Slide 
TCP/IP Protocol Suite 11
Figure 7.7 Example 1 
TCP/IP Protocol Suite 12
Figure 7.8 Proxy ARP 
TCP/IP Protocol Suite 13
7.2 ARP PACKAGE 
In this section, we give an example of a simplified AARRPP ssooffttwwaarree 
ppaacckkaaggee ttoo sshhooww tthhee ccoommppoonneennttss aanndd tthhee rreellaattiioonnsshhiippss bbeettwweeeenn tthhee 
ccoommppoonneennttss.. TThhiiss AARRPP ppaacckkaaggee iinnvvoollvveess ffiivvee mmoodduulleess:: aa ccaacchhee ttaabbllee,, 
qquueeuueess,, aann oouuttppuutt mmoodduullee,, aann iinnppuutt mmoodduullee,, aanndd aa ccaacchhee--ccoonnttrrooll 
mmoodduullee.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
CCaacchhee TTaabbllee 
QQuueeuueess 
OOuuttppuutt MMoodduullee 
IInnppuutt MMoodduullee 
CCaacchhee--CCoonnttrrooll MMoodduullee 
TCP/IP Protocol Suite 14
Figure 7.9 ARP components 
TCP/IP Protocol Suite 15
TTaabbllee 77..11 OOrriiggiinnaall ccaacchhee ttaabbllee uusseedd ffoorr eexxaammpplleess 
TCP/IP Protocol Suite 16
ExamplE 2 
The ARP output module receives an IP datagram 
(from the IP layer) with the destination address 
114.5.7.89. It checks the cache table and finds that an 
entry exists for this destination with the RESOLVED 
state (R in the table). It extracts the hardware address, 
which is 457342ACAE32, and sends the packet and 
the address to the data link layer for transmission. 
The cache table remains the same. 
TCP/IP Protocol Suite 17
ExamplE 3 
Twenty seconds later, the ARP output module receives 
an IP datagram (from the IP layer) with the 
destination address 116.1.7.22. It checks the cache 
table and does not find this destination in the table. 
The module adds an entry to the table with the state 
PENDING and the Attempt value 1. It creates a new 
queue for this destination and enqueues the packet. It 
then sends an ARP request to the data link layer for 
this destination. The new cache table is shown in 
Table 7.2. 
See Next Slide 
TCP/IP Protocol Suite 18
TTaabbllee 77..22 UUppddaatteedd ccaacchhee ttaabbllee ffoorr EExxaammppllee 33 
TCP/IP Protocol Suite 19
ExamplE 4 
Fifteen seconds later, the ARP input module receives 
an ARP packet with target protocol (IP) address 
188.11.8.71. The module checks the table and finds 
this address. It changes the state of the entry to 
RESOLVED and sets the time-out value to 900. The 
module then adds the target hardware address 
(E34573242ACA) to the entry. Now it accesses queue 
18 and sends all the packets in this queue, one by one, 
to the data link layer. The new cache table is shown in 
Table 7.3. 
See Next Slide 
TCP/IP Protocol Suite 20
TTaabbllee 77..33 UUppddaatteedd ccaacchhee ttaabbllee ffoorr EExxaammppllee 44 
TCP/IP Protocol Suite 21
ExamplE 5 
Twenty-five seconds later, the cache-control module 
updates every entry. The time-out values for the first 
three resolved entries are decremented by 60. The 
time-out value for the last resolved entry is 
decremented by 25. The state of the next-to-the last 
entry is changed to FREE because the time-out is 
zero. For each of the three pending entries, the value 
of the attempts 
See Next Slide 
TCP/IP Protocol Suite 22
TTaabbllee 77..44 UUppddaatteedd ccaacchhee ttaabbllee ffoorr EExxaammppllee 55 
TCP/IP Protocol Suite 23
7.3 RARP 
RARP finds the logical address for a machine tthhaatt oonnllyy kknnoowwss iittss 
pphhyyssiiccaall aaddddrreessss.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
PPaacckkeett FFoorrmmaatt 
EEnnccaappssuullaattiioonn 
RRAARRPP SSeerrvveerr 
AAlltteerrnnaattiivvee SSoolluuttiioonnss ttoo RRAARRPP 
TCP/IP Protocol Suite 24
NNoottee:: 
The RARP request packets are broadcast; 
the RARP reply packets are unicast. 
TCP/IP Protocol Suite 25
Figure 7.10 RARP operation 
TCP/IP Protocol Suite 26
Figure 7.11 RARP packet 
TCP/IP Protocol Suite 27
Figure 7.12 Encapsulation of RARP packet 
TCP/IP Protocol Suite 28

More Related Content

What's hot (20)

Chapter 23
Chapter 23Chapter 23
Chapter 23
 
Ip addressing classless
Ip addressing classlessIp addressing classless
Ip addressing classless
 
Unit 4 - Network Layer
Unit 4 - Network LayerUnit 4 - Network Layer
Unit 4 - Network Layer
 
Chap24
Chap24Chap24
Chap24
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Distance Vector Routing
Distance Vector RoutingDistance Vector Routing
Distance Vector Routing
 
RAID and LVM
RAID and LVMRAID and LVM
RAID and LVM
 
Ns2
Ns2Ns2
Ns2
 
Windows Registry Tips & Tricks
Windows Registry Tips & TricksWindows Registry Tips & Tricks
Windows Registry Tips & Tricks
 
Explaining ip address
Explaining ip addressExplaining ip address
Explaining ip address
 
Sctp tutorial
Sctp tutorialSctp tutorial
Sctp tutorial
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
 
IPv6
IPv6IPv6
IPv6
 
MAC & IP addresses
MAC & IP addressesMAC & IP addresses
MAC & IP addresses
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
ARP
ARPARP
ARP
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed System
 
Acl
AclAcl
Acl
 
Printing with cups (linux)
Printing with cups (linux)Printing with cups (linux)
Printing with cups (linux)
 

Similar to Chap 07 arp & rarp (20)

Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Chap 07
Chap 07Chap 07
Chap 07
 
Chap-07 ARP and RARP.pdf
Chap-07 ARP and RARP.pdfChap-07 ARP and RARP.pdf
Chap-07 ARP and RARP.pdf
 
Arp
ArpArp
Arp
 
ARP and RARP.ppt
ARP and RARP.pptARP and RARP.ppt
ARP and RARP.ppt
 
arp
arparp
arp
 
Ch07
Ch07Ch07
Ch07
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Chap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packetsChap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packets
 
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptxAdvanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
 
Chap 02 osi model
Chap 02 osi modelChap 02 osi model
Chap 02 osi model
 
Internet technology unit 2
Internet technology unit 2Internet technology unit 2
Internet technology unit 2
 
Chap 13 stream control transmission protocol
Chap 13 stream control transmission protocolChap 13 stream control transmission protocol
Chap 13 stream control transmission protocol
 
Chap 08 ip
Chap 08 ipChap 08 ip
Chap 08 ip
 
rip, ospf 13-14
rip, ospf 13-14rip, ospf 13-14
rip, ospf 13-14
 
Chap 23 ip over atm
Chap 23 ip over atmChap 23 ip over atm
Chap 23 ip over atm
 
Chap 14 rip, ospf
Chap 14 rip, ospfChap 14 rip, ospf
Chap 14 rip, ospf
 
OSI MODEL
OSI MODELOSI MODEL
OSI MODEL
 
Chap 11
Chap 11Chap 11
Chap 11
 

More from Noctorous Jamal (20)

Chap 28 security
Chap 28 securityChap 28 security
Chap 28 security
 
Chap 27 next generation i pv6
Chap 27 next generation i pv6Chap 27 next generation i pv6
Chap 27 next generation i pv6
 
Chap 26 vpn
Chap 26 vpnChap 26 vpn
Chap 26 vpn
 
Chap 25 multimedia
Chap 25 multimediaChap 25 multimedia
Chap 25 multimedia
 
Chap 24 mobile ip
Chap 24 mobile ipChap 24 mobile ip
Chap 24 mobile ip
 
Chap 22 www http
Chap 22 www httpChap 22 www http
Chap 22 www http
 
Chap 21 snmp
Chap 21 snmpChap 21 snmp
Chap 21 snmp
 
Chap 20 smtp, pop, imap
Chap 20 smtp, pop, imapChap 20 smtp, pop, imap
Chap 20 smtp, pop, imap
 
Chap 19 ftp & tftp
Chap 19 ftp & tftpChap 19 ftp & tftp
Chap 19 ftp & tftp
 
Chap 18 telnet
Chap 18 telnetChap 18 telnet
Chap 18 telnet
 
Chap 17 dns
Chap 17 dnsChap 17 dns
Chap 17 dns
 
Chap 16 bootp & dhcp
Chap 16 bootp & dhcpChap 16 bootp & dhcp
Chap 16 bootp & dhcp
 
Chap 15 multicasting
Chap 15 multicastingChap 15 multicasting
Chap 15 multicasting
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 
Chap 11 udp
Chap 11 udpChap 11 udp
Chap 11 udp
 
Chap 10 igmp
Chap 10 igmpChap 10 igmp
Chap 10 igmp
 
Chap 09 icmp
Chap 09 icmpChap 09 icmp
Chap 09 icmp
 
Chap 05 ip addresses classfless
Chap 05 ip addresses classflessChap 05 ip addresses classfless
Chap 05 ip addresses classfless
 
Chap 04 ip addresses classful
Chap 04 ip addresses classfulChap 04 ip addresses classful
Chap 04 ip addresses classful
 
Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technology
 

Recently uploaded

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Chap 07 arp & rarp

  • 1. CChhaapptteerr 77 AARRPP aanndd RRAARRPP Objectives Upon completion you will be able to: • Understand the need for ARP • Understand the cases in which ARP is used • Understand the components and interactions in an ARP package • Understand the need for RARP TCP/IP Protocol Suite 1
  • 2. Figure 7.1 ARP and RARP TCP/IP Protocol Suite 2
  • 3. Figure 7.2 Position of ARP and RARP in TCP/IP protocol suite TCP/IP Protocol Suite 3
  • 4. 7.1 ARP ARP associates an IP address with its physical aaddddrreessss.. OOnn aa ttyyppiiccaall pphhyyssiiccaall nneettwwoorrkk,, ssuucchh aass aa LLAANN,, eeaacchh ddeevviiccee oonn aa lliinnkk iiss iiddeennttiiffiieedd bbyy aa pphhyyssiiccaall oorr ssttaattiioonn aaddddrreessss tthhaatt iiss uussuuaallllyy iimmpprriinntteedd oonn tthhee NNIICC.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: PPaacckkeett FFoorrmmaatt EEnnccaappssuullaattiioonn OOppeerraattiioonn AARRPP oovveerr AATTMM PPrrooxxyy AARRPP TCP/IP Protocol Suite 4
  • 5. Figure 7.3 ARP operation TCP/IP Protocol Suite 5
  • 6. Figure 7.4 ARP packet TCP/IP Protocol Suite 6
  • 7. Figure 7.5 Encapsulation of ARP packet TCP/IP Protocol Suite 7
  • 8. Figure 7.6 Four cases using ARP TCP/IP Protocol Suite 8
  • 9. NNoottee:: An ARP request is broadcast; an ARP reply is unicast. TCP/IP Protocol Suite 9
  • 10. ExamplE 1 A host with IP address 130.23.43.20 and physical address B2:34:55:10:22:10 has a packet to send to another host with IP address 130.23.43.25 and physical address A4:6E:F4:59:83:AB (which is unknown to the first host). The two hosts are on the same Ethernet network. Show the ARP request and reply packets encapsulated in Ethernet frames. See Next Slide TCP/IP Protocol Suite 10
  • 11. ExamplE 1 (ContinuEd) Solution Figure 7.7 shows the ARP request and reply packets. Note that the ARP data field in this case is 28 bytes, and that the individual addresses do not fit in the 4- byte boundary. That is why we do not show the regular 4-byte boundaries for these addresses. Also note that the IP addresses are shown in hexadecimal. For information on binary or hexadecimal notation see Appendix B. See Next Slide TCP/IP Protocol Suite 11
  • 12. Figure 7.7 Example 1 TCP/IP Protocol Suite 12
  • 13. Figure 7.8 Proxy ARP TCP/IP Protocol Suite 13
  • 14. 7.2 ARP PACKAGE In this section, we give an example of a simplified AARRPP ssooffttwwaarree ppaacckkaaggee ttoo sshhooww tthhee ccoommppoonneennttss aanndd tthhee rreellaattiioonnsshhiippss bbeettwweeeenn tthhee ccoommppoonneennttss.. TThhiiss AARRPP ppaacckkaaggee iinnvvoollvveess ffiivvee mmoodduulleess:: aa ccaacchhee ttaabbllee,, qquueeuueess,, aann oouuttppuutt mmoodduullee,, aann iinnppuutt mmoodduullee,, aanndd aa ccaacchhee--ccoonnttrrooll mmoodduullee.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: CCaacchhee TTaabbllee QQuueeuueess OOuuttppuutt MMoodduullee IInnppuutt MMoodduullee CCaacchhee--CCoonnttrrooll MMoodduullee TCP/IP Protocol Suite 14
  • 15. Figure 7.9 ARP components TCP/IP Protocol Suite 15
  • 16. TTaabbllee 77..11 OOrriiggiinnaall ccaacchhee ttaabbllee uusseedd ffoorr eexxaammpplleess TCP/IP Protocol Suite 16
  • 17. ExamplE 2 The ARP output module receives an IP datagram (from the IP layer) with the destination address 114.5.7.89. It checks the cache table and finds that an entry exists for this destination with the RESOLVED state (R in the table). It extracts the hardware address, which is 457342ACAE32, and sends the packet and the address to the data link layer for transmission. The cache table remains the same. TCP/IP Protocol Suite 17
  • 18. ExamplE 3 Twenty seconds later, the ARP output module receives an IP datagram (from the IP layer) with the destination address 116.1.7.22. It checks the cache table and does not find this destination in the table. The module adds an entry to the table with the state PENDING and the Attempt value 1. It creates a new queue for this destination and enqueues the packet. It then sends an ARP request to the data link layer for this destination. The new cache table is shown in Table 7.2. See Next Slide TCP/IP Protocol Suite 18
  • 19. TTaabbllee 77..22 UUppddaatteedd ccaacchhee ttaabbllee ffoorr EExxaammppllee 33 TCP/IP Protocol Suite 19
  • 20. ExamplE 4 Fifteen seconds later, the ARP input module receives an ARP packet with target protocol (IP) address 188.11.8.71. The module checks the table and finds this address. It changes the state of the entry to RESOLVED and sets the time-out value to 900. The module then adds the target hardware address (E34573242ACA) to the entry. Now it accesses queue 18 and sends all the packets in this queue, one by one, to the data link layer. The new cache table is shown in Table 7.3. See Next Slide TCP/IP Protocol Suite 20
  • 21. TTaabbllee 77..33 UUppddaatteedd ccaacchhee ttaabbllee ffoorr EExxaammppllee 44 TCP/IP Protocol Suite 21
  • 22. ExamplE 5 Twenty-five seconds later, the cache-control module updates every entry. The time-out values for the first three resolved entries are decremented by 60. The time-out value for the last resolved entry is decremented by 25. The state of the next-to-the last entry is changed to FREE because the time-out is zero. For each of the three pending entries, the value of the attempts See Next Slide TCP/IP Protocol Suite 22
  • 23. TTaabbllee 77..44 UUppddaatteedd ccaacchhee ttaabbllee ffoorr EExxaammppllee 55 TCP/IP Protocol Suite 23
  • 24. 7.3 RARP RARP finds the logical address for a machine tthhaatt oonnllyy kknnoowwss iittss pphhyyssiiccaall aaddddrreessss.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: PPaacckkeett FFoorrmmaatt EEnnccaappssuullaattiioonn RRAARRPP SSeerrvveerr AAlltteerrnnaattiivvee SSoolluuttiioonnss ttoo RRAARRPP TCP/IP Protocol Suite 24
  • 25. NNoottee:: The RARP request packets are broadcast; the RARP reply packets are unicast. TCP/IP Protocol Suite 25
  • 26. Figure 7.10 RARP operation TCP/IP Protocol Suite 26
  • 27. Figure 7.11 RARP packet TCP/IP Protocol Suite 27
  • 28. Figure 7.12 Encapsulation of RARP packet TCP/IP Protocol Suite 28