NET0183 Networks and Communications Lectures 29 and 30 Routing and routing protocols... 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.

Slides:



Advertisements
Similar presentations
Routing: Cores, Peers and Algorithms
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 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.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
CSCI 4550/8556 Computer Networks Comer, Chapter 25: Internet Routing.
Mod 10 – Routing Protocols
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Chapter 25 Internet Routing Internetworking Technology How routing tables are built initially How routing software updates the tables as needed. Propagation.
CCNA 2 v3.1 Module 6.
CS335 Networking & Network Administration Tuesday, May 18, 2010.
COS 420 Day 16. Agenda Finish Individualized Project Please Have Grading sheets to me by Tomorrow Group Project Discussion Assignment 3 moved back to.
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.
CS335 Networking & Network Administration Tuesday, April 20, 2010.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
Delivery, Forwarding, and Routing
Chapter 5 – Routing Protocols: IGRP. Building a Network To Be Reliable – provide error detection and ability to correct errors To Provide Connectivity.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
© 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.
Inter-domain Routing Outline Border Gateway Protocol.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Routing Protocols and CIDR BSAD 146 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Routing and Routing Protocols Routing Protocols Overview.
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Introduction to Dynamic Routing Protocol
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
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.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.
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 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
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.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
© 2002, Cisco Systems, Inc. All rights reserved..
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
The Internet Network layer
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.
Inter-domain Routing Outline Border Gateway Protocol.
Prof. Alfred J Bird, Ph.D., NBCT Office – Science 3rd floor – S Office Hours – Monday and Thursday.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
© 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.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Monday 3:00 to 4:00 and.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
Kapitel 19: Routing. Kapitel 21: Routing Protocols
Working at a Small-to-Medium Business or ISP – Chapter 6
Routing.
(How the routers’ tables are filled in)
Dynamic Routing Protocols
Dynamic Routing Protocols
Working at a Small-to-Medium Business or ISP – Chapter 6
COMPUTER NETWORKS CS610 Lecture-41 Hammad Khalid Khan.
Computer Networks Protocols
Routing.
Presentation transcript:

NET0183 Networks and Communications Lectures 29 and 30 Routing and routing protocols... 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks Lecture powerpoints from the recommended textbook are by Lami Kaya, Lecture powerpoints are © 2009 Pearson Education Inc. Their content has sometimes been edited by Andy Brooks. …the propagation of routing information to create and update forwarding tables

8/25/2009 NET0183 Networks and Communications by Dr Andy Brooks 2 The recommended textbook is Computer Networks and Internets by Douglas E. Comer (for additional discounts and offers)

