Arp DHCP
Arp DHCP
i. The Internet primarily relies on IP addresses (32-bit) for communication and routing.
ii. However, the physical layer uses MAC (Media Access Control) addresses, which are 48-bit
identifiers unique to network hardware.
iii. The NIC is the resposible for traslating the data from the data link layer to the physical
layer .
d. Address Translation:
i. ARP and RARP are protocols designed to map or translate between the two types of addresses:
1. ARP translates an IP address into a MAC address.
2. RARP translates a MAC address into an IP address.
ii. WAN
iii. Wireless Ethernet
i. Communication:
1. When one device wants to communicate with another, it uses the ARP protocol to discover
the MAC address of the destination device.
2. Data is sent to the switch, which forwards it to the appropriate device.
1. What Happens?
1. A device (Argon) needs to communicate with another device (Router137) on the same
local network.
2. Argon knows the IP address of Router137 (128.143.137.1) but not its MAC address.
3. Argon broadcasts an ARP Request to all devices on the network, essentially asking:
1. "Who has the IP address 128.143.137.1? Tell me your MAC address."
1. What Happens?
1. Router137 receives the ARP Request because it matches the requested IP address
( 128.143.137.1 ).
2. Router137 responds directly to Argon with an ARP Reply, providing its MAC address.
h. ARP Cache :
i. What is an ARP Cache?
1. An ARP Cache is a temporary table maintained by a device (host or router) that stores
mappings of IP addresses to MAC addresses.
2. Whenever an ARP request is resolved, the result (IP-to-MAC mapping) is stored in the
cache to avoid sending repeated ARP requests for the same device.
1. Efficiency:
1. By caching ARP results, devices can directly retrieve the MAC address for an IP from
the cache instead of broadcasting ARP requests each time, reducing network traffic and
latency.
2. Expiration:
1. ARP cache entries are not permanent.
2. Each entry expires after a certain time (typically 20 minutes) to ensure that the
cache does not contain stale mappings (e.g., if a device disconnects or changes its
MAC address).
3. Scope:
1. Each entry in the ARP cache is specific to a network interface (e.g., eth0 , eth1 )
because devices may have multiple network interfaces.
3. Network Interface: The physical interface (e.g., eth0 , eth1 ) the device is connected to.
4. [ether]: Indicates that the hardware type is Ethernet.
1. Argon:
1. IP: 128.143.137.144 (part of Subnet A)
2. Router137:
1. Interface 1:
1. IP: 128.143.137.1 (part of Subnet A)
2. MAC: 00:e0:19:23:38:20
2. Interface 2:
1. IP: 128.143.71.1 (part of Subnet B)
2. MAC: 00:20:af:03:98:28
3. Neon:
1. IP: 128.143.71.21 (part of Subnet B)
1. ARP Request:
1. Argon sends an ARP request: "What is the MAC address of 128.143.71.21 ?"
2. Argon and Neon are on different subnets, and Argon does not have a direct route to
Neon. Without Proxy ARP, Argon would be unable to send data to Neon without additional
routing configurations.
1. A device (e.g., a diskless workstation) knows its own MAC address but does not have an
IP address.
2. During startup, the device broadcasts a RARP request to all hosts on the local
network.
1. The RARP request contains the device's MAC address.
2. This broadcast essentially asks: "What is my IP address? My MAC address is
xx:xx:xx:xx:xx:xx ."
1. A server on the network (usually a RARP server or a router configured for RARP)
listens for RARP requests.
2. The RARP server maintains a mapping of MAC addresses to IP addresses.
3. When the server receives the RARP request, it looks up the MAC address in its table
and identifies the corresponding IP address.
1. Upon receiving the RARP reply, the client configures itself with the provided IP
address.
2. The device can now communicate on the network using its newly assigned IP address.
Limited Functionality:
1. RARP can only provide an IP address. It does not provide other configuration details
like subnet masks, default gateways, or DNS settings.
2. Modern networks often require these additional configurations, which RARP cannot handle.
Server Dependency:
1. A dedicated RARP server must exist on the local network to respond to requests. If the
server is unavailable, RARP fails.
Broadcast Traffic:
BOOTP
The Bootstrap Protocol (BOOTP) is a network protocol used for configuring devices on a
network. BOOTP assigns devices an IP address and provides additional configuration
parameters such as the default gateway, subnet mask, and the name of a boot file. It is
particularly useful for diskless devices, which require instructions to load their
operating system or configuration files during startup.
a. 1. Purpose of BOOTP
i. BOOTP Request:
1. A device (client) that needs configuration sends a BOOTP Request message to the network.
2. The device does not know its own IP address, so it uses a source IP address of 0.0.0.0.
3. The request is sent as a UDP packet (User Datagram Protocol) to the BOOTP server, using:
1. Source Port: 68 (client port)
2. Destination Port: 67 (server port).
1. This ensures that all devices in the local network receive the request.
3. The response is sent to the client using the limited broadcast address if the client’s
IP is still not configured.
Features of BOOTP
a. Static Address Assignment:
i. IP addresses are manually configured on the BOOTP server and mapped to specific MAC
addresses.
ii. This is less dynamic and requires administrative effort compared to newer protocols like
DHCP.
b. No Address Renewal:
i. Once a device is assigned an IP, it keeps it until reboot, unlike DHCP where IP leases
expire and can be dynamically reassigned.
Limitations of BOOTP
a. Static Assignment: The administrator must manually configure IP addresses and MAC mappings on
the BOOTP server, making it less scalable.
b. No Lease Management: BOOTP cannot dynamically assign or reclaim IP addresses as DHCP does.
c. Limited Options: BOOTP lacks some advanced features of DHCP, such as support for temporary IP
leasing or additional configuration parameters.
3. DHCPRELEASE:
1. Sent by the client to the server to release the IP address when it no longer needs it.
2. Example:
“I no longer need the IP address 192.168.1.10 . You can assign it to another device.”
4. DHCPINFORM:
1. Sent by the client to request additional information (e.g., DNS server) without
changing the IP address.
2. Example:
“Can you tell me the DNS server address?”
4. Gateway: 192.168.0.1
Address Reservation
Address reservation in DHCP is a feature that allows the DHCP server to assign a specific IP
address to a specific device (identified by its MAC address) every time it connects to the
network.
Example
A printer with the MAC address 00:1A:2B:3C:4D:5E is reserved the IP address 192.168.1.50 . Whenever
this printer connects to the network, the DHCP server always assigns it 192.168.1.50 .
This ensures users can reliably access the printer at that IP address without the risk of it
changing.