Packet Switching on L2 (LAN Level)

Similar documents
Packet Switching on L2 (LAN Level)

Why Packet Switching on LAN? Packet Switching on L2 (LAN Level) Bridge / Router. Agenda

Transparent Bridging and VLAN

Configuring STP and RSTP

Configuring Rapid PVST+

Table of Contents. Cisco Understanding Rapid Spanning Tree Protocol (802.1w)

The multiple spanning-tree (MST) implementation is based on the IEEE 802.1s standard.

Understanding Rapid Spanning Tree Protocol (802.1w)

Spanning-Tree Protocol

Configuring Rapid PVST+ Using NX-OS

Configuring Rapid PVST+

Agenda. Spanning-Tree Protocol. Spanning Tree Protocol (STP) Introduction Details Convergence Some more details

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

Primer Ethernet Technology

Bridging Transmitting Non-IP Traffic or Merging Two Networks

4 Spanning Tree Protokoll 802.1D-2004

Configuring Spanning Tree Protocol

DD2490 p Layer 2 networking. Olof Hagsand KTH CSC

Configuring STP. Understanding Spanning-Tree Features CHAPTER

Table of Contents 1 MSTP Configuration 1-1

Configuring Spanning Tree Protocol

Spanning Tree Protocol(STP)

62HConfiguring port role restriction 131H37. 63HConfiguring TC-BPDU transmission restriction 132H38. 64HEnabling TC-BPDU guard 133H38

Rapid spanning tree protocol

Campus Networking Workshop. Layer 2 engineering Spanning Tree and VLANs

Implementing Spanning Tree Protocol

Table of Contents. (Rapid) Spanning Tree Protocol. A simple bridge loop. An even worse bridge loop. Bridge loops Two bridges Three bridges (R)STP

Top-Down Network Design

Configuring STP and Prestandard IEEE 802.1s MST

Spanning-Tree Protocol

Advanced Computer Networks

The Spanning Tree 802.1D (2004) RSTP MSTP

Understanding Issues Related to Inter VLAN Bridging

3. INTERCONNECTING NETWORKS WITH SWITCHES. THE SPANNING TREE PROTOCOL (STP)

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

802.1AS Fast Master Clock Selection

Copyright 2014 CertificationKits LLC. All Rights Reserved. 2

Table of Contents. (Rapid) Spanning Tree Protocol. An even worse bridge loop. A simple bridge loop. Bridge loops Two bridges Three bridges (R)STP

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Improving network convergence with Multiple Spanning Tree Protocol

Chapter 5. Spanning Tree Protocol (STP) Part II

Question No: 1 On the MSTP network as shown in the figure, what is the role of the switch in MSTI 1 according to the configuration?

Configuring MST Using Cisco NX-OS

Table of Contents. (Rapid) Spanning Tree Protocol. A simple bridge loop. An even worse bridge loop. Bridge loops Two bridges Three bridges (R)STP

Exam Questions

JN0-343 Q&As. Juniper Networks Certified Internet Specialist (JNCIS-ENT) Pass Juniper JN0-343 Exam with 100% Guarantee

Table of Contents Chapter 1 MSTP Configuration

Spanning Tree Protocol

Configuring Spanning Tree

Token Ring VLANs and Related Protocols

Implement Spanning Tree Protocols-PART-I. LAN Switching and Wireless Chapter 5 Modified by Tony Chen 05/01/2008

Network Infrastructure

Top-Down Network Design

isco Understanding Spanning Tree Protocol Topology Chan

RSTP Configuration. Page 1 of 26

Ethernet Primer (v6.1)

STP (Spanning Tree Protocol) - Step by Step Configuration Tutorial

Growth. Individual departments in a university buy LANs for their own machines and eventually want to interconnect with other campus LANs.

Introduction to Ethernet. Guy Hutchison 8/30/2006

CS IT. Lecture (06) STP (I) Problem statement. By: Dr. Ahmed ElShafee

Chapter 4 Configuring Switching

Switched Ethernet Virtual LANs

Index. Numerics. Index p priority (QoS) definition Q VLAN standard w as a region 5-54

Spanning Trees and IEEE 802.3ah EPONs

Troubleshooting Transparent Bridging Environments

Configuring MSTP CHAPTER

Implementing Multiple Spanning Tree Protocol

Cisco Exam Interconnecting Cisco Networking Devices Part 2 Version: 10.0 [ Total Questions: 149 ]

The Spanning Tree Protocol

Part3. Local Area Networks (LAN)

Token Ring VLANs and Related Protocols

CompSci 356: Computer Network Architectures. Lecture 7: Switching technologies Chapter 3.1. Xiaowei Yang

Configuring the Catalyst 3920

Troubleshooting Transparent Bridging Environments

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

2D1490 p Bridging, spanning tree and related issues. Olof Hagsand KTHNOC/NADA

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

MSTP Technology White Paper

Chapter 5: STP. * What is STP? How does STP work?

802.1w Rapid Spanning Tree Protocol (RSTP) 802.1d Spanning Tree Protocol (STP)

RSTP Configuration. RSTP Configuration

CCNA Cisco Certified Network Associate CCNA (v3.0)

TestsDumps. Latest Test Dumps for IT Exam Certification

HUAWEI AR Series SEP Technical White Paper HUAWEI TECHNOLOGIES CO., LTD. Issue 1.0. Date

Lecture 4b. Local Area Networks and Bridges

Understanding and Configuring STP

DD2490 p Bridging, spanning tree and related issues. Olof Hagsand KTH/CSC

Describing the STP. Enhancements to STP. Configuring PortFast. Describing PortFast. Configuring. Verifying

Managing Network Spanning Trees

Introduction to OSPF

MSTP Configuration. Page 1 of 24

VLAN and bridges. Transparent Bridging (TB) Transparent Bridging (TB) LB: Learning Bridge. Several Learning Bridges. Loops. Loop-Free topology

Redundancy in Substation LANs with the Rapid Spanning Tree Protocol (IEEE 802.1w)

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

Interface The exit interface a packet will take when destined for a specific network.

