Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Similar documents
Overview 4.2: Routing

Address Translation. Map IP addresses into physical addresses destination host next hop router

Routing. Outline. Algorithms Scalability

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

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

C13b: Routing Problem and Algorithms

Routing in Internet. Problem. Given set of nodes, how do routers acquire info about neighbors to construct the routing tables?

Inter-domain Routing. Outline. Border Gateway Protocol

Network Layer: Routing

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Basic Idea. Routing. Example. Routing by the Network

Most important (cont d) What s most important in Project 1. Important for individuals. From from Most Important

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

Routing by the Network

Internet Protocol (IP)

Chapter 7 Routing Protocols

Determining IP Routes. 2000, Cisco Systems, Inc. 9-1

Introduction to IP Routing. Geoff Huston

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

Routing in the Internet

Routing. Advanced Computer Networks: Routing 1

CS BGP v4. Fall 2014

Routing, Routers, Switching Fabrics

Routing Unicast routing protocols

Unit 3: Dynamic Routing

BTEC Level 3 Extended Diploma

Routing: Engineering Issues. Hongwei Zhang

Routing Protocols --- Exterior Gateway Protocol

Why dynamic route? (1)

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Routing. Jens A Andersson Communication Systems

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

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

Lecture 9. Reminder: Homework 3, Programming Project 2 due today. Questions? Thursday, September 22 CS 475 Networks - Lecture 9 1

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

LS Example 5 3 C 5 A 1 D

Routing Protocols. Autonomous System (AS)

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

Chapter 4: outline. Network Layer 4-1

CS321: Computer Networks Unicast Routing

Top-Down Network Design

TDC 363 Introduction to LANs

ETSF05/ETSF10 Internet Protocols Routing on the Internet

Distance vector and RIP

Planning for Information Network

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Ravi Chandra cisco Systems Cisco Systems Confidential

COM-208: Computer Networks - Homework 6

CS 640: Introduction to Computer Networks. Intra-domain routing. Inter-domain Routing: Hierarchy. Aditya Akella

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

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Link State Routing & Inter-Domain Routing

Chapter 4: Network Layer

Computer Networks. Routing Algorithms

9.1. Routing Protocols

ITEC310 Computer Networks II

CS 457 Networking and the Internet. The Global Internet (Then) The Global Internet (And Now) 10/4/16. Fall 2016

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

Connecting to a Service Provider Using External BGP

IP Routing Volume Organization

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

Outline. Organization of the global Internet Example of domains Intradomain routing. Interdomain traffic engineering with BGP

Inter-Domain Routing: BGP

Network Layer Protocols

CSc 450/550 Computer Networks Internet Routing

Internet Routing Protocols Tuba Saltürk

Lecture 16: Interdomain Routing. CSE 123: Computer Networks Stefan Savage

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

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

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

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

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

Routing Basics ISP/IXP Workshops

shortcut Tap into learning NOW! Visit for a complete list of Short Cuts. Your Short Cut to Knowledge

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

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

Introduction to Dynamic Routing Protocols

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

Computer Networking Introduction

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

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

BGP Configuration. BGP Overview. Introduction to BGP. Formats of BGP Messages. Header

Review of Internet Architecture and Protocols

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

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

Routing Protocols and

Chapter 5 RIP version 1

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Unicast Routing. TCP/IP class

ICMP, ARP, RARP, IGMP

Chapter 7: Routing Dynamically. Routing & Switching

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

Operation Manual Routing Protocol. Table of Contents

Routing, Routing Algorithms & Protocols

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

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

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

Internet Routing Protocols, DHCP, and NAT

Transcription:

Dynamic Routing

Overview Forwarding vs Routing forwarding: to select an output port based on destination address and routing table routing: process by which routing table is built Network as a Graph C Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load 4 B 3 9 A 1 D 1 1 E 6 2 F

Distance Vector Routing Each node maintains a set of triples (Destination, Cost, NextHop) Directly connected neighbors exchange updates periodically (on the order of several seconds) whenever table changes (called triggered update) Each update is a list of pairs: (Destination, Cost) Update local table if receive a better route smaller cost came from next-hop Refresh existing routes; delete if they time out

Example A F B E C G D Destination Cost NextHop A 1 A C 1 C D 2 C E 2 A F 2 A G 3 A

Routing Loops Example 1 F detects that link to G has failed F sets distance to G to infinity and sends update t o A A sets distance to G to infinity since it uses F to reach G A receives periodic update from C with 2-hop path to G A sets distance to G to 3 and sends update to F F decides it can reach G in 4 hops via A Example 2 link from A to E fails A advertises distance of infinity to E B and C advertise a distance of 2 to E B decides it can reach E in 3 hops; advertises this to A A decides it can read E in 4 hops; advertises this to C C decides that it can reach E in 5 hops

