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

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

Physical and Data Link layers

Physical and Data Link layers. Youki Kadobayashi Graduate School of Information Science Nara Institute of Science and Technology

Introduction to Computer Networks. 03 Data Link Layer Introduction

CS 4453 Computer Networks Winter

Physical and Data Link layers

Data Link Layer: Overview, operations

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

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

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

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

Chapter 3. The Data Link Layer

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

Data Link Layer Overview

Links. CS125 - mylinks 1 1/22/14

Data Link Layer Overview

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

Data Link Layer Overview

Data Link Layer Overview

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Inst: Chris Davison

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.

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

Chapter 5 Link Layer and LANs

3. Data Link Layer 3-2

CSC 401 Data and Computer Communications Networks

CS422 Computer Networks

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection

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

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

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

CSE 123: Computer Networks

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

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

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

DATA LINK LAYER UNIT 7.

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

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

CSC 4900 Computer Networks: The Link Layer

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

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

UNIT I FUNDAMENTALS & LINK LAYER

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

Networking Link Layer

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

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

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

Data Link Layer. Indian Institute of Technology Madras

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

Principles behind data link layer services:

The MAC Address Format

Chapter 5: Link layer

The Data Link Layer Chapter 3

1. Data Link Layer Protocols

QUESTION BANK EVEN SEMESTER

Chapter 6 The Link Layer and LANs

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

Lecture 8 Link Layer: functionality, error detection, media access algorithm

CSCI-1680 Link Layer I Rodrigo Fonseca

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

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

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

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

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

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

5th Slide Set Computer Networks

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

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

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

CSE123A discussion session

Additional Material. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science Information Network I/No.

Chapter V: Link Layer

Data Link Layer: Multi Access Protocols

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

CSE 461: Framing, Error Detection and Correction

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

William Stallings Data and Computer Communications. Chapter 7 Data Link Control

1/29/2008. From Signals to Packets. Lecture 6 Datalink Framing, Switching. Datalink Functions. Datalink Lectures. Character and Bit Stuffing.

1999, Scott F. Midkiff

Data Link Layer. Srinidhi Varadarajan

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

(Sicherungsschicht) Chapter 5 (part 2) [Wa0001] HDLC - 1.

Flow control: Ensuring the source sending frames does not overflow the receiver

Message, Segment, Packet, and Frame Link-layer services Encoding, framing, error detection, transmission control Error correction and flow control

Lecture / The Data Link Layer: Framing and Error Detection

Lecture 5: Data Link Layer Basics

UNIT II DATA LINK LAYER 10

Chapter Six. Errors, Error Detection, and Error Control. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Communication Networks. Part I

Introduction to Data Communications & Networking

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

Data Link Layer. Goals of This Lecture. Engineering Questions. Outline of the Class

Data Link Layer (cont.) ( h h h ) (Sicherungsschicht) HDLC - 1.

INF Data Communication Data Link Layer

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

Computer Networking. Lecture 4 - Coding and Error Control

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

Review. Some slides are in courtesy of J. Kurose and K. Ross

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

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

Transcription:

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

Agenda Functions of the data link layer Technologies concept and design error control flow control fundamental protocols Information Network 1 / 2012 2

Introduction What is Data Link Layer in TCP/IP Reference Model? Also called Point-to-Point Protocol & Medium Access Layer (MAC) Some terminology: Hosts and routers are nodes Communication channels that connect adjacent nodes along communication path are links Wired links, Wireless links, LANs Layer-2 packet is a frame, encapsulates datagram Data-link layer has responsibility of transferring datagram from one node to adjacent node over a link link Information Network 1 / 2012 3

Fundamental Functions of Data Link Providing fundamental functions for packet switching Using transmitting functions provided by the physical layer, enables packet level switching Exchanging frames Identifying nodes by address Providing a data forwarding function that takes the characteristics of the physical layer into account Stable data transmission Propagation delay Errors Interface for network layer Especially, when a common interface is provided, the difference of medium can be absorbed. IEEE802.2 and IEEE802.x Information Network 1 / 2012 4

Data Link Layer Services Framing, link access: Encapsulate datagram into frame, adding header, trailer Channel access if shared medium MAC addresses used in frame headers to identify source & destination Flow Control: Pacing between adjacent sending and receiving nodes Error Detection: Errors caused by signal attenuation and noise Receiver detects presence of errors Error Correction: Receiver identifies and corrects bit error(s) without resorting to retransmission Half-duplex and full-duplex With half duplex, nodes at both ends of link can transmit, but not at same time Information Network 1 / 2012 5

Framing Information Network 1 / 2012 6

Frame Data link layer protocol data unit (PDU) Defining the frame borders Can determine failure (bit error) root cause Adding error-detecting / error-correcting code to bit sequences in order to delimit the appropriate frame length Frame header error detection and flow control control information 01111110 address control data checksum 01111110 header payload Information Network 1 / 2012 7

Frame Synchronization (1) Character-based frame synchronization Physical layer transmits data based on character unit. CCITT X.21 physical layer frame is 8bit coding format ASCII(IA5) Insertion of a special character at the header and footer of the data transmission. STX, ETX Data identification by DLE (Data Link Escape) Possibility to escape special character sequences during transmission of binary data character stuffing Information Network 1 / 2012 8

Frame Synchronization (2) Original Data B DLE A Transmission Sequence ETX DLE B DLE DLE A STX DLE transmission data frame character stuffing Information Network 1 / 2012 9

Frame Synchronization (3) Bit-sequence-based frame synchronization A special bit sequence is inserted to the data header and footer. synchronization Insertion of a bit sequence composed of the same bit e.g. bit stuffing special bit sequence only appears at the frame header and footer special bit sequence 01111110 if sender detects 11111 in data, it stuffs a 0 right after. if receiver detects 11111 in data, it deletes the following stuffed 0. 01111110 address control data checksum 01111110 Information Network 1 / 2012 10

Frame Synchronization (4) Original Data Transmission Sequence end bit pattern start bit pattern transmission bit stuffing Information Network 1 / 2012 11

Error Control, Correction & Detection Schemes Information Network 1 / 2012 12

Error in Physical Layer Noise Attenuation Distortion Information Network 1 / 2012 13

Error Control Goal Detecting and correcting transmission error in channel Is the frame correctly sent? Is the frame sequence order correct? Technology Introducing the concept of frame (failure localization) Coding technology Error Correction Code Error Detection Code Protocol technology Timer Retransmission Information Network 1 / 2012 14

Error Detection with Parity Bit A parity bit is a bit (0 or 1) that is added to a block of data ensure that data is not corrupted during the transfer process detect single bit error if 2 bits are flipped instead of one, the parity check will pass and an error will be missed Every 7 bits of data may include a parity bit If the data transmission protocol is set to an odd parity, each packet must have an odd parity If it is set to even, each packet must have an even parity Odd parity Initial value: 1010101 (four 1s) Parity bit added: 1 Transmitted value: 10101011 Result: odd parity (five 1s) Even parity Initial value: 1010101 (four 1s) Parity bit added: 0 Transmitted value: 10101010 Result: even parity (four 1s) Information Network 1 / 2012 15

Cyclic Redundancy Check (1) It can detect consecutive bits error (burst error) Adds a failure detection CRC check bit after the frame. Polynomial representation of the bit sequence. n-bit sequence (a n-1,.., a 1, a 0 ) a i : 0 or 1 polynomial expression F(x)=a n-1 x n-1 + +a 2 x 2 +a 1 x+a 0 Calculates polynomial expression. modulo 2 equivalent to an exclusive OR Information Network 1 / 2012 16

Cyclic Redundancy Check (2) Calculation procedure Generate the generator polynomial G(x) of order r (r < m) In the case a node sends an m-bit frame, the polynomial expression is M(x) (order m-1) Generate x r M(x) by adding r bits 0 to the frame tail. Calculate a remainder R(x) by dividing the polynomial expression x r M(x) by G(x). Generate F(x), the code to be sent F(x) = x r M(x) + R(x) Information Network 1 / 2012 17

Cyclic Redundancy Check (3) Error detection F(x) is always divisible by G(x) If F(x) is not divisible by G(x), there is a remainder Burst error less than r-bit long is detectable Other remainders depend on G(x) Information Network 1 / 2012 18

Standardized CRC (1) Typical standards CRC-12 x 12 +x 11 +x 3 +x 2 +x+1 CRC-16 x 16 +x 15 +x 2 +1 CRC-32 x 32 CRC-CCITT x 16 +x 12 +x 5 +1 There exist many other CRC standards. Information Network 1 / 2012 19

Standardized CRC (2) Application CRC-12 for 6-bit character expression CRC-16 and CRC-CCITT for 8-bit character expression Detection Characteristics (CRC-16 and CRC-CCITT) all single- and two-consecutive-bit errors all odd-bit number errors burst errors less than 16-bit long 99.997% of burst errors less than 17-bit 99.998% of burst errors more than 18-bit Information Network 1 / 2012 20

Error Correction Code Error Correction Code Hamming code Distance between codes a -bit error detection >a+1 b -bit error correction >2b+1 a 1 1 b Information Network 1 / 2012 21

Flow Control Information Network 1 / 2012 22

Flow Control Flow Control Protocols deal with how to send sequences of DLL frames They have two jobs: Recover from lost frames Prevent buffer overflows Network Layer must receive same set of frames in the same order they were sent Automatic Repeat Request (ARQ) Stop-and-wait Go-back-N Selective-repeat Information Network 1 / 2012 23

Unrestricted Sender send Receiver waits to receive Problem: receiver s buffers may fill up Information Network 1 / 2012 24

Stop-and-wait ARQ (1) Sender t 1 t 5 t 4 t 1 t 2 t 3 Receiver t 1 : Round Trip Time t 2 : Frame Transmission Time t 3 : Frame Processing Time t 4 : ACK Transmission Time t 5 : ACK Processing Time Information Network 1 / 2012 25

Stop-and-wait ARQ (2) Procedure Waiting to receive ACK on each frame transmission Setting a sender timer greater than 2t 1 +t 2 +t 3 +t 4 Retransmission when sender timer times out. Characteristics Simple The buffer never contains more than one frame for the receiver and the sender Line usage rate is extremely bad Information Network 1 / 2012 26

Go-back-N ARQ (1) Procedure Improving Stop-and-Wait Protocol. Transmitting a frame in series. Error detection A frame in which an error has been detected is dropped until the frame is correctly received. No ACK is returned until the frame is correctly received. Information Network 1 / 2012 27

Go-back-N ARQ (2) Time out for Frame3 1 2 3 4 5 3 4 5 6!! 1 2 4 5 3 4 5 6 Information Network 1 / 2012 28

Go-back-N ARQ (3) Characteristics Wastefulness : upon error detection, correct frames received after the error are also dropped. Especially, setting a bigger value to the retransmission timer is a disadvantage. On the sender side, a buffer is necessary for retransmission. For frames that did not receive an ACK, buffering is necessary to enforce retransmission. The N in Go-back-N corresponds to the number of frames sent without receiving an ACK (on-the-fly frames) Buffer depends on the retransmission timer value. Information Network 1 / 2012 29

Selective-Repeat ARQ (1) Methods Improving Go-back-N protocol. Only retransmitting necessary frames (erroneous frames). Characteristics Transmission efficiency is better than Go-back-N. Not dropping correct frames uselessly. Processing is complex. Needs a buffer on the receiver side. Frame sequence control is necessary. Information Network 1 / 2012 30

Selective-Repeat ARQ (2) Time out for Frame3 1 2 3 4 5 3 6 7 8!! 1 2 4 5 3 6 7 8 Information Network 1 / 2012 31

Flow control Stop-and-Wait and Go-back-N don t have a complex processing on the receiver side. In Selective-Repeat, sequence control is enforced on the receiver side. Buffer on the receiver side When sender-side processing does not perform well, there is a possibility that an overflow occurs on the receiver side. Flow control Overflow control between the receiver and sender using some methods. Information Network 1 / 2012 32

Window Flow Control Window flow control W : window size Considering a same buffer size for the receiver. On sender side, let Nr be in (1) the number of already sent frames, (2) those that did not receive an ACK. Transmitting until Nr < W Sliding window flow control Information Network 1 / 2012 33

Windows Flow Control Sender keep frame until ACK is received sent frame sendable frame maximum size W) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 already received ACK last sent frame if sent move to right If ACK is received move to right Receiver received frame receivable frame maximum size W) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 already transmitted ACK last received frame if received if ACK is sent Information move to right Network 1 / 2012 move to right 34

Summarize Role Allocation Role allocation depends on a system design Various solutions exist Transport Network Data Link sequence assurance flow control retransmission surveillance of network error detection and correction frame range Information Network 1 / 2012 35

Sublayers of the Data Link Information Network 1 / 2012 36

From monolithic structure to sub-layered structure Data link basic concepts were formed from the technologies using point-to-point connection type data link back in the 1960s. LAN standardization from the late 1970s moved to sub-layered structure. Architecture of ISO/OSI 8802 and IEEE802 groups. Constructing a common IEEE802.2 (ISO8802/2) Logical Link Control (LLC) IEEE802.x specialized for each medium Information Network 1 / 2012 37

Sublayers of the Data Link Layer Network Layer ISO/OSI Local Area Network Definitions (8802) CCITT Data link Layer Definition Data link Layer Logical Link Control Sublayer Media Access Control Sublayer 8802/2 LLC 8802/3 CSMA/CD 8802/4 Token Bus 8802/5 Token Ring CCITT X.25 (HDLC/LAPB) Physical Layer Information Network 1 / 2012 38

Logical Link Control (LLC) (1) Unacknowledged Connectionless Service (LLC type1) Transmitting frame without synchronization between sender and receiver. No special processing, upon error detection. Enforcing error control in upper layers. Control method for high speed and errorless links. LAN, real-time traffic (voice/speech) Acknowledged Connection-oriented Service (LLC type2) Setting up a connection, before data transmission Enabling synchronized processing between sender and receiver Ensuring reliability (error and sequence) Processing is usually complex For low speed and error-prone links Information Network 1 / 2012 39

Logical Link Control (LLC) (2) Acknowledged connectionless Service (LLC type3) Receiver sends ACK for each frame. Enforcing error control at data link layer level Improving reliability Unacknowledged Connection-oriented Service Not ensuring reliability (error and sequence) Control method for high speed and errorless links. Information Network 1 / 2012 40

Media Access Control (MAC) (1) Data link layer provides packet send/ receive service to network layer Physical Layer provides binary send/receive to data link layer Different media have different constraints about multiple nodes accessing the medium We want to reserve the medium for a longer space of time! Information Network 1 / 2012 41

Media Access Control (MAC) (2) MAC layer provides medium access service to the data link layer A separate protocol is needed to implement the service for each different transmission medium Next class: learn about channel allocation (multiplexing) Information Network 1 / 2012 42