PRACTICE QUESTIONS ON RESOURCE ALLOCATION

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

FINAL May 21, minutes

CSE 473 Introduction to Computer Networks. Exam 2. Your name here: 11/7/2012

CS 421: COMPUTER NETWORKS SPRING FINAL May 8, minutes

CS 421: COMPUTER NETWORKS FALL FINAL January 5, minutes. Name: Student No: TOT

CS 421: COMPUTER NETWORKS SPRING FINAL May 24, minutes. Name: Student No: TOT

CS 421: COMPUTER NETWORKS FALL FINAL January 12, minutes

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

Question Score 1 / 19 2 / 19 3 / 16 4 / 29 5 / 17 Total / 100

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

Computer Networks. Homework #4: No Grading

Computer Networks (Fall 2011) Homework 2

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

Exercises TCP/IP Networking With Solutions

Student ID: CS457: Computer Networking Date: 3/20/2007 Name:

Homework 1 50 points. Quantitative Comparison of Packet Switching and Circuit Switching 20 points Consider the two scenarios below:

CSE 473 Introduction to Computer Networks. Midterm Exam Review

Network Management & Monitoring

Problem 7. Problem 8. Problem 9

Flow and Congestion Control

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

CS 344/444 Computer Network Fundamentals Final Exam Solutions Spring 2007

Lecture 15: TCP over wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 13, Thursday

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

User Datagram Protocol

EC441 Midterm Two Fall 2017

CS457 Transport Protocols. CS 457 Fall 2014

Lecture 5. Transport Layer. Transport Layer 1-1

2.993: Principles of Internet Computing Quiz 1. Network

CS/ECE 438: Communication Networks for Computers Spring 2018 Midterm Examination Online

II. Principles of Computer Communications Network and Transport Layer

c. If the sum contains a zero, the receiver knows there has been an error.

Topics. TCP sliding window protocol TCP PUSH flag TCP slow start Bulk data throughput

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.

CPSC 441 Tutorial-1. Department of Computer Science University of Calgary

Congestion Control 3/16/09

CS 421: COMPUTER NETWORKS SPRING FINAL May 21, minutes

Lecture 21: Congestion Control" CSE 123: Computer Networks Alex C. Snoeren

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?

Basic Reliable Transport Protocols

CS419: Computer Networks. Lecture 10, Part 3: Apr 13, 2005 Transport: TCP performance

CMPE150 Midterm Solutions

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

Multiple unconnected networks

Bandwidth Allocation & TCP

CMPE 257: Wireless and Mobile Networking

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

Problem Set 7 Due: Start of Class, November 2

UNIT IV -- TRANSPORT LAYER

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

ECE4110, Internetwork Programming, QUIZ 2 - PRACTICE Spring 2006

NETWORK PROBLEM SET Due Date 6/28/2014

Assignment 7: TCP and Congestion Control Due the week of October 29/30, 2015

Course 6. Internetworking Routing 1/33

Protocol Overview. TCP/IP Performance. Connection Types in TCP/IP. Resource Management. Router Queues. Control Mechanisms ITL

FACULTY OF COMPUTING AND INFORMATICS

TCP/IP Performance ITL

ECE4110 Internetwork Programming. Introduction and Overview

Chapter 3 Review Questions

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

CS 138: Communication I. CS 138 V 1 Copyright 2012 Thomas W. Doeppner. All rights reserved.

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

NETWORK PROBLEM SET Solution

Department of EECS - University of California at Berkeley EECS122 - Introduction to Communication Networks - Spring 2005 Final: 5/20/2005

CS 421: COMPUTER NETWORKS FALL FINAL January 10, minutes

First Exam for ECE671 Spring /22/18

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

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP

Congestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2014

Washington State University CptS 455 Sample Final Exam (corrected 12/11/2011 to say open notes) A B C

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

EE122 MIDTERM EXAM: Scott Shenker, Ion Stoica

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

