Study guide

ARP and ICMP

Huawei Certified ICT Associate - Datacom HCIA-Datacom H12-811 V1.0

Track your progress as you read

Finished sections get a check mark.

1 Introduction

About HCIA-Datacom H12-811 V1.0 Study Strategies and Exam Logistics

2 Chapter 1: Network Models and Ethernet Fundamentals

OSI and TCP/IP Models Ethernet Technology and MAC Addressing Data Forwarding and Campus Network Lifecycle

3 Chapter 2: IPv4 Addressing and Transport Protocols

IPv4 Addressing and Subnetting ARP and ICMP TCP and UDP Principles Common Ports and Application Protocols

4 Chapter 3: Huawei VRP Basics and Device Management

VRP CLI Views and Core Commands Configuration Save, Reset, and File System SSH, Telnet, and Console Access Display Commands and Basic Troubleshooting

5 Chapter 4: Ethernet Switching and VLANs

Switch Forwarding and MAC Address Tables VLAN Concepts and Segmentation Access, Trunk, and Hybrid Link Types VLANIF and Inter-VLAN Routing

6 Chapter 5: STP, RSTP/MSTP, and Link Aggregation

STP Concepts and Election RSTP and MSTP Eth-Trunk Static and LACP Stacking Basics for Campus Switches

7 Chapter 6: IP Routing Fundamentals

RIB, FIB, and Forwarding Decisions Static and Default Routes on VRP Route Preference and Longest Match Floating Static Routes and Blackhole Routes

8 Chapter 7: OSPF Fundamentals

OSPF Areas and Router Types Neighbor States and Adjacency LSA Types and LSDB DR/BDR Election and VRP OSPF Configuration

9 Chapter 8: ACLs and AAA

Basic and Advanced ACLs traffic-filter Application and Matching Order AAA with Local, RADIUS, and HWTACACS

10 Chapter 9: DHCP, NAT, and Network Services

DHCP Server, Relay, and Snooping NAT, Easy IP, and NAT Server FTP, TFTP, DNS, NTP, HTTP Basics

11 Chapter 10: WLAN Basics

WLAN Architecture: AC, AP, and Fit Mode CAPWAP Tunnels and Forwarding Modes WPA2, WPA3, and WLAN Security Basics Basic WLAN Configuration Concepts

12 Chapter 11: WAN Basics

WAN Concepts and Encapsulation PPP Authentication: PAP and CHAP PPPoE Basics and Client Configuration

13 Chapter 12: IPv6 Fundamentals

IPv6 Address Types and Format Neighbor Discovery and ICMPv6 Stateful and Stateless DHCPv6 IPv6 Static Routes on VRP

14 Chapter 13: SDN and NFV Fundamentals

SDN and NFV Fundamentals

15 Chapter 14: Network Management and O&M

Network Management, O&M, and Automation Basics

ARP and ICMP

Key Takeaways Explain This Topic AI

ARP maps an IPv4 address to a MAC address on the local link using a broadcast request and a unicast reply.

Gratuitous ARP announces or defends an IP–MAC binding without a normal request; it is common after address changes or failover.

ICMP carries control and error messages such as echo, destination unreachable, and time exceeded—not user application data.

Ping uses ICMP echo request/reply; tracert uses TTL expiry and ICMP time-exceeded messages to list intermediate hops.

On Huawei devices, inspect bindings with display arp and clear stale entries with reset arp when troubleshooting.

Last updated: July 2026

Two protocols that keep IPv4 usable

IP can forward a packet only when the next hop’s link-layer address is known, and operators need a lightweight way to test reachability when something fails. ARP solves the mapping problem on Ethernet. ICMP carries diagnostic and error feedback. HCIA-Datacom treats both as core Internet-layer helpers—do not confuse them with transport protocols.

ARP: Address Resolution Protocol

When a host or router must send an IPv4 packet to a destination on the same subnet , the frame’s destination MAC must be that neighbor’s MAC (or the gateway’s MAC if the destination is remote). If the mapping is not already cached, ARP discovers it:

Sender builds an ARP request : “Who has IP X.X.X.X? Tell MAC Y.”

The request is sent as an Ethernet broadcast ( FF:FF:FF:FF:FF:FF ) so every node on the VLAN hears it.

The owner of IP X replies with an ARP reply unicast to the requester, containing its MAC.

Both sides typically cache the binding in an ARP table for a finite lifetime.

Key properties:

  • Property ARP behavior
  • Scope Local broadcast domain / VLAN only
  • Layer relationship Maps IPv4 (L3) ↔ MAC (L2)
  • Request destination Broadcast
  • Reply destination Unicast
  • Cache Dynamic entries age out; static entries can be configured
  • Same-subnet vs remote-subnet behavior

Same subnet: ARP for the destination IP directly.

Different subnet: ARP for the default gateway IP; the gateway then routes and performs ARP on the next hop. A classic exam trap is assuming the host ARPs for a remote server’s IP—it does not, unless proxy ARP is in play (unusual in clean designs).

