Telecom Systems Chae Y. Lee. Contents. Flow Control Error Detection/Correction Link Control (Error Control) Link Performance (Utility)

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

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

Data Link Control Protocols

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


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

4. Error correction and link control. Contents

Data Link Control Protocols

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

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

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

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

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

Data Link Layer (part 2)

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

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

INTERNET ARCHITECTURE & PROTOCOLS

DATA LINK LAYER UNIT 7.

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

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

3. Data Link Layer 3-2

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

Chapter 7: Data Link Control. CS420/520 Axel Krings Page 1

Chapter 7: Data Link Control. Data Link Control Protocols

CSE 461: Framing, Error Detection and Correction

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Data and Computer Communications

CS422 Computer Networks

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

Ch. 7 Error Detection and Correction

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

Chapter 3. The Data Link Layer

CSE123A discussion session

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

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.

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

CSCI-1680 Link Layer I Rodrigo Fonseca

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

Chapter 6 Digital Data Communications Techniques

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

INF Data Communication Data Link Layer

Data Link Layer: Overview, operations

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

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

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

This Lecture. BUS Computer Facilities Network Management. Line Discipline. Data Link Layer

CSCI-1680 Link Layer Reliability John Jannotti

Chapter 5 Data-Link Layer: Wired Networks

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

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

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

Data Link Layer. Srinidhi Varadarajan

Data Link Control Layer, Error Detection, Error Correction, and Framing

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

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

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

CPE 548 Exam #1 (50 pts) February 17, 2016

CSE 123: Computer Networks

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

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

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

Data Link Layer (1) Networked Systems 3 Lecture 6

(Refer Slide Time: 2:20)

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Chapter 4: Application Protocols. Transport Layer.

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

Data Link Control. Claude Rigault ENST Claude Rigault, ENST 11/3/2002. Data Link control 1

CPE 448/548 Exam #1 (100 pts) February 14, Name Class: 448

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

Chapter 10 Error Detection and Correction 10.1

Introduction to Computer Networks. 03 Data Link Layer Introduction

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

Transmission SIGNALs

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

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

Communication Networks. Part I

CSEP 561 Error detection & correction. David Wetherall

The flow of data must not be allowed to overwhelm the receiver

Computer Networks. Shyam Gollakota

Networking Link Layer

Data Link Layer. Learning Objectives. Position of the data-link layer. MCA 207, Data Communication & Networking

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

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

Inst: Chris Davison

CS321: Computer Networks Error Detection and Correction

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

Lecture / The Data Link Layer: Framing and Error Detection

CS 4453 Computer Networks Winter

The Data Link Layer Chapter 3

Lecture 7: Flow Control"

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

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

Packet/Frame, Error Detection How to send data efficiently & reliably?

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

CompSci 356: Computer Network Architectures. Lecture 4: Link layer: Encoding, Framing, and Error Detection Ref. Chap 2.2, 2.3,2.4

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

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

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

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

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

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4021: Networks Discussion. Chapter 2.

Transcription:

Data Link Control

Contents Flow Control Error Detection/Correction Link Control (Error Control) Link Performance (Utility) 2

Flow Control Flow control is a technique for assuring that a transmitting entity does not overwhelm a receiving entity with data A fixed buffer is provided by the receiver Frame transmission Error-free flow control, arrive in the same order they are sent, each frame suffers delay 3

Flow Control: Stop-and-wait flow control A source must wait until it receives the acknowledgment (ACK) before sending the next frame A source breaks up a large block of data into smaller blocks and tx the data in many frames Limited buffer size Errors are detected sooner with smaller frames On a shared medium (LAN), it s desirable not to permit one station to occupy the medium for an extended period 4

Stop-and-wait flow control 1.544Mb/s, RTT about 45ms; S&W; 1Kbyte frames 8000bits 5.2ms 1.544Mbps DATA Receiver Sender RTT = 45ms ACK Time 5

Inefficiency results from that only one frame at a time can be in tx For very high data rates or for very long distances between sender and receiver, stop- and-wait provides inefficient line utilization Telecom Systems Flow Control: Stop-and-wait flow control 6

Flow Control: Sliding-window flow control 3-bit sequence number to tx 7 frames without an Ack: max window size = 7 Each time a frame is sent the window shrinks; each time a new acknowledgment is received the window grows A station is allowed to completely cut off the flow of frames from the other side by sending a Receive Not Ready (RNR) message, which acknowledges former frames but forbids transfer of future frames On a satellite link a 7-bit sequence number, which allows up to 127 frames is used 7

Flow Control: Sliding-window flow control 8

Sliding-window flow control: Example Without errors Telecom Systems Sends 7 frames in one RTT instead of 1 Time 9

Flow Control: Sliding-window flow control 10

Flow Control: Sliding-window flow control If two stations exchange data, each needs to maintain two windows, one for transmit and one for receive Piggybacking: each data frame includes a sequence number of that frame plus a field that holds the sequence number used for acknowledgment 11

Error Detection/Correction Telecom Systems The Need for Error Control The ability to control errors is an increasingly important task of a data communication system Uncorrected and undetected errors can degrade performance, response time, and possibly increase the need for intervention by human operator Powerful and efficient error-control technique enables us to discard or downgrade the most expensive and troublesome element in a tx system ex) In satellite communications 12

Parity Checks Telecom Systems The simplest error-detection scheme is to append a parity bit to the end of block of data even parity synchronous transmission odd parity asynchronous transmission In ASCII transmission, a parity bit is attached to each 7-bit ASCII character G: 1110001 11100011 (odd parity) Errors in any odd number of bits detectable Errors in any even number of bits undetectable 13