CCNA 3 (v v6.0) Chapter 3 Exam Answers % Full

LAN Interconnection. different interconnecting devices, many approaches Vasile Dadarlat- Local Area Computer Networks

THE OSI MODEL. Application Presentation Session Transport Network Data-Link Physical. OSI Model. Chapter 1 Review.

Communication Redundancy User s Manual

3. What could you use if you wanted to reduce unnecessary broadcast, multicast, and flooded unicast packets?

Transcription:

Packet Switching on L2 (LAN Level) Transparent Bridging (TB), Spanning Tree Protocol (STP), Rapid STP, L2 Bridging versus L3 Routing Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 2 Page 06-1

Why Packet Switching on LAN? LAN was primarily designed for shared media but too many clients cause performance problems higher probability for collisions in case of Ethernet Partitioning of a network may be needed to achieve load balance for error limitation because of security reasons to deal with technological limitations geographical expansion, number of clients for using resources of distant networks (remote networking) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 3 Bridge / Router network partitioning can be done by packet switches (OSI relay stations on L3) already well known store and forward principle of WAN world bridge packet switch implemented on OSI layer 2 forwarding based on unstructured MAC addresses signposts stored in MAC bridging table ( = routing table of L2 packet switch) above OSI Layer 2b bridges are transparent for all higher layer protocols (LLC and above) router packet switch implemented on OSI layer 3 forwarding based on structured L3 addresses end system must speak the corresponding L3 language 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 4 Page 06-2

Bridge System A 5-7 4 3 2a 2b 1 LLC MAC 1 2b MAC 2b MAC 2 Bridge (PS) 1 as relay 1 port 1 port 2 LAN 1 LAN 2 System B 5-7 4 3 2a 2b 1 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 5 Router System A 5-7 4 3 2a 2b L3 Prot. L3 Prot. 3 3 LLC 2a L3 2a LLC MAC 1 2b router (PS) as relay 2b MAC 2 System B 5-7 4 3 2a 2b 1 1 1 1 port 1 port 2 LAN 1 LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 6 Page 06-3

Bridging Methods Transparent Bridging (Ethernet world) easy for end systems more complex transferring-decisions (compared to source route bridging) have to be done by such a bridge dedicated hardware today's L2 switch technology (Ethernet switch) is actually a fast transparent bridge only Source Routing Bridging (Token Ring world, IBM) more overhead for end systems (path finding) source route bridges are less complex could be done e.g. by a PC with two network cards not further covered in this lecture 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 7 Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 8 Page 06-4

Transparent Bridge = Ethernet Switch Packet Switching (PS) in Connectionless Service Mode on OSI Layer 2 Routing Table (Signposts) > Bridging Table (=Ethernet Switch Table) System A (MAC address -> Port Mapping) System B 5-7 4 3 2a 2b 1 LLC MAC LAN1 2b MAC 2b MAC LAN 2 Bridge (PS) 1 as relay 1 port 1 port 2 LAN 1 MAC C MAC D LAN 2 5-7 4 3 2a 2b 1 MAC B 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 9 Transparent Bridging 1 bridge is invisible for end systems LAN 1 and LAN 2 appear to the end systems like one single, logical, big LAN -> transparent bridge uses layer 2 MAC-addresses to decide if a given frame must be a forwarded or not destination-address of a frame is used for this MAC-addresses of all stations are registered in a bridging table either statically done by administrator or dynamically done by a self-learning mechanism source-address of a frame is used for this 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 10 Page 06-5

Transparent Bridging 2 in case of a dynamic bridging table an aging mechanism allows for changes of MAC addresses in the network may caused either by change of network card or by location change of end system if an already registered MAC address is not seen within e.g. 5 minutes as source address of a frame the bridging table entry is deleted because of the transparency such a bridge must receive and process every frame on a LAN flow control originally not done between end systems and bridges 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 11 Transparent Bridging 3 destination address of a frame is used for table look up which enables a simple decision: filtering: frame will be rejected if destination s home is on the LAN segment of the receiving port forwarding: a duplicate of the frame will be forwarded to the appropriate port if destination s home is registered in the table of another port flooding: during learning time; frame will be forwarded to all other ports (multiport-bridge) if there is no entry in the table (unknown destination) frames with broadcast/multicast-address are always forwarded to all other ports 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 12 Page 06-6

Example for Studying Effects LAN 1 LAN 3 MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C LAN 2 bridging table bridging table of bridge 1 of bridge 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 13 Learning / Flooding SA DA data A F L2 LAN 1 LAN 3 learn A flood F MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C flood F learn A LAN 2 table of Bridge 1 table of Bridge 2 A A 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 14 Page 06-7

Learning / Filtering DA SA L2 A F data LAN 1 learn F LAN 3 MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C filter A LAN 2 table of Bridge 1 table of Bridge 2 A F A 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 15 Learning / Flooding DA SA L2 G F data LAN 1 LAN 3 flood G MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C flood G learn F LAN 2 table of Bridge 1 table of Bridge 2 A F A F 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 16 Page 06-8

Learning / Forwarding DA SA L2 F G data LAN 1 LAN 3 learn G forward F MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C learn G forward F LAN 2 table of Bridge 1 table of Bridge 2 A G G A F F 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 17 Final Picture LAN 1 LAN 3 MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C LAN 2 table of Bridge 1 table of Bridge 2 A F G C B bridging table size is proportional to the number of all network devices of the whole net!!! 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 18 G B A F C Page 06-9

L2 Broadcast / L2 Multicast SA DA data A bc/mc L2 mc multicast address bc broadcast address LAN 1 LAN 3 learn A flood F MAC F MAC B MAC G Bridge 1 Bridge 2 MAC C flood F learn A LAN 2 table of Bridge 1 table of Bridge 2 A F G C B L2 broadcasts or multicasts are always flooded over the whole network!!! 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 19 G B A F C Transparent Bridging MAC addresses are unique but unstructured (U/L=0) allows no determination of the location of a station bridging table of all bridges will contain all MAC addresses of the whole net problem of location change is solved by aging the table entries so network-stations can keep their addresses on location changes note: in Token Ring and Source Route Bridging environment MAC addresses will be structured (U/L=1) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 20 Page 06-10

