CS321: Computer Networks Unicast Routing

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

CSc 450/550 Computer Networks Internet Routing

Computer Networking Introduction

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

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

CS BGP v4. Fall 2014

Chapter 4: Network Layer, partb

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

Network Layer: Routing

COM-208: Computer Networks - Homework 6

CS118 Discussion Week 7. Taqi

Inter-Domain Routing: BGP

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

Chapter IV: Network Layer

CSCD 330 Network Programming Spring 2018

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

CSCD 330 Network Programming Spring 2017

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

Chapter 4: outline. Network Layer 4-1

Why dynamic route? (1)

Lecture 4. The Network Layer (cont d)

Routing in the Internet

Chapter 4: Network Layer

Inter-AS routing and BGP. Network Layer 4-1

Routing Unicast routing protocols

Routing Protocols --- Exterior Gateway Protocol

Outline Computer Networking. Inter and Intra-Domain Routing. Internet s Area Hierarchy Routing hierarchy. Internet structure

Inter-domain Routing. Outline. Border Gateway Protocol

CSCE 463/612 Networks and Distributed Processing Spring 2018

Unit 3: Dynamic Routing

DATA COMMUNICATOIN NETWORKING

Routing. Jens A Andersson Communication Systems

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

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

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

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

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

Lecture 9. Network Layer (cont d) Network Layer 1-1

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

CSCI Topics: Internet Programming Fall 2008

Internet inter-as routing: BGP

Routing Protocols. Autonomous System (AS)

Internet Routing : Fundamentals of Computer Networks Bill Nace

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

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

internet technologies and standards

Interdomain Routing Reading: Sections P&D 4.3.{3,4}

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

PART III. Implementing Inter-Network Relationships with BGP

Internet Interconnection Structure

Chapter 4 Network Layer

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

Network layer: Overview. Network layer functions Routing IP Forwarding

COMP/ELEC 429 Introduction to Computer Networks

Master Course Computer Networks IN2097

Ravi Chandra cisco Systems Cisco Systems Confidential

CSCD 433/533 Network Programming Fall Lecture 14 Global Address Space Autonomous Systems, BGP Protocol Routing

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

CS4700/CS5700 Fundamentals of Computer Networks

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

CS4450. Computer Networks: Architecture and Protocols. Lecture 15 BGP. Spring 2018 Rachit Agarwal

Master Course Computer Networks IN2097

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

Interdomain routing CSCI 466: Networks Keith Vertanen Fall 2011

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

This appendix contains supplementary Border Gateway Protocol (BGP) information and covers the following topics:

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

ETSF10 Internet Protocols Routing on the Internet

Routing(2) Inter-domain Routing

ITTC Introduction to Communication Networks The University of Kansas EECS 563 Network Routing

Interdomain Routing. EE122 Fall 2011 Scott Shenker

Border Gateway Protocol (an introduction) Karst Koymans. Tuesday, March 8, 2016

Border Gateway Protocol

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

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

Unicast Routing Protocols (RIP, OSPF, and BGP)

TELE 301 Network Management

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Routing Protocols. Technology Description BGP CHAPTER

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

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

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE. External Routing BGP. Jean Yves Le Boudec 2015

Link State Routing & Inter-Domain Routing

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

BGP. Border Gateway Protocol (an introduction) Karst Koymans. Informatics Institute University of Amsterdam. (version 17.3, 2017/12/04 13:20:08)

Lecture 16: Border Gateway Protocol

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

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

Interdomain Routing. EE122 Fall 2012 Scott Shenker

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

Overview 4.2: Routing

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

ETSF10 Internet Protocols Routing on the Internet

Border Gateway Protocol (BGP-4)

Border Gateway Protocol - BGP

CSC 4900 Computer Networks: Routing Protocols

Chapter 7 Routing Protocols

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

Transcription:

CS321: Computer Networks Unicast Routing Dr. Manas Khatua Assistant Professor Dept. of CSE IIT Jodhpur E-mail: manaskhatua@iitj.ac.in

Introduction The goal of the network layer is deliver a datagram from its source to its destination. An Internet as a Graph 10-02-2017 Dr. Manas Khatua 2

Least cost routing one of the ways to interpret the best route from the source router to the destination router is to find the least cost between the two. Distance vector approach Link state approach 10-02-2017 Dr. Manas Khatua 3

Distance Vector Routing a router continuously tells all of its neighbours what it knows about the whole internet (although the knowledge can be incomplete) each node creates its own Ieast-cost tree with the (incomplete) information it receives from neighbours It is iterative, asynchronous, and distributed The heart of distance-vector routing is Bellman-Ford equation: d x (y) = min v {c(x,v) + d v (y)} distance vector: a one-dimensional array to represent the least-cost tree 10-02-2017 Dr. Manas Khatua 4

Cont 10-02-2017 Dr. Manas Khatua 5

Problem in DVR Count to Infinity problem (for two nodes): Solutions: Split Horizon: each node sends only specific part of its table through each interface Route deleted problem due to timer Poison Reverse: Do not use this value; what I know about this route comes from you 10-02-2017 Dr. Manas Khatua 6

