ROUTING ON THE INTERNET COSC 6590 1 22-Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.

Slides:



Advertisements
Similar presentations
Interior Routing Protocols Chapter 11: Routing in IP
Advertisements

Data and Computer Communications Ninth Edition by William Stallings Chapter 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
CSC 600 Internetworking with TCP/IP Unit 6a: IP Routing and Exterior Routing Protocols (Ch. 14, 15) Dr. Cheer-Sun Yang Spring 2001.
Computer Networks with Internet Technology William Stallings
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Computer Networks with Internet Technology William Stallings
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
Data Communication and Networks Lecture 11 Internet Routing Algorithms and Protocols December 5, 2002 Joseph Conron Computer Science Department New York.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
1 6/14/ :27 CS575Internetworking & Routers1 Rivier College CS575: Advanced LANs Chapter 13: Internetworking & Routers.
Routing.
14 – Inter/Intra-AS Routing
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 CMPT 471 Networking II BGP. © Janice Regan, External Gateway Protocol  An EGP is designed to control the passage of information between autonomous.
Lect1..ppt - 03/28/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 16 Exterior Routing Protocols And Multicasting by Zornitza Genova.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Routing and Routing Protocols Routing Protocols Overview.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols.
CIS Routing in IP. Introduction Routers forward IP datagrams from one router to another on path from source to destination Router must have idea.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Border Gateway Protocol
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Routing and Routing Protocols
Chapter 16 Exterior Routing Protocols and Multicasting 1 Chapter 16 Exterior Routing Protocols And Multicasting.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
William Stallings Data and Computer Communications 7th Edition
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
Routing Protocols Brandon Wagner.
Routing Protocols COSC 541 Data Commun. System & Networks Yue Dou.
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Working at a Small-to-Medium Business or ISP – Chapter 6
Routing on the internet
Routing on the internet
Dijkstra’s shortest path Algorithm
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Interior Routing Protocols Chapter 11&12: Routing in IP
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Protocols
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

ROUTING ON THE INTERNET COSC Jun-16

Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology and traffic/delay conditions  use dynamic routing algorithm  distinguish between:  routing information - about topology & delays  routing algorithm - that makes routing decisions based on information 2

Performance Criteria  used for selection of route  simplest is “minimum hop”  can be generalized as “least cost” 3

Example Packet Switched Network 4

Autonomous Systems (AS)  is a group of routers and networks managed by single organization  which exchange information via a common routing protocol  form a connected network  at least one path between any pair of nodes  except in times of failure 5

Interior and Exterior Router Protocols  interior router protocol (IRP)  passes routing information between routers within AS  can be tailored to specific applications  needs detailed model of network to function  may have more than one AS in internet  routing algorithms & tables may differ between them  routers need info on networks outside own AS  use an exterior router protocol (ERP) for this  supports summary information on AS reachability 6

Application of IRP and ERP 7

Approaches to Routing – Distance-vector  each node (router or host) exchange information with neighboring nodes  first generation routing algorithm for ARPANET  eg. used by Routing Information Protocol (RIP)  each node maintains vector of link costs for each directly attached network and distance and next-hop vectors for each destination  requires transmission of much info by routers  distance vector & estimated path costs  changes take long time to propagate 8

Approaches to Routing – Link-state  designed to overcome drawbacks of distance-vector  each router determines link cost on each interface  advertises set of link costs to all other routers in topology  if link costs change, router advertises new values  each router constructs topology of entire configuration  can calculate shortest path to each dest  use to construct routing table with first hop to each dest  do not use distributed routing algorithm, but any suitable alg to determine shortest paths, eg. Dijkstra's algorithm  Open Shortest Path First (OSPF) is a link-state protocol 9

What Exterior Routing Protocols are not  link-state and distance-vector not effective for exterior router protocol  distance-vector  assumes routers share common distance metric  but different ASs may have different priorities & needs  but have no info on AS’s visited along route  link-state  different ASs may use different metrics and have different restrictions  flooding of link state information to all routers unmanageable 10

Exterior Router Protocols – Path-vector  alternative path-vector routing protocol  provides info about which networks can be reached by a given router and ASs crossed to get there  does not include distance or cost estimate  hence dispenses with concept of routing metrics  have list of all ASs visited on a route  enables router to perform policy routing  eg. avoid path to avoid transiting particular AS  eg. link speed, capacity, tendency to become congested, and overall quality of operation, security  eg. minimizing number of transit ASs 11

