CMPE 150 – Winter 2009 Lecture 9 February 3, 2009 P.E. Mantey.

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.
Data link layer -- June Data link layer Computer Networks.
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.
CSCI 465 D ata Communications and Networks Lecture 20 Martin van Bommel CSCI 465 Data Communications & Networks 1.
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.
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.
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.
Data Link Layer Switching
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
1 Chapter 8 Local Area Networks - Internetworking.
The Protocol Stack Part of the protocol stack.
CMPE 150 – Winter 2009 Lecture 14 February 24, 2009 P.E. Mantey.
CMPE 150 – Winter 09 Lecture 2 January 8, 2009 P.E. Mantey.
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.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
Connecting LANs, Backbone Networks, and Virtual LANs
LAN Overview (part 2) CSE 3213 Fall April 2017.
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.
CSMA with Collision Detection CSMA/CD can be in one of three states: contention, transmission, or idle.
The Medium Access Control Sublayer Chapter 4 10/1/2015www.noteshit.com1.
CS3502: Data and Computer Networks Local Area Networks - 4 Bridges / LAN internetworks.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
10/18/2007 EETS Bluetooth Bluetooth Architecture Bluetooth Applications The Bluetooth Protocol Stack The Bluetooth Radio Layer The Bluetooth Baseband.
Mr. Mark Welton.  A computer network, or simply a network, is a collection of computers and other hardware interconnected by communication channels.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation Dynamic Channel Allocation  Delay for the divided.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 19.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
1 Kyung Hee University Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Chapter 11 Extending LANs 1. Distance limitations of LANs 2. Connecting multiple LANs together 3. Repeaters 4. Bridges 5. Filtering frame 6. Bridged network.
The Medium Access Control Sublayer Chapter 4 12/13/2015www.ishuchita.com1.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Ch. 15 Connecting LANs.
The Medium Access Control Sublayer Chapter 4. The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation in.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Link Layer 5.1 Introduction and services
Networking Devices.
Part III Datalink Layer 10.
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.
The Medium Access Control Sublayer
Chapter 4 Data Link Layer Switching
The Medium Access Control Sublayer
LAN switching and Bridges
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
LAN switching and Bridges
Connections Johan Lukkien
Part III Datalink Layer 10.
Chapter 15. Connecting Devices
LAN switching and Bridges
Presentation transcript:

CMPE 150 – Winter 2009 Lecture 9 February 3, 2009 P.E. Mantey

CMPE Introduction to Computer Networks Instructor: Patrick Mantey Office: Engr. 2 Room 595J Office hours: Tues 3-5 PM, Mon 5-6 PM* TA: Anselm Kia Web site: Text: Tannenbaum: Computer Networks (4 th edition – available in bookstore, etc. )

Syllabus

Internet Layering Level 5 -- Application Layer (rlogin, ftp, SMTP, POP3, IMAP, HTTP..) Level 4-- Transport Layer(a.k.a Host-to-Host) (TCP, UDP, ARP, ICMP, etc.) Level 3-- Network Layer (a.k.a. Internet) (IP) Level 2-- (Data) Link Layer / MAC sub-layer (a.k.a. Network Interface or Network Access Layer) Level 1-- Physical Layer

Today’s Agenda Repeaters, Hubs, Switches, Routers, … VLANS Midterm Review

Data Link Layer Switching Bridges from 802.x to 802.y Local Internetworking Spanning Tree Bridges Remote Bridges Repeaters, Hubs, Bridges, Switches, Routers, Gateways Virtual LANs

Bridges Bridges used to connect multiple LANS Link Layer –Do not look at anything in packets Work for any payload within the frame –IPv4, IPv6, Apple Talk, etc. –(vs. routers which work at packet (IP) level) Individual LANS are shared media (cable or hub) (Few hubs still in use – now switched Ethernet) LANS have promiscuous mode (i.e. “party line”) –Bridges provide isolation between LANS

Data Link Layer Switching Multiple LANs connected by a backbone to handle a total load higher than the capacity of a single LAN.

Bridges from 802.x to 802.y Operation of a LAN bridge from to

Bridges from 802.x to 802.y (2) The IEEE 802 frame formats. The drawing is not to scale.

Local Internetworking A configuration with four LANs and two bridges.

Bridge Operations Promiscuous mode – send all frames to all connected LANs Discard frames whose destination is same LAN as source –Keeps table of (LAN) addresses for each LAN Tables built by “flooding” –Send everything to everybody if not in table –See where frame comes from – add them to table –“backward learning” –Tables have time stamp of last use for each address –TTL

Spanning Tree Bridges Two parallel transparent bridges – bridges communicate to avoid loops.

Spanning Tree Bridges (2) (a) Interconnected LANs. (b) A spanning tree covering the LANs. (The dotted lines are not part of the spanning tree.)

Remote Bridges Remote bridges can be used to interconnect distant LANs.

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) Which device is in which layer. (b) Frames, packets, and headers.

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) A hub. (b) A bridge. (c) a switch.

Switched Ethernet Point-to-point connections to multi-port hub acting like switch; no collisions. More efficient under high traffic load: break large shared Ethernet into smaller segments. Hub Switch

