Assignment 5
Assignment 5
QUESTION 1
How does the TCP Sliding Window mechanism contribute to efficient data transmission?
Detailed solution: The TCP Sliding Window mechanism ensures efficient data transmission by
dynamically adjusting the size of the transmission window based on the receiver's buffer capacity and
network conditions. This allows TCP to send data continuously while ensuring that the receiver is not
overwhelmed. It also prevents unnecessary retransmissions and optimizes the use of available
network bandwidth. Unlike fixed-size windows, the sliding window adapts to real-time feedback
from the receiver and the network, making it a core feature of TCP's reliability and flow control.
QUESTION 2
Detailed solution: Nagle's algorithm can introduce additional latency for small packets, as it waits
for either an acknowledgment of the last packet or enough data to fill the MSS before sending. This
can be undesirable in applications requiring low-latency communication.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Jan 2025
QUESTION 3
Which mechanism is used to avoid Silly Window Syndrome at the receiver side?
a) Delayed acknowledgment
b) Nagle’s algorithm
c) Clark’s solution
d) Fast retransmit
Detailed solution: Clark’s solution is used to avoid SWS at the receiver's side. It prevents the receiver
from advertising a small window size until the buffer can hold a significant amount of data.
QUESTION 4
Detailed solution: In Jacobson’s algorithm, α\alphaα controls the smoothing of SRTT. A higher
α\alphaα places more emphasis on historical RTT values, reducing the influence of new RTT
measurements. This leads to a slower adaptation to sudden RTT changes, which may provide more
stability but less responsiveness. Conversely, a lower α\alphaα increases sensitivity to sudden RTT
variations but can make SRTT less stable.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Jan 2025
QUESTION 5
Detailed Solution:TCP transitions from Slow Start to Congestion Avoidance once the congestion window
size exceeds the ssthresh.
QUESTION 6
If the Checksum field in the UDP header is set to 0, what does it indicate?
Detailed Solution: A checksum value of 0 in UDP indicates that the sender did not compute the
checksum. This is allowed only in IPv4, but in IPv6, the checksum is mandatory.
QUESTION 7
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Jan 2025
What is the purpose of the pseudo-header used in the UDP checksum calculation?
Correct Answer: b)
Detailed Solution: The pseudo-header includes the source IP, destination IP, protocol, and UDP
length. It is used in the checksum calculation to verify data integrity.
QUESTION 8
Detailed Solution: The listen () function sets up a socket to accept incoming connections by
placing it in a passive listening mode.
QUESTION 9
Which function can be used to configure socket options like timeout or buffer size?
a) setsockopt()
b) sockopt()
c) configure()
d) options()
Correct Answer: a)
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Jan 2025
Detailed Solution : The setsockopt() function is used to configure various socket options, such as
timeout values, buffer sizes, and other protocol-specific settings.
QUESTION 10
Detailed Solution: An iterative server is simpler to implement and debug due to its sequential
nature, making it easier to manage compared to concurrent server models.