open-lab ccna培訓(xùn)中英文9思科網(wǎng)絡(luò)學(xué)院protocol_第1頁
open-lab ccna培訓(xùn)中英文9思科網(wǎng)絡(luò)學(xué)院protocol_第2頁
open-lab ccna培訓(xùn)中英文9思科網(wǎng)絡(luò)學(xué)院protocol_第3頁
open-lab ccna培訓(xùn)中英文9思科網(wǎng)絡(luò)學(xué)院protocol_第4頁
open-lab ccna培訓(xùn)中英文9思科網(wǎng)絡(luò)學(xué)院protocol_第5頁
已閱讀5頁,還剩58頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、Spanning Tree ProtocolSpanning Tree Protocol10BaseT Ports (12)100BaseT Ports10BaseT Ports (12)100BaseT PortsA Redundant Paths and No Spanning Tree. So, whats the problem?MoeLarryHost KahnHost BaranA HubCisco Networking Academy Program10BaseT Ports (12)10BaseT Ports (12)A MoeLarryHost KahnHost BaranA

2、 Hub100BaseT Ports100BaseT PortsHost Kahn sends an Ethernet frame to Host Baran. Both Switch Moe and Switch Larry see the frame and record Host Kahns Mac Address in their switching tables.10BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryHost BaranA SAT (Source Address Table)Port 1: 00-90-

3、27-76-96-93SAT (Source Address Table)Port 1: 00-90-27-76-96-9311 200-90-27-76-96-9300-90-27-76-5D-FEHubHost KahnSAT (Source Address Table)Port 1: 00-90-27-76-96-93SAT (Source Address Table)Port 1: 00-90-27-76-96-9310BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryA 11 200-90-27-76-96-9300-

4、90-27-76-5D-FEHubBoth Switches do not have the destination MAC address in their table so they flood it out all ports.Host BaranHost KahnSAT (Source Address Table)Port 1: 00-90-27-76-96-9310BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryA 11 200-90-27-76-96-9300-90-27-76-5D-FEHubSAT (Sourc

5、e Address Table)Port 1: 00-90-27-76-96-93Port A: 00-90-27-76-96-93Switch Moe now learns, incorrectly, that the Source Address 00-90-27-76-96-93 is on Port A.Host BaranHost KahnSAT (Source Address Table)Port 1: 00-90-27-76-96-93Port A: 00-90-27-76-96-93SAT (Source Address Table)Port 1: 00-90-27-76-96

6、-93Port A: 00-90-27-76-96-9310BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryA 11 200-90-27-76-96-9300-90-27-76-5D-FEHubSwitch Larry also learns, incorrectly, that the Source Address 00-90-27-76-96-93 is on Port A.Host BaranHost KahnSAT (Source Address Table)Port A: 00-90-27-76-96-9310Bas

7、eT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryA 11 200-90-27-76-96-9300-90-27-76-5D-FEHubSAT (Source Address Table)Port A: 00-90-27-76-96-93Now, when Host Baran sends a frame to Host Kahn, it will be sent the longer way, through Switch Larrys port A.Host BaranHost KahnThen the same confusio

8、n happens, but this time with Host Baran. Okay, maybe this is not the end of the world. Frames will just take a longer path and you may also see other “unexpected results.”But what about broadcast frames, like ARP Requests?10BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryHost KahnA 11 200

9、-90-27-76-96-9300-90-27-76-5D-FEHubLets, leave the switching tables alone and just look at what happens with the frames. Host Kahn sends out a Layer 2 broadcast frame, like an ARP Request.Host Baran10BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryHost KahnA 11 200-90-27-76-96-9300-90-27-7

10、6-5D-FEHubBecause it is a Layer 2 broadcast frame, both switches, Moe and Larry, flood the frame out all ports, including their port As.Host Baran10BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryHost KahnA 11 200-90-27-76-96-9300-90-27-76-5D-FEHubDuplicateframeDuplicateframeBoth switches

11、receive the same broadcast, but on a different port. Doing what switches do, both switches flood the duplicate broadcast frame out their other ports.Host Baran10BaseT Ports (12)10BaseT Ports (12)100BaseT PortsA MoeLarryA 1 200-90-27-76-96-9300-90-27-76-5D-FEHubDuplicate FrameDuplicate FrameHere we g

12、o again, with the switches flooding the same broadcast again out its other ports. This results in duplicate frames, known as a broadcast storm!Host KahnHost Baran10BaseT Ports (12)10BaseT Ports (12)A MoeLarryA 1 200-90-27-76-96-9300-90-27-76-5D-FEHubRemember, that Layer 2 broadcasts not only take up

