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

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

CS244a: An Introduction to Computer Networks

CS244 Advanced Topics in Computer Networks Midterm Exam Monday, May 2, 2016 OPEN BOOK, OPEN NOTES, INTERNET OFF

CS244a: An Introduction to Computer Networks

CS244a: An Introduction to Computer Networks

CS244a: An Introduction to Computer Networks

Homework 1. Question 1 - Layering. CSCI 1680 Computer Networks Fonseca

CSE 123: Computer Networks

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

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

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

CS164 Final Exam Winter 2013

PLEASE READ CAREFULLY BEFORE YOU START

Problem 7. Problem 8. Problem 9

CS 349/449 Internet Protocols Final Exam Winter /15/2003. Name: Course:

Question Points Score total 100

Duke University CompSci 356 Midterm Spring 2016

CS244a: An Introduction to Computer Networks

CS 421: COMPUTER NETWORKS SPRING FINAL May 8, minutes

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

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

Sequence Number. Acknowledgment Number. Data

MIDTERM EXAMINATION #2 OPERATING SYSTEM CONCEPTS U N I V E R S I T Y O F W I N D S O R S C H O O L O F C O M P U T E R S C I E N C E

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

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

CS144 An Introduc8on to Computer Networks

EE122 MIDTERM EXAM: Scott Shenker, Ion Stoica

Data Link Control Protocols

CS 421: COMPUTER NETWORKS SPRING FINAL May 21, minutes

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

EECS489 Computer Networks, Take-home Makeup Midterm (Winter 2007) due in class Wednesday 3/28

Networked Systems (SAMPLE QUESTIONS), COMPGZ01, May 2016

file:///c:/users/hpguo/dropbox/website/teaching/fall 2017/CS4470/H...

MCS-377 Intra-term Exam 1 Serial #:

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.

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

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

Question Points Score total 100

ECE/CSC 570 Section 001. Final test. December 11, 2006

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

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

CMPE150 Midterm Solutions

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

ECEN Final Exam Fall Instructor: Srinivas Shakkottai

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

CSE 473 Introduction to Computer Networks. Midterm Exam Review

FINAL May 21, minutes

Your Name: Your student ID number:

Data Communication Networks Final

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

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

No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

User Datagram Protocol

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

CS244a: An Introduction to Computer Networks

Expected Time: 90 min PART-A Max Marks: 42

Congestion Control in TCP

Congestion in Data Networks. Congestion in Data Networks

EECS 122: Introduction to Communication Networks Final Exam Solutions

FACULTY OF COMPUTING AND INFORMATICS

EE 122 Fall st Midterm. Professor: Lai Stoica

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

CS321: Computer Networks Congestion Control in TCP

CSCI4211: Introduction to Computer Networks Fall 2017 Homework Assignment 1

Advanced Computer Networks

II. Principles of Computer Communications Network and Transport Layer

Tutorial 8 : Congestion Control

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

First Exam for ECE671 Spring /22/18

CS 421: COMPUTER NETWORKS FALL FINAL January 12, minutes

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

PRACTICE QUESTIONS ON RESOURCE ALLOCATION

Communication Networks

UNIT IV -- TRANSPORT LAYER

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

6.033 Lecture 12 3/16/09. Last time: network layer -- how to deliver a packet across a network of multiple links

Student Name: University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS

Performance Modeling

Midterm #2 Exam April 26, 2006 CS162 Operating Systems

Computer Networks. Homework #4: No Grading

ES623 Networked Embedded Systems

Midterm II December 4 th, 2006 CS162: Operating Systems and Systems Programming

Lecture 5: Flow Control. CSE 123: Computer Networks Alex C. Snoeren

Congestion Control in TCP

Stanford University Computer Science Department CS 240 Sample Quiz 2 Questions Winter February 25, 2005

CSCI Spring Final Exam Solution

Name: Student ID: Due Wednesday 4/29 at the beginning of class (Please TYPE your answers this will allow our TAs to be much more efficient)

Problem Set 7 Due: Start of Class, November 2

ECE 653: Computer Networks Mid Term Exam all

Applied Networks & Security

SIIT ITS 323. Due Friday 21 August 2007, 5pm 10% of the final course mark

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

Review Questions for Midterm Exam-2 Fall 2016

Chapter 3 Review Questions

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

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

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

Lecture 7. Reminder: Homework 2, Programming Project 1 due today. Homework 3, Programming Project 2 out, due Thursday next week. Questions?

Advanced Computer Networks

Transcription:

CS144: Intro to Computer Networks Homework 1 Scan and submit your solution online. Due Friday January 30, 2015 @ 4pm Your Name: SUNet ID: @stanford.edu Check if you would like exam routed back via SCPD: In accordance with both the letter and the spirit of the Stanford Honor Code, I neither received nor provided any assistance on this homework. Signature: Some questions may be much harder than others. All questions require you to justify your answer to receive full credit, even multiple choice questions for which you circle the correct answer(s). Keep your answers concise. We will deduct points for a correct answer that also includes incorrect or irrelevant information. 1 /10 2 /10 3 /5 4 /10 5 /10 Total /45 Page 1 of 10

