1、 I 交换机生成树协议研究 摘 要 生成树协议(Spanning Tree Protocol STP)是用于局域网中消除数据链路 层物理环路的协议。运行该协议的交换机通过彼此交互报文发现网络中的环路, 并有选择性的对某些端口进行阻塞, 最终将环路网络结构修剪成无环路的树型网 络结构,从而达到消除二层环路的目的。STP 的缺点是收敛速度慢,为解决这一 缺陷,RSTP 应运而生。快速生成树协议(Rapid Spanning Tree Protocol RSTP) 在 STP 的基础上,缩短了转发延时可以快速收敛,但是和 STP 一样,局域网内所 有交换机共享一棵生成树,不能解决链路负载分担的问题,
2、多生成树协议 (Multiple Spanning Tree Protocol MSTP)可以弥补这一缺陷,它既可以快速 收敛,也能使不同 VLAN 的流量沿各自的路径转发,从而为冗余链路提供了更好 的负载分担机制。本论文论述了 STP,RSTP 和 MSTP 的产生背景和发展,基本概 念和原理,以及它们各自的缺陷,并针对这些问题提出了自己的见解。 关键词:生成树协议,快速生成树协议,虚拟局域网,多生成树协议 II Spanning Tree Protocol Abstract:Spanning Tree Protocol (Spanning Tree Protocol STP) is use
3、d for LAN data link layer to eliminate the physical loops in the agreement. Switch by running the protocol packets that the network interact with each other in the loop, and selectively blocking certain ports, and ultimately into the loop network loop-free tree pruning the network structure, to achi
4、eve the elimination of two layer loop purposes. STP drawback is slow convergence, to address this shortcoming, RSTP came into being. RSTP (Rapid Spanning Tree Protocol RSTP) in the STP, based on the forwarding delay can be shortened fast convergence, however, and STP, as all the switches share 、a LA
5、N spanning tree, load-sharing link can not solve the problem of MSTP (Multiple Spanning Tree Protocol Multiple Spanning Tree Protocol) can fill this gap, both for fast convergence, but also make different VLAN traffic along their path forward, so as to redundant links to provide a better load-sharin
6、g mechanism. This paper discusses the STP, RSTP and MSTP the background and development, basic concepts and principles, and their respective deficiencies and address these issues put forward their own views. Keyword: Spanning Tree Protocol, Rapid Spanning Tree Protocol, VLAN, Multiple Spanning Tree Protocol III 目 录 第一章 前言 . 1 第二章 以太网交换机. 2 2.1 以太网发展历史及现状 2 2.2 传统以太网 2 2.3 透明桥工作原理 3 2.4 传统以太网与交换式以太网 3 2.5 STP 的产生 3 第三章 生成树协议 STP. 5 3.1 STP 协议基本原理 5 3.2 STP 基本概念 5 3.3 STP 端口 7 3.3.1 端口状态 7 3.3.2 端