Loop-Breaking Heuristics Set infinity to 16 Split horizon Split horizon with poison reverse

Link State Routing Strategy send to all nodes (not just neighbors) information about directly connected links (not entire routing table) Link State Packet (LSP) id of the node that created the LSP cost of link to each directly connected neighbor sequence number (SEQNO) time-to-live (TTL) for this packet

Link State Routing (cont) Reliable flooding store most recent LSP from each node forward LSP to all nodes but one that sent it generate new LSP periodically increment SEQNO start SEQNO at 0 when reboot decrement TTL of each stored LSP discard when TTL=0

Route Calculation Dijkstra s shortest path algorithm Let N denotes set of nodes in the graph l (i, j) denotes non-negative cost (weight) for edge (i, j) s denotes this node M denotes the set of nodes incorporated so far C(n) denotes cost of the path from s to node n M = {s} for each n in N - {s} C(n) = l(s, n) while (N!= M) M = M union {w} such that C(w) is the minimum for all w in (N - M) for each n in (N - M) C(n) = MIN(C(n), C (w) + l(w, n ))

Metrics Original ARPANET metric measures number of packets queued on each link took neither latency or bandwidth into consideration New ARPANET metric stamp each incoming packet with its arrival time (AT) record departure time (DT) when link-level ACK arrives, compute Delay = (DT - AT) + Transmit + Latency if timeout, reset DT to departure time for retransmission link cost = average delay over some time period Fine Tuning compressed dynamic range replaced Delay with link utilization

Subnet Example Subnet mask: 255.255.255.128 Subnet number: 128.96.34.0 128.96.34.15 H1 128.96.34.1 R1 128.96.34.130 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.128 H3 128.96.33.14 128.96.34.129 R2 128.96.33.1 H2 128.96.34.139 Subnet mask: 255.255.255.0 Subnet number: 128.96.33.0 Forwarding table at router R1 Subnet Number Subnet Mask Next Hop 128.96.34.0 255.255.255.128 interface 0 128.96.34.128 255.255.255.128 interface 1 128.96.33.0 255.255.255.0 R2

Popular Interior Gateway Protocols RIP: Route Information Protocol developed for XNS distributed with Unix distance-vector algorithm based on hop-count OSPF: Open Shortest Path First recent Internet standard uses link-state algorithm supports load balancing supports authentication

EGP: Exterior Gateway Protocol Overview designed for tree-structured Internet concerned with reachability, not optimal routes Protocol messages neighbor acquisition: one router requests that another be its peer; peers exchange reachability information neighbor reachability: one router periodically tests if the another is still reachable; exchange HELLO/ACK messages; uses a k-out-of-n rule routing updates: peers periodically exchange their routing tables (distance-vector)

BGP-4: Border Gateway Protocol AS Types stub AS: has a single connection to one other AS carries local traffic only multihomed AS: has connections to more than one AS refuses to carry transit traffic transit AS: has connections to more than one AS carries both transit and local traffic Each AS has: one or more border routers one BGP speaker that advertises: local networks other reachable networks (transit AS only) gives path information

BGP Example Speaker for AS2 advertises reachability to P and Q network 128.96, 192.4.153, 192.4.32, and 192.4.3, can be reached directly from AS2 Backbone network (AS 1) Regional provider A (AS 2) Regional provider B (AS 3) Customer P (AS 4) Customer Q (AS 5) Customer R (AS 6) Customer S (AS 7) 128.96 192.4.153 192.4.32 192.4.3 192.12.69 192.4.54 192.4.23 Speaker for backbone advertises networks 128.96, 192.4.153, 192.4.32, and 192.4.3 can be reached along the path (AS1, AS2). Speaker can cancel previously advertised paths

Attributes are Used to Select Best Routes 192.0.2.0/24 pick me! 192.0.2.0/24 pick me! 192.0.2.0/24 pick me! 192.0.2.0/24 pick me! Given multiple routes to the same prefix, a BGP speaker must pick at most one best route (Note: it could reject them all!)

Example: Multiple AS Paths AS9 128.2/16 AS701 AS7018 128.2/16 9 701 AS73 128.2/16 9 7018 1239 AS1239

Shorter Doesn t Always Mean Shorter Path 4 1 is better than path 3 2 1 AS 4 AS 3 AS 2 AS 1