WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example.

Slides:



Advertisements
Similar presentations
Communication Networks Recitation 3 Bridges & Spanning trees.
Advertisements

COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination Network layer must.
Routing So how does the network layer do its business?
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
Routing.
CS335 Networking & Network Administration Tuesday, April 20, 2010.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.5 Routing algorithms m Link state m Distance.
CSCI 4550/8556 Computer Networks Comer, Chapter 13: WAN Technologies and Routing.
1 Chapter 10 Introduction to Metropolitan Area Networks and Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Exploring the Functions of Routing.
WAN Technologies.
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How Routing Works INTRO v2.0—4-1.
WAN Technologies & Topologies Lecture 8 October 4, 2000.
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
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
Dijkstras Algorithm Named after its discoverer, Dutch computer scientist Edsger Dijkstra, is an algorithm that solves the single-source shortest path problem.
1 Chapter Wide Area Networks (WANs), Routing, and Shortest Paths.
G64INC Introduction to Network Communications
Day 12 Chapter 13 WAN Technologies and Routing. Classification of Networks LAN – spans a single building or campus MAN – Spans a city WAN – Spans multiple.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
The Network Layer.
© 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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
SEPT, 2005CSI Part 3.1 Wide Area Networks (WANs), Routing, and Shortest Paths Robert L. Probert, SITE, University of Ottawa.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
18-WAN Technologies and Dynamic routing Dr. John P. Abraham Professor UTPA.
Fundamentals of Computer Networks ECE 478/578
WAN Technologies. 2 Large Spans and Wide Area Networks MAN networks: Have not been commercially successful.
COMPUTER NETWORKS CS610 Lecture-17 Hammad Khalid Khan.
Network Layer Routing Networks: Routing.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Network Layer.
Routing Jennifer Rexford.
The Underlying Technologies
Ch 13 WAN Technologies and Routing
Advanced Computer Networks
COMP 3270 Computer Networks
WAN Technologies and Routing
CS 457 – Lecture 12 Routing Spring 2012.
18-WAN Technologies and Dynamic routing
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing.
ECE453 – Introduction to Computer Networks
Switch controller: Routing
Network Layer Routing Networks: 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
COMPUTER NETWORKS CS610 Lecture-16 Hammad Khalid Khan.
Computer network technology
Network Layer.
Routing.
Network Layer Routing.
Presentation transcript:

WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example WAN technologies

Categories of network technology Local Area Network (LAN) Metropolitan Area Network (MAN) Wide Area network (WAN) Key distinguishing feature is scale: – geographic distance AND – number of connected computers

Packet Switches In order to grow, WANs use many switches Basic component is the packet switch that can connect to local computers and to other packet switches

WAN topology Chosen to accommodate expected traffic and to provide redundancy

Store and forward Each switch receives packets, queues them in its memory and then sends them out when possible (i.e., when the destination is available) Many computers can send packets simultaneously

Physical addressing in a WAN A WAN defines a frame format and assigns physical addresses to its computers Hierarchical addressing, e.g., – first part identifies packet switch – second part identifies computer on this switch switch 1 switch 2 A B C D [1,2] [1,5] [2,2] [2,6] address

Next hop forwarding A packet switch determines the destination for each packet from the destination address – local computer or – another packet switch Only has information about how to reach the next switch - next hop This is held in a routing table

Example routing table A B C D E F S1 S2 S3 Routing table for S2 DestinationNext Hop [1,2]interface 1 [1,5]interface 1 [3,2]interface 4 [3,5] interface 4 [2,1]computer E [2,6] computer F [1,2] [1,5] [2,1] [2,6] [3,2] [3,5]

Source independence The next hop depends upon the destination address but not on the source address

Hierarchical addresses and routing Routing is the process of forwarding a packet to its next hop Hierarchical addresses simplify routing – smaller routing tables – more efficient look up

Routing in a WAN Large WANs use interior switches and exterior switches Their routing tables must guarantee that – Universal routing - there must be a next hop for every possible destination – Optimal routes - the next hop must point to the “shortest path” to the destination

Default routes A routing table may be simplified by including (at most) one default route Switch 1 Destn next hop 1 - * interface 3 Switch 2 Destn next hop interface 4 * interface 3 Switch 3 Destn next hop 3 - interface 2 interface 3 4 interface 4

Routing table computation Manual computation is not feasible for large networks Static routing - program computes and installs routes when a switch boots; these routes do not change. Dynamic routing - program builds an initial table when the switch boots; this alters as conditions change.

WANs and graphs A Wan can be modelled as a graph Nodes are switches: 1, 2, 3, 4 Edges are connections between switches: (1,3) (2,3) (2,4) (3,4) Weights are ‘distance’ along a connection

Computing the shortest path Dijkstra’s algorithm - find the distance from a source node to each other node in a graph Run this for each switch and create next- hop routing table as part of the process “Distance” represented by weights on edges

Example of the shortest path

Dijkstra’s algorithm S = set of nodes, labelled with current distance from source, but for which minimum distance is not yet known Initialise S to everything but the source Iterate: – select the node, u, from S that has smallest current distance from source – examine each neighbour of u and if distance to the neighbour from source is less via u than is currently recorded in S then update

Implementation Data structure to store information about the graph (nodes and edges) Integer labels for the nodes [1..n] Three data structures: – current distance to each node - array - D[1..n] – next hop destination for each node array - R[1..n] – set S of remaining nodes - linked list - S weight(i, j) function (infinity if no edge)

Given: a graph with nonnegative weight assigned to each edge and a designated source node Compute: the shortest distance from the source node to each other node and a next-hop routing table Method: Initialise the set S to contain all nodes except the source Initialise D so that D[u] = weight(source, u) Initialise R so that R[v] = v if there is an edge from the source to v and zero otherwise

while ( set S is not empty ) { choose a node u from S such that D[u] is minimum if ( D[u] is infinity ) { error: no path exists to nodes in S; quit } delete u from set S for each node v such that (u, v) is an edge { if v still in S { c = D[u] + weight (u,v); if c < D[v] { R[v] = R[u] D[v] = c; }

Example S = { 1, 2, 3, 4, 5, 6, 7 } Distance D Next hop route R

Example S = { 1, 2, 3, 4, 5, 6, 7 } Distance D Next hop route R S = source = 6 ∞ 8 2 ∞ ∞ X5X5 X

Distributed route computation Dijkstra’s algorithm requires each switch to hold a complete description of the network In distributed route computation computation, each switch periodically computes a new local table and sends it to its neighbours After a while, the switches learn shortest routes or adapt to changes in the network

Given: a local routing table, a weight for each link that connects to another switch and an incoming routing message Compute: an updated routing table Method: maintain a distance field in each routing table entry initialise routing table with a single entry that has the destination equal to the local packet switch, the next hop unused and the distance set to sero

Repeat forever { wait for the next routing message to arrive over the network; let the sender be switch N for each entry in the message { let V be the destination in the entry and D the distance compute C as D plus the weight of the link over which the message arrived examine and update the local routing table { if ( no route exists to V ) { add an entry to the local table for V with next hop N and distance C } else if ( a route exists with next hop N ) { replace existing distance with C } else if (route exists with distance > C ) change next hop to N and distance to C }

Link state routing Each switch periodically broadcasts state of specific links to other switches Switches collect these messages and then apply Dijkstra’s algorithm to their version of the state of the network