Physical and Link Layers CS144 Review Session 6 November 6 th, 2008 Roger Liao Based on slides by Ben Nham.

Slides:



Advertisements
Similar presentations
Nick Feamster CS 4251 Computer Networking II Spring 2008
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.
Topic 7 Local Area Networks (LAN)
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Chabot College Chapter 2 Review Questions Semester IIIELEC Semester III ELEC
The ALOHA Protocol “Free for all”: whenever station has a frame to send, it does so. –Station listens for maximum RTT for an ACK. –If no ACK after a specified.
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 Pertemuan 13 Teknik Akses Jaringan - Random Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
EEC-484/584 Computer Networks Lecture 8 Wenbing Zhao
TDC 461 Basic Communications Systems Local Area Networks 29 May, 2001.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
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…
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
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 Announcements Prelim and submission for 3 rd CS 415 project Homework 4 graded.
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Lab 4 and Link Layer CS144 Review Session 6 May 9, 2008 Ben Nham.
Network Hardware for Expanding Network. Expanding Networks When do we need expansion:  Network cable is full of data movements  Printing tasks needs.
Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.
Review: Medium Access Control Sublayer –What is the problem to be addressed in this sublayer? –Protocols that allow collision Pure ALOHA Slotted ALOHA.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
Link Layer and Wireless CS144 Review Session 7 May 16, 2008 Ben Nham.
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.
Winter 2008CS244a Handout 121 CS244a: An Introduction to Computer Networks Handout 12: Physical Layer Sending 1’s and 0’s, Capacity and Clocking Nick McKeown.
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.
Brierley 1 Module 4 Module 4 Introduction to LAN Switching.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
CSMA with Collision Detection CSMA/CD can be in one of three states: contention, transmission, or idle.
Link Layer: MAC Ilam University Dr. Mozafar Bag-Mohammadi.
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.
Link Layer Review CS244A Winter 2008 March 7, 2008 Ben Nham.
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.
Semester 3—LAN Switching Chapter 2 Objectives  By the end of this chapter we will be able to perform tasks related to: – Various LAN Communication Problems.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
Lecture Topics: 11/27 Networks Layered Model Ethernet IP.
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.
Ch 13. Wired LANs: Ethernet IEEE Standards Project 802 launched in 1985 – To set standards to enable intercommunication among equipment from a variety.
Ch 5. The Link Layer and Local Area Networks Myungchul Kim
Link Layer MAC Dr. Mozafar Bag-Mohammadi University of Ilam.
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation 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 Multiple Access: Ethernet Section Point-to-Point vs. Broadcast Media Point-to-point –PPP for dial-up access –Point-to-point link between Ethernet.
Computer Networks 0100-Ethernet Gergely Windisch
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Instructor & Todd Lammle
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
Link Layer 5.1 Introduction and services
Link Layer 5.1 Introduction and services
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
Final Review CS144 Review Session 9 June 4, 2008 Derrick Isaacson
CS 457 – Lecture 6 Ethernet Spring 2012.
Services of DLL Framing Link access Reliable delivery
Data Link Issues Relates to Lab 2.
Getting Connected (Chapter 2 Part 3)
CS4470 Computer Networking Protocols
Protocol layering and data
Dr. Mozafar Bag-Mohammadi University of Ilam
Protocol layering and data
Ethernet 16EC351 Computer networks unit II Mr.M.Jagadesh,AP/ECE.
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:

Physical and Link Layers CS144 Review Session 6 November 6 th, 2008 Roger Liao Based on slides by Ben Nham

Outline Physical layer – Encoding of signals – Chips vs. bits Link layer – Communication through shared medium – Hubs vs. switches

Signaling bits on a link Most electrical and optical networks signal bits using two distinct voltage/power levels.

Coding schemes Multilevel encoding Frequency division multiplexing High speed links use a selection of complicated techniques to squeeze maximum data-rate from link Capacity – maximum data rate of a link

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

Chips and Bits Chips – 1’s and 0’s at physical layer Bits – Actual data Encoded for: – Clock encoding – Error detection – Error correction Example Straw man example 1 – Duplicate bits – Bits: 101 – Chips: – Now we can detect one bit errors ( – invalid!) Straw man example 2 – Triplicate bits – Bits: 101 – Chips: – Now we can correct one bit errors ( – guess that the second bit is flipped) In reality the physical layer does more efficient encodings but gets similar benefits

Arbitration of Shared Resources General systems problem – I have a shared resource that only one person can use at a time – How do I arbitrate access to it? Shared CPU, multiple processes need it – OS scheduler Shared radio spectrum, multiple broadcasters – frequency division multiplexing One Ethernet coax, multiple clients connected to it – CSMA/CD – Other ways of sharing a medium, e.g. Token Ring, Aloha, etc. in book

CSMA/CD in the Classroom We are students sharing the air in this room, and develop the following protocol to arbitrate access to it: – Before I talk, I see if anyone else is talking – If anyone else is talking, don’t talk – If no one else is talking, start talking – If I start talking and sense that someone else has started talking, stop talking, and start talking some random time that increases exponentially to hope that no one is talking then

CSMA/CD in Ethernet We are nodes sharing this Ethernet wire, and develop the following protocol to arbitrate access to it: – Before I send, I sense the wire to see if anyone else is sending – If anyone else is sending, don’t send – If no one else is sending, start sending – If I start sending and sense that someone else has started sending, stop sending, and start sending after waiting some random time that increases exponentially, to hope that no one is sending then – This is why CSMA/CD is known as an “exponential backoff” algorithm

Credit: CS244a Handout 10 CSMA/CD Network Size Restriction To ensure that a packet is transmitted without a collision, a host must be able to detect a collision before it finishes transmitting a packet. PROP t=0 t=PROP-- t=PROP t=2PROP- A B Events: t=0: Host A starts transmitting a packet. t=PROP--: Just before the first bit reaches Host B, Host B senses the line to be idle and starts to transmit a packet. t=PROP-: A collision takes place near Host B. t=PROP: Host B receives data whilst transmitting, and so detects the collision. t=2PROP-: Host A receives data whilst transmitting, and so detects the collision. “Line is idle” t=PROP- “Line is idle”

Length Limitation of CSMA/CD There is a minimum size frame needed to be able to detect collisions: – Transmission Delay > 2 * Propagation Delay – Transmission Delay = MinSize / TransferRate – MinSize = TransferRate * 2 * Propagation Delay Longer wire = larger prop delay = larger MinSize Faster transfer rate = larger MinSize – Serious problem with Gigabit Ethernet and higher – Punt problem by saying that everyone is using switched networks anyway and not going to get collisions

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) – Runs spanning tree protocol to prevent loops 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

NAT Preview Lab 5 is NAT Implement subset of NAT requirements Layered on top of sr – Means you will be on VNS again