LAN Interconnection Extend LAN coverage. Interconnect different types of LAN. Connect to an internetwork. Reliability and security.

Bridges 1 Operate at the MAC layer. –Interconnect LANs of the same type, or –LANs that speak different MAC protocols. B Frames for 5->8. Frames for 1->4 LAN A LAN B

Bridges 2 Function: –Listens to all frames on LAN A and accepts those addressed to stations on LAN B. –Using B’s MAC protocol retransmits the frames onto B. –Does the same for B-to-A traffic.

Bridges 3 Behave like a station; have multiple interfaces, 1 per LAN. Use destination address to forward unicast frames; if destination is on the same LAN, drops frame; otherwise forwards it. Forward all broadcast frames. Have storage and routing capability.

Bridges 4 No additional encapsulation. But they may have to do header conversion if interconnecting different LANs (e.g., to frame). May interconnect more than 2 LANs. LANs may be interconnected by more than 1 bridge.

Bridge Protocol Architecture IEEE 802.1D specification for MAC bridges. PHY MAC LLC Station LAN Bridge Station MAC PHY MAC LLC PHY

Need “Plug ‘n Play” for LANS Delivery of frames at Link layer uses MAC address Switch / Bridge have tables of MAC addresses and corresponding LAN links Any time a port is connected, tables needed to be dynamically updated When a device is disconneceted, tables need to reflect change Switch derives its table for local connections

Address Learning – Bridges Problem: determine locations of destinations. Bridges operate in promiscuous mode, i.e., accept all frames. Basic idea: look at source address of received frame to learn where that station is (which direction frame came from). Build routing table so that if frame comes from A on interface N, save [A, N].

Address Learning – Bridges (2) When bridges start, all tables are empty. So they flood: every frame for unknown destination, is forwarded on all interfaces except the one it came from. As bridge learns where destinations are -- when its routing table (RT) contains that destination -- it no longer needs to flood for those destinations.

Address Learning 3 RT entries have a time-to-live (TTL). RT entries get refreshed when frames from source already in the table arrive at the bridge. Periodically, process running on bridge scans RT and purges stale entries, i.e., entries older than TTL. Bridge reverts to flooding forwarding for unknown destinations reverts to flooding.

Routing with Bridges Uses MAC (physical) addresses May have alternate paths (via bridges) to destination Choose best path 3 algorithms: –Fixed routing. –Spanning tree. –Source routing.

Fixed Routing Fixed route for every source-destination pair of LANs. Does not automatically respond to changes in load/topology.

Spanning Tree Routing Aka transparent bridges. Bridge routing table is automatically maintained (set up and updated as topology changes). 3 mechanisms: –Address learning. –Frame forwarding. –Loop resolution.

Frame Forwarding Depends on source and destination LAN. –If destination LAN (where frame is going to) = source LAN (where frame is coming from), discard frame. –If destination LAN ≠source LAN, forward frame. –If destination LAN unknown, flood frame. Special purpose hardware used to perform RT lookup and update in few microseconds.

Loops Alternate routes: loops. Example: –LAN A, bridge 101, –LAN B, bridge 104, –LAN E, bridge 107, –LAN A. LAN A LAN B E

Loop: Problems A B LAN 1 LAN 2 B1 B2 1. Station A sends frame to B; bridges B1 and B2 don’t know B. 2. B1 copies frame onto LAN1; B2 does the same. 3. B2 sees B1’s frame to unknown destination and copies it onto LAN B1 sees B2’s frame and does the same. 5. This can go on forever.

Loop Resolution Goal: remove “extra” paths by removing “extra” bridges. Spanning tree: –Given graph G(V,E), there exists a tree that spans all nodes where there is only one path between any pair of nodes, i.e., NO loops. –LANs are represented by nodes and bridges by edges.

Definitions 1 Bridge ID: unique number (e.g., MAC address + integer) assigned to each bridge. Root: bridge with smallest ID. Cost: associated with each interface; specifies cost of transmitting frame through that interface. Root port: interface to minimum-cost path to root.

Routing with Bridges Bridge decides to relay frame based on destination MAC address. If only 2 LANs, decision is simple. If more complex topologies, routing is needed, i.e., frame may traverse more than 1 bridge.

Routing Determining where to send frame so that it reaches the destination. Routing by learning: adaptive or backward learning.

Note on Terminology: Repeaters and Bridges Repeaters: –Extend scope of LANs. –Serve as amplifiers. –No storage/routing capabilities. Bridges: –Also extend scope of LANs. –Routing/storage capabilities.

Bridges Operate at the data link layer. –Only examine DLL header information. –Do not look at the network layer header.

Virtual LANs A building with centralized wiring using hubs and a switch.

Virtual LANs (2) (a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches.

The IEEE 802.1Q Standard Transition from legacy Ethernet to VLAN- aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not.

The IEEE 802.1Q Standard (2) The (legacy) and 802.1Q Ethernet frame formats.

Review of Terminology: Repeaters and Bridges Repeaters: Extend scope of LANs. Serve as amplifiers. No storage/routing capabilities. Bridges: Also extend scope of LANs. Routing/storage capabilities.

Bridges Operate at the data link layer. Only examine DLL header information. Do not look at the network layer header.