Saba Tariq 061 CN Lab 3
Saba Tariq 061 CN Lab 3
Date: 13th-October-2022
Question no. 1:
IP addressing:
The IP address is used to identify a specific machine on a particular network. It also helps
build a virtual connection between a destination and source. An IPv4 address consists of 4
portions separated by a dot. It is divided into two parts, first is network address and second
one is host address. There are two type of IP version;
IPv4 is a numerical address which contains 32 bits. It can make 232 unique addresses over
network.
IPv6 is an alphabetical address which contains 128 bits. It can make 2128 unique addresses.
Scheme of IP addressing:
TCP/IP includes an Internet addressing scheme that allows users and applications to identify
and communicate with specific networks or hosts. A web address works like a mailing
address, allowing you to route data to its specific destination. TCP/IP provides standards for
assigning addresses to networks, subnets, hosts, and sockets, and using special addresses for
broadcasts and local loopbacks.
An Internet address consists of a network address and a host (or local) address. This two-part
address allows the sender to specify a network and a specific host on the network. Each
network is assigned a unique official network address when connecting to other Internet
networks. The Internet addressing scheme consists of Internet Protocol (IP) addresses and
two special IP addresses.
Classes of IP address:
i. Class A:
Class A is used when there is large number of hosts. The IP address is divided into 1:3 ratio
where 1st part (8bits) consist of network address whereas other three parts (24 bits) contain
specific host address. The starting address is 0.0.0.0 and ending address is 127.255.255.255.
There are possible 128 networks over class A.
ii. Class B:
Class B is divided into 2:2 ratio. 16 bits contain network address and 16 bits contain host
address. There are 16,384 possible Class B networks. The staring address is 128.0.0.0 and
ending address is 191.255.255.255.
iii. Class C:
Class C is divided into 3:1 ratio. First 24 bits contain network address and last 8 bits contain
host address. There are over 2 million class C networks. The starting address is 192.0.0.0 and
ending address is 223.255.255.255.
iv. Class D:
Class D is used only in multicasting network not for regular network operations. All 32 bits
contain network address only. There is no host in Class D network. The starting address is
224.0.0.0 and ending address is 239.255.255.255.
Question no. 2:
1. Star class B:
PING:
TRACE ROUTE:
2. Ring Class A: