Chapter 16– Connecting LANs

Slides:



Advertisements
Similar presentations
Network Devices Repeaters, hubs, bridges, switches, routers, NICs.
Advertisements

CCNA3: Switching Basics and Intermediate Routing v3.0 CISCO NETWORKING ACADEMY PROGRAM Switching Concepts Introduction to Ethernet/802.3 LANs Introduction.
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.
Topic 7 Local Area Networks (LAN)
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 19 Introduction to Computer Networks.
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 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
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.
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
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.
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
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.
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.
Connecting LANs, Backbone Networks, and Virtual LANs
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
CS3502: Data and Computer Networks Local Area Networks - 4 Bridges / LAN internetworks.
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.
Computer Networks 15-1 Connecting Devices. Connecting Device We divide connecting devices into five different categories based on the layer in which they.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Local Area Networks.
Computer Networks 15-1 Chapter 15. Connecting LANs, Backbone Networks, and Virtual LANs 15.1 Connecting devices 15.2 Backbone networks 15.3 Virtual LANs.
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.
Connecting LANs, Backbone Networks, and Virtual LANs
NET 324 D Networks and Communication Department Lec1 : Network Devices.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
Cisco Network Devices Chapter 6 powered by DJ 1. Chapter Objectives At the end of this Chapter you will be able to:  Identify and explain various Cisco.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs.
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
Ch. 15 Connecting LANs.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
Network Devices Repeaters, hubs, bridges, switches, routers, NIC’s.
Chapter 3 Part 1 Switching and Bridging
Youngstown State University Cisco Regional Academy
CS 3700 Networks and Distributed Systems
Link Layer 5.1 Introduction and services
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.
Lab 2 – Hub/Switch Data Link Layer
MAC Addresses and ARP 32-bit IP address:
Bridging.
Chapter 4 Data Link Layer Switching
ARP: Address Resolution Protocol
Chapter 3 Part 1 Switching and Bridging
Lab 2 – Hub/Switch Data Link Layer
CS 3700 Networks and Distributed Systems
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
Network Devices Hub Definition:
Communication Networks NETW 501
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
CS4470 Computer Networking Protocols
Connections Johan Lukkien
Datornätverk A – lektion 11
Chapter 15. Connecting Devices
LAN switching and Bridges
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
Presentation transcript:

Chapter 16– Connecting LANs Introduction to Information Technologies Fall 2004 Chapter 16– Connecting LANs History of Internet

Limitations of Ethernet Technologies Distance (the length of the cable) 200 m in Thin Ethernet (10Base2) 100 m in twisted pair Ethernet (10BaseT or 100BaseT or Fast Ethernet) Number of collisions when too many stations are connected to the same segment The situation is similar in other LAN technologies Spring 2006 Computer Networks

Devices that Extend Local Networks Physical layer devices (Repeaters and hubs) MAC layer devices (Bridges and two-layer switches) Network layer devices (Routers and three layers switches) Spring 2006 Computer Networks

Repeaters Used for linking LANs segments due to the constraints imposed by the length of cables Repeater work at the physical layer and they recognize only electrical signals representing bits) Used also on long distance point-to-point links The intention is to have a single network The distance is extended, but the collision domain is the same Basically dummy devices, with no software, just repeating (regenerating) the signals from one segment to another Low cost and ease of configuration Plug-and-play Spring 2006 Computer Networks

Repeater is a Regenerator Spring 2006 Computer Networks

Extending LANs with Repeaters Merging Corporate and Manufacturing floor networks into one LAN Extending Thin Ethernet in a building with three floors Spring 2006 Computer Networks

Repeaters: Advantages and Disadvantages Plug and play (no configuration required.) Disadvantages Not scalable (Ethernet standard allows only 4 repeaters. More than 4 would introduce unacceptable delay.) No hetoregenity (The connected networks must have the same electrical properties.) Spring 2006 Computer Networks

Hubs A multiport repeater used in 10BaseT and Fast Ethernet Hubs give a possibility to have a star topology The advantage to a repeater is in the easy way of adding and removing additional hosts Connecting several hubs helps the length of the network can be extended Spring 2006 Computer Networks

Hub’s Limitations Resolves the problem with the distance, but does not resolve the problem with collisions. The net with the hubs can have lower throughput than the separate networks. The througput of the three separate networks = 3x10Mbps The throughput of the connected network = 10Mbps Spring 2006 Computer Networks

Protocol Stacks with Repeaters or Hubs Telnet, FTP, HTTP, email application application transport transport network network data link data link 10Base-T physical physical Host on network 1 Repeater or hub (forwards bits) Host on network 2 Spring 2006 Computer Networks

Bridges Improve performance, not only by extending the distance, but also by traffic partitioning. Forward frames based on destination’s MAC address – operate at tha data-link layer. Bridges can understand Ethernet frames. Separate stations connected to different ports of the bridge. Foprward frames on the other ports only when necessary, thus separating traffic. Spring 2006 Computer Networks

Bridges – A Simple Example The frame from H1 to H4 is forwarded by the bridge The frame from H1 to H3 is dropped by the bridge H1 H2 H3 H4 H5 H6 LAN1 P2 B1 P1 LAN2 Traffic within the same group Traffic between the two groups Spring 2006 Computer Networks

Bridge table Spring 2006 Computer Networks

How Does a Bridge Know Where the Nodes are Located? Different techniques exist Static administrator types them in and maintains them too much trouble lack of flexibility Dynamic Bridges learn themselves administrators don’t have to maintain them! transparent operation. Plug and Play! Spring 2006 Computer Networks

Learning Bridges Learning Algorithm Forwarding Algorithm Start with empty hash table T that maps hosts to ports Receive frame from host x(src. addr, des. addr.) on port Pi, i=1,2,.. Add (src. addr., Pi) Delete old entries Forwarding Algorithm Receive frame f from host x(src. addr, des. addr.) on port Pi If T(des. addr.) = pi, discard the frame If T(des addr.) = pj (j  i), forward on port pj Else, T(des. addr.) is empty, forward on all the ports Spring 2006 Computer Networks

Learning Algorithm - Example B1 B2 P1 P2 P1 P2 t1 A A C F A to F t2 C C P1 B2 C to H P2 t3 D D D to E t4 B B B to C t5 B E H H H to D H P1 and P2 are port1 and port2 for bridges B1 and B2 t6 F F F to A P1 P2 B1 t7 E E E to A t8 D to E A means station A with Ethernet address A t9 A to D A D t10 B to E Spring 2006 Computer Networks

Cycles in Bridged Network 2. B1 and B2 forward the frame, F1 and F2 are generated 1. host writes frame F to destination which is unknown for B1 and B2 3. B2 receives F1, B1 receives F2 F B1 B2 B1 B2 B1 B2 F2 F1 F1 F2 4. B1 and B2 forward the frames F1 and F2 5. The situation in 3. is repeated and the frames are sent back 6. The frames can circulate in the network for ever F2 F1 F1 F2 B1 B2 B1 B2 B1 B2 F1 F2 Spring 2006 Computer Networks

Spaning Tree Bridges Used to introduce redundancy in a network in order to make it more reliable. If one bridge fails, the other can overtake. If all ports are kept active, loops can appear (circulation of broadcast frames is possible), duplicated frames are possible. By using the spanning tree, some ports are disabled and there is exactly one path from every LAN to every other LAN (no cycles and no circulating frames). The redundancy cannot be used to split the traffic. Spring 2006 Computer Networks

Spanning Tree - Example The corresponding graph The network 1 B1 B2 1 2 3 4 B1 Network 1 Network 2 Network 4 Network 3 B2 Networks are graph nodes, ports are graph edges The spanning tree is a connected graph which has no loops (cycles) The dotted links are the block ports on the bridge, in order to prevent loops and duplicated frames Spring 2006 Computer Networks

Spanning Tree Algorithm - Definitions Each bridge is assigned a unique identifier: Bridge ID If not assigned, the lowest MAC addresses of all ports is used as the bridge ID Each port within a bridge has a unique identifier (port ID). Typically the MAC address of the port is used. Root Bridge: The bridge with the lowest identifier is the root of the spanning tree. Root Port: Each bridge has a root port which identifies the next hop from a bridge to the root bridge. This is the port through which the root can be reached with minimum cost. Spring 2006 Computer Networks

Spanning Tree Algorithm – Definitions (cont.) Root Path Cost: For each bridge, the cost of the min-cost path to the root. Costs are assigned to each port or hop count is used Designated Bridge, Designated Port: Single bridge on a LAN that provides the minimal cost path to the root for this LAN: If two bridges have the same cost, select the one with highest priority If the min-cost bridge has two or more ports on the LAN, select the port with the lowest identifier Spring 2006 Computer Networks

Multiple LANs with Bridges with Costs Assigned 4 4 LAN 1 6 B1 B5 B6 2 Cost=4 1 5 B1 Cost=6 LAN 2 Cost=2 L2 L3 B6 Cost=4 2 3 Cost=5 Cost=6 Cost=2 B3 6 B5 6 B3 B2 LAN 3 Cost=1 B4 Cost=3 B2 4 Cost=4 5 L4 Cost=6 B4 The cost of sending from L1 to L4 via B1 and B2 is 6 Only costs for going from a bridge to a LAN are added Cost=5 LAN 4 Spring 2006 Computer Networks

Spanning Tree Algorithm Elect the root bridge Find the root port for every bridge Determine the designated bridge for each LAN and the designated port on the bridge Mark the root port and designated ports as forwarding (active) ports, the others as blocking (non-active) ports Spring 2006 Computer Networks

Example: Root Bridge and Root Ports 4 2 6 5 3 1 Root bridge and root ports are marked in red No root port to L4 Root Cost=3 Cost=6 Cost=2 Cost=8 Cost=6 Spring 2006 Computer Networks

Example: Designated Ports and the Spanning Tree B1 B2 B6 B5 B4 B3 4 2 6 5 3 1 4 Root L1 L2 B1 B5 B6 2 Cost=3 Cost=6 3 L2 2 L3 B3 6 B4 Cost=2 L3 B2 Cost=8 4 Cost=6 L4 L4 Spring 2006 Computer Networks

Another example Cost for each port is 1 (hop-count) B8 B3 B5 B7 B2 B1 Spring 2006 Computer Networks

The Root Bridge and the Spanning Tree Spring 2006 Computer Networks

Bridges: Advantages and Disadvantages Plug and play, transparent to the hosts. Extend the distance and separate traffic. Can connect different speeds Ethenets. Disadvantages: Homogenity (can support only networks with identical frame headers). Scalability (can connect tens of networks only). Transparency is sometimes misleading (looks like a single Ethernet, while really it is not). Spring 2006 Computer Networks

LAN Switches LAN switches are data link layer devices that enable multiple stations to be interconnected into a single larger network. They can be thought of as multi port bridges. Similar to bridges, switches forward and flood traffic based on MAC addresses. Because switching is performed in hardware instead of in software, it is significantly faster. Switches use either store-and-forward switching or cut-through switching when forwarding traffic. Spring 2006 Computer Networks

LAN Switches H1 H2 H3 LAN switching provides dedicated, collision-free communication between network devices, with support for multiple simultaneous conversations. LAN switches are designed to switch data frames at high speeds. LAN switches can interconnect a 10-Mbps and a 100-Mbps Ethernet LAN. H1 H3 H2 Spring 2006 Computer Networks

A LAN Switch The computer has a segment to itself – the segment is busy only when a frame is being transfered to or from the computer As a result, as many as one-half of the computers connected to a switch can send data at the same time Spring 2006 Computer Networks

Protocol Stacks with Bridges or Switches Telnet, FTP, HTTP, email application application transport transport network network CSMA/CD data link data link 10Base-T physical physical Host on network 1 Host on network 2 Bridge or switch (forwards Ethernet frames) Spring 2006 Computer Networks

Annimation for Better Understanding The following link will lead you to several annimations that explain important issues in the area of networking. Play annimation 9.1 and 9.2 to understand how repeaters and bridges work. http://www.netbook.cs.purdue.edu/othrpags/page15.htm Spring 2006 Computer Networks