Assignment01 PDF
Assignment01 PDF
Communication Network
Assignment #01
Section D
Electrical Department
ASSIGNMENT NO 01
- Question no 01:
Identifying Class of IP Address
- Question no 02:
Sub-netting of Class C
a. 192.168.10.0 (/30)
Solution:
/30 represents that six bits are masked in Class C
Subnet Mask = 255.255.255.252
11111111 11111111 11111111 11111100
Masked Bits
Page 1 of 9
NED University of Engineering and Technology CCN – (CS – 418)
b. 192.168.10.0 (/27)
Solution:
/27 represent that three bits masked
11111111 11111111 11111111 11100000
Masked Bits
Block size = 32
No. of host = 30
No. of Subnets = 8
Page 2 of 9
NED University of Engineering and Technology CCN – (CS – 418)
c. 192.168.10.0 (/28)
Solution:
/28 represent that four bits masked
11111111 11111111 11111111 11110000
Masked Bits
Block size = 16
No. of host = 14
No. of Subnets = 16
d. 192.168.10.0 (/29)
Solution:
/29 represent that five bits masked
11111111 11111111 11111111 11111000
Masked Bits
Block size = 8
No. of host = 6
No. of Subnets = 32
Page 3 of 9
NED University of Engineering and Technology CCN – (CS – 418)
- Question no 03:
Sub-netting of Class B
a. 172.16.0.0 (/19)
Solution:
IP address: 172.16.0.0
Subnet Mask = 255.255.224.0
Block Size = 256-224 = 32
No. of valid hosts = 213 – 2 = 8190
Number of subnets = 2 3 = 8
Summary Table:
Page 4 of 9
NED University of Engineering and Technology CCN – (CS – 418)
- Question no 04:
Sub-netting of Class A
a. 10.0.0.0 (/10)
Solution:
IP address: 10.0.0.0
Subnet Mask = 255.192.0.0
Block Size = 256-192 = 64
No. of valid hosts = 222 – 2 = 4,194,302
Number of subnets = 2 2 = 4
Summary Table:
Network Broadcast
Valid Subnets First Host Last Host
Address Address
0.0.0 10.0.0.0 10.0.0.1 10.63.255.254 10.63.255.255
64.0.0 10.64.0.0 10.64.0.1 10.127.255.254 10.127.255.255
128.0.0 10.128.0.0 10.128.0.1 10.191.255.254 10.191.255.255
192.0.0 10.192.0.0 10.192.0.1 10.255.255.254 10.255.255.255
b. 10.0.0.0 (/16)
Solution:
IP address: 10.0.0.0
Subnet Mask = 255.255.0.0
Block Size = 256-255 =1
No. of valid hosts = 216 – 2 = 65,534
Number of subnets = 2 8 = 256
Summary Table:
Network Broadcast
Valid Subnets First Host Last Host
Address Address
0.0.0 10.0.0.0 10.0.0.1 10.0.255.254 10.0.255.255
- Question no 04:
Page 5 of 9
NED University of Engineering and Technology CCN – (CS – 418)
Given a class C network address 192.168.10.0 (/24). Divide it into three sub network each with
unequal number of host’s requirement: Subnet A: 6, Subnet B: 25 and Subnet C: 2 Hosts.
Also summarize the results as required host, possible host and network host.
First Division
We start from the maximum host requirement which is 90 hosts
We will take that block size that will cover maximum host
7 hosts
1st bit borrow = 2 −2=126
subnet
6 hosts
2nd bit borrow = 2 −2=62
subnet
So we will take 128 hosts/subnet for 90 hosts “A”
subnet mask=255.255 .255 .128
Network Broadcast
Subnet First host Last host
Address Address
192.168.10.12
0 192.168.10.0 192.168.10.1 192.168.10.127
6
192.168.10.25
128 192.168.10.128 192.168.10.129 192.168.10.255
4
Second Division
Network Broadcast
Subnet First host Last host
Address Address
192.168.10.12
0 192.168.10.0 192.168.10.1 192.168.10.127
6
192.168.10.12 192.168.10.15
1 192.168.10.128 192.168.10.159
9 8
192.168.10.16 192.168.10.25
2 (left) 192.168.10.160 192.168.10.255
1 4
Page 6 of 9
NED University of Engineering and Technology CCN – (CS – 418)
Third Division
Network Broadcast
Subnet First host Last host
Address Address
192.168.10.12
0 192.168.10.0 192.168.10.1 192.168.10.127
6
192.168.10.12 192.168.10.15
1 192.168.10.128 192.168.10.159
9 8
192.168.10.16 192.168.10.17
2 192.168.10.160 192.168.10.175
1 4
192.168.10.17 192.168.10.25
3 (left) 192.168.10.176 192.168.10.255
7 4
Summary of Answer
Req Size
Subne Network Broadcast
. allocate First host Last host
t Address Address
Size d
192.168.10.12 192.168.10.12
A 90 126 192.168.10.0 192.168.10.1
6 7
192.168.10.12 192.168.10.12 192.168.10.15 192.168.10.15
B 23 30
8 9 8 9
192.168.10.16 192.168.10.16 192.168.10.17 192.168.10.17
C 7 14
0 1 4 5
Page 7 of 9