CS 3700 Networks and Distributed Systems Bridging (From Hub to - - PowerPoint PPT Presentation

cs 3700
SMART_READER_LITE
LIVE PREVIEW

CS 3700 Networks and Distributed Systems Bridging (From Hub to - - PowerPoint PPT Presentation

CS 3700 Networks and Distributed Systems Bridging (From Hub to Switch by Way of Tree) Revised 8/19/15 Just Above the Data Link Layer 2 Bridging How do we connect LANs? Application Function: Presentation Route packets


slide-1
SLIDE 1

CS 3700


Networks and Distributed Systems

Bridging (From Hub to Switch by Way of Tree)

Revised 8/19/15

slide-2
SLIDE 2

Just Above the Data Link Layer

2

Bridging

How do we connect LANs?

Function:

Route packets between LANs

Key challenges:

Plug-and-play, self configuration How to resolve loops

Application

Presentation

Session Transport Network Data Link Physical

slide-3
SLIDE 3

Recap

3

Originally, Ethernet was a broadcast technology

Tee Connector Terminator Repeater

slide-4
SLIDE 4

Recap

3

Originally, Ethernet was a broadcast technology

Tee Connector Terminator Repeater

slide-5
SLIDE 5

Recap

3

Originally, Ethernet was a broadcast technology

Tee Connector Terminator

Hub

Repeater

slide-6
SLIDE 6

Pros: Simplicity Hardware is stupid and cheap Cons: No scalability More hosts = more collisions = pandemonium

Recap

3

Originally, Ethernet was a broadcast technology

Tee Connector Terminator

Hub

Repeater

slide-7
SLIDE 7

The Case for Bridging

4

Need a device that can bridge different LANs

Only forward packets to intended recipients Much less broadcasting!

Hub

A C B

slide-8
SLIDE 8

The Case for Bridging

4

Need a device that can bridge different LANs

Only forward packets to intended recipients Much less broadcasting!

Hub

A C B

Send Packet B C

slide-9
SLIDE 9

The Case for Bridging

4

Need a device that can bridge different LANs

Only forward packets to intended recipients Much less broadcasting!

Hub

A C B

Send Packet B C

slide-10
SLIDE 10

The Case for Bridging

4

Need a device that can bridge different LANs

Only forward packets to intended recipients Much less broadcasting!

Hub

A C B A C B

Send Packet B C

Bridge

slide-11
SLIDE 11

The Case for Bridging

4

Need a device that can bridge different LANs

Only forward packets to intended recipients Much less broadcasting!

Hub

A C B A C B

Send Packet B C Send Packet B C

Bridge

slide-12
SLIDE 12

The Case for Bridging

4

Need a device that can bridge different LANs

Only forward packets to intended recipients Much less broadcasting!

Hub

A C B A C B

Send Packet B C Send Packet B C

Bridge

slide-13
SLIDE 13

Bridging the LANs

5 Bridging limits the size of collision domains

Hub Hub

slide-14
SLIDE 14

Bridging the LANs

5 Bridging limits the size of collision domains

Hub Hub

slide-15
SLIDE 15

Bridging the LANs

5 Bridging limits the size of collision domains

Hub Hub

slide-16
SLIDE 16

Bridging the LANs

5 Bridging limits the size of collision domains

Vastly improves scalability Question: could the whole Internet be one bridging domain?

Hub Hub

slide-17
SLIDE 17

Bridging the LANs

5 Bridging limits the size of collision domains

Vastly improves scalability Question: could the whole Internet be one bridging domain?

Tradeoff: bridges are more complex than hubs

Physical layer device vs. data link layer device Need memory buffers, packet processing hardware, routing tables

Hub Hub

slide-18
SLIDE 18

Bridge Internals

6

Switch Fabric

Inputs Outputs Bridge

slide-19
SLIDE 19

Bridge Internals

6

Switch Fabric

Inputs Outputs Bridge Memory buffer

slide-20
SLIDE 20

Bridge Internals

6

Switch Fabric

Inputs Outputs Bridge Makes routing decisions

slide-21
SLIDE 21

Bridge Internals

6

Switch Fabric

Inputs Outputs Bridge

slide-22
SLIDE 22

Bridge Internals

6

Switch Fabric

Inputs Outputs Bridge Hub

slide-23
SLIDE 23

Bridge Internals

6

Switch Fabric

Inputs Outputs Bridge Hub

slide-24
SLIDE 24

Bridge Internals

6

Bridges have memory buffers to queue packets

Switch Fabric

Inputs Outputs Bridge Hub

slide-25
SLIDE 25

Bridge Internals

6

Bridges have memory buffers to queue packets Bridge is intelligent, only forwards packets to the correct output

Switch Fabric

Inputs Outputs Bridge Hub

slide-26
SLIDE 26

Bridge Internals

6

Bridges have memory buffers to queue packets Bridge is intelligent, only forwards packets to the correct output Bridges are high performance, full N * line rate is possible

Switch Fabric

Inputs Outputs Bridge Hub

slide-27
SLIDE 27

Bridges

7

Original form of Ethernet switch Connect multiple IEEE 802 LANs at layer 2 Goals

Reduce the collision domain Complete transparency

■ “Plug-and-play,” self-configuring ■ No hardware of software changes on hosts/hubs ■ Should not impact existing LAN operations

Hub

slide-28
SLIDE 28

Bridges

7

Original form of Ethernet switch Connect multiple IEEE 802 LANs at layer 2 Goals

Reduce the collision domain Complete transparency

■ “Plug-and-play,” self-configuring ■ No hardware of software changes on hosts/hubs ■ Should not impact existing LAN operations

Hub

  • 1. Forwarding of frames
  • 2. Learning of (MAC) Addresses
  • 3. Spanning Tree Algorithm (to handle loops)
slide-29
SLIDE 29

Frame Forwarding Tables

8

Each bridge maintains a forwarding table

MAC Address Port Age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds

slide-30
SLIDE 30

Frame Forwarding Tables

8

Each bridge maintains a forwarding table

MAC Address Port Age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds

slide-31
SLIDE 31

Frame Forwarding Tables

8

Each bridge maintains a forwarding table

MAC Address Port Age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds

slide-32
SLIDE 32

00:00:00:00:00:DD 1 3 minutes

Frame Forwarding Tables

8

Each bridge maintains a forwarding table

MAC Address Port Age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds

slide-33
SLIDE 33

00:00:00:00:00:DD 1 3 minutes

Frame Forwarding Tables

8

Each bridge maintains a forwarding table

MAC Address Port Age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds

slide-34
SLIDE 34

Frame Forwarding in Action

9 Assume a frame arrives on port 1

Port 1 Port 3 Port 2 Port 4

slide-35
SLIDE 35

Frame Forwarding in Action

9 Assume a frame arrives on port 1

Port 1 Port 3 Port 2 Port 4

slide-36
SLIDE 36

Frame Forwarding in Action

9 Assume a frame arrives on port 1 If the destination MAC address is in the forwarding table, send

the frame on the correct output port

Port 1 Port 3 Port 2 Port 4

slide-37
SLIDE 37

Frame Forwarding in Action

9 Assume a frame arrives on port 1 If the destination MAC address is in the forwarding table, send

the frame on the correct output port

Port 1 Port 3 Port 2 Port 4

slide-38
SLIDE 38

Frame Forwarding in Action

9 Assume a frame arrives on port 1 If the destination MAC address is in the forwarding table, send

the frame on the correct output port

If the destination MAC isn’t in the forwarding table, broadcast

the frame on all ports except 1

Port 1 Port 3 Port 2 Port 4

slide-39
SLIDE 39

Frame Forwarding in Action

9 Assume a frame arrives on port 1 If the destination MAC address is in the forwarding table, send

the frame on the correct output port

If the destination MAC isn’t in the forwarding table, broadcast

the frame on all ports except 1

Port 1 Port 3 Port 2 Port 4

slide-40
SLIDE 40

Learning Addresses

10

Manual configuration is possible, but…

Time consuming Error Prone Not adaptable (hosts may get added or removed)

Hub

00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2

slide-41
SLIDE 41

Learning Addresses

10

Manual configuration is possible, but…

Time consuming Error Prone Not adaptable (hosts may get added or removed)

Instead, learn addresses using a simple heuristic

Look at the source of frames that arrive on each port

Hub

00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2

slide-42
SLIDE 42

Learning Addresses

10

Manual configuration is possible, but…

Time consuming Error Prone Not adaptable (hosts may get added or removed)

Instead, learn addresses using a simple heuristic

Look at the source of frames that arrive on each port

Hub

00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2

slide-43
SLIDE 43

Learning Addresses

10

Manual configuration is possible, but…

Time consuming Error Prone Not adaptable (hosts may get added or removed)

Instead, learn addresses using a simple heuristic

Look at the source of frames that arrive on each port

Hub

00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2 MAC Address Port Age 00:00:00:00:00:AA 1 0 minutes

slide-44
SLIDE 44

Learning Addresses

10

Manual configuration is possible, but…

Time consuming Error Prone Not adaptable (hosts may get added or removed)

Instead, learn addresses using a simple heuristic

Look at the source of frames that arrive on each port

Hub

00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2 00:00:00:00:00:BB 2 0 minutes MAC Address Port Age 00:00:00:00:00:AA 1 0 minutes

slide-45
SLIDE 45

Learning Addresses

10

Manual configuration is possible, but…

Time consuming Error Prone Not adaptable (hosts may get added or removed)

Instead, learn addresses using a simple heuristic

Look at the source of frames that arrive on each port

Hub

00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2 00:00:00:00:00:BB 2 0 minutes MAC Address Port Age 00:00:00:00:00:AA 1 0 minutes

Delete old entries after a timeout

slide-46
SLIDE 46

Complicated Learning Example

11

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

Bridge 1 Bridge 2

slide-47
SLIDE 47

Complicated Learning Example

11

<Src=AA, Dest=FF>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

Bridge 1 Bridge 2

slide-48
SLIDE 48

Complicated Learning Example

11

<Src=AA, Dest=FF>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1

Bridge 1 Bridge 2

slide-49
SLIDE 49

Complicated Learning Example

11

<Src=AA, Dest=FF>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1

Bridge 1 Bridge 2

slide-50
SLIDE 50

Complicated Learning Example

11

<Src=AA, Dest=FF>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1

Bridge 1 Bridge 2

slide-51
SLIDE 51

Complicated Learning Example

11

<Src=AA, Dest=FF>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1

Bridge 1 Bridge 2

slide-52
SLIDE 52

Complicated Learning Example

11

<Src=AA, Dest=FF>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1

Bridge 1 Bridge 2

slide-53
SLIDE 53

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1

Bridge 1 Bridge 2

slide-54
SLIDE 54

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1

Bridge 1 Bridge 2

slide-55
SLIDE 55

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1

Bridge 1 Bridge 2

slide-56
SLIDE 56

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA> <Src=EE, Dest=CC>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1

Bridge 1 Bridge 2

slide-57
SLIDE 57

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA> <Src=EE, Dest=CC>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1 EE 2

Bridge 1 Bridge 2

slide-58
SLIDE 58

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA> <Src=EE, Dest=CC>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1 EE 2 EE 2

Bridge 1 Bridge 2

slide-59
SLIDE 59

Complicated Learning Example

11

<Src=AA, Dest=FF> <Src=CC, Dest=AA> <Src=EE, Dest=CC>

FF EE DD CC BB AA Port 1 Port 2 Port 1 Port 2

Hub Hub Hub

AA 1 AA 1 CC 2 CC 1 EE 2 EE 2

Bridge 1 Bridge 2

slide-60
SLIDE 60

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 BB CC DD

slide-61
SLIDE 61

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 BB CC DD

slide-62
SLIDE 62

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD

slide-63
SLIDE 63

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD

slide-64
SLIDE 64

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD

slide-65
SLIDE 65

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD AA 2 AA 2

slide-66
SLIDE 66

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD AA 2 AA 2

slide-67
SLIDE 67

The Danger of Loops

12

<Src=AA, Dest=DD>

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD AA 2 AA 2 AA 1 AA 1

slide-68
SLIDE 68

The Danger of Loops

12

<Src=AA, Dest=DD> This continues to infinity

How do we stop this? AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD AA 2 AA 2 AA 1 AA 1

slide-69
SLIDE 69

The Danger of Loops

12

<Src=AA, Dest=DD> This continues to infinity

How do we stop this?

Remove loops from the

topology

Without physically unplugging

cables

802.1 uses an algorithm to

build and maintain a spanning tree for routing

AA Port 1

Hub

Port 1

Hub

Port 2 Port 2 AA 1 AA 1 BB CC DD AA 2 AA 2 AA 1 AA 1

slide-70
SLIDE 70

Spanning Tree Definition

13

1 4 2 5 6 3 7

slide-71
SLIDE 71

Spanning Tree Definition

13

1 4 2 5 6 3 7 1 4

slide-72
SLIDE 72

Spanning Tree Definition

13

1 4 2 5 6 3 7 1 4 5

slide-73
SLIDE 73

Spanning Tree Definition

13

1 4 2 5 6 3 7 1 4 2 5 6

slide-74
SLIDE 74

Spanning Tree Definition

13

1 4 2 5 6 3 7 1 4 2 5 6 3 7

slide-75
SLIDE 75

Spanning Tree Definition

13

A subset of edges in a graph that:

Span all nodes Do not create any cycles

This structure is a tree

1 4 2 5 6 3 7 1 4 2 5 6 3 7

slide-76
SLIDE 76

Spanning Tree Definition

13

A subset of edges in a graph that:

Span all nodes Do not create any cycles

This structure is a tree

1 4 2 5 6 3 7 1 4 2 5 6 3 7 5 1 4 2 6 3 7

slide-77
SLIDE 77

Spanning Tree Poem

14

Algorhyme I think that I shall never see a graph more lovely than a tree. A tree whose crucial property is loop-free connectivity. A tree that must be sure to span so packet 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.

  • Radia Perlman
slide-78
SLIDE 78

802.1 Spanning Tree Approach

15

1.

Elect a bridge to be the root of the tree

2.

Every bridge finds shortest path to the root

3.

Union of these paths becomes the spanning tree

slide-79
SLIDE 79

802.1 Spanning Tree Approach

15

1.

Elect a bridge to be the root of the tree

2.

Every bridge finds shortest path to the root

3.

Union of these paths becomes the spanning tree

Bridges exchange Configuration Bridge Protocol Data Units (BPDUs) to build

the tree

Used to elect the root bridge Locate the next hop closest to the root, and its port Select ports to be included in the spanning trees

slide-80
SLIDE 80

Definitions

16

Bridge ID (BID) = <Random Number> Root Bridge: bridge with the lowest BID in the tree Path Cost: cost (in hops) from a transmitting bridge to the root Each port on a bridge has a unique Port ID Root Port: port that forwards to the root on each bridge Designated Bridge: the bridge on a LAN that provides the minimal cost path

to the root

The designated bridge on each LAN is unique

slide-81
SLIDE 81

Determining the Root

17

Initially, all hosts assume they are the root Bridges broadcast BPDUs: Based on received BPDUs, each switch chooses:

A new root (smallest known Root ID) A new root port (what interface goes towards the root) A new designated bridge (who is the next hop to root)

Root ID Path Cost to Root Bridge ID

slide-82
SLIDE 82

Comparing BPDUs

18

if R1 < R2: use BPDU1 else if R1 == R2 and Cost1 < Cost2: use BPDU1 else if R1 == R2 and Cost1 == Cost 2 and B1 < B2: use BPDU1 else: use BPDU2

R1 Cost1 B1 R2 Cost2 B2

BPDU1 BPDU2

slide-83
SLIDE 83

Comparing BPDUs

18

if R1 < R2: use BPDU1 else if R1 == R2 and Cost1 < Cost2: use BPDU1 else if R1 == R2 and Cost1 == Cost 2 and B1 < B2: use BPDU1 else: use BPDU2

R1 Cost1 B1 R2 Cost2 B2

BPDU1 BPDU2

slide-84
SLIDE 84

Comparing BPDUs

18

if R1 < R2: use BPDU1 else if R1 == R2 and Cost1 < Cost2: use BPDU1 else if R1 == R2 and Cost1 == Cost 2 and B1 < B2: use BPDU1 else: use BPDU2

R1 Cost1 B1 R2 Cost2 B2

BPDU1 BPDU2

slide-85
SLIDE 85

Comparing BPDUs

18

if R1 < R2: use BPDU1 else if R1 == R2 and Cost1 < Cost2: use BPDU1 else if R1 == R2 and Cost1 == Cost 2 and B1 < B2: use BPDU1 else: use BPDU2

R1 Cost1 B1 R2 Cost2 B2

BPDU1 BPDU2

slide-86
SLIDE 86

Comparing BPDUs

18

if R1 < R2: use BPDU1 else if R1 == R2 and Cost1 < Cost2: use BPDU1 else if R1 == R2 and Cost1 == Cost 2 and B1 < B2: use BPDU1 else: use BPDU2

R1 Cost1 B1 R2 Cost2 B2

BPDU1 BPDU2

slide-87
SLIDE 87

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0

slide-88
SLIDE 88

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1

slide-89
SLIDE 89

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1 41: 3/1

slide-90
SLIDE 90

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1 41: 3/1 68: 9/1

slide-91
SLIDE 91

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1 41: 3/1 68: 9/1 68: 3/2 9: 3/2

slide-92
SLIDE 92

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1 41: 3/1 68: 9/1 41: 0/2 3: 0/2 68: 3/2 9: 3/2

slide-93
SLIDE 93

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1 41: 3/1 68: 9/1 41: 0/2 3: 0/2 68: 3/2 9: 3/2 68: 0/3 9: 0/3

slide-94
SLIDE 94

Spanning Tree Construction

19

0: 0/0 12: 12/0 3: 3/0 27: 27/0 41: 41/0 9: 9/0 68: 68/0 27: 0/1 12: 0/1 41: 3/1 68: 9/1 41: 0/2 3: 0/2 68: 3/2 9: 3/2 68: 0/3 9: 0/3

slide-95
SLIDE 95

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

9 27

slide-96
SLIDE 96

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

?

9 27

slide-97
SLIDE 97

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

?

9 27

On, 1

slide-98
SLIDE 98

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ?

9 27

On, 1

slide-99
SLIDE 99

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ?

9 27

On, 1 On, 2 On, 2

slide-100
SLIDE 100

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ?

9 27

On, 1 On, 2 On, 2

slide-101
SLIDE 101

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ?

9 27

On, 1 On, 2 On, 2 On, 3 On, 3

slide-102
SLIDE 102

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ? ? ?

9 27

On, 1 On, 2 On, 2 On, 3 On, 3

slide-103
SLIDE 103

Designated Bridges

20 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

The port is a root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ? ? ?

9 27

On, 1 On, 2 On, 2 On, 3 On, 3 Off On, 3

slide-104
SLIDE 104

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

9 27 3

slide-105
SLIDE 105

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ?

9 27 3

slide-106
SLIDE 106

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ?

9 27

On, 3 On, 3

3

slide-107
SLIDE 107

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ?

9 27

On, 3 On, 3

3

slide-108
SLIDE 108

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ?

9 27

On, 2 On, 2 On, 3 On, 3

3

slide-109
SLIDE 109

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ? ?

9 27

On, 2 On, 2 On, 3 On, 3

3

slide-110
SLIDE 110

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ? ?

9 27

On, 2 On, 2 On, 3 On, 3 On, 3 On, 3

3

slide-111
SLIDE 111

? ?

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ? ?

9 27

On, 2 On, 2 On, 3 On, 3 On, 3 On, 3

3

slide-112
SLIDE 112

? ?

More Designated Bridges

21 Ultimately, each bridge must decide to

enable or disable each port

Reasons to keep a port enabled:

1.

You receive no BPDUs on that port

■ Indicates there are no other bridges

2.

It is the root port

■ You need to be able to forward packets to the

root of the spanning tree

3.

You are the designated bridge for that LAN

■ All other bridges on that LAN have a longer path

to the root, or their bridge ID is higher than yours

? ? ? ? ? ?

9 27

On, 2 On, 2 On, 3 On, 3 On, 3 On, 3 On, 2 Off

3

slide-113
SLIDE 113

Bridges vs. Switches

22

Bridges make it possible to increase LAN capacity

Reduces the amount of broadcast packets No loops

slide-114
SLIDE 114

Bridges vs. Switches

22

Bridges make it possible to increase LAN capacity

Reduces the amount of broadcast packets No loops

Switch is a special case of a bridge

Each port is connected to a single host

■ Either a client machine ■ Or another switch

Thus, there are no collision domains No need for CSMA/CD! Simplifies hardware. Can have different speeds on each port

slide-115
SLIDE 115

Bridges vs. Switches

22

Bridges make it possible to increase LAN capacity

Reduces the amount of broadcast packets No loops

Switch is a special case of a bridge

Each port is connected to a single host

■ Either a client machine ■ Or another switch

Thus, there are no collision domains No need for CSMA/CD! Simplifies hardware. Can have different speeds on each port

2 hosts on 1 port Not a legal network with switches

slide-116
SLIDE 116

Switching the Internet

23

Capabilities of switches:

Network-wide routing based on MAC addresses Learn routes to new hosts automatically Resolve loops

slide-117
SLIDE 117

Switching the Internet

23

Capabilities of switches:

Network-wide routing based on MAC addresses Learn routes to new hosts automatically Resolve loops

Could the whole Internet be one switching domain?

slide-118
SLIDE 118

Switching the Internet

23

Capabilities of switches:

Network-wide routing based on MAC addresses Learn routes to new hosts automatically Resolve loops

Could the whole Internet be one switching domain?

NO

slide-119
SLIDE 119

Limitations of MAC Routing

24

Inefficient

Flooding packets to locate unknown hosts

slide-120
SLIDE 120

Limitations of MAC Routing

24

Inefficient

Flooding packets to locate unknown hosts

Poor Performance

Spanning tree does not balance load Hot spots

slide-121
SLIDE 121

Limitations of MAC Routing

24

Inefficient

Flooding packets to locate unknown hosts

Poor Performance

Spanning tree does not balance load Hot spots

Extremely Poor Scalability

Every switch needs every MAC address on the Internet in its routing table!

slide-122
SLIDE 122

Limitations of MAC Routing

24

Inefficient

Flooding packets to locate unknown hosts

Poor Performance

Spanning tree does not balance load Hot spots

Extremely Poor Scalability

Every switch needs every MAC address on the Internet in its routing table!

IP addresses these problems (next lecture…)