CCN Questions
CCN Questions
You work for a large communications corporation named GlobeComm which has been
assigned a Class A network address. Currently, the company has 1,000 subnets in
offices around the world. You want to add 100 new subnets over the next three years,
and you want to allow for the largest possible number of host addresses per subnet.
Which subnet mask would you choose?
Ans: requirement = 1000 subnets + 100 subnets
= 1100 subnets
11
2 = 2048 – 2 = 2046 usable subnets
Defaultclass A subnet mask= 255.0.0.0
= 11111111 00000000 00000000 00000000
2. You have been asked to create a subnet mask for the 172.16.0.0 network. Your
organization requires 900 subnets, with at least 50 hosts per subnet. What subnet
mask should you use?
Department No of Hosts
Engineering 27
Customer Care 18
IT 8
Finance 12
HR 4
6. In GBN protocol, assume sender Window size = 15 and Tp = 79.5ms & Tt = 10ms. What
is the Efficiency of the protocol and Throughput given Bandwidth = 100 bps?
Efficiency = N/(1+2a)
A = Tp/Tt
= 79.5/10
= 7.95
Efficiency = 15/(1+2 (7.95))
= 0.88
Throughput = Efficiency x Bandwidth
= 0.88 x 100
= 88
7. Host A receives a datagram of size 5500 bytes from its transport layer along with an IP
header of length 20 bytes. The datagram is sent to host B having router with a
Maximum Transmission Unit (MTU) of 1000 bytes. Apply process of Fragmentation.
Ans:
5500 20
Data IP header
Number of packet fragments = (Total size of packet / MTU )
= 5520 / 1000
= 5.52
=6
So,Datagram with data 5500 byte fragmented into 6 fragments
976 20 976 20
Data IP headerData IP header
The offset for this datagram is 0 The offset for this datagram is 976/8 = 122
976 20 976 20
Data IP headerData IP header
The offset for this datagramThe offset for this datagram is 0
is (976+976)/8 = 244 is (976+976)/8 = 244
976 20 620 20
Data IP headerData IP header
The offset for this datagram is 0 The offset for this datagram is 0
is (976+976)/8 = 244 is (976+620)/8 = 244
8. Calculate the Hamming codeword for the message 0100010101011101. Assume that
there is an error in 13thbit.
Ans:
P1 P2 0 P4 1 0 0 P8 0 1 0 1 0 1 0 P16 1 1 1 0 1
Error in 13 bit
0 0 0 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1 1 0 1
01000
+ 00101
01101
16 8 4 2 1
(13)10
The answer is correct there is an error in bit 13.