ARP Interview Questions & Answers

ARP Interview Questions

Searching for a ARP job? If you are an expert in networking then this is for you. Do not worry, we’ve a right answer for your job interview preparation. If you are preparing for ARP job interview, we will help you in getting through the interview through Wisdomjobs interview questions and answers page to clear your job interview. ARP is the Address Resolution Protocol which refers to mapping of an IP address to a physical device within the network. Most commonly used IP is IPv4 today across the world. We can modify the ARP Cache using arp command. Networking candidates should have good knowledge on the basics of the protocol variants. Below are the ARP interview questions and answers which makes you comfortable to face the interviews:

ARP Interview Questions And Answers

ARP Interview Questions
    1. Question 1. What Is Arp?

      Answer :

      Address Resolution Protocol (ARP) is a network protocol, which maps a network layer protocol address to a data link layer hardware address. For example, ARP is used to resolve IP address to the corresponding Ethernet address.

    2. Question 2. To Which Osi Layer Does Arp Belong?

      Answer :

      ARP belongs to the OSI data link layer (Layer 2). ARP protocol is implemented by the network protocol driver. ARP packets are encapsulated by Ethernet headers and transmitted. 

    3. Question 3. Which Rfc Specify The Requirements For Arp?

      Answer :

      RFC 826 specifies the ARP packet format and other details. 

    4. Question 4. What Is The Use Of Arp?

      Answer :

      A host in an Ethernet network can communicate with another host, only if it knows the Ethernet address (MAC address) of that host. The higher level protocols like IP use a different kind of addressing scheme (like IP address) from the lower level hardware addressing scheme like MAC address. ARP is used to get the Ethernet address of a host from its IP address. ARP is extensively used by all the hosts in an Ethernet network.

    5. Question 5. Why A Ip Address Needs To Be Mapped To A Mac Address, Why Can't The Mac Address Itself Is Represented Using The Ip Address?

      Answer :

      The length of a MAC address is 6 bytes and the length of an IP address is 4 bytes. Obviously, the MAC address cannot be represented using the IP address. So an IP address must be mapped to the corresponding MAC address. 

    6. Question 6. Can Arp Be Used In A Network Other Than Ethernet?

      Answer :

      ARP is a general protocol, which can be used in any type of broadcast network. The fields in the ARP packet specifies the type of the MAC address and the type of the protocol address. ARP is used with most IEEE 802.x LAN media. In particular, it is also used with FDDI, Token Ring, and Fast Ethernet, in precisely the same way as it is with Ethernet.

    7. Question 7. How Does Arp Resolve An Ip Address To An Ethernet Mac Address?

      Answer :

      When ARP needs to resolve a given IP address to Ethernet address, it broadcasts an ARP request packet. The ARP request packet contains the source MAC address and the source IP address and the destination IP address. Each host in the local network receives this packet. The host with the specified destination IP address, sends an ARP reply packet to the originating host with its IP address.

    8. Question 8. What Is An Arp Cache?

      Answer :

      ARP maintains the mapping between IP address and MAC address in a table in memory called ARP cache. The entries in this table are dynamically added and removed.

    9. Question 9. When Is An Arp Request Packet Generated?

      Answer :

      The following steps results in the generation of an ARP request packet:

      1. The IP module sends a packet, destined for another host in the network, to the ARP module.
      2. The ARP module looks up the ARP table (cache) to resolve the IP address.
      3. If the supplied IP address is present in the ARP cache, it is resolved into its Ethernet address.
      4. If the ARP module is not able to find an entry for this IP address in the ARP cache, then it sends an ARP request packet to the Ethernet driver, to resolve the IP address to the Ethernet address.
      5. After the IP address is resolved by the ARP module, the packet is sent to the Ethernet driver for transmission. 

    10. Question 10. What Happens When A Host Receives An Arp Request Packet?

      Answer :

      The ARP request is received and processed by all the hosts in the network, since it is a broadcast packet.

      The following steps are carried out when a ARP request packet is received by a host:

      1. If the IP address to be resolved is for this host, then the ARP module sends an ARP reply packet with its Ethernet MAC address.
      2. If the IP address to be resolved is for this host, then the ARP module updates its ARP cache with the source Ethernet MAC address to source IP address mapping present in the ARP request packet. If the entry is already present in the cache, it is overwritten. If it is not present, it is added.
      3. If the IP address to be resolved is not for this host, then the ARP module discards the ARP request packet. 

    11. Question 11. Will A Host Update Its Arp Cache Upon Receiving Any Arp Request?

      Answer :

      A host will update its ARP cache, only if the ARP request is for its IP address. Otherwise, it will discard the ARP request. 

    12. Question 12. What Is The Disadvantage If A Host Updates Its Arp Cache Upon Receiving Any Arp Request?

      Answer :

      The host will exhaust the ARP cache with a lot of unused ARP entries, if it updates the ARP cache for any ARP request.

    13. Question 13. What Happens When A Host Receives An Arp Reply Packet?

      Answer :

      The ARP reply packet is received only by the host, which transmitted the ARP request packet. The ARP module adds the Ethernet hardware address to IP address mapping present in the ARP reply packet to the ARP cache.

    14. Question 14. Is There A Separate Packet Format For Arp Request And Arp Reply?

      Answer :

      No. Both the ARP request and ARP reply packets use the same format.

    15. Question 15. Which Mac Address Is An Arp Request Directed To?

      Answer :

      All ARP request packets are transmitted with the Ethernet broadcast address, so that all hosts in the network will receive the request. 

    16. Question 16. To Which Mac Address Is An Arp Reply Packet Directed To?

      Answer :

      ARP reply packet is directed to the host, which transmitted the ARP request packet. 

    17. Question 17. If A Host Is Not Able To Get The Mac Address Of A Host, How It Knows About Its Ip Address?

      Answer :

      A host will either use a static file like /etc/hosts or DNS protocol to get the IP address of another host.

    18. Question 18. What Will Happen If An Arp Reply Is Not Received For An Arp Request?

      Answer :

      If an ARP reply is not received, then that IP address cannot be resolved to an Ethernet address. Without a Ethernet address, the packets cannot be transmitted.

    19. Question 19. When Is An Entry Added To The Arp Cache?

      Answer :

      A new entry is added to the ARP cache when an IP address is successfully mapped to a MAC address. Usually, entries are added dynamically to the ARP cache. Static entries can also be added. 

    20. Question 20. What Will Happen If A New Arp Request Packet Is Received, But The Mac Address To Ip Address Is Already Present In The Arp Cache?

      Answer :

      ARP request packet is received and the mapping already exists in the ARP cache, it will be overwritten with the values present in the request.

    21. Question 21. When Is An Entry Removed From An Arp Cache?

      Answer :

       An entry in an ARP cache is removed after a pre-determined timeout period (e.g. 20 minutes).

    22. Question 22. What Is The Size Of An Arp Request And Reply Packet?

      Answer :

      The size of an ARP request or reply packet is 28 bytes. 

    23. Question 23. How To Differentiate Between A Arp Request Packet And A Arp Reply Packet, As The Ethernet Type Field Is Same On Both The Packets?

      Answer :

      An ARP request packet can be differentiated from an ARP reply packet using the 'operation' field in the ARP packet. For a ARP request it is 1 and for an ARP reply it is 2. 

    24. Question 24. Why Is The Hardware Mac Address Present In Both The Ethernet Header And The Arp Packet (request And Reply)?

      Answer :

      The Ethernet header is processed by the data link driver and removed from the packet. When the ARP layer gets the packet, it needs to know the hardware and protocol addresses in order to update the table. That is why the hardware MAC address is present in both the Ethernet header and the ARP packet. 

    25. Question 25. What Is Proxy Arp?

      Answer :

      Proxy ARP is the process in which one system responds to the ARP request for another system. For example, host A sends an ARP request to resolve the IP address of host B. Instead of Host B, Host C responds to this ARP request.

    26. Question 26. What Is The Use Of Proxy Arp?

      Answer :

      When routers receive ARP requests from one network for hosts on the network, they will respond with a ARP reply packet with their MAC address. For example, let us say host A is in one network, host B is in another network and router C connects these two networks. When host A sends an ARP request to resolve the IP address of host B, the router C receives this packet. The router C sends an ARP reply with its MAC address. So host A will send all the packets destined for host B to the router C. Router C will then forward those packets to host B. Proxy ARP is also used if a host in a network is not able to understand subnet addressing. For example, if host A and host B are actually in two different subnets, but host A cannot understand subnet addressing. So host A assumes that host B is present in the same network. In this case a router, host C, can use proxy ARP to route packets between host A and host B.

    27. Question 27. What Is Gratuitous Arp?

      Answer :

      When a host sends an ARP request to resolve its own IP address, it is called gratuitous ARP. In the ARP request packet, the source IP address and destination IP address are filled with the same source IP address itself. The destination MAC address is the Ethernet broadcast address (FF:FF:FF:FF:FF:FF).

    28. Question 28. What Is The Use Of Gratuitous Arp?

      Answer :

      Gratuitous ARP is used for the following:

      1. In a properly configured network, there will not be an ARP reply for a gratuitous ARP request. But if another host in the network is also configured with the same IP address as the source host, then the source host will get an ARP reply. In this way, a host can determine whether another host is also configured with its IP address.
      2. When the network interface card in a system is changed, the MAC address to its IP address mapping is changed. In this case, when the host is rebooted, it will send an ARP request packet for its own IP address. As this is a broadcast packet, all the hosts in the network will receive and process this packet. They will update their old mapping in the ARP cache with this new mapping.

ARP Related Interview Questions

Popular Interview Questions

All Interview Questions

All Practice Tests

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status