Youki Kadobayashi NAIST

Similar documents
Youki Kadobayashi NAIST

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST

Topology. Youki Kadobayashi NAIST. Outline. Routing system: its function. Gateway Model Revisited. Routing system: its structure

Routing(2) Inter-domain Routing

Chapter 7: Routing Dynamically. Routing & Switching

Planning for Information Network

Routing(2) Inter-domain Routing

Unit 3: Dynamic Routing

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

Routing(2) Inter-domain Routing

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

! Distance vector routing! Link state routing.! Path vector routing! BGP: Border Gateway Protocol! Route aggregation

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

TDC 363 Introduction to LANs

Top-Down Network Design

Routing Protocols. Autonomous System (AS)

Two types of routing protocols are used in internetworks: interior gateway protocols (IGPs) and exterior gateway protocols (EGPs).

CSE 461 Routing. Routing. Focus: Distance-vector and link-state Shortest path routing Key properties of schemes

Routing in a network

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Routing. 4. Mar INF-3190: Switching and Routing

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

Chapter 5 RIP version 1

Introduction to OSPF

Ch. 5 Maintaining and Troubleshooting Routing Solutions. Net412- Network troubleshooting

Routing Protocol comparison

2008 NDP Lectures 7 th Semester

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

CCNA 3 (v v6.0) Chapter 7 Exam Answers % Full

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

Network Layer: Routing

Internet Routing Protocols Tuba Saltürk

Routing. Advanced Computer Networks: Routing 1

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

CCNA 3 (v v6.0) Chapter 6 Exam Answers % Full

Chapter 4: Advanced Internetworking. Networking CS 3470, Section 1

CSCE 463/612 Networks and Distributed Processing Spring 2018

Routing. Problem: Given more than one path from source to destination, Features: Architecture Algorithms Implementation Performance

Why dynamic route? (1)

TDC 363 Introduction to LANs

ICMP, ARP, RARP, IGMP

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

Distance vector and RIP

Lecture 12. Introduction to IP Routing. Why introduction? Routing

Default & Static Routes and Routing Information Protocol. Presented by : Mohammed Hamad

Routing, Routing Algorithms & Protocols

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

CCNA 3 (v v6.0) Chapter 8 Exam Answers % Full

CCNA 3 (v v6.0) Chapter 5 Exam Answers % Full

Chapter 3. Introduction to Dynamic Routing Protocols. CCNA2-1 Chapter 3

SEMESTER 2 Chapter 3 Introduction to Dynamic Routing Protocols V 4.0

Distance Vector Routing Protocols

Network Protocols. Routing. TDC375 Winter 2002 John Kristoff - DePaul University 1

COM-208: Computer Networks - Homework 6

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

IP Routing Tecnologie e Protocolli per Internet II rev 1

Chapter 5. RIP Version 1 (RIPv1) CCNA2-1 Chapter 5

Final exam study Guide

ECE 333: Introduction to Communication Networks Fall 2001

Routing Information Protocol. A simple distance vector scheme

Network Layer, Part 2 Routing. Terminology

ICS 351: Today's plan. distance-vector routing game link-state routing OSPF

9.1. Routing Protocols

Claim desired outcome

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

Introduction to Local and Wide Area Networks

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

Routing in the Internet

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

Inter-Domain Routing: BGP

CompSci 356: Computer Network Architectures. Lecture 12: Dynamic routing protocols: Link State Chapter Xiaowei Yang

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

Configuring RIP. Information About RIP CHAPTER

ICS 351: Today's plan. netmask exercises network and subnetwork design dynamic routing RIP distance-vector routing

Introduction to Intra-Domain Routing

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

Chapter 7 Lab 7-1, Configuring BGP with Default Routing

Dynamic Routing. The Protocols

cs/ee 143 Communication Networks

Keywords RIP, OSPF, IGP, EGP, AS, LSA

ROUTING PROTOCOLS. Mario Baldi Routing - 1. see page 2

6.02 Fall 2014! Lecture #21. Failures in routing Routing loops Counting to infinity

(Refer Slide Time: 01:08 to 01:25min)

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

Overview. Information About Layer 3 Unicast Routing. Send document comments to CHAPTER

Computer Networks. Routing Algorithms

Chapter 7 Routing Protocols

Architectures and Protocols for Integrated Networks. Intra-domain and Inter-domain Routing Protocols

Routing Overview. Path Determination

Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione. 06 Routing protocols. Fundamentals of Communication Networks

CompSci 356: Computer Network Architectures. Lecture 13: Dynamic routing protocols: Link State Chapter 3.3.3, Xiaowei Yang

Introduction to routing

CS 457 Networking and the Internet. What is Routing. Forwarding versus Routing 9/27/16. Fall 2016 Indrajit Ray. A famous quotation from RFC 791

Transcription:

Information Network 1 Routing (1) Image: Part of the entire Internet topology based on CAIDA dataset, using NAIST Internet viewer Youki Kadobayashi NAIST 1

