Routing Protocols 1 ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) 802.11 WiFi, Ethernet Link (Physical)

Slides:



Advertisements
Similar presentations
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.
Advertisements

Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
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.
Lecture 8 Overview. Graph abstraction u y x wv z Graph: G = (N,E) N = set of routers = { u, v, w, x, y, z } E = set of links ={ (u,v),
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
4: Network Layer4b-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
1 Routing Protocols and Forwarding  The IP protocol  Routing Protocols o Intra-domain (inside an AS) o Inter-domain (between ASes)  Forwarding: inside.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Routing - II Important concepts: Hierarchical Routing, Intra-domain routing, inter- domain routing, RIP, OSPF, BGP, Router Architecture.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 04/05/2007.
Routing.
14 – Inter/Intra-AS Routing
Routing in Wired Nets CS 215 W 01 - Mario Gerla. Routing Principles Routing: delivering a packet to its destination on the best possible path Routing.
Routing Algorithms & Routing Protocols  Shortest Path Routing  Flooding  Distance Vector Routing  Link State Routing  Hierarchical Routing  Broadcast.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 18.
Routing Protocols Chapter 25. Static Routing Typically used in hosts –Enter subnet mask, router (gateway), IP address –Perfect for cases with few connections,
Computer Networking Intra-Domain Routing, Part I RIP (Routing Information Protocol)
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Network Layer – part 31 Customer-Provider Routing Relationships  The Global Internet consists of Autonomous Systems (AS) interconnected with each other:
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
Lecture 14 ICMP: Internet Control Message Protocol r used by hosts, routers, gateways to communication network-level information m error reporting: unreachable.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Network Layer 1 Goals:  Understand Internet network layer concepts  Understand Internet routing  Understand Internet network layer protocols Content:
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
10-1 Last time □ Transitioning to IPv6 ♦ Tunneling ♦ Gateways □ Routing ♦ Graph abstraction ♦ Link-state routing Dijkstra's Algorithm ♦ Distance-vector.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
4: Network Layer4a-1 Routing in the Internet r The Global Internet consists of Autonomous Systems (AS) interconnected with each other: m Stub AS: small.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
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.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 5 TCP/IP Network Layer (3)
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
1 Version 3.1 Module 6 Routed & Routing Protocols.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
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.
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
Network Layer4-1 Routing Algorithm Classification Global or decentralized information? Global: r all routers have complete topology, link cost info r “link.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Internet and Intranet Protocols and Applications Lecture 9 Internet Routing Algorithms and Protocols March 27, 2002 Joseph Conron Computer Science Department.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
Routing in the Internet
14 – Inter/Intra-AS Routing
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Chapter 4: Network Layer
Homework 4 Out: Fri 2/26/2016 In: Fri 3/11/2016.
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
Routing.
Department of Computer and IT Engineering University of Kurdistan
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Computer Networks Protocols
Routing.
Network Layer: Internet Inter-Domain Routing
Presentation transcript:

Routing Protocols 1 ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)

Terminology 2 An IP address followed by a slash(/) and a number (i.e /8 ) indicates a block of addresses named subnet.  This includes all the addresses starting with the same 8 bits as the given address.

Flat network 3 Flat network based on the idea that all the nodes know each other. scale: with 50 million destinations: can’t store all destinations in routing tables! routing table exchange would swamp links

Hierarchical Routing 4 internet = network of networks Each administrative autonomy network admin may want to control routing in its own network Internet consists of Autonomous Systems interconnected with each other!

Internet AS Hierarchy Inter-AS border (exterior gateway routers) Intra-AS (interior gateway routers) 5

Static Routing Typically used in hosts  To configure it, enter subnet mask and the router (gateway) IP address.  Perfect for cases with few connections, doesn’t change much  E.g. host with a single router connecting to the rest of the Internet H1H2H3 R1 Internet For H1 Next Hop: IP:

Dynamic Routing Most routers use dynamic routing  Automatically build the routing tables  There are two major approaches  Distance Vector Algorithms  Link State Algorithms 7

Autonomous System Contiguous set of networks under one administrative authority Common routing protocol For example, The Hebrew university of Jerusalem A connected network  There is at least one route between any pair of nodes 8

Intra-AS Routing Named Interior Routing Protocol (IRP) or Interior Gateway Protocol (IGP)  Passes routing information between routers within AS  Can use routing metric, e.g. hop count or administrative cost 9

Inter-AS Routing Named Exterior Routing Protocol (ERP) or Exterior Gateway Protocol (EGP)  Passes routing information between routers across AS  Routing algorithms and tables may differ between different AS  Finds a path, but can’t find an optimal path since it can’t compare routing metrics via multiple AS 10

Application of IRP and ERP 11

Path Sub-optimality in Inter-AS Routing 12 Lecture #13: hop red path vs. 2 hop green path start end

Intra-AS Routing Also known as Interior Router Protocols (IRP) or Interior Gateway Protocols (IGP) Most common:  RIP: Routing Information Protocol  OSPF: Open Shortest Path First  IGRP: Interior Gateway Routing Protocol (Cisco proprietary) 13

