NPTEL Computer Networks And Internet Protocol Week 5 Assignment Answers 2024

Join Our WhatsApp Group Join Now
Join Us On Telegram Join Now

NPTEL Computer Networks And Internet Protocol Week 5 Assignment Answers 2024

1. (i) UDP is a wrapper of the IP layer.
(ii) TCP is suitable for short message transfer where reliability is not a concern.
Which of the above statement(s) is/are correct?

a) Only i
b) Only ii
c) Both i and ii
d) None of the above

Answer :- For Answer Click Here 

2. When the select() system call returns zero?

a) Means an error was encountered
b) This means the call timed out without any event ready for the sockets monitored
c) Zero is the number of sockets that have events pending (read, write, exception)
d) OS kills the process.

Answer :- For Answer Click Here 

3. When you create a socket as s = socket(domain, type, protocol), why do you set the value of the protocol parameter as zero?

a) The system selects the default protocol number for the domain and socket type requested.
b) No protocol needed
c) Since a computer understands binary so that it can be either 0 or 1
d) None of the above

Answer :- For Answer Click Here 

4. SOCK STREAM represents

a) UDP-based Datagram Socket
b) TCP-based Stream Socket
c) QUIC-based Stream Socket
d) None of the above

Answer :- 

5. Socket Address is:

a) Ipv4 Address Translated to Ipv6 Address
b) Combination of IP Address and Port Address
c) Combination of MAC Address and domain Address
d) Application Layer Address

Answer :- 

6. (i) UDP does not have any flow control and congestion control mechanism.
(ii) UDP is suitable for purposes where error checking and correction is less important than timely
delivery.
Which of the above statement(s) is/are true?

a) Only i
b) Only ii
c) Both i and ii
d) None the above

Answer :- For Answer Click Here 

7. Packet integrity can be checked by the checksum mechanism.

a) True
b) False

Answer :- 

8. Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that CWND stands for the TCP congestion window. The CWND increases linearly after every round trip time till threshold.

a) True
b) False

Answer :- 

9. Consider a TCP connection in a state where there are no outstanding ACKs. The sender sends two segments back to back. The sequence numbers of the first and second segments are 230 and 290 respectively. The first segment was lost but the second segment was received correctly by the receiver.
Let X be the amount of data carried in the first segment (in bytes) and Y be the ACK number sent by the receiver. The values of X and Y are:

a) 60 and 290
b) 230 and 291
c) 60 and 231
d) 60 and 230

Answer :- 

10. In TCP congestion control mechanism is triggered once

a) 1 Duplicate ACK(DUPACK) is received
b) After a Retransmission Timeout(RTO)
c) 3 Duplicate ACK(DUPACK) is received
d) No Duplicate ACK(DUPACK) is received

Answer :- For Answer Click Here