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

PPTX
Firefly algorithm
PPTX
Threshold cryptography
PPTX
Osi security architecture in network.pptx
PPTX
Loop optimization
PPTX
Computer Graphics - Windowing and Clipping
PPT
Thrashing allocation frames.43
PPSX
Features of mobile ip
PDF
Basic blocks and flow graph in Compiler Construction
Firefly algorithm
Threshold cryptography
Osi security architecture in network.pptx
Loop optimization
Computer Graphics - Windowing and Clipping
Thrashing allocation frames.43
Features of mobile ip
Basic blocks and flow graph in Compiler Construction

What's hot (20)

PPTX
ANIMATION SEQUENCE
PPT
Security Attacks.ppt
PPT
SECURITY SERVICES
PPT
Frequency Domain Image Enhancement Techniques
PPTX
Structure of agents
DOC
Branch and bound
DOC
Subnet questions with ans(networking)
PPTX
Network flows
PPTX
Transposition cipher techniques
PPT
CONVENTIONAL ENCRYPTION
PPTX
First and follow set
PDF
Code optimization in compiler design
PPTX
IP Security
PDF
Compiler Design Introduction
PPTX
Unit 2. Image Enhancement in Spatial Domain.pptx
PPTX
Noise
PDF
detailed Presentation on supervised learning
PDF
Artificial Intelligence - Hill climbing.
PPTX
properties of the task environment in artificial intelligence system
PPT
12. mobile ip
ANIMATION SEQUENCE
Security Attacks.ppt
SECURITY SERVICES
Frequency Domain Image Enhancement Techniques
Structure of agents
Branch and bound
Subnet questions with ans(networking)
Network flows
Transposition cipher techniques
CONVENTIONAL ENCRYPTION
First and follow set
Code optimization in compiler design
IP Security
Compiler Design Introduction
Unit 2. Image Enhancement in Spatial Domain.pptx
Noise
detailed Presentation on supervised learning
Artificial Intelligence - Hill climbing.
properties of the task environment in artificial intelligence system
12. mobile ip
Ad

Similar to Chap 07 arp & rarp (20)

PPT
Arp and rarp
PDF
Chap-07 ARP and RARP.pdf
PPT
PPT
ARP and RARP.ppt
PPT
PPT
Arp and rarp
PPT
Chap 06 delivery and routing of ip packets
PPTX
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
PPT
Chap 02 osi model
PDF
Internet technology unit 2
PPT
Internet Protocol Version 6 in computer Networks
PPT
Chap 13 stream control transmission protocol
PPT
Rip ospf and bgp
PPT
Chap 08 ip
PPT
rip, ospf 13-14
PPT
Chap 23 ip over atm
PPT
Chap 14 rip, ospf
Arp and rarp
Chap-07 ARP and RARP.pdf
ARP and RARP.ppt
Arp and rarp
Chap 06 delivery and routing of ip packets
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Chap 02 osi model
Internet technology unit 2
Internet Protocol Version 6 in computer Networks
Chap 13 stream control transmission protocol
Rip ospf and bgp
Chap 08 ip
rip, ospf 13-14
Chap 23 ip over atm
Chap 14 rip, ospf
Ad

More from Noctorous Jamal (20)

PPT
Chap 28 security
PPT
Chap 27 next generation i pv6
PPT
Chap 26 vpn
PPT
Chap 25 multimedia
PPT
Chap 24 mobile ip
PPT
Chap 22 www http
PPT
Chap 21 snmp
PPT
Chap 20 smtp, pop, imap
PPT
Chap 19 ftp & tftp
PPT
Chap 18 telnet
PPT
Chap 17 dns
PPT
Chap 16 bootp & dhcp
PPT
Chap 15 multicasting
PPT
Chap 12 tcp
PPT
Chap 11 udp
PPT
Chap 10 igmp
PPT
Chap 09 icmp
PPT
Chap 05 ip addresses classfless
PPT
Chap 04 ip addresses classful
PPT
Chap 03 underlying technology
Chap 28 security
Chap 27 next generation i pv6
Chap 26 vpn
Chap 25 multimedia
Chap 24 mobile ip
Chap 22 www http
Chap 21 snmp
Chap 20 smtp, pop, imap
Chap 19 ftp & tftp
Chap 18 telnet
Chap 17 dns
Chap 16 bootp & dhcp
Chap 15 multicasting
Chap 12 tcp
Chap 11 udp
Chap 10 igmp
Chap 09 icmp
Chap 05 ip addresses classfless
Chap 04 ip addresses classful
Chap 03 underlying technology

Recently uploaded (20)

PPTX
History, Philosophy and sociology of education (1).pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
IGGE1 Understanding the Self1234567891011
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Complications of Minimal Access-Surgery.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
History, Philosophy and sociology of education (1).pptx
What if we spent less time fighting change, and more time building what’s rig...
B.Sc. DS Unit 2 Software Engineering.pptx
Share_Module_2_Power_conflict_and_negotiation.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Computer Architecture Input Output Memory.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Weekly quiz Compilation Jan -July 25.pdf
Empowerment Technology for Senior High School Guide
LDMMIA Reiki Yoga Finals Review Spring Summer
IGGE1 Understanding the Self1234567891011
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Chinmaya Tiranga quiz Grand Finale.pdf
Complications of Minimal Access-Surgery.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf

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