Professional Documents
Culture Documents
Section 14 - 2
Section 14 - 2
الرحمن العلوش
www.everestacademy.in 1
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
www.everestacademy.in 2
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ Spanning Tree Protocol (STP) is a Layer 2 protocol that runs on bridges and switches.
❖ Spanning Tree Protocol (STP) uses Spanning-Tree Algorithm (STA) to search for the redundant links between bridges and switches.
❖ Spanning Tree Protocol (STP) automatically disables the ports of the redundant links, thus preventing possible network loops.
❖ Using redundant links without enabling spanning tree protocol causes three problems on switched networks:
1. Broadcast storms : The forwarding of a frame repeatedly on the same links, consuming significant parts of the links’ capacities.
2. Multiple frame transmission: sending multiple copies of one frame to the intended host.
3. MAC table instability: updating the MAC Address Table with a new entries in reaction to looping frames.
www.everestacademy.in 3
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
A
Loop
B
www.everestacademy.in 4
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
MSTP
RPVST+
PVST+
RSTP
STP
www.everestacademy.in 5
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ In 1990, the IEEE published the first standard of the spanning tree IEEE 802.1D is called Common Spanning Tree (CST), it creates one
protocol (STP) as 802.1D. spanning-tree instance for the entire network.
❖ Per-VLAN Spanning Tree (PVST+) is a Cisco enhancement of STP that provides a separate 802.1D spanning-tree instance for each VLAN
configured in the network.
❖ In 2001, the IEEE introduced Rapid Spanning Tree Protocol (RSTP) RSTP provides significantly faster spanning tree convergence after a
as 802.1w. topology change and it is backwards-compatible with standard STP.
❖ Rapid Per-VLAN Spanning Tree (Rapid PVST+) is a Cisco enhancement of RSTP that uses PVST+ and provides a separate instance of 802.1w
for each VLAN..
❖ In 2002, the IEEE introduced Multiple Spanning Tree Protocol (MSTP) as 802.1s, That allows multiple VLANs to be managed by a single STP instance and
supports per-VLAN STP.
❖ In 2004, the IEEE integrated RSTP into 802.1D and obsoleted the original STP standard.
www.everestacademy.in 6
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Name Based on STP or RSTP? # Trees Original IEEE Standard Configuration Command
www.everestacademy.in 7
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Bridge ID (BID)
❖ Bridge ID or BID is an 8-byte field which is divided into two parts. The first part is a 2-byte Bridge Priority field while the
second part is the 6-byte burned-in MAC address of the switch.
8 Bytes
8 Bytes
www.everestacademy.in 8
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
8 Bytes
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
VLAN ID = 1
➢ Bridge Priority Field can only be set in increments of 4096.
➢ 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, 61440.
➢ Cisco Switch default bridge priority is 32768 or 0x8000.
www.everestacademy.in 9
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
www.everestacademy.in 10
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
Bridge ID Examples
www.everestacademy.in 11
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ The STP algorithm creates a spanning tree of interfaces that forward frames by choosing the interfaces that should
be placed into a forwarding state and choosing the interfaces that should be placed into a blocking state.
❖ STP uses three criteria to choose whether to put an interface in forwarding state or blocking state:
1. STP elects a root switch. 2. STP selects root ports (RPs). 3. STP selects designated ports (DPs).
Root Switch
DP DP
DP RP
Loop
RP
BLK
www.everestacademy.in 12
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ Bridge Protocol Data Units (BPDUs) are frames that contain information about the spanning tree protocol (STP).
❖ STP sends BPDUs using a unique source MAC address from its origin port to a multicast address with destination MAC
(01:80:C2:00:00:00)
❖ BPDU Messages :
1. Configuration BPDU (Hello BPDU) , sent by the root bridge to provide information to all switches every 2 seconds.
2. TCN (Topology Change Notification), sent by bridges towards the root bridge to notify changes in the topology.
Fa0/1 --> MAC Addr : 0001.4329.B901 Fa0/2 --> MAC Addr : 000C.CF4D.8E02 Fa0/2 --> MAC Addr : 0001.C93C.A902
BRIDGE ID: 32769 / 0001.424C.5861 BRIDGE ID: 32769 / 0002.1657.3397 BRIDGE ID: 32769 / 0090.0C06.2DBD
www.everestacademy.in 13
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Port Cost
❖ The port cost is defined by the speed at which the port operates.
10 Mbps 100
100 Mbps 19
1 Gbps 4
10 Gbps 2
BRIDGE ID: 32769 / 0001.424C.5861 BRIDGE ID: 32769 / 0002.1657.3397 BRIDGE ID: 32769 / 0090.0C06.2DBD
www.everestacademy.in 14
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Port Identifier
❖ Port identifier is a 16-bit field, 8 bits for the port priority and 8 bits for the port number.
❖ The port priority is a value from 0 to 255 and defaults to 128 for all ports.
❖ The port number can range from 0 to 255 and represents the port's actual physical mapping.
8 bits 8 bits
128.1
128 1
0x8001
32769
www.everestacademy.in 15
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
www.everestacademy.in 16
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Cost= 19
Bridge Id Bridge Id
32769 / 0090.21B6.D100 32769 / 0040.0B12.A46E
Cost = 4 Cost = 4
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923 SW4
www.everestacademy.in 17
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Gig0/2 Gig0/1
Bridge Id
32769 / 0090.21B6.D100
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4
Fa0/23 Fa0/24
Bridge Id
32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 18
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Gig0/2 Gig0/1
Bridge Id
32769 / 0090.21B6.D100
RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4
Fa0/23 Fa0/24
Bridge Id
32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 19
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Bridge Id
2. Selecting Root Ports (RPs): SW1
32769 / 0001.9713.9A6D
Gig0/2 Gig0/1
Bridge Id
32769 / 0090.21B6.D100
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4
Fa0/23 Fa0/24
Bridge Id
32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 20
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Bridge Id
2. Selecting Root Ports (RPs): SW1 32769 / 0001.9713.9A6D
Gig0/2 Gig0/1
Bridge Id
32769 / 0090.21B6.D100
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4
Fa0/23 Fa0/24
Bridge Id
Port ID = 128.23 Port ID = 128.24 32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
RP
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 21
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Bridge Id
2. Selecting Designated Ports(RPs): SW1 32769 / 0001.9713.9A6D
Gig0/2 Gig0/1
DP
Bridge Id
32769 / 0090.21B6.D100
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4
Fa0/23 Fa0/24
Bridge Id
32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
RP
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 22
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Gig0/2 Gig0/1
DP DP
Bridge Id
32769 / 0090.21B6.D100
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4
Fa0/23 Fa0/24
Bridge Id
32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
RP
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 23
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Gig0/2 Gig0/1
DP DP
Bridge Id
32769 / 0090.21B6.D100
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
Cost= 4 DP
Fa0/23 Fa0/24
Bridge Id
32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
RP
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 24
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Gig0/2 Gig0/1
DP DP
Bridge Id
32769 / 0090.21B6.D100
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
BLK Cost= 4 DP
Fa0/23 Fa0/24
Bridge Id
DP DP 32769 / 0040.0B12.A46E
Cost= 19
Cost= 19
RP BLK
Fa0/24 Fa0/23
Bridge Id
32769 / 00E0.F7CA.2923
SW4 www.everestacademy.in 25
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
STP Convergence
Hello BPDU
SW1 Root Id 32769 / 0001.9713.9A6D
Bridge Id Bridge Id 32769 / 0001.9713.9A6D
32769 / 0001.9713.9A6D Cost = 0
Gig0/2 Gig0/1
DP DP
Bridge Id Bridge Id
32769 / 0090.21B6.D100 32769 / 0040.0B12.A46E
Gig0/1 Gig0/2
BLK Cost= 4 DP
Fa0/23 Fa0/24
DP DP
Cost= 19
Cost= 19
❑ The STP root switch sends a new Hello BPDU every 2 seconds by default.
RP BLK ❑ Each non-root switch forwards the Hello on all DPs after changing the
Bridge ID and the root cost .
Fa0/24 Fa0/23
❑ Steps 1 and 2 repeat until something changes.
Bridge Id
32769 / 00E0.F7CA.2923 ❑ When a switch does not receive Hello BPDU, the switch reacts and starts
SW4
the process of changing the spanning-tree topology.
www.everestacademy.in 26
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
STP Timers
❖ Hello Timer : the time between each configuration BPDUs that is sent on a designated port (DP).
❖ MaxAge : the time interval that a switch stores a configuration BPDU before discarding it.
❖ Forward delay : the time interval that a switch port spends in both the Listening and Learning states.
www.everestacademy.in 27
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
SW1
Gig0/2 Gig0/1
DP DP
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
BLK DP
Fa0/23 Fa0/24
DP DP
RP BLK
Fa0/24 Fa0/23
SW4 www.everestacademy.in 28
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
STP
PVST+
802.1D
Listening Listening
Transition Transition
Learning Learning
www.everestacademy.in 29
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
SW1
Gig0/2 Gig0/1
DP DP
SW3
RP
Gig0/2
RP
Gig0/1
SW2
Gig0/1 Gig0/2
DP
BLK RP
DP
Fa0/23 Fa0/24
DP DP
SW4 www.everestacademy.in 30
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
SW1
Gig0/2 Gig0/1
DP DP
RP
Gig0/2
RP
Gig0/1
SW3 SW2
Gig0/1 Gig0/2
RP
BLK DP
Fa0/23 Fa0/24
DP DP
SW4 www.everestacademy.in 31
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
SW1
Gig0/2 Gig0/1
DP DP
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
BLK DP
Fa0/23 Fa0/24
DP DP
RP
Fa0/24
RP
BLK
Fa0/23
Listening 15 seconds Learning 15 seconds Forwarding
SW4 www.everestacademy.in 32
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ In 2001, the IEEE introduced Rapid Spanning Tree Protocol (RSTP) as 802.1w.
❖ RSTP provides significantly faster spanning tree convergence after a topology change.
❖ The most recent models and IOS versions of Cisco switches default to use RSTP (RPVST+) instead of STP (PVST+).
❖ RSTP can replace a root port, without any waiting to reach a forwarding.
❖ RSTP can replace a designated port, without any waiting to reach a forwarding state.
❖ With STP, only root switch generates configuration BPDU and sends it to all other switches.
❖ With RSTP, each switch independently generates its own configuration BPDU.
❖ RSTP allows for queries between neighbors, rather than waiting on timers to expire.
www.everestacademy.in 33
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
STP/PVST+ RSTP/RPVST+
Alternate
Alternat Blocking Discarding
Backup
www.everestacademy.in 34
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
www.everestacademy.in 35
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
www.everestacademy.in 36
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ Point-to-Point Edge ports—These are the interfaces/ports connected to hosts. These interfaces are immediately
moved to the forwarding state.
❖ Point-to-Point Ports—These are the interfaces/ports connected directly to neighboring switches over a point-to-
point link.
➢ RSTP negotiates with the neighbor switch for rapid convergence/transition only when the link is point-to-point
❖ Shared Ports—These are the interfaces/ports that operate in half-duplex mode (Hub).
Switch Switch
Point-to-Point Point-to-Point
Port Port
Full Duplex
Point-to-Point Shared
Full Duplex edge Port Port Half Duplex
Hub
PC
www.everestacademy.in 37
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
Configuring RSTP
SW1
Gig0/2 Gig0/1
DP DP
RP RP
Gig0/2 Gig0/1
SW3 SW2
Gig0/1 Gig0/2
BLK DP
www.everestacademy.in 38
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
❖ PortFast is a Cisco proprietary feature that causes a switch port to enter forwarding state immediately, bypassing the
listening and learning states.
❖ PortFast feature can be enabled on an access port connected to an workstation such as a computer or a printer or on a
trunk port connected to a router or a server.
❖ Enabling PortFast feature on a switch port connected to another switch port can causes broadcast storms.
❖ PortFast is useful for DHCP. Without PortFast, a PC can send a DHCP request before the port is in forwarding state, denying
the host from getting an IP address.
❖ BPDU Guard feature Prevents accidental connection of switching devices to PortFast-enabled ports.
❖ BPDU Guard puts an interface configured for STP PortFast into the err-disable state upon receipt of a BPDU.
www.everestacademy.in 39
هذه الدورة من إعداد المدرب عبد الرحمن العلوش, على موقع يودميCCNA 200-301 رابط دورة المدخل الى شبكات سيسكو
A B C
www.everestacademy.in 40
رابط دورة المدخل الى شبكات سيسكو CCNA 200-301على موقع يودمي ,هذه الدورة من إعداد المدرب عبد الرحمن العلوش
Configuring PortFast
www.everestacademy.in 41