1 of 15

Address Resolution Protocol

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

Page 0

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

2 of 15

  • In order for data transmission to a network destination to be achieved it is necessary to build association between the network layer and lower layer protocols. The means by which the Address Resolution Protocol is used to build this association and prevent the unnecessary generation of additional broadcast traffic in the network should be clearly understood.

Foreword

Page 1

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

3 of 15

  • Upon completion of this section, you will be able to:
    • Explain how the MAC address is resolved using ARP.
    • Explain the function of the ARP cache table.

Objectives

Page 2

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

4 of 15

  • Data link forwarding relies on knowledge of the MAC address of the data link layer destination.

ARP

IP: 10.1.1.1/24

MAC: 00-01-02-03-04-AA

Dest IP : 10.1.1.2

Source IP : 10.1.1.1

Dest MAC : UNKNOWN

Source MAC : 00-01-02-03-04-AA

IP : 10.1.1.2/24

MAC: 00-01-02-03-04-BB

ETH_II

IP

DATA

FCS

Host A

Host B

Page 3

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

5 of 15

  • The ARP packet operates within the boundaries of the data link layer, as can be understood by the absence of an IP header.

ARP Format

FCS

ARP

Hardware Type

Hardware

Length

Protocol Type

Protocol Length

Operation Code

Source Hardware Address

Destination Hardware Address

Source Protocol Address

Destination Protocol Address

0

31

15

Ethernet_II

Page 4

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

6 of 15

  • Host A wishes to forward data to Host C, but must identify whether it is able to reach the destination at the data link layer.

ARP Process

Host A

10.0.0.2

00-01-02-03-04-BB

Host C

Host B

10.0.0.3

00-01-02-03-04-CC

10.0.0.1

00-01-02-03-04-AA

Page 5

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

7 of 15

ARP Cache Lookup

Host A>arp -a

Internet Address Physical Address Type

Host A

Host C

Host B

10.0.0.3

00-01-02-03-04-CC

10.0.0.1

00-01-02-03-04-AA

10.0.0.2

00-01-02-03-04-BB

Page 6

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

8 of 15

ARP Request Process

Host A

Host C

Host B

10.0.0.3

00-01-02-03-04-CC

10.0.0.1

00-01-02-03-04-AA

D.MAC

S.MAC

ARP

Dest IP: 10.0.0.3

Source IP: 10.0.0.1

Dest MAC: 00-00-00-00-00-00

Source MAC: 00-01-02-03-04-AA

Operation Code: Request

FF-FF-FF-FF-FF-FF

00-01-02-03-04-AA

10.0.0.2

00-01-02-03-04-BB

Page 7

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

9 of 15

ARP Reply Process

Host C>arp -a

Internet address Physical address Type

10.0.0.1 00-01-02-03-04-AA Dynamic

Host A

Host C

Host B

10.0.0.3

00-01-02-03-04-CC

10.0.0.1

00-01-02-03-04-AA

10.0.0.2

00-01-02-03-04-BB

Page 8

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

10 of 15

ARP Reply Process

Page 9

Host A

Host C

Host B

10.0.0.3

00-01-02-03-04-CC

10.0.0.1

00-01-02-03-04-AA

00-01-02-03-04-AA

D.MAC

S.MAC

ARP

Dest IP : 10.0.0.1

Source IP : 10.0.0.3

Dest MAC : 00-01-02-03-04-AA

Source MAC : 00-01-02-03-04-CC

Operation Code: Reply

00-01-02-03-04-CC

10.0.0.2

00-01-02-03-04-BB

Page 9

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

11 of 15

ARP Cache

Host A>arp -a

Internet address Physical address Type

10.0.0.3 00-01-02-03-04-CC Dynamic

Host A

10.0.0.2

00-01-02-03-04-BB

Host C

Host B

10.0.0.3

00-01-02-03-04-CC

10.0.0.1

00-01-02-03-04-AA

Page 10

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

12 of 15

  • Proxy ARP enables data link discovery between networks.
  • Proxy replies with own (G0/0/0) address on behalf of Host B.

Proxy ARP

Host A

Host B

10.1.0.1/8

10.2.0.1/8

Proxy

G0/0/0

G0/0/1

10.2.0.2/16

10.1.0.2/16

ARP Reply with MAC of G0/0/0

ARP Request to 10.2.0.1

ARP Request to 10.2.0.1

ARP Reply with MAC of Host B

Page 11

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

13 of 15

  • Duplicate IP addresses may be assigned in a single IP network.
  • ARP can be used to discover IP address conflicts.

Gratuitous ARP

Host A

IP: 10.0.0.1/24

MAC: 00-01-02-03-04-AA

Dest IP : 10.0.0.1

Source IP : 0.0.0.0

Dest MAC : 00-00-00-00-00-00

Source MAC : 00-01-02-03-04-AA

FF-FF-FF-FF-FF-FF

D.MAC

S.MAC

ARP

00-01-02-03-04-AA

Page 12

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

14 of 15

    • Prior to generating an ARP request, what action must be taken by an end station?
    • When are gratuitous ARP messages generated and propagated on the local network?

Summary

Page 13

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.

15 of 15

www.huawei.com

Thank You

Page 14

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.