CMPT 371 Data Communications and Networking Routing in the Internet

Slides:



Advertisements
Similar presentations
Computer Networks with Internet Technology William Stallings
Advertisements

Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Unicast Routing Protocols: RIP, OSPF, and BGP
Routing and Routing Protocols
Routing.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
© 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.
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 
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
6: Routing Working at a Small to Medium Business.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 CMPT 471 Networking II RIP. © Janice Regan, Dynamic Routing  In very simple small and stable networks static routing may be adequate.  As networks.
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.
© 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)
Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols.
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 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
6: Routing Working at a Small to Medium Business.
Routing and Routing Protocols
Routing Protocols Brandon Wagner.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
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.
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.
+ 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.
Network Layer Routing Networks: Routing.
Lec4: Introduction to Dynamic Routing Protocol
Introduction to Dynamic Routing Protocol
Working at a Small-to-Medium Business or ISP – Chapter 6
CS 5565 Network Architecture and Protocols
Computer Networks Routing Algorithms.
Dynamic Routing Protocols II OSPF
OSPF (Open Shortest Path First)
Routing Information Protocol (RIP)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
ICMP ICMP – Internet Control Message Protocol
Dynamic Routing Protocols part2
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
THE NETWORK LAYER.
Routing: Distance Vector Algorithm
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Introduction to Dynamic Routing Protocol
Routing.
Chapter 5: Dynamic Routing
Introduction to Dynamic Routing Protocol
Dynamic Routing Protocols II OSPF
Dynamic Routing Protocols
Dynamic Routing and OSPF
Network Layer Routing Networks: Routing.
Dynamic Routing Protocols
Working at a Small-to-Medium Business or ISP – Chapter 6
CCE1030 Computer Networking
Computer Networks Protocols
Routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Network Layer Routing.
Presentation transcript:

CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols

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 2007

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 2007

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 2007

Some ASs AS A AS B B1 IRP B B2 IRP A A1 B3 A2 B6 B4 B5 Gateway router IRP C C1 C2 C5 C3 C4 AS C Janice Regan © Oct 2007

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 2007

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 2007

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 2007

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

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 2007

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 2007

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 2007

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 2007

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 2007

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 2007

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

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 2007

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

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 2007

From notes of Lou Hafer, after RFC1131: AS divided into areas 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 1b Includes Router 4 2b 23b Includes Routers 7 and 11 From notes of Lou Hafer, after RFC1131: AS divided into areas Janice Regan © Oct 2007

Types of routers in an AS Internal 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 © Oct 2007

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, 2006

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, 2006

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, 2006

OSPF operation (1) Meet your neighbors Make good friends: 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 © Janice Regan, 2006

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

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, 2006

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, 2006

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 Contains a list of routers connected to the network © Janice Regan, 2006

From notes of Lou Hafer, after RFC1131: AS divided into areas 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 1b Includes Router 4 2b 23b Includes Routers 7 and 11 From notes of Lou Hafer, after RFC1131: AS divided into areas Janice Regan © Oct 2007

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 © Janice Regan, 2006