Instructor & Todd Lammle

Slides:



Advertisements
Similar presentations
Part 2: Preventing Loops in the Network
Advertisements

Switching & Operations. Address learning Forward/filter decision Loop avoidance Three Switch Functions.
1 CCNA 3 v3.1 Module 7. 2 CCNA 3 Module 7 Spanning Tree Protocol (STP)
STP Spanning tree protocol. Trunk port : A trunk port is a port that is assigned to carry traffic for all the VLANs that are accessible by a specific.
Bellevue University CIS 341A Final Review. The test Monday, August 4, Question multiple choice, True/False, and fill in the blanks. You have the.
Spanning Tree Protocol STP STP A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available.
1 Version 3 Module 8 Ethernet Switching. 2 Version 3 Ethernet Switching Ethernet is a shared media –One node can transmit data at a time More nodes increases.
Spanning Tree protocol- Chapter 5
Sybex CCNA Chapter 8: Layer-2 Switching Instructor & Todd Lammle.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—1-1 Configuring Catalyst Switch Operations Introducing Spanning Tree Protocol.
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
Layer 2 Switching. Overview Introduction Spanning Tree Protocol Spanning Tree Terms Spanning Tree Operations LAN Switch Types Configuring Switches.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 7 Spanning Tree Protocol.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Lecture 12: LAN Redundancy Switched Networks Assistant Professor Pongpisit.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning-Tree Protocol Cisco Networking Academy.
Switching in an Enterprise Network
1 CISCO NETWORKING ACADEMY PROGRAM (CNAP) SEMESTER 1/ MODULE 8 Ethernet Switching.
Saeed Darvish Pazoki – MCSE, CCNA Abstracted From: Cisco Press – ICND 2 – Chapter 2 Spanning tree Protocol 1.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols LAN Switching and Wireless – Chapter 5 Part.
CS 350 Chapter-11Switching. Switching Service Hardware-based bridging (ASIC: application-specific integrated circuits) Wire speed Low latency Low cost.
Author: Bill Buchanan. Transparent bridge Author: Bill Buchanan CAM.
Cisco 3 - Switch Perrine. J Page 110/3/2015 Chapter 7 How does STP provide a loop-free network? 1.By placing all ports in the blocking state 2.By placing.
Sybex CCNA Chapter 8: Layer-2 Switching Instructor & Todd Lammle.
Instructor & Todd Lammle
Example STP runs on bridges and switches that are 802.1D-compliant. There are different flavors of STP, but 802.1D is the most popular and widely implemented.
Click to edit Master subtitle style Chapter 11: Switching and VLANs Instructor:
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 LAN Switching and Wireless Implement Spanning Tree Protocols (STP) Chapter.
Steffen/Stettler, , 4-SpanningTree.pptx 1 Computernetze 1 (CN1) 4 Spanning Tree Protokoll 802.1D-2004 Prof. Dr. Andreas Steffen Institute for.
Cisco 3 – Switching STP Perrine. J Page 110/19/2015 Chapter 8 Spanning Tree Protocol (STP) Having redundancy in a network is important, and allows the.
Created By NGIT. LAN Switching  A LAN switch is a device that provides much higher port density at a lower cost than traditional bridges. For this.
LOGO Local Area Network (LAN) Layer 2 Switching and Virtual LANs (VLANs) Local Area Network (LAN) Layer 2 Switching and Virtual LANs (VLANs) Chapter 6.
Configuring Cisco Switches Chapter 13 powered by DJ 1.
Click to edit Master subtitle style
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 7: Layer 2 Switching.
S7C5 – Spanning Tree Protocol And other topics. Switch Port Aggregation Bundling –Combining 2 to 8 links of FE (Fast Ethernet) or GE (Gigabit) Full duplex.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
Spanning Tree V1.2 Slide 1 of 1 Purpose:
STP LAN Redundancy Introduction Network redundancy is a key to maintaining network reliability. Multiple physical links between devices provide redundant.
Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.
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.
CCNP 3: Chapter 3 Implementing Spanning Tree. Overview Basics of implementing STP Election of Root Bridge and Backup Enhancing STP RSTP MSTP EtherChannels.
Spanning Tree protocol
Topic 5 Spanning tree protocol
CO5023 LAN Redundancy.
Layer-2 Switching and STP
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
Copyright 2003 CCNA 3 Chapter 8 Spanning Tree Protocol By Your Name.
W&L Page 1 CCNA CCNA Training 2.8 Identify enhanced switching technologies Jose Luis Flores / Amel Walkinshaw Aug, 2015.
Lecture3 Secured Network Design W.Lilakiatsakun.  Spanning Tree Protocol (STP)  Attack on Spanning Tree Protocol Topics.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols (STP) LAN Switching and Wireless – Chapter.
Chapter-5 STP. Introduction Examine a redundant design In a hierarchical design, redundancy is achieved at the distribution and core layers through additional.
CCNA1 v3 Module 8 v3 CCNA 1 Module 8 JEOPARDY S Dow.
Instructor & Todd Lammle
Instructor Materials Chapter 3: STP
Spanning Tree Protocol
CIT 384: Network Administration
Instructor & Todd Lammle
Instructor: Mr Malik Zaib
Configuring Catalyst Switch Operations
Spanning Tree Protocol
One Upon A Time Computer Networks
© 2002, Cisco Systems, Inc. All rights reserved.
Spanning Tree Protocol
NT2640 Unit 9 Activity 1 Handout
Connecting LANs, Backbone Networks,
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
Spanning Tree Protocol (STP)
Cisco networking CNET-448
Presentation transcript:

