Source Routing - Advanced Computer Networks - Lecture Slides, Slides of Computer Networks

The key points are: Source Routing, Packet Header, System Area Networks, Data Transfer in Source Routing, Source Routing Model, Stripping of Address, Forwarding Performance, Implementation and Performance, Potential Bottlenecks

Typology: Slides

2012/2013

Uploaded on 04/17/2013

pameela
pameela 🇮🇳

4.8

(5)

94 documents

1 / 31

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lecture No. 15
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download Source Routing - Advanced Computer Networks - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

Lecture No. 15

Docsity.com

2

Source Routing

  • Packet header contains sequence

of address/ports on path from

source to destination

  • One direction per switch: port, next

switch; (absolute)

  • Switches read, use, and then discard

directions

Docsity.com

4

Data Transfer in Source Routing

  • Analogous to following directions 0 1

3

2

2 (^13) 0

0 3 1 2

Switch 3 Host B

Switch 2 Switch 1

Host A

data 0 1 3 data 3 0 1

data 1 3 0

data 3 0 1

data 1 0 3 data 2 3 0 1

Docsity.com

5

Source Routing Model

  • Source host needs to know the

correct and complete topology of

the network

  • Changes must propagate to all hosts
  • Packet headers may be large and

variable in size: the length is

unpredictable

Docsity.com

7

Forwarding Performance

  • Assume switch is
    • General-purpose workstation
    • With DMA support
    • Multiple network adapters (NIC’s)
  • Switching process
    • Packet arrives on NIC 1
    • NIC 1 DMA’s packet into memory
    • CPU looks at header, decides to send on NIC 2
    • NIC 2 DMA’s packet into NIC 2 memory
    • Packet leaves via NIC 2 Docsity.com

8

Implementation and Performance

  • Packet arriving at interface 1 has to go on interface 2
  • Point of contention for packets: I/O and memory bus

CPU

Main memory

I/O bus Interface 1

Interface 2

Interface 3

Docsity.com

10

Bridges and Extended LANs

Docsity.com

11

Building Extended LANs

  • Traditional LAN
    • Shared medium (e.g., Ethernet)
    • Cheap, easy to administer
    • Supports broadcast traffic
  • Problem
    • Want to scale LAN concept
      • Larger geographic area (> O(1 km))
      • More hosts (> O(100))
    • But retain LAN-like functionality
  • Solution: bridges Docsity.com

13

Bridges vs. Switches

  • Switch
    • Receive frame on input port
    • Translate address to output port
    • Forward frame
  • Bridge
    • Connect shared media
    • All ports bidirectional
    • Repeat subset of traffic
      • Receive frame on one port
      • Send on all other ports Docsity.com

14

Uses and Limitations of Bridges

  • Extend LAN concept
  • Limited scalability
    • To O(1,000) hosts
    • Not to global networks
  • Not heterogeneous
    • Some use of address, but
    • No translation between frame

formats Docsity.com

16

Learning Bridges

  • Learn table entries based on source address
    • Timeout entries to allow movement of hosts
  • Table is an optimization ; need not be complete
  • Always forward broadcast frames
  • Uses datagram or connectionless forwarding

A

Bridge

B C

X Y Z

Port 1 Port 2

Host Port A 1 B 1 C 1 X 2 Y 2 Z 2 Docsity.com

17

Learning Bridges

  • Problem
    • Redundancy (desirable to handle failures, but …)
    • Makes extended LAN structure cyclic
    • Frames may cycle forever
  • Solution: spanning tree

B

A C E B2^ D

B

B B7 (^) K F

H B J

B B

G I

Docsity.com

19

Spanning Tree Concept

  • LAN’s and bridges make a bipartite graph
  • Ports are edges connecting LAN’s to bridges
  • Spanning tree required
    • Connect all LAN’s: all vertices of graph are covered
    • Can leave out bridges: all edges may not be covered

Docsity.com

20

Spanning Tree Algorithm

  • Each bridge has a unique,

totally-ordered identifier

  • Select bridge with lowest ID

as root bridge

Docsity.com