5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.

Slides:



Advertisements
Similar presentations
Interconnection: Switching and Bridging CS 4251: Computer Networking II Nick Feamster Fall 2008.
Advertisements

Communication Networks Recitation 3 Bridges & Spanning trees.
University of Calgary – CPSC 441.  We need to break down big networks to sub-LANs  Limited amount of supportable traffic: on single LAN, all stations.
CSCI 465 D ata Communications and Networks Lecture 20 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Chapter 9 Local Area Network Technology
CS 4700 / CS 5700 Network Fundamentals Lecture 7: Bridging (From Hub to Switch by Way of Tree) Revised 1/14/13.
CPSC 441 TUTORIAL TA: FANG WANG HUBS, SWITCHES AND BRIDGES Parts of the slides contents are courtesy of the following people: Jim Kurose, Keith Ross:
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Internetworking.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r LAN addresses and ARP r Ethernet Some slides are in courtesy of J.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
LAN switching and Bridges
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
Connecting LANs, Backbone Networks, and Virtual LANs
Semester 1 Module 8 Ethernet Switching Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
LAN Overview (part 2) CSE 3213 Fall April 2017.
Chapter 4: Managing LAN Traffic
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
1 Network Equipment Technologies Network Equipment Technologies.
Lecture 17 Ethernet r Widely deployed because: m First LAN technology m Simpler and less expensive than token LANs and ATM m Kept up with the speed race:
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
5: DataLink Layer5-1 Ethernet “dominant” wired LAN technology: r cheap $20 for 100Mbs! r first widely used LAN technology r Simpler, cheaper than token.
5: DataLink Layer5a-1 Chapter 5: The Data Link Layer Last time: r multiple access protocols and LANs r link layer addressing, ARP r specific link layer.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
5: DataLink Layer5c-1 Today r Assign Homework m Ch5 #1,4,5,7,11,12 Due Wednesday October 22 m Ch5 #13-16,18,20 Due Monday, October 27 r Project #2 due.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
M. Veeraraghavan (originals by J. Liebeherr) 1 Need for Routing in Ethernet switched networks What do bridges do if some LANs are reachable only in multiple.
5: DataLink Layer5-1 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r Multi-tier design provides.
Ch. 15 Connecting LANs.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
5: DataLink Layer5-1 Hubs Hubs are essentially physical-layer repeaters: m bits coming from one link go out all other links m at the same rate m no frame.
5: DataLink Layer5-1 Link-layer switches. 5: DataLink Layer5-2 Hubs … physical-layer (“dumb”) repeaters: m bits coming in one link go out all other links.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
4. Interconnecting Networks: Routers. © Tallal Elshabrawy 2 Bridges Vs Routers BRIDGES DO WELL IN SMALL (FEW HUNDRED HOSTS) WHILE ROUTERS USED IN LARGE.
Chapter 3 Part 1 Switching and Bridging
Ethernet switches and IP routers
Link Layer 5.1 Introduction and services
MAC Addresses and ARP 32-bit IP address:
3. Internetworking (part 2: switched LANs)
Chapter 4 Data Link Layer Switching
: An Introduction to Computer Networks
Hubs Hubs are essentially physical-layer repeaters:
ARP: Address Resolution Protocol
Chapter 3 Part 1 Switching and Bridging
Hubs Hubs are essentially physical-layer repeaters:
LAN switching and Bridges
Chapter 6 The Link Layer and LANs
Communication Networks NETW 501
LAN switching and Bridges
Dr. Rocky K. C. Chang 23 February 2004
Chapter 15. Connecting Devices
LAN switching and Bridges
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Chapter 5 Data Link Layer – Hub, Switch
Virtual LAN (VLAN).
Presentation transcript:

5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie

5: DataLink Layer 5a-2 Bridges  Link layer device  stores and forwards Ethernet frames  examines frame header and selectively forwards frame based on MAC dest address  when frame is to be forwarded on segment, uses CSMA/CD to access segment  transparent  hosts are unaware of presence of bridges  plug-and-play, self-learning  bridges do not need to be configured

5: DataLink Layer 5a-3 Forwarding How do determine to which LAN segment to forward frame? Looks like a routing problem...

5: DataLink Layer 5a-4 Self learning  A bridge has a bridge table  entry in bridge table:  (Node LAN Address, Bridge Interface, Time Stamp)  stale entries in table dropped (TTL can be 60 min)  bridges learn which hosts can be reached through which interfaces  when frame received, bridge “learns” location of sender: incoming LAN segment  records sender/location pair in bridge table

5: DataLink Layer 5a-5 Filtering/Forwarding When bridge receives a frame: index bridge table using MAC dest address if entry found for destination then{ if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated } else flood forward on all but the interface on which the frame arrived

5: DataLink Layer 5a-6 Bridge example Suppose C sends frame to D and D replies back with frame to C.  Bridge receives frame from from C  notes in bridge table that C is on interface 1  because D is not in table, bridge sends frame into interfaces 2 and 3  frame received by D

5: DataLink Layer 5a-7 Bridge Learning: example  D generates frame for C, sends  bridge receives frame  notes in bridge table that D is on interface 2  bridge knows C is on interface 1, so selectively forwards frame to interface 1

5: DataLink Layer 5a-8 Needed: Routing  Complex large LANs need alternative routes  Load balancing  Fault tolerance  Bridge must decide whether to forward frame  Bridge must decide which LAN to forward frame on  Routing selected for each source-destination pair of LANs  Done in configuration  Usually least hop route  Only changed when topology changes

5: DataLink Layer 5a-9 Spanning Tree  Bridge automatically develops routing table  Automatically update in response to changes  Frame forwarding  Address learning  Loop resolution Reference: Stallings

