Youki Kadobayashi NAIST

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

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST

Routing(2) Inter-domain Routing

Routing(2) Inter-domain Routing

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

Planning for Information Network

Routing Protocols. Autonomous System (AS)

Chapter 7: Routing Dynamically. Routing & Switching

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

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

Why dynamic route? (1)

Unit 3: Dynamic Routing

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

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

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

CSCD 330 Network Programming Spring 2018

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

CSCD 330 Network Programming Spring 2017

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

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

Introduction to OSPF

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

ECE 333: Introduction to Communication Networks Fall 2001

Routing in the Internet

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

Routing, Routing Algorithms & Protocols

Routing. Advanced Computer Networks: Routing 1

Internet Routing Protocols Tuba Saltürk

COM-208: Computer Networks - Homework 6

Routing Protocol comparison

Inter-Domain Routing: BGP

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

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

Routing in a network

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

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

Open Shortest Path First (OSPF)

Top-Down Network Design

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

2008 NDP Lectures 7 th Semester

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

OSPF Protocol Overview on page 187. OSPF Standards on page 188. OSPF Area Terminology on page 188. OSPF Routing Algorithm on page 190

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

Chapter 7 Routing Protocols

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

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

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

To contain/reduce broadcast traffic, we need to reduce the size of the network (i.e., LAN).

Routing. Info 341 Networking and Distributed Applications. Addresses, fragmentation, reassembly. end-to-end communication UDP, TCP

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

Network Layer: Routing

Lecture 13: Routing in multihop wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 3, Monday

Homework 3 Discussion

Computer Networks. Routing Algorithms

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

Unit 9. Author: W.Buchanan. Routing Protocols (1)

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

Module 8. Routing. Version 2 ECE, IIT Kharagpur

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

ICMP, ARP, RARP, IGMP

Dynamic Routing. The Protocols

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

CS118 Discussion Week 7. Taqi

CSCD 433/533 Advanced Networks Spring 2016

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

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Real4Test. Real IT Certification Exam Study materials/braindumps

TDC 363 Introduction to LANs

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

CSc 450/550 Computer Networks Internet Routing

ETSF05/ETSF10 Internet Protocols Routing on the Internet

Routing. Routing. Overview. Overview. Routing vs. Forwarding. Why Routing

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

IP Routing Tecnologie e Protocolli per Internet II rev 1

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

Routing Outline. EECS 122, Lecture 15

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

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

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

Table of Contents. Cisco Introduction to EIGRP

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

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

Distance Vector Routing Protocols

Introduction to routing

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

EE 122: Intra-domain routing

Internet Routing Protocols, DHCP, and NAT

Important Lessons From Last Lecture Computer Networking. Outline. Routing Review. Routing hierarchy. Internet structure. External BGP (E-BGP)

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

Lecture 4: Intradomain Routing. CS 598: Advanced Internetworking Matthew Caesar February 1, 2011

Helsinki University of Technology Telecommunications Laboratory. OSPF Routing Protocol Licenciate course seminar paper

Redes de Computadores. Shortest Paths in Networks

9.1. Routing Protocols

Transcription:

Information Network 1 Routing (1) 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! Who will make decision? S! Router?! Source?! How can we detect failures?! How much will be the overhead? 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? S! Router?! Source?! How can we detect failures?! How much will be the overhead? 500ms Rogue nation 500ms D 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 of end-to-end reachability! Automatic computation of best path! Distribution of traffic! Avoid failing links! Fault isolation! Reflect administrative policies 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 which 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 compute route RIB: Routing Information Base)! Multiple routing protocols Multiple RIBs! Consolidate Multiple RIBs into single FIB (FIB: Forwarding Information Base) 10

Gateway Model Topology info, Link status info Routing software Multiple RIBs Topology info, Link status info FIB Input interfaces Output interfaces 11

Types of Routing Algorithm! Distance vector! Link state! 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 DN p.397! 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!!!!!!!! 15

Problems of distance vector routing! For the given number of routers N,! Time complexity: O(N 3 )! Traffic: O(N 2 )! Convergence speed is slow, since it sends distance vector periodically In case of newly created route, or dismissed route! Slow convergence speed results in inconsistent and transitional state! Counting to infinity problem 16

Counting to infinity problem A B 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 17

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

Limitation of split horizon A B 1 inf C D 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 19

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! Only for historic interest! Despite textbook omnipresence.. 20

Questions? 21

Link-State Routing 22

Link-state routing! Collect router and link information Digraph: router as a node, link as an arc! Create link state database (LSDB) 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 23

Dijkstra Algorithm Try demo yourself: GIDEN!!!!!!!!!!!! 24

Pros and Cons of Link-State Routing! Time complexity: lower than distance vector routing! Traffic: increases in proportion to the number of links and routers! Storage complexity: increases in proportion to the number of links and routers! Convergence time: must be short! Counting to infinity doesn t happen! Flexible configuration of link cost is possible 25

OSPF: Open Shortest Path First RFC 2328, 5340! Link state routing protocol for TCP/IP world! 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 26

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 27

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

Questions? 29

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 30

Topology Representation in OSPF Source: OSPF Version 2, RFC 1583 31

Link State Update! Flooding! Forward received LSAs to other interfaces if given LSAs are fresh! Update LSDB, compute shortest path tree again 32

Questions? 33

LSA to RIB LSA LSA LSA LSDB Dijkstra RIB LSA directed graph shortest path tree fragments of directed graph 34

LSA to RIB! The following 3 slides:! Example of OSPF network! Derived directed graph Subgraph represented by individual LSA! Shortest path tree; rooted at RT6 Generated by Dijkstra s algorith 35

Example of OSPF Network 36

Digraph 37

Shortest path tree; rooted at RT6 38

OSPF area! Solution by divide and conquer algorithm! Time complexity: For intra-area link changes, the Dijkstra's Algorithm used in OSPF has a time complexity of O(s*log s), where s is the size of the Area. (X. Xiao et al., Reducing Routing Table Computation Cost in OSPF, INET 99)! Traffic volume (fault isolation)! The following 2 slides:! Example of OSPF area! Partitioned digraph 39

40

41

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

Questions? 43

Summary! Routing system: design space, characterization! Distance vector routing! Bellman-Ford algorithm! RIP protocol (historic)! Link state routing! Dijkstra algorithm! OSPF protocol! Coming in next lecture:! IGP and EGP, hierarchical routing! Path vector routing! Implementation of routing policy 44