13、 network bandwidth, but must be processed by each host. This can severely impact a network, to the point of making it unusable.Host KahnHost BaranSpanning Tree to the Rescue!Broadcast FrameStandby LinkSwitches forward broadcast framesPrevents loopsLoops can cause broadcast storms, exponentially prol

14、iferate framesAllows redundant linksPrunes topology to a minimal spanning treeResilient to topology changes and device failuresMain function of the Spanning Tree Protocol (STP) is to allow redundant switched/bridged paths without suffering the effects of loops in the networkIntroducing Spanning-Tree

15、 ProtocolThe STA is used to calculate a loop-free path. Spanning-tree frames called bridge protocol data units (BPDUs) are sent and received by all switches in the network at regular intervals and are used to determine the spanning tree topology.A separate instance of STP runs within each configured

16、 VLAN.(VLANs are later)States initially set, later modified by STPServer ports can be configured to immediately enter STP forward modeUnderstanding STP StatesBlockingListeningLearningForwardingDisabledBlocking - No frames forwarded, BPDUs heard Listening - No frames forwarded, listening for frames L

17、earning - No frames forwarded, learning addresses Forwarding - Frames forwarded, learning addresses Disabled - No frames forwarded, no BPDUs heard Understanding STP StatesPart of 802.1d standardSimple principle: Build a loop-free tree from some identified point known as the root.Redundant paths allo

18、wed, but only one active path.Developed by Radia PerlmanSpanning Tree Algorithm (STA)Spanning Tree ProcessStep 1: Electing a Root BridgeStep 2: Electing Root PortsStep 3: Electing Designated PortsAll switches send out Configuration Bridge Protocol Data Units (Configuration BPDUs)BPDUs are sent out a

19、ll interfaces every two seconds (by default - tunable)All ports are in Blocking Mode during the initial Spanning Tree is process. Spanning Tree Algorithm (STA):Bridge Protocol Data Units Fields (BPDU) (FYI)The fields used in the STA BPDU are provided for your information only.During the discussion o

20、f STA you may wish to refer to this protocol to see how the information is sent and received.Protocol Identifier (2 bytes), Version (1 byte), Message Type (1 byte): Not really utilized (N/A here)Flags (1 byte): Used with topology changes (N/A here)Root ID (8 bytes): Indicates current Root Bridge on

21、the network, includes:Bridge Priority (2 bytes)Bridge MAC Address (6 bytes)Known as the Bridge Identifier of the Root BridgeCost to Root (4 bytes): Cost of the path from the bridge sending the BDPU to the Root Bridge indicated in the Root ID field. Cost is based on bandwidth.Bridge ID (8 bytes): Bri

22、dge sending the BDPU2 bytes: Bridge Priority6 bytes: MAC AddressPort ID (2 bytes): Port on bridge sending BDPU, including Port Priority valueMessage Age (2 bytes): Age of BDPU (N/A here)Maximum Age (2 bytes): When BDPU should be discarded (N/A here)Hello Time (2 bytes): How often BDPUs are to be sen

23、t (N/A here)Forward Delay (2 bytes): How long bridge should remain in listening and learning states (N/A here)A BA BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT Ports100BaseT Ports100BaseT Ports3 Switches with redundant paths Can you find them? 3 Steps to Spanning

24、 TreeStep 1: Electing a Root BridgeBridge PriorityBridge IDRoot BridgeStep 2: Electing Root PortsPath Cost or Port CostRoot Path CostRoot PortStep 3: Electing Designated PortsPath Cost or Port CostRoot Path CostStep 1: Electing a Root BridgeThe first step is for switches to select a Root Bridge.The

25、root bridge is the bridge from which all other paths are decided.Only one switch can be the root bridge. Election of a root bridge is decided by:1. Lowest Bridge Priority2. Lowest Bridge ID (tie-breaker)Bridge PriorityThis is a numerical value.The switch with the with the lowest bridge priority is t

26、he root bridge.The switches use BPDUs to plish this.All switches consider themselves as the root bridge until they find out otherwise.All Cisco Catalyst switches have the default Bridge priority of 32768.Its a tie! So then what?A BA BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Port

27、s (24)100BaseT Ports100BaseT Ports100BaseT PortsBridge PrioritiesSwitch Moe: Bridge PriorityIn case of a tie, the Bridge ID is usedBridge IDThe Bridge ID is the MAC address assigned to the individual switch.The lower Bridge ID (MAC address) is the tiebreaker.Because MAC addresses are unique, this en

