© Janice Regan, CMPT 128, 2007-2012 0 CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.

Slides:



Advertisements
Similar presentations
Routing Protocol.
Advertisements

Computer Networks with Internet Technology William Stallings
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Computer Networks with Internet Technology William Stallings
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Routing So how does the network layer do its business?
Routing and Routing Protocols
Routing.
COS 420 Day 17. Agenda Finished Grading Individualized Projects Very large disparity in student grading No two students had same ranking for other students.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
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.
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
6: Routing Working at a Small to Medium Business.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
1 CMPT 471 Networking II RIP. © Janice Regan, Dynamic Routing  In very simple small and stable networks static routing may be adequate.  As networks.
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
1 Routing. 2 Routing is the act of deciding how each individual datagram finds its way through the multiple different paths to its destination. Routing.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols.
10/19/2015CST Computer Networks1 RIP - OSPF CST 415.
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.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
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.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
6: Routing Working at a Small to Medium Business.
Routing and Routing Protocols
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Interior Gateway Protocols (RIP, OSPF) continued….
Dynamic Routing Protocols II OSPF
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.
© 2002, Cisco Systems, Inc. All rights reserved..
Routing Protocols Brandon Wagner.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
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.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
1 CMPT 471 Networking II OSPF © Janice Regan,
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols II OSPF
CMPT 371 Data Communications and Networking Routing in the Internet
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
Dynamic Routing and OSPF
Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols

Janice Regan © Oct Hierarchical Routing  So far when considering routing we have considered a “group of routers” and seen how to develop routes between them, and forward packets along those routes.  Both distance vector and link state routing have limitations when scaling to very large networks. The amount of information exchanged becomes prohibitive. (possible for your local network but not for the entire Internet)  Each administrative entity wants autonomy to optimize and configure their own networks for their own purposes. No one configuration will satisfy everyone  Need to allow each administrative entity the freedom to configure and protect their network as they wish  But we still need to be able to communicate between these different networks

Janice Regan © Oct Autonomous Systems (AS)  Group of routers and hosts controlled by a single administrative authority  Common routing protocol (interior routing protocol or IRP) for all members of the group  Defines mechanisms for discovering, validating, and maintaining routes within the autonomous system  A connected network within the local group  There is at least one route between any pair of nodes  Routing protocol for propagating subset of routing information to other autonomous systems on the internet (Exterior routing protocol or ERP)

Janice Regan © Oct Interior Router Protocol (IRP)  Routers need complete information about the local AS  IRP Passes routing information between routers within AS  Needs a detailed model what information is sent between routers formats of messages carrying this information frequency of exchange of this information Algorithms for routing (creating routing tables) and forwarding (using routing tables). Are these algorithms distributed? Local? Global? Etc.  Routing and forwarding algorithms may differ between ASs as may other parts of the model (for example DV or LS)  Also called intra-autonomous system routing protocol

Janice Regan © Oct Some ASs A1A1 A2A2 A4A4 A3A3 C2 C1 B2 C4 B6 B1 B3 B5 B4 C5 AS A AS B AS C C3 IRP B IRP C IRP A Gateway router

Janice Regan © Oct Some ASs  Only routers are shown in the previous diagrams, the networks of hosts that communicate with the Internet through each of the routers are shown as dotted lines  A host is attached through one of these networks to its default router. The router that attaches it the larger internet  The default router for the source host is called the source router  The default router for the destination host is the destination router

Janice Regan © Oct Routing with ASs  If both the source router and the destination router are in the same AS then the IRP for that AS is used to route the packet from the source to the receiver  If the source router and the destination router are in different ASs then  the IRP for the source AS is used to reach the gateway router for the source AS  The gateway router uses another protocol (the ERP, more later) to get the packet to the gateway router of the destination AS.  The gateway router of the destination AS uses the IRP of the destination AS to send the packet to its destination with the destination AS

Janice Regan © Oct Exterior Routing Protocol  ERP is an External Routing Protocol  Routers need some information about external ASs  Use ERP to communicate outside AS  At least one routers in the AS must do external routing  When more than one router in the AS does external routing must also consider finding the fastest path between gateway routers in the local AS  ERP supplies summary information on reachability of group members to routers outside the AS

