No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.

Configuration Guide - IP Service
S1720, S2700, S5700, and S6720 V200R011C10

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DHCP policy VLAN, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel, and IPv4 over IPv6 tunnel.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Dynamic ARP

Dynamic ARP


Dynamic ARP entries are automatically generated and maintained when ARP packets are sent and received. They can be aged, updated, or overwritten by Static ARP entries.

Dynamic ARP applies to complex networks that transmit delay-sensitive services.

Address Resolution Process

Dynamic ARP broadcasts ARP Request packets and unicasts ARP Reply packets to complete address resolution.

Figure 3-1  Address resolution process

In Figure 3-1, Host_1 and Host_3 are on the same network segment, and Host_1 needs to communicate with Host_3.

  1. Host_1 searches its local ARP table for the ARP entry of Host_3. If the MAC address of Host_3 is found, Host_1 uses this MAC address to encapsulate the data packet into a frame and sends it to Host_3. If Host_1 does not find the MAC address of Host_3, Host_1 caches the data packet and broadcasts an ARP Request packet. (For details on the format of the ARP Request packet, see ARP Packet Format.)
  2. Switch_1 receives the ARP Request packet and forwards it in the appropriate broadcast domain.
  3. Host_2 and Host_3 in that broadcast domain both receive the ARP Request packet. Because the destination IP address of the ARP Request packet is Host_3's IP address, Host_3 adds the source IP and MAC addresses of the ARP Request packet to its ARP table. It then unicasts an ARP Reply packet to Host_1. (For details on the format of the ARP Reply packet, see Figure 3-1.)
  4. Switch_1 receives the ARP Reply packet and forwards it to Host_1. Upon receipt, Host_1 adds the MAC address of Host_3 to its ARP table. It then encapsulates the data packet into a frame and forwards it to Host_3.

In Figure 3-1, Host_1 and Host_4 are on different network segments, and a default gateway address (the Router's IP address) has been set on Host_1. If Host_1 and Host_4 need to communicate, Host_1 must first discover the router's MAC address. The process for Host_1 to learn the Router's MAC address and for the Router to learn Host_4's MAC address is similar to that between Host_1 and Host_3. When the data packet from Host_1 arrives at the Router, the Router forwards the packet to Host_4.

ARP Aging Mechanism

In Figure 3-1, if Host_1 broadcasts an ARP Request packet every time it sends data to Host_3, network communication traffic will greatly increase. Furthermore, all other hosts on the network have to receive and process the ARP Request packets, which lowers network efficiency. To resolve this problem, devices use ARP tables to record the ARP entries they have learned.

To ensure that the capacity limit of ARP tables is not exceeded and the ARP entries in the table are correct, devices age and update dynamic ARP entries.

The aging parameters of a dynamic ARP entry include the aging time, number of aging probe attempts, and aging probe mode. After the aging time of a dynamic ARP entry expires, the device sends an aging probe packet (ARP Request packet) to detect whether the peer device is present. If the device receives an ARP Reply packet, it updates this dynamic ARP entry. If the device does not receive an ARP Reply packet, it deletes the dynamic ARP entry.

The aging probe packet can be a unicast or broadcast packet. By default, the device only broadcasts the last ARP aging probe packet to the peer host or device, and unicasts other ARP aging probe packets. When the MAC address of the peer device is fixed, an interface can be configured to unicast ARP aging probe packets.

If the interface goes Down, the device immediately deletes the interface's dynamic ARP entries.

ARP Packet Format

The length of an ARP packet is 42 bytes. The first 14 bytes represent an Ethernet frame header, and the last 28 bytes contain the ARP packet information.

Figure 3-2 shows the format of an ARP packet.

Figure 3-2  Format of an ARP Request or Reply packet

Table 3-1 describes the fields within an ARP packet.

Table 3-1  Fields in an ARP packet




Ethernet destination MAC

48 bits

Ethernet destination MAC address.

This field in an ARP Request packet is the broadcast address 0xffff-ffff-ffff.

Ethernet source MAC

48 bits

Ethernet source MAC address.

Frame type

16 bits

Data type.

The value of this field is 0x0806 for an ARP Request or Reply packet.

Hardware type

16 bits

Type of the hardware address.

The value of this field is 1 for an Ethernet.

Protocol type

16 bits

Type of the protocol address to be mapped on the sender.

The value of this field is 0x0800 for an IP address.

Hardware address length

8 bits

Hardware address length.

The value of this field is 6 for an ARP Request or Reply packet.

Protocol address length

8 bits

Protocol address length.

The value of this field is 4 for an ARP Request or Reply packet.


16 bits

Operation type. The values are as follows:
  • 1: ARP Request packet
  • 2: ARP Reply packet

Source MAC

48 bits

Source MAC address. The value of this field is the same as the Ethernet source MAC address in the Ethernet frame header.

Source IP

32 bits

Source IP address.

Destination MAC

48 bits

Destination MAC address.

The value of this field in an ARP Request packet is 0x0000-0000-0000.

Destination IP

32 bits

Destination IP address.

Updated: 2020-02-26

Document ID: EDOC1000178170

Views: 272606

Downloads: 1028

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next