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

AI-调查研究-01-正念冥想有用吗?对健康的影响及科学指南

点一下关注吧&#xff01;&#xff01;&#xff01;非常感谢&#xff01;&#xff01;持续更新&#xff01;&#xff01;&#xff01; &#x1f680; AI篇持续更新中&#xff01;&#xff08;长期更新&#xff09; 目前2025年06月05日更新到&#xff1a; AI炼丹日志-28 - Aud…...

Golang 面试经典题:map 的 key 可以是什么类型?哪些不可以?

Golang 面试经典题&#xff1a;map 的 key 可以是什么类型&#xff1f;哪些不可以&#xff1f; 在 Golang 的面试中&#xff0c;map 类型的使用是一个常见的考点&#xff0c;其中对 key 类型的合法性 是一道常被提及的基础却很容易被忽视的问题。本文将带你深入理解 Golang 中…...

遍历 Map 类型集合的方法汇总

1 方法一 先用方法 keySet() 获取集合中的所有键。再通过 gey(key) 方法用对应键获取值 import java.util.HashMap; import java.util.Set;public class Test {public static void main(String[] args) {HashMap hashMap new HashMap();hashMap.put("语文",99);has…...

Opencv中的addweighted函数

一.addweighted函数作用 addweighted&#xff08;&#xff09;是OpenCV库中用于图像处理的函数&#xff0c;主要功能是将两个输入图像&#xff08;尺寸和类型相同&#xff09;按照指定的权重进行加权叠加&#xff08;图像融合&#xff09;&#xff0c;并添加一个标量值&#x…...

大语言模型如何处理长文本?常用文本分割技术详解

为什么需要文本分割? 引言:为什么需要文本分割?一、基础文本分割方法1. 按段落分割(Paragraph Splitting)2. 按句子分割(Sentence Splitting)二、高级文本分割策略3. 重叠分割(Sliding Window)4. 递归分割(Recursive Splitting)三、生产级工具推荐5. 使用LangChain的…...

Keil 中设置 STM32 Flash 和 RAM 地址详解

文章目录 Keil 中设置 STM32 Flash 和 RAM 地址详解一、Flash 和 RAM 配置界面(Target 选项卡)1. IROM1(用于配置 Flash)2. IRAM1(用于配置 RAM)二、链接器设置界面(Linker 选项卡)1. 勾选“Use Memory Layout from Target Dialog”2. 查看链接器参数(如果没有勾选上面…...

Cloudflare 从 Nginx 到 Pingora:性能、效率与安全的全面升级

在互联网的快速发展中&#xff0c;高性能、高效率和高安全性的网络服务成为了各大互联网基础设施提供商的核心追求。Cloudflare 作为全球领先的互联网安全和基础设施公司&#xff0c;近期做出了一个重大技术决策&#xff1a;弃用长期使用的 Nginx&#xff0c;转而采用其内部开发…...

【论文阅读28】-CNN-BiLSTM-Attention-(2024)

本文把滑坡位移序列拆开、筛优质因子&#xff0c;再用 CNN-BiLSTM-Attention 来动态预测每个子序列&#xff0c;最后重构出总位移&#xff0c;预测效果超越传统模型。 文章目录 1 引言2 方法2.1 位移时间序列加性模型2.2 变分模态分解 (VMD) 具体步骤2.3.1 样本熵&#xff08;S…...

Python 包管理器 uv 介绍

Python 包管理器 uv 全面介绍 uv 是由 Astral&#xff08;热门工具 Ruff 的开发者&#xff09;推出的下一代高性能 Python 包管理器和构建工具&#xff0c;用 Rust 编写。它旨在解决传统工具&#xff08;如 pip、virtualenv、pip-tools&#xff09;的性能瓶颈&#xff0c;同时…...

离线语音识别方案分析

随着人工智能技术的不断发展&#xff0c;语音识别技术也得到了广泛的应用&#xff0c;从智能家居到车载系统&#xff0c;语音识别正在改变我们与设备的交互方式。尤其是离线语音识别&#xff0c;由于其在没有网络连接的情况下仍然能提供稳定、准确的语音处理能力&#xff0c;广…...