Chapter 4 Data Link Layer Switching

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.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
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.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
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 K. Salah Module 4.3: Repeaters, Bridges, & Switches Repeater Hub NIC Bridges Switches VLANs GbE.
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.
1 Computer Networks LAN Bridges and Switches. 2 Where are we?
Connecting LANs, Backbone Networks, and Virtual LANs
Connecting LANs, Backbone Networks, and Virtual LANs
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.
10/18/2007 EETS Bluetooth Bluetooth Architecture Bluetooth Applications The Bluetooth Protocol Stack The Bluetooth Radio Layer The Bluetooth Baseband.
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.
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 Chapter 15. Connecting LANs, Backbone Networks, and Virtual LANs 15.1 Connecting devices 15.2 Backbone networks 15.3 Virtual LANs.
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.
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.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs.
5: DataLink Layer5-1 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r Multi-tier design provides.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Ch. 15 Connecting LANs.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
Computer Communication and Networking Lecture # 4 by Zainab Malik 1.
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.
Lec # 25 Computer Network Muhammad Waseem Iqbal. Learn about the Internetworking Devices – Repeaters – Hubs – Switches – Bridges – Routers.
5-1 Last time □ Multiple access protocols ♦ Channel partitioning MAC protocols TDMA, FDMA ♦ Random access MAC protocols Slotted Aloha, Pure Aloha, CSMA,
Chapter 3 Part 1 Switching and Bridging
Chapter 16– Connecting LANs
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.
Lab 2 – Hub/Switch Data Link Layer
MAC Addresses and ARP 32-bit IP address:
Hubs Hubs are essentially physical-layer repeaters:
ARP: Address Resolution Protocol
Chapter 3 Part 1 Switching and Bridging
Lab 2 – Hub/Switch Data Link Layer
CS 457 – Lecture 8 Switching and Forwarding
Mac Addressing, Ethernet, and Interconnections
Hubs Hubs are essentially physical-layer repeaters:
LAN switching and Bridges
EEC-484/584 Computer Networks
Chapter 6 The Link Layer and LANs
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
Communication Networks NETW 501
LAN switching and Bridges
CS4470 Computer Networking Protocols
Part III Datalink Layer 10.
EEC-484/584 Computer Networks
18: Ethernet, Hubs, Bridges, Switches
Chapter 15. Connecting Devices
LAN switching and Bridges
Chapter 5 Data Link Layer – Hub, Switch
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
Presentation transcript:

Chapter 4 Data Link Layer Switching Interconnecting at different layers Transparent bridges Spanning tree algorithm Virtual LAN (VLAN) Reading Section 4.8

Interconnecting LANs Why? When too many machines are in a single LAN, the bandwidth may not be sufficient to support all the machines, need to partition one LAN into multiple LANs to get higher aggregate throughput. 1Gbps for all machines .vs. 1Gbps for each machine When the area is too big for a single LAN (e.g. 5km for Ethernet)? We can create multiple collision domains and interconnect the LANs. For security reasons. Ethernet cards support a promiscuous mode which allows a station to get all frames received.

Interconnecting at Different Layers Repeaters/hubs: physical layer, copy signals from one network to another network. Bridges/switches: data link layer, (selectively) copy frames from one network to another network. Routers/ network layer gateways: network layer, routing and forwarding. application gateway or converter: application layer, translate between OSI mail and SMTP mail

Question What is the main difference among repeater/hub, bridge/switch, and router?

Question What is the main difference among repeater/hub, bridge/switch, and router? Repeater: physical layer (Layer 1) device, sees 1’s and 0’s, naively forwards what it sees in a port to all other ports Switch: data link layer (Layer 2) device, sees frames with layer 2 destination address in a port and may forward a frame only to the port toward the Layer 2 destination Router: network layer (Layer 3) device, sees packets with IP (layer 3) destination addresses, route the packet toward the layer 3 address

Interconnecting with Hubs Backbone hub interconnects LAN segments Extends max distance between nodes But individual segment collision domains become one large collision domain Can’t interconnect 10BaseT & 100BaseT hub hub hub hub

Switch Data Link layer device stores and forwards Ethernet frames examines frame header and selectively forwards frame based on MAC destination address when frame is to be forwarded on segment, uses CSMA/CD to access segment transparent hosts are unaware of presence of switches plug-and-play, self-learning switches do not need to be configured

Forwarding How to determine onto which LAN segment to forward frame? hub switch 1 3 2 How to determine onto which LAN segment to forward frame? Looks like a routing problem...

Self Learning A switch has a switch table (hash table in the book) Entry in switch table: (MAC Address, Interface, Time Stamp) Stale entries in table dropped (TTL can be 60 min) Switch learns which hosts can be reached through which interfaces When a frame is received, switch “learns” location of sender: incoming LAN segment records sender/location pair in switch table

Filtering/Forwarding When switch receives a frame: index switch 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

An Example Suppose C sends frame to D address interface switch 1 A B E G 1 2 3 2 3 hub hub A hub I D F B G C H E Switch receives frame from from C notes in switch table that C is on interface 1 because D is not in table, switch forwards frame into interfaces 2 and 3 frame received by D

Switch Example Suppose D replies back with frame to C. address interface switch A B E G C 1 2 3 hub hub A hub I D F B G C H E Switch receives frame from from D notes in switch table that D is on interface 2 because C is in table, switch forwards frame only to interface 1 frame received by C

Looping Problem This simple self-learning mechanism does not work for complex network topology. What happens when the switches form loops? Solution: don’t allow loops to occur in the forwarding path by constructing a spanning tree. A spanning tree of a graph G is a subgraph of G such that all nodes are connected without a loop. How to build a spanning tree of a graph G? One way to do it is to fix a root and compute the shortest paths from the root to all other nodes. For example, the switch will smallest MAC address can be chosen as the root. All other switches keep the interfaces active if they are on shortest path, and turn off other interfaces.

Spanning Tree Example

Switch: Traffic Isolation Switch installation breaks subnet into LAN segments Switch filters packets: Same-LAN-segment frames not usually forwarded onto other LAN segments Segments become separate collision domains hub switch collision domain collision domain collision domain

Switches: Dedicated Access Switch with many interfaces Hosts have direct connection to switch No collisions; full duplex Switching: A-to-A’ and B-to-B’ simultaneously, no collisions A C’ B switch C B’ A’

Institutional network mail server to external network web server router switch IP subnet hub hub hub

Switches vs. Routers both store-and-forward devices routers: network layer devices (examine network layer headers) switches are link layer devices routers maintain routing tables, implement routing algorithms switches maintain switch tables, implement filtering, learning algorithms, cannot use redundant path.

Virtual LANs VLANs (Virtual LANs) splits one physical LAN into multiple logical LANs to ease management tasks Ports are “colored” according to their VLAN

Virtual LANs – IEEE 802.1Q Bridges need to be aware of VLANs to support them In 802.1Q, frames are tagged with their “color” First VLAN switch adds tag, last VLAN switch removes tag. Legacy switches with no tags are supported

Virtual LANs – IEEE 802.1Q 802.1Q frames carry a color tag (VLAN identifier) Length/Type value is 0x8100 for VLAN protocol 0x8100 is not a legitimate length for Ethernet frames Tag is only needed by the switches, but end host.