网络工程师-9-交换机原理及配置.ppt
《网络工程师-9-交换机原理及配置.ppt》由会员分享,可在线阅读,更多相关《网络工程师-9-交换机原理及配置.ppt(68页珍藏版)》请在三一办公上搜索。
1、Chapter 9交换机原理及配置,地址(MAC)学习转发/筛选环路避免,Switch 的三个功能,Switches 地址学习,初始 MAC 地址表为空学习源地址,MAC address table,0260.8c01.1111,0260.8c01.2222,0260.8c01.3333,0260.8c01.4444,E0,E1,E2,E3,A,B,C,D,Switches地址学习,Station A sends a frame to Station CSwitch caches station A MAC address to port E0 by learning the source a
2、ddress of data frames The frame from station A to station C is flooded out to all ports except port E0(unknown unicasts are flooded),MAC address table,0260.8c01.1111,0260.8c01.2222,0260.8c01.3333,0260.8c01.4444,E0,E1,E2,E3,D,C,B,A,Switches地址学习,Station D sends a frame to station CSwitch caches statio
3、n D MAC address to port E3 by learning the source Address of data framesThe frame from station D to station C is flooded out to all ports except port E3(unknown unicasts are flooded),MAC address table,0260.8c01.1111,0260.8c01.2222,0260.8c01.3333,0260.8c01.4444,E0,E1,E2,E3,D,C,A,B,Switches 转发/过滤,Stat
4、ion A sends a frame to station CDestination is known,frame is not flooded,0260.8c01.1111,0260.8c01.2222,0260.8c01.3333,0260.8c01.4444,E0,E1,E2,E3,X,X,D,C,A,B,MAC address table,Station D sends a broadcast or multicast frameBroadcast and multicast frames are flooded to all ports other than the origina
5、ting port,0260.8c01.1111,0260.8c01.2222,0260.8c01.3333,0260.8c01.4444,E0,E1,E2,E3,D,C,A,B,MAC address table,广播与多播Frame,冗余路径,冗余路径消除了单故障点冗余路径的不利后果:广播风暴,多个Frame副本,MAC地址表不稳定,Segment 1,Segment 2,Server/host X,Router Y,Segment 1,Segment 2,Server/host X,Router Y,Broadcast,Switch A,Switch B,Host X sends a B
6、roadcast,广播风暴,Segment 1,Segment 2,Server/host X,Router Y,Broadcast,Switch A,Switch B,Host X sends a Broadcast,广播风暴,Segment 1,Segment 2,Server/host X,Router Y,Broadcast,Switches continue to propagate broadcast traffic over and over,Switch A,Switch B,广播风暴,多个Frame副本,Segment 1,Segment 2,Server/host X,Ro
7、uter Y,Unicast,Switch A,Switch B,Host X sends an unicast frame to router YRouter Y MAC address has not been learned by either switch yet,Segment 1,Segment 2,Server/host X,Router Y,Switch A,Switch B,Host X sends an unicast frame to Router YRouter Y MAC Address has not been learned by either Switch ye
8、tRouter Y will receive two copies of the same frame,多个Frame副本,Segment 1,Segment 2,Server/host X,Router Y,Unicast,Unicast,Switch A,Switch B,Host X sends an unicast frame to Router YRouter Y MAC Address has not been learned by either Switch yetSwitch A and B learn Host X MAC address on port 0,Port 0,P
9、ort 1,Port 0,Port 1,多个Frame副本,Segment 1,Segment 2,Server/host X,Router Y,Unicast,Unicast,Switch A,Switch B,Host X sends an unicast frame to Router YRouter Y MAC Address has not been learned by either Switch yetSwitch A and B learn Host X MAC address on port 0Frame to Router Y is floodedSwitch A and
10、B incorrectly learn Host X MAC address on port 1,Port 0,Port 1,Port 0,Port 1,多个Frame副本,Complex topology can cause multiple loops to occurLayer 2 has no mechanism to stop the loop,Server/host,Workstations,Loop,Loop,Loop,多个环路问题,解决办法:Spanning-Tree Protocol,将一些Port置为Block状态,避免环路的产生,Block,x,One root brid
11、ge per networkOne root port per nonroot bridgeOne designated port per segment,x,Designated port(F),Root port(F),Designated port(F),Nondesignated port(B),Root bridge,Nonroot bridge,SW X,SW Y,100baseT,10baseT,生成树协议 STPSpanning-Tree Operations,Switch YDefault priority 32768(8000 hex)MAC 0c0022222222,Sw
12、itch XDefault priority 32768(8000 hex)MAC 0c0011111111,BPDU,BPDU=Bridge protocol data unit 桥协议数据单元(2 秒)Root bridge:bridge ID 最小的桥Non Root bridge:其它的桥Bridge ID=Bridge priority+bridge MAC address,生成树协议根桥选择,Switch YDefault priority 32768MAC 0c0022222222,Switch XDefault priority 32768 MAC 0c0011111111,R
13、oot bridge,x,Port 0,Port 1,Port 0,Port 1,100baseT,10baseT,Designated port(F),Root port(F),Nondesignated port(B),Designated port(F),生成树协议端口选择,非根桥root port:非根桥上到根桥cost最小的端口designated port:每一Segment上到根桥cost最小端口根桥的所有端口都是designated portnondesignated port:剩余的所有端口,生成树协议端口最终状态,最终状态根桥的所有端口:Forwarding非根桥root
14、port:Forwardingdesignated port:Forwardingnondesignated port:Blocking,注意:Blocking状态不能转发数据,但可收发BPDU消息,Link SpeedCost(reratify IEEE spec)Cost(previous IEEE spec)-10 Gbps 211 Gbps41100 Mbps191010 Mbps100100,生成树协议路径成本,Switch YMAC 0c0022222222Default priority 32768,Switch XMAC 0c0011111111Default priority
15、 32768,Port 0,Port 1,Port 0,Port 1,Switch ZMac 0c0011110000Default priority 32768,Port 0,Can you figure out:What is the root bridge?What are the designated,nondesignated,and root parts?Which are the forwarding and blocking ports?,100baseT,100baseT,生成树:实例,Switch YMAC 0c0022222222Default priority 3276
16、8,Switch XMAC 0c0011111111Default priority 32768,Port 0,Port 1,Port 0,Port 1,Switch ZMac 0c0011110000Default priority 32768,Port 0,Can you figure out:What is the root bridge?What are the designated,nondesignated,and root parts?Which are the forwarding and blocking ports?,100baseT,100baseT,Designated
17、 port(F),Root port(F),Nondesignated port(BLK),Designated port(F),Root port(F),生成树:实例,Spanning-tree transitions each port through several different state:,生成树协议端口状态变化,生成树协议重新计算,生成树协议重新计算,生成树协议汇聚,汇聚发生在 switches ports,当网络拓扑发生变化,switches 必须重新计算 生成树,这会暂时中断用户访问,blocking,forwarding,Verifying Spanning Tree,
18、wg_sw_a#show spantree vlan number,Verifying Spanning Tree,wg_sw_a#show spantree 1VLAN1 is executing the IEEE compatible Spanning Tree Protocol Configured hello time 2,max age 20,forward delay 15 Root port is FastEthernet 0/26,cost of root path is 10 Topology change flag not set,detected flag not set
19、 Topology changes 53,last topology change occured 0d00h17m14s ago Times:hold 1,topology change 8960 hello 2,max age 20,forward delay 15 Timers:hello 2,topology change 35,notification 2Port Ethernet 0/1 of VLAN1 is Forwarding Port path cost 100,Port priority 128 Designated port is Ethernet 0/1,path c
20、ost 10 Timers:message age 20,forward delay 15,hold 1,wg_sw_a#show spantree vlan number,基于软件实现只有一个生成树实例最多16Ports,Bridging,基于硬件实现(ASIC)多个生成数实例更多的Ports,LAN Switching,Bridging LAN Switching,Switch 转发数据Frame的方式,Cut-throughSwitch checks destination address and immediately begins forwarding frame,Frame,Swi
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 网络工程师 交换机 原理 配置

链接地址:https://www.31ppt.com/p-6335235.html