当前位置: 首页 > news >正文

【CCNP ENCOR OCG】CHAPTER 2》Spanning Tree Protocol

目录

“Do I Know This Already?” Quiz

Foundation Topics

Spanning Tree Protocol Fundamentals

802.1D Port States

Spanning Tree Path Cost

Root Bridge Election

Locating Root Ports

Locating Blocked Designated Switch Ports

STP Topology Changes

Key Topics

802.1D port types

STP Key Terminology

Root Bridge Election

Locating Root Ports

STP Topology Changes

Rapid Spanning Tree Protocol

RSTP (802.1W) Port States

Building the RSTP Topology

Key Terms

configuration BPDU

hello time

Practice Test


白皮书主要涉及:802.1D

“Do I Know This Already?” Quiz

interface port cost value (original and new)
STP port states :

Foundation Topics

Spanning Tree Protocol Fundamentals

802.1D Port States

Six states: Disabled (administratively off, that is, shutdown)、Blocking-listening-learning-Forwarding、Broken

Spanning Tree Path Cost

Root Bridge Election

more preferable:bridge identifier is lower (BID: priority、MAC address), such as RID:
The priority in the configuration BPDU packets is actually the priority plus the value
of the sys-id-ext (which is the VLAN number). You can confirm this by looking at VLAN
10, which has a priority of 32,778, which is 10 higher than 32,768.

When a switch generates the BPDUs, the root path cost includes only the calculated metric
to the root and does not include the cost of the port that the BPDU is advertised out of. The
receiving switch adds the port cost for its interface on which the BPDU was received in con
junction with the value of the root path cost in the BPDU. The root path cost is always zero
on the root bridge. Figure 2-2 illustrates the root path cost as SW1 advertises the configura
tion BPDUs toward SW3 and then SW3’s configuration BPDUs toward SW5.

Locating Root Ports

1.path cost
2.system priority of the advertising switch
3.system MAC address of the advertising switch
4.port priority from the advertising switch
5. port number from the advertising switch

Locating Blocked Designated Switch Ports

0.a designated port and must not be considered an RP
1.path cost
2.system priority of the local switch
3.system MAC address of the local switch
The command show spanning-tree [vlan vlan-id] provides useful information for locating a 
 port’s STP state. contains "root bridge’s information" and "local bridge’s information".
These port types are expected on Catalyst switches:
Point-to-point (P2P): This port type connects with another network device (PC or
RSTP switch).
P2P edge: This port type specifies that portfast is enabled on this port.
All the interfaces that participate in a VLAN are listed in the output of the command show
spanning-tree Using this command can be a daunting task for trunk ports that carry mul tiple VLANs. The output includes the STP state for every VLAN on an interface for every switch interface.The command show spanning-tree interface interface-id [detail] drastically reduces the output to the STP state for only the specified interface.

STP Topology Changes

In a stable Layer 2 topology, configuration BPDUs always flow from the root bridge toward 
 the edge switches.

The switch that detects a link status change sends a topology change notification (TCN) 
 BPDU toward the root bridge, out its RP.

Upon receipt of the TCN, the root bridge creates a new configuration BPDU with the Topol ogy Change flag set, and it is then flooded to all the switches.When a switch receives a con figuration BPDU with the Topology Change flag set, all switches change their MAC address 
 timer to the forwarding delay timer (with a default of 15 seconds). This flushes out MAC 
 addresses for devices that have not communicated in that 15-second window but maintains 
 MAC addresses for devices that are actively communicating.

The MAC address timer is then reset to normal (300 seconds by default) after the second configuration BPDU is received.

Topology changes are seen with the command show spanning-tree [vlan vlan-id] detail on a 
 switch bridge.

Key Topics

802.1D port types

RP、DP、Blocking ports. W hich kind of devices  RP and DP respectively connective to?
root bridge or an upstream switch;  downstream devices and switches

STP Key Terminology

