Assignment 2 - Introduction to Networking | CS 450, Assignments of Computer Systems Networking and Telecommunications

Material Type: Assignment; Class: Introduction to Networking; Subject: Computer Science; University: University of Illinois - Chicago; Term: Unknown 1989;

Typology: Assignments

Pre 2010

Uploaded on 07/29/2009

koofers-user-y83-2
koofers-user-y83-2 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
5In general, you only need to track enough sequence number bits to determine which
message in the current window to which the sequence number refers. Since there is
only 1 possibility, you need log(1) = 0 bits.
7Suppose the protocol has be in operation for some time. The sender is in state “Wait for
call from above” (top left hand quarter) and the receiver is in state “Wait for 0 from
below”. The senarios for corrupted data and corrupted arck are shown below.
12 The packet length is L, the transmission rate is R, and the round trip time is RT T .
Then on page 215, Usender =.00027. To find the number of packets nto reach 90%,
.9 = .00027nor 3333.33.
16 a) Here we have a window size of N= 3. Suppose the receiver has received packet k1,
and has ACKed that and all preceeding packets. If all of these ACKs have been
received by the sender, then the sender’s window is [k, k +N1]. Suppose next
that none of the ACKs have been received at the sender. In this second case the
sender’s window contains k1. The sender’s window size is thus [kN, k 1].
By these arguments, the sender’s window is of size 3 and begins somewhere in the
range [kN, k].
b) If the receiver is waiting for packet k, then it has recieved (and ACKed) packet
k-1 and the N-1 packets before that. If none of these N ACKs have been yet
received by the sender, then ACK messages with values of [kN, k 1] may
still be propagating back. Because the sender has sent packets [kN, k 1], it
must be the case that the sender has already received an ACK that is less than
kN1. Thus the range of in-flight ACK values can range from kN1 to
k1.
1
pf2

Partial preview of the text

Download Assignment 2 - Introduction to Networking | CS 450 and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!

5 In general, you only need to track enough sequence number bits to determine which message in the current window to which the sequence number refers. Since there is only 1 possibility, you need log(1) = 0 bits.

7 Suppose the protocol has be in operation for some time. The sender is in state “Wait for call from above” (top left hand quarter) and the receiver is in state “Wait for 0 from below”. The senarios for corrupted data and corrupted arck are shown below.

12 The packet length is L, the transmission rate is R, and the round trip time is RT T. Then on page 215, Usender = .00027. To find the number of packets n to reach 90%, .9 =. 00027 n or 3333.33.

16 a) Here we have a window size of N = 3. Suppose the receiver has received packet k − 1, and has ACKed that and all preceeding packets. If all of these ACKs have been received by the sender, then the sender’s window is [k, k + N − 1]. Suppose next that none of the ACKs have been received at the sender. In this second case the sender’s window contains k − 1. The sender’s window size is thus [k − N, k − 1]. By these arguments, the sender’s window is of size 3 and begins somewhere in the range [k − N, k]. b) If the receiver is waiting for packet k, then it has recieved (and ACKed) packet k-1 and the N-1 packets before that. If none of these N ACKs have been yet received by the sender, then ACK messages with values of [k − N, k − 1] may still be propagating back. Because the sender has sent packets [k − N, k − 1], it must be the case that the sender has already received an ACK that is less than k − N − 1. Thus the range of in-flight ACK values can range from k − N − 1 to k − 1.

19 a) True. Suppose the sender has a window size of 3 and sends packets at 1, 2, 3, and t0. At t1 (t 1 > t0) the receiver ACKs 1, 2, 3. At t2 (t 2 > t1) the sender times out and resends 1, 2, 3. At t3 the receiver receives the duplicates and re-acknowledges 1, 2, 3. At t4 the sender receives the ACKs that the receiver sent at t1 and advances the window to 4, 5, 6. At t5 the sender receives ACKs 1, 2, 3 the receiver sent at t2. These ACKs are outside the window. b) True. By essentially the same scenario as in a) c) True. d) Ture. Note that with a window size of 1, SR, GBN and the alternating bit protocol are functionally equivalent. The window size of 1 precludes the possibility of out-of-order packets (within the window). A cumulative ACK is just an ordinary ACK in this situation, since it can only refer to the single packet in the window.

26 • 1–6 and 23–

  • 16-17 and 22-
  • triple duplicate ack
  • timeout
  • 32
  • 21
  • 13
  • 7
  • 4,

28 The timeout determines how long we wait to retransmit a (presumably lost) packet, the size of the congestion control window determines how much is transmitted at a time for orginal packets.