The Routing Problem How do I get from source to destination? Which path is best? In terms of: Number of hops Delay, bandwidth Policy constraints, cost Who will make decision? Router? Source? How can we detect failures? How much the overhead will be? S D 2

The Routing Problem How do I get from source to destination? Which path is best? In terms of: Number of hops Delay, bandwidth Policy constraints, cost Who will make decision? Router? Source? S 500ms 500ms D How can we detect failures? How much the overhead will be? Rogue ISP unreliable 3

Solution design space for the routing problem Represent network in: a graph, or a matrix Collect information: across the network, or toward some routers, or only locally among neighbors Compute route at: every router, or some routers solutions are instantiated in routing systems. 4

Characterization of routing systems Static routing Compute route a priori Dynamic routing Reflect dynamic state of network S D Source-based routing Source node computes path to destination Hop-by-hop routing Every node computes next hop 5

Focus of this lecture: dynamic, hop-by-hop routing Static routing Compute route a priori Dynamic routing Reflect dynamic state of network Source-based routing Source node computes path to destination Hop-by-hop routing Every node computes next hop 6

Routing system: its function Provision end-to-end reachability Automatically compute best path Distribute traffic among multiple links Avoid failing links Isolate faults Reflect administrative policies in one system. Isn t it awesome. 7

Routing system characterization Representation of network Network topology Attributes associated with each link Exchange of information Communication overhead Propagation speed Computation algorithm Computation overhead Convergence speed Routing system: protocol + information + algorithm 8

On network topology Topology: geometric configurations that are unaltered by elastic deformations 2 1 2 3 1 2 1 2 3 1 3 1 2 3 2 1 3 3 Graph representation Matrix representation 9

Routing system: its structure Routing protocol discovers neighbor router; exchanges topology information; exchanges link information Routing algorithm computes route (result: RIB - Routing Information Base) Integrate information from multiple routing protocols Multiple routing protocols Multiple RIBs Consolidate Multiple RIBs into single FIB (FIB: Forwarding Information Base) 10

Gateway Model: a conceptual model of routing system Topology info, Link status info Routing software Multiple RIBs Topology info, Link status info FIB Input interfaces Output interfaces 11

Types of Routing Algorithm 1. Distance vector 2. Link state 3. Path vector Key difference of these algorithms: Topology representation Propagation range / frequency / timing of link state Algorithm for computing shortest path Design trade-offs: Scalability Convergence time Algorithm simplicity 12

Questions? 13

Distance Vector Routing 14

Distance vector routing w/ Bellman-Ford algorithm 1. assign distance vector to myself 0; for others, assign 2. send my distance vectors to all neighbor routers 3. router calculates minimum distance vectors by 1) distance vectors advertised by neighbor routers and 2) distance from myself to individual neighbor router Initial condition b i (0) (i D) b D (0) 0 Repetition b i (m) min j Vi {b j (m-1) + d ij } Terminal condition b i (m) = b i (m-1) D: destination router, b i (m) : distance between router i and D by m-times iterative calculation, V i : neighbor routers of router i, d ij : distance of link between router i and j DN p.397 15

RIP: Routing Information Protocol RFC 2453, RFC 2080 Distance vector routing RIP-2 (IPv4), RIPng (IPv6) Used in relatively small network Due to ease of implementation and operation Textbook classics 16

Informal description of RIP Each router sends a list of distance-vectors (route, cost) to each neighbor periodically Every router selects the route with smallest metric Metric: integer of 1..16, where 16 implies infinity A cost: 1 B cost: 2 C Router metric B 1 C 3 Router metric A 1 C 2 Router metric A 3 B 2 17

Hands on: see how RIP works (description of GNS3) (basic instruction to keep RIP up and running) 18

GNS3 Description An open source software that simulate complex networks Devices list Topology summary Console View zone

IOS Image Setting Edit -> ISO images and hypervisors Select a image

Cisco Router: Basic Configuration enable configure terminal interface name_of_the_inteface ip address ip_address mask no shutdown show ip interface brief

RIPv2 Basic Configuration In configuration mode: (config)#router rip (config)#version 2 (config)#network network_address

Show Running Config

Troubleshooting Ripv2 show ip route show ip protocols

Hands on task: try to expand your RIP network Add 3 rd router to your RIP network Example topology: 2 1 2 3 1 3 25

Adding A New Router

Router Configuration Right click R3

R3 Configuration IP address configuration RIP configuration at R Save Configuration

After Configuration

Problems of distance vector routing Poor scalability. For the given number of routers N, Time complexity: O(N 3 ) Traffic: O(N 2 ) Slow convergence speed, as it sends distance vector periodically Slow convergence induces inconsistent and transitional state => Counting to infinity problem 30

Counting to infinity problem A B 1 1 inf C Suppose link B-C went down. B thinks: (C, inf) A says: (C, 2) B thinks: (C, 3) via A B says: (C, 3) A thinks: (C, 4) via B 31

