当前位置:网站首页>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 costModify interface priority
[SW1-GigabitEthernet0/0/1]stp port priority ?INTEGER<0-240> Port priority, in steps of 16The 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 ageSTP 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.
边栏推荐
- 浅谈C语言实现冒泡排序
- 简单业务类
- IDLE development wordCount program (5)
- oracle业务表的数据发生增删改,该表的索引会写redo,undo吗?
- Everyone, the default configuration of oracle cdc occasionally takes 30 seconds to capture data. How to optimize this?
- Based on STC8G2K64S4 single-chip microcomputer to display analog photosensitive analog value through OLED screen
- Rust学习:6.1_复合类型之切片
- 幂函数 指数函数 对数函数
- PHP笔记 28 29 30 31
- 第2章 变量和基本类型读书笔记
猜你喜欢

调试ZYNQ的u-boot 2017.3 不能正常启动,记录调试过程

二叉树 --- 堆

【转】探秘钉钉的即时消息服务DTIM

What is an MQTT gateway?What is the difference with traditional DTU?

添加spark的相关依赖和打包插件(第六弹)

Deep understanding of the array
![Chapter 11 Database Design Specifications [2. Index and Tuning] [MySQL Advanced]](/img/a5/88699cf7b7fc0ca721977dc07b0602.png)
Chapter 11 Database Design Specifications [2. Index and Tuning] [MySQL Advanced]

Uni-app开发微信小程序使用本地图片做背景图

自动化测试框架搭建 ---- 标记性能较差用例

Rust学习:6.3_复合类型之元组
随机推荐
大佬,oracle单表增量同步时候源库服务器额外占用内存近2g,这不正常吧
DGIOT 30 million meters set pressure reading
软件测试面试题避雷(HR面试题)最常见的面试问题和技巧性答复
CuteOneP is a PHP-based OneDrive multi-network disk mount program with member synchronization and other functions
The probability distribution and its application
快速输入当前日期与时间
VMware ESX Server常用命令行
Quickly enter the current date and time
delta method 介绍
占位占位1
英国国家卫生服务遭受攻击,系统出现大面积故障
杭州公积金修改手机号信息
MySQL database monthly growth problem
自动化测试框架Pytest(三)——自定义allure测试报告
Rust学习:6.4_复合类型之枚举
ctfshow SSTI 知识点总结
Power function Exponential function Logarithmic function
mysql数据库月增长量问题
全连接神经网络结构图,神经网络示意图怎么画
关于数据库中的中文模糊检索探讨