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

Similar documents
Solutions to Select Exercises

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

CS244a: An Introduction to Computer Networks

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

cs/ee 143 Communication Networks

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1

CSE 1 23: Computer Networks

Data Communication Networks Final

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

Applied Networks & Security

ICS 451: Today's plan. Sliding Window Reliable Transmission Acknowledgements Windows and Bandwidth-Delay Product Retransmission Timers Connections

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

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1

Transmission Control Protocol (TCP)

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

A Previous Final Examination

User Datagram Protocol

UNIT IV -- TRANSPORT LAYER

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

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1

CS 421: Computer Networks SPRING MIDTERM II May 5, minutes

Sequence Number. Acknowledgment Number. Data

8. TCP Congestion Control

CIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1

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

II. Principles of Computer Communications Network and Transport Layer

EE 122 Fall st Midterm. Professor: Lai Stoica

Networked Systems and Services, Fall 2017 Reliability with TCP

TCP Service Model. Today s Lecture. TCP Support for Reliable Delivery. EE 122:TCP, Connection Setup, Reliability

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1

FINAL Wednesday, 30 th July 2008

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

CS457 Transport Protocols. CS 457 Fall 2014

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences

Transport Layer Marcos Vieira

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

Connection-oriented (virtual circuit) Reliable Transfer Buffered Transfer Unstructured Stream Full Duplex Point-to-point Connection End-to-end service

23-3 TCP. Topics discussed in this section: TCP Services TCP Features Segment A TCP Connection Flow Control Error Control 23.22

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

Reliable Transport I: Concepts and TCP Protocol

7. TCP 최양희서울대학교컴퓨터공학부

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

Networked Systems and Services, Fall 2018 Chapter 3

Midterm Review. Topics. Review: Network. Review: Network. Layers & Protocols. Review: Network WAN. Midterm Review EECS 122 EECS 122

Midterm Review EECS 122. University of California Berkeley

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?

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

ECSE-6600: Internet Protocols Spring 2007, Exam 1 SOLUTIONS

CS 421: COMPUTER NETWORKS FALL FINAL January 10, minutes

CIS-331 Final Exam Spring 2015 Total of 115 Points. Version 1

EE-311 Data Communication & Networks

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

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

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

Question Points Score total 100

ETSF10 Internet Protocols Transport Layer Protocols

Answers to Sample Questions on Transport Layer

TCP Strategies. Keepalive Timer. implementations do not have it as it is occasionally regarded as controversial. between source and destination

Problem 7. Problem 8. Problem 9

Date: June 4 th a t 1 4:00 1 7:00

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4021: Networks Discussion. Chapter 5 - Part 2

CS419: Computer Networks. Lecture 10, Part 2: Apr 11, 2005 Transport: TCP mechanics (RFCs: 793, 1122, 1323, 2018, 2581)

ECE 461 Internetworking Fall Quiz 1

CSC 634: Networks Programming

FINAL May 21, minutes

Code No: RR Set No. 1

TCP. CSU CS557, Spring 2018 Instructor: Lorenzo De Carli (Slides by Christos Papadopoulos, remixed by Lorenzo De Carli)

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

Solutions for Homework #2

TCP and Congestion Control (Day 1) Yoshifumi Nishida Sony Computer Science Labs, Inc. Today's Lecture

Network Layer: Router Architecture, IP Addressing

SE 4C03 Winter Sample Midterm Test. Instructor: Kartik Krishnan

Introduction to Internetworking

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

Network Technology 1 5th - Transport Protocol. Mario Lombardo -

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.

Overview. Internetworking and Reliable Transmission. CSE 561 Lecture 3, Spring David Wetherall. Internetworking. Reliable Transmission

Mobile Transport Layer Lesson 10 Timeout Freezing, Selective Retransmission, Transaction Oriented TCP and Explicit Notification Methods

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

CSCD 330 Network Programming

ECE 333: Introduction to Communication Networks Fall 2001

Intro to LAN/WAN. Transport Layer

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

Transport Protocols and TCP: Review

PLEASE READ CAREFULLY BEFORE YOU START

b. Suppose the two packets are to be forwarded to two different output ports. Is it

EE122 MIDTERM EXAM: Scott Shenker, Ion Stoica

Question Points Score total 100

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

SE 4C03 Winter Midterm Test Answer Key. Instructor: Kartik Krishnan

Transport Protocols & TCP TCP

Reliable Transport I: Concepts and TCP Protocol

Outline Computer Networking. TCP slow start. TCP modeling. TCP details AIMD. Congestion Avoidance. Lecture 18 TCP Performance Peter Steenkiste

CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [NETWORKING] Frequently asked questions from the previous class surveys

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

Outline. CS5984 Mobile Computing

TCP/IP. Chapter 5: Transport Layer TCP/IP Protocols

EE 610 Part 2: Encapsulation and network utilities

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

Transcription:

Name Class: 448 1) (5 pts) Draw the three way handshake used to establish a TCP connection. Show all SYN and ACK packets. Also show all sequence and acknowledgement numbers associated with the SYN and ACK packets. 2)(4 pts) The original algorithm for computing a timeout value for a TCP connection is being used with the parameter 0. 8. If the current estimated RTT is 100 milliseconds and the sample RTT for the most recent transmission is 75 milliseconds. a) What is the new estimated RTT? b) What is the timeout time used for this new estimated RTT? Page 1 of 8