Split Horizon Workaround for counting to infinity Router doesn t send learned information to source router A B 1 1 inf C Suppose link B-C went down. B thinks: (C, inf) A says: (C, 2) to everyone except B 32

Limitation of split horizon A B 1 1 inf C 1 D 1 Suppose link B-C went down. B thinks: (C, inf) A says: (C, 2) to everyone except B D thinks: (C, 3) via A D says: (C, 3) B thinks: (C, 4) via D 33

Questions? (Dumb questions welcomed while you re a student) Extra hands-on if you are further motivated: Introduce link failure and observe counting-toinfinity problem Add 4 th router as in the last slide and observe that split-horizon does not save us 34

Lessons from RIP Bellman-Ford: very simple But with many traps and pitfalls as in A. Koenig, C Traps and Pitfalls Guiding principle for using RIP: avoid loops! Do you know? Loops can be easily formed, however. Backup links Guiding principle can be easily forgotten OMG! A better alternative: link state routing. 35

Link-State Routing 36

Link-state routing Collect router and link information Directed graph: router as a node, link as an arc then create link state database (LSDB) A network map that collects link state information Based on LSDB, calculate the shortest path with the Dijkstra s shortest path algorithm Time complexity: O(N 2 ) Can be further optimized by improved data structure 37

A high level view Router Router Link LSDB Dijkstra RIB Link fragments of directed graph directed graph shortest path tree 38

Graph representation of routers and links Source: OSPF Version 2, RFC 1583 39

A more complex network 40

and its directed graph representation 41

Shortest path tree; rooted at RT6 42

Questions? 43

From directed graph to shortest-path trees: Dijkstra Algorithm Initially, d s 0 d j c sj (for every j V {s}) P {s} Interconnections p.223 Find the next closest node: d i min j V P {d j } P P {i} Update labels: d k min k V P {d k, d i + c ik } Terminal condition: P = V V: all routers, s: starting router, c ik : link cost between i and k, d j : least cost between s to j, P: router with least cost determined 44

Pros and Cons of Link-State Routing Traffic increases in proportion to the number of links and routers Storage complexity increases in proportion to the number of links and routers Time complexity: lower than distance vector routing Convergence time: must be short, for transient loop issue Counting to infinity doesn t happen (read: fewer traps and pitfalls) Flexible configuration of link cost is possible (no nonsense like 16 = infinity) 45

OSPF: Open Shortest Path First RFC 2328, 5340 The link state routing protocol for the Internet OSPFv2 (IPv4), OSPFv3 (IPv6) Functions Recognize neighbor router Exchange link state information and create LSDB Calculate shortest path tree (spanning tree) + Designated Router, Backup Designated Router + Hierarchical structure by area + Collaboration with EGP 46

OSPF Hello Discover neighbor router on the same link send Hello packet to 224.0.0.5, ff02::5 (AllSPFRouters) List of neighbor routers in Hello packet check bidirectional communication (select designated router and backup designated router) Send Hello packet periodically to detect link down keeps pinging, as in ICMP 47

Adjacency formation Neighbor Adjacent Routers don t exchange routing information unless they are adjacent Formation process: Hello Neighbor Synchronize each LSDB Synchronized Adjacent 48

Hands on: say hello in OSPF! (basic instruction to bring OSPF up and running) (establish OSPF adjacency) (add 1 or 2 routers) 49

Basic OSPF Configuration router ospf process_id router-id router_id network network_address wildcard-mask area area_id show ip protocols show ip ospf show ip ospf interface show ip ospf neighbor show ip route show ip ospf database

OSPF Configuration R1 configuration 1. Set IP address 2. Set OSPF area 28 area 0 R3 configuration 1. Set IP address 2. Set OSPF

Topology Representation in OSPF LSA (Link State Advertisement) Type 1: Router LSA Type 2: Network LSA Type 3: Summary LSA (network) Type 4: Summary LSA (AS boundary) Type 5: AS External LSA LSA common header Validity period and sequence number in LSA header Helps routers to tell if given LSA is fresh 52

Questions? 53

Summary 54

Gateway Model Revisited Topology info, Link status info Routing software Multiple RIBs Topology info, Link status info RIP OSPF FIB Input interfaces Output interfaces 55

Summary Routing system: design space, characterization Distance vector routing Bellman-Ford algorithm RIP protocol, information model Traps and pitfalls Link state routing Graph and its spanning trees Dijkstra algorithm OSPF protocol, algorithm, information model 56

Assignment 57

Assignment: 58

Assignment: Question: If the router R1 has an OSPF configuration as follows: R1(config)# network 192.168.12.64 0.0.0.63 area 0 Which interfaces, shown in the exhibit, will participate in OSFP according to this configuration statement? Please give explanations on why. 59

Assignment: Instructions Please submit the report in PDF to our e-mail address: network1-2013@is.naist.jp File nomenclature: Name_StudentID Language: Japanese or English Submission deadline: 2013/05/23(Thursday) at 23:59 60