当前位置: 首页 > 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…...

vscode里如何用git

打开vs终端执行如下&#xff1a; 1 初始化 Git 仓库&#xff08;如果尚未初始化&#xff09; git init 2 添加文件到 Git 仓库 git add . 3 使用 git commit 命令来提交你的更改。确保在提交时加上一个有用的消息。 git commit -m "备注信息" 4 …...

工业安全零事故的智能守护者:一体化AI智能安防平台

前言&#xff1a; 通过AI视觉技术&#xff0c;为船厂提供全面的安全监控解决方案&#xff0c;涵盖交通违规检测、起重机轨道安全、非法入侵检测、盗窃防范、安全规范执行监控等多个方面&#xff0c;能够实现对应负责人反馈机制&#xff0c;并最终实现数据的统计报表。提升船厂…...

最新SpringBoot+SpringCloud+Nacos微服务框架分享

文章目录 前言一、服务规划二、架构核心1.cloud的pom2.gateway的异常handler3.gateway的filter4、admin的pom5、admin的登录核心 三、code-helper分享总结 前言 最近有个活蛮赶的&#xff0c;根据Excel列的需求预估的工时直接打骨折&#xff0c;不要问我为什么&#xff0c;主要…...

Python基于历史模拟方法实现投资组合风险管理的VaR与ES模型项目实战

说明&#xff1a;这是一个机器学习实战项目&#xff08;附带数据代码文档&#xff09;&#xff0c;如需数据代码文档可以直接到文章最后关注获取。 1.项目背景 在金融市场日益复杂和波动加剧的背景下&#xff0c;风险管理成为金融机构和个人投资者关注的核心议题之一。VaR&…...

Java数值运算常见陷阱与规避方法

整数除法中的舍入问题 问题现象 当开发者预期进行浮点除法却误用整数除法时,会出现小数部分被截断的情况。典型错误模式如下: void process(int value) {double half = value / 2; // 整数除法导致截断// 使用half变量 }此时...

Chromium 136 编译指南 Windows篇:depot_tools 配置与源码获取(二)

引言 工欲善其事&#xff0c;必先利其器。在完成了 Visual Studio 2022 和 Windows SDK 的安装后&#xff0c;我们即将接触到 Chromium 开发生态中最核心的工具——depot_tools。这个由 Google 精心打造的工具集&#xff0c;就像是连接开发者与 Chromium 庞大代码库的智能桥梁…...

从面试角度回答Android中ContentProvider启动原理

Android中ContentProvider原理的面试角度解析&#xff0c;分为​​已启动​​和​​未启动​​两种场景&#xff1a; 一、ContentProvider已启动的情况 1. ​​核心流程​​ ​​触发条件​​&#xff1a;当其他组件&#xff08;如Activity、Service&#xff09;通过ContentR…...

libfmt: 现代C++的格式化工具库介绍与酷炫功能

libfmt: 现代C的格式化工具库介绍与酷炫功能 libfmt 是一个开源的C格式化库&#xff0c;提供了高效、安全的文本格式化功能&#xff0c;是C20中引入的std::format的基础实现。它比传统的printf和iostream更安全、更灵活、性能更好。 基本介绍 主要特点 类型安全&#xff1a…...

Linux部署私有文件管理系统MinIO

最近需要用到一个文件管理服务&#xff0c;但是又不想花钱&#xff0c;所以就想着自己搭建一个&#xff0c;刚好我们用的一个开源框架已经集成了MinIO&#xff0c;所以就选了这个 我这边对文件服务性能要求不是太高&#xff0c;单机版就可以 安装非常简单&#xff0c;几个命令就…...

redis和redission的区别

Redis 和 Redisson 是两个密切相关但又本质不同的技术&#xff0c;它们扮演着完全不同的角色&#xff1a; Redis: 内存数据库/数据结构存储 本质&#xff1a; 它是一个开源的、高性能的、基于内存的 键值存储数据库。它也可以将数据持久化到磁盘。 核心功能&#xff1a; 提供丰…...