3) (8 pts) A router is managing three flows using fair queuing. The router can transmit one packet every 1 unit of wall clock time. A queue is considered active if it has 1 or more packets present and/or a packet is being transmitted from that queue. Start the wall clock time at 1 and the fair queue clock (denoted by Ai) starts at 1.0 at that time. For each packet shown provide the wall clock time when the packet is transmitted. The packets arrive at the router at the wall time specified and packet designations are shown in parentheses next to the times of arrival. All packets are the same size and transmission time ties are resolved in the order A, B, C. Flow A: 1, 3 (packets numbered as A1, A3) Flow B: 1, 2 (packets numbered as B1, B2) Flow C: 2, 3 (packets numbered as C2, C3) Fill in the chart below for your answer. Ai is to be updated for all active wall clock times. Queues Sending Queue wall clock Ai Arrivals Fi Sent Flow A Flow B Flow C Packet Fi Order 1 1.000 2 3 4 5 6 7 8 Page 2 of 8

4) (5 pts) Consider the following network where R1, R2 and R3 are service providers with customers A, B, C and D. C A R1 R3 R2 B D The following CIDR addresses(shown as hex numbers) have been given to the providers and their customers Address Name A1.A1.0.0/16 A2.A2.0.0/16 A3.A3.0.0/16 A3.A3.A0.0/20 A3.A3.B0.0/20 A1.A1.C0.0/20 A2.A2.D0.0/20 Fill in the routing table below for R1, R2 and R3 so that a packet that arrives at any router is most efficiently (fewest number of hops) sent towards its destination R1 R2 R3 A B C D Provider R1 Provider R2 Provider R3 Address Next Hop Address Next Hop Address Next Hop Page 3 of 8

5) (6 pts) Answer the following short answer questions. (1 point each) a) What does it mean when a network provides Best Effort Service/Delivery b) Assuming there are no reserved network/broadcast addresses, give the number of possible host addresses for each of the network classes listed below: Class A Networks: Class B Networks: Class C Networks: c) In IP version 6, how many bits make up the IP source or IP destination address? d) For the Distance Vector Routing Protocol, what information does a node exchange and which nodes receive this information? e) For the Link State Routing Protocol, what information does a node exchange and which nodes receive this information? f) For the Distance Vector and Link State routing protocols, what is the starting assumption used by both? Page 4 of 8

6) (4 pts) A router has the following (CIDR) entries in its routing table Address/mask Next Hop 135.46.56.0/22 Router 1 135.46.60.0/22 Router 2 192.53.40.0/23 Interface 0 192.53.60.0/23 Interface 1 Default Router 3 What is the next hop that the router selects when it receives IP packets with the addresses shown below. Show all of your work or explain how you determined the next hop. a) 135.46.63.10 a) Next Hop b) 135.46.57.14 b) Next Hop c) 135.46.52.2 c) Next Hop d) 192.53.63.7 d) Next Hop Page 5 of 8

7) (6 pts) You are designing a reliable byte stream protocol (not TCP) to operate over a 1x10 9 bps network and it is using a sliding window for flow control. The maximum segment lifetime for the network is 90 seconds. The time for keeping the transmission pipe full is taken to be the RTT of the network which is 50ms. a) What is the minimum number of bits necessary for the Advertised Window field of your protocol header? Round up to the next integer value (i.e. if you calculate 20.67 bits necessary, then you will give your minimum number of bits necessary as 21) b) What is the minimum number of bits necessary for the Sequence Number field of your protocol header? Round up to the next integer value (i.e. if you calculate 20.67 bits necessary, then you will give your minimum number of bits necessary as 21) c) Using your answer from part b, how long will it take for the sequence numbers to actually wrap around? Page 6 of 8

8) (6 pts) Fragmentation. Consider a packet that is transmitted from host A to host B in the following hypothetical network. The maximum transmission unit (MTU) size in bytes is shown on each link. The header length for a packet sent on any link is 40 bytes. The MTU value includes this header value (i.e. if the MTU is 600 Bytes, then 40 Bytes are header information and 560 Bytes are data). 400 300 200 A R1 R2 B a) Host A is transmitting data packets with a size of 700 data Bytes. For a single 700 Byte data packet transmitted from A to B, determine for each link the number of packets that are sent and the amount of data each packet holds. b) Before transmitting any information, Host A performs MTU discovery for the network. The result of the MTU discovery is the smallest MTU of 200 Bytes (which consists of 160 Bytes of data and a 40 byte header). How many packets does Host A now use to transmit 700 Bytes of data? For each of the packets transmitted, provide the number of bytes of data contained in the packet. Page 7 of 8

9) (6 pts) Perform the link state routing algorithm on this page. Link State: The Link State Routing Algorithm (Dijkstra s or forward search algorithm) is to be performed for node B. The link state packets sent by the nodes in the network are shown below. When finished, provide the routing table for node B. Link state packets are in the form of (destination, cost, next hop) Node A Node B Node C Node D Node E Node F D,3,D C,10,C B,10,B A,3,A A,1,A A,2,A E,1,E D,2,D D,4,D B,2,B C,3,C B,8,B F,2,F F,8,F E,3,E C,4,C Confirmed Tentative (B, 0, -) Node B Routing Table Destination Cost NextHop A C D E F Page 8 of 8