Homework 2: IP Due: 11:59 PM, Oct 20, 2016

Similar documents
Homework 2: IP Due: 11:59 PM, Oct 19, 2017

Homework 3 Discussion

FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://

Carnegie Mellon Computer Science Department Spring 2016 Midterm Exam

Cisco CCNA Basic IP Routing Part I

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

cs/ee 143 Communication Networks

Troubleshooting Cisco Express Forwarding Routing Loops

RIP Version 2. The Classless Brother

Campus Networking Workshop CIS 399. Core Network Design

Routing Concepts. IPv4 Routing Forwarding Some definitions Policy options Routing Protocols

Top-Down Network Design

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Internet Routing Basics

CSCI4211: Introduction to Computer Networks Fall 2017 Homework Assignment 2

Connecting to the Network

Putting it all together

SIMPLE ROUTER PROJECT 2

Routing Basics ISP/IXP Workshops

Duke University CompSci 356 Midterm Spring 2016

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

Carnegie Mellon Computer Science Department Spring 2015 Midterm Exam

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

CS 5114 Network Programming Languages Control Plane. Nate Foster Cornell University Spring 2013

Routing Basics. Routing Concepts. IPv4. IPv4 address format. A day in a life of a router. What does a router do? IPv4 Routing

Routing Basics. ISP Workshops. Last updated 10 th December 2015

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

Internet Protocol Addressing and Routing. Redes TCP/IP

Lab#01 - Introduction to Packet Tracer

Chapter 4: Manipulating Routing

Transparent Bridging and VLAN

cs/ee 143 Communication Networks

Introduction to the Packet Tracer Interface using a Hub Topology

Routing Basics ISP/IXP Workshops

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15

BGP Policy Accounting

Lecture 19: Network Layer Routing in the Internet

CSE 123: Computer Networks

Copyright 2011 Sakun Sharma

Network Layer (Routing)

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

CS 640: Introduction to Computer Networks

Chapter 5. The Network Layer. Network Layer Design Isues. Store-and-Forward Packet Switching 10/7/2010. Implementation of Connectionless Service

Chapter 5. The Network Layer

How to Choose the Best Router Switching Path for Your Network

Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

CSC458 Lecture 6. Administrivia. Inter-domain Routing IP Addressing. Midterm will Cover Following Topics (2) Midterm will Cover Following Topics

Chapter 5. The Network Layer. CEN Chapter 5 1

Routing & Protocols 1

Topic. How rou=ng protocols work with IP. The Host/Router dis=nc=on. I don t! I route. CSE 461 University of Washington 1

DGS-1510 Series Gigabit Ethernet SmartPro Switch Web UI Reference Guide

How to Choose the Best Router Switching Path for

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

Homework Assignment #3b Due 11/22 at 3:50pm EE122 Fall 2010

The Interconnection Structure of. The Internet. EECC694 - Shaaban

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions

A Background: Ethernet

CSE 473 Introduction to Computer Networks. Final Exam Review

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

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Link State Routing & Inter-Domain Routing

CMPE 151 Routing. Marc Mosko

LAB EXERCISES (TP) 6 INTER-DOMAIN ROUTING: BGP-4 With Solutions

Lecture 3: Packet Forwarding

VLANs Level 3 Unit 9 Computer Networks

LAB THREE STATIC ROUTING

Project 4: SDNs Due: 11:59 PM, Dec 12, 2018

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

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

Vorlesung Kommunikationsnetze

1 Connectionless Routing

Communication Networks

Homework 3 assignment for ECE671 Posted: 03/01/18 Due: 03/08/18

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

Computer Science 461 Final Exam May 22, :30-3:30pm

TDTS04 Computer networks and distributed systems Final Exam: 14:00-18:00, Thursday, March 20, 2014

Index. Numerics. Index p priority (QoS) definition Q VLAN standard w as a region 5-54

Unit 3: Dynamic Routing

DOiT-200v6 VOLUME II I2 R2 4 N1. DOiT-200v6 Lab 16 Multi-Topic CCIE-Level Scenario. For CCIE Candidates

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

CSE 123: Computer Networks

IP: Addressing, ARP, Routing

ITEC310 Computer Networks II

Interdomain Routing. Networked Systems (H) Lecture 11

Network Layer (Routing)

Routing, Routing Algorithms & Protocols

University of Toronto Faculty of Applied Science and Engineering. Final Exam, December ECE 461: Internetworking Examiner: J.

References: tates-roles.html

CS519: Computer Networks. Lecture 2, part 2: Feb 4, 2004 IP (Internet Protocol)

