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



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

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

Computer Networks - CS132/EECS148 - Spring

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

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

Final for ECE374 05/06/13 Solution!!

Computer Networks Homework 1

COMP 361 Computer Communications Networks. Fall Semester Midterm Examination

Data Networks Summer 2007 Homework #3

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

Computer Networks - CS132/EECS148 - Spring

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

2 TCP-like Design. Answer

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science

Homework 3 assignment for ECE374 Posted: 03/13/15 Due: 03/27/15

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

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

CSE3214 Computer Network Protocols and Applications. Chapter 1 Examples and Homework Problems

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

Transport Layer Protocols

TCP over Wireless Networks

15-441: Computer Networks Homework 2 Solution

CH.1. Lecture # 2. Computer Networks and the Internet. Eng. Wafaa Audah. Islamic University of Gaza. Faculty of Engineering

TCP in Wireless Mobile Networks

CS 5480/6480: Computer Networks Spring 2012 Homework 1 Solutions Due by 9:00 AM MT on January 31 st 2012

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

Key Components of WAN Optimization Controller Functionality

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

Stop And Wait. ACK received; transmit frame 2 CS 455 3

R2. The word protocol is often used to describe diplomatic relations. How does Wikipedia describe diplomatic protocol?

This sequence diagram was generated with EventStudio System Designer (

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

The Problem with TCP. Overcoming TCP s Drawbacks

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

APPENDIX 1 USER LEVEL IMPLEMENTATION OF PPATPAN IN LINUX SYSTEM

TCP and Wireless Networks Classical Approaches Optimizations TCP for 2.5G/3G Systems. Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

COMP 3331/9331: Computer Networks and Applications. Lab Exercise 3: TCP and UDP (Solutions)

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

Computer Networks. Chapter 5 Transport Protocols

TCP Westwood for Wireless

Mobile Communications Chapter 9: Mobile Transport Layer

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

4 High-speed Transmission and Interoperability

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

SJBIT, Bangalore, KARNATAKA

CS640: Introduction to Computer Networks. Applications FTP: The File Transfer Protocol

loss-tolerant and time sensitive loss-intolerant and time sensitive loss-intolerant and time insensitive

Protocols. Packets. What's in an IP packet

THE UNIVERSITY OF AUCKLAND

Single Pass Load Balancing with Session Persistence in IPv6 Network. C. J. (Charlie) Liu Network Operations Charter Communications

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

PART-A Questions. 9. What are the two parts of message inside the envelope?

Homework Assignment #1 Solutions

Project #2. CSE 123b Communications Software. HTTP Messages. HTTP Basics. HTTP Request. HTTP Request. Spring Four parts

New York University Computer Science Department Courant Institute of Mathematical Sciences

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

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Internet Content Distribution

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

Pig Laboratory. Additional documentation for the laboratory. Exercises and Rules. Tstat Data

A Survey on Congestion Control Mechanisms for Performance Improvement of TCP

Introduction. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

Hands-on Network Traffic Analysis Cyber Defense Boot Camp

SELECTIVE-TCP FOR WIRED/WIRELESS NETWORKS

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

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

Frequently Asked Questions

Understanding Slow Start

AKAMAI WHITE PAPER. Delivering Dynamic Web Content in Cloud Computing Applications: HTTP resource download performance modelling

Network Security: Workshop. Dr. Anat Bremler-Barr. Assignment #2 Analyze dump files Solution Taken from

CS101 Lecture 19: Internetworking. What You ll Learn Today

LESSON Networking Fundamentals. Understand TCP/IP

TCP in Wireless Networks

Operating Systems and Networks Sample Solution 1

Load Balancing and Sessions. C. Kopparapu, Load Balancing Servers, Firewalls and Caches. Wiley, 2002.

Application Layer. CMPT Application Layer 1. Required Reading: Chapter 2 of the text book. Outline of Chapter 2

LARGE-SCALE INTERNET MEASUREMENTS FOR DIAGNOSTICS AND PUBLIC POLICY. Henning Schulzrinne (+ Walter Johnston & James Miller) FCC & Columbia University

Life of a Packet CS 640,

RESOURCE ALLOCATION FOR INTERACTIVE TRAFFIC CLASS OVER GPRS

Congestions and Control Mechanisms n Wired and Wireless Networks

A Survey: High Speed TCP Variants in Wireless Networks

Early Binding Updates and Credit-Based Authorization A Status Update

Bandwidth Aggregation, Teaming and Bonding

Chapter 6 Congestion Control and Resource Allocation

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

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

Using TrueSpeed VNF to Test TCP Throughput in a Call Center Environment

Advanced Computer Networks Project 2: File Transfer Application

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

1. The Web: HTTP; file transfer: FTP; remote login: Telnet; Network News: NNTP; SMTP.

Computer Networking LAB 2 HTTP

A Congestion Control Algorithm for Data Center Area Communications

Per-Flow Queuing Allot's Approach to Bandwidth Management

Active Queue Management (AQM) based Internet Congestion Control

Napster and Gnutella: a Comparison of two Popular Peer-to-Peer Protocols. Anthony J. Howe Supervisor: Dr. Mantis Cheng University of Victoria

TCP for Wireless Networks

Using over FleetBroadband

Transcription:

1 First Midterm for ECE374 03/24/11 Solution!! Note: In all written assignments, please show as much of your work as you can. Even if you get a wrong answer, you can get partial credit if you show your work. If you make a mistake, it will also help the grader show you where you made a mistake. Problem 1: In modern packet- switched networks the source hosts segments long, application- layer messages (for example, an image or a music file) into smaller packets and sends the packets into the network. The receiver then reassembles the packet back into the original message. We refer to this process as message segmentation. Figure 1 below illustrates the end- to- end transport of a message with and without message segmentation. Consider a message that is 8*10 6 bits long that is to be sent from source to destination. Suppose each link has a maximum capacity of 2Mbps. Ignore propagation, queuing, and processing delays. a. Consider sending the message from source to destination without message segmentation. How long does it take to move the message from the source host to the first packet switch? Keeping in mind that each switch uses store- and- forward packet switching, what is the total time to move the message from source host to destination host? b. Now suppose that the message is segmented into 4,000 packets, with each packet being 2,000 bits long. How long does it take to move the first packet from source host to the first switch? When the first packet is being sent from the first switch to the second switch, the second packet is being sent from the source to the first switch. At what time will the second packet be fully received at the first switch? c. How long does it take to move the file from source host to destination host when message segmentation is used? Compare this result with your answer in part (a) and comment. d. Discuss the drawbacks of message segmentation. Figure 1 Network for problem 1 a) Time to send message from source host to first packet switch =. With store- and- forward switching, the total time to move message from source host to destination host =

