Docsity

Building and Maintaining Routing Tables in Computer Networks, Slides of Computer Networks

Partial preview of the text

Download Building and Maintaining Routing Tables in Computer Networks and more Slides Computer Networks in PDF only on Docsity!

COMPUTER

NETWORKS

Lecture-

Review Lecture 16

Source Independence

Hierarchical Addressing and Routing

Routing in a WAN

Modeling a WAN

Route Computation and Default Routes

Building Routing Tables

Static Routing

  • Simple
  • Low Network Overhead
  • Inflexible

Dynamic Routing

  • Can work around network failures automatically

Computing Shortest Path in a

Graph

 Assume graph representation of network at each node

 Use Djikstra's algorithm to compute shortest path from each node to every other node

 Extract next-hop information from resulting path information

 Insert next-hop information into routing tablesDocsity.com

Weighted Graph

Distance Metrics

 Weights on graph edges reflect "cost" of traversing edge

  • Time
  • Dollars
  • Hop count (weight == 1)

 Resulting shortest path may not have fewest hops

Distance Vector Routing

 Local information is next-hop routing table and distance from each switch

 Switches periodically broadcast topology information i.e. ( destination, distance )

 Other switches update routing table based on

received information

Vector-Distance Algorithm

 In more detail:

Wait for next update message Iterate through entries in message If entry has shorter path to destination: Insert source as next hop to destination Record distance as distance from next hop to destination

PLUS distance from this switch to next hop

Comparison

Distance Vector Routing

  • Very simple to implement
  • Packet Switch updates its own routing table first
  • Used in RIP

Link-State Algorithm

  • Much more complex
  • Switches perform independent computations
  • Used in OSPF Docsity.com

Examples-WAN Technology

 ARPANET

  • Began in 1960s
  • Funded by Advanced Research Projects Agency, an organization of the US Defense Department
  • Incubator for many of current ideas, algorithms and internet technologies

Examples-WAN Technology

 Frame Relay

  • Telco service for delivering blocks of data
  • Connection-based service; must contract with telco for circuit between two endpoints
  • Typically 56Kbps or 1.5Mbps; can run to 100Mbps

Examples-WAN Technology

 SMDS - Switched Multi-megabit Data Service

  • Also a Telco service
  • Connectionless service; any SMDS station can send a frame to any other station on the same SMDS "cloud"
  • Typically 1.5-100Mbps