Respective function of two types of BPDUs
Configuration BPDU for root bridge and port roles eleciton; TCN BPDU for topology changes communication.

Root Bridge Election

Criterion、show command、the priority vlalue in the configuration BPDU、calculation of the root path cost
Lowest: 1.Priority、2.MAC
show spanning-tree root
Priority + sys-id-ext (vlan)
port cost ( of interface which BPDU was received) + root path cost (in the BPDU, The root path cost is always zero)

Locating Root Ports

Criterion
Lowest: 1.path cost、2.priority、3.MAC (4.port priority、5.port number, when multiple linkes exist)

STP Topology Changes

1.TCN BPDU and configuration BPDU's sender and receiver
TCN BPDU is sent from the switch that detects a link status change to root bridge (so root bridge doesn't need to send TCN; Configuration BPDU with the Topology Change flag set is sent from root bridge to all switches.
2.What action it will do when switch receive the 2nd BPDU above?
Change MAC address timer to the forwarding delay timer
3.Show command that can see the topology change information, and 3 key infor
show spanning-tree [ vlan vlan-id] detail
topology change count、time since the last change has occurred、 interface from which the TCN originated.
Note: Blocking port can receive BPDUs.
4.convergence time of 3 direct link failure scenario (link failure between S2-S3/S1-S3/S1-S2) and 1 indirect link failure scenario (link between S1-S3)
indirect link failure scenario (link between S1-S3)
?/30s/50s/50s
Note: it's related to the port state (up/down, interface on the link with problem) whether wait the Max Age timer or not 

Rapid Spanning Tree Protocol

PVST and PVST+ were proprietary spanning protocols

RSTP (802.1W) Port States

RSTP reduces the number of port states to three: discarding/learning/forwarding (discarding combine disabled, blocking, and listening in STP port states)

Building the RSTP Topology

what action they will do when switches first connect in environment with only two switches and larger environment respectively?
1. establish a bidirec tional handshake across the shared link to identify the root bridge
2. uses a synchronization process to add a switch  to the RSTP topology

Key Terms

configuration BPDU

The BPDU that is responsible for switches electing a root bridge and communicating the root path cost so that a hierarchy can be built.

hello time

The time interval for which a BPDU is advertised out of a port.

Practice Test

Which of the following best describe the BPDUs used in 802.1D?

  1. There are two types of BPDUs.

  2. 802.1D and 802.1W use the same BPDU format.

  3. BPDUs are sent at each 2-second hello interval, even if no BPDU is received on the root port.

  4. Configuration BPDUs identify the root bridge.

Select 2 answers

Explanation:(14)

802.1D defines two BPDU types, the configuration BPDU and the topology change notification (TCN) BPDU. Several important fields are included in configuration BPDUs, including the root bridge identifier, timers, and cost to the root. 802.1D bridges only forward BPDUs from the root port, where 802.1W bridges generate a BPDU at each hello interval.

2.RSTP对BPDU格式进行了少量更改。 802.1D中只定义了两个标志:拓扑更改(TC)和TC确认(TCA)。但是,RSTP会使用剩余的六个标志位元组位来执行:

  • 对产生BPDU的连线埠的角色和状态进行编码

  • 处理建议/协定机制

3.非根交换机转发来自根的 Hello;根根据根配置的 Hello 计时器发送这些 Hello。只有 Root 创建这些 BPDU。此外,在 STP 中,只有指定端口才会发送 BPDU。在RSTP中,所有端口都会发送它们

相关文章:

【CCNP ENCOR OCG】CHAPTER 2》Spanning Tree Protocol

目录 “Do I Know This Already?” Quiz Foundation Topics Spanning Tree Protocol Fundamentals 802.1D Port States Spanning Tree Path Cost Root Bridge Election Locating Root Ports Locating Blocked Designated Switch Ports Verification of VLANs on Trun…...

docker无法映射/挂载根目录

docker无法映射(挂载)根目录下的文件夹只能映射家目录 最近想要使用nas-tools做做刮削,电影存在一个机械磁盘里,机械磁盘被挂载到/data1下,发现一个很奇怪的问题,docker只能挂载成功home目录下的文件夹&am…...

C++中不要重新定义继承而来的non-virtual函数

在 C 中,重定义继承而来的 non-virtual(非虚)函数通常是不推荐的,原因如下: 隐藏父类的实现:如果在派生类中重定义了一个非虚函数,这将隐藏父类中具有相同名称和参数的函数。这意味着即使通过基…...

C++ 对象型参数和返回值

对象型参数和返回值 1.对象型类型作为函数的参数2.对象型参数作为函数的返回值 1.对象型类型作为函数的参数 使用对象类型作为函数的参数或者返回值,可能会产生一些不必要的中间对象 例子: // 使用对象类型作为函数的参数 void test1(Car car) {}完整代…...

LeetCode 字符串专题——KMP算法_28. 找出字符串中第一个匹配项的下标

字符串专题——KMP算法 KMP算法例题 KMP算法 待更新 例题 https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ class Solution {vector<int> next;void getNext(string s){int j-1;next[0]-1;int lens.size();for(int i…...

上班不想用脑子写代码了怎么办?那就试试Baidu Comate啊宝贝

本文目录 前言1、视频编程实战1.1、熟悉代码库中的代码1.2、参考现有代码编写新代码 2、下载使用教程3、使用体验3.1、AutoWork 产品测评3.2、解决有关ajax请求后重定向问题3.3、询问编程相关知识3.3.1、cookie和session的区别与联系3.3.2、数据库中主键外键的相关知识 4、问题…...

【管理咨询宝藏94】某国际咨询公司供应链财务数字化转型方案

本报告首发于公号“管理咨询宝藏”&#xff0c;如需阅读完整版报告内容&#xff0c;请查阅公号“管理咨询宝藏”。 【管理咨询宝藏94】某国际咨询公司供应链&财务数字化转型方案 【格式】PDF版本 【关键词】国际咨询公司、制造型企业转型、数字化转型 【核心观点】 - 172…...

C++_使用邻接表(链表-指针)实现有向图[完整示例及解释]

这个程序是一个图的实现&#xff0c;使用邻接表来表示图的结构&#xff1a; 1. 结构定义部分&#xff1a; - AdjListNode 结构定义了邻接表中的节点&#xff0c;每个节点包含一个名称和一个指向下一个邻接节点的指针。 - Node 结构定义了图中的节点&#xff0c;每个节点…...

Gitlab自动化测试的配置

1. 代码分支命名规范检测 Setting → Repository → Push rules → Branch name&#xff0c;添加分支命名规范对应的正则表达式。如&#xff1a; ^(Release|Tag|Develop|Feature)_._.|Main$ 表示分支名只能以以下关键字之一开头&#xff1a;Release、Tag、Develop和Feature。 …...

Qwen-Audio:推动通用音频理解的统一大规模音频-语言模型(开源)

随着人工智能技术的不断进步&#xff0c;音频语言模型&#xff08;Audio-Language Models&#xff09;在人机交互领域变得越来越重要。然而&#xff0c;由于缺乏能够处理多样化音频类型和任务的预训练模型&#xff0c;该领域的进展受到了限制。为了克服这一挑战&#xff0c;研究…...

杭州破冰之举:全面取消住房限购,激发市场新活力

在房地产市场调控的浪潮中,杭州再次走在了前列,于2024年3月14日宣布全面取消二手房限购政策,此举在行业内引发了广泛关注。作为中国经济活力较强的二线城市之一,杭州的这一决策不仅体现了地方政府在房地产市场调控上的灵活应变,也释放出对市场流动性和经济发展的积极信号。…...

ICode国际青少年编程竞赛- Python-1级训练场-变量练习

ICode国际青少年编程竞赛- Python-1级训练场-变量练习 1、 a 8 for i in range(8):Dev.step(a)Dev.turnRight()a - 12、 a 3 for i in range(4):Dev.step(a)Dev.turnRight()a a 1 Dev.step(5)3、 a 4 for i in range(4):Dev.step(2)Dev.step(-5)Dev.step(3)Spaceship.…...

学习STM32第二十天

低功耗编程 一、修改主频 STM32F4xx系列主频为168MHz&#xff0c;当板载8MHz晶振时&#xff0c;系统时钟HCLK满足公式 H C L K H S E P L L N P L L M P L L P HCLK \frac{HSE \times PLLN}{PLLM \times PLLP} HCLKPLLMPLLPHSEPLLN​&#xff0c;在文件stm32f4xx.h中可修…...

智能BI(后端)-- 系统异步化

文章目录 系统问题分析什么是异步化&#xff1f;业务流程分析标准异步化的业务流程系统业务流程 线程池为什么需要线程池&#xff1f;线程池两种实现方式线程池的参数线程池的开发 项目异步化改造 系统问题分析 问题场景&#xff1a;调用的服务能力有限&#xff0c;或者接口的…...

AI绘画Stable Diffusion 插件篇:智能标签提示词插件sd-danbooru-tags-upsampler

大家好&#xff0c;我是向阳。 关于智能标签提示词插件&#xff0c;在很早之前就介绍过很多款了&#xff0c;今天再给大家介绍一款智能标签提示词插件sd-danbooru-tags-upsampler。该智能提示词插件是今年2月23号才发布的第一版V0.1.0&#xff0c;算是比较新的智能提示词插件。…...

Android OpenMAX(六)OMXStore

在前面两节的学习中我们知道了OMX Core是用来管理(查询/创建/销毁)Android平台上的硬件编解码组件的。这一节我们再向上一层,Android平台除了提供有硬件编解码组件支持,还内置了一些软件编解码组件,为了统一管理所有(软/硬)编解码组件,Android在OMX Core之上又抽象了一…...

Ubuntu下halcon软件的下载安装

由于工作需求&#xff0c;点云配准需要使用halcon进行实现&#xff0c;并且将该功能放入QT界面中 1.下载halcon 进入halcon官网进行下载 官网链接&#xff1a;https://www.mvtec.com/products/halcon/ 注意&#xff1a;要注册登陆之后才能进行下载 接着点击Downloads->H…...

『ZJUBCA Collaboration』WTF Academy 赞助支持

非常荣幸宣布&#xff0c;浙江大学区块链协会收到WTF Academy的赞助与支持&#xff0c;未来将共同开展更多深度合作。 WTF Academy是开发者的Web3开源大学&#xff0c;旨在通过开源教育让100,000名开发者进入到Web3。截止目前&#xff0c;WTF开源教程在GitHub收获超15,000 ⭐&a…...

Python开源工具库使用之运动姿势追踪库mediapipe

文章目录 前言一、姿势估计1.1 姿态关键点1.2 旧版 solution API1.3 新版 solution API1.4 俯卧撑计数 二、手部追踪2.1 手部姿态2.2 API 使用2.3 识别手势含义 参考 前言 Mediapipe 是谷歌出品的一种开源框架&#xff0c;旨在为开发者提供一种简单而强大的工具&#xff0c;用…...

【Android Studio】开启真机调试

1 打开手机的开发者模式 各种款式的手机进入开发者模式的情况不同&#xff0c;但大致是在 【关于手机】中多次点击系统版本即可进入。这里以小米8为例&#xff0c;记录下流程。 1.1 进入手机开发者模式 【设置】->【我的设备】->【全部参数】->【MIUI版本】连续点击3…...

未来机器人的大脑:如何用神经网络模拟器实现更智能的决策?

编辑&#xff1a;陈萍萍的公主一点人工一点智能 未来机器人的大脑&#xff1a;如何用神经网络模拟器实现更智能的决策&#xff1f;RWM通过双自回归机制有效解决了复合误差、部分可观测性和随机动力学等关键挑战&#xff0c;在不依赖领域特定归纳偏见的条件下实现了卓越的预测准…...

变量 varablie 声明- Rust 变量 let mut 声明与 C/C++ 变量声明对比分析

一、变量声明设计&#xff1a;let 与 mut 的哲学解析 Rust 采用 let 声明变量并通过 mut 显式标记可变性&#xff0c;这种设计体现了语言的核心哲学。以下是深度解析&#xff1a; 1.1 设计理念剖析 安全优先原则&#xff1a;默认不可变强制开发者明确声明意图 let x 5; …...

label-studio的使用教程(导入本地路径)

文章目录 1. 准备环境2. 脚本启动2.1 Windows2.2 Linux 3. 安装label-studio机器学习后端3.1 pip安装(推荐)3.2 GitHub仓库安装 4. 后端配置4.1 yolo环境4.2 引入后端模型4.3 修改脚本4.4 启动后端 5. 标注工程5.1 创建工程5.2 配置图片路径5.3 配置工程类型标签5.4 配置模型5.…...

golang循环变量捕获问题​​

在 Go 语言中&#xff0c;当在循环中启动协程&#xff08;goroutine&#xff09;时&#xff0c;如果在协程闭包中直接引用循环变量&#xff0c;可能会遇到一个常见的陷阱 - ​​循环变量捕获问题​​。让我详细解释一下&#xff1a; 问题背景 看这个代码片段&#xff1a; fo…...

渲染学进阶内容——模型

最近在写模组的时候发现渲染器里面离不开模型的定义,在渲染的第二篇文章中简单的讲解了一下关于模型部分的内容,其实不管是方块还是方块实体,都离不开模型的内容 🧱 一、CubeListBuilder 功能解析 CubeListBuilder 是 Minecraft Java 版模型系统的核心构建器,用于动态创…...

DIY|Mac 搭建 ESP-IDF 开发环境及编译小智 AI

前一阵子在百度 AI 开发者大会上&#xff0c;看到基于小智 AI DIY 玩具的演示&#xff0c;感觉有点意思&#xff0c;想着自己也来试试。 如果只是想烧录现成的固件&#xff0c;乐鑫官方除了提供了 Windows 版本的 Flash 下载工具 之外&#xff0c;还提供了基于网页版的 ESP LA…...

C# 类和继承(抽象类)

抽象类 抽象类是指设计为被继承的类。抽象类只能被用作其他类的基类。 不能创建抽象类的实例。抽象类使用abstract修饰符声明。 抽象类可以包含抽象成员或普通的非抽象成员。抽象类的成员可以是抽象成员和普通带 实现的成员的任意组合。抽象类自己可以派生自另一个抽象类。例…...

服务器--宝塔命令

一、宝塔面板安装命令 ⚠️ 必须使用 root 用户 或 sudo 权限执行&#xff01; sudo su - 1. CentOS 系统&#xff1a; yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh2. Ubuntu / Debian 系统…...

站群服务器的应用场景都有哪些?

站群服务器主要是为了多个网站的托管和管理所设计的&#xff0c;可以通过集中管理和高效资源的分配&#xff0c;来支持多个独立的网站同时运行&#xff0c;让每一个网站都可以分配到独立的IP地址&#xff0c;避免出现IP关联的风险&#xff0c;用户还可以通过控制面板进行管理功…...

C++ 设计模式 《小明的奶茶加料风波》

&#x1f468;‍&#x1f393; 模式名称&#xff1a;装饰器模式&#xff08;Decorator Pattern&#xff09; &#x1f466; 小明最近上线了校园奶茶配送功能&#xff0c;业务火爆&#xff0c;大家都在加料&#xff1a; 有的同学要加波霸 &#x1f7e4;&#xff0c;有的要加椰果…...