Outline 9.2. TCP for 2.5G/3G wireless

Computer Networks. Homework #3: Due 11 November 2015 (Wednesday) Just before Midterm#2!

CS 43: Computer Networks. 19: TCP Flow and Congestion Control October 31, Nov 2, 2018

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

Congestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2014

Host Solutions Group Technical Bulletin August 30, 2007

Question Points Score total 100

Congestion. Can t sustain input rate > output rate Issues: - Avoid congestion - Control congestion - Prioritize who gets limited resources

Reliable Transport I: Concepts and TCP Protocol

CSCD 330 Network Programming

Communications Software. CSE 123b. CSE 123b. Spring Lecture 3: Reliable Communications. Stefan Savage. Some slides couresty David Wetherall

Answers to Sample Questions on Transport Layer

Mobile Communications Chapter 9: Mobile Transport Layer

Data Link Control Protocols

ECE 610: Homework 4 Problems are taken from Kurose and Ross.

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

CS164 Final Exam Winter 2013

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

Congestion Control in TCP

ETSF10 Internet Protocols Transport Layer Protocols

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

EXAM TCP/IP NETWORKING Duration: 3 hours

CSE 1 23: Computer Networks

Congestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2015

ADVANCED COMPUTER NETWORKS

Applied Networks & Security

ECE697AA Lecture 3. Today s lecture

Transcription:

PRACTICE QUESTIONS ON RESOURCE ALLOCATION QUESTION : Internet Versus Station Wagon A famous maxim, sometimes attributed to Dennis Ritchie, says Never underestimate the bandwidth of a station wagon full of tapes. Suppose you need to deliver a large file between two computers that are 200 km apart and connected by a direct link. This question analyzes when it is faster to drive the data between the two locations, rather than transmit the data? (a) Suppose the station wagon drives 00 km/hour and the link has a bandwidth of 800,000 bits/second. And, suppose for simplicity that the data transfer can fully consume the link bandwidth, with no additional overhead (e.g., for headers or the TCP sawtooth). At what file size (in bytes) does the station-wagon solution start delivering the data faster? Show your work. (b) Suppose the sender transmits the data as packets with a 20-byte IP header, and 20-byte TCP header, and a maximum segment size of 52 bytes. How much more time (as a fraction) would the data transfer take on the link? (Ignore TCP congestion control and the link-layer header.) (c) Suppose that, like the path traversed by the car, the link is 200 km long. The speed of electricity in a copper cable is 200,000,000 meters/second. How big does the receive window need to be to avoid becoming the main constraint on the transfer rate? (Ignore the effects of header sizes, TCP congestion control, and packet loss, and assume that the receiver immediately sends an ACK packet after receiving each data packet and that there is no congestion.)

QUESTION 2: Transmission Overhead A B C D Suppose A has a TCP connection with B, where A sends data packets and B sends ACKs; similarly, suppose D has a TCP connection with C, where D sends data packets and C sends ACKs. Suppose the Maximum Segment Size (MSS) is 472 bytes, and all packets sent by A and D have this size; suppose also that B and C send an ACK in response to each data packet. Suppose that all packets have TCP and IP headers, as well as a 20-byte link-layer header/trailer. Assume the combined data and ACK packets fully utilize the middle link in both directions and no congestion control is applied. (2a) What fraction of the bandwidth is consumed by data traffic (i.e., the TCP segments, rather than the transport, network, and link-layer information)? Feel free to express your answer as a reduced fraction (e.g., ½ or ¾) rather than a decimal number. Show your work. (2b) What if the MSS were increased to 460 bytes? What is the new fraction? (2c) What if the MSS were increased to 460 bytes, and the receivers apply the delayed-ack mechanism to send an ACK for every other data packet? What is the new fraction? 2

