CS 457 – Lecture 3 Link Layer Protocols Fall 2011.

Slides:



Advertisements
Similar presentations
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
Advertisements

Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
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.
5-1 Link Layer: Introduction Some terminology: r hosts and routers are nodes r communication channels that connect adjacent nodes along communication path.
Chapter 3: Transport Layer
PART III DATA LINK LAYER. Position of the Data-Link Layer.
15 – Data link layer Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction.
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.
1 ITC242 – Introduction to Data Communications Week 10 Topic 16 Data link control.
VLANs Port-based VLAN: switch ports grouped (by switch management software) so that single physical switch …… Switch(es) supporting VLAN capabilities can.
The Data Link Layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Review r Multicast Routing m Three options m source-based tree: one tree per source shortest path trees reverse path forwarding m group-shared tree: group.
Chapter 5 Link Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 20.
5: DataLink Layer – Ethernet, Hubs and Switches.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
MAC Addresses and ARP 32-bit IP address: –network-layer address –used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address:
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…
5: DataLink Layer5-1 Link Layer – Error Detection/Correction and MAC.
8-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer m flow.
Point to Point protocol (PPP) Point to point, wired data link easier to manage than broadcast link: no Media Access Control Several Data Link Protocols:
HDLC and PPP. The Data Link Layer in the Internet A home personal computer acting as an internet host. Technology like Ethernet cannot provide “high-level”
3-1 Last time □ Finished introduction and overview: ♦ Network access and physical media ♦ Internet structure and ISPs ♦ Delay & loss in packet-switched.
Introduction 1 Lecture 23 Link Layer (Error Detection/Correction) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Part 1: Overview of the Data Link layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose,
Chapter 5 outline 5.1 Introduction and services
Review: –What is AS? –What is the routing algorithm in BGP? –How does it work? –Where is “policy” reflected in BGP (policy based routing)? –Give examples.
Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
COM342 Networks and Data Communications
Data Communications and Computer Networks Chapter 3 CS 3830 Lecture 12 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
4: DataLink Layer1 Chapter 4: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
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.
5: DataLink Layer5-1 Error Detection EDC= Error Detection and Correction bits (redundancy) D = Data protected by error checking, may include header fields.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Link Layer introduction,
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.
1 Week 5 Lecture 3 Data Link Layer. 2 Data Link Layer location application: supporting network applications –FTP, SMTP, STTP transport: host-host data.
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
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.
Ch 5. The Link Layer and Local Area Networks Myungchul Kim
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students,
MULTIPLEXING/DEMULTIPLEXING, CONNECTIONLESS TRANSPORT.
-1- Georgia State UniversitySensorweb Research Laboratory CSC4220/6220 Computer Networks Dr. WenZhan Song Professor, Computer Science.
5: DataLink Layer5a-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction.
1 Point-to-Point Links: Encoding Encoding: Section 2.2 (Section 2.1 read on your own)
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.
Point-to-Point Protocol
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
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.
Introduction 1-1 source application transport network link physical HtHt HnHn M segment HtHt datagram destination application transport network link physical.
Link Layer 5.1 Introduction and services
Simple Parity Check The simplest form of error detection is the parity check used with ASCII codes, originally on asynchronous modem links Each 7 bit ASCII.
Chapter 3 outline 3.1 Transport-layer services
Ethernet Frame Structure
Hubs Hubs are essentially physical-layer repeaters:
Point to Point Data Link Control
CS 457 – Lecture 6 Ethernet Spring 2012.
Hubs Hubs are essentially physical-layer repeaters:
Transport Layer Our goals:
Data Link Issues Relates to Lab 2.
Link Layer and LANs Its not about how hard you hit... It's about how hard you can get hit and keep moving forward 5: DataLink Layer.
Instructor Mazhar Hussain
Data Link Layer: Overview; Error Detection
Presentation transcript:

CS 457 – Lecture 3 Link Layer Protocols Fall 2011

The Internet Hourglass Design [Deering98] Application Layer Protocol Layer Transport Layer Network Layer Link Layer Data Communication Physical Layer

Topics Link-layer services –Encoding, framing, and error detection –Error correction and flow control –Forms necessary background Reliable Transmission –First look at an essential part of networking Ethernet, WiFi, Cellular –How to share a transmission medium –Carrier sense, collision detection, and random access

Message, Segment, Packet, & Frame HTTP TCP IP Ethernet interface HTTP TCP IP Ethernet interface IP Ethernet interface Ethernet interface SONET interface SONET interface host router HTTP message TCP segment IP packet Ethernet frame SONET frame WE ARE HERE IN THE LAYERS

Adaptors Communicating Link layer implemented in adaptor (network interface card) –Ethernet card, PCMCIA card, card Sending side: –Encapsulates datagram in a frame –Adds error checking bits, flow control, etc. Receiving side –Looks for errors, flow control, etc. –Extracts datagram and passes to receiving node sending node frame receiving node datagram frame adapter link layer protocol

Point to Point Data Links One sender, One receiver, One link: easier than broadcast link: –no Media Access Control –no need for explicit MAC addressing –e.g., dialup link, ISDN line Popular Point-to-Point DLC protocols: –PPP (point-to-point protocol) –HDLC: High level data link control

PPP Design Requirements [RFC 1557] Packet framing: encapsulation of network- layer datagram in data link frame –carry network layer data of any network layer protocol (not just IP) at same time –ability to demultiplex upwards Bit transparency: must carry any bit pattern in the data field Error detection (no correction) Connection liveness: detect, signal link failure to network layer Network layer address negotiation: endpoint can learn/configure each other’s network address

PPP non-requirements No error correction/recovery No flow control Out of order delivery OK No need to support multipoint links (e.g., polling) Error recovery, flow control, data re-ordering all relegated to higher layers!

PPP Data Frame Flag: delimiter (framing) Address: does nothing (only one option) Control: does nothing; in the future possible multiple control fields Protocol: upper layer protocol to which frame delivered (eg, PPP-LCP, IP, IPCP, etc)

PPP Data Frame info: upper layer data being carried check: cyclic redundancy check for error detection

Ethernet Frame Structure Sending adapter encapsulates packet in frame Preamble: synchronization –Seven bytes with pattern , followed by one byte with pattern –Used to synchronize receiver, sender clock rates

Ethernet Frame Structure (Cont.) Addresses: source and destination MAC addresses –Adaptor passes frame to network-level protocol If destination address matches the adaptor Or the destination address is the broadcast address –Otherwise, adapter discards frame Type: indicates the higher layer protocol –Usually IP –But also Novell IPX, AppleTalk, … CRC: cyclic redundancy check –Checked at receiver –If error is detected, the frame is simply dropped

Encoding Bits Simple idea of “high” for 1 and low for 0 –Say 1 usec per bit. Sender sends 4 bits with 4 usec “high” –Receiver sees 4.6 usec of “high”…. Was that 4 or 5 bits? Allows clocks in sending and receiving nodes to synchronize to each other –no need for a centralized, global clock among nodes! Physical-layer stuff for Electrical Engineers!

Error Detection EDC= Error Detection and Correction bits (redundancy) D = Data protected by error checking, may include header fields Error detection not 100% reliable! protocol may miss some errors, but rarely larger EDC field yields better detection and correction

Parity Checking Single Bit Parity: Detect single bit errors Two Dimensional Bit Parity: Detect and correct single bit errors 0 0

Internet Checksum Sender: treat segment contents as sequence of 16-bit integers checksum: addition (1’s complement sum) of segment contents sender puts checksum value into UDP checksum field Receiver: compute checksum of received segment check if computed checksum equals checksum field value: –NO - error detected –YES - no error detected. But maybe errors nonetheless? More later …. Goal: detect “errors” (e.g., flipped bits) in transmitted segment

Checksumming: Cyclic Redundancy Check view data bits D as a polynomial choose r+1 polynomial C goal: choose r CRC bits, R, such that – exactly divisible by C (modulo 2) –receiver knows C, divides by C. If non-zero remainder: error detected! –can detect all burst errors less than r+1 bits widely used in practice (ATM, HDCL)

Reliable Transfer Fundamental Networking Topic Most important topic thus far in this course Frames may be lost or corrupted –Encoding failures where clocks get out of sync –Error detection reports packet is corrupted –And a vast number of other reasons…. Can we build link so it appears reliable? –Build link so errors never occur?? not feasible –Add error correction to frames? requires lots of additional overhead bytes for each frame doesn’t help if entire frame lost (e.g. clock sync error)

Stop and Wait (first attempt… has an error) Sender writes frame onto wire and sets a timeout to wait for an ACK –Sender now “stops” and “waits” for the ACK Upon receiving a packet, receiver sends an ACK Sender Will Either 1) receive an ACK and can send next frame 2) times out and receives the “lost” frame

Reasons for Retransmission Packet ACK Timeout Packet ACK Timeout Packet Timeout Packet ACK Timeout Packet ACK Timeout Packet ACK Timeout ACK lost DUPLICATE PACKET Packet lost Early timeout DUPLICATE PACKETS