Lecture 3 Data Link Layer - Digital Data Communication Techniques

Similar documents
Data and Computer Communications

DIGITAL DATA COMMUNICATION TECHNIQUES

Digital Data Communication Techniques

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

Lecture 6: Reliable Transmission"

Physical-Layer Services and Systems

Chapter 10 Error Detection and Correction 10.1

ECE 476/ECE 501C/CS Wireless Communication Systems Winter Lecture 9: Error Control Coding

Error Detection and Correction

16.36 Communication Systems Engineering

Wireless Communications

Detecting and Correcting Bit Errors. COS 463: Wireless Networks Lecture 8 Kyle Jamieson

Error Detection and Correction

Lecture 4: Wireless Physical Layer: Channel Coding. Mythili Vutukuru CS 653 Spring 2014 Jan 16, Thursday

Revision of Lecture Eleven

Error Protection: Detection and Correction

2018/11/1 Thursday. YU Xiangyu

6. FUNDAMENTALS OF CHANNEL CODER

ECE 5325/6325: Wireless Communication Systems Lecture Notes, Spring 2013

Single Error Correcting Codes (SECC) 6.02 Spring 2011 Lecture #9. Checking the parity. Using the Syndrome to Correct Errors

King Fahd University of Petroleum & Minerals Computer Engineering Dept

ECE 5325/6325: Wireless Communication Systems Lecture Notes, Spring 2013

Layering and Controlling Errors

Outline. EECS 122, Lecture 6. Error Control Overview Where are Codes Used? Error Control Overview. Error Control Strategies ARQ versus FEC

SECTION 4 CHANNEL FORMAT TYPES AND RATES. 4.1 General

Page 1. Outline. Basic Idea. Hamming Distance. Hamming Distance Visual: HD=2

QUIZ : oversubscription

Digital Transmission using SECC Spring 2010 Lecture #7. (n,k,d) Systematic Block Codes. How many parity bits to use?

Channel Coding RADIO SYSTEMS ETIN15. Lecture no: Ove Edfors, Department of Electrical and Information Technology

Digital Television Lecture 5

Chapter 10 Error Detection and Correction

Intuitive Guide to Principles of Communications By Charan Langton Coding Concepts and Block Coding

b. When transmitting a message through a transmission medium, the equipment which receives the message should first find out whether it has received

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Physical Layer: Modulation, FEC. Wireless Networks: Guevara Noubir. S2001, COM3525 Wireless Networks Lecture 3, 1

Hardware Implementation of BCH Error-Correcting Codes on a FPGA

Implementation of Different Interleaving Techniques for Performance Evaluation of CDMA System

9.4. Synchronization:

Digital to Digital Encoding

Error Correction with Hamming Codes

Simulink Modelling of Reed-Solomon (Rs) Code for Error Detection and Correction

Implementation of Reed Solomon Encoding Algorithm

RADIO SYSTEMS ETIN15. Channel Coding. Ove Edfors, Department of Electrical and Information Technology

Computer Networks. Week 03 Founda(on Communica(on Concepts. College of Information Science and Engineering Ritsumeikan University

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

Digital Communication Systems ECS 452

Spread Spectrum. Chapter 18. FHSS Frequency Hopping Spread Spectrum DSSS Direct Sequence Spread Spectrum DSSS using CDMA Code Division Multiple Access

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

ETSI TS V1.1.2 ( )

Synchronization of Hamming Codes

Performance of Reed-Solomon Codes in AWGN Channel

and coding (a.k.a. communication theory) Signals and functions Elementary operation of communication: send signal on

Volume 2, Issue 9, September 2014 International Journal of Advance Research in Computer Science and Management Studies

Lecture 17 Components Principles of Error Control Borivoje Nikolic March 16, 2004.

Signal Encoding Criteria

Introduction to Error Control Coding

Block code Encoder. In some applications, message bits come in serially rather than in large blocks. WY Tam - EIE POLYU

The idea of similarity is through the Hamming

Encapsulation Baseline Proposal for EFM Copper

Channel Coding/Decoding. Hamming Method

Data transmission - Transmission modes

BER Analysis of BPSK for Block Codes and Convolution Codes Over AWGN Channel

Burst Error Correction Method Based on Arithmetic Weighted Checksums

Implementation of Reed-Solomon RS(255,239) Code

)454 6 TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU

EE521 Analog and Digital Communications

Lecture 3: Error Handling

Performance of Combined Error Correction and Error Detection for very Short Block Length Codes

Error Detection and Correction: Parity Check Code; Bounds Based on Hamming Distance

MATHEMATICS IN COMMUNICATIONS: INTRODUCTION TO CODING. A Public Lecture to the Uganda Mathematics Society

An Efficient Forward Error Correction Scheme for Wireless Sensor Network

Wireless Communication in Embedded System. Prof. Prabhat Ranjan

Techniques to Mitigate Fading Effects

Design of Reed Solomon Encoder and Decoder

SYNTHESIS OF CYCLIC ENCODER AND DECODER FOR HIGH SPEED NETWORKS

ECE 6640 Digital Communications

Error-Correcting Codes

PROJECT 5: DESIGNING A VOICE MODEM. Instructor: Amir Asif

Simple Algorithm in (older) Selection Diversity. Receiver Diversity Can we Do Better? Receiver Diversity Optimization.

EECS 380: Wireless Technologies Week 7-8

Error Control Codes. Tarmo Anttalainen

IMPERIAL COLLEGE of SCIENCE, TECHNOLOGY and MEDICINE, DEPARTMENT of ELECTRICAL and ELECTRONIC ENGINEERING.

Basics of Error Correcting Codes

HY448 Sample Problems

UNIT I WIRELESS TRANSMISSION FUNDAMENTALS

FREDRIK TUFVESSON ELECTRICAL AND INFORMATION TECHNOLOGY

Department of Computer Science and Engineering. CSE 3213: Communication Networks (Fall 2015) Instructor: N. Vlajic Date: Dec 13, 2015

Umudike. Abia State, Nigeria

Outline. Communications Engineering 1

Chapter 1 Coding for Reliable Digital Transmission and Storage

Chapter 4. Communication System Design and Parameters

A Novel Approach for Error Detection Using Additive Redundancy Check

Computer Networks - Xarxes de Computadors

Computer Science 1001.py. Lecture 25 : Intro to Error Correction and Detection Codes

CHAPTER 2. Wireless Communication Networks and Systems 1 st edition Cory Beard, William Stallings 2016 Pearson Higher Education, Inc.

Rep. ITU-R BO REPORT ITU-R BO SATELLITE-BROADCASTING SYSTEMS OF INTEGRATED SERVICES DIGITAL BROADCASTING

Multiple input gates. The AND gate

White Paper FEC In Optical Transmission. Giacomo Losio ProLabs Head of Technology

Reduced Complexity by Incorporating Sphere Decoder with MIMO STBC HARQ Systems

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

Transcription:

DATA AND COMPUTER COMMUNICATIONS Lecture 3 Data Link Layer - Digital Data Communication Techniques Mei Yang Based on Lecture slides by William Stallings 1 ASYNCHRONOUS AND SYNCHRONOUS TRANSMISSION timing problems require a mechanism to synchronize the transmitter and receiver receiver samples stream at bit intervals if clocks not aligned and drifting will sample at wrong time after sufficient bits are sent two solutions to synchronizing clocks asynchronous transmission synchronous transmission CpE400/ECG600 Fall 2013 1

ASYNCHRONOUS TRANSMISSION data are transmitted one character at a time each character is 5 to 8 bits in length receiver has the opportunity to resynchronize at the beginning of each new character simple and cheap requires overhead of 2 or 3 bits per character (~20%) the larger the block of bits, the greater the cumulative timing error good for data with large gaps (keyboard) ASYNCHRONOUS TRANSMISSION CpE400/ECG600 Fall 2013 2

ASYNCHRONOUS -BEHAVIOR simple cheap overhead of 2 or 3 bits per char (~20%) good for data with large gaps (keyboard) SYNCHRONOUS TRANSMISSION block of data transmitted sent as a frame clocks must be synchronized can use separate clock line or embed clock signal in data need to indicate start and end of block use preamble and postamble more efficient (lower overhead) than async CpE400/ECG600 Fall 2013 3

TYPES OF ERROR an error occurs when a bit is altered between transmission and reception single bit errors only one bit altered caused by white noise burst errors contiguous sequence of B bits in which the first and last bits and any number of intermediate bits in error caused by impulse noise or by fading in wireless effect greater at higher data rates ERROR DETECTION regardless of design you will have errors can detect errors by using an error-detecting code added by the transmitter code is also referred to as check bits recalculated and checked by receiver still chance of undetected error parity parity bit set so character has even (even parity) or odd (odd parity) number of ones even number of bit errors goes undetected CpE400/ECG600 Fall 2013 4

ANALYSIS Assume that data are transmitted in frames (F bits/frame). Definition: P b : Probability that a bit is received in error; also known as the bit error rate (BER) P 1 : Probability that a frame arrives with no bit errors P 2 : Probability that with an error-detecting algorithm in use, a frame arrives with one or more undetected errors P 3 : Probability that with an error-detecting algorithm in use, a frame arrives with one or more detected bit errors but no undetected bit errors When no means are taken to detect errors P 3 = 0, P 1 = (1-P b ) F, P 2 = 1-P 1 ERROR DETECTION PROCESS CpE400/ECG600 Fall 2013 5

PARITY CHECK the simplest error detecting scheme is to append a parity bit to the end of a block of data Even parity even number of 1s Used for synchronous transmission Odd parity odd number of 1s Used for asynchronous transmission if any even number of bits are inverted due to error, an undetected error occurs CYCLIC REDUNDANCY CHECK one of most common and powerful checks for block of k bits transmitter generates an n-k bit frame check sequence (FCS) transmits n bits which is exactly divisible by some number receiver divides frame by that number if no remainder, assume no error for math, see Stallings chapter 6 CpE400/ECG600 Fall 2013 6

MODULO 2 ARITHMETIC Modulo 2 arithmetic uses binary addition with no carries, which is just the exclusive- OR (XOR) operation. Definition: T = n-bit frame to be transmitted D = k-bit block of data, or message, the first k bits of T F = (n-k)-bit FCS, the last (n-k) bits of T P = pattern of n-k+1 bits n k 2 D R Q P P Let T = 2 n-k D + R, where Then T/P = Q + R/P + R/P = Q POLYNOMIALS Express all values as polynomials in a dummy variable X with binary coefficients corresponding to the bits in the binary number n k X D( X ) R( X ) Q( X ) P( X ) P( X ) n k T ( X ) X D( X ) R( X ) CpE400/ECG600 Fall 2013 7

SELECTION OF P(X) All single-bit errors, if P(X) has more than one nonzero term All double-bit errors, as long as P(X) is a primitive polynomial, with maximum exponent L, and the frame length is less than 2 L -1 Any odd number of errors, as long as P(X) contains a factor (X+1) Any burst errors for which the length of the burst is n-k, i.e., the length of the FCS A fraction (1-2 -(n-k-1) ) of error bursts of length n- k+1 A fraction (1-2 -(n-k) ) of error bursts greater than n k+1 SELECTION OF P(X) Four versions of P(X) are widely used CRC-12 = X 12 + X 11 + X 3 + X 2 + X + 1 CRC-16 = X 16 + X 15 + X 2 + 1 CRC-CCITT = X 16 + X 12 + X 5 + 1 CRC-32 = X 32 + X 26 + X 23 + X 22 + X 16 + X 12 + X 11 + X 10 + X 8 + X 7 + X 5 + X 4 + X 2 + X + 1 CpE400/ECG600 Fall 2013 8

DIGITAL LOGIC The CRC can be implemented as a dividing circuit consisting of XOR gates and a shift register. EXAMPLE Example: P(x) = X5 + X4 + X2 + 1 CpE400/ECG600 Fall 2013 9

ERROR CORRECTION correction of detected errors usually requires data block to be retransmitted not appropriate for wireless applications bit error rate is high causing lots of retransmissions when propagation delay long (satellite) compared with frame transmission time, resulting in retransmission of frame in error plus many subsequent frames need to correct errors on basis of bits received codeword on the transmission end each k-bit block of data is mapped into an n-bit block (n > k) using a forward error correction (FEC) encoder ERROR CORRECTION PROCESS CpE400/ECG600 Fall 2013 10

HOW ERROR CORRECTION WORKS adds redundancy to transmitted message can deduce original despite some errors means have reduced effective data rate eg. block error correction code BLOCK CODE PRINCIPLES Hamming distance d(v 1, v 2 ) between two n-bit binary sequences v 1 and v 2 is the number of bits in which v 1 and v 2 disagree The design of a block code is equivalent to the design of a function of the form v c =f(v d ), where v d is a vector of k data bits and v c is a vector of n codeword bits Redundancy of the code: (n-k)/k Code rate: k/n CpE400/ECG600 Fall 2013 11

BLOCK CODE PRINCIPLES For a code consisting of the codewords w 1, w 2,, w s, where s=2 n, d min min i j [ d ( w i, w The maximum number of guaranteed correctable errors per codeword t d min 2 1 The maximum number of guaranteed detectable errors per codeword t=d min -1 j )] HOW CODING IMPROVES PERFORMANCE CpE400/ECG600 Fall 2013 12

LINE CONFIGURATION -TOPOLOGY topology refers to the physical arrangement of stations point to point - two stations such as between two routers / computers multi point - multiple stations traditionally mainframe computer and terminals now typically a local area network (LAN) LINE CONFIGURATION -TOPOLOGY CpE400/ECG600 Fall 2013 13

LINE CONFIGURATION -DUPLEX classify data exchange as half or full duplex half duplex (two-way alternate) only one station may transmit at a time requires one data path full duplex (two-way simultaneous) simultaneous transmission and reception between two stations requires two data paths separate media or frequencies used for each direction or echo canceling SUMMARY asynchronous & synchronous transmission asynchronous data transmitted one character at a time synchronous block of bits transmitted in steady stream without start and stop codes error detection and correction single bit error and error burst error detecting codes parity and cyclic redundancy check (CRC) line configurations topology full duplex and half duplex CpE400/ECG600 Fall 2013 14