当前位置:网站首页>2022-08-01 Advanced Network Engineering (24) STP Advanced Knowledge
2022-08-01 Advanced Network Engineering (24) STP Advanced Knowledge
2022-08-10 07:42:00 【a goose】
STP Basics
See details
2021-12-19 Network Engineering Foundation (12) STP Spanning Tree Foundation_Goose One Blog-CSDN Blog
Supplemental
How to view the root bridge
[SW1]display stp-------[CIST Global Info][Mode STP]-------CIST Bridge: 32768.4c1f-ccf5-70e8Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20CIST Root/ERPC :32768.4c1f-cc51-2794/20000CIST RegRoot/IRPC:32768.4c1f-ccf5-70e8/0CIST RootPortId: 128.1BPDU-Protection :DisabledTC or TCN received :49TC count per hello :0STP Converge Mode :NormalTime since last TC :0 days 0h:4m:10sNumber of TC:5Last TC occurred :GigabitEthernet0/0/1----[Port1(GigabitEthernet0/0/1)][FORWARDING]----Port Protocol :EnabledPort Role :Root PortPort Priority :128Port Cost(Dot1T ) :Config=auto / Active=20000Designated Bridge/Port: 32768.4c1f-cc51-2794 / 128.1Port Edged :Config=default / Active=disabledPoint-to-point :Config=auto / Active=trueTransit Limit: 147 packets/hello-timeProtection Type:None---- More ----
The fourth line, CIST Root in CIST Root/ERPC :32768.4c1f-cc51-2794 / 20000 is the root bridge.
Modify interface cost command
[SW1-GigabitEthernet0/0/1]stp cost ?INTEGER<1-200000000> Port path cost
Modify interface priority
[SW1-GigabitEthernet0/0/1]stp port priority ?INTEGER<0-240> Port priority, in steps of 16
The role of the RP root port
BPDUs used to receive the root bridge
The role of DP designated port
BPDUs used to send and forward the root bridge
The role of AP blocking ports
Used as a backup for the RP root port
About forwarding delay
In STP, both listening and learning have a 15 second delay.
Configure BPDU capture and observation
1 Protocol ID: Total value 0.stands for STP protocol
2 Version ID: Total value 0.stands for STP protocol
3 BPDU type: 0x00 represents configuration BPDU.If it is 0x80, it represents a TCN BPDU, which is sent when the network topology changes.
4 flags
5 Topology Change Confirmation Bit: No
6 Topology Change Bit: No
7 Bridge ID of root bridge: 32768 4C1FCC512794
8 Cost to reach the root bridge (RPC): 20000
9 Sender's bridge ID: 32768 4C1FCCDB6A7B
10 The sender's port ID: 0x8003 represents priority 128 and the interface number is 3
11 Message lifetime: 1 means it is 1 hop to reach the root bridge
12 Maximum lifetime: 20 seconds.
13 BPDU sending interval: 2 seconds.
14 Forwarding Delay: 15 seconds for listening and learning.
TCN BPDU packet
When the topology changes, the switch will send TCN BPDUs to the root bridge to announce the change, and the sender's MAC aging time is forcibly changed to 15 seconds.
When the root bridge receives the TCP BPDU, it will send a message with both Topology Change Confirmation and Topology Change being Yes to inform the non-root switch to confirm receipt.Then it will continue to flood the packets with the topology change bit as Yes to all non-root switches (about 16-17 times), and the received non-root switches will force the MAC aging time to 15 seconds, and then recompute the spanning tree.
STP Timer
stp has 3 timers
forward-delay: The forward delay for listening and learning, the default value is 15 seconds.
hello: BPDU sending interval, the default value is 2 seconds.
max-age: The maximum aging time of BPDUs, the default value is 20 seconds.
Related commands
Modify stp timer (only valid on root bridge)
[SW1]stp timer ?forward-delay Specify forward delayhello Specify hello time intervalmax-age Specify max age
STP deficiencies
1 The convergence speed is slow, and there is a forwarding delay of 15 seconds for listening and learning. If the topology changes, there is a forwarding delay of at least 30 seconds, plus the link aging time of 20 seconds, and a maximum waiting time of 50 seconds.
2 Port division and state division are unclear.
3 Configure BPDUs that only the root bridge can send, and non-root switches can only forward them.
Because of various shortcomings of STP, RSTP has improved STP.Next we start to learn RSTP.
边栏推荐
- 34. Talk about why you want to split the database?What methods are there?
- Rust学习:6.5_复合类型之数组
- Rust学习:6.2_复合类型之元组
- Introduction to the delta method
- mysql之两阶段提交
- 一文2600字手把手教你编写性能测试用例
- 浅谈C语言实现冒泡排序
- Bigder:42/100 showCase多少bug可以打回去
- Regular backup of mysql database (retain backups for nearly 7 days)
- 上课笔记(7)(1)——#647. 找树根和孩子(root)
猜你喜欢
【MySQL】使用MySQL Workbench软件新建表
MySQL设置初始密码—注意版本mysql-8.0.30
每日一题,二叉树中增加一行
Using the color picker
navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
阿里巴巴(中国)网络技术有限公司、测试开发笔试二面试题(附答案)
Relaxation class: the boss will martial arts, who also can not hold up against!The charm of six sigma training
VS2013-debug assembly code-generate asm file-structure memory layout-function parameter stack-calling convention
90. (cesium house) cesium height monitoring events
手把手教你进行Mysql查询操作
随机推荐
基于STC8G2K64S4单片机通过OLED屏幕显示模拟量光敏模拟值
机器人控制器编程实践指导书旧版-实践二 传感器(模拟量)
一文2600字手把手教你编写性能测试用例
Quickly enter the current date and time
如何正确理解线程机制中常见的I/O模型,各自主要用来解决什么问题?
【Day10】进程管理命令
foreach遍历删除元素问题总结
自动化测试框架搭建 ---- 标记性能较差用例
If the data of the oracle business table is added, deleted, or modified, will the index of the table write redo and undo?
VS2013-debug assembly code-generate asm file-structure memory layout-function parameter stack-calling convention
mysql之两阶段提交
【转】探秘钉钉的即时消息服务DTIM
添加spark的相关依赖和打包插件(第六弹)
【Event Preview on August 9】Prometheus Summit
软件测试面试题避雷(HR面试题)最常见的面试问题和技巧性答复
简单业务类
Chapter 12 Other Database Tuning Strategies [2. Index and Tuning] [MySQL Advanced]
winget package manager
.NET-7.WPF学习经验总结
DGIOT支持工业设备租赁以及远程管控