value in arriving packet’s header routing algorithm local forwarding table header value output link Simplified overview of routing and forwarding 8/25/20093 NET0183 Networks and Communications by Dr Andy Brooks figure from Kurose & Ross router

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Static versus Dynamic Routing In static routing, the forwarding table is created before the system starts to forward packets. In static routing, entries are not changed unless they are manually altered by a system manager. In dynamic routing, the software continuously updates the forwarding table to insure that each datagram follows an optimum route. In dynamic routing, the software communicates with other systems to learn optimum routes to each destination. –the software continually checks for network failures Dynamic routing begins exactly like static routing by loading an initial set of routes into a forwarding table when the system boots.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Static Routing in Hosts and a Default Route Static routing is straightforward and easy to specify. –it does not require extra route propagation software –it does not consume network bandwidth –no CPU cycles are required to propagate routing information However, static routing is relatively inflexible. –it cannot accommodate network failures or changes in topology Where is static routing used? Most hosts use static routing, especially in cases where the host has one network connection and a single router connects the network to the rest of the Internet. –see Figure 27.1

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Static Routing in Hosts and a Default Route Figure 27.1 (a) A typical connection to the Internet, and (b) the static forwarding table used in each host.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Static Routing in Hosts and a Default Route As Figure 27.1 shows: A static table with two entries suffices for a typical host. –One entry specifies the address of the directly connected network. –The other entry specifies that router R 1 provides a default route for all other destinations. When an application generates a datagram for a computer on the local net (e.g. a local printer), the first entry in the forwarding table directs IP to deliver the datagram directly to its destination. When a datagram is destined for any other destination in the Internet, the second entry in the table directs IP to send the datagram to the router, R 1.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Dynamic Routing and Routers Most routers on the Internet use dynamic routing but in some exceptional cases static routing can be used. Look at Figure 27.1 again: We can imagine that the figure corresponds to a small organization that is a customer of an ISP. All traffic leaving the customer's site through router R 1 must travel to the ISP. –The forwarding table in router R 1 can be static. –The forwarding table in R 1 can use a default route just as the forwarding table in a host does.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Dynamic Routing and Routers Static routing and default routes, however, do not suffice for most routers. When two ISPs interconnect, both need to exchange routing information dynamically. See Figure 27.2 Illustration of an architecture that requires dynamic routing.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Dynamic Routing and Routers In Fig 27.2: –Router R 1 knows about networks 1 and 3. –Router R 1 does not know about network 2 (no direct connection). –Router R 2 knows about networks 2 and 3. –Router R 2 does not know about network 1 (no direct connection). For this trivial example, it may seem that static routing could be made to work, but the static approach does not scale to handle thousands of networks. –Each time an ISP adds a new customer's network, the information must be passed throughout the Internet. –A manual process is far too slow to accommodate new networks, network failures, and congestion in the Internet.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Dynamic Routing and Routers Each router exchanges information with other routers. The routing software updates the local forwarding table. Routers exchange information periodically. –Andy asks: how often? In Figure 27.2 routers R 1 and R 2 will exchange routing information. –As a result, routing software in R 2 will install a route to network 1 and routing software in R 1 will install a route to network 2. –If router R 2 crashes, the routing software in R 1 will detect that network 2 is no longer reachable and will remove the route from its forwarding table. –Later, when R 2 comes back on line, the routing software in R 1 will determine that network 2 is reachable again and will reinstall the route.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Routing in the Global Internet - general principles - A route propagation protocol allows one router to exchange routing information with another. However, such a scheme cannot scale to the entire Internet. –If a router in the Internet attempted to exchange routing information with all other routers, the resulting traffic would overwhelm the Internet. To limit routing traffic, the Internet uses a routing hierarchy. –Routers and networks in the Internet are divided into groups. –All routers within a group exchange routing information. –Then, at least one router (possibly more) in each group summarizes the information before passing it to other groups.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Routing in the Global Internet - general principles - How large is a group? What protocol do routers use within a group? How is routing information represented? What protocol do routers use between groups? The designers of the Internet routing system did not dictate an exact size, nor did they specify an exact data representation or protocol. The designers of the Internet purposefully kept the architecture flexible enough to handle a wide variety of organizations.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Autonomous System Concept - general principles - The term Autonomous System (AS) is used to specify a group of routers. An AS is a contiguous set of networks and routers all under control of one administrative authority. There is no exact meaning for administrative authority. An AS can correspond to an ISP, an entire corporation, or a university. A large organization with multiple sites may choose to define one AS for each site. Each ISP is usually a single AS, but it is possible for a large ISP to divide itself into multiple ASs. The choice of AS size can be made for economic, technical, or administrative reasons.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Autonomous System Concept - general principles - It may be less expensive for a multi-national corporation to divide into multiple ASs, each of which has a connection to an ISP in a given country, than to act as a single AS with one connection to the rest of the Internet. A protocol may generate excessive routing traffic when used on many routers, so the protocol imposes a limit on the workable size of an AS. –routing traffic might grow as the square of the number of routers

n = 1 n = 2 n = 3 A complete,undirected graph has all possible edges. n = 4 8/25/ ALG0183 Algorithms & Data Structures by Dr Andy Brooks An n-vertex, complete, undirected graph has n(n-1)/2 edges. (excluding self-loops)

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Two Types of Internet Routing Protocols All Internet routing protocols are divided into two major categories: –Interior Gateway Protocols (IGPs) –Exterior Gateway Protocols (EGPs) Routers within an AS use an IGP. Several IGPs are available and each AS is free to choose its own IGP. Usually, an IGP is easy to install and operate. The IGP may limit the size or routing complexity of an AS.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Two Types of Internet Routing Protocols Exterior Gateway Protocols (EGPs) A router in one AS uses an EGP to exchange routing information with a router in another AS. EGPs are more complex to install and operate than IGPs. –but EGPs offer more flexibility and lower traffic overhead To reduce traffic, an EGP summarizes routing information from an AS before passing it to another AS. –Andy asks: how is information summarized? An EGP implements policy constraints that allow a system manager to determine exactly what information is released outside the organization.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Two Types of Internet Routing Protocols Figure 27.3 illustrates the two-level routing hierarchy used in the Internet by showing two routers in two ASs. R 1 sends summarized information to R 4 and vice-versa using an EGP.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Two Types of Internet Routing Protocols Optimal Routes, Routing Metrics, and IGPs Routing software should find all possible paths and then choose one that is optimal. Although the Internet usually has multiple paths between any source and destination there is no universal agreement about which path is optimal. Criteria for path optimality include: –latency (delay) for real-time conversations the delay should be less than 150ms –jitter (variability in delay) for real-time conversations the jitter should be less than 30ms –packet loss (dropped packets) for real-time conversations packet loss should be less than 1% –bandwidth (throughput) 1Gbps is better than 1Mbps is better than 1Kbps

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Two Types of Internet Routing Protocols Optimal Routes, Routing Metrics, and IGPs Typical Internet routing uses a combination of two metrics: –hop count and administrative cost A hop corresponds to an intermediate network (or router). –The hop count for a destination gives the number of intermediate networks on the path to the destination. Administrative costs are assigned manually. –e.g. paths can be manually assigned to have larger hop counts. “Although most Internet routing protocols are designed to use a hop-count metric, it is possible for a network adminstrator to override the metric to enforce a policy.”

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Two Types of Internet Routing Protocols Optimal Routes, Routing Metrics, and IGPs IGPs use routing metrics, but EGPs do not. Each AS is free to choose a routing metric. EGP simply finds a path. An EGP cannot report an optimal path because it cannot make meaningful comparisons: –Suppose one AS reports the number of hops along a path to destination D and another AS reports the throughput along a different path to D. –An EGP that receives the two reports cannot choose which of the two paths has least cost because there is no way to convert from hops to throughput.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Routes and Data Traffic Data traffic for a given destination flows in exactly the opposite direction of routing traffic. Figure 27.4 (below) illustrates the flow of data in response to routing advertisements. routing advertisements ->

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Border Gateway Protocol (BGP) Most widely used EGP in the Internet is BGP-4. BGP provides routing information at the AS level. –There is no way for BGP to provide details about the routers within each AS on the path. BGP allows the sender and receiver to enforce policies. –a manager can configure BGP to restrict which routes BGP advertises to outsiders Reliable Transport –BGP uses TCP for all communication

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Border Gateway Protocol (BGP) BGP classifies each AS as: –a transit system if it agrees to pass traffic through to another AS –or a stub system if it does not Traffic passing through on its way to another AS is classified as transit traffic. BGP allows a corporation to classify itself as a stub. –even if it is multi-homed (i.e. a corporation with multiple external connections can refuse to accept transit traffic) BGP provides the glue that holds Internet routing together at the center of the Internet.

