0% found this document useful (0 votes)
45 views3 pages

Problem 1: Wellesley College - Fall 2020

This document contains two practice problems about calculating timeouts in TCP and determining sequence and acknowledgement numbers. The first problem asks to calculate new estimated round trip time, deviation, and timeout values given three measured round trip times. The second problem asks for the sequence numbers of segments sent and acknowledgement numbers received given an initial sequence number, segment sizes, transmission delay, and number of lost segments.

Uploaded by

Nikini Pabasara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views3 pages

Problem 1: Wellesley College - Fall 2020

This document contains two practice problems about calculating timeouts in TCP and determining sequence and acknowledgement numbers. The first problem asks to calculate new estimated round trip time, deviation, and timeout values given three measured round trip times. The second problem asks for the sequence numbers of segments sent and acknowledgement numbers received given an initial sequence number, segment sizes, transmission delay, and number of lost segments.

Uploaded by

Nikini Pabasara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Wellesley College – Fall 2020

CS242 – Computer Networks


Lecture 5 - exercises

Problem 1
Calculating timeouts in TCP
• Suppose that TCP's current estimated values for the
round trip time (estimatedRTT) and deviation in the
RTT (DevRTT) are 220 msec and 14 msec,
respectively (see Section 3.5.3 for a discussion of
these variables).
– Suppose that the next three measured values of the RTT
are 240 msec, 270 msec, and 400 msec respectively.

• Compute TCP's new value of estimatedRTT,


DevRTT, and the TCP timeout value after each of
these three measured RTT values is obtained.

• Use the values of α = 0.125, β = 0.25, and G = 70


msec. Round your answers to two decimal places after
leading zeros.

SEQ and ACK in TCP (1)


• The TCP sender sends an initial
window of 4 segments.

• Suppose,
– the initial value of the sender (TO)
receiver sequence number is 208
– the first 4 segments each contain
178 bytes
– the delay between the sender and
receiver is 7 time units, and so the
first segment arrives at the
receiver at t=8.

• As shown in the figure below, 0 of the


4 segment(s) are lost between the
segment and receiver.

1. Give the sequence numbers


associated with each of the 4
segments sent by the sender.
Format your answer as: a,b,c,...
2. Give the ACK numbers the
receiver sends in response to
each of the segments. If a
segment never arrives use 'x' to
denote it, and format your
answer as: a,b,c,...
SEQ and ACK in TCP (2)
• The TCP sender sends an initial
window of 3 segments.

• Suppose,
– the initial value of the sender (TO)
receiver sequence number is 208
– the first 3 segments each contain
178 bytes
– the delay between the sender and
receiver is 7 time units, and so the
first segment arrives at the
receiver at t=8.

• As shown in the figure below, 1 of the


3 segment(s) are lost between the
segment and receiver.

1. Give the sequence numbers


associated with each of the 4
segments sent by the sender.
Format your answer as: a,b,c,...
2. Give the ACK numbers the
receiver sends in response to
each of the segments. If a
segment never arrives use 'x' to
denote it, and format your
answer as: a,b,c,...

You might also like