Link State Routing a router continuously tells all nodes what it knows about the neighbours 10-02-2017 Dr. Manas Khatua 7

Cont To create a least-cost tree for itself, each node needs to run the famous Dijkstra Algorithm. 10-02-2017 Dr. Manas Khatua 8

Path-Vector Routing LS and DV both are based on least-cost routing Does not allow the sender to apply its own policy PV based on best path according to desired policy mainly used in routing between ISPs Path is determined from source to destination using spanning tree (might not be least cost) Spanning trees are made gradually and asynchronously likewise DVR Follow Bellman-Ford, but not the least-cost concept 10-02-2017 Dr. Manas Khatua 9

Internet Structure 10-02-2017 Dr. Manas Khatua 10

Routing Protocols Each ISP is considered as Autonomous System (AS) Stub AS: connects to one other AS only Multihomed AS: connects more than one AS, but refuses to carry transit traffic Transit AS: connects more than one other AS, and carries local and transit traffic Two types of routing protocol: Intra-AS / intradomain / Interior Gateway Protocol (IGP) E.g., RIP (Routing Information Protocol) - use DVR OSPF (Open Shortest Path First) - use LSR Inter-AS / interdomain / Exterior Gateway Protocol (EGP) E.g., BGP (Border Gateway Protocol) - use PVR 10-02-2017 Dr. Manas Khatua 11

RIP Follow distance-vector routing with the following modifications Router advertise the cost to reach different networks instead of individual node Advertise forwarding table instead of distance-vector Cost is defined as number of hops 10-02-2017 Dr. Manas Khatua 12

Cont 10-02-2017 Dr. Manas Khatua 13

RIP Implementation RIP runs at the application layer but creates forwarding table for network layer Uses the service of UDP on port 520 Runs as background process Two processes : a client and a server RIP uses two types of messages: request and response Runs as background process 10-02-2017 Dr. Manas Khatua 14

RIP Algorithm RIP uses three timers: Periodic timer: for advertising update message regularly Expiration timer: governs the validity of a route 10-02-2017 Dr. Manas Khatua 15

Cont 10-02-2017 Dr. Manas Khatua 16

BGP AS2, AS3, AS4 : stub AS; AS1 : transient AS Each AS use RIP / OSPF for intra-domain routing BGP for inter-domain routing used by all AS ebgp: on each border router ibgp: on all routers 10-02-2017 Dr. Manas Khatua 17

External BGP (ebgp) 3 pairs: R1-R5, R4-R9, R2-R6 => 3 ebgp sessions (using TCP) Message 1 is sent by router R1 and tells router R5 that N1, N2, N3, and N4 can be reached through router R1. Then, R5 updates its table. 10-02-2017 Dr. Manas Khatua 18

Limitation in ebgp 1. Border router does not know how to route a packet destined for non-neighbour AS. E.g., R5 does not know about networks in AS3, AS4 2. None of the non-border routers know how to route a packet destined for any network in other ASs. E.g., R3 does not know about networks in AS2, AS3, AS4 Solution: Internal BGP (ibgp) 10-02-2017 Dr. Manas Khatua 19

Internal BGP (ibgp) No message for R3, R7, R8 No ibgp session for single router in an AS. For n router in an AS: n(n-1)/2 sessions Message 1 sent by R1 tells that N8 and N9 are reachable through the path AS1-AS2, but the next router is R1. 10-02-2017 Dr. Manas Khatua 20

Finalizing BGP path table R1 receives: 10-02-2017 Dr. Manas Khatua 21

Cont 10-02-2017 Dr. Manas Khatua 22

Injection of Information into Forwarding Table The role of BGP is to help the routers inside the AS to augment their routing table Cost update problem for mixing of RIP and OSPF For stub AS: 10-02-2017 Dr. Manas Khatua 23

Cont For transient AS: 10-02-2017 Dr. Manas Khatua 24

Messages BGP uses 4 types of messages Open Message : for creating neighbourhood relationship. Router creates a TCP connection with neighbour router and sends Open message. Update Message: to withdraw destinations that have been advertised previously or to announce a route to a new destination Keepalive Message: BGP peers exchange this message to tell each other that they are alive Notification: when an error is detected or the router wants to close the session 10-02-2017 Dr. Manas Khatua 25

Path Attributes In RIP/OSPF a destination has two associated with two information: next hop and cost But, inter-domain routing needs more information In BGP, those information are called path attributes Destination can be associated with 7 attributes Two types of attribute: mandatory and optional Mandatory attributes must be present in each UPDATE message Optional attributes type: transitive and nontransitive 10-02-2017 Dr. Manas Khatua 26

Cont ORIGIN (Type 1): This is mandatory attribute. Value=1: path information comes from RIP/OSPF Value=2: information comes from BGP Value=3: information comes from other sources MULTI-EXIT-DISC (Type 4): This is optional intransitive attribute discriminates among multiple exit paths to a destination This is intransitive as the best exit path (e.g. shortest path) is different from one AS to other 10-02-2017 Dr. Manas Khatua 27

Route Selection 10-02-2017 Dr. Manas Khatua 28

10-02-2017 Dr. Manas Khatua 29