SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Internet Traffic Engineering
Internet Traffic EngineeringInternet Traffic Engineering
Internet Traffic Engineering
jonassm
 
Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point Protocol
Phan Vuong
 
Classless addressing
Classless addressingClassless addressing
Classless addressing
Iqra Abbas
 

Mais procurados (20)

Chapter 1: Introduction to Data Communication and Networks
Chapter 1: Introduction to Data Communication and NetworksChapter 1: Introduction to Data Communication and Networks
Chapter 1: Introduction to Data Communication and Networks
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport LayerTcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layer
 
Internet Traffic Engineering
Internet Traffic EngineeringInternet Traffic Engineering
Internet Traffic Engineering
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editionee
 
Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point Protocol
 
Ethernet
EthernetEthernet
Ethernet
 
Chapter 22
Chapter 22Chapter 22
Chapter 22
 
01. Introduction to Data Mining and BI
01. Introduction to Data Mining and BI01. Introduction to Data Mining and BI
01. Introduction to Data Mining and BI
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Ch19 network layer-logical add
Ch19 network layer-logical addCh19 network layer-logical add
Ch19 network layer-logical add
 
PPP(Point-to-Point Protocol): Components & Characteristics
PPP(Point-to-Point Protocol): Components & CharacteristicsPPP(Point-to-Point Protocol): Components & Characteristics
PPP(Point-to-Point Protocol): Components & Characteristics
 
Network layer
Network layerNetwork layer
Network layer
 
Data communication and communication Media
Data communication and communication Media Data communication and communication Media
Data communication and communication Media
 
Classless addressing
Classless addressingClassless addressing
Classless addressing
 
Slide về việc bắt gói tin trên Python2.7
Slide về việc bắt gói tin trên Python2.7Slide về việc bắt gói tin trên Python2.7
Slide về việc bắt gói tin trên Python2.7
 
Ch19
Ch19Ch19
Ch19
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Forouzan ppp
Forouzan pppForouzan ppp
Forouzan ppp
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Internet Protocol version 6
Internet Protocol version 6Internet Protocol version 6
Internet Protocol version 6
 

Semelhante a Chap 07 arp & rarp

Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
Mohd Arif
 

Semelhante a 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
 
Rip ospf and bgp
Rip ospf and bgpRip ospf and bgp
Rip ospf and bgp
 
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
 

Mais de 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
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
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.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

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