Instructor & Todd Lammle Sybex CCNA 640-802 Chapter 8: Layer-2 Switching Instructor & Todd Lammle

Chapter 8 Objectives The CCNA Topics Covered in this chapter include: What is layer-2 switching Switching services Bridges vs. LAN switching Three switch functions MAC table Switching loops Spanning-Tree Protocol (STP) 2

Layer 2 Switching Purposes for using switching Breaks up collision domains Cost-effective, resilient internetwork Purpose for Spanning-Tree Protocol (STP) Stops loops in layer 2 switched networks

Before Layer 2 Switching

Switched LANs

Typical Switched Designs

One link to the server!

Switching Services Layer 2 switching provides: Hardware-based bridging (ASIC) Wire speed Low latency Low cost

Limitations of Layer 2 Switching Must break up the collision domains correctly. Rule of Thumb: Make sure that users spend 80 percent of their time on the local segment. Switches do not break up broadcast domains by default. Or at all , unless they are layer 3 switches.

Bridging vs. LAN switching Bridges are software based, switches are hardware based using ASIC chips to filter decisions. A switch can be viewed as a multiport bridge. Bridges can only have one spanning-tree instance per bridge, and switches can have many. Switches have a higher number of ports than most bridges. Both of them forward layer 2 broadcasts. Both of them learn MAC addresses by examining the source address of each frame received. Both of them make forwarding decisions based on layer 2 addresses.

Three Switch Functions at Layer-2 Address learning Layer 2 switches and bridges remember the source hardware address of each frame received on an interface, and they enter this information into a MAC database called a forward/filter table. Forward/filter decisions When a frame is received on an interface, the switch looks at the destination hardware address and finds the exit interface in the MAC database. The frame is only forwarded out the specified destination port. Loop avoidance If multiple connections between switches are created for redundancy purposes, network loops can occur. Spanning Tree Protocol (STP) is used to stop network loops while still permitting redundancy.

Empty MAC table Nothing here at this point

How Switches Learn Hosts’ Locations (p 501)

Switching Loops

Switching Loop Problems The MAC address filter table could be totally confused about the device’s location because the switch can receive the frame from more than one link.

Spanning-Tree Protocol (STP) Solves Switching loops at layer 2 Root port Designated port Port cost Nondesignated port Forwarding port Block port STP Root Bridge BPDU Bridge ID Nonroot Bridge

Spanning-Tree Terms Root bridge: The root bridge is the bridge with the best bridge ID. With STP, the key is for all the switches in the network to elect a root bridge that becomes the focal point in the network. All other decisions in the network—such as which port is to be blocked and which port is to be put in forwarding mode—are made from the perspective of this root bridge. BPDU: All the switches exchange information to use in the selection of the root switch as well as in subsequent configuration of the network. Each switch compares the parameters in the Bridge Protocol Data Unit (BPDU) that it sends to one neighbor with the one that it receives from another neighbor. Bridge ID: The bridge ID is how STP keeps track of all the switches in the network. It is determined by a combination of the bridge priority (32,768 by default on all Cisco switches) and the base MAC address. The bridge with the lowest bridge ID becomes the root bridge.

Spanning-Tree Terms Nonroot bridges: All bridges that are not the root bridge. Port cost: Port cost determines the best path when multiple links are used between two switches and none of the links is a root port. The cost of a link is determined by the bandwidth of a link. Root port: The root port is always the link directly connected to the root bridge, or the shortest path to the root bridge. If more than one link connects to the root bridge, then a port cost is determined by checking the bandwidth of each link. The lowest-cost port becomes the root port. If multiple links have the same cost, the bridge with the lower advertising bridge ID is used. Since multiple links can be from the same device, the lowest port number will be used.

