Top Banner
ARP & RARP By: Muhammad Hanif
22

By: Muhammad Hanif. Have a heart that never harden, and a temper that never tire, and a touch that never hurt. The True happiness is to give love.

Jan 19, 2016

Download

Documents

Paula Morrison
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

ARP & RARPBy: Muhammad Hanif

Page 2: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Quote of the Day….

Have a heart that never harden, and a temper that never tire, and a touch that never hurt.

The True happiness is to give love respect and care especially to your close one(s).

Try to make at least one person happy every day. If you cannot do a kind deed, speak a kind word. If you cannot speak a kind word, think a kind thought. Count up, if you can, the treasure of happiness that you would distribute in a week, in a year, in a lifetime! 

Page 3: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Address Mapping

An internet is made of a combination of physical networks connected together by internetworking devices such as routers.

A packet starting from a source host may pass through several different physical networks before finally reaching the destination host.

The hosts and routers are recognized at the network level by their logical addresses. (IP addresses and are 32 bits long)

However, packets pass through physical networks to reach these hosts and routers.

At the physical level, the hosts and routers are recognized by their physical addresses. (Physical address are 48-bit MAC addresses, which is of the NIC installed in the host and router)

Page 4: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Address Mapping

For the delivery of a packet to a host or a router requires two levels of addressing: ▪ Logical &▪ Physical.

We need to be able to map a logical address to its corresponding physical address and vice versa.

These can be done using either 1. Static or2. Dynamic mapping.

Page 5: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Static Mapping

Static mapping means creating a table that associates a logical address with a physical address.

This table is stored in each machine on the network. Each machine that knows, for example, the IP address of another machine but not its physical address can look it up in the table.

Page 6: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Static Mapping

This has some limitations because physical addresses may change in the following ways:1. A machine could change its NIC, resulting in a

new physical address.2. A mobile computer can move from one physical

network to another, resulting in a change in its physical address.

To implement these changes, a static mapping table must be updated periodically.

This overhead could affect network performance.

Page 7: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Dynamic Mapping

In dynamic mapping, each time a machine knows the logical address of another machine.

It can use a protocol to find the physical address.

Two protocols have been designed to perform dynamic mapping: 1. Address Resolution Protocol (ARP) and 2. Reverse Address Resolution Protocol (RARP).

ARP maps a logical address to a physical address.

RARP maps a physical address to a logical address.

Page 8: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

The ARP Protocol

Address Resolution Protocol (ARP) Anytime a host or a router has an IP datagram to

send to another host or router, it has the logical (IP) address of the receiver.

But the IP datagram must be encapsulated in a frame to be able to pass through the physical network.

This means that the sender needs the physical address of the receiver.

A mapping corresponds a logical address to a physical address.

ARP accepts a logical address from the IP protocol, maps the address to the corresponding physical address and pass it to the data link layer.

Page 9: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

ARP Position

Page 10: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

ARP Work

ARP links an IP address with its physical address. On a typical physical network, such as a LAN, each device on a

link is identified by a physical address. Anytime a host, or a router, needs to find the physical address of

another host or router on its network, it sends an ARP query packet.

The packet includes the physical and IP addresses of the sender and the IP address of the receiver. Because the sender does not know the physical address of the receiver, the query is broadcast over the network.

Every host or router on the network receives and processes the ARP query packet, but only the intended recipient recognizes its IP address and sends back an ARP response packet.

The response packet contains the recipient’s IP and physical addresses.

The packet is unicast directly to the inquirer using the physical address received in the query packet.

Page 11: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.
Page 12: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

ARP Work

Page 13: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Cases for ARP

Destination at same Network Destination at Different Network

For this we have now total Four Cases For Destination at Same Network

1. Direct from Source to Destination For Destination at Different Network

2. From Source to Router3. From Router to Router 4. From Router to Destination

Page 14: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Case 1:

Page 15: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Case 2:

Page 16: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Case 3:

Page 17: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Case 4:

Page 18: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

RARPBy: Muhammad Hanif

Page 19: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

RARP

RARP stands for Reverse Address Resolution Protocol

RARP finds the logical address for a machine that only knows its physical address.

A RARP request is created and broadcast on the local network.

Another machine on the local network that knows all the IP address will respond with RARP reply.

Page 20: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.
Page 21: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

The RARP request packets are broadcast;

the RARP reply packets are unicast.

Note:

Page 22: By: Muhammad Hanif.  Have a heart that never harden, and a temper that never tire, and a touch that never hurt.  The True happiness is to give love.

Summary

ARP maps a logical address to a physical address.

RARP maps a physical address to a logical address.