ARP It works as follows :
1. First , Each host will be in its own ARP buffer (ARP Cache) Create a ARP list , To indicate that IP Address and MAC Correspondence of address .
2. When the source host needs to send a packet to the destination host , I will check myself first ARP Does the... Exist in the list IP Address corresponding MAC Address , If there is ﹐ Send the packet directly to this MAC Address ; without , Launch a ARP Requested broadcast package , Query the corresponding MAC Address . this ARP The request packet contains the... Of the source host IP Address 、 Hardware address 、 And the destination host IP Address .
3. All hosts in the network receive this ARP After the request , Will check the purpose in the packet IP Is it with your own IP The address is consistent . Ignore this packet if they are different ; If the same , The host will send the MAC Address and IP Add the address to your ARP In the list , If ARP The... Already exists in the table IP Information about , Then cover it , Then send a... To the source host ARP Response packets , Tell the other person that it needs to find MAC Address ;

4. Source host received this ARP After responding to the packet , Will get the destination host's IP Address and MAC Add the address to your ARP In the list , And use this information to start data transmission . If the source host has not received ARP Response packets , Express ARP The query fails .

RARP How it works :
1. The sending host sends a local RARP radio broadcast , In this broadcast package , Declare your own MAC Address and request any RARP The server assigns a IP Address ;
2. On the local segment RARP When the server receives this request , Check it out RARP list , Look for the MAC Address corresponding IP Address ;
3. If there is ,RARP The server sends a response packet to the source host and sends this IP The address is provided to the other host ;
4. If it doesn't exist ,RARP The server doesn't respond to this ;
5. Source host received from RARP Server response information , Just use what you get IP Address for communication ; If I haven't received it RARP Server response information , Indicates initialization failed .

RARP More articles about

  1. 1-13 agent ARP and RARP

    One . agent ARP(Proxy ARP) Because the router has the function of blocking the broadcast , If we want to access a remote host , So what we encapsulate is not the remote purpose MAC Address , It's our gateway MAC Address . When our gateway fails , You need to give him weight ...

  2. RARP Reverse address translation protocol

    Reverse address translation protocol (RARP:Reverse Address Resolution Protocol) Reverse address translation protocol (RARP) Allow LAN physical machines from gateway servers ARP Table or cache IP ...

  3. 【 essays 】ARP and RARP

    ARP What is the protocol ? ARP Agreement is "Address Resolution Protocol"( Address resolution protocol ) Abbreviation . In the LAN , The actual transmission in the network is " frame ", In the frame is ...

  4. IP The format of the first part of the protocol and the four protocols used with it (ARP,RARP,ICMP,IGMP)

    Catalog IP Protocol header format address resolution protocol ARP Reverse Address Resolution Protocol RARP Internet control message protocol ICMP Internet Group Management Protocol IGMP IP The head of the datagram IP Datagram header format : The highest position is on the left , Write it down as 0 bit: The lowest point is on the right ...

  5. ( The network layer )IP The format of the first part of the protocol and the four protocols used with it (ARP,RARP,ICMP,IGMP)

    Catalog IP Protocol header format address resolution protocol ARP Reverse Address Resolution Protocol RARP Internet control message protocol ICMP Internet Group Management Protocol IGMP IP The head of the datagram IP Datagram header format : The highest position is on the left , Write it down as 0 bit: The lowest point is on the right ...

  6. 《TCP/IP Rounding out volume 1: agreement 》 The first 5 Chapter RARP: Reverse Address Resolution Protocol - Reading notes

    Chapter reviews : <TCP/IP Rounding out volume 1: agreement > The first 1 Chapter summary - Reading notes <TCP/IP Rounding out volume 1: agreement > The first 2 Chapter The link layer - Reading notes <TCP/IP Rounding out volume 1: agreement > The first 3 Chapter IP ...

  7. TCP/IP Explain the learning notes in detail (4)-- ARP and RARP

    1.ARP       Address resolution protocol (Address Resolution Protocol,ARP) It's on the host only IP A protocol that determines the physical address of an address .       stay TCP/IP Agreement ,A ...

  8. TCP/IP Explain the learning notes in detail (3)-IP agreement ,ARP agreement ,RARP agreement

    Learning these three agreements together is because they are on the same level ,ARP The protocol is used to find the target host Ethernet network card Mac Address ,IP Then it carries the message to be sent . The data link layer can be accessed from ARP Get the transmission information of the data , And from IP Get the number to transmit ...

  9. (5)RARP: Reverse Address Resolution Protocol

    One . brief introduction Without disk system RARP The implementation process is to read the unique hardware address from the interface card , Then send a copy of RARP request ( A frame of data broadcast over the network ), Request a host to respond to the diskless system IP Address ( stay RARP In response ). It feels like this process is the same as in the previous chapter ...

Random recommendation

  1. phoenix And spark Integrate

    The aim is to phoenix Do storage ,spark Do the computing layer . So it's a combination of phoenix Fast query speed and spark The advantage of fast computing . Here will be Phoenix As a watch of spark Of RDD perhaps DataFrames To operate , also ...

  2. Talk about MVC Pattern

    Talk about MVC Pattern   author :  Ruan Yifeng 1. How to design the structure of a program , This is a specialized subject , be called " Architecture mode "(architectural pattern), It belongs to the methodology of programming . MVC Pattern ...

  3. nyoj 6 Water spray ( One )

    Water spray ( One ) The time limit :3000 ms  |  Memory limit :65535 KB difficulty :3   describe There is a lawn , Long for 20 rice , Wide for 2 rice , To place a radius of... On the horizontal centerline Ri A new sprinkler , The effect of every sprinkler will make ...

  4. careercup-C and C++ 13.9

    13.9 Write programs that support alignment assignments malloc and free function , When allocating memory ,malloc The address returned by the function must be 2 Of n Power division . solution : Generally speaking , Use malloc, We can't control where the allocated memory will be in the heap . I ...

  5. C++ Arrays and pointers

    A pointer to an array element A variable has an address , An array contains several elements , Each array element occupies a storage unit in memory , They all have corresponding addresses . Since a pointer variable can point to a variable , Of course, you can also point to array elements ( Put the address of an element in a pointer variable ) ...

  6. Designing Data-Intensive Applications

    Here's most of the preface to the book , My English level is limited , If there is something wrong with understanding, please give us some advice , This is my reading notes and summary of this book . Data is at the center of many challenges in today's system design , Some problems are difficult to solve, such as the scalability of the system , Uniformity ...

  7. ZooKeeper Stand alone installation and configuration

    Zookeeper Download link :http://mirrors.shu.edu.cn/apache/zookeeper/ #wget https://mirrors.tuna.tsinghua.edu.c ...

  8. Configure Chinese word breaker IK-Analyzer-Solr7

    To download solr7 Version of ik Word segmentation is , Download address :http://search.maven.org/#search%7Cga%7C1%7Ccom.github.magese Word segmentation is GitHub Source code address :http ...

  9. windows 10 Update patch pack

    http://www.catalog.update.microsoft.com/Search.aspx?q=windows%2010%20prohttp://www.catalog.update.mi ...

  10. ubuntu16.04 And sudo problem

    Problem description : I passed useradd test Created test user , And pass mkdir test Create the directory corresponding to the user , Re pass chown -R test /home/test Grant permissions on this directory and its subdirectories to tes ...