Data Networks Summer 2007 Homework #3



Similar documents
First Midterm for ECE374 03/24/11 Solution!!

2 TCP-like Design. Answer

TCP in Wireless Mobile Networks

Application Level Congestion Control Enhancements in High BDP Networks. Anupama Sundaresan

Lecture 15: Congestion Control. CSE 123: Computer Networks Stefan Savage

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP)

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

First Midterm for ECE374 03/09/12 Solution!!

15-441: Computer Networks Homework 2 Solution

Computer Networks - CS132/EECS148 - Spring

Final for ECE374 05/06/13 Solution!!

Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation

TCP over Wireless Networks

First Midterm for ECE374 02/25/15 Solution!!

Congestion Control Review Computer Networking. Resource Management Approaches. Traffic and Resource Management. What is congestion control?

TCP Westwood for Wireless

A Survey on Congestion Control Mechanisms for Performance Improvement of TCP

Prefix AggregaNon. Company X and Company Y connect to the same ISP, and they are assigned the prefixes:

Chapter 6 Congestion Control and Resource Allocation

Simulation-Based Comparisons of Solutions for TCP Packet Reordering in Wireless Network

CS268 Exam Solutions. 1) End-to-End (20 pts)

International Journal of Scientific & Engineering Research, Volume 6, Issue 7, July ISSN

SJBIT, Bangalore, KARNATAKA

4 High-speed Transmission and Interoperability

APPENDIX 1 USER LEVEL IMPLEMENTATION OF PPATPAN IN LINUX SYSTEM

Transport Layer Protocols

Lecture Objectives. Lecture 07 Mobile Networks: TCP in Wireless Networks. Agenda. TCP Flow Control. Flow Control Can Limit Throughput (1)

Congestions and Control Mechanisms n Wired and Wireless Networks

This sequence diagram was generated with EventStudio System Designer (

Optimization of Communication Systems Lecture 6: Internet TCP Congestion Control

Sample Network Analysis Report

High-Speed TCP Performance Characterization under Various Operating Systems

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

COMP 361 Computer Communications Networks. Fall Semester Midterm Examination

Answer: that dprop equals dtrans. seconds. a) d prop. b) d trans

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit

Homework 2 assignment for ECE374 Posted: 02/21/14 Due: 02/28/14

Research of TCP ssthresh Dynamical Adjustment Algorithm Based on Available Bandwidth in Mixed Networks

EFFECT OF TRANSFER FILE SIZE ON TCP-ADaLR PERFORMANCE: A SIMULATION STUDY

Applications. Network Application Performance Analysis. Laboratory. Objective. Overview

An Improved TCP Congestion Control Algorithm for Wireless Networks

Quality of Service versus Fairness. Inelastic Applications. QoS Analogy: Surface Mail. How to Provide QoS?

Transport layer issues in ad hoc wireless networks Dmitrij Lagutin,

TCP based Denial-of-Service Attacks to Edge Network: Analysis and Detection

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006

Multipath TCP in Practice (Work in Progress) Mark Handley Damon Wischik Costin Raiciu Alan Ford

A Congestion Control Algorithm for Data Center Area Communications

Low-rate TCP-targeted Denial of Service Attack Defense

TCP, Active Queue Management and QoS

Operating Systems and Networks Sample Solution 1

TCP/IP Over Lossy Links - TCP SACK without Congestion Control

THE Transmission Control Protocol (TCP) has proved

TCP PACKET CONTROL FOR WIRELESS NETWORKS

A Survey: High Speed TCP Variants in Wireless Networks

Performance evaluation of TCP connections in ideal and non-ideal network environments

High Speed Internet Access Using Satellite-Based DVB Networks

Computer Networks Homework 1

Oscillations of the Sending Window in Compound TCP

An enhanced approach for transmission control protocol traffic management Mechanism for Wireless Network

A Study on TCP Performance over Mobile Ad Hoc Networks

Analytic Models for the Latency and Steady-State Throughput of TCP Tahoe, Reno and SACK