Gratuitous ARP

A gratuitous ARP is an ARP message a host sends about its own IP address, often as a request with the target IP equal to the sender’s IP, or as an unsolicited reply. Uses include:

Announcing a new MAC after NIC change or VRRP/HRP failover so switches update CAM tables quickly.

Detecting IP address conflicts (another host replies unexpectedly).

Updating neighbors after DHCP renumbering.

Proxy ARP (awareness only)

A router configured for proxy ARP may answer ARP requests for remote IPs with its own MAC. That can mask misconfigured masks but creates fragile designs. Prefer correct subnetting and explicit gateways; know the concept so you can explain odd ARP replies on a router.

ARP tables on hosts and Huawei devices

Hosts store learned IP–MAC pairs. Switches learn MACs for forwarding independently; routers and Layer 3 interfaces keep ARP for next-hop resolution.

  • On Huawei VRP , the everyday commands are: <Huawei> display arp
  • <Huawei> display arp interface GigabitEthernet0/0/1
  • <Huawei> display arp dynamic
  • <Huawei> display arp static

Typical fields include IP address, MAC address, interface, VLAN/type, and aging information. Dynamic entries appear after successful resolution; static entries remain until removed.

  • Clear stale mappings when a device changes NIC or after a duplicate-IP event: <Huawei> reset arp all
  • <Huawei> reset arp interface GigabitEthernet0/0/1

Troubleshooting pattern:

ping the neighbor or gateway.

If ping fails, display arp and confirm an entry exists for the target or gateway.

Check VLAN membership, access/trunk mode, and that both devices share the same subnet mask.

Clear ARP and retest if a MAC changed but the old binding remains.

Do not confuse display arp with display mac-address . The MAC table answers “which port is this MAC on?” ARP answers “which MAC owns this IP?”

ICMP: Internet Control Message Protocol

ICMP rides with IP and carries control and error messages . It is not a transport for application payloads the way TCP/UDP are, though utilities like ping use it deliberately.

Important message types for HCIA-Datacom:

  • Type Name Typical meaning
  • 8 Echo Request Ping probe
  • 0 Echo Reply Successful ping response

3 Destination Unreachable No route, port closed (code dependent), fragmentation needed, etc.

  • 11 Time Exceeded TTL hit 0 in transit (tracert hop discovery)
  • 5 Redirect Router suggests a better next hop (security-sensitive; often ignored)
  • How ping works

The ping utility sends ICMP echo request messages and expects echo reply messages. Success proves:

Basic IP connectivity to the destination (or at least to a device that answers for it).

That intermediate devices are not silently dropping those ICMP types (some firewalls do).

Failure modes to separate mentally:

Request timeout — no reply; could be down path, filtering, or ARP failure on the local hop.

Destination unreachable — a router on the path returned ICMP type 3 with a code explaining why.

TTL expired in transit — path loop or excessively low TTL.

  • On Huawei VRP: <Huawei> ping 192.168.10.1
  • <Huawei> ping -c 5 -s 100 10.1.1.1

Options vary by software version; know that ping is the first-line reachability test after addressing and ARP look healthy.

How tracert works

Tracert (Huawei’s traceroute spelling) maps the path:

Send probes with TTL = 1 . The first hop decrements TTL to 0, drops the packet, and returns ICMP Time Exceeded .

Send probes with TTL = 2 to learn the second hop.

Continue until the destination answers (often with port unreachable for UDP-based traceroute, or echo reply for ICMP-based variants) or the max hop count is reached.

On Huawei: <Huawei> tracert 8.8.8.8

Each line shows a hop address and latency. Asterisks mean that hop did not return ICMP time-exceeded (filtering) even if forwarding still works—interpret missing hops carefully.

ARP vs ICMP: exam traps

  • Question angle Correct protocol
  • Need MAC for a local IPv4 neighbor ARP
  • Need to test whether a remote host answers ICMP (ping)
  • Learn intermediate router addresses on a path ICMP time exceeded via tracert
  • Switch CAM table aging after VRRP failover Gratuitous ARP helps update L2 tables
  • “Who has 10.1.1.5?” broadcast ARP request

Common wrong answers:

Using DNS when the host already has the IP but not the MAC.

Claiming ICMP resolves addresses—ICMP does not map IP to MAC.

Expecting ARP to work across routers without relay/proxy (normal ARP does not cross L3 boundaries).

Assuming a failed ping always means “remote host down” when local ARP or ACL issues are more likely.

Integrating with Huawei campus troubleshooting

A practical order of checks on VRP:

display ip interface brief — is the interface up with the expected IP?

display arp — is the next hop or peer resolved?

ping — does ICMP echo succeed?

tracert — where does the path stop?

Deeper tools ( display ip routing-table , ACLs, NAT) once L2 mapping and basic ICMP are understood.

ARP and ICMP will reappear when you study VLANIF gateways, OSPF neighbors (indirectly via reachability), DHCP conflicts, and WLAN CAPWAP path validation. Treat them as permanent tools in the HCIA kit, not one-off theory.