L9. Explain the role and functioning of ARP. What is equivalent for IPv6? Flashcards

1
Q

What is ARP?

A

The Address Resolution Protocol (ARP) is a protocol used in Ethernet and IP networks to map IP addresses to MAC (Media Access Control) addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does ARP do?

A

ARP enables communication between devices within the same network segment by facilitating the resolution of IP addresses to their corresponding MAC addresses, allowing devices to identify the hardware addresses of other devices on the same network segment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is ARP necessary?

A

For devices to be able to communicate directly with each other at the data link layer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an ARP cache?

A

An ARP cache or ARP table is a map of IP addresses to MAC addresses for other devices in the local network. By maintaining an ARP cache, devices can quickly retrieve MAC addresses without needing to perform frequent ARP requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does ARP work?

A
  1. When a device wants to communicate with another device on the same network segment, it first checks its ARP cache to see if it already has the MAC address corresponding to the destination IP address. If the MAC address is not found in the cache, the device broadcasts an ARP request message to all devices on the local network, asking for the MAC address associated with the destination IP address.
  2. Upon receiving the ARP request, the device with the matching IP address responds with an ARP reply message containing its MAC address. This reply is unicast to the requesting device.
    • The requesting device updates its ARP cache with the newly learned MAC address, allowing it to establish a direct communication link with the destination device.
  3. Devices maintain an ARP cache or ARP table, which stores mappings of IP addresses to MAC addresses for recently resolved hosts. The ARP cache helps expedite future communication by eliminating the need for ARP requests for frequently accessed hosts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does a device do when it wants to communicate with another device on the same network segment?

A

It first checks its ARP cache to see if it already has the MAC address corresponding to the destination IP address. If the MAC address is not found in the cache, the device broadcasts an ARP request message to all devices on the local network, asking for the MAC address associated with the destination IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens when an ARP request is sent?

A

Upon receiving the ARP request, the device with the matching IP address responds with an ARP reply message containing its MAC address. This reply is unicast to the requesting device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does a device do when it receives an ARP reply message?

A

The device updates its ARP cache with the newly learned MAC address, allowing it to establish a direct communication link with the destination device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does a device store MAC addresses to other devices?

A

Devices maintain an ARP cache or ARP table, which stores mappings of IP addresses to MAC addresses for recently resolved hosts. The ARP cache helps expedite future communication by eliminating the need for ARP requests for frequently accessed hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the IPv6 equivalent of ARP?

A

In IPv6 networks, the equivalent protocol to ARP is the Neighbor Discovery Protocol (NDP). NDP serves similar functions as ARP but is specifically designed for IPv6 networks and incorporates additional features to support IPv6 address resolution and neighbor discovery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is NDP?

A

The Neighbor Discovery Protocol (NDP) is the IPv6 equivalent of ARP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does NDP differ from ARP?

A
  1. Facilitates neighbor discovery, router discovery, and address autoconfiguration in IPv6 networks. It allows devices to discover and maintain a list of neighboring devices on the same link and learn about available routers for off-link communication.
  2. Includes Router Solicitation (RS) and Router Advertisement (RA) messages, which enable devices to discover routers and configure IPv6 addresses automatically. Routers periodically send RA messages to advertise their presence and configuration parameters to neighboring devices.
  3. Uses Neighbor Solicitation (NS) and Neighbor Advertisement (NA) messages for address resolution and neighbor reachability verification in IPv6 networks. Devices send NS messages to resolve IPv6 addresses to link-layer addresses and receive NA messages in response from neighboring devices.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How are ARP and NDP similar?

A

ARP and NDP fulfill similar roles by providing mechanisms for address resolution, neighbor discovery, and efficient communication between devices within the same network segment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are RS and RA messages?

A

Router Solicitation (RS) and Router Advertisement (RA) messages enable devices to discover routers and configure IPv6 addresses automatically. Routers periodically send RA messages to advertise their presence and configuration parameters to neighboring devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are NS and NA messages?

A

NDP uses Neighbor Solicitation (NS) and Neighbor Advertisement (NA) messages for address resolution and neighbor reachability verification. Devices send NS messages to resolve IPv6 addresses to link-layer addresses and receive NA messages in response from neighboring devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly