HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Services Conf - Page 10

ARP table, Source IP address and source MAC address, Target IP address

Page 10 highlights

1. Host A looks in its ARP table to see whether there is an ARP entry for Host B. If yes, Host A uses the MAC address in the entry to encapsulate the IP packet into a data link layer frame and sends the frame to Host B. 2. If Host A finds no entry for Host B, Host A buffers the packet and broadcasts an ARP request using the following information: { Source IP address and source MAC address-Host A's own IP address and the MAC address { Target IP address-Host B's IP address { Target MAC address-An all-zero MAC address All hosts on this subnet can receive the broadcast request, but only the requested host (Host B) processes the request. 3. Host B compares its own IP address with the target IP address in the ARP request. If they are the same, Host B: a. Adds the sender IP address and sender MAC address into its ARP table. b. Encapsulates its MAC address into an ARP reply. c. Unicasts the ARP reply to Host A. 4. After receiving the ARP reply, Host A: a. Adds the MAC address of Host B to its ARP table. b. Encapsulates the MAC address into the packet and sends it to Host B. Figure 2 ARP address resolution process If Host A and Host B are on different subnets, the resolution process is as follows: 1. Host A sends an ARP request to the gateway. The target IP address in the ARP request is the IP address of the gateway. 2. After obtaining the MAC address of the gateway from an ARP reply, Host A sends the packet to the gateway. 3. If the gateway maintains the ARP entry of Host B, it forwards the packet to Host B directly; if not, it broadcasts an ARP request, in which the target IP address is the IP address of Host B. 4. After obtaining the MAC address of Host B, the gateway sends the packet to Host B. ARP table An ARP table stores dynamic and static ARP entries. 2

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

2
1.
Host A looks in its ARP table to see whether there is an ARP entry for Host B. If yes, Host A uses the
MAC address in the entry to encapsulate the IP packet into a data link layer frame and sends the
frame to Host B.
2.
If Host A finds no entry for Host B, Host A buffers the packet and broadcasts an ARP request using
the following information:
{
Source IP address and source MAC address
—Host A’s own IP address and the MAC address
{
Target IP address
—Host B’s IP address
{
Target MAC address
—An all-zero MAC address
All hosts on this subnet can receive the broadcast request, but only the requested host (Host B)
processes the request.
3.
Host B compares its own IP address with the target IP address in the ARP request. If they are the
same, Host B:
a.
Adds the sender IP address and sender MAC address into its ARP table.
b.
Encapsulates its MAC address into an ARP reply.
c.
Unicasts the ARP reply to Host A.
4.
After receiving the ARP reply, Host A:
a.
Adds the MAC address of Host B to its ARP table.
b.
Encapsulates the MAC address into the packet and sends it to Host B.
Figure 2
ARP address resolution process
If Host A and Host B are on different subnets, the resolution process is as follows:
1.
Host A sends an ARP request to the gateway. The target IP address in the ARP request is the IP
address of the gateway.
2.
After obtaining the MAC address of the gateway from an ARP reply, Host A sends the packet to the
gateway.
3.
If the gateway maintains the ARP entry of Host B, it forwards the packet to Host B directly; if not,
it broadcasts an ARP request, in which the target IP address is the IP address of Host B.
4.
After obtaining the MAC address of Host B, the gateway sends the packet to Host B.
ARP table
An ARP table stores dynamic and static ARP entries.