0% found this document useful (0 votes)
126 views8 pages

Assignment01 PDF

This document contains an assignment submission for a computer communication networks course. It includes 4 questions on subnetting IP addresses of different classes: 1. Question 1 identifies the class of two IP addresses. Question 2 subnets a class C network into /30 and /27 networks. 2. Question 3 subnets a class B network into an /19 network. 3. Question 4 subnets a class A network into /10 and /16 networks. 4. The final question subnets a class C network into three networks to support unequal host requirements, summarizing the results.

Uploaded by

Hamza Khalil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views8 pages

Assignment01 PDF

This document contains an assignment submission for a computer communication networks course. It includes 4 questions on subnetting IP addresses of different classes: 1. Question 1 identifies the class of two IP addresses. Question 2 subnets a class C network into /30 and /27 networks. 2. Question 3 subnets a class B network into an /19 network. 3. Question 4 subnets a class A network into /10 and /16 networks. 4. The final question subnets a class C network into three networks to support unequal host requirements, summarizing the results.

Uploaded by

Hamza Khalil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Computer

Communication Network
Assignment #01

Submitted To: M. Ali Akhter


Submitted By: Aleena Israr
EE-16081

Section D

Electrical Department

NED University of Engineering & Technology


NED University of Engineering and Technology CCN – (CS – 418)

ASSIGNMENT NO 01

- Question no 01:
Identifying Class of IP Address

1. IP Address: 11000001 100000011 00011011 11111111


Class: C
2. IP Address: 252.5.15.111
Class: D

- 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

No. Of host ( 22 -2) = 2


Block Size = 256 – 252 = 4
Number of Subnets = 26 = 64

Online Calculator generated table:

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

Valid Subnets First Host Last Host Broadcast Address


192.168.10.0 192.168.10.1 192.168.10.30 192.168.10.31
192.168.10.32 192.168.10.33 192.168.10.62 192.168.10.63
192.168.10.64 192.168.10.65 192.168.10.126 192.168.10.127
192.168.10.128 192.168.10.129 192.168.10.166 192.168.10.167
192.168.10.160 192.168.10.161 192.168.10.190 192.168.10.191

Page 2 of 9
NED University of Engineering and Technology CCN – (CS – 418)

192.168.10.192 192.168.10.193 192.168.10.222 192.168.10.223


192.168.10.224 192.168.10.225 192.168.10.254 192.168.10.255

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)

Valid Subnets First Host Last Host Broadcast Address


172.16.0.0 172.16.0.1 172.16.31.254 172.16.31.255
172.16.32.0 172.16.32.1 172.16.63.254 172.16.63.255
172.16.64.0 172.16.64.1 172.16.95.254 172.16.95.255
172.16.96.0 172.16.96.1 172.16.127.254 172.16.127.255
172.16.128.0 172.16.128.1 172.16.159.254 172.16.159.255
172.16.160.0 172.16.160.1 172.16.191.254 172.16.191.255
172.16.192.0 172.16.192.1 172.16.223.254 172.16.223.255
172.16.224.0 172.16.224.1 172.16.255.254 172.16.255.255

- 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

You might also like