Data Communication Networks Final

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

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

CS 421: COMPUTER NETWORKS SPRING FINAL May 21, minutes

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

CS244a: An Introduction to Computer Networks

Problem 7. Problem 8. Problem 9

TCP/IP-2. Transmission control protocol:

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

CS244a: An Introduction to Computer Networks

Basic Reliable Transport Protocols

15-441: Computer Networks Homework 3

TCP Congestion Control. Lecture 16. Outline. TCP Congestion Control. Additive Increase / Multiplicative Decrease (AIMD)

Data Link Control Protocols

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

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

CS 421: COMPUTER NETWORKS FALL FINAL January 12, minutes

Congestion Control 3/16/09

CS244a: An Introduction to Computer Networks

Congestion control in TCP

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

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

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

FINAL May 21, minutes

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

UNIT IV -- TRANSPORT LAYER

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

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

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

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.

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

Problem. Chapter Outline. Chapter Goal. End-to-end Protocols. End-to-end Protocols. Chapter 5. End-to-End Protocols

cs/ee 143 Communication Networks

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

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

CSE 123: Computer Networks

CS 349/449 Internet Protocols Midterm Exam Winter /21/2003

CSE 123: Computer Networks

Transport Protocols and TCP: Review

Answers to Sample Questions on Transport Layer

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