Border Gateway Protocol (BGP)  developed for use with TCP/IP internets  is preferred EGP of the Internet  uses messages sent over TCP connection  current version is BGP-4 (RFC1771)  functional procedures  neighbor acquisition - when agree to exchange info  neighbor reachability - to maintain relationship  network reachability - to update database of routes 12

BGP Messages  Open  Update  Keep alive  Notification 13

Message Types - Open & KeepAlive  router makes TCP connection to neighbor  Open message  sent by connection initiator  includes proposed hold time  receiver uses minimum of own/sent hold time  max time between Keepalive and/or Update  Keep Alive message  To tell other routers that this router is still here 14

Message Types - Update  Update message conveys two info types:  Info about single routes through internet  List of routes being withdrawn  info on a route uses 3 fields:  Network Layer Reachability Information (NLRI)  Total Path Attributes Length  Path Attributes  withdraw route identified by dest IP address 15

Message Types – Update (2)  Origin - IGP or EGP  AS_Path - list of AS traversed  Next_hop - IP address of border router  Multi_Exit_Disc - info on routers internal to AS  Local_pref - inform routers in AS of route pref  Atomic_Aggregate, Aggregator - implement route aggregation to reduce amount of info 16

AS_Path and Next_Hop Use  AS_Path  used to implement routing policies eg. to avoid a particular AS, security, performance, quality, number of AS crossed  Next_Hop  only a few routers implement BGP  responsible for informing outside routers of routes to other networks in AS 17

Notification Message  sent when some error condition detected:  Message header error  Open message error  Update message error  Hold time expired  Finite state machine error  Cease 18

BGP Routing Information Exchange  within AS a router builds topology picture using IGP  router issues Update message to other routers outside AS using BGP  these routers exchange info with other routers in other AS  AS_Path field used to prevent loops  routers must then decide best routes 19

Open Shortest Path First (RFC2328)  IGP of Internet  replaced Routing Information Protocol (RIP)  uses Link State Routing Algorithm  each router keeps list of state of local links to network  transmits update state info  little traffic as messages are small and not sent often  uses least cost based on user cost metric  topology stored as directed graph  vertices or nodes (router, transit or stub network)  edges (between routers or router to network) 20

Example OSPF AS 21

Directed Graph of AS 22

SPF Tree for Router 6 23

Least Cost Algorithms  basis for routing decisions  can minimize hop with each link cost 1  or have link value inversely proportional to capacity  defines cost of path between two nodes as sum of costs of links traversed  in network of nodes connected by bi-directional links  where each link has a cost in each direction  for each pair of nodes, find path with least cost  link costs in different directions may be different  alternatives: Dijkstra or Bellman-Ford algorithms 24

Dijkstra’s Algorithm  finds shortest paths from given source node s to all other nodes  by developing paths in order of increasing path length  algorithm runs in stages (next slide)  each time adding node with next shortest path  algorithm terminates when all nodes processed by algorithm (in set T) 25

Dijkstra’s Algorithm Method  Step 1 [Initialization]  T = {s} Set of nodes so far incorporated  L(n) = w(s, n) for n ≠ s  initial path costs to neighboring nodes are simply link costs  Step 2 [Get Next Node]  find neighboring node not in T with least-cost path from s  incorporate node into T  also incorporate the edge that is incident on that node and a node in T that contributes to the path  Step 3 [Update Least-Cost Paths]  L(n) = min[L(n), L(x) + w(x, n)] for all n  T  f latter term is minimum, path from s to n is path from s to x concatenated with edge from x to n 26

Dijkstra’s Algorithm Example 27

Dijkstra’s Algorithm Example IterTL(2)PathL(3)PathL(4)PathL(5)PathL(6 ) Path 1{1}21– –4  -  - 2{1,4}21– –421-4–5  - 3{1, 2, 4}21– –421-4–5  - 4{1, 2, 4, 5} 21– –311–421-4– –6 5{1, 2, 3, 4, 5} 21– –311–421-4– –6 6{1, 2, 3, 4, 5, 6} –

Reference  Data & Computer Communications by William Stallings