SlideShare una empresa de Scribd logo
1 de 25
Bridging
L2 Switching
What is a Bridge?
An internetworking device that relays frames among its ports based upon
Data Link Layer information( e.g. MAC addresses and/or VLAN
identifiers)
Bridge Operation
•Receive frames from all ports.
•Look up the destination MAC address from the Bridge address
table(filtering database) and identify the interface through which it has
to be forwarded.
•Forward the frame through that port alone.
•If entry not present then forward through all ports except on the one
through which it was received (flooding).
•Table entries could be manually entered or learnt dynamically.
Filtering database
MAC Address Port # Valid bit Hit bit
Static/
dynamic
Operations on filtering database
•Destination Address Lookup
• To forward the frames to the destination.
•Source Address Learning
• To maintain the filtering database.
•Ageing of entries
• To avoid stale entries in the database.
Source Address Learning
H1 H2 H5
H4H3
H6
H7 H8
MAC Address Port #
Frame sent
to H5
Port 1 Port 2
Port 3 Port 4
H2 1
Entry for H2
added
Flooded through
all ports
Entry for H2 not
present
Entry for H5
not present
Destination Address Lookup
H1 H2 H5
H4H3
H6
H7 H8
MAC Address Port #
Port 1 Port 2
Port 3 Port 4
H2 1
Frame sent
to H2
Frame
forwarded
only through
port 1
Address present in
table looked up
Aging Entries from the table
Table entry Valid bit Hit bit
Entry1
Entry2
Entry3
Entry4
1
1
1
0
1
0
0
0
Valid and
active
Aged out
Ready for
ageing
Problem of loop
Loop results in
• Unicast frame duplication.
• Multicast frame multiplication.
• Address table non-convergence.
Unicast frame duplication
Unicast frame from
H3 to H1
port2
port2
port1
port1
port2
B1
B3 B2
Link A
Cost=100
Link B
port1
H1
H2
H3 H4 H5
1H4
1H3
2H2
2H1
1H4
1H3
2H2
2H1
1H4
1H3
3H2
2H1
port3
Both B2 and B3
forward the frame
on respective
ports
H1 receives 2
copies of the
same frame
Multicast Frame Multiplication
port2
port3
port1
port1
port2
B1
B3 B2
Link A
Cost=100
Link B
port1
H1
H2
H3 H4 H5
1H4
1H3
2H2
2H1
1H4
1H3
3H2
3H1
1H4
1H3
3H2
2H1
port3
port2
Multiple
copies of
the same
frame
received
Multicast
frame sent
from H1
Flooded thru all
ports
Flood
ed
thru
all
ports
Address table non-convergence
port2
port2
port1
port1
port2
B1
B3 B2
Link A
Cost=100
Link B
port1
H1
H2
H3 H4 H5
1
2H2
2H1
111H3 H3
2H2
2H1
1H4
1H3
3H2
2H1
port3
Frame sent
from H3 to H1
Frames with
source H3
received from
other port
2 2
H4 2 1H4
Solution for avoiding loop
•Manual configuration
•Spanning Tree Protocol: The purpose of STP was and is to prevent
loops in a bridged network while allowing redundant connections.
STP Concepts
•Tree Topology
• Loop free topology.
• No segment is isolated.
•Root Bridge
• There is exactly one root bridge.
• This the logical center.
•Designated bridges
• One and only one bridge is responsible for forwarding traffic from the direction
of the root onto any given link or bridge.
• Each link will have exactly one designated bridge.
•Designated ports
• Forwards frames away from root in an active topology.
• That is designated bridge is attached to the segment through the designated
port.
•Root Port
• Provides connectivity from the designated bridge to the root port.
• There is only one root port for a bridge that is determined based on the path
cost to the root.
Calculating and Maintaining a
Spanning Tree
•Elect a root bridge.
• Bridge with lowest numerical bridge identifier becomes the root bridge.
•Elect the designated bridges and designated ports.
• Once root is known lowest cost path to it for a link is found, and is elected as
the designated bridge for that LAN.
• If same cost, then elect the one with lowest bridge identifier as designated
bridge.
• Port that provides lowest cost path is elected as the designated port for that
link.
• If same cost, then elect the one with lowest port identifier as designated port.
•Maintain the topology over time.
• On an STP network, bridges and switches will pass messages between each
other known as BPDUs.
• These messages are multicasts that are used to determine the STP network
topology.
• An STP switch or bridge will send out BPDU messages every 2 seconds by
default.
•Configuration message(BPDU) contains
- BPDU type
- Flags(TC,TCN)
- Root Identifier
- Root Path Cost
- Bridge Identifier
- Port Identifier
- Message age
- Max age
- Hello time
- Forward delay
BPDU Details
which this message is based
time since root sent a
message on
Destination
MAC address
Source MAC
address
Configuration
Message
protocol identifier
version
message type
flags
root ID
Cost
bridge ID
port ID
message age
maximum age
hello time
forward delay
Set to 0 Set to 0
Set to 0
lowest bit is "topology change bit (TC bit)
ID of root Cost of the path from the
bridge sending this
message
ID of port from which
message is sent
ID of bridge sending this message
Time between
recalculations of the
spanning tree
(default: 15 secs)
Time between
BPDUs from the root
(default: 1sec)
Port States
Port State Behavior
•Disadvantage of STP:
• Takes time for the filtering database to re-converge on topology change(30 to 50 sec).
Receive
BPDUs
Transmit
BPDUs
Learn
Addresses
Forward
Data
Frames
Disabled - - - -
Blocking . - - -
Listening . . - -
Learning . . . -
Forwarding . . . .
.
Assume all bridges
have default priority
32,768
Learns B1 as root
bridge
Elect a root bridge
B1
B3 B2
Link A
Cost=100
Link B
BPDU
BPDUBPDU
BPDU
BPDU BPDU
Root
ID
Root Path
Cost
Bridge
ID
Port
ID
BPDU msg
2
3
1
1
2
2
1 3
B1 0 B1 1
B3 0 B3 1
B3 0 B3 2
B2 0 B2 1 B2 0 B2 3
B2 0 B2 2
Select Root Ports On Each Bridge
B1
B3 B2
Link A
Cost=100
Link B
Elect the designated Bridges and
designated ports
root bridge is the
designated bridge
for each link it
attaches
For link B, B2
has lowest BID
hence B2 is the
designated
bridge
B1
B3 B2
Link A
Cost=100
Link B
Root BID=B1
BID=B1
Root BID=B1
BID=B2
Root BID=B1
BID=B3
port2 port1
Designated port
for link B
Thank You