Outline. TCP connection setup/data transfer Computer Networking. TCP Reliability. Congestion sources and collapse. Congestion control basics

SELECTIVE-TCP FOR WIRED/WIRELESS NETWORKS

AN IMPROVED SNOOP FOR TCP RENO AND TCP SACK IN WIRED-CUM- WIRELESS NETWORKS

Per-Flow Queuing Allot's Approach to Bandwidth Management

The Data Replication Bottleneck: Overcoming Out of Order and Lost Packets across the WAN

Active Queue Management (AQM) based Internet Congestion Control

TCP loss sensitivity analysis ADAM KRAJEWSKI, IT-CS-CE

Improving Effective WAN Throughput for Large Data Flows By Peter Sevcik and Rebecca Wetzel November 2008

Comparative Analysis of Congestion Control Algorithms Using ns-2

TCP/IP In Cellular Networks

STUDY OF TCP VARIANTS OVER WIRELESS NETWORK

The Problem with TCP. Overcoming TCP s Drawbacks

Network Performance: Networks must be fast. What are the essential network performance metrics: bandwidth and latency

TCP Adaptation for MPI on Long-and-Fat Networks

A packet-reordering solution to wireless losses in transmission control protocol

Network traffic: Scaling

ALTHOUGH it is one of the first protocols

Homework 2 assignment for ECE374 Posted: 02/20/15 Due: 02/27/15

La couche transport dans l'internet (la suite TCP/IP)

TCP in Wireless Networks

Chapter 5. Transport layer protocols

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Key Components of WAN Optimization Controller Functionality

FEW would argue that one of TCP s strengths lies in its

Referring to the above question, the end-to-end delay (transmission delay plus propagation delay) is

La couche transport dans l'internet (la suite TCP/IP)

Burst Testing. New mobility standards and cloud-computing network. This application note will describe how TCP creates bursty

Visualizations and Correlations in Troubleshooting

Transcription:

Data Networks Summer Homework # Assigned June 8, Due June in class Name: Email: Student ID: Problem Total Points

Problem ( points) Host A is transferring a file of size L to host B using a TCP connection. Host A sends the file data in fixed size segments (or packets) equal to the Maximum Segment Size (MSS), a predetermined value, which gives the maximum number of data bytes that can be sent in a TCP segment. Host B sends an acknowledgement immediately upon receiving a data segment. Let R be the round trip delay between A and B. The transmission delay to send a data segment is T. Assume the transmission delay to send an acknowledgement is negligible. The advertised receiver window size of host B is W. In this problem, we are only concerned with the data transmission phase of TCP. We assume the TCP connection is already established. TCP performs the slow start and congestion avoidance mechanisms. There is no error or packet loss during transmission. (a) Given W = *MSS, L = *MSS, how long does it take for the file to be sent and acknowledged? ( points) Advertised receiver window limits how large the sender s window can grow to. Therefore, when slow start opens up the sender s window size to W, the sender s window size will become fixed at W unless packet loss occurs. Here, we will also assume R to be larger than *T. As can be seen, the total time required is *(T+R). Given W = *MSS, L = *MSS, how long does it take for the file to be sent and acknowledged? ( points) Now, since W is *MSS, the situation is shown in the left. The total time is now *(T+R) + *T.

Problem ( points) TCP congestion control has many undesirable properties in practice. In the following scenarios, explain in detail what undesirable characteristics may a TCP data transfer exhibit and the underlying reasons for them. (a) A single TCP connection on a link with Gbps of bandwidth and the RTT is ms. ( points) At this bandwidth and RTT, it takes a window size of.mb (Gbps * ms) to fully utilize the link. TCP slow start would take many round trip times to reach a window size of.mb because the beginning window size is one segment and a segment is usually small (approx. bytes). Thus, TCP s efficiency over a high bandwidth high delay link is very poor. A TCP connection with a ms RTT sharing a bottleneck link with other TCP connections with a ms RTT. ( points) Since TCP s throughput, as we have analyzed in class, is inversely proportional to the RTT of the connection, TCP will provide unfair allocation of bandwidth among the data flows in this scenario. (c) A TCP connection over a wireless link where random bit errors may occur due to interference. ( points) Since TCP uses packet loss as an implicit indicator of congestion and cut back the sender s window size to slow down, when a random bit error occurs in the wireless transmission and corrupt a packet, TCP would mis-interpret that as a sign of congestion and reduce sending window size by half, even though there is no congestion in the network.

