r=0.1 r=0.5 r=1 Figure 2.3: Throughput of ABP vs. PER

Similar documents
Problem 7. Problem 8. Problem 9

ETSF10 Internet Protocols Transport Layer Protocols

Question 1 (6 points) Compare circuit-switching and packet-switching networks based on the following criteria:

Models. Motivation Timing Diagrams Metrics Evaluation Techniques. TOC Models

Test2: Solutions. Silvia Giordano ICA, EPFL. t2-1

Homework 3 50 points. 1. Computing TCP's RTT and timeout values (10 points)

Computer Communication Networks Midterm Review

c) With the selective repeat protocol, it is possible for the sender to receive an ACK for a packet that falls outside of its current window.

Test1: Solutions. Silvia Giordano ICA, EPFL. t1-1

a) Adding the two bytes gives Taking the one s complement gives

Congestion Control in TCP

Computer Networks Spring 2017 Homework 2 Due by 3/2/2017, 10:30am

There are 10 questions in total. Please write your SID on each page.

Problem Set 7 Due: Start of Class, November 2

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

Lecture 8. TCP/IP Transport Layer (2)

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

TCP/IP Performance ITL

Network Management & Monitoring

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

Chapter 6 Medium Access Control Protocols and Local Area Networks

Answers to Sample Questions on Transport Layer

Improving the Robustness of TCP to Non-Congestion Events

Chapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control

TCP over Wireless PROF. MICHAEL TSAI 2016/6/3

Data Link Control Protocols

Fast Retransmit. Problem: coarsegrain. timeouts lead to idle periods Fast retransmit: use duplicate ACKs to trigger retransmission

Computer Networking. Reliable Transport. Reliable Transport. Principles of reliable data transfer. Reliable data transfer. Elements of Procedure

TCP congestion control:

8. TCP Congestion Control

School of Engineering Department of Computer and Communication Engineering Semester: Fall Course: CENG415 Communication Networks

NET ID. CS519, Prelim (March 17, 2004) NAME: You have 50 minutes to complete the test. 1/17

CS321: Computer Networks Congestion Control in TCP

CPE 548 Exam #1 (50 pts) February 17, 2016

CMPE150 Midterm Solutions

Page 1. Goals for Today" Discussion" Example: Reliable File Transfer" CS162 Operating Systems and Systems Programming Lecture 11

Impact of transmission errors on TCP performance. Outline. Random Errors

Congestion Control in TCP

Computer Networks. Sándor Laki ELTE-Ericsson Communication Networks Laboratory

ICS 451: Today's plan. Sliding Window Reliable Transmission Acknowledgements Windows and Bandwidth-Delay Product Retransmission Timers Connections

Enhancing TCP Throughput over Lossy Links Using ECN-Capable Capable RED Gateways

1.6 Error Control Strategies

Department of Computer and IT Engineering University of Kurdistan. Transport Layer. By: Dr. Alireza Abdollahpouri

Investigating the Use of Synchronized Clocks in TCP Congestion Control

Name Student ID Department/Year. Midterm Examination. Introduction to Computer Networks Class#: 901 E31110 Fall 2012

CS519: Computer Networks. Lecture 5, Part 1: Mar 3, 2004 Transport: UDP/TCP demux and flow control / sequencing

CPE 448/548 Exam #1 (100 pts) February 14, Name Class: 448

