SEPT, 2005CSI 41181 Part 3.1 Wide Area Networks (WANs), Routing, and Shortest Paths Robert L. Probert, SITE, University of Ottawa.

Slides:



Advertisements
Similar presentations
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Advertisements

Routing: Cores, Peers and Algorithms
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
Routing So how does the network layer do its business?
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Computer Network 實踐資管 Wang-Jiunn Cheng 2004 PART VII-2 Wide Area Networks (WANs), Routing, and Shortest Paths.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
1 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
CS335 Networking & Network Administration Tuesday, April 20, 2010.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 06/04/2007.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
CSCI 4550/8556 Computer Networks Comer, Chapter 13: WAN Technologies and Routing.
WAN Technologies.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Delivery, Forwarding and
Chapter 13: WAN Technologies and Routing 1. LAN vs. WAN 2. Packet switch 3. Forming a WAN 4. Addressing in WAN 5. Routing in WAN 6. Modeling WAN using.
CECS 474 Computer Network Interoperability WAN Technologies & Routing
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Routing Concepts Warren Toomey GCIT. Introduction Switches need to know the link address and location of every station. Doesn't scale well, e.g. to several.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Packet-Switching Networks Routing in Packet Networks.
1 Chapter Wide Area Networks (WANs), Routing, and Shortest Paths.
1 Wide Area Networks Computer Networks. 2 Motivation Connect multiple sites Span geographic distances Cross public right-of-way streets buildings railroads.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example.
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.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
1 WAN Technologies and Routing. 2 Motivation Connect multiple computers Span large geographic distance Cross public right-of-way –Streets –Buildings –Railroads.
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
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.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
Routing and Routing Protocols
Cisco Systems Networking Academy S2 C 11 Routing Basics.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
SEPT, 2003CSI Part 1.3 Wide Area Networks (WANs), Routing, and Shortest Paths Robert L. Probert, SITE, University of Ottawa.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
CS440 Computer Networks 1 Link State Routing and OSPF Neil Tang 10/31/2008.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
18-WAN Technologies and Dynamic routing Dr. John P. Abraham Professor UTPA.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
Distance Vector Routing
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
Distance Vector and Link State Routing Pragyaditya Das.
WAN Technologies. 2 Large Spans and Wide Area Networks MAN networks: Have not been commercially successful.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
COMPUTER NETWORKS CS610 Lecture-17 Hammad Khalid Khan.
Network Layer.
Ch 13 WAN Technologies and Routing
WAN Technologies and Routing
18-WAN Technologies and Dynamic routing
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
Intradomain Routing Outline Introduction to Routing
Wide Area Networks (WANs), Routing, and Shortest Paths
Advanced Computer Networks
Wide Area Networks (WANs), Routing, and Shortest Paths
Wide Area Networks (WANs), Routing, and Shortest Paths
Wide Area Networks (WANs), Routing, and Shortest Paths
Network Layer.
Presentation transcript:

SEPT, 2005CSI Part 3.1 Wide Area Networks (WANs), Routing, and Shortest Paths Robert L. Probert, SITE, University of Ottawa

SEPT, 2005CSI Motivation Connect multiple computers Span large geographic distance Cross public right-of-way Streets Buildings Railroads

SEPT, 2005CSI Building Blocks Point-to-point long-distance connections Packet switches

SEPT, 2005CSI Packet Switch Hardware device Connects to Other packet switches Computers Forwards packets Uses addresses

SEPT, 2005CSI Illustration of a Packet Switch Special-purpose computer system CPU Memory I/O interfaces Firmware

SEPT, 2005CSI Building a WAN Place one or more packet switches at each site Interconnect switches LAN technology for local connections Leased digital circuits for long-distance connections

SEPT, 2005CSI Illustration of a WAN Interconnections depend on Estimated traffic Reliability needed

SEPT, 2005CSI Store and Forward Basic paradigm used in packet switched network Packet Sent from source computer Travels switch-to-switch Delivered to destination Switch “Stores” packet in memory Examines packet’s destination address “Forwards” packet toward destination

SEPT, 2005CSI Addressing in a WAN Need Unique address for each computer Efficient forwarding Two-part address Packet switch number Computer on that switch

SEPT, 2005CSI Illustration of WAN Addressing Two part address encoded as integer Higher-order bits for switch number Low-order bits for computer number

SEPT, 2005CSI Next-Hop Forwarding Performed by packet switch Uses table of routes Table gives next hop

SEPT, 2005CSI Forwarding Table Abbreviations Many entries point to same next hop Can be condensed (default) Improves lookup efficiency

SEPT, 2005CSI Source of Routing Table Information Manual Table created by hand Useful in small networks Useful if routes never change Automatic routing Software creates/updates table Needed in large networks Changes routes when failures occur

SEPT, 2005CSI Relationship of Routing To Graph Theory Graph Node models switch Edge models connection

SEPT, 2005CSI Shortest Path Computation Algorithms from graph theory No central authority (distributed computation) A switch Must learn route to each destination Only communicates with directly attached neighbors

SEPT, 2005CSI Illustration of Minimum Weight Path Label on edge represents “distance” Possible distance metric Geographic distance Economic cost Inverse of capacity Darkened path is minimum 4 to 5

SEPT, 2005CSI Algorithms for Computing Shortest Paths Distance Vector (DV) Switches exchange information in their routing tables Link-state Switches exchange link status information Both used in practice

SEPT, 2005CSI Distance Vector Periodic, two-way exchange between neighbors During exchange, switch sends List of pairs Each pair gives (destination, distance) Receiver Compares each item in list to local routes Changes routes if better path exists

SEPT, 2005CSI Distance Vector Algorithm

SEPT, 2005CSI Distance Vector Intuition Let N be neighbor that sent the routing message V be destination in a pair D be distance in a pair C be D plus the cost to reach the sender If no local route to V or local routed has cost greater than C, install a route with next hop N and cost C Else ignore pair

SEPT, 2005CSI Example of Distance Vector Routing Consider transmission of one DV message Node 2 send to 3, 5, and 6 Node 6 installs cost 8 route to 2 Later 3 sends update to 6 6 changes route to make 3 the next hop for destination 2

SEPT, 2005CSI Proposal Each node discovers its neighbors and tells one specific node (the leader) what they find. The leader runs an algorithm to solve the all-pairs shortest path problem, computing routing tables for each node. The leader communicates the routing table to each node, which stores it in non-volatile memory in each of the nodes. Question: What are the problems with this method?

SEPT, 2005CSI Distance Vector Routing Info at nod e Distance to node ABCDEFG A01111 B101 C1101 D101 E10 F101 G110 DestCostNextHop B1B C1C D- E1E F1F G- Global view A’s view: vector

SEPT, 2005CSI Distance Vector Routing Every node starts by building it’s own local view of what nodes are 1 hop away. Next, every node sends its vector to its directly connected neighbors. F tells A that it can reach G at cost 1. A knows it can reach F at cost 1, so it updated its own vector to indicate that it can reach G at cost 2. If A were to discover another route to G at a cost higher than 2, it would ignore it and leave its vector as it is. After a few iterations of these exchanges, the routing table converges to a consistent state. Question: How would this method deal with link failures?

SEPT, 2005CSI Distance Vector Routing Periodic updates: Every t seconds, send your local info to your neighbors. This allows other nodes to know that you are running. Triggered updates: Every time you learn new information from a neighbor that leads you to update your local vector, you send the recomputed vector to all your neighbors. Question: How can you detect that a node has failed?

SEPT, 2005CSI The Count-to-infinity Problem Link (A,E) goes down. A periodic update kicks in and A advertises that its distance to E is infinity. At about the same time, B and C tell each other that they can reach E in 2 hops. B knows now that it can’t communicate with E via A, but concludes that it can send traffic to C which says it can reach A in 2 hops. Now, B is thinking that its distance to E is 3 hops and it lets A know about that. Argh, now A is going to think it can reach E in 4 hops and it will tell C of this “fact”… Where does this end? The routing table doesn’t converge or stabilize.

SEPT, 2005CSI Link-State Routing Overcomes instabilities in DV Pair of switches periodically Test link between them Broadcast link status message Switch Receives status message Computes new routes Uses Dijkstra’s algorithm

SEPT, 2005CSI Link State Routing Assumptions: Each node can discover the state of the link to its neighbors and the cost of each link. Basic principle: If every node knows how to reach its directly connected neighbors, one can spread the local knowledge of each node to all other nodes in the network so that every node can construct a the network weighted graph. With this knowledge, a node can always determine the shortest path to any other node in the network.

SEPT, 2005CSI Link State Routing Mechanisms Reliable dissemination of link-state information  flooding. Calculation of routes from the sum of all the accumulated link-state knowledge.

SEPT, 2005CSI Reliable Flooding Question: If you are a node and you want to tell your neighbors the state of the links incident to you, what should be contained in the information packets that you pass to them? Underlying Problems: A packet should reflect the state of your links at a given point in time. You need to ensure that old link-state information eventually stops circulating around the network.

SEPT, 2005CSI Reliable Flooding Question: How can one guarantee that the link- state packets sent from a node will definitely arrive at its neighbors? Question: How does one deal with the possibility of having multiple, contradictory copies of a node’s link-state packets circulate the network at the same time?

SEPT, 2005CSI Link-State Packet (LSP) CreatorID: identity of the packet creator. NeighborsList: a list of tuples like. SequenceNumber: a counter value that places this packet in the context of all LSPs sent out by the creator of this packet. TTL: time to live in number of hops. Question: When should a node send out an LSP?

SEPT, 2005CSI Dealing with LSPs An LSP is sent out when: A periodic time expires. A topology change is detected. Important: Routing messages, that is LSPs, are overhead in the network and they should be kept to a minimum.

SEPT, 2005CSI Route Calculation (based on Dijkstra’s shortest-path algorithm) Assumptions: A node constructs a graph to represent the network to the best of its knowledge (received LSPs). N: |V|, number of nodes. l(i,j): Non-negative weight of edge (i,j). M: nodes set of nodes incorporated so far for some node s. C(n): cost of the path from node s to node n. Algorithm for a node s: M = {s} for each n in N-{s} do: C(n)=l(s,n) while (N not equal M) M=M U{w} such that C(w)=min{for all w in (N-M)} for each n in (N-M) do: C(n)=min{C(n), C(w)+l(w,n)}

SEPT, 2005CSI Example of Link-State Information Assume nodes 2 and 3 Test link between them Broadcast information Each node Receives information Recomputes routes as needed

SEPT, 2005CSI Dijkstra’s Shortest Path Algorithm Input Graph with weighted edges Node, n Output Set of shortest paths from n to each node Cost of each path Called Shortest Path First (SPF) algorithm

SEPT, 2005CSI Dijkstra’s Algorithm

SEPT, 2005CSI Algorithm Intuition Start with self as source node Move outward At each step Find node u such that it Has not been considered Is “closest” to source Compute Distance from u to each neighbor v If distance shorter, make path from u go through v

SEPT, 2005CSI Result of Dijkstra’s Algorithm Example routes from node 6 To 3, next hop = 3, cost = 2 To 2, next hop = 3, cost = 5 To 5, next hop = 3, cost = 11 To 4, next hop = 7, cost = 8

SEPT, 2005CSI Properties of Link-State Routing Stabilizes quickly. Keeps routing control traffic low. Responds rapidly to topology changes. Doesn’t scale well: the amoung of information stored in each node is large.

SEPT, 2005CSI Early WAN Technologies ARPANET Historically important in packet switching Fast when invented, slow by current standards X.25 Early commercial service Still Used More popular in Europe

SEPT, 2005CSI Recent WAN Technologies SMDS Offered by phone companies Not as popular as Frame Relay Frame Relay Widely used commercial service Offered by phone companies ATM

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI

SEPT, 2005CSI Assessment of ATM In practice, failed to deliver on promise Switches initially too expensive for LAN QoS difficult to implement cost-effectively

SEPT, 2005CSI Summary Wide Area Networks (WANs) Span long distances Connect many computers Built from packet switches Use store-and-forward WAN addressing Two-part address Switch/computer

SEPT, 2005CSI Summary (continued) Routing Each switch contains routing table Table gives next-hop for destination Routing tables created Manually Automatically Two basic routing algorithms Distance vector Link state

SEPT, 2005CSI Summary (continued) Example WAN technologies ARPANET X.25 SMDS Frame Relay ATM