Examples of Codes - Parity Bit Code separates the transmitted words CODING 001 101 DECODING 011 10 01 01 10 00 000 100 00 11 error 11 others Sourcewords 010 110 14

Cyclic Redundancy Check More powerful and efficient than the simple parity bit Used For synchronous tx The message is treated as one long binary number On tx: This number is divided by a unique prime binary number, and the remainder is attached to the frame as a FCS to be tx On reception: The receiver performs the same division, using the same divisor If there is no remainder, the receiver assumes there was no error 15

Cyclic Redundancy Check No errors if the frame including the FCS is divisible by the prime divisor The most used divisor: 17-bit divisor (a 16-bit remainder) and 33-bit divisor (a 32-bit remainder) This is a very powerful means of error detection and requires very little overhead 16

Examples of Codes - CRC M = [10010001 10110] Message (sourceword) C = [10010001 10110010..110011] Codeword Extra bits = CRC bits CRC bits (r bits) calculated from M so that C = A*G where G = given r+1 bit word = generator of code (standardized) * = operations modulo 2 without carry 17

CRC: Calculation 7 6 5 4 3 2 1 0 M = 10011010 = x 7 + x 4 + x 3 + x 1 2 1 0 R = 101... 7 6 5 4 3 2 1 0 [MR] = 10011010101 = M*x 3 + R G = 1101 = x 3 + x 2 + 1 M*x 3 = 10011010000 = x 10 + x 7 + x 6 + x 4 Find A and R (3bits) so that M*x 3 = A*G + R Then [MR] = M*x 3 + R = A*G + R + R = A*G 18

CRC: Calculation M = 10011010 G = 1101 Find A and R (3bits) so that M*x 3 = A*G + R Long division of M*x 3 by G [Operations mod2, no carry] G 1101 11111001 10011010000 1101 1001 1101 1000 1101 1011 1101 1100 1101 1000 1101 101 M*x 3 19

CRC: G(x) G(x) is standardized to be small but typically produce remainders. Detects: all single bit errors all double-bit errors if G(x) has a factor with at least 3 terms any odd number of errors, if (x+1) divides G(x) any burst error of length < length of FCS most large burst errors 20

CRC: Standard G CRC-8: 100000111 CRC-10: 11000110011 CRC-12: 1100000001111 CRC-16: 11000000000000101 CRC-CCITT: 10001000000100001 CRC-32: 100000100110000010001110110110111 21

Internet Checksum Algorithm Used in IP, ICMP, TCP, UDP, Algorithm: 1 s complement of the 1 s complement sum of data interpreted 16 bits at a time 1 s complement addition is end-round-carry addition. Why? 2 s complement carry is a zero-crossing; account for -0 by adding one 22

Ones Complement Arithmetic Telecom Systems Example with 4-bit integers 1 s comp of 0101 (5) = 1010 (-5) 1 s comp of 0011 (3) = 1100 (-3) 1 s comp of 1010 (-5) + 1100 (-3) =? First obtain 2 s comp sum (carry is not ignored) of 0101 + 0011 = 1000 Then add the carry from the most significant bit (no carry in this example) = 1 s comp sum = 1000 Obtain 1 s comp of 1000 = 0111 (-8) 23

Internet Checksum Message: e3 4f 23 96 44 27 99 f3 2 s comp sum is: 1e4ff 1 s comp sum is: e4ff + 1 = e500 So, Internet cksum is 1aff Note that message + cksum = ffff Thus, cksum (message + cksum) = 0000 24

Error Control Two type of errors: Lost frame: A frame fails to arrive at the other side Damaged frame: A recognizable frame does arrive, but some of the bits are in error Error control is based on Error detection Positive acknowledgment (ACK) Retransmit after timeout Negative acknowledgment (NAK) and retransmit 25

Error Control These mechanisms are all refereed to as ARQ (automatic repeat request) Stop-and-Wait ARQ Based on the stop-and-wait flow-control Go-back-N ARQ Error control based on the sliding window flow control 26

Error Control 27

Error Control 28

Error Control Selective Reject ARQ The only frames that are retransmitted are those that receive negative acknowledgement or those that time out The receiver must maintain a buffer large enough to save post-srej frames until the frame in error is retransmitted Much less used than go-back-n ARQ 29

Link Control (Layer 2) Data link control package is used for flow control, error control, and others These packages are generally used only for synchronous tx The data link control module organizes the data into a set of frames Each frame is supplemented with control bits that allow the two sides to cooperate to deliver the data reliably 30

Link Utility U = (time to tx a frame)(# of frames)/total time spent Links can be 100% efficient if the link is unreliable (no error control required) Efficiency drops due to propagation times in each direction and channel errors 31

Link Utility Stop-and-Wait Flow Control (HDX) T = Total time to send data T F = Time to send one frame and receive an ack T = n T F T F = t proc + t frame + t prop + t proc + t ack + t prop t proc 0, t ack 0 U = nt frame / n(2t prop + t frame ) = t frame / (2t prop + t frame ) = 1/(1+2a) where a = t prop / t frame 32

Link Utility a = t prop / t frame = (d/v)/(l/r) 33

Link Utility Error-Free Sliding-Window Flow Control FDX point-to-point line U = 1: W 2a+1 U = W/(2a+1): W < 2a+1 W: Maximum window size W = 2 n -1 W = 1: stop-and-wait W = 7: adequate for many applications W = 127: high-speed WANs, satellite links 34

Link Utility 35

Summary Flow Control: Stop and Wait (HDX) Sliding window (FDX) Error Detection/Correction: Parity bits, CRC, Internet Checksum Error Control: Stop-and-Wait ARQ: timeout interval Go-back-N ARQ: RR, REJ Selective Reject ARQ: RR, SREJ Link Performance (Utility) Throughput = (Link capacity) x (Utility) 36