4. What is the sequence number of the SYNACK segment sent by spinlab.wpi.edu to the client computer in reply to the SYN? Also Seq=0 (relative

Q23-5 In a network, the size of the receive window is 1 packet. Which of the follow-ing protocols is being used by the network?

Question Points Score total 100

TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581

College of Computer and Information Sciences Department of Computer Engineering CEN444 Computer Networks Midterm 2 Exam Second Semester 1434/1435

CS Transport. Outline. Window Flow Control. Window Flow Control

Midterm Exam CSCE 232: Computer Networks Fall Instructions:

Overview. TCP & router queuing Computer Networking. TCP details. Workloads. TCP Performance. TCP Performance. Lecture 10 TCP & Routers

Exercises TCP/IP Networking With Solutions

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

Name Student ID Department/Year. Midterm Examination. Introduction to Computer Networks Class#: 901 E31110 Fall 2006

CS244a: An Introduction to Computer Networks

TCP over Optical Burst-Switched Networks with Controlled Burst Retransmission

CS144: Intro to Computer Networks Homework 1 Scan and submit your solution online. Due Friday January 30, 4pm

EECS 122, Lecture 19. Reliable Delivery. An Example. Improving over Stop & Wait. Picture of Go-back-n/Sliding Window. Send Window Maintenance

The Impact of Delay Variations on TCP Performance

Basic Reliable Transport Protocols

Name Student ID Department/Year. Midterm Examination. Introduction to Computer Networks Class#: 901 E31110 Fall 2007

Review problems (for no credit): Transport and Network Layer

RED behavior with different packet sizes

TCP Congestion Control

under grant CNS This work was supported in part by the National Science Foundation (NSF)

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

Outline. CS5984 Mobile Computing

Transport Protocols and TCP: Review

TCP reliable data transfer. Chapter 3 outline. TCP sender events: TCP sender (simplified) TCP: retransmission scenarios. TCP: retransmission scenarios

Chapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control

Chapter 3 Review Questions

Mobile Transport Layer Lesson 02 TCP Data Stream and Data Delivery

EE122 MIDTERM EXAM: Scott Shenker, Ion Stoica

Network Management & Monitoring Network Delay

CIS 632 / EEC 687 Mobile Computing

Computer Communication Networks Midterm Review

===================================================================== Exercises =====================================================================

Tutorial 8 : Congestion Control

Chapter 13 TRANSPORT. Mobile Computing Winter 2005 / Overview. TCP Overview. TCP slow-start. Motivation Simple analysis Various TCP mechanisms

CSCI Topics: Internet Programming Fall 2008

Advanced Computer Networks

Why Your Application only Uses 10Mbps Even the Link is 1Gbps?

The Transport Layer Congestion control in TCP

EE 122: Error detection and reliable transmission. Ion Stoica September 16, 2002

CSE 473 Introduction to Computer Networks. Final Exam. Your name here: 12/17/2012

estadium Project Lab 2: Iperf Command

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

11/24/2009. Fundamentals of Computer Networks ECE 478/578. Flow Control in TCP

Communication Networks

Correcting mistakes. TCP: Overview RFCs: 793, 1122, 1323, 2018, TCP seq. # s and ACKs. GBN in action. TCP segment structure

CS519: Computer Networks. Lecture 5, Part 4: Mar 29, 2004 Transport: TCP congestion control

Chapter 5 Peer-to-Peer Protocols and Data Link Layer

15-441: Computer Networks Homework 3

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

ETSN01 Exam Solutions

CSC 4900 Computer Networks: TCP

Transcription:

Problem 19 1 0.9 r=0.1 r=0.5 r=1 0.8 Throughput 0.7 0.6 0.5 0.4 0.3 0.2 10 3 10 2 10 1 10 0 PER Figure 2.3: Throughput of ABP vs. PER Figure above shows the throughput of SRP as it varies with the packet error rate (PER). The results are plotted for a link rate of 1 Mbps, a packet size of 1 Kilobits, propagation delay of 0.1, 0.5 and 1 ms respectively. It is assumed that the transmission and propagation delay for both the data packet and the ACK are the same. The maximum transmission rate achievable is 1000 packets/s. Thus, the throughput in the plot is normalized to this maximum value. The average throughput of ABP can be obtained theoretically. It is given by λ = 1 ( ) packets/s T t 1+2(1+r)( p ) 1 p where T t is the packet transmission time, p the packet error rate (PER), r the ratio of propagation time to the transmission time. The throughput of ABP obtained through simulation should match with the theoretically obtained throughput. Note that the throughput decreases with the PER. Also note that with increasing r, the throughput reduces and the performance of ABP degrades.

Problem 20 We have a 10,000 km round-trip route with a propagation time of 5 µs/km, so it will take 50 ms to make the round trip. At a transmission rate of 100 Mbps, a full pipe will have 5 Mb of data, or 5000 thousand-bit packets. If N is the minimum window size to achieve 100% efficiency, we should have NTRANSP TRANSP +2PROP + ACK = 1 1000N 1000 + 5, 000, 000 + 80 = 1 N = 5001. We should have a window of at least 5001 packets to achieve 100% efficiency. Problem 21 (a) Total round-trip time T rt,isgivenby T rt = T SR t + T SR p + T RS t + T RS p, where Tt AB, Tp AB are the transmission time and propagation time respectively from node A to node B. We assume that there is no queueing delay at R. Propagation time in each direction is 1 ms. Transmission times per packet are given by T SR t = 8 1000 10 7 =0.8 ms, Tt RS = 8 40 =0.0107 ms, 30 1000 which gives T rt = 4.8107 ms. Thus, the window size W is W = T rt T SR t 6. (b) The probability of both a packet and its ACK being received without errors is p, where p is the probability of an ACK packet being received correctly,

the channel from S to R being error-free. Then, the average time it takes to transmit a packet successfully is given by E[T succ t ]=(1 p)tt SR + p(wtt SR + E[Tt succ ]), ( ( ) ) p 1+ W. 1 p E[Tt succ ]=Tt SR Then, the average throughput is given by λ = 1 E[T succ t ] = 950 packets/s. Problem 22 In this problem we would like to calculate the efficiency of the Go Back N (GBN) protocol in the presence of error, and assuming that errors in different packets are independent. Efficiency is defined as the ratio of the time required to transmit a packet, TRANSP, to the average time it takes for a packet to be transmitted, E(T ), Efficiency = TRANSP. E(T ) To calculate τ = E(T ), let the state of the system be the number of packets remaining to be transmitted and p be the packet error probability. The system moves from state n to n 1 when a packet is successfully transmitted; the probability of such an event is 1 p, and it takes TRANSP seconds. The system moves from state n to state n when a packet has error; the probability of such an event is p and it takes time-out seconds, where time-out is the time round-trip travel time for a packet. When the pipe is just full with N packets, then time-out is N TRANSP. From the above description we can calculate E(T ) as follows: E(T ) = (1 p)transp + p(time-out + E(T )) = TRANSP + p time-out 1 p pn TRANSP = TRANSP +. 1 p

So efficiency can be expressed as: Efficiency = TRANSP TRANSP + pn TRANSP 1 p = 1. 1+ pn 1 p Note that the value of time-out does not depend of the window size but on the number of packets that we can store in the pipe; therefore, if we increase the window size the efficiency doesn t change. However, if we increase the time-out as the window size increases, the efficiency drops. Problem 23 (a) Probability of a packet being received correctly is (1 p) d+h. (b) Probability that a data packet is received correctly and its ACK is also received correctly is P c =(1 p) d+h (1 q) a. (c) Let a random variable X equal the number of times a data packet had to be transmitted before an ACK was successfully received. Then, E[X] = P c (1 P c ) x 1 = 1. P c x=1 where P c is the probability of a packet and its ACK being correctly received as found in (b). (d) Efficiency of this protocol is given by time to transmit d data bits η = time to transmit mean number of bits transmitted before a successful ACK d = E[X](d + h + a) dp c = (d + h + a). (e) This protocol is similar to SRP in that it retransmits only those packets that failed in successful transmission of both the packet and its ACK, but since the window size is infinite, the transmitter is never idle waiting for ACKs. Thus, the analysis is not valid for the standard SRP.

Problem 18. Suppose packets n, n+1, and n+2 are sent, and that packet n is received and ACKed. If packets n+1 and n+2 are reordered along the end-to-end-path (i.e., are received in the order n+2, n+1) then the receipt of packet n+2 will generate a duplicate ack for n and would trigger a retransmission under a policy of waiting only for second duplicate ACK for retransmission. By waiting for a triple duplicate ACK, it must be the case that two packet after packet n are correctly received, while n+1 was not received. The designers of the triple duplicate ACK scheme probably felt that waiting for two subsequent packets (rather than 1) was the right tradeoff between triggering a quick retransmission when needed, but not retransmitting prematurely in the face of packet reordering.

Problem 23. a) K =number of windows that cover the object = minfk :3 0 +3 1 + +3 k 1 O=Sg ff = min ρk : 1 3k 1 3 O=S = minfk :3 k 1+2O=Sg = dlog 3 (1 + 2O=S)e b) Q is the number of times the server would stall for an object of infinite size. ρ ff Q = max k :RTT + S S R R 3k 1 0 = μ1 + log 3 1+ RTT S=R ν