Your favorite blog : (popularly known as VIJAY JOTANI S BLOG..now in facebook.join ON FB VIJAY

Homework #4. Due: December 2, 4PM. CWND (#pkts)

CPE 448 Exam #2 (50 pts) April Name Class: 448

Intro to LAN/WAN. Transport Layer

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

CS244a: An Introduction to Computer Networks

Transport Protocols & TCP TCP

Department of Computer Science and Engineering. Final Examination. Instructor: N. Vlajic Date: April 15, 2011

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

TCP/IP Performance ITL

Computer Science 461 Midterm Exam March 14, :00-10:50am

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

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

CSE 1 23: Computer Networks

Chapter 3 Review Questions

Solution to Question 1: ``Quickies'' (25 points, 15 minutes)

Outline. Internet. Router. Network Model. Internet Protocol (IP) Design Principles

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

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

C13b: Routing Problem and Algorithms

Error Detection Codes. Error Detection. Two Dimensional Parity. Internet Checksum Algorithm. Cyclic Redundancy Check.

Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1

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

The flow of data must not be allowed to overwhelm the receiver

CS CS COMPUTER NETWORKS CS CS CHAPTER 6. CHAPTER 6 Congestion Control

Transport Layer (TCP/UDP)

bitcoin allnet exam review: transport layer TCP basics congestion control project 2 Computer Networks ICS 651

Routing in packet-switching networks

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Solution of Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 11, 2018

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

ECE 333: Introduction to Communication Networks Fall 2001

Recap. TCP connection setup/teardown Sliding window, flow control Retransmission timeouts Fairness, max-min fairness AIMD achieves max-min fairness

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

Congestion Control. Queuing Discipline Reacting to Congestion Avoiding Congestion. Issues

ECE4110, Internetwork Programming, QUIZ 2 - PRACTICE Spring 2006

II. Principles of Computer Communications Network and Transport Layer

Chapter 12. Routing and Routing Protocols 12-1

SC250 Computer Networking I. Review Exercises. Prof. Matthias Grossglauser. School of Computer and Communication Sciences EPFL.

Applied Networks & Security

1. (10 points): For each of the following, choose exactly one best answer.

TCP Congestion Control 65KB W

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

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

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

8. TCP Congestion Control

Networks Fall This exam consists of 10 problems on the following 13 pages.

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

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

CS 716: Introduction to communication networks th class; 7 th Oct Instructor: Sridhar Iyer IIT Bombay

ECEN Final Exam Fall Instructor: Srinivas Shakkottai

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

Computer Networks (Fall 2011) Homework 2

CSE 123: Computer Networks Alex C. Snoeren. HW 1 due NOW!

Network Management & Monitoring Network Delay

CRC. Implementation. Error control. Software schemes. Packet errors. Types of packet errors

CS 421: COMPUTER NETWORKS SPRING FINAL May 8, minutes

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

Fundamentals of Computer Networks ECE 478/578. Transport Layer. End- to- End Protocols 4/16/13. Spring Application. Application.

Transcription:

Data Communication Networks Final Saad Mneimneh Visiting Professor Hunter College of CUNY NAME: This final test is take home... There are 8 Problems (but each problem has multiple parts, possibly on separate pages). Make sure your answer is clear. Do not leave unanswered questions even if you think you do not have the complete answer. Partial credit might be given. Attach pages if needed No collaboration or even discussion is allowed for this test Problem 1: Miscellaneous (40 points) Problem 2: Stop-and-Wait ARQ (10 points) Problem 3: Max-Min Fairness (10 points) Problem 4: Fair Queueing (10 points) Problem 5: Bridges (5 points) Problem 6: Counting to infinity (5 points) Problem 7: Shortest path (10 points) Problem 8: Shortest path tree and minimum spanning tree (10 points) Total: (100 points)

Problem 1: Miscellaneous questions (40 points) Q1 (5 points): While TCP uses the same sliding window algorithm that is commonly found in the data link level, TCP differs from data link protocols in several important ways. For each of the following ways in which TCP differs from a data link protocol, give the TCP feature that addresses this difference. Be as precise as possible. (a) Mismatch between sender s and receiver s processing speeds (b) Multiple connections over time

(c) Variable RTT (d) Potentially long delay on the Internet

(e) Intermediate shared buffers

Q2 (5 points): Describe Nagle s algorithm in your own words, and explain what problem it solves.

Q3 (5 points): You are hired to design a reliable byte-stream protocol that uses a sliding window (like TCP). This protocol will run over a 622Mbps network. The RTT of the network is 100ms, and the maximum segment life is 50 seconds. How many bits would you include in the AdvertisedWindow and SequenceNum files of your protocol header? (Do not round to the nearest power of two).

Q4 (5 points): The RED router mechanism maintains two queue thresholds: MIN and MAX. Explain how a RED router processes an arriving packet in terms of these two thresholds. Explain why it is possible for the queue in a RED router to contain more than MAX packets.

Q5 (5 points): In the following TCP traces, the line represents the value of the congestion window over time, solid bullets at top represent timeouts, hash marks at top represent time when each packet is transmitted, and vertical bars represent time when a packet that was eventually retransmitted was first transmitted. 70 60 50 40 30 20 10 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 Time (seconds) 70 60 50 40 30 20 10 1.0 2.0 3.0 4.0 5.0 6.0 7.0 Time (seconds) (a) Identify the feature that the version of TCP illustrated in the second trace has that the version of TCP illustrated in the first trace does not have. Explain why this feature results in the different behavior.

(b) Explain why both traces have heavy losses at approximately 0.5 sec. (c) Explain why the congestion window is flat between 0.5s and 1.9s.

(d) For the first trace, explain what the TCP congestion control algorithm is doing between 2.0s and just after 3.5s. (e) For the second trace, explain what triggers the change in the slope of the congestion window at just after 5.7s.

Q6 (5 points): Explain why the Ethernet has a minimum packet size of 64 bytes. Given an example illustrating how a smaller packet size could be a problem. What happens to the minimum packet size when the Ethernet rate rises to 100 Mbps? What are the drawbacks to so large a minimum packet size?

Q7 (5 points): Suppose a router has built up the routing table given below. The router can deliver packets directly over interfaces 0 and 1, or it can forward packets to routers R2, R3, or R4. Describe what the router does with a packet addressed to each of the following destinations. SubnetNumber SubnetMask NextHop 128.96.39.0 255.255.255.128 interface 0 128.96.39.128 255.255.255.128 interface 1 128.96.40.0 255.255.255.128 R2 192.4.153.0 255.255.255.192 R3 <default> R4 (a) 128.96.39.10 (b) 128.96.40.12 (c) 128.96.40.151 (d) 192.4.153.17 (e) 192.4.153.90

Q8 (5 points): Give an example of an arrangement of routers grouped into autonomous systems so that the shortest path from a point A to another point B crosses the same AS twice. Explain what BGP would do with this situation.

Problem 2: Stop-and-Wait ARQ (10 points) Consider a Stop-and-Wait ARQ strategy in which, rather than using a sequence number for successive packets, the sending DLC sends the number of times the given packet has been transmitted. Thus, the format of the transmitted frames is j packet CRC, where j is 0 the first time a packet is transmitted, 1 on the first retransmission, and so on. The receiving DLC returns an Ack (received) or Nak (received with error), without any request number, for each frame it receives. (a) (5 points) Assume frames might be lost and never arrive in both direction. Show an example where the receiving DLC cannot decide which packet it is really receiving.

(b) (5 points) Now assume that only Acks and Naks might be lost and never arrive. Show by example that it is possible for a packet to never be accepted by the receiving DLC, i.e. DLC never receives a correct version of the packet. Hint: A solution in which a frame always arrives in error is not acceptable; therefore, there is a non-zero probability that a frame will arrive with no error.

Problem 3: Max-Min fairness (10 points) Consider the following 5 flows and assume all link capacities are 1. 1 4 5 3 2 (a) (5 points) Find the max-min fair rates for each flow.

(b) (5 points) Now assume that we change the definition of max-min fairness so that, in addition we include a constraint for each flow r f b f where b f is an upper bound on the rate of flow f. Modify the algorithm for solving max-min fairness we described in class to solve this problem. Hint: add a new link for each flow. Repeat part (a) if b 2 = b 4 = b 5 = 1 and b 1 = b 3 = 1/4.

Problem 4: Fair queueing (10 points) Consider the following arrival patterns at A, B, and C. A: 1 2 4 6 B: 2 6 C: 1 2 6 Assume all packets have length 1 and the server capacity is one packet per time unit. Give the real time when each packet finished transmission in (a) Fair Queueing system (b) Ideal system Provide a table similar to the one in homework 6. Only partial credit is given for answers not showing the worked table. As a final answer, you can fill this table: packet real time in FQ real time in ideal system A1 A2 A3 A4 B1 B2 C1 C2 C3

Problem 5: Bridges (5 points) Given the extended LAN shown below, indicate which ports are not selected by the spanning tree algorithm for bridges.

Problem 6 (5 points): Counting to infinity Split horizon is the technique that when a node sends a routing update to its neighbors, it does not send those routes it learned from each neighbor back to that neighbor. We argued in class that this can solve the counting to infinity problem in distributed Bellman-Ford in the simple case of loops of length 2. A C D B Show that split horizon cannot avoid the counting to infinity problem in the above network when link C-D fails (all links have weight 1). Clearly show the sequence of messages received by each node and how it updates its knowledge about the shortest path to node D.

Problem 7: Shortest path (10 points) Consider the following network: 0.05 0.01 0.06 A 0.01 0.01 0.02 B 0.03 0.03 0.04 0.03 Assume that the weight on the link represent the probability of the link failing, and that links fail independently of each other. (a) (2 points) Choose any path from A to B and indicate your choice on the figure above. What is the probability that this path will not fail, i.e. A and B can communicate on this path? In general, given a path with edges e 1, e 2,..., e n and weights w 1, w 2,..., w n what is the probability that the path will not fail?

(b) (2 points) We would like to find the path with the highest probability of not failing. Using the fact that log AB = log A + log B, show that we want a path e 1, e 2,..., e n that minimizes log(1 w 1 ) log(1 w 2 )... log(1 w n ) (c) (2 points) Since w i are all small, 1 w i is close to 1, and we can use the approximation log(1 w i ) w i. Show how this approximation can transform our problem above into a shortest path problem on the graph.

(d) (4 points) Find the path with the highest probability of not failing. Show your work, e.g. Dijkstra s algorithm. What is that probability?

Problem 8: Shortest path tree and minimum spanning tree (10 points) Consider two graphs G = (V, E) and G = (V, E ) which are identical except for the weights of the edges. If the weight of edge e in G is w(e), then the weight of edge e in G is a.w(e) + b for some contants a and b. (a) (3 points) Are the minimum spanning trees for G and G identical? If your answer is positive, provide a proof. If your answer is negative, provide a counter example.

(b) (3 points) Are the shortest path between any two nodes in the two graphs identical? If your answer is positive, provide a proof. If your answer is negative, provide a counter example.

(c) (4 points) If your answer is negative for part (a) or part (b), can you think of conditions on the constants a and b that would make your answer positive?