CN Test Solutions
CN Test Solutions
CN Test Solutions
3. The address of a class B host is to be split into subnets with a 6-bit subnet number. What
is the maximum number of subnets and the maximum number of hosts in each subnet?
Solution: Maximum number of subnets = 26-2 =62.
Maximum number of hosts is 210-2 = 1022.
4. Suppose computers A and B have IP addresses 10.105.1.113 and 10.105.1.91
respectively and they both use the same netmask N. What values of N should not be used
if A and B should belong to the same network?
(D)
The last octets of IP addresses of A and B are 113 (01110001) and 91 (01011011). The
netmask in option (D) has first three bits set in last octet. If netmask has first 3 bits set,
then these bits nmust be same in A and B, but that is not the case. In simple words, we
can say option (D) is not a valid netmask because doing binary ‘&’ of it with addresses
of A and B doesn’t give the same network address. It must be same address as A and B
are on same network.
7. In a packet switching network, packets are routed from source to destination along a
single path having two intermediate nodes. If the message size is 24 bytes and each
packet contains a header of 3 bytes, What is the optimum packet size?
Solution: Dividing a message into packets may decrease the transmission time due to
parallelism as shown in the following figure.
But after a certain limit reducing the packet size may increase the transmission time also.
Let transmission time to transfer 1 byte for all nodes be t. The first packet will take time
= (packet size)*3*t. After the first packet reaches the destination, remaining packets will
take time equal to (packet size)*t due to parallelism.
The first packet will take 6ms to reach D. While first packet was reaching D, other
packets must have been processing in parallel. So D will receive remaining packets 1
packet per 1 ms from R2. So remaining 999 packets will take 999 ms. And total time will
be 999 + 6 = 1005 ms
10. An organization has a class B network and wishes to form subnets for 64 departments.
What would be the subnet mask ?
Solution: The size of network ID is 16 bit in class B networks. So bits after 16th bit
must be used to create 64 departments. Total 6 bits are needed to identify 64 different
departments. Therefore, subnet mask will be 255.255.252.0.
12. How many bits are allocated for network id (NID) and host id(HID) in the IP address
25.193.155.233?
Solution: It is class A IP address and you know, that class A has 24 bits in HID and 8
bits in NID part.