c) = O R +2RTT + P X k=1 latency = O R +2RTT + P X k=1 stall k RTT + SR SR 3k 1 = O R +2RTT + P (RTT + S=R) (3P 1) 2 S R

Problem 28. a) Transfer time of all M + 1 objects : (M +1) O R TCP connection setup : Request for images : 2 RT T RT T To this we have to add the latency due to slow-start. Comparing the contribution of RTTs with that in non-persistent HTTP we see that the only RTTs that affect the response time are the two RTTs needed for setting up the TCP connection and sending the initial request and one RTT for requesting the images. In non-persistent HTTP we have a separate TCP connection setup for each object. b) Because the last window of the initial object is full and the server does not need to wait for a request for the images, the situation is identical to the server sending one large object of (M +1)O bytes. The response time is (M +1)O 2 RT T + R +P 0 RT T + S R (2 P 0 1) S R c) In the previous question, the server did not have to wait for a request for the images. The stall time after sending the initial object in that case is [S=R + RT T 2 K 1 (S=R)] +. In reality, the stall

24 time is RT T because the server has to wait for an explicit request for the images from the client. Substituting this into the response time equation gives (M +1)O 3 RT T + R +P 0 RT T + S R (2 P 0 1) S R [ S R + RT T 2K 1 S R ]+