5: DataLink Layer 5a-10 Frame forwarding  Maintain forwarding database for each port  List station addresses reached through each port  For a frame arriving on port X:  Search forwarding database to see if MAC address is listed for any port except X  If address not found, forward to all ports except X  If address listed for port Y, check port Y for blocking or forwarding state Blocking prevents port from receiving or transmitting  If not blocked, transmit frame through port Y

5: DataLink Layer 5a-11 Address Learning  When frame arrives at port X, it has come form the LAN attached to port X  Use the source address to update forwarding database for port X to include that address  Timer on each entry in database (reset whenever frame received)  Each time frame arrives, source address checked against forwarding database

5: DataLink Layer 5a-12 Loop of Bridges

5: DataLink Layer 5a-13 Loop Resolving  The simple learning mechanism described fails in presence of loops in the LAN  Loops may be present by mistake, or deliberately provided for redundency  This problem is resolved by running a distributed spanning tree algorithm

5: DataLink Layer 5a-14 Spanning Tree Algorithm  Creates a logical, or “active” topology that behaves like a spanning tree  Makes alternate bridges redundant  Is run periodically, so will discover failures and use alternate bridges if necessary Reference: Fred Halsall: “Data Communications, Computer Networks and Open Systems”, 4 th Edition.

5: DataLink Layer Spanning tree  Think of the LAN as a graph that possibly has loops (LAN segments as nodes, bridges as edges)  The spanning tree is a subgraph of this graph that covers all vertices (LAN segments), but contains no cycles.

5: DataLink Layer Spanning tree algorithm  Spanning tree algorithm is a protocol used by a set of bridges to agree upon a spanning tree for a particular extended LAN.  Essentially, this means that each bridge decides the ports over which it is and is not willing to forward packets.  Some ports (or even entire bridges) may not participate in a spanning tree  How does the bridge select the ports to include (/exclude)?

5: DataLink Layer 5a-17 Spanning Tree Algorithm  Working: Bridges regularly exchange frames known as Bridge Protocol Data Units (BPDUs). This exchange does the following: 1. Each bridge has a unique Identifier 2. Bridge with highest priority and smallest ID is selected as root bridge. 3. Each bridge determines for each port, the least cost path from root bridge to this port. This is the Root Path Cost (RPC) for this port. a)Select the port which has the least RPC and designate it as the Root Port (RP). This is the port which will be used for communicating with the root.

5: DataLink Layer Algorithm Once root port is determined, one bridge port is selected for each LAN segment as the designated bridge port (DP) over which which frames will be sent for that LAN segment. a)This is a port (which is NOT a root port) which has the least path cost to the root b)The ports of the root bridge are always DPs for the LAN segments connected to the root bridge 2. The state of the bridge ports can be set either to forwarding or blocking. a)All ports that are either RPs or DPs are forwarding, the rest are blocking.

5: DataLink Layer Example:

5: DataLink Layer Example: working  B1 is the root bridge  B3 and B5 are both connected to LAN A, but B5 is the designated port since it's closer to root  B5 and B7 are both connected to LAN B, but B5 is the designated port due to smaller ID (equal distance).

5: DataLink Layer 5a-21 Topology Initialization  BPDUs are sent to a broadcast MAC address of all bridges on the LAN  All bridges initially assume they are the root bridge  Each BPDU contains (self ID, root ID, transmitting port ID, RPC of this port)  A bridge updates its own info if it receives an update which  identifies a root with smaller id or  identifies a root with equal id but with shorter distance  the root id and distance are equal, but the sending bridge has a smaller id  The bridge adds 1 to the received RPC in the above update and saves this info.

5: DataLink Layer Initialization...  When a bridge determines that it's not the root bridge, it stops generating messages on its own and only forwards configuration messages from others  Also, when a bridge determines that it's the DP for that LAN, it stops sending messages on that port  When the system stabilizes, only the root is generating messages, and the messages are forwarded over only the spanning tree

5: DataLink Layer 5a-23 Topology Change  Root bridge regularly transmits BPDUs, forwarded by all bridges on all ports  Bridges will keep timers associated with each of its forwarding ports  When timers expire, procedure similar to topology initialization is done

5: DataLink Layer 5a-24 Some bridge features  Isolates collision domains resulting in higher total max throughput  limitless number of nodes and geographical coverage  Can connect different Ethernet types  Transparent (“plug-and-play”): no configuration necessary

5: DataLink Layer 5a-25 Bridges vs. Routers  both store-and-forward devices  routers: network layer devices (examine network layer headers)  bridges are link layer devices  routers maintain routing tables, implement routing algorithms  bridges maintain bridge tables, implement filtering, learning and spanning tree algorithms

5: DataLink Layer 5a-26 Routers vs. Bridges Bridges + and - + Bridge operation is simpler requiring less packet processing + Bridge tables are self learning - All traffic confined to spanning tree, even when alternative bandwidth is available - Bridges do not offer protection from broadcast storms

5: DataLink Layer 5a-27 Routers vs. Bridges Routers + and - + arbitrary topologies can be supported, cycling is limited by TTL counters (and good routing protocols) + provide protection against broadcast storms - require IP address configuration (not plug and play) - require higher packet processing  bridges do well in small (few hundred hosts) while routers used in large networks (thousands of hosts)

5: DataLink Layer 5a-28 Ethernet Switches  Essentially a multi- interface bridge  layer 2 (frame) forwarding, filtering using LAN addresses  Switching: A-to-A’ and B- to-B’ simultaneously, no collisions  large number of interfaces  often: individual hosts, star-connected into switch  Ethernet, but no collisions!

5: DataLink Layer 5a-29 Ethernet Switches  cut-through switching: frame forwarded from input to output port without awaiting for assembly of entire frame  slight reduction in latency  combinations of shared/dedicated, 10/100/1000 Mbps interfaces