SlideShare une entreprise Scribd logo
1  sur  36
Chapter          7

                  ARP and RARP

 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




       Notice that ARP and RARP are supplemental to IP.




TCP/IP Protocol Suite                                              3
7.1 ARP
   ARP associates an IP address with its physical address. On a typical
   physical network, such as a LAN, each device on a link is identified by a
   physical or station address that is usually imprinted on the NIC.




    Logical address to physical address translation can be
    done statically (not practical) or dynamically (with ARP).




TCP/IP Protocol Suite                                           4
Figure 7.3   ARP operation




TCP/IP Protocol Suite               5
Figure 7.4   ARP packet



                                 Hardware
                                 Type - Ethernet
                                 is type 1

                                 Protocol Type-
                                 IPv4=x0800

                                 Hardware
                                 Length:length of
                                 Ethernet
                                 Address (6)

                                 Protocol
                                 Length:length of
                                 IPv4 address (4)




TCP/IP Protocol Suite            6
Figure 7.5   Encapsulation of ARP packet




    The ARP packet is encapsulated within an Ethernet packet.
    Note: Type field for Ethernet is x0806



TCP/IP Protocol Suite                                  7
Figure 7.6   Four cases using ARP




TCP/IP Protocol Suite                      8
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                        9
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                          10
Figure 7.7   Example 1




TCP/IP Protocol Suite           11
Figure 7.8   Proxy ARP

          A proxy ARP, running in a router, can respond to an ARP
          request for any of its proteges. The proxy ARP replies
          with its own MAC address. When the packet arrives, the
          router delivers it to the appropriate host.




TCP/IP Protocol Suite                                  12
7.2 ARP PACKAGE
   In this section, we give an example of a simplified ARP software
   package to show the components and the relationships between the
   components. This ARP package involves five modules: a cache table,
   queues, an output module, an input module, and a cache-control
   module.


    The topics discussed in this section include:
    Cache Table
    Queues
    Output Module
    Input Module
    Cache-Control Module



TCP/IP Protocol Suite                                      13
The Cache Table

       If ARP just resolved an IP address,
        chances are a few moments later
        someone is going to ask to resolve the
        same IP address
       When ARP returns a MAC address, it is
        placed in a cache. When the next
        request comes in for the same IP
        address, look first in the cache
TCP/IP Protocol Suite                   14
Figure 7.9   ARP components




TCP/IP Protocol Suite                15
The Cache Table Contents

       State: FREE, PENDING, RESOLVED
       Hardware type: same as ARP field
       Protocol type: same as ARP field
       Hardware length: same as ARP field
       Protocol length: same as ARP field
       Interface number: port number (m0,m1,
        m2)
TCP/IP Protocol Suite                  16
The Cache Table Contents
       Queue number: which queue the ARP
        request is sitting in
       Attempts: how many times have you tried to
        resolve this address?
       Time-out: how long until this address is
        tossed out (need the room in cache)
       Hardware address: destination hardware
        address
       Protocol address: destination IP address

TCP/IP Protocol Suite                       17
How Does the Cache Work?

       The output module waits for an IP
        packet with a request
       Checks the cache for an existing entry
       If entry found and state RESOLVED, we
        already have this MAC address
       If entry found and state PENDING,
        packet waits until dest hard addr found

TCP/IP Protocol Suite                   18
How Does the Cache Work?

       If no entry found, output module places
        this request in queue, and a new entry
        is placed in cache with state PENDING
        and ATTEMPTS set to 1. An ARP
        request is then broadcast




TCP/IP Protocol Suite                    19
How Does the Cache Work?

       The input module waits until an ARP
        request or reply arrives
       Module checks the cache for this entry
       If entry is found and state is PENDING,
        module updates entry’s target hardware
        address, changes state to RESOLVED,
        and sets the TIME-OUT value

TCP/IP Protocol Suite                   20
How Does the Cache Work?

       If entry is found and state RESOLVED,
        module still updates the entry (target
        hardware address could have changed)
        and the TIME-OUT value reset
       If entry not found, module creates a
        new entry. State is set to RESOLVED
        and TIME-OUT is set

TCP/IP Protocol Suite                  21
How Does the Cache Work?

       Now the module checks to see if arrived
        ARP packet is a Request. If it is, the
        module immediately creates an ARP
        Reply message and sends it back to
        sender.




TCP/IP Protocol Suite                   22
How Does the Cache Work?
       The cache-control module periodically
        checks each cache entry
       If entry’s state is FREE, skips it
       If entry’s state is PENDING, Attempts
        field is incremented by 1. This value
        greater than max? Toss this entry (and
        mark entry as FREE). Less than max?
        Send another ARP request

TCP/IP Protocol Suite                   23
How Does the Cache Work?

       If state of entry is RESOLVED, module
        decrements value of Time-out field
        accordingly
       If Time-out field < 0, then remove entry
        and set state to FREE