Collision Domain versus Broadcast Domain bridge separates LAN into multiple collision domains a collision on one LAN segment will not be seen on other LAN segments reason: store and forward behavior of bridge note: a repeater can't do that but a bridged network is still one broadcast domain broadcast frames are always flooded reason: bridged LAN is still seen as one logical LAN by end systems, bridges are transparent for them 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 21 Remote Bridging? (<- TB means Broadcast Domain!) System A 5-7 4 3 2a 2b 1 Because of inherent L2 broadcast / multicast percentage on a LAN this should be avoided (think about what happens if 10% of the traffic is broadcast / multicast in the example below) LLC MAC 1 MAC 2 2b 2b 1 WAN 1 64kbit/s port 1 port 2 System B 5-7 4 3 2a 2b 1 LAN 1 10Mbit/s LAN 2 10Mbit/s 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 22 Page 06-11

Remote Bridging relay function of local bridge is split in two half-bridges coupling of the half-bridges via WAN-connection high amount of broadcast on a LAN mismatch of data rates slow WAN-connection can cause a buffer overflow in the bridge therefore transparent bridging over WAN or any other Ethernet tunnelling technique should be avoided 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 23 Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 24 Page 06-12

Parallel Paths parallel paths between two LAN segments cause endless circling of frames with unknown destination endless circling of broadcast-frames endless circling of direct addressed frames during flooding phase blocking of buffer-resources parallel paths in a more complex topology cause overflow of all buffer-resources and stagnation of the LANs Broadcast Storm to avoid these effects Spanning Tree Protocol (STP) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 25 Endless Circling 1 MAC B SA DA data A, broad L2 a LAN 1 a a Bridge 1 Bridge 2 LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 26 Page 06-13

Endless Circling 2 MAC B LAN 1 Bridge 1 Bridge 2 a1 a2 LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 27 Endless Circling 3 MAC B LAN 1 a21 a12 Bridge 1 Bridge 2 LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 28 Page 06-14

Endless Circling 4 MAC B LAN 1 Bridge 1 Bridge 2 a121 a212 LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 29 Broadcast-Storm 1 MAC B SA DA data A, broad L2 a a a a Bridge 1 Bridge 2 a1 a2 Bridge 4 Bridge 3 a13 a23 a4 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 30 Page 06-15

Broadcast-Storm 2 MAC B a134=b a234=c Bridge 1 Bridge 2 Bridge 4 Bridge 3 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 31 Broadcast-Storm 3 MAC B b c b c Bridge 1 Bridge 2 b1 c1 b2 c2 Bridge 4 Bridge 3 b13 c13 b23 c23 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 32 Page 06-16

Broadcast-Storm 4 MAC B b134 c134 b234 c234 Bridge 1 Bridge 2 Bridge 4 Bridge 3 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 33 Table Rewriting (Unknown Destination) 1 MAC B LAN 1 SA DA data A, B L2 a a a Bridge 1 Bridge 2 A A LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 34 Page 06-17

Table Rewriting (Unknown Destination) 2 MAC B LAN 1 Bridge 1 Bridge 2 A a1 a2 A LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 35 Table Rewriting (Unknown Destination) 3 MAC B LAN 1 a21 a12 Bridge 1 Bridge 2 A A LAN 2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 36 Page 06-18

Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 37 Spanning Tree (IEEE 802.1D) Spanning Tree Protocol (STP): takes care that there is always exact only one active path between any 2 stations implemented by a special communication protocol between the bridges using BPDU (Bridge Protocol Data Unit) packets with MACmulticast address failure of active path causes activation of a redundant path main disadvantage of STP redundant lines or redundant network components cannot be used for load balancing 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 38 Page 06-19

Broadcast-Storm Avoidance by STP SA DA data A, broad L2 a MAC B a a a Bridge 1 Bridge 2 a2 Bridge 4 Bridge 3 a23 TREE Topology 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 39 Parameters for STP 1 Bridge Identifier (Bridge ID) combination of MAC-address and a priority number typically, the lowest MAC-address of all ports is used for that note: although bridge will not be seen by end systems, for bridge communication and management purposes a bridge will listen to one or more dedicated MAC addresses Bridge-ID = priority# (2 Byte) + mac# (6 Byte) priority number can be configured by the administrator default value is 32768 lowest Bridge ID has highest priority lowest configured priority number if you keep default values the bridge with the lowest MAC address will have the highest priority 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 40 Page 06-20

Parameters for STP 2 Port Cost (C) costs in order to access local interface inverse proportional to the transmission rate default cost = 1000 / transmission rate in Mbit/s so 10 Mbit/s Ethernet has a default Path Cost of 100 with occurrence of 1Gbit/s Ethernet rule was adapted 100 Mbit/s = 19, 1Gbit/s = 4, 10Gbit/s = 2 can be configured to a different value by the administrator Port Identifier (Port ID) combination of port number and a priority number Port-ID = port priority#.port# configured by the administrator default port priority = 128 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 41 Parameters for STP Example LAN 2 Bridge 1 ID = 42 LAN 1 Bridge 3 ID = 45 LAN 5 Bridge 5 ID = 83 Bridge 4 ID = 57 Bridge 2 ID = 97 LAN 3 LAN 4 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 42 Page 06-21

