Computer Networks: Routing

Slides:



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

What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
CS 577 Advanced Computer Networks
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination Network layer must.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Advanced Computer Networks: Routing1 Routing. 2 R R R R S SS s s s s ss s ss s R s R Backbone To internet or wide area network Organization Servers Gateway.
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.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 17/04/2007.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
Computer Networks: Routing1 Network Layer Routing.
Extending Networks. Three Levels of Extension Physical Layer –Repeaters Link Layer –Bridges –Switches Network –Routers: “Connecting networks”
Routing.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
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.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
CS 453 Computer Networks Lecture 24 IP Routing. See…
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
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.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Routing Primer Advanced Computer Networks. Routing Outline  Overview of Point-to-Point Routing (WAN)  Routing Algorithm Classification  Distance Vector.
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.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast 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.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
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.
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.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
The Network Layer.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
Distance Vector Routing
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.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Dynamic Routing Protocols II OSPF
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Routing Primer Internet of Things Fall Internet of Things Routing Primer Routing Outline  Overview of Point-to-Point Routing (WAN)  Routing Algorithm.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
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.
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
© 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.
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.
Computer Networks: Routing1 Network Layer Routing.
Network Layer Routing Networks: Routing.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Dynamic Routing Protocols II OSPF
Routing.
Dynamic Routing Protocols II OSPF
The Network Layer Network Layer Design Issues:
Advanced Computer Networks
Network Layer Routing Networks: Routing.
Routing.
Network Layer Routing.
Presentation transcript:

Computer Networks: Routing Network Layer Routing Computer Networks: Routing

Computer Networks: Routing Network Layer Concerned with getting packets from source to destination. The network layer must know the topology of the subnet and choose appropriate paths through it. When source and destination are in different networks, the network layer (IP) must deal with these differences. Key issue: what service does the network layer provide to the transport layer (connection-oriented or connectionless). Computer Networks: Routing

Network Layer Design Goals The services provided by the network layer should be independent of the subnet topology. The Transport Layer should be shielded from the number, type and topology of the subnets present. The network addresses available to the Transport Layer should use a uniform numbering plan (even across LANs and WANs). Computer Networks: Routing

Computer Networks: Routing Messages Messages Segments Transport layer Transport layer Network service Network service Network layer Network layer Network layer Network layer End system a Data link layer Data link layer Data link layer Data link layer End system b Physical layer Physical layer Physical layer Physical layer Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.2 Computer Networks: Routing

Computer Networks: Routing Machine A Machine B Application Application Transport Router/Gateway Transport Internet Internet Internet Network Interface Network Interface Network Interface Network 1 Network 2 Computer Networks: Routing Figure 8.3

Computer Networks: Routing Metropolitan Area Network (MAN) Gateway Organization Servers To internet or wide area network s s Backbone R R R S Departmental Server S S R R R s s s s s s s s s Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.6 Computer Networks: Routing

Computer Networks: Routing Wide Area Network (WAN) Interdomain level Border routers Internet service provider Autonomous system or domain Border routers LAN level Intradomain level Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.7 Computer Networks: Routing

Computer Networks: Routing (a) National service provider A National ISPs National service provider B NAP NAP National service provider C Network Access Point (b) NAP RA Route server RB LAN RC Copyright ©2000 The McGraw Hill Companies Computer Networks: Routing Leon-Garcia & Widjaja: Communication Networks Figure 7.8

Computer Networks: Routing Datagram Packet Switching Packet 1 Packet 1 Packet 2 Packet 2 Packet 2 Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.15 Computer Networks: Routing

Computer Networks: Routing Routing Table in Datagram Network Destination address Output port 0785 7 1345 12 1566 6 2458 12 Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.16 Computer Networks: Routing

Computer Networks: Routing Virtual Circuit Packet Switching Packet Packet Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.17 Computer Networks: Routing

Computer Networks: Routing Routing Table in Virtual Circuit Network Identifier Output port Next identifier 12 13 44 Entry for packets with identifier 15 15 15 23 27 13 16 58 7 34 Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.21 Computer Networks: Routing