Janice Regan © Oct Application of IRP and ERP Figure 19.5 Stallings (2003)

Janice Regan © Oct Distance-vector Routing Approach  Each node exchanges information with neighbor nodes  Neighbors are both directly connected to same system  Each node maintains vector of link costs for each directly attached node and distance and next-hop values for each destination node in the system  A node must transmit large amounts of information  Distance vector to all neighbors, Containing estimated path cost to all nodes in a configuration and next hop labels  Changes take long time to propagate (count to infinity)  Used by first generation routing algorithm for ARPANET and by Routing Information Protocol (RIP, routed) RIP is an internal gateway protocol (IGP) used between routers within an AS

Janice Regan © Oct Routing Information Protocol  RIP, The simplest dynamic distance vector routing protocol still in use, was built and adopted before a formal standard was available (RFC 1058 RIPv1, 2453 RIPv2 )  Implemented in LINUX as the routed process.  Adequate only for small and stable ASs  based on the Bellman-Ford (or distance vector) algorithm  helps control count to infinity problem by specifying a maximum hop count of 15

Janice Regan © Oct Routing Information Protocol  Uses a simple metric, hop count  Not designed to deal with more complicated dynamic metrics such as delay, reliability or load (these can cause route oscillations)  Helps control oscillation between equal cost routes by retaining original route unless a route with a lower cost is found.  Helps prevent slow convergence (after changes in the topology of the network) by sending update messages immediately after updates have been completed (triggered updates)

Janice Regan © Oct Updating and RIP  Routing tables are updated or maintained  Each router will periodically (every 30 seconds) broadcast its routing table  If no update is received from a router for 180 seconds, that router is considered to no longer be reachable  Each router will process the received updates, adding new entries, updating entries for which a lower cost path has been located and updating entries for directly connected nodes whose cost changed  If the routing information changes during the update process the router will immediately broadcast the modified tables to its neighbors (called a triggered update)

Janice Regan © Oct Link-state Routing Approach  When router initialized and at intervals thereafter, it determines link cost on each interface (cost to each directly connected node)  Advertises set of link costs to other nodes in topology  Each node constructs routing table containing minimum cost paths to all attached nodes ( costs and first hop to each router) using the data received from all other nodes advertisements (information on nearest neighbors only to reduce packet size).  Open shortest path first (OSPF) protocol uses link-state routing. (a common IRP)  Second generation routing algorithm for ARPANET

Janice Regan © Oct Open Shortest Path First:  OSPF is the preferred IGP of Internet  Uses a Link State Routing Algorithm (RFC 2328) Each router  keeps a database of information based on local costs and received update packets from other routers in the AS Each update includes cost information from one router to each of its neighbors Can build directed graph showing topology and path costs for entire network from this information (for all routers)  Uses the database and Dykstra’s algorithm to determine least cost paths  Advertises its locally determined routing table periodically and when it changes (to all routers in the network)

Janice Regan © Oct Sample AS Figure 19.7 Stallings (2003)

Janice Regan © Oct Directed Graph for OSPF  Vertices or nodes are routers and networks  Types of Network  Transit: data not originating in network can pass through the network, more than one router is attached to the network  Stub: data not originating in network can enter only. One router is attached to network  Edges, associated costs at output of routers  Connect two routers with a pair of edges  Connect router to transit network with pair of edges (network to router edge has a cost of 0), or to stub network with single edge

Janice Regan © Oct Directed Graph of AS Figure 19.8 Stallings (2003)

Janice Regan © Oct Dividing an AS into Areas  Many networks are large and complex it is often useful to divide them into areas and deal with each smaller area separately  A large advantage of OSPF is that it includes mechanisms for dealing with ASs partitioned into areas.  When an AS is divided into areas the areas are chosen so they can be connected by a backbone of routers  Any router which is part of an area, but also communicates with other areas, is also a part of the backbone area.  The backbone is a special area. The information passing between all other areas travels through the backbone routers (dark ovals in diagram)  Routers in each area run their own copy of the routing process and have their own topological link-state data base. Routers in one area have no detailed knowledge of routing in other areas.