TCP/IP Protocol Suite                     24
Table 7.1 Original cache table used for examples




TCP/IP Protocol Suite                                25
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                            26
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                          27
Table 7.2 Updated cache table for Example 3




TCP/IP Protocol Suite                           28
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                          29
Table 7.3 Updated cache table for Example 4




TCP/IP Protocol Suite                           30
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 field is incremented by 1. One entry
  (IP addr 201.1.56.7 is over max, so change to FREE.
                        See Next Slide

TCP/IP Protocol Suite                          31
Table 7.4 Updated cache table for Example 5




TCP/IP Protocol Suite                          32
7.3 RARP
   RARP finds the logical address for a machine that only knows its
   physical address.

   This if often encountered on thin-client workstations. No disk, so when
   machine is booted, it needs to know its IP address (don’t want to burn
   the IP address into the ROM).

   RARP requests are broadcast, RARP replies are unicast.

   If a thin-client workstation needs to know its IP address, it probably
   also needs to know its subnet mask, router address, DNS address, etc.
   So we need something more than RARP. BOOTP, and now DHCP have
   replaced RARP.



TCP/IP Protocol Suite                                           33
Figure 7.10   RARP operation




TCP/IP Protocol Suite                 34
Figure 7.11   RARP packet




TCP/IP Protocol Suite              35
Figure 7.12   Encapsulation of RARP packet




TCP/IP Protocol Suite                               36

Contenu connexe

Tendances (20)

Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
25 DNS
25 DNS25 DNS
25 DNS
 
01 introduction to mpls
01 introduction to mpls 01 introduction to mpls
01 introduction to mpls
 
Ipv6 ppt
Ipv6 pptIpv6 ppt
Ipv6 ppt
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
MAC Address – All you Need to Know About it
MAC Address – All you Need to Know About itMAC Address – All you Need to Know About it
MAC Address – All you Need to Know About it
 
Icmp V4 And Icmp V6
Icmp V4 And Icmp V6Icmp V4 And Icmp V6
Icmp V4 And Icmp V6
 
Chapitre 6 - couche transport
Chapitre 6  - couche transportChapitre 6  - couche transport
Chapitre 6 - couche transport
 
OLSR | Optimized Link State Routing Protocol
OLSR | Optimized Link State Routing ProtocolOLSR | Optimized Link State Routing Protocol
OLSR | Optimized Link State Routing Protocol
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.pptForouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
 
Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS)
 
Cisco: QoS
Cisco: QoSCisco: QoS
Cisco: QoS
 
Cours SNMP
Cours SNMPCours SNMP
Cours SNMP
 
ccna networking ppt
ccna networking pptccna networking ppt
ccna networking ppt
 
UMTS/LTE/EPC Basic Call Flows
UMTS/LTE/EPC Basic Call FlowsUMTS/LTE/EPC Basic Call Flows
UMTS/LTE/EPC Basic Call Flows
 
Cours frame relay
Cours frame relayCours frame relay
Cours frame relay
 

En vedette

Google app engine cheat sheet
Google app engine cheat sheetGoogle app engine cheat sheet
Google app engine cheat sheetPiyush Mittal
 
Intro to parallel computing
Intro to parallel computingIntro to parallel computing
Intro to parallel computingPiyush Mittal
 
Online signature recognition
Online signature recognitionOnline signature recognition
Online signature recognitionPiyush Mittal
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding TheoryPiyush Mittal
 
Security in mobile ad hoc networks
Security in mobile ad hoc networksSecurity in mobile ad hoc networks
Security in mobile ad hoc networksPiyush Mittal
 

En vedette (10)

Intel open mp
Intel open mpIntel open mp
Intel open mp
 
Reflection
ReflectionReflection
Reflection
 
Google app engine cheat sheet
Google app engine cheat sheetGoogle app engine cheat sheet
Google app engine cheat sheet
 
Intro to parallel computing
Intro to parallel computingIntro to parallel computing
Intro to parallel computing
 
Vi cheat sheet
Vi cheat sheetVi cheat sheet
Vi cheat sheet
 
Power mock
Power mockPower mock
Power mock
 
Channel coding
Channel codingChannel coding
Channel coding
 
Online signature recognition
Online signature recognitionOnline signature recognition
Online signature recognition
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
 
Security in mobile ad hoc networks
Security in mobile ad hoc networksSecurity in mobile ad hoc networks
Security in mobile ad hoc networks
 

Similaire à Arp and rarp

Similaire à Arp and rarp (20)

arp
arparp
arp
 
Chap-07 ARP and RARP.pdf
Chap-07 ARP and RARP.pdfChap-07 ARP and RARP.pdf
Chap-07 ARP and RARP.pdf
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Chap 07
Chap 07Chap 07
Chap 07
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Arp
ArpArp
Arp
 
