Question Points Score total 100

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

Student ID: CS457: Computer Networking Date: 5/8/2007 Name:

Student ID: CS457: Computer Networking Date: 5/8/2007 Name:

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

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

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

Question Points Score total 100

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

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

CS164 Final Exam Winter 2013

CS 3516: Computer Networks

CS 421: COMPUTER NETWORKS FALL FINAL January 10, minutes

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

COM-208: Computer Networks - Homework 6

CS 421: COMPUTER NETWORKS FALL FINAL January 12, minutes

CS 421: COMPUTER NETWORKS SPRING FINAL May 8, minutes

CSCI 466 Midterm Networks Fall 2011

COMP 361 Computer Communications Networks. Spring Semester Final Examination Solution Key

CSc 450/550 Computer Networks Internet Routing

COMP3331/9331 XXXX Computer Networks and Applications Final Examination (SAMPLE SOLUTIONS)

Chapter 4: Network Layer, partb

MCS-377 Intra-term Exam 1 Serial #:

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Chapter 4: Network Layer

Inter-Autonomous-System Routing: Border Gateway Protocol

CSCI 466 Midterm Networks Fall 2011

COMP 361 Computer Communications Networks. Fall Semester Final Examination: Solution key

Inter-Autonomous-System Routing: Border Gateway Protocol

Chapter 4: outline. Network Layer 4-1

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

CS 6543 Computer Networks

Review for Chapter 4 R1,R2,R3,R7,R10,R11,R16,R17,R19,R22,R24, R26,R30 P1,P2,P4,P7,P10,P11,P12,P14,P15,P16,P17,P22,P24,P29,P30

ECEN Final Exam Fall Instructor: Srinivas Shakkottai

Carnegie Mellon Computer Science Department Spring 2015 Midterm Exam

CS 421: COMPUTER NETWORKS SPRING FINAL May 21, minutes

Inter-AS routing and BGP. Network Layer 4-1

CSCI Spring Final Exam Solution

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

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

CSE 473 Introduction to Computer Networks. Final Exam. Your Name: 12/17/2014 PLEASE WRITE LEGIBLY NO POINTS FOR ILLEGIBLE ANSWERS

CS244a: An Introduction to Computer Networks

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Computer Networking Introduction

DATA COMMUNICATOIN NETWORKING

PLEASE READ CAREFULLY BEFORE YOU START

Answer to the written exam given on TDTS06 Computer networks, October 23,

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

First Exam for ECE671 Spring /22/18

EE-311 Data Communication & Networks

Interplay Between Routing, Forwarding

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

ECE4110, Internetwork Programming, QUIZ 2 - PRACTICE Spring 2006

CSCI 1680 Computer Networks Fonseca. Exam - Midterm. Due: 11:50am, 15 Mar Closed Book. Maximum points: 100

Chapter IV: Network Layer

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

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

DATA COMMUNICATOIN NETWORKING

Internet protocol stack

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Review is pretty much complete! Please help formatting review (indenting). - Jorden

The Network Layer and Routers

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

Network layer: Overview. Network layer functions Routing IP Forwarding

EXAM TCP/IP NETWORKING Duration: 3 hours

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

CSCI Topics: Internet Programming Fall 2008

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

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

CMPE 80N: Introduction to Networking and the Internet. Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 20

EECS 3214: Computer Network Protocols and Applications. Final Examination. Department of Computer Science and Engineering

Communication Networks

University of Southern California EE450: Introduction to Computer Networks

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

ECE 544 Computer Networks II Mid-Term Exam March 29, 2002 Profs. D. Raychaudhuri & M. Ott

Unit 3: Dynamic Routing

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

cs144 Midterm Review Fall 2010

Department of Computer and IT Engineering University of Kurdistan. Computer Networks II Border Gateway protocol (BGP) By: Dr. Alireza Abdollahpouri

UNIT IV -- TRANSPORT LAYER

Computer Networks. 19 December This exam consists of 6 questions with subquestions. Every subquestion counts for 10 points.

CSC 4900 Computer Networks: Routing Protocols

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

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

Chapter 4 Network Layer

Transport Layer Congestion Control

TDTS06: Computer Networks

Inter-Domain Routing: BGP

Problem Set 8 Due: Start of Class, November 16

EXAM TCP/IP NETWORKING Duration: 3 hours

Chapter 4: Network Layer

Routing in the Internet