Quiz 7 May 14, 2015 Computer Engineering 80N

2011, Sushile Tejwani

Introduction to IP Routing. Geoff Huston

APNIC elearning: BGP Basics. 30 September :00 PM AEST Brisbane (UTC+10) Revision: 2.0

Chapter 2 Review Questions

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

CS4450. Computer Networks: Architecture and Protocols. Lecture 11 Rou+ng: Deep Dive. Spring 2018 Rachit Agarwal

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

Transcription:

C68 Computer Networks Fonseca Contents Homework : IP Due: :59 PM, Oct 0, 06 IP Forwarding Spanning Tree BGP IP Forwarding Consider this diagram and answer the following questions: H H 00... 00... 00... 00...5 00... R H S 00...5. Why does the router R have three IP addresses? Because it is part of three subnets. In fact, the router is precisely the element that connects these three subnets and allows nodes in one to talk to nodes in the others.. If H has only one entry in its routing table, what is the prefix and the IP of the next hop for this entry? If it has only one entry, it is the default route, also called the default gateway. The prefix is 0.0.0.0/0, and the IP address is that of the router s interface which is connected to this network, 00.... When a packet is sent from H to H (assume H knows H s IP address), what is the layer MAC address put in the frame sent by H? (You can say the MAC address of interface X on Y )

H first checks to see if H is in a different subnet, by masking H with H s network mask, and comparing with H s address masked with H s mask: 00...5 & 55.55.55.0 = 00...0!= 00...5 & 55.55.55.0 Given that they are different, H then goes to its routing table, and looks up H s address using longest prefix match. The only entry in the table is R s 00... interface (which is in the same subnet). The answer is the MAC address of router R s interface that has the ip address 00.... How does H obtain this MAC address? (What protocol does it use, and what is the argument in the protocol message sent by H?) H obtains this address using ARP, by asking Who has IP 00...?. Note that after the first lookup, H may find this mapping in its own local ARP cache. 5. When a packet is sent from H to H (assume H knows H s IP address), what is the layer MAC address in the frame sent by H? Why? It is H s own MAC address, because H is in the same subnet as H. 6. If you configure H s network mask to be 55.55.5.0, does this change the set of nodes it can reach? Why or why not? Yes. The new mask has one less bit (it is a / instead of a /), so that the nodes will ignore the LSB of the third byte of the address. Now H will think that all the nodes in subnet 00...0/ are in its subnet. Thus, it will not be able to reach the nodes there. Instead, H will issue futile ARP requests for H s address, and no one will answer. H will still be able to reach all the nodes in the 00...0/ subnet, as they will have a different subnet mask: H will send the packets there through the router. Spanning Tree Consider the following network:

S S S A B C D. If this is a standard Ethernet network, why do we need the Spanning Tree Protocol on this topology? Because there is a loop in the topology, which would cause packet loops and broadcast storms.. What is the final state of the network once the STP converges? (For each switch port, mention whether it is in one of the three states: root port, designated port, or discarding port). Assume that ties are broken based on the numeric switch id. See the figure below.

S S Root Port S Designated Port Discarding Port A B C D Port Status Port Status Port Status Port Status. Designated S. Root S. Root S. Root. Designated S. Discarding S. Designated S. Designated. Designated S. Designated. Designated S. Designated BGP In the figure below, the circles represent ASes, arrows point from customer to providers, and lines connect peer ASes. Assume that the ASes follow the Gao-Rexford model.

E C F A B D G. List all AS-level announcements that B receives to reach G. Is the set of announcements different from the set of all possible paths? Why? DG is the only one. It is different from the set of all possible paths, which would include CDG, because C does not announce to B the routes it learns from D. This is because C does not announce to peers routes it learns from other peers.. If B and D decide to not peer anymore, A will stop being able to talk to G and F. Why? Because of the same reason, C does not advertise any of the routes it learns from D to B.. What changes would B and D have to do to the way they relate to other ASes (assuming they still don t want to talk to each other), so that the broken routes get re-established? (hint: this will involve money). Why? They will have to become customers of C, because when they are paying C money, C will advertise the routes it learns from D to B, and from B to D.. List two problems that could arise if BGP were to use a distance vector protocol instead of a path vector protocol. Some possible problems: (a) It would be much easier for loops to form. (b) There could be count-to-infinity problems, which would be pretty bad at the level of ASes. (c) ASes would not be able to inspect the whole path to apply policies. Please let us know if you find any mistakes, inconsistencies, or confusing language in this or any other C68 document by filling out the anonymous feedback form: https://piazza.com/class/isqj7mfnyz6r?cid=6. 5