Assignment-1-Solution
Assignment-1-Solution
QUESTION 1:
For which of the following, the tester is provided only with partial information about a
network?
Correct Answer: c
Detail Solution: In the white box model, the tester has complete information about the
network. In the black box model, the tester does not have any information about the network.
Gray box testing is somewhere in between, where the tester is only provided with partial
information about the network.
____________________________________________________________________________
QUESTION 2:
Which of the following is/are not true about a packet switched network?
Correct Answer: b, c
______________________________________________________________________________
QUESTION 3:
A 1000 byte packet is sent over a 50 kilo-bits-per-second (Kbps) point-to-point link whose
propagation delay is 10 msec. The packet will reach the destination after ________ msec.
(Assume 1K = 1000)
Detail Solution: 50x1000 = 50000 bits per second can be transferred through the link.
1 bit can be sent in = (1/50000) sec
1000 byte or 8000 bits can be sent in 8000 / 50000 sec = 0.16 sec = 160 msec
Hence the packet will reach the destination after = 160 msec + 10 msec = 170 msec
_____________________________________________________________________________
QUESTION 4:
Which of the following OSI layers are host-to-host layers?
a. Session layer
b. Transport layer
c. Network layer
d. Datalink layer
Correct Answer: a, b
Detail Solution: Follows from Week-1, slide no 54. The layers transport, session, presentation
and application are host-to-host layers, while the remaining three are not.
______________________________________________________________________________
QUESTION 5:
How many bits are there in the IP address and port number?
a. 32, 16
b. 32, 8
c. 48, 16
d. 48, 8
Correct Answer: a
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Detail Solution: IP address in IPv4 is 32 bits long, whereas port numbers in TCT or UDP are 16
bits long.
____________________________________________________________________________
QUESTION 6:
Which of the following are true for the TCP protocol?
Correct Answer: a, d
Detail Solution: TCP ensures connection-oriented and reliable message transfer service
between two hosts. However, it runs on top of the IP protocol for packet delivery, which is a
datagram based service and hence individual packets constituting the message may follow
different paths. Hence the options (a) and (d) are true.
_____________________________________________________________________________
QUESTION 7:
If a 2000 byte data message is sent using TFTP, the corresponding Ethernet packet will be of
________ bytes.
Detail Solution: Follows from Week-1, slide no 65. (H-Eth + H-IP + H-UDP + H-TFTP + T-Eth)
field bytes are added to get 50 bytes. Hence the total size of the Ethernet packet will be
2000+50 = 2050 bytes.
______________________________________________________________________________
QUESTION 8:
If the IP header is 192 bits long, what will be the value of the “HLEN” field?
a. 4
b. 6
c. 32
d. 192
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Correct Answer: b
Detail Solution: The HLEN field contains the size of the IP header in multiples of 32 bits or 4
bytes. Here, size of the IP header = 192 bits = 6 x 32 bits. Hence, HLEN will contain 0110, which
is the binary equivalent of the number 6.
______________________________________________________________________________
QUESTION 9:
The maximum size of data that can be accommodated in an IP datagram is ________ bytes.
Detail Solution: The TOTAL-LENGTH field in the IP header is 16 bits, which can contain values
from 0 to 216 – 1 = 65535, the total size of an IP packet can be 65535 bytes. Also, the minimum
size of the IP header is 20 bytes, which makes the maximum size of data as 65535 – 20 = 65515
bytes.
____________________________________________________________________________
QUESTION 10:
Which of the following statements are false?
Correct Answer: b
Detail Solution: Virtual circuits have the initial overhead of connection establishment, but once
it is done, packets will flow faster as the header size is smaller. Datagrams do not require
connection establishment. For less number of packets, the overhead will dominate, and hence
datagram will be faster. For large number of packets, however, virtual circuit will become faster
as the overhead per packet becomes less. Also, in circuit switching, a dedicated communication
path is established between two end stations. Hence, only option (b) is false.
______________________________________________________________________________
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
************END*******