Wireless Communications

Similar documents
Data and Computer Communications

Digital Data Communication Techniques

Lecture 3 Data Link Layer - Digital Data Communication Techniques

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

Chapter 10 Error Detection and Correction 10.1

Physical-Layer Services and Systems

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

QUIZ : oversubscription

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

Lecture 6: Reliable Transmission"

16.36 Communication Systems Engineering

Layering and Controlling Errors

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

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

Error Detection and Correction

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

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

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

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

Error Protection: Detection and Correction

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

Revision of Lecture Eleven

6. FUNDAMENTALS OF CHANNEL CODER

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

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

DIGITAL DATA COMMUNICATION TECHNIQUES

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

MULTIPLE CHOICE QUESTIONS

Digital to Digital Encoding

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

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

Lab/Project Error Control Coding using LDPC Codes and HARQ

Reduced Complexity by Incorporating Sphere Decoder with MIMO STBC HARQ Systems

RECOMMENDATION ITU-R BS

RECOMMENDATION ITU-R F (Question ITU-R 158/9) b) that it is desirable to specify the requirements of HF packet radio systems,

A Novel Approach for Error Detection Using Additive Redundancy Check

Performance of Reed-Solomon Codes in AWGN Channel

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

WiMOD LR Base Plus Firmware

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

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

) IGNALLING LINK. SERIES Q: SWITCHING AND SIGNALLING Specifications of Signalling System No. 7 Message transfer part. ITU-T Recommendation Q.

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

INTERNATIONAL TELECOMMUNICATION UNION

Chapter 10 Error Detection and Correction

EE521 Analog and Digital Communications

COSC 3213: Communication Networks Chapter 5: Handout #6

745 Transformer Protection System Communications Guide

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

Basic Communications Theory Chapter 2

Project: IEEE P Working Group for Wireless Personal Area Networks (WPANs)

DigiPoints Volume 1. Leader Guide. Module 6 Error Detection and Correction

HY448 Sample Problems

Digital Communication Systems ECS 452

Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione. E3 Error and flow control

MODBUS RS485 SERIAL PROTOCOL

ETSI TS V1.1.1 ( ) Technical Specification

Wireless Communication

DigiPoints Volume 1. Student Workbook. Module 6 Error Detection and Correction

II. FRAME STRUCTURE In this section, we present the downlink frame structure of 3GPP LTE and WiMAX standards. Here, we consider

General Class Digital Modes Presentation

The idea of similarity is through the Hamming

Summary of Basic Concepts

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

EECS 380: Wireless Technologies Week 7-8

A Novel Hybrid ARQ Scheme Using Packet Coding

Synchronization of Hamming Codes

ELECTRICAL VARIABLE ANALYZER RELAY EVAR

Computer Networks - Xarxes de Computadors

Lecture 3: Error Handling

Hybrid ARQ Schemes for Non-Orthogonal Space-Time Block Codes

2018/11/1 Thursday. YU Xiangyu

ETSI TS V1.1.2 ( )

Department of Computer Science and Engineering. CSE 3213: Computer Networks I (Fall 2009) Instructor: N. Vlajic Date: Dec 11, 2009.

Umudike. Abia State, Nigeria

Lower Layers PART1: IEEE and the ZOLERTIA Z1 Radio

CHAPTER 8 DIGITAL DATA BUS ACQUISITION FORMATTING STANDARD TABLE OF CONTENTS. Paragraph Subject Page

ROM/UDF CPU I/O I/O I/O RAM

Wireless Communication in Embedded System. Prof. Prabhat Ranjan

Grundlagen der Rechnernetze. Introduction

ETSI TS V1.1.1 ( ) Technical Specification

Error Detection and Correction

Implementation and Analysis of a Hybrid-ARQ Based Cooperative Diversity Protocol

Error Correction with Hamming Codes

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

Sirindhorn International Institute of Technology Thammasat University

