Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
COSC 328 – LAB
Introduction to Networks
All work must be shown for marks. This lab should be electronically submitted on Canvas. Warm-up Problems: The authors of the text have provided interactive problems to help you with understanding the concepts presented in chapter 3. Please take the time to review these problems before attempting the questions as they will help. These problems are for your own learning and practice (no marks) but will allow you to review solutions. • Internet checksum • Reliable data transfer: rdt22 • TCP sequence and ACK numbers, with segment loss • TCP RTT and timeout • TCP congestion window evolution • TCP retransmissions (reliable data transmission with ACK loss) • UDP Mux and Demux • TCP Mux and Demux TCP ACks and sequence numbers (25 marks) Question 1) Given the following communication, provide the ACK# and sequence# transmitted in each TCP packet. It may be useful to draw the sequence diagram. Assume all transmissions are successful (no corruption or loss). The byte sizes provided are data bytes (header size is ignored). Review all the steps as there is a timing difference between when packets are transmitted and received. It will help to draw out the interactions and make a table to track what is happening (ie: Packet#/Type, Sequence#, Ack# and Size(bytes)). For your submission, you do not have to draw the diagram as long as all packet sequence # and acknowledgement numbers are correct (but a diagram would help). 1. After TCP handshake, sequence number for host A is 100 and Ack=200, and sequence number for host B is 200 and Ack = 100. 2. Send Packet 1: Host A sends 25 bytes to Host B. 3. Send Packet 2: Host B sends 20 bytes to Host A before packet 1 arrives at Host B. 4. Receive Packet 1: Packet 1 arrives at Host B. Sends ACK immediately with no data in packet. Version: October 2021 Page 2 of 3 5. Send Packet 3: Host A sends 50 bytes to Host B. 6. Receive Packet 2: Host A receives packet 2. Delays ACK. 7. Receive ACK 1: Host A receives ACK for packet 1. 8. Send Packet 4: Host A sends packet 4 of 10 bytes and ACKs packet 2. 9. Receive Packet 3: Host B receives packet 3. Delays ACK. 10. Receive Packet 4: Host B receives packet 4. Sends ACK. 11. Receive ACK 4: Host A receives ACK for packet 4. environment. Your solution looks like filling a table as follows. Note that the table and number of rows are not complete: Packet/Ack Seq# Ack# Size (bytes) Packet 1 100 200 25 Packet2 200 .. .. Ack1 .. .. TCP Flow and Congestion Control (25 marks) Question 2) Consider the following plot of TCP window size as a function of time. a) Identify the intervals of time when TCP slow start is operating. Version: October 2021 Page 3 of 3 b)Identify the intervals of time when TCP congestion avoidance is operating. c) After the 16th transmission round, is segment loss detected by a triple duplicate ACK or by a timeout? d)After the 22nd transmission round, is segment loss detected by a triple duplicate ACK or by a timeout? e) What is the initial value of Threshold at the first transmission round? f) What is the value of Threshold at the 18th transmission round? g)What is the value of Threshold at the 24th transmission round? h)During what transmission round is the 70th segment sent? i)