Spanning Tree Algorithm Summary select the root bridge bridge with the lowest Bridge Identifier select the root ports by computation of the shortest path from any other bridge to the root bridge root port points to the shortest path towards the root select one designated bridge for every LAN segment which can be reached by more than one bridge bridge with lowest root path costs on the root port side corresponding port on other side is called designated port set the designated and root ports in forwarding state set all other ports in blocking state creates single paths from the root to all leaves (LAN segments) of the network 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 43 Spanning Tree Applied LAN 2 Root Port Root Port Designated Port Root Bridge Bridge 1 ID = 42 Bridge 3 ID = 45 Bridge 4 ID = 57 LAN 5 Designated Bridge Designated Port Designated Port LAN 1 Designated Bridge for LAN 3 and LAN 4 Root Port Bridge 2 ID = 97 Root Port Bridge 5 ID = 83 LAN 3 Designated Port Designated Port LAN 4 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 44 Page 06-22

Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 45 Format of STP Messages - BPDU Format Prot. ID Prot. Vers. BPDU Type Flags Root ID Root Path Costs Bridge ID Port ID Mess. Age Max Age Hello Time Fwd. Delay 2 Byte 1 Byte 1 Byte 1 Byte 8 Byte 4 Byte 8 Byte 2 Byte 2 Byte 2 Byte 2 Byte 2 Byte BPDU... Root ID... Bridge Protocol Data Unit (OSI term for this kind of message) Who seems to be or who is the root bridge (R-ID)? Root Path Cost... How far is the root bridge away from me (RPC)? Bridge ID... Port ID... ID of bridge transmitting this BPDU (O-ID) port over which this BPDU was transmitted (P-ID) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 46 Page 06-23

BPDU Fields 1 Protocol Identifier: 0000 (hex) for STP 802.1D Protocol Version: 00 (hex) for version 802.1D (1998) 02 (hex) for version 802.1D (2004) BPDU Type: 00 (hex) for Configuration BPDU 80 (hex) for Topology Change Notification (TCN) BPDU Root Identifier: 2 bytes for priority (default 32768) 6 bytes for MAC-address Root Path Costs in binary representation: range 1-65535 Bridge Identifier: structure like Root Identifier 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 47 BPDU Fields 2 Port Identifier: 1 byte priority (default 128) 1 byte port number Message Age (range 1-10s): age of Configuration BPDU transmitted by root-bridge initially using zero value, each passing-on (by designated bridge) increases this number Max Age (range 6-40s): aging limit for information obtained from Configuration BPDU basic parameter for detecting idle failures (e.g. root bridge = dead) default 20 seconds Hello Time (range 1-10s): time interval for generation of periodic Configuration BPDUs by root bridge default 2 seconds 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 48 Page 06-24

BPDU Fields 3 Forward Delay (range 4-30s): time delay for putting a port in the forwarding state default 15 seconds but that means 15 seconds listening plus 15 seconds learning Hello Time, Max Age, Forward Delay are specified by Root-Bridge Flags (a "1" indicates the function): bit 8... Topology Change Acknowledgement (TCA) bit 1... Topology Change (TC) used in TCN BPDU s for signalling topology changes TCN Topology Change Notification in case of a topology change the MAC addresses should change quickly to another port of the corresponding bridging table (convergence) in order to avoid forwarding of frames to the wrong port/direction and not waiting for the natural timeout of the dynamic entry the bridge recognizing the topology change sends a TCN BPDU on the root port as long as a CONF BPDU with TCA is received on its root port bridge one hop closer to the root passes TCN BPDU on towards the root bridge and acknowledges locally to the initiating bridge by usage of CONF BPDU with TCA when the root bridge is reached a flushing of all bridging table is triggered by the root bridge by usage of CONF BPDUs with TC and TCA set the new location (port) is dynamically relearned by the actual user traffic 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 49 ddresses / LLC / Network Diameter bridges use for STP-communication: multicast address: 0180 C200 0000 hex 0180 C200 0001 to 0180 C200 000F are reserved 0180 C200 0010 hex All LAN Bridges Management Group Address the DSAP/SSAP of LLC header 42 hex Bridge Spanning Tree Protocol Maximum Bridge Diameter maximum number of bridges between any two end systems is 7 using default values for hello time, forward delay and max age For details of STP operation look to corresponding chapter in Collection of all lectures of Manfred Lindner 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 50 Page 06-25

Selection of Root Bridge 1 after power up all ports are set in a Blocking State and every bridge tries to become the Root Bridge (RB) of the Spanning Tree by sending Configuration BPDUs blocking state means: end station Ethernet frames are not received and forwarded on such a port but BDPU frames can still be received, manipulated by the bridge and transmitted on such port 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 51 Selection of Root Bridge 2 using Configuration BPDUs, a bridge tells which bridge actually is seen as RB which path costs exist to this RB (Root Path Cost) its own Bridge ID and Port ID bridge with the lowest Bridge ID becomes RB after selection of the RB sending of Configuration BPDUs are exclusively triggered by the RB 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 52 Page 06-26

Selection of Root Bridge 3 R-ID=42 RPC=0 O-ID=42 P-ID=1 Bridge 1 ID = 42 R-ID=42 RPC=0 O-ID=42 P-ID=2 Port 1 Port 2 R-ID=45 RPC=0 O-ID=45 P-ID=1 R-ID=45 RPC=0 O-ID=45 P-ID=2 Bridge 3 ID = 45 R-ID=83 RPC=0 O-ID=83 P-ID=2 Port 1 Port 2 Bridge 4 ID = 57 Bridge 5 ID = 83 R-ID=57 RPC=0 O-ID=57 P-ID=1 R-ID=83 RPC=0 O-ID=83 P-ID=1 R-ID=97 RPC=0 O-ID=97 P-ID=1 Bridge 2 ID = 97 R-ID=97 RPC=0 O-ID=97 P-ID=2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 53 Selection of Root Bridge 4 strategy to determinate the RB : if bridge receives a Configuration BPDU with lower Root Bridge ID as own Bridge ID the bridge stops sending Configuration BPDUs on this port the received and adapted Configuration BPDU is forwarded to all other ports if bridge receives Configuration BPDU with higher Root Bridge ID as own Bridge ID the bridge continues sending Configuration BPDUs with own Bridge ID as proposed Root Bridge ID on all ports other bridges should give up 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 54 Page 06-27

Root Bridge remains and triggers STP 5 R-ID=42 RPC=0 O-ID=42 P-ID=1 Bridge 1 ID = 42 R-ID=42 RPC=0 O-ID=42 P-ID=2 Port 1 Port 2 Root Bridge Bridge 3 ID = 45 Bridge 4 ID = 57 Bridge 5 ID = 83 Bridge 2 ID = 97 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 55 Root Port and Designated Bridge 1 now, every bridge determines which of its ports has the lowest Root Path Cost Root Path Cost = sum of all port costs from this bridge to the RB, including port costs of all intermediate bridges Calculation method: Root Path Cost received in BPDU + port cost of the local port receiving this BPDU this port becomes the Root Port in case of equal costs the port ID decides (lower means better) similar to Root Bridge selection, a Designated Bridge (DB) is selected for each LAN-segment bridge with the lowest Root Path Cost on its Root Port in case of equal costs the bridge with the lowest Bridge ID wins 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 56 Page 06-28

Root Port Selection based on RPC 2 R-ID=42 RPC=0 O-ID=42 P-ID=1 Bridge 1 ID = 42 R-ID=42 RPC=0 O-ID=42 P-ID=2 Port 1 Port 2 R-ID=42 RP O-ID=45 P-ID=2 RPC=0 Bridge 3 ID = 45 R-ID=42 RPC=5 O-ID=83 P-ID=1 RP Bridge 4 ID = 57 RPC=5 Bridge 5 ID = 83 R-ID=42 RPC=5 O-ID=57 P-ID=2 RPC=5 R-ID=42 RP O-ID=97 P-ID=3 RP Bridge 2 ID = 97 R-ID=42 RP O-ID=97 P-ID=2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 57 Root Port Selection based on RPC 3 R-ID=42 RPC=0 O-ID=42 P-ID=1 Bridge 1 ID = 42 R-ID=42 RPC=0 O-ID=42 P-ID=2 Port 1 Port 2 R-ID=42 RP O-ID=45 P-ID=2 Bridge 3 ID = 45 Root Port Root Port R-ID=42 RPC=5 O-ID=83 P-ID=1 Bridge 4 ID = 57 Bridge 5 ID = 83 Root Port R-ID=42 RPC=5 O-ID=57 P-ID=2 R-ID=42 RP O-ID=97 P-ID=3 Root Port Bridge 2 ID = 97 R-ID=42 RP O-ID=97 P-ID=2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 58 Page 06-29

Desig. Bridge Selection (based on O-ID) 4 R-ID=42 RPC=0 O-ID=42 P-ID=1 Bridge 1 ID = 42 R-ID=42 RPC=0 O-ID=42 P-ID=2 Port 1 Port 2 Bridge 3 ID = 45 R-ID=42 RPC=5 O-ID=83 P-ID=1 Designated Bridge Bridge 4 ID = 57 Bridge 5 ID = 83 R-ID=42 RPC=5 O-ID=57 P-ID=2 R-ID=42 RP O-ID=97 P-ID=3 Bridge 2 ID = 97 R-ID=42 RP O-ID=97 P-ID=2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 59 Root Port and Designated Bridge 5 RP RPC=5 R-ID=42 RPC=0 O-ID=42 P-ID=1 Bridge 1 ID = 42 R-ID=42 RPC=0 O-ID=42 P-ID=2 Port 1 Port 2 RPC=0 Bridge 3 ID = 45 Root Port Root Port RPC=5 Bridge 4 ID = 57 Designated Port Root Port R-ID=42 RPC=5 O-ID=57 P-ID=2 Designated Bridge Bridge 5 ID = 83 R-ID=42 RP O-ID=97 P-ID=3 Root Port Bridge 2 ID = 97 R-ID=42 RP O-ID=97 P-ID=2 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 60 Page 06-30

Root Port and Designated Bridge 6 using the Root Path Cost field in the Configuration BPDU, a bridge indicates its distance to the RB if a bridge receives a Configuration BPDU from a bridge which is closer to the RB the receiving bridge adds its own port costs to the Configuration BPDU and forwards this message to all other ports if a bridge receives a Configuration BPDU from a bridge which is more distant to the RB this receiving bridge drops this message and sends its own Configuration BPDU on this port this Configuration BPDU contains its own Root Path Cost 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 61 Procedure Parameters Summary Root Bridge lowest Bridge ID Root Ports via Root Path Costs sum of all port costs contained in the Configuration BPDU Designated Bridge lowest Root Path Costs for a given LAN segment 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 62 Page 06-31

STP Configuration via Port States every designated bridge declares its ports as designated ports and puts them (together with the Root Port) in the Forwarding State Root Bridge is automatically designated bridge for its LAN-segments and has only designated ports all other bridges (not RB or DBs) keep their ports in the Blocking State from this moment on, the normal network operation is possible there is only one path between any two arbitrary end systems 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 63 Final STP Picture for Example Root Bridge 1 ID = 42 LAN 2 despt despt LAN 1 Root Path Cost 00 Root Path Cost 10 Bridge 3 ID = 45 Root Path Cost 10 LAN 5 Root Path Cost 05 Root Pt Root Pt blkpt blkpt Root Pt Root Pt despt (designated) Bridge 2 ID = 97 ID = 83 LAN 3 despt despt LAN 4 Root Path Cost 05 (designated) Bridge 4 ID = 57 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 64 Page 06-32

Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 65 STP Error Detection normally the root bridge generates (triggers) every 1-10 seconds (hello time interval) a Configuration BPDU to be received on the root port of every other bridge and carried on through the designated ports bridges which are not designated are still listening to such messages on blocked ports if triggering ages out two scenarios are possible root bridge failure a new root bridge will be selected based on the lowest Bridge-ID and the whole spanning tree may be modified designated bridge failure if there is an other bridge which can support a LAN segment this bridge will become the new designated bridge 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 66 Page 06-33

STP Convergence Time Failure of Designated Bridge LAN 2 Bridge 1 ID=42 LAN 1 Bridge 3 IP=45 LAN 5 Bridge 5 ID-83 Bridge 4 ID=57 New Designated Bridge for LAN 5 Bridge 2 LAN 3 LAN 4 Time = max age (20 sec) + 2*forward delay (15 sec Listening + 15 sec Learning) = 50 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 67 STP Convergence Time Failure at Designated Bridge New Topology LAN 2 RPC = 10 Bridge 1 ID=42 LAN 1 Bridge 3 IP=45 LAN 5 New Designated Bridge for LAN 5 Bridge 5 ID-83 Bridge 4 ID=57 RPC = 5!!! Bridge 2 LAN 3 LAN 4 Time = max age (20 sec) + 2*forward delay (15 sec Listening + 15 sec Learning) = 50 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 68 Page 06-34

