CISCO:spanning_tree.swf

http://www.cisco.com/warp/public/473/spanning_tree1.swf 

我见过的最好的FLASH,翻译下其中的文字(双语对照)

1.

Consider the example in winch there are bridges:

Bridge A

Bridge B

Bridge C

3个网桥作为范例:

网桥A 网桥B 网桥C

2.

Each bridge has a connection with the other bridges.

每个网桥与其他网桥有一个连接线路。

3.

At the bootup,all of the bridges think of themselves as the Root Bridge .

在引导启动阶段,所有的网桥把自己看作根网桥(Root Bridge)。

4.

Assume that the first step is that Bridge C sends the BPDU to Bridges A and B,announcing that Bridge C is the Root,with the Root ID of 32768.00-00-00-00-00-02.

Note that Bridge B's Root ID will change from 03 to 02.Also note that Bridge A's Root ID will not change.

设想第一步网桥C发送BPDU到网桥AB,宣布网桥C是根RootRoot ID32768.00-00-00-00-00-02

网桥BRoot ID将从03改为02。网桥ARoot ID 将不会改动。

5.

Considering that Bridge B's Bridge ID is greater than the Root ID it seens in the BPDU,Bridge B accepts that Bridge C is root.

Bridge A still considers itself as the Root as its Bridge ID is less than the Root ID it seens in the BPDU.Bridge C still thinks of itself as the Root.

鉴于网桥B的网桥ID比在BPDU中的网桥ID高,网桥B认为网桥C作为root

网桥A一直认为它自己是Root,因为它的网桥IDBPDU中的Root ID 小。网桥C一直认为它自己是Root

6.

Assume that the next step is for Bridge A to send BPDUs towards Bridge B and C announcing itself as the Root.

Note the change in B and C's Root IDs to 01.Bridge A's Root ID is 372768.00-00-00-00-00-01.

下一步网桥A向网桥BC发送BPDU,宣布自己是Root.

改变网桥BCRoot ID记录为01。网桥ARoot ID 372768.00-00-00-00-00-01.

7.

All bridges are now is agreement that Bridge A is the Root Bridge .

所有的网桥现在一致认为网桥A Root Bridge

8.

Every non-root bridge must select one Root port.A bridge's root port is the port closest to the Root bridge.

Non-root Bridges elect their respective root port based on the Root path Cose,which is the cumulative cost of all links to the root bridge.

每个非根网桥(non-root bridge)必须选择一个根端口。A网桥的根端口( root port)离根网桥最近。

非根网桥基于根路径代价( Root path Cose)选择它们各自的根端口,即到根网桥的所有连接的累积代价(cost)。

9.

Assuming that all links between the bridges have the same speed(say 100 Mbps with a cost of 19,according to the IEEE),Bridge B and Bridge C elect their Root ports.

假设所有网桥间的链路有相同的速度(依照IEEE100 Mbps代价为19),网桥BC选择他们的根端口。

10.

Election of Designated ports

Ports providing the least path cost from the segment to the root are elected as designated ports.

选举制定的端口

选择从网段到根有最少路径代价的端口作为制定端口。

11.

The bridge containing the designated port for a given segment is referred to as the designated bridge for that segment.

在特定网段含有指定端口的网桥被认为是该网段segment的指定网桥。

12.

there are three segments:

segment 1

segment 2

segment 3

Since the ports on Bridge A are directly connected to the Root Bridge ,these ports become the designated ports for Segment 1 and Sement 2.

这里有三个网段:网段1 网段2 网段3

网桥A上的端口直接连接根网桥,这些端口成为了网段12的指定端口。

13.

Sement3

The path cost to the root bridge is the same for Bridge B and Bridge C.The tie breaker is the lower bridge ID of Bridge C.

网段3

网桥A和网桥C到根网桥的路径代价相同。 平局决胜制tie breaker降低了网桥C的网桥ID

14.

Since the bridge ID of Bridge C is less than the bridge ID of Bridge B,the designated port for Segment 3 becomes port 1/2 of Bridge C.

网桥C的网桥ID小于网桥B的,网段B的指定端口变为网桥C1/2端口。

15.

Root port and the designated ports go into the forwarding states.

根端口和制定端口进入转发状态(Forwarding state)

16.

Ports that are neither the root ports nor the designated ports,in other words ports that are non-designated ports,go to the blocking state.

既不是根端口也不是标记端口,而是未指定端口进入阻塞状态(Blocking state)。

17.

At this point Spanning tree has fully converged.

这时生成树成功聚合。

18.

Bridge C has a better BPDU than Bridge B.Bridge C continues to send BPDUs advertising its superiority  over Bridge B.

As long as Bridge B continues to receive these Superior BPDUs on port 1/2,the port remains in the Blocking mode.

网桥C比网桥B有较好的BPDU 网桥C继续发送BPDU广告它的优越性超过网桥B

在网桥B继续在端口1/2接收这些上级BPDU时,端口保持阻塞模式。

19.

For any reason if Bridge B fails to receive these BPDUs for max age time,which is 20 seconds by default,it would start to transition to the forwarding mode.

Most of the Spanning Tree Algorithm(STA) failures occur due to the excessive loss of BPDUs causing the blocked ports to transition to forwarding mode.

由于一些原因,如果网桥B失败的在最大老化时间Max Age Time (默认20秒)接收到这些BPDU。它将开始改变转发模式。

大多的生成树算法(STA)失败发生由于过多的丢失BPDU导致阻塞端口转换为转发模式。

20.

Spanning Tree  Failure

The blocked port has gone into fowarding mode and the Spanning Tree Failure occurred.

生成树失败

阻塞端口进入转发模式,生成树失败发生。

21.

一些由于丢失BPDU引起阻塞端口进入转发模式的情形:

双方配合不当Duplex Mismatch

单项链路Unidirectional Link

包破坏Packet Corruption

资源错误Resource Errors

速端口Portfast)配置错误Portfast Configuration Error

难使用的生成树协议STP参数调整和直径(网络拓扑中末端站点任意2个连接之间网桥最大数量27)流出Awkward STP Parameter Tuning and Diameter Issues

软件错误Software Errors

关于上述情形详细资料请继续阅读相关文档

 

学习下英语 :)

11.   referred to as  vbl.称为,被认为是

19.   due to   adv.由于, 应归于

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
让我一行一行地为您解释这段代码: 1. `import click`:导入了Click库,用于构建命令行工具。 2. `import utilities_common.cli as clicommon`:导入了一个名为`clicommon`的自定义模块,用于处理命令行工具的公共功能。 3. `@click.group(cls=clicommon.AliasedGroup, name="spanning_tree")`:使用`@click.group`装饰器创建了一个名为`spanning_tree`的命令组,并指定了使用`clicommon.AliasedGroup`作为命令组的类。命令组是一组相关的命令的集合。 4. `def spanning_tree():`:定义了一个名为`spanning_tree`的函数,该函数将作为命令组的入口点。 5. `"""Show details of the spanning_tree"""`:在函数体的顶部使用三重引号添加了函数的文档字符串,用于描述命令组的功能。 6. `pass`:在函数体中使用`pass`关键字,表示函数体为空。 7. `@spanning_tree.command()`:使用`@spanning_tree.command`装饰器创建了一个子命令,该子命令属于`spanning_tree`命令组。 8. `@click.option('--verbose', is_flag=True, help="Enable verbose output")`:使用`@click.option`装饰器创建了一个名为`--verbose`的选项,该选项用于控制是否启用详细输出。 9. `def mstp(verbose):`:定义了一个名为`mstp`的函数,该函数将作为子命令的入口点,并接受一个名为`verbose`的参数。 10. `"""Show spanning tree mode mstp information"""`:在函数体的顶部使用三重引号添加了函数的文档字符串,用于描述子命令的功能。 11. `cmd = "sudo mstpshow "`:定义了一个字符串变量`cmd`,存储了要执行的命令字符串。 12. `clicommon.run_command(cmd, display_cmd=verbose)`:调用了自定义模块中的`run_command`函数,传入了命令字符串和`display_cmd`参数。根据`verbose`参数的值,决定是否显示命令。 总体而言,这段代码是一个使用Click库构建的命令行工具。它创建了一个名为`spanning_tree`的命令组,并定义了一个名为`mstp`的子命令。用户可以通过运行`show spanning_tree mstp`命令来触发子命令的执行,并根据需要指定`--verbose`选项来控制输出的详细程度。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值