b) Time to send 1 st packet from source host to first packet switch =.. Time at which 2 nd packet is received at the first switch = time at which 1 st packet is received at the second switch = c) Time at which 1 st packet is received at the destination host =.. After this, every 1msec one packet will be received; thus time at which last (4000 th ) packet is received =. It can be seen that delay in using message segmentation is significantly less (almost 1/3 rd ). d) Drawbacks: i. Packets have to be put in sequence at the destination. ii. Message segmentation results in many smaller packets. Since header size is usually the same for all packets regardless of their size, with message segmentation the total amount of header bytes is more. Problem 2: Suppose within your Web browser you click on a link to obtain a Web page. The IP address for the associated URL is not cached in your local host, so a DNS lookup is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS; the successive visits incur an RTT of RTT1,, RTTn. Further suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. a. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object? Now suppose the HTML file references eight very small objects on the same server. Neglecting transmission times, how much time elapses with b. Non- persistent HTTP with no parallel TCP connections? c. Non- persistent HTTP with browser configured for 5 parallel connections? d. Persistent HTTP? e. Suppose you can access the caches in the local DNS servers of your department. Can you propose a way to roughly determine the Web servers (outside your department) that are most popular among the users in the department? Explain. a. The total amount of time to get the IP address is. Once the IP address is known, and another response time is elapses to set up the TCP connection elapses to request and receive the small object. The total

