Joining LANs - Bridges. Connecting LANs 4 Repeater –Operates at the Physical layer no decision making, processing signal boosting only 4 Bridges –operates.

Slides:



Advertisements
Similar presentations
Communication Networks Recitation 3 Bridges & Spanning trees.
Advertisements

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.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 19 Introduction to Computer Networks.
Fundamentals of Computer Networks ECE 478/578 Lecture #13: Packet Switching (2) Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
Chabot College Chapter 2 Review Questions Semester IIIELEC Semester III ELEC
Connecting LANs: Section Figure 15.1 Five categories of connecting devices.
CSE 534 Fundamentals of Computer Networks Lecture 4: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised.
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:
1 CCNA 3 v3.1 Module 7. 2 CCNA 3 Module 7 Spanning Tree Protocol (STP)
Internetworking Different networks –Different bit rates –Frame lengths –Protocols.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
Dec 6, 2007CS573: Network Protocols and Standards1 Transparent Bridging Network Protocols and Standards Winter
1 Version 3 Module 8 Ethernet Switching. 2 Version 3 Ethernet Switching Ethernet is a shared media –One node can transmit data at a time More nodes increases.
Internetworking Devices that connect networks are called Internetworking devices. A segment is a network which does not contain Internetworking devices.
Sept 14, 2004CS573: Network Protocols and Standards1 Spanning Tree Algorithm Network Protocols and Standards Autumn
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
CSE390 Advanced Computer Networks Lecture 7: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised Fall.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
1 Computer Networks LAN Bridges and Switches. 2 Where are we?
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
Layer 2 Switching. Overview Introduction Spanning Tree Protocol Spanning Tree Terms Spanning Tree Operations LAN Switch Types Configuring Switches.
Connecting LANs, Backbone Networks, and Virtual LANs
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
Chapter 4: Managing LAN Traffic
LECTURE 9 CT1303 LAN. LAN DEVICES Network: Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 7 Spanning Tree Protocol.
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning-Tree Protocol Cisco Networking Academy.
1 Spanning Tree Algorithm Advanced Computer Networks.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 LAN Switching and Wireless Implement Spanning Tree Protocols (STP) Chapter.
1 Transparent Bridging Advanced Computer Networks.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
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.
Routing and Routing Protocols
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning Tree Protocol.
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.
1 Version 3.0 Module 7 Spanning Tree Protocol. 2 Version 3.0 Redundancy Redundancy in a network is needed in case there is loss of connectivity in one.
Rehab AlFallaj.  Network:  Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and do specific task.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Ch. 15 Connecting LANs.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols (STP) LAN Switching and Wireless – Chapter.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Ethernet switches and IP routers
Networking Devices.
Connecting Devices LANs or WANs do not normally operate in isolation. They are connected to one another or to the Internet. To connect LANs or WANs, we.
3. Internetworking (part 2: switched LANs)
Chapter 4 Data Link Layer Switching
Spanning Tree Algorithm
: An Introduction to Computer Networks
Chapter 3 Part 1 Switching and Bridging
CT1303 LAN Rehab AlFallaj.
Intra-Domain Routing Jacob Strauss September 14, 2006.
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
Communication Networks NETW 501
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Dr. Rocky K. C. Chang 23 February 2004
Chapter 15. Connecting Devices
Presentation transcript:

Joining LANs - Bridges

Connecting LANs 4 Repeater –Operates at the Physical layer no decision making, processing signal boosting only 4 Bridges –operates at the Data Link layer forwarding decisions based on addresses no fragmentation/reassembly 4 Routers –operates at the Network Layer fragmentation/reassembly routing to distant networks

Two types of Bridges 4 Transparent or Spanning Tree –Processing overhead is in the bridges –Host interface is simple 4 Source Routing –Processing overhead is in the host interface

Sample topology

Spanning Tree Bridge Behavior 4 If the destination address is found to be in the direction of the port on which it arrived, do nothing 4 ex. source on LAN E and destination on LAN A not forwarded by B1

Learning the topology 4 If the destination is not known –forward the frame –Problem if the topology contains a loop

A B B1B2 A B B1 routing table is empty B2 routing table is empty Node A port B1 BB2 B

A B B1B2 B1 routing table is empty B2 routing table is empty Node A port B2 BB1 B

A B B1B2 B1 routing table is empty B2 routing table is empty Node A port B2 BB1 B Node A port 0 Etc. The message goes back and forth because each bridge sees the other’s transmission and does not know it has forwarded this same message before.

Creating a Spanning Tree 4 Set of all nodes in a graph 4 plus a subset of the links 4 so that all nodes are connected 4 but there is only one path between any pair of nodes 4 Redundant bridges provide backup, but do not participate in routing

Creating a Spanning Tree 4 Spanning Tree Algorithm For a graph, G=(V,E), a spanning tree is a subgraph, T=(v,E) where T is a tree and v are selected from V. The spanning tree connects all the vertices of the graph. 4 The Dijkstra/Prim algorithm finds a minimum spanning tree by starting at an arbitrary vertex and branching out, picking up new vertices as it goes. Think of the vertices as partitioned into three sets: –Tree vertices: in the tree constructed so far –Fringe vertices: not in the tree but adjacent to a vertex that is in the tree –Unseen vertices: all others 4 The Dijkstra/Prim algorithm constructs a minimum weight spanning tree. In the algorithm used in Spanning Tree bridges, there is no concept of weight. The task is somewhat simpler.

The Spanning Tree Algorithm 4 Select an arbitrary vertex to start the tree (the bridge with the lowest serial number) 4 While there are fringe vertices do –select an edge between a tree vertex and a fringe vertex and –add the selected edge and vertex to the tree 4 End 4 We assume a connected graph. There cannot be a spanning tree if the graph is not connected. Assuming a connected graph, the algorithm above will find a spanning tree.

Spanning Tree Implementation 4 In the implementation of the spanning tree, all the bridges participate. 4 The bridges send messages and receive replies to determine which bridge is the root. (Lowest serial number) 4 Once the root is identified, each bridge sends a message to the root from each port. 4 The root replies to each of these messages. Each bridge determines which of its ports is "closest" to the root. (whichever one gets its response first)

Bridge Protocol Create the Spanning Tree –Bridge with lowest ID becomes the root –All others determine which port provides best access to the root (root port) –For each LAN, determine the one bridge to be used to access the root of the spanning tree. Designated bridge for that LAN –For each bridge, root port and designated bridge ports are placed in forwarding state –Other ports are in blocking state

Try it Assume passing over a LAN takes time =1 and passing through a bridge takes time =2

Sample topology with root ports and designated bridge ports identified * = root port === = designated bridge port LAN A *

Examples 4 LAN B ==> LAN F 4 LAN C ==> LAN D –path taken is not always optimal, because not all bridge ports are available

One virtual LAN 4 All the LANs connected by the bridges –one virtual LAN –one address space 4 Each bridge learns how to forward to all nodes on all LANs

Forwarding behavior 4 Destination goes to port of arrival –no action by the bridge –LAN A ==> LAN A, not forwarded by B4 –LAN E ==> LAN A, not forwarded by B1 4 Destination known to be other than arrival port –forward toward destination –not always toward the root –LAN A ==> LAN D, forwarded by B4 on port 3 –LAN B ==> LAN C, forwarded by B3 on port 2 4 Destination not known –forward on all non-blocking ports except arrival port –LAN B==> unknown destination forwarded by B3 on ports 2 and 3

Port states 4 Each port is in one of five states –Blocking –Listening –Learning –Forwarding –Disabled Ref: Cisco: sw_ntman/cwsimain/cwsi2/cwsiug2/vlan2/stpapp.htm

Initialize to blocking 4 On initiatialization, a bridge moves into the blocking state –Discards frames received from the attached segment. –Discards frames switched from another port for forwarding. –Does not incorporate station location into its address database. (There is no learning at this point, so there is no address database update.) –Receives BPDUs and directs them to the system module. –Does not transmit BPDUs received from the system module. –Receives and responds to network management messages.

Blocking to listening 4 In the listening state, a bridge port –Discards frames received from the attached segment. –Discards frames switched from another port for forwarding. –Does not incorporate station location into its address database. (There is no learning at this point, so there is no address database update.) –Receives BPDUs and directs them to the system module. –Processes BPDUs received from the system module. –Receives and responds to network management messages.

From listening to learning 4 In the learning state –Discards frames received from the attached segment. –Discards frames switched from another port for forwarding. –Incorporates station location into its address database. –Receives BPDUs and directs them to the system module. –Receives, processes and transmits BPDUs received from the system module.. –Receives and responds to network management messages.

The forwarding state 4 A port in the forwarding state –Forwards frames received from the attached segment. –Forwards frames switched from another port for forwarding. –Incorporates station location into its address database. –Receives BPDUs and directs them to the system module. –Processes BPDUs received from the system module.. –Receives and responds to network management messages.

An abstraction of the spanning tree Unique path from each source to each destination clearly visible Two links with the same (E) label not desirable = destination host

Better diagram No longer have two links with the same label. Now have a node that represents two bridges, though. Call this a multibridge node.

Use of the diagram 4 Calculate the length of the journey for a frame traveling between any two LANs 4 number of LANs traversed 4 number of bridges that forward the frame –Transfer between children of a multibridge node count one LAN traversed, two bridges used –If there are more than two bridges represented by the multibridge node, there still are two bridges and one LAN used in the transfer.

Larger Example

Spanning tree for larger example

Examples 4 Source: G 4 Destination: I 4 Number of LANs: 1 (A) 4 Number of Bridges (ids): 2 (B6, B8)

Another example 4 Source: H 4 Destination: E 4 Number of LANs: 1 (A) 4 Number of Bridges: 2 (B7, B4)

One more example 4 Source: I 4 Destination: E 4 Number of LANs: 2 (A, E) 4 Number of Bridges: 3 (B7, B4, B5)

Maximum path length between nodes 4 Distance from the lowest leaf to the root 4 plus distance from the root to the lowest node that is not a descendent of the same multinode as the first leaf.

Example: 4 Maximum path is from any of {G, H, I, J} to the root plus the distance from the root to either of {B, C}

Source Routing Bridges 4 Source specifies which bridges are to forward the frame 4 Route is inserted in the frame header following the source address 4 Special use of a bit in the source address that would indicate a group address (group address not possible for source) to indicate that routing information follows.

Finding the route 4 Send a probe –Broadcast to all bridges –Each bridge forwards the probe on all its ports unless it has seen it before –The probe will reach the intended destination if it is possible By the best possible route By all possible routes 4 Destination node sends the probe back to the sender –Reverses the path in the header of the probe that arrived first

Workload 4 Network interface of the host must worry about route discovery and specification –Each network card has complexity to deal with –Complex may mean slower, more expensive 4 Bridge is very simple –Simple may mean fast 4 What is the best place to put the complexity?

Bridges summary 4 Two basic types: spanning tree and source routing 4 Spanning tree is easier to manage, but does not always give the optimal route 4 Source Routing always gives the optimal route, but involves more overhead. 4 Spanning tree is the standard, with source routing as an allowed option.