Spanning-Tree Terms Designated port: A designated port is one that has been determined as having the best (lowest) cost. A designated port will be marked as a forwarding port. Nondesignated port: A nondesignated port is one with a higher cost than the designated port. Nondesignated ports are put in blocking mode—they are not forwarding ports. Forwarding port: A forwarding port forwards frames. Blocked port: A blocked port is the port that, in order to prevent loops, will not forward frames. However, a blocked port will always listen to frames.

Spanning-Tree Operations Selecting the root bridge Selecting the designated port

Spanning-Tree Port States Blocking: A blocked port won’t forward frames; it just listens to BPDUs. The purpose of the blocking state is to prevent the use of looped paths. Listening: The port listens to BPDUs to make sure no loops occur on the network before passing data frames. A port in listening state prepares to forward data frames without populating the MAC address table. Learning: The switch port listens to BPDUs and learns all the paths in the switched network. A port in learning state populates the MAC address table but doesn’t forward data frames. Forwarding: The port sends and receives all data frames on the bridged port. If the port is still a designated or root port at the end of the learning state, it enters the forwarding state. Disabled: port in the disabled state (administratively) does not participate in the frame forwarding or STP.

Spanning-Tree Example

Written Labs and Review Questions Open your books and go through all the written labs and the review questions. Review the answers in class. 23

Post-Class Material: Collapsed Backbone, (pp 494ff) The figure below shows the old model of a network, prior to switches. It was called a collapsed backbone because all hosts would need to go to the corporate backbone to reach any network services—both LAN and mainframe.

Root Bridge Elections: (pp 508ff) Each switch will have a Bridge ID Priority value, more commonly referred to as a BID. This BID is a combination of a default priority value and the switch's MAC address, with the priority value listed first! For example, if a Cisco switch has the default priority value of 32,768 and a MAC address of 11-22-33-44-55-66, the BID would be 32768:11-22-33-44-55-66. This is the KEY! Therefore, if the switch priority is left at the default, the MAC address is the deciding factor. Switches are a lot like people - when they first arrive, they announce that they are the center of the universe! Unlike some people, the switches will soon get over it. BPDUs will be exchanged until one switch is elected Root Bridge, and it's the switch with the lowest BPDU that will end up being the Root Bridge.

Root Bridge Elections VLAN 10 VLAN 20 VLAN 30

BID Election 2 If STP is left totally alone, a single switch is going to be the root bridge for every single VLAN in your network! Worse, that single switch is going to be selected because it has a lower MAC address than every other switch, not the criteria you want to use to select a single root bridge. You will prefer to determine a particular switch to be the root bridge for your VLANs, or you may want to spread the root bridge workload around. [There are 2 ways to change the BID. The first is below:] You can do this with the cmd: spanning-tree vlan root SW1(config)#spanning-tree vlan 1 ? forward-time Set the forward delay for the spanning tree hello-time Set the hello interval for the spanning tree max-age Set the max age interval for the spanning tree priority Set the bridge priority for the spanning tree root Configure switch as root

In this example, we've got two switches SW1 has been elected the root bridge for VLANs 10, 20, & 30. We'll use the spanning-tree vlan root command on SW2 to make it the root bridge for VLANs 20 and 30. SW2(config)#spanning-tree vlan 20 root primary SW2(config)#spanning-tree vlan 30 root primary SW2#show spanning vlan 20 VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 24596 Address 000f.90e2.1300 This bridge is the root SW2#show spanning vlan 30 VLAN0030 Spanning tree enabled protocol ieee Root ID Priority 24606 Address 000f.90e2.1300 This bridge is the root SW 2 is now the root bridge for both VLAN 20 and 30. Notice that the priority value has changed from the default of 32768.

Second way to change the BID Change the priority of the switch that you want to be the root bridge. For example: SW2(config)#spanning-tree vlan 3 priority 8192 Remember, the priority can be anything from 0 to 65535. The priority must be in increments of 4096, starting from 0 Because the BID is read from left to right, the priority is read first! So if the priority of one switch is lower than that of another switch, the switch with the lower BID wins and the MAC address is never considered!

Convergence: Point 3, pg 511 Switches are converged when they are all in either a blocking or forwarding state. Also note: if a switch is blocking and then must become the root bridge because of a topology change, it must end up in the forwarding state … But it must go through the listening and the learning states on the way.

Redundant Link Convergence: pg 512 ff The typical spanning-tree topology’s time to convergence from blocking to forwarding on a switch port is 50 seconds. This could create time-out problems on your servers or hosts—for example, when you reboot them. To address this hitch, you can disable spanning tree on individual ports using PortFast (or similar commands). Portfast – enables fast connectivity to be established on access layer switch ports to workstations UplinkFast --- enables fast uplink failover on an access layer switch when dual uplinks are connected to distribution layer BackboneFast – enables fast convergence in network backbone (core) after STP change