STP Convergence Time Failure of Root Bridge LAN 2 Bridge 1 ID=42 LAN 1 Bridge 3 IP=45 New Route Bridge LAN 5 Bridge 5 ID-83 Bridge 4 ID=57 Bridge 2 LAN 3 LAN 4 Time = max age (20 sec) + 2*forward delay (15 sec Listening + 15 sec Learning) = 50 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 69 STP Convergence Time Failure of Root Bridge New Topology LAN 2 Port-Id=1!!! New Route Bridge Bridge 3 IP=45 Bridge 4 ID=57 Port-Id=2 LAN 5 LAN 1 Bridge 5 ID-83 Bridge 2 LAN 3 LAN 4 Time = max age (20 sec) + 2*forward delay (15 sec Listening + 15 sec Learning) = 50 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 70 Page 06-35

STP Convergence Time Failure of Root Port LAN 2 MAC D Bridge 1 ID=42 LAN 1 LAN 5 New Designated Bridge for LAN 5 Bridge 5 ID-83 Bridge 4 ID=57 Bridge 2 LAN 3 LAN 4 Time = 2*forward delay (15 sec Listening + 15 sec Learning) = 30 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 71 STP Convergence Time Failure of Root Port - Interruption of Connectivity LAN 2 MAC D Filtering for until entry ages out Bridge 1 ID=42 LAN 1 SA data DA D A L2 LAN 5 Designated Port Root Port Bridge 5 ID-83 Bridge 4 ID=57 Bridge 2 LAN 3 LAN 4 Time = 2*forward delay (15 sec Listening + 15 sec Learning) = 30 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 72 Page 06-36

STP Convergence Time Failure of Root Port Topology Change Notification (TCN) LAN 2 MAC D Bridge 1 ID=42 LAN 1 LAN 5 TCN to flush MAC entries in Bridging Table Designated Port Root Port Bridge 5 ID-83 Bridge 4 ID=57 Bridge 2 LAN 3 LAN 4 Time = 2*forward delay (15 sec Listening + 15 sec Learning) = 30 sec 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 73 Some STP Facts disadvantages of STP active paths are always calculated from the root, but the actual information flow of the network may use other paths note: network-manager can control this via Bridge Priority, Path Costs und Port Priority to achieve a certain policy under normal operation hence STP should be designed to overcome plug and play behaviour of default values redundant paths cannot be used for load balancing redundant bridges may be never used if there is no failure of the currently active components for remote bridging via WAN the same is true for redundant WAN links convergence time between 30 and 50 seconds note: in order to improve convergence time Rapid Spanning Tree Protocol has been developed (802.1D version 2004) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 74 Page 06-37

Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 75 Introduction Rapid Spanning Tree (RSTP) IEEE 802.1D version 2004 (former IEEE 802.1w) Can be seen as an evolution of the Spanning Tree Protocol (STP; IEEE 802.1D) Capable of reverting back to 802.1D version 1998 Convergence time reduced to few seconds!!! Terminology slightly changed Blocking port role is split into the Backup and Alternate port roles Alternate port Backup port Root port and Designated port roles still remain the same New port state Discarding (see next slides for details) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 76 Page 06-38

Port States Comparison STP (802.1d) Port State RSTP (802.1w) Port State Is Port included in active Topology? Is Port learning MAC addresses? disabled discarding No No blocking discarding No No listening discarding Yes No learning learning Yes Yes forwarding forwarding Yes Yes 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 77 Port Roles Root Port Role Receives the best BPDU (so it is closest to the root bridge) Designated Port Role A port is designated if it can send the best BDPU on the segment to which it is connected On a given segment, there can be only one path toward the root-bridge 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 78 Page 06-39

New Port Roles Alternate Port Roles A port blocked by receiving BPDU s from a different bridge Provides an alternate path to the root bridge Root Bridge D D R R= Root Blocked A = Alternate D = Designated 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 79 New Port Roles Backup Port A port blocked by receiving BPDU s from the same bridge Provides a redundant connectivity to the same segment Root Bridge D D R R D B = Backup 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 80 Page 06-40

NEW BPDU Handling Faster Failure Detection BPDU's acting now as keepalives messages Different to the 802.1D STP a bridge now sends a BPDU with its current information every <hello-time> seconds (2 by default), even if it does not receive any from the root bridge If hellos are not received for 3 consecutive times, port information is invalidated because BPDU's are now used as keep-alive mechanism between bridges If a bridge fails to receive BPDU's from a neighbor, the connection has been lost No more max age and message age fields Hop count is used instead 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 81 Proposal / Agreement Explicit handshake between bridges Upon link up event the bridge sends a proposal to become designated for that segment Remote bridge responses with an agreement if the port on which it received the proposal is the root port of the remote bridge As soon as receiving an agreement, bridge moves the port to the forwarding state 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 82 Page 06-41

BPDU Flag Field New Values Few changes have been introduced by RSTP TC and TCA used by old STP RSTP also uses the 6 remaining bits 0 1 2 3 4 5 6 7 Proposal Topology Change (TC) Topology Change ACK (TCA) Agreement Forwarding Learning Port role 00 Unknown 01 Alternate/Backup 10 Root 11 Designated 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 83 Proposal/Agreement Sequence Suppose a new link is created between the root and switch A and then a new switch B is inserted Root 1. Proposal A P1 P2 2. Agreement P1 Designated Port -> Forwarding State P2 Root Port Root A 1. Proposal B P1 P2 P3 P4 2. Agreement P3 Designated Port -> Forwarding State P4 Root Port 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 84 Page 06-42

