Data Link Protocols. High Level Data. Control Protocol. HDLC Framing ~~~~~~~~ Functions of a Data Link Protocol. Framing PDUs. Addressing Destination

Similar documents
CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

Data Link Layer. Srinidhi Varadarajan

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Nov 1,

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

Lecture 5: Data Link Layer Basics

UNIT-II 1. Discuss the issues in the data link layer. Answer:

Where we are in the Course

CSE 461: Framing, Error Detection and Correction

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

CS 640 Introduction to Computer Networks. Role of data link layer. Today s lecture. Lecture16

CS422 Computer Networks

Computer and Network Security

Links. CS125 - mylinks 1 1/22/14

Chapter 3. The Data Link Layer

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

PART III. Data Link Layer MGH T MGH C I 204

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Jaringan Komputer. Data Link Layer. The Data Link Layer. Study the design principles

3. Data Link Layer 3-2

Introduction to Computer Networks. 03 Data Link Layer Introduction

CSE123A discussion session

Data Link Networks. Hardware Building Blocks. Nodes & Links. CS565 Data Link Networks 1

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

Lecture 6: Reliable Transmission. CSE 123: Computer Networks Alex Snoeren (guest lecture) Alex Sn

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

Point-to-Point Links. Outline Encoding Framing Error Detection Sliding Window Algorithm. Fall 2004 CS 691 1

TYPES OF ERRORS. Data can be corrupted during transmission. Some applications require that errors be detected and corrected.

Networking Link Layer

Lecture 2 Error Detection & Correction. Types of Errors Detection Correction

CSE 123A Computer Networks

Lecture 4: CRC & Reliable Transmission. Lecture 4 Overview. Checksum review. CRC toward a better EDC. Reliable Transmission

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

CSCI-1680 Link Layer I Rodrigo Fonseca

CS254 Network Technologies. Lecture 2: Network Models & Error Detection and Correction. Dr Nikos Antonopoulos

CSE 123: Computer Networks Alex C. Snoeren. HW 1 due Thursday!

2.4 Error Detection Bit errors in a frame will occur. How do we detect (and then. (or both) frames contains an error. This is inefficient (and not

Lecture 8 The Data Link Layer part I. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Some portions courtesy Robin Kravets and Steve Lumetta

LECTURE #34. Data Communication (CS601)

Inst: Chris Davison

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

Data Link Layer: Overview, operations

Implementing CRCCs. Introduction. in Altera Devices

Physical and Data Link layers

Computer Networking : Principles, Protocols and Practice

Computer Peripherals

Lecture 5. Homework 2 posted, due September 15. Reminder: Homework 1 due today. Questions? Thursday, September 8 CS 475 Networks - Lecture 5 1

CS 455/555 Intro to Networks and Communications. Link Layer

Direct Link Networks. Framing. Lecture - Encoding & Framing 1. Problems. Areas for Discussion

High Level View. EE 122: Error detection and reliable transmission. Overview. Error Detection

Telematics. 5rd Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

Lecture / The Data Link Layer: Framing and Error Detection

I. INTRODUCTION. each station (i.e., computer, telephone, etc.) directly connected to all other stations

The Link Layer and LANs. Chapter 6: Link layer and LANs

Telematics. 5th Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

Chapter 3 The Data Link Layer

ISO/OSI Reference Model. Data Link Layer. 7. Application. 6. Presentation. 5. Session. 4. Transport. 3. Network. 2. Data Link. 1.

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

EITF25 Internet Techniques and Applications L3: Data Link layer. Stefan Höst

EE 122: Error detection and reliable transmission. Ion Stoica September 16, 2002

The Data Link Layer Chapter 3

The MAC Address Format

Data Link Layer Overview

CCNA Exploration1 Chapter 7: OSI Data Link Layer

Department of Computer and IT Engineering University of Kurdistan. Data Communication Netwotks (Graduate level) Data Link Layer

Direct Link Networks. Lecture - Encoding & Framing 1. Areas for Discussion. Problems

Error Detection Codes. Error Detection. Two Dimensional Parity. Internet Checksum Algorithm. Cyclic Redundancy Check.

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

CSN Telecommunications. 5: Error Coding. Data, Audio, Video and Images Prof Bill Buchanan

Data Link Layer Overview

Implementation and Verification of a Pollingbased MAC Layer Protocol for PLC

Data Link Layer Overview

SPM90 MODBUS PROTOCOL AND REGISTER LIST V1.0

Chapter 5 Data-Link Layer: Wired Networks

Data Link Layer Overview

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Part 5: Link Layer Technologies. CSE 3461: Introduction to Computer Networking Reading: Chapter 5, Kurose and Ross

MYcsvtu Notes DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

Chapter 3. The Data Link Layer

5th Slide Set Computer Networks

Data Link Layer. Indian Institute of Technology Madras

Data Link Layer (1) Networked Systems 3 Lecture 6

Protocol Principles. Framing, FCS and ARQ 2005/03/11. (C) Herbert Haas

CMSC 2833 Lecture 18. Parity Add a bit to make the number of ones (1s) transmitted odd.

Data Link Control. Surasak Sanguanpong Last updated: 11 July 2000

(Refer Slide Time: 2:20)

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CSCI-1680 Link Layer Reliability John Jannotti

Chapter 10 Error Detection and Correction. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

POS on ONS Ethernet Cards

No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

Chapter 5 Link Layer and LANs

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

CSE 123: Computer Networks

CSC 401 Data and Computer Communications Networks

From Signals to Packets Computer Networking. Link Layer: Implementation. Datalink Functions. Lecture 5 - Coding and Error Control

Outline. EEC-484/584 Computer Networks. Data Link Layer Design Issues. Framing. Lecture 6. Wenbing Zhao Review.

The Data Link Layer. Data Link Layer Design Issues

Transcription:

Data Link Protocols Data Link Services Connection-less services Functions of a Data Link Protocol Framing PDUs ing Destination Error Detection / Error Recovery Link Management Ethernet (covered elsewhere) Components of a DL Hardware Frame Format Protocol Buffer Memory Event Timers High Level Data Link Protocol Definitions and Modes framing Connection-less services Throughput DATA LINK Framing s 0-bit insertion Cyclic Redundancy Check Header Trailer Data Link ~~ DL-PDU Need to provide: DL-SDU Frame Delineation Data Transparency Error Physical

Delineation Detection ~~ ~~ Aborted 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Abort Idle Data Clock Line Receivers SIPO Shift Register FLAG ABORT N.B. Real implementation uses a Finite State Machine (FSM) 0-Bit Insertion Structure Data after 0-bit insertion 0111011111011 Original data 011101111111 0-bit inserted after five consecutive 1's in the original data. 0 0 0 0 0 0 1 1 0 0 1 1 0 1 0 1 8 or 16 bits 8 or 16 bits 0 to N1 bits 16 or 32 bits N1 = maximum number of bytes in the frame payload Typical values: 128 B, 576 B, 1500B, etc CRC CRC Generator Polynomials Why is a CRC needed? To verify correctness of data What happens if we don't check? CRC-16 = x16 + x12 + x5 + x CRC-CCITT = x16 + x12 + x5 + 1 How can data become corrupted? Noise Interference Errors in network components Faulty cabling Cosmic rays??? CRC-32 = x32 + x26 + x16 + x12 + x11 + x10 + x5 + x4 + x2 + x + 1

Cyclical Redundancy Check Cyclical Redundancy Check Properties of a CRC-16 1-bit error 2-bit errors Synchronous Block/Frame Protocols Implemented in Hardware divisor quotient ) dividend not used Odd errors Burst errors < 16 bits generator polynomial remainder content of frame Burst errors exactly 17 bits 99.9969% Detected All other error bursts 99.9984 % Detected fixed size (<divisor) used for checksum CRC - Why Modulo 2 Division? Because the hardware solution is simple!!!!! Modulo 2 division replaces addition in BCC calculation First digit must be '1' CRC Example (1) 0's are appened to the dividend (flush bits) Truth Table for Modulo-2 Division (XOR) 0 0 = 0 0 1 = 1 1 0 = 1 1 1 = 0 1 11001 ) 1 1 1 0 0 1 0 1 0 0 0 0 Divisor 0 1 1 0 1 (Generator Polynomial) This digit must always be 0 CRC calculations ignore the carry 2 1 0 11001 ) 1 1 1 0 0 1 0 1 0 0 0 0 1 ➂ ➄ ➃ 0 1 0 1 1 CRC Example (2) 1 Bring next digit of dividend down 2 Copy msb of value to quotient ➂ Insert 0 (if quotient 0) or divisor (if quotient 1) ➃ Calculate XOR sum ➄ Discard msb of value (always 0) 1 0 1 1 0 1 0 0 11001 ) 1 1 1 0 0 1 0 1 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 CRC Example (3) CRC value = Remainder

1 0 1 1 0 1 1 1 11001 ) 1 1 1 0 0 1 1 1 0 0 0 0 Bit error in frame 0 1 0 1 1 1 0 1 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 1 1 0 CRC Example (4) Received CRC replace by 0's 0 1 0 0 Received CRC Calculated CRC ERROR!!!!! CRC value = Remainder Register initialised at start of block and contains checksum at end. CRC Hardware 15 12 11 5 4 0 msb lsb 1 0 0 0 1 0 1 0 0 1 1 0 0 1 1 1 1 0 1 0 1 0 1 1 0000000 000000 Message 16 flush bits (replaced by CRC) Synchronous Transmission Layer Summary Clock and Data required at the receiver Bit-Oriented Protocol (Transparent) Frames delimited by flags Hardware support required Any data may be sent in payload Transmitted frame size depends upon payload Integrity checked by a CRC Frames with good CRC forwarded Frames with error CRC discarded Frames terminated by abort sequence also discarded You should know... What you should know! is a standard for synchronous communications is bit-oriented uses a cyclic redundancy checksum supports 3 architectures 3 Architectures Multi-drop bus Point to Point link \ Token passing ring <--- This is covered by the course Best Effort Service Connection-Less Service Frame Format Transfer of Data A best effort service... provides no guarentee of delivery provides no notification of loss provides no protection from duplication provides no guarentee of original order

Basic Connection-Less Service Frame Format Transmits Full Buffers Framing & Access Empties Receive Buffers Filter Link 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 8 or 16 bits 8 or 16 bits 0 to N1 bits 16 bits 0x03 0x03 Physical Layer Value 0x03 indicates an Unumbered Information ( ) f rame Connectionless Service Point-to-Point Protocol (PPP) 0 to N1 bits 8 bits 8 bits 16 bits 16 bits 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0xFF 0x03 (all nodes) 0 0 0 0 0 0 00 Protocol type 0 0 1 0 0 0 0 1 e.g. IP = 0x0021 IP-CP = 0x8021 LCP = 0xC021 (e.g. IP packet) 2 byte value identifies type of payload N1 typically 1500 B. RFC 1134, 1989 Self - Help THINGS TO THINK ABOUT (1) Performance Do you know: How the data link receiver finds the start of: (a) An Ethernet Frame (b) An How the receiver finds the end of: (a) An Ethernet Frame (b) An What is a Best Effort Service??? Line Speed (data rate) s, Inter-Frame Gap Utilisation Frame headers, supervsiory frames, checksums Link Throughput I or frame payload