CS 640: Introduction to Computer Networks

CS244a: An Introduction to Computer Networks

ICS 351: Today's plan. OSPF BGP Routing in general

CS244a: An Introduction to Computer Networks

Lecture 9. Network Layer (cont d) Network Layer 1-1

Transcription:

CS457: Computer Networking Date: 5/8/2007 Name: Instructions: 1. Be sure that you have 8 questions 2. Write your Student ID (email) at the top of every page 3. Be sure to complete the honor statement after you complete the exam 4. This is a closed book exam 5. The seats on both sides of you should be empty 6. State all assumptions and be sure your answers are legible 7. Show all work; the graders will give partial credit 8. Answer each question clearly and to the point; do not define or describe concepts unless asked to do so; assume that the graders are familiar with the concepts Question Points Score 1 15 2 15 3 15 4 10 5 10 6 10 7 15 8 10 total 100

1. Answer the following True/False questions by circling either T or F. Student ID: 1. TCP Reno sets Threshold= CongWin/2 and CongWin = Threshold after detecting loss through duplicate ACKs. T F 2. All bit errors can be detected if a packet is sent twice. T F 3. The efficiency of unslotted ALOHA is twice that of slotted ALOHA T F 4. A broadcast message will never be transmit beyond a subnet T F 5. Wireless networks can perform collision detection T F 6. All hubs are cut through T F 7. Mobility is a problem for IP addresses when a node moves out of its subnet T F 8. NAT devices can support up to 65535 devices with a single IP address T F 9. IPv6 routers will be faster than IPv4 routers T F 10. OSPF is newer and has more flexibility and options than RIP T F

2. TCP Congestion Control Assuming that no packets are lost, how long will it take TCP to send an object that is 16KB over a link with a RTT of 500milliseconds, a MSS of 1KB, and a rate of 10KB/second when: a. TCP is in slow start, CongWin = 1 and Threshold = 10: RTT 1: segment 1 RTT 2: segments 2, 3 RTT 3: segments 4, 5, 6, 7 Then, segments 8 16 are sent with no delays Total transmission time = 500 + 500 + 500 + 900 = 2400 milliseconds (Also acceptable: Last RTT takes an additional 500 milliseconds, giving 2900 milliseconds) b. TCP is in slow start, CongWin = 1 and Threshold = 4: 2400 milliseconds (or 2900 milliseconds) c. TCP is in congestion avoidance, CongWin = 5 and Threshold = 5: All segments are sent with no delays, so this will take 1600 milliseconds (or 2100 milliseconds)

3. MAC Protocols: random access a. Assume that two nodes want to send a packet and are waiting because the channel is not clear. Once the channel becomes clear (ie. the current packet is finished), what is the probability of collision using CSMA/CD? 100% b. What is the probability of collision using CSMA/CA? Assume that both nodes will randomly choose to wait 1, 2, 3,..., or 10 milliseconds. 1/10 = 10% c. What would be the probability of collision using CSMA/CA if there were three nodes that wanted to send? 2/10 = 1/5 = 20%

4. Link layer addressing In the diagram below, assume that host 111.111.111.111 sends a message that it wants to be received at host 222.222.222.222. a. What is the network layer address that it must use on the message? 222.222.222.222 b. What is the link layer address that it must use on the message? E6 E9 00 17 BB 4B c. What network layer and link layer addresses must it use if the message is to be received by 111.111.111.112? 111.111.111.112 and CC 49 DE D0 AB 7D d. How does the node know which link layer address to use? It always sends to the default gateway, unless the destination is on the same subnet.

5. Hubs and Switches In the topology below, assume that all links are 10Mbps. The web server for this organization is quite busy, and serves on average 100 web page requests per second, where each page consists 10 objects in total that are 1KB in size each. a. How much bandwidth is remaining for communication between nodes A and E in the network? (be careful to convert between bytes and bits, above) 100*10*1KB = 1MBps = 8Mbps. This leaves 2Mbps for A E communication. (Also acceptable: 1.2Mbps if work is shown, and 11 objects were used in the calculation) b. Which of these hubs would you convert to a switch to increase the available bandwidth between A and E? Hub 1 c. If you needed to support 8Mbps of traffic between the three pairs of nodes (A, E), (D,G), and (B,H), what would the total capacity of the switch need to be (including traffic to/from the web server)? 8*4 = 32Mbps (also acceptable: 32.8Mbps) to external network router Hub 1 mail server web server IP subnet A B C Hub 2 Hub 3 Hub 4 D I F G H E

