Dynamic ARP

Definition

Dynamic ARP allows devices to dynamically learn and update the mapping between IP and MAC addresses using ARP messages. You do not need to manually configure the mapping.

Concepts Related to Dynamic ARP

Dynamic ARP uses the dynamic ARP aging mechanism.

The dynamic ARP aging mechanism enables the ARP entries that exceed the aging time to be automatically deleted. This mechanism helps reduce storage space of ARP tables and speed up ARP table queries.

Table 1 describes concepts related to the dynamic ARP aging mechanism.

Table 1 Concepts related to the dynamic ARP aging mechanism

Concept

Description

Usage Scenario

Aging probe mode

Before a dynamic ARP entry on a device is aged, the device sends ARP aging probe messages to the other devices on the same network segment. An ARP aging probe message can be a unicast or broadcast message. By default, a device broadcasts ARP aging probe messages.

  • If the IP address of the peer device remains unchanged but its MAC address changes frequently, it is recommended that you configure ARP aging probe messages to be broadcast.
  • If the MAC address of the peer device remains unchanged, network bandwidth resources are insufficient, and the aging time of ARP entries is set to a small value, it is recommended that you configure ARP aging probe messages to be unicast.

Aging time

A dynamic ARP entry has a life cycle. If a dynamic ARP entry is not updated before its life cycle ends, this dynamic ARP entry is deleted from the ARP table. The life cycle is called aging time.

Two interconnected devices can learn the mapping between their IP and MAC addresses using ARP and can save the mapping in their ARP tables. Then, the two devices can communicate by using the ARP entries. When the peer device becomes faulty, or the network adapter of the peer device is replaced but the local device does not receive any status change information about the peer device, the local device continues sending IP datagrams to the peer device. As a result, network traffic is interrupted because the ARP table of the local device is not promptly updated. To reduce the risk of network traffic interruption, an aging timer can be set for each ARP entry. After the aging timer of a dynamic ARP entry expires, the entry is automatically deleted.

Number of aging probe attempts

Before a dynamic ARP entry is aged, a device sends ARP aging probe messages to the peer device. If the device does not receive an ARP reply message after the number of aging probe attempts reaches a specified number, the dynamic ARP entry is aged.

The ARP aging timer can help reduce the risk of network traffic interruptions that occur because an ARP table is not updated quickly enough, but cannot eliminate problems due to delays. Specifically, if the dynamic ARP entry aging time is N seconds, the local device can detect the status change of the peer device after N seconds. During the N seconds, the ARP table of the local device is not updated. If the number of aging probe attempts is specified, the local device can obtain the status change information about the peer device and update its ARP table.

Implementation

Dynamic ARP entries can be created, updated, and aged.
  • Creating and updating dynamic ARP entries

    If a device receives an ARP message that meets either of the following conditions, the device automatically creates or updates an ARP entry:
    • The source IP address of the ARP message is on the same network segment as the IP address of the inbound interface. The destination IP address of the ARP message is the IP address of the inbound interface.
    • The source IP address of the ARP message is on the same network segment as the IP address of the inbound interface. The destination IP address of the ARP message is the virtual IP address of the VRRP group configured on the interface on the device.
  • Aging dynamic ARP entries

    After the aging timer of a dynamic ARP entry on a device expires, the device sends ARP aging probe messages to the peer device. If the device does not receive an ARP reply message after the number of aging probe attempts reaches a specified number, the dynamic ARP entry is aged.

    The shutdown operation on the interface will trigger ARP entry aging deletion on the interface. The shutdown operation on the Admin-VS will trigger ARP entry aging deletion in the VSn.

    This feature limits the rate of sending ARP probe messages in order to prevent too many system resources from being used during ARP probing. In high-specification scenarios, it usually takes a long time from when ARP probing starts to when ARP entry aging is complete.

Enhanced Functions

Dynamic ARP has an enhanced Layer 2 topology probe function. This function enables a device to set the aging time to 0 for all ARP entries corresponding to a VLAN to which a Layer 2 interface belongs when the Layer 2 interface becomes Up. The device then resends ARP probe messages to update all ARP entries.

If a non-Huawei device that connects to a Huawei device receives an ARP aging probe message with the destination MAC address as the broadcast address and the ARP table of the non-Huawei device contains the mapping between the IP address and MAC address of the Huawei device, the non-Huawei device does not respond to the broadcast ARP aging probe message. Therefore, the Huawei device considers the link to the non-Huawei device Down and deletes the mapping between the IP address and MAC address of the non-Huawei device. To prevent this problem, configure Layer 2 topology change so that the Huawei device unicasts ARP aging probe messages to the non-Huawei device.

Usage Scenario

Dynamic ARP applies to a network with a complex topology, insufficient bandwidth resources, and a high real-time communication requirement.

Benefits

Dynamic ARP entries are dynamically created and updated using ARP messages. They do not need to be manually maintained, greatly reducing maintenance workload.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >