Docsity

Understanding Spanning Trees: Preventing Loops & Ensuring Connectivity in Networks, Guías, Proyectos, Investigaciones de Redes de Computadoras

Vista previa parcial del texto

¡Descarga Understanding Spanning Trees: Preventing Loops & Ensuring Connectivity in Networks y más Guías, Proyectos, Investigaciones en PDF de Redes de Computadoras solo en Docsity!

David Wetherall ([email protected])Professor of Computer Science & Engineering

Introduction to Computer Networks

Switch Spanning Tree (§4.8.1-4.8.4)

CSE 461 University of Washington

Topic

How can we connect switches inany topology so they just work

This is part 2 of switched Ethernet Loops – yikes!

CSE 461 University of Washington

Forwarding Loops (2)

Suppose the network is started andA sends to F. What happens?

Left / Right A

B
C^ D
E
F

CSE 461 University of Washington

Forwarding Loops (3)

Suppose the network is started and Asends to F. What happens?

A
C

B, D-left, D-right

D-left

C-right, E, F

D-right

C-left, E, F

C-right

D-left, A, B

C-left

D-right, A, B

D-left

D-right

Left / Right A

B
C^ D
E
F

Spanning Tree (2)

CSE 461 University of Washington Topology One ST Another ST

Spanning Tree (3)

CSE 461 University of Washington Topology One ST Another ST Root

CSE 461 University of Washington

Radia Perlman (1952–)

Key early work on routingprotocols

Routing in the ARPANET

Spanning Tree for switches (next)

Link-state routing (later)

Now focused on network security

CSE 461 University of Washington

Spanning Tree Algorithm (2)

Outline:

Elect a root node of the tree(switch with the lowest address)

Grow tree as shortest distancesfrom the root (using lowestaddress to break distance ties)

Turn off ports for forwarding ifthey aren’t on the spanning tree

CSE 461 University of Washington

Spanning Tree Example

st

round, sending:

A sends (A, A, 0) to say it is root - B, C, D, E, and F do likewise

st

round, receiving:

A still thinks is it (A, A, 0) - B still thinks (B, B, 0) - C updates to (C, A, 1) - D updates to (D, C, 1) - E updates to (E, A, 1) - F updates to (F, B, 1)

A,A,
B,B,
C,C,0^ D,D,
E,E,
F,F,

CSE 461 University of Washington

Spanning Tree Example (2)

nd

round, sending

Nodes send their updated state

nd

round receiving:

A remains (A, A, 0)

B updates to (B, A, 2) via C - C remains (C, A, 1) - D updates to (D, A, 2) via C - E remains (E, A, 1) - F remains (F, B, 1)

A,A,
B,B,
C,A,1^ D,C,
E,A,
F,B,

CSE 461 University of Washington

Spanning Tree Example (4)

th

round

Steady-state has been reached

Nodes turn off forwarding that is noton the spanning tree

Algorithm continues to run

Adapts by timing out information

E.g., if A fails, other nodes forget it,and B will become the new root

A,A,
B,A,
C,A,1^ D,A,
E,A,
F,A,

CSE 461 University of Washington

Spanning Tree Example (5)

Forwarding proceeds as usual on the ST
Initially D sends to F:
And F sends back to D:
A,A,
B,A,
C,A,1^ D,A,
E,A,
F,A,

CSE 461 University of Washington

Algorhyme (Radia Perlman, 1985)^ I think that I shall never seeA graph more lovely than a tree.A tree whose crucial propertyIs loop-free connectivity.A tree that must be sure to spanSo packets can reach every LAN.First, the root must be selected.By ID, it is elected.Least-cost paths from root are traced.In the tree, these paths are placed.A mesh is made by folks like me,Then bridges find a spanning tree.

END

© 2013 D. Wetherall Slide material from: TANENBAUM, ANDREW S.; WETHERALL, DAVID J., COMPUTER NETWORKS, 5th Edition, © 2011. Electronically reproduced by permission of Pearson Education, Inc., Upper Saddle River, New Jersey CSE 461 University of Washington