d. If you connected each of the three remaining hubs to each other, would that reduce traffic at the switch? No, it would increase traffic at the switch because it would create a loop of hubs, which causes infinite cycling of packets. e. If you connected the web server directly to the router, would that reduce traffic at the switch? Yes, because data from the external router to the web server would never be sent to Hub 1

6.Inside a Router In the diagram below, packets in the input port queues are shown on the left and the output ports are shown on the right. The packets are labeled with the output port for which they are destined. They also have a number, indicating the order in which they are chosen by the switching fabric. Assume that the switching fabric can transfer up to 3 packets per millisecond total. a. What is the fastest that this switch can transfer all packets if the switching fabric can write one packet to each output port per millisecond? 5 milliseconds: 1) A1, B1 2) A2, C1 3) A3, B2 4) C2 5) C3 b, What if the switching fabric could write two packets to each output port per millisecond? 3 milliseconds: 1) A1, B1, A2 2) A3, C1, B2 3) C2, C3 c. If this were a memory based switching fabric, how many transfers would be required over the memory bus? How fast would the memory bus need to be? To transfer 3 packets per millisecond, the bus in a memory based switching fabric must be able to transfer 6 packets per millisecond, because each packet must cross the bus two times. d. If this were a bus based switching fabric, how many transfers would be required over the bus? How fast would the bus need to be? To transfer 3 packets per millisecond, the bus in a bus based switching fabric must be able to transfer 3 packets per millisecond, because each packet must cross the bus one time. C,2 A,3 A,1 A C,1 B,1 Switching Fabric B C,3 B,2 A,2 C

7. Distance Vector vs. Link State Routing In each of the two networks below, the cost of one link has recently changed. a. What values were in the routing tables of all three nodes before the link changed? After? Draw your routing tables as follows, listing the next hop node and the total route cost for each destination: X Table Y Table Z Table Y Z 10 Z Z 9 X Z 10 Z Z 1 Y Y 1 X X 9 Left Before Right After Left After Y Y 2 Z Y 3 X X 2 Z Z 1 Y Y 1 X Y 3 Right Before b. Using the distance vector algorithm, how many distance vector messages are sent out by the nodes in each of these two cases? In the case on the left, 3 distance vector advertisements are sent: X sees the link change and updates its distance vector to Y,Y,2 and Z,Y,3 Y sees the link change and updates its distance vector to X,X,2 and Z,Z,1 Z receives an update from Y and updates it distance vector to X,Y,3 and Y,Y,1 Z receives an update from X, and X and Y receive an update from Z, but don't update anything In the case on the right, 8 distance vector advertisements are sent: X sees the link change and updates its distance vector to Y,Z,10 and Z,Z,9 (bellman ford will determine that it cannot get to Z through Y) Y sees the link change and updates its distance vector to X,Z,4 and Z,Z,1 Z receives an update from Y and updates it distance vector to X,Y,5 and Y,Y,1 Y receives an update from Z and updates its distance vector to X,Z,6 and Z,Z,1 Z receives an update from Y and updates it distance vector to X,Y,7 and Y,Y,1 Y receives an update from Z and updates its distance vector to X,Z,8 and Z,Z,1 Z receives an update from Y and updates it distance vector to X,X,9 and Y,Y,1 Y receives an update from Z and updates its distance vector to X,Z,10 and Z,Z,1 All nodes receive their neighbors last updates, but don't update anything themselves

c. Using the link state algorithm, how many link state messages are sent out by the nodes in each of these two cases? 2 message are sent in both cases, by nodes X and Y, respectively. Then, all nodes recalculate all routes internally. 2 12 x y 9 1 z 12 x 2 y 9 1 z

8. Internet Routing In the diagram below, the three thick dashed lines are inter AS links and the thinner lines are intra AS links. a. Using hot potato routing, what nodes would be on the route from 2a to3a? Hot potato routing sends the message out of the AS as quickly as possible, giving: 2a > 1b > 1c > 3a b. Using BGP with the AS PATH attribute, which nodes would be on the route from 2b to 3b? BGP with AS path send the message through the smallest number of Ass, giving: 2b > 2c > 3a 3c 3a 3b AS3 1a AS1 1c 1d 1b 2a 2c 2b AS2 ebgp session ibgp session Honor Code Signature