DCN Lab - 05 - IP Addressing and ARP
DCN Lab - 05 - IP Addressing and ARP
(EL-2007)
LABORATORY MANUAL
Fall 2024
(LAB# 05)
IP Addressing and ARP
Dr. Aamer Hafeez
Date: 18-9-2024
_______________________________
LAB ENGINEER SIGNATURE & DATE
InterNetwork
The above figure shows various networks are connected, where each network is represented with
a cloud symbol. Cloud symbol is used to represent any kind of computer network.
Task 01: Search for any diagram for internetwork, paste that below, and write a few lines
describing the diagram.
• The network starts from the Internet connected to a firewall that secures the network from
external threats.
• The firewall is linked to a router which manages traffic within the local network.
• The router connects to a server and two network switches that distribute connections to
multiple networked computers.
• One branch of the network goes through another firewall, connected to a wireless access
point that provides wireless connectivity for two laptops.
• The network switches further extend the wired connections to other networked
computers.
IP Addresses:
When we are dealing with a very large internetwork like the Internet where there are billions of
devices, then it becomes impossible to keep track of every computer on the network. To solve this
issue, a new addressing scheme was needed. IP addressing was then designed and implemented to
solve this issue.
There are two types of IP addresses, IPv4 and IPv6. We are only talking about IPv4 here, except
mentioned otherwise.
To make the IPv4 address more compact and easier to read, an IPv4 address is usually written in
decimal form with a decimal point (dot) separating the bytes. This format is referred to as dotted-
decimal notation.
Task 02: Write the IP address of your computer and its binary. Find another computer on
the same network, and write down its IP address both in dotted decimal notation and in
binary.
In binary:
• 16 in binary: 00010000
• 51 in binary: 00110011
In Binary:
Hierarchy in IP addressing:
As discussed above IP was introduced because it's impossible to keep track of every computer in
the world. So in IP addressing, a hierarchy was introduced to solve this issue. There is a two-level
hierarchy in the IP addresses. IP address is divided into two parts, NetId and HostId.
NetworkID: Computers in the same network have the same NetworkID, but different HostID. Due
to this hierarchy, the internet has just to know where each network is located instead of where each
computer is located. Thus instead of dealing with billions of entries, now we have to deal with
only thousands of entries.
Once the packet arrives in the destination network, finding the destination computer is easy to
accomplish.
AND
NetID and HostID have variable lengths depending on the size of the network.
• Class A: 255.0.0.0
• Class B: 255.255.0.0
• Class C: 255.255.255.0
Finding out the NetworkID given an IP address and its subnet mask
Task 03: Find out the IP address and its subnet mask on your computer. And then find the
netID. Check out two more computers near you, and do the same. Fill the table below with
this information.
The length of HostID determines the range of IP addresses. If there are 4 bits in the HostID, then
the maximum IP addresses that can be generated are 16. In general, 2n is the maximum number of
IP addresses that can be generated with n bits.
Task 04: Find the range of IP addresses for the following neworkID
NetID/SubnetMask Range of IP addresses
180.8.0.0 / 255.255.0.0 180.8.0.1 – 180.8.255.254
210.74.16.0 / 255.255.255.0 210.74.16.1 – 210.74.16.254
190.45.128.0 / 255.255.128.0 190.45.128.1 – 190.45.255.254
Task 05: Find out the range of IP addresses for the netID of your computer.
IP address: 172.16.51.239
Subnet mask: 255.255.240.0
Network ID: 172.16.48.0
The subnet mask 255.255.240.0 means that the first 20 bits are used to identify the network, and
the remaining 12 bits are used for hosts (devices) within that network.
Now 212 = 4096 IP addresses
For broadcast address invert the subnet mask(i.e 11000000.10101000.00000001.00000000) and
then Perform a bitwise OR operation between the network address and the invert subnet mask.
10101100.00010000.00110000.00000000
OR
00000000.00000000.00001111.11111111
10101100.00010000.00111111.11111111
So, the result in decimal is 172.16.63.255.
Broadcast Address: 172.16.63.255
The first usable IP address is the network address plus one.
So First usable IP: 172.16.48.1
The last usable IP is the broadcast address minus one.
So Last usable IP: 172.16.63.254
So, the range of usable IP addresses on your network is: 172.16.48.1 – 172.16.63.254
Select networkIDs for the two networks, and assign the IP addresses to the computers.
You also need to add a gateway address in each computer, as it is necessary where multiple
networks are connected.
After configuring the router as explained above, you need to check connectivity by pinging a
computer on the other network.
Task 07: Send a packet from a computer in one network to a computer in the other network
using Packet Tracer. Note down all the source and dest MAC and IP addresses in the packet
at each leg of the transmission, i.e