Link Layer Review CS244A Winter 2008 March 7, 2008 Ben Nham.

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.
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
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.
Physical and Link Layers CS144 Review Session 6 November 6 th, 2008 Roger Liao Based on slides by Ben Nham.
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 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.
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 Fall 2005 Extending LANs Qutaibah Malluhi CSE Department Qatar University Repeaters, Hubs, Bridges, Fiber Modems, and Switches.
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.
TDC 461 Basic Communications Systems Local Area Networks 29 May, 2001.
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
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.
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
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.
Lab 4 and Link Layer CS144 Review Session 6 May 9, 2008 Ben Nham.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Switching CE
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
1 Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Link Layer and Wireless CS144 Review Session 7 May 16, 2008 Ben Nham.
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
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:
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
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.
Switches 1RD-CSY  In this lecture, we will learn about  Collision Domain and Microsegmentation  Switches – a layer two device ◦ MAC address.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
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.
Link Layer: MAC Ilam University Dr. Mozafar Bag-Mohammadi.
1 Data Link Layer Lecture 22 Imran Ahmed University of Management & Technology.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
Cisco 3 – Switching Concepts Perrine. J Page 16/1/2016 Module 4 The use of bridges and switches for segmentation results in ____? 1.Multiple broadcast.
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.
Switches 1RD-CSY  In this lecture, we will learn about  Collision Domain and Microsegmentation  Switches – a layer two device ◦ MAC address.
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.
Ch 13. Wired LANs: Ethernet IEEE Standards Project 802 launched in 1985 – To set standards to enable intercommunication among equipment from a variety.
Link Layer MAC Dr. Mozafar Bag-Mohammadi University of Ilam.
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
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.
Chapter 3 Part 1 Switching and Bridging
Chapter 16– Connecting LANs
Instructor & Todd Lammle
CS 3700 Networks and Distributed Systems
Transparent Bridging.
Lab 2 – Hub/Switch Data Link Layer
Bridging.
Chapter 4 Data Link Layer Switching
Chapter 9 Ethernet Part II
Hubs Hubs are essentially physical-layer repeaters:
Chapter 3 Part 1 Switching and Bridging
Lab 2 – Hub/Switch Data Link Layer
CS 3700 Networks and Distributed Systems
One Upon A Time Computer Networks
CS 4700 / CS 5700 Network Fundamentals
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
CS 4700 / CS 5700 Network Fundamentals
Chapter 15. Connecting Devices
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Presentation transcript:

Link Layer Review CS244A Winter 2008 March 7, 2008 Ben Nham

Announcements PA3 due today PS3 due next Wednesday PA4 due next Friday Final Exam – Review session next Friday – 7-10 PM on Thursday, March 20

Multiple Access Protocols ProtocolEfficiencyNotes Slotted AlohaIn best case, Np*(1-p*)^(N- 1) as N goes to infinity => 1/e = 0.37 CSMA/CD1/(1+5a)a = PROP/TRANSP TRANSP > 2 * PROP; cable length and packet size limited Token Passing (RAR)1/(1+a) Token Passing (RAT)1/(1+a/N)

Routers, Switches, and Hubs Routers are network layer devices – Modify IP datagram (decrement TTL) – Hosts and other routers must be aware of them Switches and hubs are link layer devices – Only care about frames, don’t modify IP datagram – Transparent to network

Hubs Operate as a repeater – Broadcast an incoming frame to all ports, except for the ingress port – Like having a longer Ethernet cable that all the hosts tap into – All ports are on single collision domain! Advantages: simple, restores signal, potentially fast since we don’t have to buffer or examine frame Disadvantages: poor bandwidth due to collisions

Hub Question 1 A 10-port hub is connected to 10 hosts using gigabit links. What is the maximum aggregate transfer rate of data flowing through this network? – All ports are part of the same collision domain-- only one device can send at a time – Therefore, peak bandwidth is one gigabit

Hub Question 2 Recall that 100Mbps Ethernet restricts cable lengths to 100m. Suppose we want to connect two hosts which are 1000m apart. Can we use m cables with 9 hubs in series to accomplish this? – No. Since all ports are on same collision domain, max network diameter (1km) is too large to meet the TRANSP > 2 * PROP constraint of CSMA/CD – In reality, the IEEE standard limits number of hubs in series and specifies maximum network diameter

Switches Must store and examine frame before forwarding Simple learning protocol—no configuration – Given incoming frame (MAC src, MAC dst ) on port x: – Add (MAC src, x) to switch table – Look up port for MAC dst for in switch table If entry is there, forward frame to that port Else, broadcast frame to all ports (except ingress port) Collision domain is a single port—switch will make sure that the frame it sends out does not collide with another frame being sent on the same link

Spanning Tree Protocol Industrial switches run Spanning Tree Protocol to prevent switching loops Each bridge is given its own unique ID by the network admin. Then: – Find the root (lowest ID) – For each network segment, turn on the link through switch that is on the least-cost path back to the root Break ties by sending through switch with lower ID – Disable all other ports in the topology Full distributed algorithm in lecture notes

STP Example Find the root (lowest ID) For each network segment, turn on the link through the switch that is on the least- cost path back to the root Break ties by sending through switch with lower ID B3 B5 B7 B2 B6 B4 Root B8 B1

STP Example Find the root (lowest ID) For each network segment, turn on the link through the switch that is on the least- cost path back to the root Break ties by sending through switch with lower ID B3 B5 B7 B2 B6 B4 Root B8 B1

Shannon Capacity Given: – B: Bandwidth of channel in Hz – S/N: signal to noise power ratio (or solve for it using dB = 10 log 10 (S/N) – Channel restricted by Gaussian noise Then, using any data encoding technique, the amount of information C in bits per second that can be transmitted over the link is: – C = B log 2 (1+S/N)

Manchester Encoding Synchronous digital systems need a clock to trigger sampling of data Manchester encoding allows us to encode the clock with the data stream – The preamble to the Ethernet frame is used to synchronize the sender clock with the receiver clock In Manchester encoding: – Transmitter samples data on edge of clock (usually rising edge) – If we sample a 1, it is encoded by a rising edge – If we sample a 0, it is encoded by a falling edge

Manchester Encoding Question Suppose a 10Mbps NIC sends into a link an infinite stream of zeros using Manchester encoding. The signal emerging from the adapter will have how many transitions per second? -2 transitions per bit time -Bit times occur at clock frequency of 10MHz -Transitions occur at 20 MHz clk data encoding