Slide 6.26 Halsall, Computing Networking and the Internet, 5 th Edition © Pearson Education Limited 2005 Figure 6.25 Routing over the Internet backbone Halsall: another good networks book. BR – boundary router simplified example

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Routing Information Protocol (RIP) RIP was one of the first IGPs used on the Internet. RIP is designed to be used among routers within an AS. Hop Count Metric –RIP measures distance in network hops. Unreliable Transport –RIP uses UDP to transfer messages among routers. Broadcast or Multicast Delivery –RIP is intended for use over LAN technologies (e.g. Ethernet) –Version 1 of RIP broadcasts messages –Version 2 allows delivery via multicast The chief advantage of RIP is its simplicity – it requires little configuration.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Routing Information Protocol (RIP) RIP uses Distance Vector Routing –Each outgoing message contains an advertisement that lists the networks the sender can reach along with a distance to each. Each entry in a RIP advertisement consists of a pair: (destination network, distance) distance is the number of hops to the destination On receiving an advertisement, RIP software uses the list of destinations to update the local forwarding table. –it calculates the shortest routes to all other nodes and updates its own forwarding table to reflect any changes

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved RIP Packet Format The RIP message format helps explain how a distance vector routing protocol operates. Figure 27.5 illustrates a RIP update message and shows how each entry contains the IP address of a destination and a distance to that destination. Each entry also has a next hop address. Each entry contains 20 octets (bytes).

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved RIP Packet Format Figure 27.5 The format of a RIP version 2 update message.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved The Open Shortest Path First Protocol (OSPF) The RIP message format illustrates the disadvantages of a distance vector routing protocol: –The size of a message is proportional to the number of networks that can be reached. –Sending RIP messages introduces delay. –Delays mean that route changes propagate slowly. –Processing RIP messages consumes many CPU cycles. RIP works well among a few routers, but does not scale well. To satisfy demand for a routing protocol that can scale to large organizations, the IETF devised an IGP known as the OSPF. –The name is derived from the use of Dijkstra's shortest path first algorithm.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved An Example OSPF Graph Figure 27.6 (a) An example topology, and (b) a corresponding OSPF graph

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved An Example OSPF Graph Each node in the graph corresponds to a router. An edge in the graph is a connection between a pair of routers. Each pair of routers connected by a network periodically probe one another and then broadcast a link-state message to other routers. All routers receive the broadcast message. –each uses the message to update its local copy of the graph and to recompute shortest paths if necessary Note that OSPF can use metrics to assign costs to paths.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Intermediate System - Intermediate System (IS-IS) The IS-IS is an IGP which was originally designed by DEC to be part of DECNET V The two protocols (OSFP and IS-IS) are similar. –Both use the link-state approach employing Dijkstra's algorithm to compute shortest paths. –Both protocols require two adjacent routers to periodically test the link between them and broadcast a status message. When the protocols were initially invented, OSPF's openness made it much more popular than IS-IS. –In fact, IS-IS was almost completely forgotten.

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved Intermediate System - Intermediate System (IS-IS) Ironically, in the early 2000's, ten years after the protocols were designed, several things changed to give IS-IS a second chance. DEC had dissolved, and IS-IS was no longer considered valuable proprietary property. A newer version of IS-IS was defined to integrate it with IP and the Internet. The largest ISPs have grown to a size where the extra overhead in OSPF makes IS-IS more attractive. –Over time, OSPF gained many features. As a result, IS-IS has started to make a comeback.

March /25/2009 NET0183 Networks and Communications by Dr Andy Brooks