Janice Regan © Oct From notes of Lou Hafer, after RFC1131: AS divided into areas 23b23b 2b2b 1b1b Includes Router 4 Includes Routers 7 and 11 Backbone routers 3,4,5,6,7,10,11 AS Boundary routers 5,7 Internal routers 1,2,5,6,8,9,12 Area Border routers 3,4,7,10,11

Janice Regan © Oct Types of routers in an AS  I nternal Routers: all connected networks belong to the same area or with only backbone interfaces  Area Border Routers: not internal, run one copy of routing algorithm for backbone, and one copy for each attached area  Backbone Routers: has at least one interface to the backbone. Can be an internal router if all interfaces are with the backbone. Otherwise it is an area border router  AS boundary routers: Part of the AS but also communicates with routers outside the AS using and EGP. Can be routers of an of the above types

© Janice Regan, Neighbor Routers  Any pair of routers attached to the same single network segment (single broadcast address) can become neighbors  To become neighbors they must agree that they are neighbors  The pair of routers negotiates this agreement using and exchange of Hello packets (more later) to assure a two way link is established

© Janice Regan, Adjacent routers  Routers establish an adjacency if they will be exchanging LSAs.(link state announcement packets that carry routing information between routers)  A router on a particular physical segment will not necessarily be adjacent to all other routers on that segment  A router with multiple interfaces may simultaneously be adjacent to routers on more than one network segment

© Janice Regan, OSPF messages  Encapsulated in IP datagrams  5 types of messages, all message types begin with a common header  Message types are  Hello  Database description  Link status request,  Link status update  Link status acknowledgement

© Janice Regan, OSPF operation (1)  Meet your neighbors  Hello messages are used to establish and test neighbor reachability  Two OSPF router may be neighbors if they are on the same network segment  Make good friends:  Database description, link state request update and ack are used for forming adjacencies (making friends)  Adjacencies are agreements to exchange Link State Announcements. Adjacencies are not established with all neighbors, just an optimal subset.  Database description, link state request, link state update and link state ack messages are used to establish adjacency

OSPF operation (2) 3. Keeping in touch with friends 3. Send Hello messages periodically to verify that neighbors are still neighbors 4. Break the neighbor (and adjacency relations) if you do not hear from a neighbor (receive a hello) for 3 periods 5. Send update information about any changes in routing to your adjacent neighbors when you have it (send Link state announcements LSAs) 6. Update your routing database based on LSAs received from your adjacent neighbors © Janice Regan,

© Janice Regan, Flooding protocol: conditions  A message(LSA) contains a database record. A database record contains information about one link between two routers in the graph discussed earlier. (one link is in one direction)  Each message contains a time stamp or message number  These message numbers are used by the receiving node to determine age of the record  Send means transmit through all attached interfaces except the one on which the incoming message arrived

© Janice Regan, Flooding protocol  Receive message: Find the corresponding record in the local database if it exists  If the record is not yet in the local database add the record. Send the message  If the record’s message number is larger than the message number in the data base, replace the message in the database with the new record. Send the message.  If the records message number is the same as the message number in the database do nothing  If the records message number is smaller than the message number in the database, send the record in the database back through the interface on which the message arrived

© Janice Regan, link state advertisements (1)  Router link advertisement  Originated by all routers  Flooded throughout a single area only  Describes the states of the router’s interfaces to the area  Network link advertisement  Originated by broadcast networks  Flooded throughout a single area only  Contains a list of routers connected to the network

Janice Regan © Oct From notes of Lou Hafer, after RFC1131: AS divided into areas 23b23b 2b2b 1b1b Includes Router 4 Includes Routers 7 and 11 Backbone routers 3,4,5,6,7,10,11 AS Boundary routers 5,7 Internal routers 1,2,5,6,8,9,12 Area Border routers 3,4,7,10,11

© Janice Regan, link state advertisements (2)  Summary link advertisement  Originated by border area routers  Flooded throughout a area and backbone  Describes a route outside the local area but within the AS  AS external link advertisement  Originated by AS boundary area routers  Flooded throughout the AS  Contains a route to a destination outside the AS in another AS