An Alamouti-based Hybrid-ARQ Scheme for MIMO Systems

TRANSCEIVER FSK. Version: 434 MHz Band / 868 MHZ Band / Code: / A

Introduction to Coding Theory

ADVANCED WIRELESS TECHNOLOGIES. Aditya K. Jagannatham Indian Institute of Technology Kanpur

Lec 19 Error and Loss Control I: FEC

2320 cousteau court

Digital Television Lecture 5

1 Introduction. Abstract

EUROPEAN ETS TELECOMMUNICATION July 1997 STANDARD

ECE 6640 Digital Communications

ETSI TS V1.1.1 ( )

Chapter 1 Coding for Reliable Digital Transmission and Storage

MIL-STD-1553 DATA BUS/PCM MULTIPLEXER SYSTEM

User's Manual. ServoCenter 4.1. Volume 2: Protocol Reference. Yost Engineering, Inc. 630 Second Street Portsmouth, Ohio

Transcription:

3. Data Link Layer DIN/CTC/UEM 2018

Main Functions Handle transmission errors Adjust the data flow :

Main Functions Split information into frames: Check if frames have arrived correctly Otherwise: Discard frame and Request frame retransmission (not of all the information) Services offered to the Network Layer: Service without connection and without confirmation Service without connection but with confirmation Connection-oriented service with confirmation

Frame with Counter A byte stream... (a) without errors (b) with one error.

Frame with Byte Stuffing (a) Frame delimited by flag bytes. Elvio(b) J. Leonardo Four examples of Wireless byte sequences Communications before and after byte stuffing.

Frame with Bit Stuffing Allows characters with any number of bits Each frame starts and ends with a standard sequence Example: 01111110 If the pattern happens in the data field, bits are included to break the sequence (a) Original data. (b) Sequency after stuffing. (c) Sequency after destuffing.

Error Detection and Correction There are error detection codes and error detection and correction codes Code adds redundancy Let k be the number of information bits Let r be the number of bits added for protection Let n = k + r be the total number of bits Then, of the 2 n possible words, only 2 k is used Hamming Distance = D H (w 1, w 2 ) Number of different bits between words w 1 and w 2 The Hamming Distance of a code D H is the smallest distance min[d H (w i, w j )] for any two i, j codewords For the detection of n incorrect bits It is needed DH n + 1 For the correction of n incorrect bits It is needed DH 2n + 1

Parity Adds one bit to the information word so that the number of bits with value 1 in the transmitted word is even (or odd) Example: 10101 + 1 = 101011 (for even parity) Example: 10101 + 0 = 101010 (for odd parity) At the receiver, the received information is wrong when the number of bits with value 1 in the received word does not correspond to the one expected The Hamming Distance of this code is D H = 2 It is able to detect errors in one bit It is unable to correct any error

Repetition Repeats every bit n times Example (with n = 3) Coding: 1 + 11 = 111 At receiver, if bits do not appear in groups of three, it means error The Hamming Distance of the code is DH = 3 It is able to detect errors in two bit It is able to detect errors in one bit Examples for the transmission of 111: Error in one bit: receive 110 and it is correctly assumed that 111 was transmitted Error in two bits: receive 100 and it is incorrectly assumed that 000 was transmitted Inefficient code (in the example, it reduces the bit flow to a third giving only D H = 3)

Hamming Codes Block codes created by Richard Hamming, with distance D H = 3 (thus correcting errors in one bit and detecting errors in up to two bits) Redundancy bits = r (r 2) Information bits = k = 2 r r 1 Total length = n = k + r = 2 r 1 Examples: r = 2, n = 3 and k = 1 (redundancy of 2/3 67%) r = 3, n = 7 and k = 4 (redundancy of 3/7 43%) r = 4, n = 15 and k = 11 (redundancy of 4/15 27%) r = 10, n = 1023 and k = 1013 (redundancy of 10/1023 1%) Code efficiency increases with length Position of bits: Redundancy bits = multiples of 2 = 1, 2, 4, 8,... Information bits = other positions

Hamming Codes Example: Hamming Code with n = 15, k = 11 and r = 4 position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 bits p 1 p 2 d 1 p 3 d 2 d 3 d 4 p 4 d 5 d 6 d 7 d 8 d 9 d 10 d 11 information d i 1 0 0 1 0 0 0 1 1 0 0 parity p 1 X X X X X X X X parity p 2 X X X X X X X X parity p 3 X X X X X X X X parity p 4 X X X X X X X X transmitted 1 0 1 1 0 0 1 0 0 0 0 1 1 0 0 recieved 1 0 1 1 0 0 1 0 0 0 1 1 1 0 0 parity p 1 E X X X X X X X parity p 2 E X X X X X X X parity p 3 X X X X X X X X parity p 4 E X X X X X X X corrected 1 0 1 1 0 0 1 0 0 0 0 1 1 0 0

Cyclic Redundancy Check (CRC) What is better: correct or just detect (and eventually retransmit)? Example: Link with error rate of 10 6 (1 incorrect bit every 10 6 = 1,000,000) Communication in blocks of 1000 bits Single error correction: Using Hamming Code, r = 10, n = 1023, and k = 1013 Correction cost of approximately 1 % Single error detection: Using 1 parity bit per block, cost 0,1 % Retransmission of incorrect blocks (1 each 1000 blocks), cost 0,1 % Total cost of 0,2%

Cyclic Redundancy Check (CRC) Cyclic codes used in error detection Produces a checksum that is sent with the information It is able to detect: Any error polynomial E(x) that is not divisible by G(x) Any single error if the generating polynomial G(x) has 2 or more terms Any double error whose distance is less than the order of G(x) Any error of an odd number of bits if G(x) is a multiple of (x + 1) Any burst of errors with length up to the order of G(x) if G(x) has the term x 0

Cyclic Redundancy Check (CRC) Representation Code described by the generating polynomial G(x) of order r Information described by the polynomial M(x) Operations are in module 2, no borrowing in subtraction or carrying in addition Operation Add r bits 0 to the polynomial M(x), that is, x r M(x) Perform the division x r M(x)/G(x) and transmit the remainder of the operation together with the information

Cyclic Redundancy Check (CRC)

Cyclic Redundancy Check (CRC)

Specification and Description Language (SDL) ITU Standard Z.100 Specification language for distributed reactive systems, initially for telecommunications systems, but has found broader broader application today It has graphic and textual representations It is a formal language, with clear, precise and unambiguous specification It can be used in automatic code generation tools It can be used in systems simulation tools Defines a public (non-proprietary) standard

SDL: Sistema System is composed of blocks connected by channels Channels carry signals between blocks and to the outside world

SDL: Block Block is composed of processes connected by channels Channels carry signals between processes and to the outside world

SDL: Process Process contains the state machine Process consumes and produces signals (consumes stimuli and produces responses)

SDL: Process Process contains tasks, decisions and procedures

SDL: Procedure Procedure is equivalent to subroutine

Message Sequence Chart (MSC) Used to show the dynamic behavior of the system through message sequences

Simplex Protocol, No Errors

Simplex Protocol, Stop-and-Go, No Errors

Simplex Protocol, Stop-and-Go, With Noise

Improvements Bi-directional transmission Piggybacking: waits a data packet to embed and send the ACK How long to wait for this data packet? Make short ACK packet (without data field)

Sliding Window Window of length n Transmitter needs a buffer with n positions for pending frames (those not yet ACKed) Transmitter sends at most n packets without receiving any ACK Send up to packet number (acked + n) Packets follow a circular numbering Numbering from 0 to n 1 Receiving an ACK for package m implies acknowledgment of all previous packages

Sliding Window Example for n = 7

Sliding Window

Go-Back-N and Selective Retransmission (a) Go-back-n (b) Selective Retransmission