M. Veeraraghavan (originals by J. Liebeherr) 1 Need for Routing in Ethernet switched networks What do bridges do if some LANs are reachable only in multiple.

Slides:



Advertisements
Similar presentations
Bridges, LANs and the Cisco IOS
Advertisements

CCNA3 v3 Module 7 v3 CCNA 3 Module 7 JEOPARDY K. Martin.
Communication Networks Recitation 3 Bridges & Spanning trees.
University of Calgary – CPSC 441.  We need to break down big networks to sub-LANs  Limited amount of supportable traffic: on single LAN, all stations.
Introduction to Computer Networks Spanning Tree 1.
Part 2: Preventing Loops in the Network
CS 356: Computer Network Architectures Lecture 8: Learning Bridges and ATM Ch 3.1 Xiaowei Yang
Connecting LANs: Section Figure 15.1 Five categories of connecting devices.
CSE 534 Fundamentals of Computer Networks Lecture 4: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised.
CS 4700 / CS 5700 Network Fundamentals Lecture 7: Bridging (From Hub to Switch by Way of Tree) Revised 1/14/13.
CPSC 441 TUTORIAL TA: FANG WANG HUBS, SWITCHES AND BRIDGES Parts of the slides contents are courtesy of the following people: Jim Kurose, Keith Ross:
1 CCNA 3 v3.1 Module 7. 2 CCNA 3 Module 7 Spanning Tree Protocol (STP)
COMS/CSEE 4140 Networking Laboratory Lecture 07 Salman Abdul Baset Spring 2008.
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
W4140 Network Laboratory Lecture 7 Oct 23 - Fall 2006 Shlomo Hershkop Columbia University.
Sept 14, 2004CS573: Network Protocols and Standards1 Spanning Tree Algorithm Network Protocols and Standards Autumn
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Bridging II.
CSE390 Advanced Computer Networks Lecture 7: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised Fall.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
COMS W COMS W Lecture 7. LAN Switching: Bridges & Spanning Tree Protocol.
LAN switching and Bridges
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
Spanning Tree Protocol
1 Computer Networks LAN Bridges and Switches. 2 Where are we?
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 7 Spanning Tree Protocol.
1 LAN switching and Bridges. 2 Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent bridges.
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
1 LAN switching and Bridges CS491G: Computer Networking Lab V. Arun Slides adapted from Liebeherr and El Zarki, and Kurose and Ross.
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning-Tree Protocol Cisco Networking Academy.
1 Spanning Tree Algorithm Advanced Computer Networks.
Computer Networks Ethernet II Professor Hui Zhang
Steffen/Stettler, , 4-SpanningTree.pptx 1 Computernetze 1 (CN1) 4 Spanning Tree Protokoll 802.1D-2004 Prof. Dr. Andreas Steffen Institute for.
Ethernet (LAN switching)
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning Tree Protocol.
1 Version 3.0 Module 7 Spanning Tree Protocol. 2 Version 3.0 Redundancy Redundancy in a network is needed in case there is loss of connectivity in one.
Topic 5 Spanning tree protocol
M. Veeraraghavan 1 Bridge 55 Bridge 41 Bridge LAN A LAN B LAN C EXAMPLE.
M. Veeraraghavan (originals by J. Liebeherr) 1 Internetworking Bridges Routing with Bridges * * Reading material is EL 536 textbook (sections 14.1 and.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
Ethernet switches and IP routers
CS 3700 Networks and Distributed Systems
Bridging.
3. Internetworking (part 2: switched LANs)
Spanning Tree Algorithm
: An Introduction to Computer Networks
Chapter 3 Part 1 Switching and Bridging
CS 3700 Networks and Distributed Systems
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
LAN switching and Bridges
NT2640 Unit 9 Activity 1 Handout
Chapter 6 The Link Layer and LANs
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Dr. Rocky K. C. Chang 23 February 2004
Chapter 15. Connecting Devices
LAN switching and Bridges
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
Presentation transcript:

M. Veeraraghavan (originals by J. Liebeherr) 1 Need for Routing in Ethernet switched networks What do bridges do if some LANs are reachable only in multiple hops ? What do bridges do if the path between two LANs is not unique ?

M. Veeraraghavan (originals by J. Liebeherr) 2 Consider the two LANs that are connected by two bridges. Assume host n is transmitting a frame F with unknown destination. What is happening? Bridges A and B flood the frame to LAN 2. Bridge B sees F on LAN 2 (with unknown destination), and copies the frame back to LAN 1 Bridge A does the same. The copying continues Where’s the problem? What’s the solution ? Danger of Loops

M. Veeraraghavan (originals by J. Liebeherr) 3 IEEE has an algorithm that builds and maintains a spanning tree in a dynamic environment. Bridges exchange messages to configure the bridge (Configuration Bridge Protocol Data Unit, Configuration BPDUs) to build the tree. Spanning Trees

M. Veeraraghavan (originals by J. Liebeherr) 4 Concept - Bridge ID Each bridge has a unique identifier (8 bytes): Bridge ID = Priority level = 2 bytes; Note that a bridge has several MAC addresses (one for each port), but only one ID using the MAC address of the lowest numbered bridge port (port 1) Each port within a bridge has a unique identifier (port ID). 51:24:68:1f:3:4 0:0:1:2:3:5 fe:64:96:12:1: Priority: 0x12:41 Bridge Example above: Bridge ID = 12:41:fe:64:96:12:1:3

M. Veeraraghavan (originals by J. Liebeherr) 5 Concept - Root bridge of a network Root Bridge: The bridge with the lowest identifier is the root of the spanning tree. Bridge 3 with ID 0:1:34:1:21:56:19:87 Bridge 1 with ID= 4:1:21:1:21:56:19:87 Bridge 2 with ID= 6:4:55:4:21:56:19:87 Root bridge is bridge 3 since it has the smallest ID 2 1 LAN A LAN B 1 1

M. Veeraraghavan (originals by J. Liebeherr) 6 Concept - For each bridge Root Port: Each bridge has a root port which identifies the next hop from a bridge to the root. Root Path Cost: For each bridge, the cost of the min-cost path to the root Example on previous slide: What is the root port and root path cost of bridge 1: –The root port is port 2 since it leads to the root bridge (bridge 3) –The root path cost is 1 since bridge 1 is one hop away from the root bridge (I.e., bridge 3). Note: We assume that “cost” of a path is the number of “hops”.

M. Veeraraghavan (originals by J. Liebeherr) 7 Concept - For each LAN Designated Bridge, Designated Port: Single bridge on a LAN that provides the minimal cost path to the root for this LAN, and the port on this minimal cost path – if two bridges have the same cost, select the one with highest priority (lower bridge ID) – if the min-cost bridge has two or more ports on the LAN, select the port with the lowest identifier Example on slide 25: for LAN A, the designated bridge is bridge 3 since it is the root bridge itself; port 1 is the designated port; for LAN B, the designated bridge is bridge 1 since this is closer to the root bridge than bridge 2. The designated port is port 1.

M. Veeraraghavan (originals by J. Liebeherr) 8 Concept - Designated bridge/port Even though each LAN is the entity that has a designated bridge/designated port, it is each bridge that determines whether or not it is the designated bridge for the LAN on each of its ports. Example: Bridge 1 in the example on slide 25 determines whether it is the designated bridge for LAN A (to which its port 2 is connected) and for LAN B (to which its port 1 is connected). –Answer in this case is that bridge 1 is the designated bridge for LAN B, but it is not the designated bridge for LAN A

M. Veeraraghavan (originals by J. Liebeherr) 9 Steps of Spanning Tree Algorithm 1. Determine the root bridge of the whole network 2. For all other bridges determine root ports 3. For all bridges, determine which of the bridge ports are designated ports for their corresponding LANs The spanning tree consists of all the root ports and the designated ports. These ports are all set to the “forwarding state,” while all other ports are in a “blocked state.”

M. Veeraraghavan (originals by J. Liebeherr) 10 What we just did We just determined the spanning tree for a network of LANs and bridges in a “centralized manner.” – We knew the bridge IDs of all the bridges and the port IDs of all the ports in all the bridges. –We determined the root bridge (the bridge with the smallest ID.) –For each bridge, we determined the shortest path to the root by counting hops and thus identified the root port. –For each bridge, we determined which of its ports are designated ports for each of its LANs However, the network of bridges determines the spanning tree in a “distributed manner” - each with limited knowledge. –This is done using messages called BPDUs.

M. Veeraraghavan (originals by J. Liebeherr) 11 How do the bridges determine the spanning tree? With the help of the BPDUs, bridges can: Elect a single bridge as the root bridge. Each bridge can determine: – a root port, the port that gives the best path to the root. –And the corresponding root path cost Each bridge determines whether it is a designated bridge, for the LANs connected to each of its ports. The designated bridge will forward packets towards the root bridge. Select ports to be included in the spanning tree. –Root ports and designated ports

M. Veeraraghavan (originals by J. Liebeherr) 12 Short form notation for BPDUs Each bridge sends out BPDUs that contain the following information: root bridge (what the sender thinks it is) root path cost for sending bridge Identifies sending bridge Identifies port on which this BPDU is sent root ID cost bridge ID/port ID

M. Veeraraghavan (originals by J. Liebeherr) 13 Ordering of Messages We can order BPDU messages with the following ordering relation “  “: If (R1 < R2) M1  M2 elseif ((R1 == R2) and (C1 < C2)) M1  M2 elseif ((R1 == R2) and (C1 == C2) and (B1 < B2)) M1  M2 ID R1 C1 ID B1 ID R2 C2 ID B2  M1M2

M. Veeraraghavan (originals by J. Liebeherr) 14 Initially, all bridges assume they are the root bridge. Each bridge B sends BPDUs of this form on its LANs: Each bridge looks at the BPDUs received on all its ports and its own transmitted BPDUs. Root bridge is the smallest received root ID that has been received so far (Whenever a smaller ID arrives, the root is updated) Determine the Root Bridge B B 0 0 B B

M. Veeraraghavan (originals by J. Liebeherr) 15 At this time: A bridge B has a belief of who the root is, say R. Bridge B determines the Root Path Cost (Cost) as follows: If B = R : Cost = 0. If B  R: Cost = {Smallest Cost in any of BPDUs that were received from R} + 1 B’s root port is the port from which B received the lowest cost path to R (in terms of relation “  “). Knowing R and Cost, B can generate its BPDU (but will not necessarily send it out): Calculate the Root Path Cost Determine the Root Port R R Cost B B

M. Veeraraghavan (originals by J. Liebeherr) 16 At this time: B has generated its BPDU B will send this BPDU on one of its ports, say port x, only if its BPDU is lower (via relation “  “) than any BPDU that B received from port x. In this case, B also assumes that it is the designated bridge for the LAN to which the port connects. Determine if the bridge is the designated bridge for any of the LANs connected to its ports R R Cost B B

M. Veeraraghavan (originals by J. Liebeherr) 17 Selecting the Ports for the Spanning Tree At this time: Bridge B has calculated the root bridge for the network, its root port, root path cost, and whether it is the designated bridge for each of its LANs. Now B can decide which ports are in the spanning tree: B’s root port is part of the spanning tree All ports for which B is the designated bridge are part of the spanning tree. B’s ports that are in the spanning tree will forward packets (=forwarding state) B’s ports that are not in the spanning tree will block packets (=blocking state)

M. Veeraraghavan (originals by J. Liebeherr) 18 Building the Spanning Tree Consider the network on the right. Assume that the bridges have calculated the designated ports (D) and the root ports (R) as indicated. What is the spanning tree?

M. Veeraraghavan (originals by J. Liebeherr) 19 Adapting to Changes Bridges continually exchange BPDU’s according to the rules we just discussed. This allows the bridges to adapt to changes to the topology. Whenever a BPDU arrives on a port, say port x, B bridge determines: Can B become the designated bridge for the LAN that port x is attached to? Can port x become the root port?

M. Veeraraghavan (originals by J. Liebeherr) 20 Example 1 Assume a Bridge with ID 18 has received the following as the lowest messages on its 4 ports: What is the root? What is the Root Path Cost? What is the root port? What is 18’s configuration BPDU? For which LAN (port), if any, is B the designated bridge? Root is = 86 Port For Ports 1,3, 4

M. Veeraraghavan (originals by J. Liebeherr) 21 Example 2 (Practice - Solution in Exercises) Assume a Bridge with ID 3 is receiving the following as the lowest messages on its five ports: What is the root? What is the Root Path Cost? What is the root port ? What is 3’s configuration BPDU? For which LAN (port), if any, is B the designated bridge ?

M. Veeraraghavan (originals by J. Liebeherr) 22 Network Example (Practice - Solution in Exercises) The attached network shows 5 LANs that are interconnected by 5 bridges. The ID’s of the bridges are 1,2,3,4,5 and the port ID’s are as indicated in the figure. The bridges run the spanning tree algorithm. Assume that the root cost path is the number of hops. Assume an initial state. Show which messages are exchanged until the tree is built.

M. Veeraraghavan (originals by J. Liebeherr) 23 Interesting cases If two min-cost BPDUs received at a bridge on two different ports are equal in the root ID, root path cost and sending bridge ID, and the root ID is the smallest of the root Ids on all previously received BPDUs, then the designated ports for the LANs corresponding to the two ports on which the two BPDUs are received are compared. The smaller one of these (which will have the higher priority) will be chosen. The port on the bridge receiving these BPDUs which is on the LAN of this selected designated port is the root port of the bridge. Ref: Section (page 53) of the IEEE 802.1D specification.

M. Veeraraghavan (originals by J. Liebeherr) 24 Example Bridge 2 receives two BPDUs [1,0,1] on both its ports 3 and 4 The designated port for LAN A is port 1 on bridge 1 The designated port for LAN B is port 2 on bridge 1 Since port 1 is lower than port 2, it has higher priority. Hence port 4 is the root port.

M. Veeraraghavan (originals by J. Liebeherr) 25 Another case Furthermore, section of IEEE 802.1D states that if even the designated ports of the LANs corresponding to the ports on which a bridge receives the same BPDUs are the same, then look at the port numbers on the bridge itself at which these BPDUs are received and select the lower one to be the root port.

M. Veeraraghavan (originals by J. Liebeherr) 26 Example Ports 4 and 2 of bridge 2 are on LAN A. They will both receive BPDU [1,0,1] from bridge 1. The designated port for LAN A is port 1 on bridge 1. So even the designated ports are the same. Hence choose between ports 2 and 4 by selecting the lower one, which is port 2 as the root port.

M. Veeraraghavan (originals by J. Liebeherr) 27 Priority Finally, see pg 102 of the spec, section It states that the ”Two bridge identifiers when compared numerically, the lesser number shall denote the bridge of the higher priority."