ARP and RARP.ppt
ARP and RARP.pptARP and RARP.ppt
ARP and RARP.ppt
 
Chap 07 arp & rarp
Chap 07 arp & rarpChap 07 arp & rarp
Chap 07 arp & rarp
 
Lecture 5 internet-protocol_assignments
Lecture 5 internet-protocol_assignmentsLecture 5 internet-protocol_assignments
Lecture 5 internet-protocol_assignments
 
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
 
Basic networking course
Basic networking courseBasic networking course
Basic networking course
 
Ch07
Ch07Ch07
Ch07
 
Arp (address resolution protocol)
Arp (address resolution protocol)Arp (address resolution protocol)
Arp (address resolution protocol)
 
Communication networks_ARP
Communication networks_ARPCommunication networks_ARP
Communication networks_ARP
 
Chapter04 -- network protocols
Chapter04  -- network protocolsChapter04  -- network protocols
Chapter04 -- network protocols
 
Tcp Ip Overview
Tcp Ip OverviewTcp Ip Overview
Tcp Ip Overview
 
Computer network (12)
Computer network (12)Computer network (12)
Computer network (12)
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Chap 11
Chap 11Chap 11
Chap 11
 
TCP/IP Training Basic Concepts.
TCP/IP Training Basic Concepts.TCP/IP Training Basic Concepts.
TCP/IP Training Basic Concepts.
 

Plus de Piyush Mittal

Plus de Piyush Mittal (20)

Design pattern tutorial
Design pattern tutorialDesign pattern tutorial
Design pattern tutorial
 
Gpu archi
Gpu archiGpu archi
Gpu archi
 
Cuda Architecture
Cuda ArchitectureCuda Architecture
Cuda Architecture
 
Cuda toolkit reference manual
Cuda toolkit reference manualCuda toolkit reference manual
Cuda toolkit reference manual
 
Matrix multiplication using CUDA
Matrix multiplication using CUDAMatrix multiplication using CUDA
Matrix multiplication using CUDA
 
Java cheat sheet
Java cheat sheetJava cheat sheet
Java cheat sheet
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
 
Css cheat sheet
Css cheat sheetCss cheat sheet
Css cheat sheet
 
Cpp cheat sheet
Cpp cheat sheetCpp cheat sheet
Cpp cheat sheet
 
Ubuntu cheat sheet
Ubuntu cheat sheetUbuntu cheat sheet
Ubuntu cheat sheet
 
Php cheat sheet
Php cheat sheetPhp cheat sheet
Php cheat sheet
 
oracle 9i cheat sheet
oracle 9i cheat sheetoracle 9i cheat sheet
oracle 9i cheat sheet
 
Open ssh cheet sheat
Open ssh cheet sheatOpen ssh cheet sheat
Open ssh cheet sheat
 
Opencl cheet sheet
Opencl cheet sheetOpencl cheet sheet
Opencl cheet sheet
 
Open MP cheet sheet
Open MP cheet sheetOpen MP cheet sheet
Open MP cheet sheet
 
My sql cheat sheet
My sql cheat sheetMy sql cheat sheet
My sql cheat sheet
 
Matlab cheatsheet
Matlab cheatsheetMatlab cheatsheet
Matlab cheatsheet
 
Latex cheat sheet
Latex cheat sheetLatex cheat sheet
Latex cheat sheet
 
Gdb cheat sheet
Gdb cheat sheetGdb cheat sheet
Gdb cheat sheet
 
Linked lists
Linked listsLinked lists
Linked lists
 