Slow Convergence with Legacy STP 1 A new link between A and Root is being added to the bridged network New port activated, BPDU s start traveling Root A New port coming up on the root will immediately cause switch A to enter the listening state hence blocking all traffic BPDU's from the root start propagating towards the leaves through A B C Current Spanning Tree D 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 85 Slow Convergence with Legacy STP 2 BPDUs Root BPDUs B A C BPDUs BPDUs P1 BPDUs D Very quickly, the BPDU's from the root bridge reach D that immediately blocks its port P1. The topology has now converged, but the network is disrupted for twice forward delay because A needs time for listening (STP convergence time) and learning on the new port 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 86 Page 06-43

Slow Convergence with Legacy STP 3 Root A New Spanning Tree B C P1 D 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 87 Fast Convergence with RSTP 1 A new link between A and Root is being added to the bridged network 1 Root B A C Current Spanning Tree D Both ports on link between A and the root are put in so called designated blocking as soon as they come up. As soon as A receives the roots BPDU, it blocks its non-edge designated ports until synchronization is achieved. Through the agreement A explicitly authorizes the root bridge to put its port in forwarding 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 88 Page 06-44

Fast Convergence with RSTP 2 Root Now the link between switch A and the root is put in forwarding state. B 2 A C New Spanning Tree t1 The network below switch A is still blocking until port roles are negotiated at the next stage between switch A and switch B or A and C. Switch B and C will enter the new spanning tree and A will put its ports in the forwarding state and the negotiations will proceed between C and D D 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 89 Fast Convergence with RSTP 3 Root Switch C blocks its port to D because it root path costs of D are better than the root path costs of C B A C New Spanning Tree t2 P1 We have reached the final topology, which means that port P1 on D ends up blocking. It's the same final topology as for the STP example. But we got this topology just time necessary for the new BPDU's to travel down the tree. No timer has been involved in this quick convergence. 3 D Convergence Time < 1 second 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 90 Page 06-45

Rapid Transition to Forwarding State Most important feature in 802.1w The legacy STP was passively waiting for the network to converge before turning a port into the forwarding state New RSTP is able to actively confirm that a port can safely transition to forwarding Real feedback mechanism, that takes place between RSTP-compliant bridges To achieve fast convergence on a port, the protocol relies upon 2 new variables Edge ports Link type 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 91 Rapid Transition to Forwarding State Edge Ports Ports, which are directly connected to end stations cannot create bridging loops in the network and can thus directly perform on link setup transition to forwarding, skipping the listening and learning states Link type Is automatically derived from the duplex mode of a port A port operating in full-duplex will be assumed to be point-to-point A port operating in half-duplex will be assumed to be a shared port RSTP can only achieve rapid transition to forwarding On edge ports On point-to-point links (trunks between L2 switches) But not on shared Ports 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 92 Page 06-46

Accepting Inferior BPDU's B looses root port and sends BPDU claiming to be the root C immediately becomes designated for the blocked link between C and B and sends a proposal to B B sends an agreement and C set its port to forwarding Like Cisco's Backbone Fast Root Indirect Failure for Switch C B Inferior BPDU I am the root C 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 93 Accepting New Root Port BPDU's C looses root port and sends BPDU on the blocked link agreeing that this port is now root port C set its port to forwarding Like Cisco's Uplink Fast Root B Direct Failure for Switch C C New Root Port, Put your Port into Forwarding State 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 94 Page 06-47

Topology Change Detection When a RSTP bridge detects a topology change, the following happens: It starts the TC While timer with a value twice the hello time for all its non-edge designated ports and its root port if necessary It flushes the MAC addresses associated with all these ports from the MAC bridging table 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 95 Topology Change Propagation When a bridge receives a BPDU with the TC bit set from a neighbor, the following happens: It clears the MAC addresses learnt on all its ports except the one that received the topology change It starts the TC While timer and sends BPDU's with TC set on all its designated ports and root port (RSTP no longer uses the specific TCN BPDU, unless a legacy bridge need to be notified) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 96 Page 06-48

Topology Change Propagation T The originator of the TC directly floods this information through the network 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 97 Agenda Introduction Transparent Bridging Basics Principles Broadcast Storm Problem Spanning Tree Protocol Introduction Details Convergence Rapid Spanning Tree Protocol Routing Principles 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 98 Page 06-49

Router router forwards packets based on layer 3 addresses and protocols layer 3 address structured versus unstructured layer 2 address at least two level hierarchy: subnet and end system (host) hardware independent identifies a certain end system located in one subnet in a non-ambiguous way a structured address is laid upon the unstructured MACaddress router connects subnets knowing the best path to other subnets 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 99 Router and OSI Model System A System B 7 7 6 6 5 4 3 network protocol transport protocol 3 3 network protocol 5 4 3 2 2 router as relay 2 2 1 1 1 local port 1 port 2 LAN 1 LAN 2 1 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 100 Page 06-50

Requirements for Routers consistent layer-3 functionality for entire transport system from one end-system over all routers in between to the other end-system hence routing is not protocol-transparent all elements must speak the same language end-system must know about default router on location change, end-system must adjust its layer 3 address to keep the routing tables consistent routers must exchange information about the network topology by using routing-protocols 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 101 Routing Facts 1 in contrast to bridges router maintains only the subnet-part of the layer 3 addresses in its routing table the routing table size is direct proportional to the number of subnets and not to the number of end-systems transport on a given subnet still relies on layer 2 addresses end systems forward data packets for remote destinations to a selected router using the router's MAC-address as destination only these packets must be processed by the router 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 102 Page 06-51

Routing Facts 2 flow control between router and end system is principally possible end systems knows about the local router broadcast/multicast-packets in the particular subnet are blocked by the router so broad/multicast traffic on the subnets doesn't stress WAN connections independent of layer 1, 2 so coupling of heterogeneous networks is possible routers can use redundant paths meshed topologies are usual routers can use parallel paths for load balancing 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 103 Example Topology: Bridging Bridging Table B3 Host D MAC B s2 s2 MAC D MAC C MAC D s2 e0 e0 Bridging Table B4 s1 Bridging Table B1 e0 MAC B e0 MAC C s2 MAC D s2 s1 MAC B e0 s1 B1 s2 s2 B3 s2 B2 s1 Bridging Table B2 s1 s3 s1 B4 e0 MAC B MAC C MAC D s1 e0 s1 MAC C MAC B s1 Host A Host B MAC C MAC D s3 s2 Host C link deactivated by spanning tree 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 104 Page 06-52