Más contenido relacionado

La actualidad más candente

Transport layer interface
Transport layer interface Transport layer interface
Transport layer interface CEC Landran
 
Network layer
Network layerNetwork layer
Network layersbkbca
 
Transport services
Transport servicesTransport services
Transport servicesNavin Kumar
 
The Transport Layer
The Transport LayerThe Transport Layer
The Transport Layeradil raja
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network LayerManoj Kumar
 
Routing table : Notes
Routing table : NotesRouting table : Notes
Routing table : NotesSubhajit Sahu
 
Ipv4 packet structure
Ipv4 packet structureIpv4 packet structure
Ipv4 packet structurevlsirajagopal
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layerZee Haak
 
Routing, Different types of forwarding technique
Routing, Different types of forwarding techniqueRouting, Different types of forwarding technique
Routing, Different types of forwarding techniquerajib_
 
Network layers forwarding.docx
Network layers forwarding.docxNetwork layers forwarding.docx
Network layers forwarding.docxAnusuaBasu
 

La actualidad más candente (20)

Transport layer interface
Transport layer interface Transport layer interface
Transport layer interface
 
Network layer
Network layerNetwork layer
Network layer
 
Transport services
Transport servicesTransport services
Transport services
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Unit 4 - Network Layer
Unit 4 - Network LayerUnit 4 - Network Layer
Unit 4 - Network Layer
 
The Transport Layer
The Transport LayerThe Transport Layer
The Transport Layer
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Week9 lec1
Week9 lec1Week9 lec1
Week9 lec1
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
 
Link layer
Link layerLink layer
Link layer
 
Routing table : Notes
Routing table : NotesRouting table : Notes
Routing table : Notes
 
Ipv4 packet structure
Ipv4 packet structureIpv4 packet structure
Ipv4 packet structure
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layer
 
Routing
RoutingRouting
Routing
 
Routing, Different types of forwarding technique
Routing, Different types of forwarding techniqueRouting, Different types of forwarding technique
Routing, Different types of forwarding technique
 
