TCP/IP Transmission Control Protocol/Internet Protocol 2
Tunda Chesko
January 27, 2019
Address Resolution Protocol (ARP)
Two types of addressing are used to identify network hosts – the IP (or Layer 3) address and thelocal (or Data Link Layer) address. The Data Link Layer address is also commonly referred to as
the MAC address. Address resolution, as defined in RFC 826, is the process in which the IOS
determines the Data Link Layer address from the Network Layer (or IP) address.
ARP resolves a known IP address to a MAC address. When a host needs to transfer data across
the network, it needs to know the other host’s MAC address. The host checks its ARP cache and
if the MAC address is not there, it sends out an ARP Broadcast message to find the host,
You can debug ARP with the debug arp command.
An ARP entry is required for communication across the network. You can see that a Broadcasthas taken place if there is no ARP entry. It is also important to understand that ARP tables on
routers and switches are flushed after a certain amount of time (four hours by default) to
conserve resources and prevent inaccurate entries.
On the router below, it has an ARP entry only for its own FastEthernet interface until its
neighbour is pinged, so the first of five ping (ICMP) packets fails, as shown by the period
followed by four exclamation marks:
Router#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0002.4A4C.6801 ARPA FastEthernet0/0
Router#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:.!!!! ← first packet fails due to ARP request
Success rate is 80 percent(4/5),round-trip min/avg/max = 31/31/31 ms
Router#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 0002.4A4C.6801 ARPA FastEthernet0/0
Internet 192.168.1.2 0 0001.97BC.1601 ARPA FastEthernet0/0
Router#
Proxy ARP
Proxy ARP (see Figure 1.19 below) is defined in RFC 1027. Proxy ARP enables hosts on anEthernet network to communicate with hosts on other subnets or networks, even though they
have no knowledge of routing.
If an ARP Broadcast reaches a router, it will not forward it (by default). Routers do not forward
Broadcasts, but if they do know how to find the host (i.e., they have a route to it), they will
send their own MAC address to the host. This process is called proxy ARP and it allows the host
to send the data thinking it is going straight to the remote host. The router swaps the MAC
address and then forwards the packet to the correct next hop.
The ip proxy-arp command is enabled on Cisco routers by default.
Figure 1.19 – Router Uses Proxy ARP to Allow the Hosts to Connect
Expanding upon the previous point, part of the exam requirements is understanding howaddressing changes as packets traverse the network. As the packet traverses the network, there
must be a way for each end device to communicate, but also a way for intermediary devices to
be able to exchange the next-hop address for the packet to traverse. Proxy ARP provides the
answer again. The source and destination IP address never change but in order for the packet
to be passed to a next-hop address, the MAC address (in the frame) changes between devices.
In Figure 1.20 below, the frame will leave HOST A with the source IP address 192.168.1.1, the
destination IP address 172.16.1.2, the source MAC address AAAA:AAAA:AAAA, and the
destination MAC address AAAA: AAAA:BBBB. R1 will retain the IP addresses but change the
source address to AAAA:AAAA:CCCC. By the time the packet leaves R2 for HOST B, the IP
addresses will not have changed but the source MAC address is now AAAA:AAAA:DDDD and the
destination MAC address is AAAA:AAAA:EEEE.
Figure 1.20 – MAC Address Changes as the Packet Traverses Network Devices
Reverse Address Resolution Protocol (RARP)
RARP maps a known MAC address to an IP address. Hosts such as diskless workstations (alsoknown as thin clients) know their MAC address when they boot. They use RARP to discover
their IP address from a server on the network.
Gratuitous Address Resolution Protocol (GARP)
GARP is a special ARP packet. A normal host will always send out a GARP request after the linkgoes up or the interface is enabled. Gratuitous in this case means a request/reply that is not
normally needed according to the ARP RFC specification but could be used in some cases. A
gratuitous ARP request is an ARP request packet where the source MAC, the source IP, and the
destination IP addresses are all set to the IP address of the machine issuing the packet, and the
destination MAC is the Broadcast address FFFF: FFFF: FFFF. Ordinarily, no reply packet will
occur.
A GARP reply is one to which no request has been made (if you see a GARP reply, that means
another computer on the network has the same IP address as you have). GARP is used when a
change of state happens in FHRP protocols (e.g., HSRP; this will be covered later), with the
objective of updating the Layer2 CAM table. We will discuss GARP again in the IPv6 section.
Simple Network Management Protocol (SNMP)
SNMP is used for network management services. An SNMP management system allows network
devices to send messages called traps to a management station. This informs the network
administrator of any faults on the network (such as faulty interfaces), high CPU utilisation on
servers, etc.
You can debug SNMP traffic with the debug snmp command. SNMP uses UDP ports 161 and 162.
Hyper Text Transfer Protocol Secure (HTTPS)
TLS, and the older protocol SSL, is used for secure communication over the Internet, which is
carried out by means of cryptography. You will also find these used for e-mail and Voice over IP
(VoIP), and when surfing sites which begin with the URL https://. HTTP with TLS/SSL (HTTPS)
uses port 443.
IP Configuration Command
This is not actually a Cisco tool but it’s part of your troubleshooting toolkit. The ipconfigcommand used at a Windows command prompt allows you to use several switches, but
perhaps the most commonly used command is ipconfig /all, as shown in the screenshot
below:
Figure 1.21 – The ipconfig /all Command Output
Other switches you can use with the ipconfig command are as follows:/? Display this help message
/all Display full configuration information
/release Release the IP address for the specified adapter
/renew Renew the IP address for the specified adapter
/flushdns Purges the DNS Resolver cache
/registerdns Refreshes all DHCP leases and re-registers DNS names
Cables and
TCP/IP Transmission Control Protocol/Internet Protocol 2
Reviewed by Tunda Chesko
on
January 27, 2019
Rating: