Lecture 12: Link-state Routing"

Similar documents
Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Link-State Routing Protocols

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

6.263 Data Communication Networks

Chapter 4. Distance Vector Routing Protocols

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Chapter 10 Link-State Routing Protocols

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

Computer Networks. Main Functions

Routing with OSPF. Introduction

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

MPLS. Packet switching vs. circuit switching Virtual circuits

Internet Control Message Protocol (ICMP)

Route Discovery Protocols

Lecture 18: Border Gateway Protocol"

Exterior Gateway Protocols (BGP)

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Ad hoc On Demand Distance Vector (AODV) Routing Protocol

Introduction to LAN/WAN. Network Layer

Router and Routing Basics

Final Exam. Route Computation: One reason why link state routing is preferable to distance vector style routing.

Based on Computer Networking, 4 th Edition by Kurose and Ross

Broadband Networks. Prof. Karandikar. Department of Electrical Engineering. Indian Institute of Technology, Bombay. Lecture - 26

Internet Packets. Forwarding Datagrams

Introduction to TCP/IP

Computer Network Architectures and Multimedia. Guy Leduc. Chapter 2 MPLS networks. Chapter 2: MPLS

O /27 [110/129] via , 00:00:05, Serial0/0/1

Lecture 13: Distance-vector Routing. Lecture 13 Overview. Bellman-Ford Algorithm. d u (z) = min{c(u,v) + d v (z), c(u,w) + d w (z)}

Fast Re-Route in IP/MPLS networks using Ericsson s IP Operating System

WAN Topologies MPLS. 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr Cisco Systems, Inc. All rights reserved.

6.02 Practice Problems: Routing

Wide Area Networks. Learning Objectives. LAN and WAN. School of Business Eastern Illinois University. (Week 11, Thursday 3/22/2007)

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

CS335 Sample Questions for Exam #2

ECSE-6600: Internet Protocols Exam 2

Layer 3 Routing User s Manual

Routing Protocols (RIP, OSPF, BGP)

CS Computer Networks 1: Routing Algorithms

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Routing in packet-switching networks

How To Make A Network More Efficient

PRASAD ATHUKURI Sreekavitha engineering info technology,kammam

DEMYSTIFYING ROUTING SERVICES IN SOFTWAREDEFINED NETWORKING

Introduction to Metropolitan Area Networks and Wide Area Networks

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

10CS64: COMPUTER NETWORKS - II

Loop-Free IP Fast Reroute Using Local and Remote LFAPs

MPLS is the enabling technology for the New Broadband (IP) Public Network

Administrative Distance

Security in Ad Hoc Network

IP Multicasting. Applications with multiple receivers

Introducing Basic MPLS Concepts

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Formal Measure of the Effect of MANET size over the Performance of Various Routing Protocols

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Central Control over Distributed Routing fibbing.net

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

CROSS LAYER BASED MULTIPATH ROUTING FOR LOAD BALANCING

CSE 123b Communications Software

CHAPTER 10 IP MULTICAST

Project Report on Traffic Engineering and QoS with MPLS and its applications

Simulation of Heuristic Usage for Load Balancing In Routing Efficiency

Fast Reroute Techniques in MPLS Networks. George Swallow

Introduction to Dynamic Routing Protocols

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

Behavior Analysis of TCP Traffic in Mobile Ad Hoc Network using Reactive Routing Protocols

Network Layer: Network Layer and IP Protocol

20. Switched Local Area Networks

Comparison of RIP, EIGRP, OSPF, IGRP Routing Protocols in Wireless Local Area Network (WLAN) By Using OPNET Simulator Tool - A Practical Approach

Routing. An Engineering Approach to Computer Networking

Inter-domain Routing. Outline. Border Gateway Protocol

OSPF Routing Protocol

GregSowell.com. Mikrotik Routing

MPLS Basics. For details about MPLS architecture, refer to RFC 3031 Multiprotocol Label Switching Architecture.

Multi-Protocol Label Switching To Support Quality of Service Needs

Multiprotocol Label Switching (MPLS)

Route Optimization. rek Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1

KT The Value Networking Company

Lesson 5-3: Border Gateway Protocol

IP Routing Configuring Static Routes

Network layer: Overview. Network layer functions IP Routing and forwarding

Cisco Configuring Basic MPLS Using OSPF

Evaluation And Implementation Of The Open Shortest Path First (OSPF) Routing Protocol

OSPF Configuring Multi-Area OSPF

Introduction to LAN/WAN. Network Layer (part II)

Visualizations and Correlations in Troubleshooting

BFD. (Bidirectional Forwarding Detection) Does it work and is it worth it? Tom Scholl, AT&T Labs NANOG 45

MPLS Layer 2 VPNs Functional and Performance Testing Sample Test Plans

Transcription:

Lecture 2: Link-state Routing" CSE 23: Computer Networks Alex C. Snoeren HW 3 due next Tuesday!

Lecture 2 Overview" Routing overview Intra vs. Inter-domain routing Link-state routing protocols CSE 23 Lecture 2: Link-state Routing 2

Router Tasks" Forwarding Move packet from input link to the appropriate output link Purely local computation Must go be very fast (executed for every packet) Routing Make sure that the next hop actually leads to the destination Global decisions; distributed computation and communication Can go slower (only important when topology changes) CSE 23 Lecture 2: Link-state Routing 3

Forwarding Options" Source routing Complete path listed in packet Virtual circuits Set up path out-of-band and store path identifier in routers Local path identifier in packet Destination-based forwarding Router looks up address in forwarding table Forwarding table contains (address, next-hop) tuples CSE 23 Lecture 2: Link-state Routing 4

Source Routing" Routing Host computes path» Must know global topology and detect failures Packet contains complete ordered path information» I.e. node A then D then X then J Requires variable length path header Forwarding Router looks up next hop in packet header, strips it off and forwards remaining packet» Very quick forwarding, no lookup required In practice ad hoc networks (DSR), some HPC networks (Myrinet), and for debugging on the Internet (LSR,SSR) CSE 23 Lecture 2: Link-state Routing 5

Virtual Circuits" Routing Hosts sets up path out-of-band, requires connection setup Write (input id, output id, next hop) into each router on path Flexible (one path per flow) Forwarding Send packet with path id Router looks up input, swaps for output, forwards on next hop Repeat until reach destination Table lookup for forwarding (why faster than IP lookup?) In practice ATM: fixed VC identifiers and separate signaling code MPLS: ATM meets the IP world (why? traffic engineering) CSE 23 Lecture 2: Link-state Routing 6

Destination-based Forwarding" Routing All addresses are globally known» No connection setup Host sends packet with destination address in header» No path state; only routers need to worry about failure Distributed routing protocol used to routing tables Forwarding Router looks up destination in table» Must keep state proportional to destinations rather than connections Lookup address, send packet to next-hop link» All packets follow same path to destination In Practice: IP routing CSE 23 Lecture 2: Link-state Routing 7

Routing Tables" The routing table at A, lists at a minimum the next hops for the different destinations Dest B C D E Next Hop B C C E A B E C D F F F G G F CSE 23 Lecture 2: Link-state Routing 8

Routing on a Graph" Essentially a graph theory problem Network is a directed graph; routers are vertices Find best path between every pair of vertices In the simplest case, best path is the shortest path A F B E C G D X =router =link =cost CSE 23 Lecture 2: Link-state Routing 9

Routing Challenges" How to choose best path? Defining best can be slippery How to scale to millions of users? Minimize control messages and routing table size How to adapt to failures or changes? Node and link failures, plus message loss CSE 23 Lecture 2: Link-state Routing 0

Intra-domain Routing" Routing within a network/organization A single administrative domain The administrator can set edge costs Overall goals Provide intra-network connectivity Adapt quickly to failures or topology changes Optimize use of network resources Non-goals Extreme scalability Lying, and/or disagreements about edge costs CSE 23 Lecture 2: Link-state Routing

Basic Approaches" Static Type in the right answers and hope they are always true So far Link state Tell everyone what you know about your neighbors Today s lecture! Distance vector Tell your neighbors when you know about everyone Next time CSE 23 Lecture 2: Link-state Routing 2

Link-state Routing" Two phases Reliable flooding» Tell all routers what you know about your local topology Path calculation (Dijkstras algorithm)» Each router computes best path over complete network Motivation Global information allows optimal route computation Straightforward to implement and verify CSE 23 Lecture 2: Link-state Routing 3

Dijkstraʼs Shortest Path" Graph algorithm for single-source shortest path tree S ß {} Q ß <remaining nodes keyed by distance> While Q!= {} u ß extract-min(q) ß u is done S ß S plus {u} for each node v adjacent to u relax the cost of v CSE 23 Lecture 2: Link-state Routing 4

Example: Step " 0 0 2 3 9 4 6 5 7 2 CSE 23 Lecture 2: Link-state Routing 5

Example: Step 2" 0 0 0 2 3 9 4 6 5 7 5 2 CSE 23 Lecture 2: Link-state Routing 6

Example: Step 3" 0 8 4 0 5 2 3 9 4 6 7 5 7 2 CSE 23 Lecture 2: Link-state Routing 7

Example: Step 4" 0 8 3 0 5 2 3 9 4 6 7 5 7 2 CSE 23 Lecture 2: Link-state Routing 8

Example: Step 5" 0 8 9 0 5 2 3 9 4 6 7 5 7 2 CSE 23 Lecture 2: Link-state Routing 9

Example: Conclusion" 0 8 9 0 5 2 3 9 4 6 7 5 7 2 CSE 23 Lecture 2: Link-state Routing 20

Broadcasting Link State" Reliable flooding Each router transmits a Link State Packet (LSP) on all links A neighboring router forwards out all links except incoming» Keep a copy locally; don t forward previously-seen LSPs Challenges Packet loss Out-of-order arrival Solutions Acknowledgments and retransmissions Sequence numbers Time-to-live for each packet CSE 23 Lecture 2: Link-state Routing 2

Flooding Example" LSP generated by X at T=0 Nodes become orange as they receive it X A X A T=0 T= C B D C B D X A X A T=2 T=3 C B D C B D CSE 23 Lecture 2: Link-state Routing 22

Making Something Disappear" Need to remove failed/old links from topology LSPs carry sequence numbers to distinguish new from old Routers only accept (and forward) the newestlsp Send a new LSP with cost infinity to signal a link down But also need to remove entire routers TTL in every LSP, decremented periodically by each router When TTL = 0, purge the LSP and flood the network with an LSP with TTL 0 to tell everyone else to do the same CSE 23 Lecture 2: Link-state Routing 23

When to Flood?" Triggered by a topology change Link or node failure/recovery or Configuration change like updated link metric Converges quickly, but can cause flood of updates Periodically Typically (say) every 30 minutes Corrects for possible corruption of the data Limits the rate of updates, but also failure recovery CSE 23 Lecture 2: Link-state Routing 24

Convergence" Getting consistent routing information to all nodes E.g., all nodes having the same link-state database Until routing protocol converges, strange things happen Consistent forwarding after convergence All nodes have the same link-state database All nodes forward packets on shortest paths The next router on the path forwards to the next hop CSE 23 Lecture 2: Link-state Routing 25

Transient Disruptions" Detection delay A node does not detect a failed link immediately and forwards data packets into a black hole Depends on timeout for detecting lost hellos 3 2 2 5 4 4 3 CSE 23 Lecture 2: Link-state Routing 26

Transient Disruptions" Inconsistent link-state database Some routers know about failure before others The shortest paths are no longer consistent Can cause transient forwarding loops 3 2 2 5 4 3 2 2 4 4 3 4 3 CSE 23 Lecture 2: Link-state Routing 27

Convergence Delay" Sources of convergence delay Detection latency Flooding of link-state information Shortest-path computation Creating the forwarding table Performance during convergence period Lost packets due to blackholes and TTL expiry Looping packets consuming resources Out-of-order packets reaching the destination Very bad for VoIP, online gaming, and video CSE 23 Lecture 2: Link-state Routing 28

Reducing Delay" Faster detection Smaller hello timers Link-layer technologies that can detect failures Faster flooding Flooding immediately Sending link-state packets with high-priority Faster computation Faster processors on the routers Incremental Dijkstras algorithm Faster forwarding-table update Data structures supporting incremental updates CSE 23 Lecture 2: Link-state Routing 29

Real Link-state Protocols" OSPF (Open Shortest Path First) and IS-IS Most widely used intra-domain routing protocols Run by almost all ISPs and many large organizations Basic link state algorithm plus many features: Authentication of routing messages Extra hierarchy: Partition into routing areas» Border router pretends to be directly connected to all routers in an area (answers for them) Load balancing: Multiple equal cost routes CSE 23 Lecture 2: Link-state Routing 30

Summary" Routing is a distributed algorithm React to changes in the topology Compute the paths through the network Shortest-path link state routing Flood link weights throughout the network Compute shortest paths as a sum of link weights Forward packets on next hop in the shortest path Convergence process Changing from one topology to another Transient periods of inconsistency across routers CSE 23 Lecture 2: Link-state Routing 3

For next time " No class Thursday: Happy Veterans Day! Read Ch 4.2.2 in P&D Homework 3 due next time CSE 23 Lecture 2: Link-state Routing 32