28、sures that only one bridge will have the lowest value.NOTE: There are other tie breakers, if these values are not unique, but we will not cover those situations.A BA BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT Ports100BaseT PortsPriority: 32768 ID: 00-B0-64-26-6

29、D-00Priority: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00Bridge Priorities and Bridge IdsWhich one is the lowest?A BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT PortsPriority: 32768 ID: 00-B0-64-26-6D-00Priority: 32768 ID: 00-B0-64-58-CB-80Pri

30、ority: 32768 ID: 00-B0-64-58-DC-00Lowest: Moe es the root bridgeYou got it!A BStep 2: Electing Root PortsAfter the root bridge is selected, switches (bridges) must locate redundant paths to the root bridge and block all but one of these paths.The switches use BPDUs to plish this.How does the switch

31、make the decision on which port to use, known as the root port, and which one should be blocked?A BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT PortsPriority: 32768 ID: 00-B0-64-26-6D-00Priority: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00?Red

32、undant Paths100BaseT Ports100BaseT PortsA BPath Cost (or Port Cost)Port Cost is used to help find the “cheapest” or “fastest” path to the root bridge.By default, port cost is usually based on the medium or bandwidth of the port.On Cisco Catalyst switches, this value is derived by dividing 1000 by th

33、e speed of the media in megabytes per second.Examples:Standard Ethernet: 1,000/10 = 100Fast Ethernet: 1,000/100 = 10Root Path CostThe root path cost is the cumulative port costs (path costs) to the Root Bridge.This value is transmitted in the BPDU cost field.However, everything is viewed in relation

34、 to the root bridge.Root PortsPorts directly connected to the root bridge will be the root ports.Otherwise, the port with the lowest root path cost will be the root port.A BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT PortsPriority: 32768 ID: 00-B0-64-26-6D-00Prio

35、rity: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00100101010Path Costs100BaseT Ports100BaseT PortsA BCurlyEven though the Path Cost to the root bridge for Curly is higher using Port 1, Port 1 has a direct connection to the root bridge, thus it es the root port.Port 1 is then put i

36、n Forwarding mode, while the redundant path of Port A, is put into Blocking mode.A BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT PortsPriority: 32768 ID: 00-B0-64-26-6D-00Priority: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00X BlockingForwardin

37、g100BaseT Ports100BaseT PortsCurlyA BLarryLarry also has a root port, a direct connection with the root bridge, through Port B.Port B is then put in Forwarding mode, while the redundant path of Port A, is put into Blocking mode.A BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (

38、24)100BaseT PortsPriority: 32768 ID: 00-B0-64-26-6D-00Priority: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00X BlockingForwarding100BaseT Ports100BaseT PortsX BlockingForwardingA BLarryA BA B11MoeLarryCurly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)100BaseT PortsPriorit

39、y: 32768 ID: 00-B0-64-26-6D-00Priority: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00X Blocking100BaseT Ports100BaseT PortsX BlockingA BRoot PortRoot PortRoot PortsStep 3: Electing Designated PortsThe single port for a switch that sends and receives traffic to and from the Root Br

40、idge.It can also be thought of as the port that is advertising the lowest cost to the Root Bridge.In our example, we only have the two obvious choices, which are on switch Moe.If we had other LAN segments, we could explain designated ports in more detail, but this is fine for now.A BA B11MoeLarryCur

41、ly10BaseT Ports (12)10BaseT Ports (24)10BaseT Ports (24)Priority: 32768 ID: 00-B0-64-26-6D-00Priority: 32768 ID: 00-B0-64-58-CB-80Priority: 32768 ID: 00-B0-64-58-DC-00X BlockingForwarding100BaseT Ports100BaseT PortsX BlockingForwardingA BDesignated PortDesignated PortDesignated PortsSpanning Tree is

42、 now complete, and the switches can begin to properly switch frames out the proper ports with the correct switching tables and without creating duplicate frames.Most LAN and switched internetwork books provide information on Spanning Tree. For more complex examples, you may wish to try these books:C

43、isco Catalyst LAN Switching, by Rossi and Rossi, McGraw Hill (Very Readable)CCIE Professional Development: Cisco LAN Switching, by Clark and Hamilton, Cisco Press (More Advanced)Interconnections, by Radia Perlman, Addison Wesley (Excellent, but very academic)Extra Item!Port Fast Mode (from Cisco documentation)Port Fast mode immediately brings a port from the blocking state into the forwarding state by eliminating the forward delay (the amou

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論