QUESTION 3: TCP and Congestion Control Consider the following graph of TCP throughput (NOT DRAWN TO SCALE), where the y-axis describes the TCP window size of the sender. We will later ask you to describe what happens on the right side of the graph as the sender continues to transmit.. The window size of the TCP sender decreases at several points in the graph, including those marked by B and D. (a) Name the event at B that occurs that causes the sender to decrease its window. (b) Does the event at B necessitate that the network discarded a packet (Yes or No)? Why or why not? (c) Name the event at D that occurs that causes the sender to decrease its window. (d) Does the event at D necessitate that the network discarded a packet (Yes or No)? Why or why not? (e) For a lightly-loaded network, is the event at D MORE likely or LESS likely to occur when the sender has multiple TCP segments outstanding? (Write MORE or LESS ) 3

2. Consider the curved slope labeled by point A. Why does the TCP window behave in such a manner, rather than have a linear slope? (Put another way, why would it be bad if region A had a linear slope?) 3. Assume that the network has an MSS of 000 bytes and the round-trip-time between sender and receiver of 00 milliseconds. Assume at time 0 the sender attempts to open the connection. Also assume that the sender can write a full window s worth of data instantaneously, so the only latency you need to worry about is the actual propagation delay of the network. (a) How much time has progressed by point B? (b) How much time has progressed between points C and D? (c) How much time has progressed between points E and F? 4. If the sender shares its network with other clients whose traffic traverses the same IP routers, give one explanation for why point D is higher than point B? 4

QUESTION 4: Transmission Control Protocol Suppose two hosts have a long-lived TCP session over a path with a 00 msec round-trip time (RTT). Then, a link fails, causing the traffic to flow over a longer path with a 500 msec RTT. (4a) Suppose the router on the left recognizes the failure immediately and starts forwarding data packets over the new path, without losing any packets. (Assume also that the router on the right recognizes the failure immediately and starts directing ACKs over the new path, without losing any ACK packets.) Why might the TCP sender retransmit some of the data packets anyway? (4b) Suppose instead that the routers do not switch to the new paths all that quickly, and the data packets (and ACK packets) in flight are all lost. What new congestion window size does the TCP sender use? 5

QUESTION 5: Distance-Vector Routing The CS department at Princeton bought new Sun Fire V20 servers. They decided to run a distance-vector protocol for routing between these servers (even though it is a rather small network). They are currently configured as the picture below, with respective edge costs. The CS staff asked for your help. Write down each step of building the distance-vector routing table for Eve so they can compare it to the output of their implementation. You can use abbreviations e.g., A for Adam and E for Eve. The initial routing table at node A is: Destination Cost Next Hop B 2 B C --- D 5 D E --- (a) Show the initial routing table of node E: Destination Cost Next Hop A B C D 6

(b) Show the routing table of node E after one iteration of the algorithm: Destination Cost Next Hop A B C D (c) Show the routing table of node E after two iterations of the algorithm: Destination Cost Next Hop A B C D 7

QUESTION 6: Weighting it Out This question explores how to set the (configurable) link weights in link-state routing protocols like OSPF and IS-IS inside a single Autonomous System (AS) to achieve AS-wide goals. 6a) How should the network operators set the link weights if their goal is to minimize the number of hops each packet traverses to reach its destination? 6b) How should the operators set the link weights to minimize the end-to-end delay the traffic experiences? Assume the network is lightly loaded, so queuing delay is insignificant. 6c) In the picture below, the nodes are routers, the edges are links, and the integers correspond to the link weight on each direction of the link. (That is, the link a-b and the link b-a both have weight.) Put arrows on the edges to show the shortest path from every node to the destination node d. That is, show the sink tree leading to node d. 5 a b c 0 0 5 5 d e f 5 5 5 g 9 h 9 i 6d) Suppose the link f-e is overloaded with traffic. Identify a single weight change (on just one link) that would divert traffic from source f to destination d away from the f-e edge without affecting the path between any other source-destination pairs. Avoid any reliance on how routers choose between multiple paths with the same (smallest) cost. 8