Problem ( points) Consider a network link with the following characteristics: Link speed = Gbps, RTT = ms, and Data packet size = bytes. Assume all traffic is transmitted using a TCP-like window-based transmission protocol with the following congestion control algorithm: () Congestion avoidance, cwnd = cwnd + after one RTT, and () Fast recovery, cwnd = cwnd/ when loss occurs. (a) What is the congestion window size W such that when the traffic is transmitted using this window size, the network link is fully utilized? ( points) W = Links speed * RTT =.MB (c) Suppose exactly when the congestion window size W reaches W, a loss occurs and the sender immediately (assume the loss is instantaneously known by the sender) activates the fast recovery algorithm. What is the asymptotic average throughput of this transmission? ( points) cwnd will oscillate between.mb and.mb. Since for each.mb RTT, cwnd only grows by one packet (KB), it takes RTTs to reach the peak cwnd size..mb Average rate = total number of bytes sent per cycle / cycle time = (*.MB (the bottom rectangular area) + (++ +9)*) (the upper triangle area) / (*ms) (cycle time) = 9.9Mbps With the same assumptions made in, compute the time it takes for the flow to recover from a loss, that is the time it takes to increase its congestion window size to W after a loss. ( points) That is simply RTTs, i.e. seconds. BTW, it is okay if you used the TCP model equation to calculate the answer for

Problem ( points) Below is a graph showing the changes in the congestion windows size of a TCP Reno connection over time. There are several places in this graph where the congestion window size changes abruptly. In particular, points have been labeled below using A to D. Explain what happened to the TCP Reno connection at each of the labeled points in the graph that caused the abrupt changes in congestion window size. Congestion window size A C B D Time A: Packet loss occurred during slow start, no more new acknowledgement is received, so congestion window stops growing B: Packet loss causes a timeout, congestion window is reset to, ssthresh is reset to half the previous congestion window size C: Slow start opens the congestion window size to ssthresh, slow start stops, and congestion avoidance begins D: Three duplicate acks were received, so fast recovery causes the the congestion window size to be halved, and the ssthresh is set to the same value. Congestion avoidance continues.

Problem ( points): Suppose two flows A and B are arriving at a weighted fair queuing scheduler. For simplicity, the link capacity is bits per second. The two flows have equal weight. The arrival times, and packet sizes are shown in the tables below. Flow A Flow B Arrival time (second) Pkt size (bits) Arrival time (second) Pkt size (bits).... 8 (a) Compute the start time and the finish time of every packet in the fluid flow system. You may draw a fluid flow system picture to help illustrate your answers. (8 points) A B 8 9 Write down the packet transmission order in the real packet system. Use A. to denote the first packet of flow A. ( points) A., B. (interchangeable) A., B., A. B., A. (interchangeable) B., B., A. A., B. (interchangeable) A., B. (interchangeable)

(c) Recall that the system virtual time V(t) is the number of rounds of service the WFQ server has given at time t. V(t=) =. One round of service is provided when bit of service is given to every flow that has traffic to send. When a packet of flow A arrives at the system at time t, its virtual start time is either the current system virtual time V(t) or the virtual finish time of the previous packet in flow A, whichever is larger. For this problem, the virtual finish time of a packet is its virtual start time plus the packet s size in bits. Compute the virtual start time and the virtual finish time of every packet in the system. (8 points) A B 8 9 Flow A Flow B Virtual S Virtual F Virtual S Virtual F (V(t))