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

CMakeLists.txt语法规则:部分常用命令说明四

一. 简介 前面几篇文章学习了CMakeLists.txt语法中前面几篇文章学习了CMakeLists.txt语法中部分常用命令。文章如下&#xff1a; CMakeLists.txt语法规则&#xff1a;部分常用命令说明一-CSDN博客 CMakeLists.txt语法规则&#xff1a;部分常用命令说明二-CSDN博客 CMakeLi…...

学习前端第三十二天(Rest 参数与 Spread 语法,变量作用域,闭包)

一、Rest 参数与 Spread 语法 1.rest参数 ...变量名&#xff1a;收集剩余的参数并存进指定数组中&#xff0c;需要放到最后&#xff1b; 2.arguments变量 // arguments,以参数在参数列表中的索引作为键&#xff0c;存储所有参数,以类数组对象的形式输出所有函数参数 // 箭头…...

mysql从入门到起飞+面试基础题

mysql基础 MySQL基础 企业面试题1 代码 select m.id,m.num from ( select t.id as id,count(1) num from ( select ra.requester_id as id from RequestAccepted raunion all select ra.accepter_id as id from RequestAccepted ra ) t group by t.id ) m group by id ord…...

设计模式:命令模式

文章目录 一、什么是命令模式二、命令模式结构三、命令模式实现步骤四、命令模式应用场景 一、什么是命令模式 它允许将请求封装为对象&#xff0c;一个请求对应于一个命令&#xff0c;将发出命令的责任和执行命令的责任分割开。每一个命令都是一个操作&#xff1a;请求的一方…...

setinterval和settimeout区别在于

setinterval和settimeout区别在于 执行次数和执行频率 setInterval和setTimeout的主要区别在于执行次数和执行频率。以下是详细介绍&#xff1a;12 setTimeout是一次性的定时器&#xff0c;它在设定的延迟时间之后执行一次函数&#xff0c;然后停止。setInterval是重复性的定…...

shell_结束进程脚本

结束进程的shell脚本如下&#xff1a; #!/bin/bash# kill all process ps aux|grep "local" | grep -v grep | awk {print $2} | while read line; do kill -9 $line; done 解析&#xff1a; ps aux 命令常用于查看当前系统中运行的进程&#xff0c;以及它们所占用…...

GDPU unity游戏开发 碰撞器与触发器

砰砰叫&#xff0c;谁动了她的奶酪让你的小鹿乱撞了。基于此&#xff0c;亦即碰撞与触发的过程。 碰撞器与触发器的区别 通俗点讲&#xff0c;碰撞器检测碰撞&#xff0c;触发器检测触发&#xff0c;讲了跟没讲似的。碰撞器是用来检测碰撞事件的&#xff0c;在unity中&#xff…...

IP地址定位技术在网络安全中的作用

在当今数字化时代&#xff0c;网络安全已经成为企业、政府和个人面临的重要挑战之一。随着互联网的普及和网络攻击的增加&#xff0c;保护个人隐私和防止网络犯罪变得尤为重要。在这一背景下&#xff0c;IP地址定位技术作为网络安全的重要组成部分之一&#xff0c;发挥着关键作…...

R语言中,查看经安装的包,查看已经加载的包,查看特定包是否已经安装,安装包,更新包,卸载包

创建于&#xff1a;2024.5.4 R语言中&#xff0c;查看经安装的包&#xff0c;查看已经加载的包&#xff0c;查看特定包是否已经安装&#xff0c;安装包&#xff0c;更新包&#xff0c;卸载包 文章目录 1. 查看经安装的包2. 查看已经加载的包3. 查看特定包是否已经安装4. 安装包…...

spring boot3单模块项目工程搭建-下(个人开发模板)

⛰️个人主页: 蒾酒 &#x1f525;系列专栏&#xff1a;《spring boot实战》 目录 写在前面 上文衔接 常用依赖介绍以及整合 web组件 测试组件 样板代码生成 数据库连接器 常用工具包 面向切面编程 ORM框架 数据连接池 接口测试、文档导出 缓存中间件 参数校…...

手机软件开发者/优化大师软件下载

很多情况下&#xff0c;我们需要得到该系统的版本号可以运行该文件数。为了做一些额外的动作&#xff01;实际上可使用jna获得&#xff0c;是这将依赖人家&#xff0c;所以还是Java自己来吧&#xff01;好啦。直接上代码吧/*** Description: ** Title: FileInfoUtil.java* Pack…...

做微网站用哪个平台/seo免费优化网站

2019独角兽企业重金招聘Python工程师标准>>> 考虑提供一种网络功能, 教师在自己机器上面画图, 能够显示给学生; 或获取学生的图形, 并在其 基础上修改绘制, 学生能看到画图过程. 设学生机器为S, 教师机器为T, 服务器为V. 一般思路: S,T 通过服务器V连接, 通过V传输…...

phpcms 怎么做视频网站首页/微信软文范例100字

抱歉,这个问题太幼稚了,但对于我在该主题上的经历也是如此.从谷歌搜索我所了解的内容,我只是想确认该理解是正确的.欢迎大家查明我错了.> OCI基本上是一组API,供C/C程序员用来编写C/C应用程序访问Oracle数据库.> a)Oracle Instant Client SDK是使用OCI(???)的(DLL /共…...

企业品牌logo设计/关键词优化公司前十排名

React中为什么要使用bind&#xff1f; 函数传参 比如在一个组件中&#xff0c;有一个点击事件&#xff0c;当点击时触发一个方法&#xff0c;onClick{ this.fun }&#xff0c;能达到我们的目的&#xff0c;触发了方法&#xff0c;执行了函数里的代码&#xff0c;但是有一个问…...

网站开发怎么学/海阳seo排名优化培训

CSDN、51cto、ITeye、Java学习者论坛这几个网站目前是我觉得还不错的&#xff0c;都有丰富的资料和一些问题解答&#xff0c;都是很方便的哦今天主要介绍一个论坛先&#xff0c;后续会一一介绍其他的网站&#xff01;Java学习者论坛&#xff0c;最方便的学习社区&#xff0c;它…...

交互式网站的发展/优化大师下载

一、本节课教学内容的本质、地位、作用分析分类加法计数原理与分步乘法计数原理是人类在大量的实践经验的基础上归纳出的基本规律&#xff0c;它们不仅是推导排列数、组合数计算公式的依据&#xff0c;而且其基本思想方法也贯穿在解决本章应用问题的始终&#xff0c;在本章中是…...