Frame to MAC D (1) Host D MAC D Bridging Table B1 e0 MAC B MAC C MAC D e0 s2 s2 B1 B3 B2 B4 -> MAC D s2 MAC B MAC C Host A Host B Host C link deactivated by spanning tree 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 105 Frame to MAC D (2) MAC D B3 B1 B2 s2 B4 -> MAC D MAC B Bridging Table B2 MAC C s1 MAC B s1 Host A Host B MAC C s3 Host C MAC D s2 link deactivated by spanning tree 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 106 Page 06-53

Frame to MAC D (3) Bridging Table B3 s2 MAC B s2 MAC C s2 MAC D e0 e0 MAC D Host D B1 B3 B2 -> MAC D B4 MAC B MAC C Host A Host B Host C link deactivated by spanning tree 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 107 Frame to MAC D (4) Host D -> MAC D MAC D e0 B3 B1 B2 B4 MAC B MAC C Host A Host B Host C link deactivated by spanning tree 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 108 Page 06-54

Example Topology: Generic Routing L3 1.1 Def-Gw 1.9 Host A Routing Table R3 1 R1 2 R2 s1 s2 3 local e0 L3 1.2 Def-Gw 1.9 Host B Net 3 e0 MAC T Host D L3 3.1 Def-Gw 3.9 MAC D Routing Table R2 1 R1 s1 s1 s2 Routing Table R1 2 R4 s3 R3 1 local e0 3 R3 s2 s1 2 R2 s2 s2 R4 R1 R2 3 R3 s1 s1 s2 s1 s3 e0 1.9 e0 2.9 Net 1 MAC R Routing Table R4 MAC S Net 2 MAC B 1 R2 s1 MAC C 2 local e0 net-id 3 R2 s2 host-id net-id next hop port L3 2.1 Def-Gw 2.9 Host C 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 109 Frame 1.1 to 3.1 (1) Net 3 Host D L3 3.1 Def-Gw 3.9 MAC D Routing Table R1 1 local e0 MAC T 2 R2 s2 3 R3 s1 R3 L2 L3 -> MAC R 1.1 -> 3.1 s1 R1 R2 R4 1.9 2.9 Net 1 MAC R MAC S Net 2 MAC B MAC C L3 1.1 Def-Gw 1.9 Host A L3 1.2 Def-Gw 1.9 Host B L3 2.1 Def-Gw 2.9 Host C 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 110 Page 06-55

Frame 1.1 to 3.1 (2) Routing Table R3 1 R1 s1 2 R2 s2 3 local e0 Net 3 e0 MAC T Host D L3 3.1 Def-Gw 3.9 MAC D L2 L3 L2 frame (e.g. HDLC) 1.1 -> 3.1 R3 R1 R2 R4 1.9 2.9 Net 1 MAC R MAC S Net 2 MAC B MAC C L3 1.1 Def-Gw 1.9 Host A L3 1.2 Def-Gw 1.9 Host B L3 2.1 Def-Gw 2.9 Host C 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 111 Frame 1.1 to 3.1 (3) L2 L3 MAC T -> MAC D 1.1 -> 3.1 Net 3 Host D L3 3.1 Def-Gw 3.9 MAC D MAC T R3 R1 R2 R4 1.9 2.9 Net 1 MAC R MAC S Net 2 MAC B MAC C L3 1.1 Def-Gw 1.9 Host A L3 1.2 Def-Gw 1.9 Host B L3 2.1 Def-Gw 2.9 Host C 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 112 Page 06-56

OSI Comparison Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Bridge Router Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network MAC addresses not routable NetBIOS over NetBEUI not routable (no L3) Bridge supports different physical media on each port E.g. 10Mbit/s to 100Mbit/s Router supports different layer-2 technologies E.g. Ethernet to Frame Relay Data Link Data Link Physical Physical 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 113 Transparent Bridging versus Routing Bridging depends on MAC addresses only invisible for end-systems; transparent for higher layers must process every frame number of table-entries = number of all devices in the whole network Routing requires structured addresses (must be configured) end system must know its default-router processes only frames addressed to it number of table-entries = number of subnets only Spanning Tree eliminates redundant lines; no load balance no flow control (may be changed by usage of MAC Pause command) redundant lines and load balance possible flow control is possible (router is seen by end systems) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 114 Page 06-57

Transparent Bridging versus Routing Bridging no LAN/WAN coupling because of high traffic (broadcast domain!) paths selected by STP may not match communication behaviour / needs of end systems faster, because implemented in HW; no address resolution location change of an endsystem does not require updating any addresses Routing does not stress WAN with subnet's broad- or multicasts; commonly used as "gateway" router knows best way for each frame slower, because usually implemented in SW; address resolution (ARP) necessary location change of an endsystem requires adjustment of layer 3 address (may be solved by DHCP) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 115 Transparent Bridging versus Routing Bridging spanning tree necessary against endless circling of frames and broadcast storms Routing routing-protocols necessary to determine network topology but today's L2 switches can improve network performance by enabling full duplex, collisionfree subnets MAC address resolution of routers is considered as unnecessary overhead -> trend goes to layer 3 switching (fast routing) 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 116 Page 06-58

Most Important! bridge separates LAN into multiple collision domains but a bridged network is still one broadcast domain broadcast frames are always flooded router separates the whole Inter-network into multiple broadcast domains broadcast frames arriving on a LAN are always stopped at the router they can t leave their origin LAN 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 117 Ethernet Switching Ethernet switch is basically a bridge, differences are only: faster because implemented in HW LAN Switch multiple ports improved functionality (e.g. VLAN) note: packet switching / connectionless mode with frame forwarding based on unstructured MAC addresses don't confuse it with WAN Switching! e.g. X.25 switch, Frame Relay switch, ATM switch completely different! that is packet switching / connection-oriented mode with forwarding based on local connection identifiers 2009, D.I. Lindner / D.I. Packet Switching on L2, v4.12 118 Page 06-59