Upload
flizca
View
115
Download
0
Embed Size (px)
Citation preview
Sp
an
nin
g T
ree P
roto
col
SPANNING-TREE
1
Sp
an
nin
g T
ree P
roto
col
Redundancia
Redundancia = Rutas alternativasRedundancia = LoopsNo TTL en L2
Recordar : Switch aprenden la dirección de origen al entrar un frameSwitch envía una trama a todos los puertos si no tiene la
MAC en la tablaSwitch envía una trama a todos los puertos si es broadcast 2
Sp
an
nin
g T
ree
Pro
tocol
Rutas redundantes : Tormenta Broadcast & Unicast duplicado
Loop en el centro de cableado: 2 enlaces entre SwitchsLoop en cubiculos : hubs o Switch sin STP
Redundancia
3
Sp
an
nin
g T
ree
Pro
tocol
Usa STA = Bloque Puertos= Si falla camino activa alterno
Spanning Tree
TérminosRoot Bridge
Root Port
Designated Port
Non-Designated Ports
4
Sp
an
nin
g T
ree
Pro
tocol
BID = Switch Priority + VLAN + MAC-Address : Mas bajo mejor
Priority = 32769 = 4096*8 + 1 (vlan 1)
Una instancia STP por VLAN
Spanning Tree : Elección
BPDU : mensaje de intercambio de info STP ; cada 2 segundos Switch BID & Root BID
Al inicio todos los Switchs creen ser el Root Bridge
TIE-BREAK
RBID (Root Bridge ID)
Root Path Cost (RPC) (lowest)
BID of sending Switch (lowest) : Priority + MAC ADDRESS
PortID del Switch que envía (lowest) : PortID + Port Priority
5
Sp
an
nin
g T
ree
Pro
tocolSi se desea modificar la elección
spanning-tree vlan XXX root primary
spanning-tree vlan XXX root secondary
o
spanning-tree vlan XXX priority [multiplo de 4096]
Para cambiar port priority
spanning-tree port-priority [multiplo de 16]
Spanning Tree : Elección
6
Sp
an
nin
g T
ree
Pro
tocol
Spanning Tree : Mejor Camino
Mejor Camino
•Cada tipo enlace tiene su costo•PC = Path Cost es la suma de los costos del switch al RB•BPC = es el menor PC
Modificar el costo de un enlaceswitch(config)#interface fa0/1switch(config-if)#spanning-tree cost [value]switch(config-if)#end
7
Sp
an
nin
g T
ree
Pro
tocol
Spanning Tree : Port States & TimersPORT STATES
•Blocking: No envía datos; recibe BPDU
•Listening: Es un puerto activo y comienza su viaje a forwarding
•Learning: Recibe frames y genera MAC-ADDRESS Table
•Forwarding: Envía tramas de datos y BPDU
•Disabled : Shutdown
TIMERS
Hello : 2 segundos
Formarding : tiempo en Listening & Learning 15 segundos
Max AGE: Tiempo que un Sws Guarda la info de BPDU 20 Segundos
8
Sp
an
nin
g T
ree
Pro
tocol
Spanning Tree : Port FastPORT FAST
Solo en puertos de acceso
Si en puertos a Switch : Loop de spanning-tree
No pasa por estados de spanning-tree
Ayuda para DHCP
switch(config)#interface fa0/1switch(config-if)#spanning-tree portfastswitch(config-if)#end
9
Sp
an
nin
g T
ree P
roto
col
Switch#show spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 000C.8507.2E1E This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 000C.8507.2E1E Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
Interface Role Sts Cost Prio.Nbr Type---------------- ---- --- --------- -------- --------------------------------Fa0/1 Desg FWD 19 128.1 P2pFa0/2 Desg FWD 19 128.2 P2p
Spanning Tree : Port Fast
10
Sp
an
nin
g T
ree P
roto
col
Spanning Tree : SABORES
Per-VLAN Spanning Tree (PVST)Per-VLAN Spanning Tree (PVST)
Multiple Spanning Tree Protocol (MSTP)Multiple Spanning Tree Protocol (MSTP)
Rapid Per-VLAN Spanning Tree Plus (Rapid PVST+)Rapid Per-VLAN Spanning Tree Plus (Rapid PVST+)
Rapid Spanning Tree (RSTP) 802.1wRapid Spanning Tree (RSTP) 802.1w
Per-VLAN Spanning Tree Plus (PVST+)Per-VLAN Spanning Tree Plus (PVST+)
IEEE STANDARDIEEE STANDARD
CISCO PropietaryCISCO Propietary
11
Sp
an
nin
g T
ree P
roto
col
Spanning Tree : RSTPEdge Ports : puertos de acceso y no participan en STP
Link Type: derivado del duplex modePoint-to-Point: Conectado a UN dispositivo de redShared: mas de un switch
Cisco - PortfastCisco - Portfast
12
Sp
an
nin
g T
ree P
roto
col
Spanning Tree : RSTP
Backup PortsBackup Ports
13
Sp
an
nin
g T
ree P
roto
col
Spanning Tree: Rapid PVST – Configuration
14
Sp
an
nin
g T
ree P
roto
col
Spanning Tree : TIPS
15