Data link layer
Data link layerData link layer
Data link layer
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
Network layers forwarding.docx
Network layers forwarding.docxNetwork layers forwarding.docx
Network layers forwarding.docx
 
Transport layer
Transport layer Transport layer
Transport layer
 

Similar a L2 Switching Bridging Spanning Tree Protocol (STP

Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Sachin Morya
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfcisco49
 
Networking interview questions and answers
Networking interview questions and answersNetworking interview questions and answers
Networking interview questions and answersAmit Tiwari
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhVijayKaran7
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices21viveksingh
 
Packet Switching Technique in Computer Network
Packet Switching Technique in Computer NetworkPacket Switching Technique in Computer Network
Packet Switching Technique in Computer NetworkNiharikaDubey17
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGanilinvns
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHINGanilinvns
 
Stp. cli command reference, quiz
Stp. cli command reference, quizStp. cli command reference, quiz
Stp. cli command reference, quizSagarR24
 
F06_Lecture7_etherne..
F06_Lecture7_etherne..F06_Lecture7_etherne..
F06_Lecture7_etherne..webhostingguy
 

Similar a L2 Switching Bridging Spanning Tree Protocol (STP (20)

Bridging.ppt
Bridging.pptBridging.ppt
Bridging.ppt
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
 
Networking interview questions and answers
Networking interview questions and answersNetworking interview questions and answers
Networking interview questions and answers
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
 
Connecting devices
Connecting devicesConnecting devices
Connecting devices
 
C C N A Day4
C C N A  Day4C C N A  Day4
C C N A Day4
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices
 
Packet Switching Technique in Computer Network
Packet Switching Technique in Computer NetworkPacket Switching Technique in Computer Network
Packet Switching Technique in Computer Network
 
ENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptxENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptx
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHING
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHING
 
Stp. cli command reference, quiz
Stp. cli command reference, quizStp. cli command reference, quiz
Stp. cli command reference, quiz
 
F06_Lecture7_etherne..
F06_Lecture7_etherne..F06_Lecture7_etherne..
F06_Lecture7_etherne..
 
Stp
StpStp
Stp
 

Último

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 

Último (20)

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 

L2 Switching Bridging Spanning Tree Protocol (STP

  • 2. What is a Bridge? An internetworking device that relays frames among its ports based upon Data Link Layer information( e.g. MAC addresses and/or VLAN identifiers)
  • 3. Bridge Operation •Receive frames from all ports. •Look up the destination MAC address from the Bridge address table(filtering database) and identify the interface through which it has to be forwarded. •Forward the frame through that port alone. •If entry not present then forward through all ports except on the one through which it was received (flooding). •Table entries could be manually entered or learnt dynamically.
  • 4. Filtering database MAC Address Port # Valid bit Hit bit Static/ dynamic
  • 5. Operations on filtering database •Destination Address Lookup • To forward the frames to the destination. •Source Address Learning • To maintain the filtering database. •Ageing of entries • To avoid stale entries in the database.
  • 6. Source Address Learning H1 H2 H5 H4H3 H6 H7 H8 MAC Address Port # Frame sent to H5 Port 1 Port 2 Port 3 Port 4 H2 1 Entry for H2 added Flooded through all ports Entry for H2 not present Entry for H5 not present
  • 7. Destination Address Lookup H1 H2 H5 H4H3 H6 H7 H8 MAC Address Port # Port 1 Port 2 Port 3 Port 4 H2 1 Frame sent to H2 Frame forwarded only through port 1 Address present in table looked up
  • 8. Aging Entries from the table Table entry Valid bit Hit bit Entry1 Entry2 Entry3 Entry4 1 1 1 0 1 0 0 0 Valid and active Aged out Ready for ageing
  • 9. Problem of loop Loop results in • Unicast frame duplication. • Multicast frame multiplication. • Address table non-convergence.
  • 10. Unicast frame duplication Unicast frame from H3 to H1 port2 port2 port1 port1 port2 B1 B3 B2 Link A Cost=100 Link B port1 H1 H2 H3 H4 H5 1H4 1H3 2H2 2H1 1H4 1H3 2H2 2H1 1H4 1H3 3H2 2H1 port3 Both B2 and B3 forward the frame on respective ports H1 receives 2 copies of the same frame
  • 11. Multicast Frame Multiplication port2 port3 port1 port1 port2 B1 B3 B2 Link A Cost=100 Link B port1 H1 H2 H3 H4 H5 1H4 1H3 2H2 2H1 1H4 1H3 3H2 3H1 1H4 1H3 3H2 2H1 port3 port2 Multiple copies of the same frame received Multicast frame sent from H1 Flooded thru all ports Flood ed thru all ports
  • 12. Address table non-convergence port2 port2 port1 port1 port2 B1 B3 B2 Link A Cost=100 Link B port1 H1 H2 H3 H4 H5 1 2H2 2H1 111H3 H3 2H2 2H1 1H4 1H3 3H2 2H1 port3 Frame sent from H3 to H1 Frames with source H3 received from other port 2 2 H4 2 1H4
  • 13. Solution for avoiding loop •Manual configuration •Spanning Tree Protocol: The purpose of STP was and is to prevent loops in a bridged network while allowing redundant connections.
  • 14. STP Concepts •Tree Topology • Loop free topology. • No segment is isolated. •Root Bridge • There is exactly one root bridge. • This the logical center. •Designated bridges • One and only one bridge is responsible for forwarding traffic from the direction of the root onto any given link or bridge. • Each link will have exactly one designated bridge.
  • 15. •Designated ports • Forwards frames away from root in an active topology. • That is designated bridge is attached to the segment through the designated port. •Root Port • Provides connectivity from the designated bridge to the root port. • There is only one root port for a bridge that is determined based on the path cost to the root.
  • 16. Calculating and Maintaining a Spanning Tree •Elect a root bridge. • Bridge with lowest numerical bridge identifier becomes the root bridge. •Elect the designated bridges and designated ports. • Once root is known lowest cost path to it for a link is found, and is elected as the designated bridge for that LAN. • If same cost, then elect the one with lowest bridge identifier as designated bridge. • Port that provides lowest cost path is elected as the designated port for that link. • If same cost, then elect the one with lowest port identifier as designated port.
  • 17. •Maintain the topology over time. • On an STP network, bridges and switches will pass messages between each other known as BPDUs. • These messages are multicasts that are used to determine the STP network topology. • An STP switch or bridge will send out BPDU messages every 2 seconds by default. •Configuration message(BPDU) contains - BPDU type - Flags(TC,TCN) - Root Identifier - Root Path Cost - Bridge Identifier - Port Identifier - Message age - Max age - Hello time - Forward delay
  • 18. BPDU Details which this message is based time since root sent a message on Destination MAC address Source MAC address Configuration Message protocol identifier version message type flags root ID Cost bridge ID port ID message age maximum age hello time forward delay Set to 0 Set to 0 Set to 0 lowest bit is "topology change bit (TC bit) ID of root Cost of the path from the bridge sending this message ID of port from which message is sent ID of bridge sending this message Time between recalculations of the spanning tree (default: 15 secs) Time between BPDUs from the root (default: 1sec)
  • 19.
  • 21. Port State Behavior •Disadvantage of STP: • Takes time for the filtering database to re-converge on topology change(30 to 50 sec). Receive BPDUs Transmit BPDUs Learn Addresses Forward Data Frames Disabled - - - - Blocking . - - - Listening . . - - Learning . . . - Forwarding . . . .
  • 22. . Assume all bridges have default priority 32,768 Learns B1 as root bridge Elect a root bridge B1 B3 B2 Link A Cost=100 Link B BPDU BPDUBPDU BPDU BPDU BPDU Root ID Root Path Cost Bridge ID Port ID BPDU msg 2 3 1 1 2 2 1 3 B1 0 B1 1 B3 0 B3 1 B3 0 B3 2 B2 0 B2 1 B2 0 B2 3 B2 0 B2 2
  • 23. Select Root Ports On Each Bridge B1 B3 B2 Link A Cost=100 Link B
  • 24. Elect the designated Bridges and designated ports root bridge is the designated bridge for each link it attaches For link B, B2 has lowest BID hence B2 is the designated bridge B1 B3 B2 Link A Cost=100 Link B Root BID=B1 BID=B1 Root BID=B1 BID=B2 Root BID=B1 BID=B3 port2 port1 Designated port for link B