Arp and rarp

  • 1. Chapter 7 ARP and RARP 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 Notice that ARP and RARP are supplemental to IP. TCP/IP Protocol Suite 3
  • 4. 7.1 ARP ARP associates an IP address with its physical address. On a typical physical network, such as a LAN, each device on a link is identified by a physical or station address that is usually imprinted on the NIC. Logical address to physical address translation can be done statically (not practical) or dynamically (with ARP). TCP/IP Protocol Suite 4
  • 5. Figure 7.3 ARP operation TCP/IP Protocol Suite 5
  • 6. Figure 7.4 ARP packet Hardware Type - Ethernet is type 1 Protocol Type- IPv4=x0800 Hardware Length:length of Ethernet Address (6) Protocol Length:length of IPv4 address (4) TCP/IP Protocol Suite 6
  • 7. Figure 7.5 Encapsulation of ARP packet The ARP packet is encapsulated within an Ethernet packet. Note: Type field for Ethernet is x0806 TCP/IP Protocol Suite 7
  • 8. Figure 7.6 Four cases using ARP TCP/IP Protocol Suite 8
  • 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 9
  • 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 10
  • 11. Figure 7.7 Example 1 TCP/IP Protocol Suite 11
  • 12. Figure 7.8 Proxy ARP A proxy ARP, running in a router, can respond to an ARP request for any of its proteges. The proxy ARP replies with its own MAC address. When the packet arrives, the router delivers it to the appropriate host. TCP/IP Protocol Suite 12
  • 13. 7.2 ARP PACKAGE In this section, we give an example of a simplified ARP software package to show the components and the relationships between the components. This ARP package involves five modules: a cache table, queues, an output module, an input module, and a cache-control module. The topics discussed in this section include: Cache Table Queues Output Module Input Module Cache-Control Module TCP/IP Protocol Suite 13
  • 14. The Cache Table  If ARP just resolved an IP address, chances are a few moments later someone is going to ask to resolve the same IP address  When ARP returns a MAC address, it is placed in a cache. When the next request comes in for the same IP address, look first in the cache TCP/IP Protocol Suite 14
  • 15. Figure 7.9 ARP components TCP/IP Protocol Suite 15
  • 16. The Cache Table Contents  State: FREE, PENDING, RESOLVED  Hardware type: same as ARP field  Protocol type: same as ARP field  Hardware length: same as ARP field  Protocol length: same as ARP field  Interface number: port number (m0,m1, m2) TCP/IP Protocol Suite 16
  • 17. The Cache Table Contents  Queue number: which queue the ARP request is sitting in  Attempts: how many times have you tried to resolve this address?  Time-out: how long until this address is tossed out (need the room in cache)  Hardware address: destination hardware address  Protocol address: destination IP address TCP/IP Protocol Suite 17
  • 18. How Does the Cache Work?  The output module waits for an IP packet with a request  Checks the cache for an existing entry  If entry found and state RESOLVED, we already have this MAC address  If entry found and state PENDING, packet waits until dest hard addr found TCP/IP Protocol Suite 18
  • 19. How Does the Cache Work?  If no entry found, output module places this request in queue, and a new entry is placed in cache with state PENDING and ATTEMPTS set to 1. An ARP request is then broadcast TCP/IP Protocol Suite 19
  • 20. How Does the Cache Work?  The input module waits until an ARP request or reply arrives  Module checks the cache for this entry  If entry is found and state is PENDING, module updates entry’s target hardware address, changes state to RESOLVED, and sets the TIME-OUT value TCP/IP Protocol Suite 20
  • 21. How Does the Cache Work?  If entry is found and state RESOLVED, module still updates the entry (target hardware address could have changed) and the TIME-OUT value reset  If entry not found, module creates a new entry. State is set to RESOLVED and TIME-OUT is set TCP/IP Protocol Suite 21
  • 22. How Does the Cache Work?  Now the module checks to see if arrived ARP packet is a Request. If it is, the module immediately creates an ARP Reply message and sends it back to sender. TCP/IP Protocol Suite 22
  • 23. How Does the Cache Work?  The cache-control module periodically checks each cache entry  If entry’s state is FREE, skips it  If entry’s state is PENDING, Attempts field is incremented by 1. This value greater than max? Toss this entry (and mark entry as FREE). Less than max? Send another ARP request TCP/IP Protocol Suite 23
  • 24. How Does the Cache Work?  If state of entry is RESOLVED, module decrements value of Time-out field accordingly  If Time-out field < 0, then remove entry and set state to FREE TCP/IP Protocol Suite 24
  • 25. Table 7.1 Original cache table used for examples TCP/IP Protocol Suite 25
  • 26. 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 26
  • 27. 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 27
  • 28. Table 7.2 Updated cache table for Example 3 TCP/IP Protocol Suite 28
  • 29. 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 29
  • 30. Table 7.3 Updated cache table for Example 4 TCP/IP Protocol Suite 30
  • 31. 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 field is incremented by 1. One entry (IP addr 201.1.56.7 is over max, so change to FREE. See Next Slide TCP/IP Protocol Suite 31
  • 32. Table 7.4 Updated cache table for Example 5 TCP/IP Protocol Suite 32
  • 33. 7.3 RARP RARP finds the logical address for a machine that only knows its physical address. This if often encountered on thin-client workstations. No disk, so when machine is booted, it needs to know its IP address (don’t want to burn the IP address into the ROM). RARP requests are broadcast, RARP replies are unicast. If a thin-client workstation needs to know its IP address, it probably also needs to know its subnet mask, router address, DNS address, etc. So we need something more than RARP. BOOTP, and now DHCP have replaced RARP. TCP/IP Protocol Suite 33
  • 34. Figure 7.10 RARP operation TCP/IP Protocol Suite 34
  • 35. Figure 7.11 RARP packet TCP/IP Protocol Suite 35
  • 36. Figure 7.12 Encapsulation of RARP packet TCP/IP Protocol Suite 36