Routing Information Protocol (RIP) Distance vector algorithm  Each node contains a vector with the distances of all the nodes in the AS. Included in BSD-UNIX Distribution in 1982  routed Distance metric: # of hops (max = 15 hops) Distance vectors: exchanged every 30 sec via Response Message (update) 14

Routing Information Protocol (RIP) Destination Network Next Router Num. of hops to dest. wA2 yB2 zB7 x--1 ….…..... w xy z A C D B Routing table in D 15

RIP: Link Failure and Recovery If no advertisement heard after 180 sec  neighbor/link declared dead  routes via neighbor invalidated  new responses sent to neighbors  neighbors in turn send out new responses (if tables changed)  link failure info quickly propagates to entire net 16

RIP Table processing RIP routing tables managed by application-level process called route-d (daemon) advertisements sent in UDP packets, periodically repeated 17

RIP Table example (continued) Router: giroflee.eurocom.fr via: netstat -rn Router only knows routes to attached LANs Default router used to “go up” Destination Gateway Flags Ref Use Interface UH lo U 2 13 fa U le U 2 25 qaa U 3 0 le0 default UG

RIP Problems (1) Massive traffic burst every 30 seconds  Because the networks grew in size Very slow coverage time  Failure takes at least 3 minutes to be observed  If we have 15 routers in line-like order, the last router will be updated with a change of the first touter only after 14*30 seconds 19

RIP Problems (1) Slow recovery from loops. If C clopases, A tries to route via B, and B via A. the loop will persist until the metrics for C reach infinity In most current networking environments, RIP is not the preferred choice for routing 20

OSPF (Open Shortest Path First) Available since 1998 for IPv4 (for IPV6 since 2008). Uses Link State algorithm  Link State packet dissemination  Topology map at each node  Route computation using Dijkstra’s algorithm OSPF update carries one entry per neighbor router Updates disseminated to entire AS (via flooding) Conceived as a successor to RIP 21

Link state protocols A B C D E F G 1 2 H I 3 router 1 A, B, C, G, H router 3 H, I router 2 D, E, F, G, I 22

OSPF “advanced” features (not in RIP) Security: all OSPF messages authenticated (to prevent malicious intrusion); TCP connections used Multiple same-cost paths allowed (only one path in RIP) For each link, multiple cost metrics for different Type Of Service (e.g., satellite link cost set “low” for best effort; high for real time) Hierarchical OSPF in large domains.  Reduces the routing traffic. 23

Hierarchical OSPF 24

Distance vector algorithm vs Link state algorithm Distance vector algorithm pros  Minimal configuration required.  Low CPU/memory overhead. Link state algorithm pros  Less updates  Loops are essentially impossible in a link-state network.  Fast convergence time. 25

IGRP (Interior Gateway Routing Protocol) CISCO proprietary; successor of RIP (mid 80s) Distance Vector, like RIP Several cost metrics (delay, bandwidth, reliability, load etc) Uses TCP to exchange routing updates Loop-free routing via Distributed Updating Alg. (DUAL) based on diffused computation 26

Inter-AS routing (Exterior Route Protocols) 27

Internet inter-AS routing: BGP BGP (Border Gateway Protocol): the de facto standard  Version 4 the current standard Path Vector protocol:  similar to Distance Vector protocol  each Border Gateway broadcast to neighbors (peers) entire path (i.e, sequence of ASs) to destination  E.g., Gateway X may send its path to dest. Z: Path (X,Z) = X,Y1,Y2,Y3,…,Z 28

Internet inter-AS routing: BGP Suppose: router X send its path to peer router W W may or may not select path offered by X  cost, policy (don’t route via competitors AS), loop prevention reasons, many other metrics E.g. X advertises path to Z: XY 1 Y 2 Y 3 Z  If W selects path advertised by X, then: Path (W,Z) = WXY 1 Y 2 Y 3 Z 29

Internet inter-AS routing: BGP BGP messages exchanged using TCP. BGP messages:  OPEN: opens TCP connection to peer and authenticates sender  UPDATE: advertises new path (or withdraws old)  KEEPALIVE keeps connection alive in absence of UPDATES;  NOTIFICATION: reports errors in previous msg; also used to close connection 30

Why different Interior/Exterior routing ? Scale: hierarchical routing saves table size, reduced update traffic, hierarchical scheme allows different interior routing protocols Policy: Intra-AS / Interior: single admin, so no policy decisions needed Inter-AS / Exterior: admin wants control over how its traffic routed, who routes through its net. Performance: Intra-AS / Interior: can focus on performance, customization Inter-AS / Exterior: policy may dominate over performance 31

Policy with BGP BGP provides capability for enforcing various policies Policies are not part of BGP: they are provided to BGP as configuration information BGP enforces policies by choosing paths from multiple alternatives and controlling advertisement (Updates) to other AS’s 32

Examples of BGP Policies A AS refuses to act as transit  Limit path advertisement A AS can become transit for some AS’s  Only advertise paths to some AS’s An AS can favor or disfavor certain AS’s for traffic transit from itself 33