Computer Networks: Routing Routing algorithm:: that part of the Network Layer responsible for deciding on which output line to transmit an incoming packet. Remember: For virtual circuit subnets the routing decision is made ONLY at set up. Algorithm properties:: correctness, simplicity, robustness, stability, fairness, optimality, and scalability. Computer Networks: Routing

Routing Classification Adaptive Routing based on current measurements of traffic and/or topology. 1. centralized 2. isolated 3. distributed Non-Adaptive Routing routing computed in advance and off-line flooding static routing using shortest path algorithms Computer Networks: Routing

Computer Networks: Routing Flooding Pure flooding :: every incoming packet to a node is sent out on every outgoing line. Obvious adjustment – do not send out on arriving link (assuming full-duplex links). The routing algorithm can use a hop counter (e.g., TTL) to dampen the flooding. Selective flooding :: only send on those lines going “approximately” in the right direction. Computer Networks: Routing

Computer Networks: Routing Shortest Path Routing Bellman-Ford Algorithm [Distance Vector] Dijkstra’s Algorithm [Link State] What does it mean to be the shortest (or optimal) route? Minize the number of hops along the path. Minimize mean packet delay. Maximize the network throughput. Computer Networks: Routing

Computer Networks: Routing Metrics Set all link costs to 1. Shortest hop routing. Disregards delay. Measure the number of packets queued. Did not work well. Timestamp ArrivalTime and DepartTime* and use link-level ACK to compute: Delay = (DepartTime – ArrivalTime) + TransmissionTime + Latency * Reset after retransmission Computer Networks: Routing

Computer Networks: Routing Metrics Unstable under heavy link load. Difficulty with granularity of the links. Revised ARPANET routing metric: Compress dynamic range of the metric Account for link type Smooth variation of metric with time: Delay transformed into link utilization Utilization was averaged with last reported utilization. Hard limit set on how much the metric could change per measurement cyle. Computer Networks: Routing

Figure 4.22 Revised ARPANET routing metric versus link utilization Computer Networks: Routing

Dijkstra’s Shortest Path Algorithm Initially mark all nodes (except source) with infinite distance. working node = source node Sink node = destination node While the working node is not equal to the sink 1. Mark the working node as permanent. 2. Examine all adjacent nodes in turn If the sum of label on working node plus distance from working node to adjacent node is less than current labeled distance on the adjacent node, this implies a shorter path. Relabel the distance on the adjacent node and label it with the node from which the probe was made. 3. Examine all tentative nodes (not just adjacent nodes) and mark the node with the smallest labeled value as permanent. This node becomes the new working node. Reconstruct the path backwards from sink to source. Computer Networks: Routing

Internetwork Routing [Halsall] Adaptive Routing Centralized Distributed Isolated [RCC] [IGP] [EGP] Intradomain routing Interdomain routing [BGP,IDRP] Interior Gateway Protocols Exterior Gateway Protocols Distance Vector routing Link State routing [RIP] [OSPF,IS-IS,PNNI] Computer Networks: Routing

Computer Networks: Routing Adaptive Routing Basic functions: Measurement of pertinent network data. Forwarding of information to where the routing computation will be done. Compute the routing tables. Convert the routing table information into a routing decision and then dispatching the data packet. Computer Networks: Routing

Computer Networks: Routing Adaptive Routing Design Issues: How much overhead is incurred due to gathering the routing information and sending routing packets? What is the time frame (i.e, the frequency) for sending routing packets in support of adaptive routing? What is the complexity of the routing strategy? Computer Networks: Routing

Distance Vector Routing Historically known as the old ARPANET routing algorithm {or known as Bellman-Ford algorithm}. Basic idea: each network node maintains a Distance Vector table containing the distance between itself and ALL possible destination nodes. Distances are based on a chosen metric and are computed using information from the neighbors’ distance vectors. Metric: usually hops or delay Computer Networks: Routing

Distance Vector Routing Information kept by DV router each router has an ID associated with each link connected to a router, there is a link cost (static or dynamic) the metric issue! Distance Vector Table Initialization Distance to itself = 0 Distance to ALL other routers = infinity number Computer Networks: Routing

Distance Vector Algorithm [Perlman] Router transmits its distance vector to each of its neighbors. Each router receives and saves the most recently received distance vector from each of its neighbors. A router recalculates its distance vector when: It receives a distance vector from a neighbor containing different information than before. It discovers that a link to a neighbor has gone down (i.e., a topology change). The DV calculation is based on minimizing the cost to each destination. Computer Networks: Routing

Distance Vector Routing Figure 5-9.(a) A subnet. (b) Input from A, I, H, K, and the new routing table for J. Computer Networks: Routing

Routing Information Protocol (RIP) RIP had widespread use because it was distributed with BSD Unix in “routed”, a router management daemon. RIP is the most used Distance Vector protocol. RFC1058 in June 1988. Sends packets every 30 seconds or faster. Runs over UDP. Metric = hop count BIG problem is max. hop count =16  RIP limited to running on small networks!! Upgraded to RIPv2 Computer Networks: Routing

Figure 4.17 RIP Packet Format (network_address, distance) pairs Figure 4.17 RIP Packet Format Computer Networks: Routing

Computer Networks: Routing Link State Algorithm Each router is responsible for meeting its neighbors and learning their names. Each router constructs a link state packet (LSP) which consists of a list of names and cost to reach each of its neighbors. The LSP is transmitted to ALL other routers. Each router stores the most recently generated LSP from each other router. Each router uses complete information on the network topology to compute the shortest path route to each destination node. Computer Networks: Routing

Figure 4.18 Reliable LSP Flooding Computer Networks: Routing

Computer Networks: Routing Reliable Flooding The process of making sure all the nodes participating in the routing protocol get a copy of the link-state information from all the other nodes. LSP contains: Sending router’s node ID List connected neighbors with the associated link cost to each neighbor Sequence number Time-to-live Computer Networks: Routing

Computer Networks: Routing Reliable Flooding First two items enable route calculation Last two items make process reliable ACKs and checking for duplicates is needed. Periodic Hello packets used to determine the demise of a negihbor The sequence numbers are not expected to wrap around. => field needs to be large (64 bits) Computer Networks: Routing

Open Shortest Path First (OSPF) Provides for authentication of routing messages. 8-byte password designed to avoid misconfiguration. Provides additional hierarchy – areas This reduces the amount of information transmitted in packet Provides load-balancing via multiple routes. Computer Networks: Routing

Open Shortest Path First (OSPF) Figure 4.32 A Domain divided into Areas Computer Networks: Routing

Open Shortest Path First (OSPF) OSPF runs on top of IP, i.e., an OSPF packet is transmitted with IP data packet header. Uses Level 1 and Level 2 routers Has: backbone routers, area border routers, and AS boundary routers LSPs referred to as LSAs (Link State Advertisements) Complex algorithm due to five distinct LSA types. Computer Networks: Routing

Computer Networks: Routing OSPF Terminology Internal router :: a level 1 router. Backbone router :: a level 2 router. Area border router :: a backbone router that attaches to more than one area. AS boundary router :: (an interdomain router), namely, a router that attaches to routers from other ASs. Computer Networks: Routing

Computer Networks: Routing OSPF LSA Types Router link advertisement Network link advertisement Network summary link advertisement AS boundary routers summary link advertisement AS external link advertisement Computer Networks: Routing

Figure 4.21 OSF Type 1 Link-State Advertisement Computer Networks: Routing

Computer Networks: Routing OSPF Areas To another AS N1 R1 N5 N2 R3 R6 N4 R7 R2 N6 R4 R5 N3 Area 0.0.0.0 Area 0.0.0.1 R8 Area 0.0.0.2 N7 R = router N = network Area 0.0.0.3 Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 8.33 Computer Networks: Routing

Computer Networks: Routing OSPF Figure 5-65.The relation between ASes, backbones, and areas in OSPF. Tanenbaum slide Computer Networks: Routing

Border Gateway Protocol (BGP) The replacement for EGP is BGP. Current version is BGP-4. BGP assumes the Internet is an arbitrary interconnected set of AS’s. In interdomain routing the goal is to find ANY path to the intended destination that is loop-free. The protocols are more concerned with reachability than optimality. Computer Networks: Routing