3 b. c. d... Problem 3: Consider sending a large file from a host to another over a TCP connection that has no loss. a. Suppose TCP uses AIMD for its congestion control without slow start. Assuming cwnd increases by 1 MSS every time a batch of ACKs is received and assuming approximately constant round- trip times, how long does it take for cwnd to increase from 5 MSS to 11 MSS (assuming no loss events)? b. What is the average throughput (in terms of MSS and RTT) for this connection up through time = 6 RTT? a. It takes 1 RTT to increase CongWin to 6 MSS; 2 RTTs to increase to 7 MSS; 3 RTTs to increase to 8 MSS; 4 RTTs to increase to 9 MSS; 5 RTTs to increase to 10 MSS; and 6 RTTs to increase to 11 MSS. b. In the first RTT 5 MSS was sent; in the second RTT 6 MSS was sent; in the third RTT 7 MSS was sent; in the forth RTT 8 MSS was sent; in the fifth RTT, 9 MSS was sent; and in the sixth RTT, 10 MSS was sent. Thus, up to time 6 RTT, 5+6+7+8+9+10 = 45 MSS were sent (and acknowledged). Thus, we can say that the average throughput up to time 6 RTT was (45 MSS)/(6 RTT) = 7.5 MSS/RTT. Problem 4: Consider distributing a file of F = 15 Gbits to N peers. The server has an upload rate of us = 30 Mbps, and each peer has a download rate of di = 2 Mbps and an upload rate of u. For N = 10, 100, and 1,000 and u = 300 Kbps, 700 Kbps, and 2 Mbps, prepare a chart giving the minimum distribution time for each of the combination of N and u for both client- server distribution and P2P distribution. For calculating the minimum distribution time for client-server distribution, we use the following formula: D cs = max {NF/u s, F/d min } Similarly, for calculating the minimum distribution time for P2P distribution, we use the following formula: Where, F = 15 Gbits = 15 * 1024 Mbits u s = 30 Mbps d min = d i = 2 Mbps

Note, 300Kbps = 300/1024 Mbps. Client Server N 10 100 1000 300 Kbps 7680 51200 512000 u 700 Kbps 7680 51200 512000 2 Mbps 7680 51200 512000 Peer to Peer N 10 100 1000 300 Kbps 7680 25904 47559 u 700 Kbps 7680 15616 21525 2 Mbps 7680 7680 7680 Problem 5: Compare GBN, SR, and TCP (no delayed ACK). Assume that the timeout values for all three protocols are sufficiently long such that 5 consecutive data segments and their corresponding ACKs can be received (if not lost in the channel) by the receiving host (Host B) and the sending host (Host A) respectively. Suppose Host A sends 5 data segments to Host B, and the 2 nd segment (sent from A) is lost. In the end, all 5 data segments have been correctly received by Host B. a. How many segments has Host A sent in total and how many ACKs has Host B sent in total? What are their sequence numbers? Answer this question for all three protocols. b. If the timeout values for all three protocols are much longer than 5 * RTT, then which protocol successfully delivers all five data segments in shortest time interval? a. GoBackN: A sends 9 segments in total. They are initially sent segments 1, 2, 3, 4, 5 and later re-sent segments 2, 3, 4, and 5. B sends 8 ACKs. They are 4 ACKS with sequence number 1, and 4 ACKS with sequence numbers 2, 3, 4, and 5. Selective Repeat: A sends 6 segments in total. They are initially sent segments 1, 2, 3, 4, 5 and later re-sent segments 2. B sends 5 ACKs. They are 4 ACKS with sequence number 1, 3, 4, 5. And there is one ACK with sequence number 2. TCP: A sends 6 segments in total. They are initially sent segments 1, 2, 3, 4, 5 and later

5 re-sent segments 2. B sends 5 ACKs. They are 4 ACKS with sequence number 2. There is one ACK with sequence numbers 6. Note that TCP always send an ACK with expected sequence number. b. TCP. This is because TCP uses fast retransmit without waiting until time out. Problem 6: For this problem you should familiarize yourself with Figure 2 first. Now assume that in the network shown in Figure 2 two parallel TCP transmissions are performed. TCP1 is a transmission between Source A and Sink A that uses TCP Tahoe. TCP2 is a transmission between Source B and Sink B that uses TCP Reno. Initial ssthresh for both TCP transmissions is set to 32. In this specific scenario no additional delay through forwarding is introduced. Thus, the RTT is only composed of the sums of the delay indicated on each link, times two. a. For the TCP 1 transmission, draw the resulting congestion window, assuming that a packet loss (triple duplicate ACKs) is detected at time t=900ms. b. For the TCP 2 transmission, draw the resulting congestion window, assuming that a packet loss (triple duplicate ACKs) is detected at time t=650ms. c. Describe the benefit of TCP Reno over TCP Tahoe. Figure 2 Network layout for problem 5.

Figure 3 Solution

7