I Stop-n-Wait-n-Answer 1. [10 points]: An application needs to send 100KB of data using a stop-and-wait reliable protocol. The protocol splits the data into segments that have a 1KB application data payload. Each segment fits in a single IP packet. The RTT is 50ms, there is no packetization delay, and no queueing delay. The protocol uses a fixed retransmission timeout of 200ms and has no retransmission limit. (i) How long will the transmission take, in seconds, if the network does not drop, duplicate or corrupt any packets? You may assume the connection is established when you start your measurement, so there is no additional latency from connection setup and consists only of data transmissions. Your answer must be accurate to two decimal points (10ms). seconds (ii) Let us now suppose that the network drops each segment with a probability of 10%, independently from segment to segment. The network drops both data and acknowledgements. What is the expected duration of the transmission? Show your calculations. Your answer must be accurate to two decimal points (10ms). seconds Page 2 of 10

2. [10 points]: A web site hosted on a single server becomes extremely popular. The administrators decide to replace the server with two sets of 200 servers (i.e. 400 servers in total), each set of servers connected to the Internet via a different router (for fault tolerance). The figure shows the topology. The two routers (Router A and Router B) connect to the Internet via a router that you manage ( Your Router ). The administrator of Router A assigns 200 host IP addresses in the range 107.21.41.2 107.21.41.255, and the administrator of Router B assigns 200 host IP addresses in the range 107.21.17.2 107.21.17.255. You decide to manually insert routing table entries into Your Router to correctly route packets between the servers and the rest of the Internet. Write down the routing table entries for Your Router to correctly route packets between the Internet and the four hundred servers. You need not include routes to Your Router s interfaces. Use as few table entries as possible. Page 3 of 10

destination prefix net mask next hop interface (e.g. 10.0.0.0) (e.g. 255.0.0.0) (e.g. 10.0.0.1) (e.g. eth0) Page 4 of 10

3. [5 points]: The administrators decide to move the server with IP address 107.21.17.50 from the network behind Router B to the network behind Router A. Assuming that they change no server IP addresses (the moved server keeps the same IP address), how do you need to modify the routing tables of Your Router to correctly route packets between all servers and the Internet? You may assume the administrators will update Router A and Router B properly to support your change. The new topology looks like this: Write down any new or modified entries you need: destination prefix net mask next hop interface Explain your answer: Page 5 of 10

II Playback Buffers and Queues 4. [10 points]: Two endpoints in a voice-over-ip session are connected by a path of 4 routers. All links are running at 1Mb/s and the hosts are separated by 3000km. All packets are of size 1500Bytes. Assume the bit propagation speed is 2x10 8 m/s. Note that 1KB of data is 1024Bytes, but 1Mb/s is 10 6 bits/s. (i) What is the minimum round trip time (RTT), assuming there is no queueing delay and assuming processing time at each host is negligible? milliseconds (ii) For this part only let us assume that one router on the path has a steady queue occupancy of 5 packets. What is the end-to-end delay (one way, not round trip) in this case? milliseconds Page 6 of 10

(iii) Now let us assume the maximum queue occupancy for every router queues is 5 packets. What is the maximum end-to-end delay? milliseconds. (iv) For part (iii), how long should the playback buffer be at the destination voice-over- IP client be if each packet arrives successfully, without being dropped? Express your answer in bytes. bytes. Page 7 of 10

(v) For part (iii), how long should the playback buffer be at the destination voiceover-ip client if each packet either arrives successfully when first transmitted, or is dropped the first time and then arrives successfully on the second attempt? Assume the sender retransmits a packet only after it finds out that the packet was dropped, which is after twice the maximum end to end delay. Express your answer in bits. bits. Page 8 of 10

5. [10 points]: Recall that a (σ, ρ) leaky-bucket traffic regulator ensures that the number of bytes departing the regulator in any interval of time (t 1, t 2 ) is bounded by B(t 1, t 2 ) σ + ρ(t 2 t 1 ), where σ and ρ are non-negative constants. Now, consider a queue which drains at rate R. The queue has an infinite buffer size. Answer the following questions. Although it s a multiple choice question, don t forget to show your work below! (i) Which of the following is correct? Circle all that apply. (There may be multiple answers.) A If the source feeding the queue is leaky-bucket constrained, then the delay of a bit through the queue is always less than 2σ, regardless of the source s average sending rate, ρ. B The delay of any bit through the queue is finite only when σ < R. C If several leaky-bucket constrained sources (σ i, ρ i ) feed the queue, and when combined i σ i = σ and i ρ i = ρ < R, then the delay through the queue will be bounded and finite. Assume σ is finite. D If several leaky-bucket constrained sources (σ i, ρ i ) feed the queue, and i σ i = 10, i ρ i = 500b/s, and R = 600b/s, then no bit will ever experience a delay through the queue of more than 100ms. Page 9 of 10

Figure 1: Cartoon based off research from Stanford by student Katherine N. Dektar, prof. Balaji Prabhakar (EE/CS), and prof. Deborah M. Gordon (biologist). Page 10 of 10