1/26 Chapter 6 Digital Data Communication Techniques.

Slides:



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

Telecommunication Technologies
Data and Computer Communications Digital Data Communications Techniques.
Data and Computer Communications
Chapter 6: Digital Data Communications Techniques
COE 341: Data & Computer Communications (T081) Dr. Marwan Abu-Amara Chapter 6: Digital Data Communications Techniques.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 6 – Digital Data Communications Techniques.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
Coding and Error Control
Chapter 6: Digital Data Communications Techniques
Lecture 9-10: Error Detection and Correction Anders Västberg Slides are a selection from the slides from chapter 8 from:
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 6: Digital Data Communications Techniques.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
William Stallings Data and Computer Communications 7th Edition Chapter 6 Digital Data Communications Techniques.
7/2/2015Errors1 Transmission errors are a way of life. In the digital world an error means that a bit value is flipped. An error can be isolated to a single.
Chapter 6: Digital Data Communications Techniques
Data Communications Chapter 6 The Data Communications Interface.
Digital Data Communications Techniques Updated: 2/9/2009.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
Chapter 10 Error Detection and Correction
Coding and Error Control
Chapter-4/5-1CS331- Fakhry Khellah Term 081 Chapter 4 (Only 4.2 – 4.3) Digital Transmission.
Coding and Error Control
Data and Computer Communications. The Data Link Layer.
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 6 – Digital Data Communications Techniques.
Data and Computer Communications
Data and Computer Communications Chapter 6 – Digital Data Communications Techniques.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Lecture 3-2: Coding and Error Control (Cont.) ECE
1 Chapter 8. Coding and Error Control Wen-Shyang Hwang KUAS EE.
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, October 2011.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 6 – Digital Data Communications Techniques.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
CSCI 465 D ata Communications and Networks Lecture 9 Martin van Bommel CSCI 465 Data Communications & Networks 1.
CHAPTER 3: DATA LINK CONTROL Flow control, Error detection – two dimensional parity checks, Internet checksum, CRC, Error control, Transmission efficiency.
1 © Unitec New Zealand CRC calculation and Hammings code.
1/30/ :20 PM1 Chapter 6 ─ Digital Data Communication Techniques CSE 3213 Fall 2011.
FIT1005 FIT – Monash University
Coding and Error Control
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Business Telecommunications Data and Computer Communications Chapter 6 The Data Communications Interface.
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 6 – Digital Data Communications Techniques.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
Chapter Nine: Data Transmission. Introduction Binary data is transmitted by either by serial or parallel methods Data transmission over long distances.
Powerpoint Templates Computer Communication & Network Week # 10.
Data and Computer Communications Digital Data Communications Techniques + Error Control+ Digital Data Communications Techniques + Error Control+Multiplexing.
Coding and Error Control
Lecture 4 Error Detecting and Correcting Techniques Dr. Ghalib A. Shah
CSE 5345 – Fundamentals of Wireless Networks
The Data Link Layer Supplementery Slides
William Stallings Data and Computer Communications
Data and Computer Communications
Data and Computer Communications
Pemrosesan Data Tersebar
Digital data communication (Error control)
William Stallings Data and Computer Communications 7th Edition
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, August 2010.
DIGITAL DATA COMMUNICATION TECHNIQUES
Data and Computer Communications
Data and Computer Communications
DIGITAL DATA COMMUNICATION TECHNIQUES
Chapter Nine: Data Transmission
Data and Computer Communications
Coding and Error Control
William Stallings Data and Computer Communications
Presentation transcript:

1/26 Chapter 6 Digital Data Communication Techniques

2/26 Asynchronous and Synchronous Transmission  Timing problems require a mechanism to synchronize the transmitter and receiver  timing (rate, duration, spacing) of the data bits must be the same at transmitter & receiver  receiver samples stream of data bits at bit intervals  if clocks not aligned and drifting, the receiver will sample at wrong time after sufficient bits are sent  Example: for 1Mbps data stream, one bit will be transmitted every 1μs. With 1% clock drift at the receiver (faster or slower than transmitter), then wrong sampling will occur after 50 bit (50*0.01μs=0.5 μs).  Two solutions to synchronizing clocks  asynchronous transmission  synchronous transmission

3/26 Asynchronous Transmission  Avoid timing problem by not sending long stream of bits  Data is transmitted one character at a time, where each character is five or eight bits in length  Receiver can synchronize at the beginning of each new character  idle state: no transmission,  NRZ-L signalling is common for asynchronous transmission  The beginning of the character is signalled by a start bit  This is followed by a character of 5 or 8 bits long  The bits of the character are transmitted beginning with the least significant bit  A parity bit is then added for the purpose of error detection  The end of the character is a stop element.

4/26 Asynchronous Transmission

5/26 Effect of timing error in asynchronous transmission  Example: The figure below shows the effects of a timing error of sufficient magnitude to cause error in reception. In this example, we assume a data rate of 10Kbps; therefore each bit is 100μs duration. Assume that the receiver is fast by 6%, or 6μs per bit time. Thus, the receiver samples the incoming character every 94μs. As we can see, the last sample is erroneous.

6/26 Asynchronous Transmission- Behavior  simple  cheap  overhead of 2 or 3 bits per char (~20%)  good for data with large gaps (keyboard)

Synchronous Transmission 7/26  Block of data bits are transmitted as a frame  Clocks must be synchronized  can use separate clock line between transmitter & receiver  one side send one short pulse and the other side uses this pulse for clocking; problem with long distances  or embed the clocking information in the data signal  Manchester encoding for digital signals  carrier frequency for analog transmission  Need to indicate start and end of block of data  use preamble (8bit flag) and postamble (8bit flag)  Control fields contain data link control protocol information  More efficient (lower overhead) than asynchronous Synchronous Frame format

8/26  More efficient (lower overhead) than asynchronous transmission (two start and stop bits for every 8 bit character, (2/(2+8))*100%=20%).  Example: A frame in one of the standard schemes contains 48 bits of control, preamble, and postamble. Thus, for a 1000 character block of data, each frame consists of 48 bits of overhead and 1000*8=8000 bits of data, for a percentage overhead of only (48/( ))*100%=0.6%. Synchronous Transmission

9/26 Types of Errors  An error occurs when a bit is altered between transmission and reception (1 is transmitted and 0 is received, and visa versa)  Single bit errors  only one bit altered  caused by white noise  Burst errors  contiguous sequence of B bits in which first, last, and any number of intermediate bits in error  caused by impulse noise or by fading in wireless  effect greater at higher data rates  Example: An impulse noise event or fading event of 1μs occurs. At a data rate of 10Mbps, there is a resulting error burst of 10 bits. At a data rate of 100Mbps, there is an error burst of 100bits.

10/26 Error Detection  Define the following probabilities: P b : probability that a bit is received in error, known as Bit Error Rate (BER) P 1 : probability that a frame arrives with no bit error P 2 : probability that, with an error detecting algorithm in use, a frame arrives with one or more undetected errors P 1 =(1-P b ) F where F is the number of bits per frame P 2 =1-P 1  Example: a defined objective for the ISDN (Integrated Service Digital Network) is that the BER on a 64-Kbps channel should be less than Suppose that one frame with undetected bit error occur per day, and the frame length is 1000bits. Determine P 1 and P 2.

11/26 Error Detection  Will have errors  Detect using error-detecting code  This code is added by the transmitter  Recalculated and checked by the receiver  Still chance of undetected errors  Parity  parity bit set so character has even (even parity) or odd (odd parity) number of ones  even number of bit errors goes undetected

12/26 Error Detection Process

13/26 Parity Check  Example: If the transmitter is transmitting an IRA character G ( ) and using an odd parity, it will append a 1 and transmit The receiver examines the received character and, if the total number of 1’s is odd, assumes that no error has occurred. If one bit (or any odd number of bits) is erroneously inverted during transmission (for example, ), then the receiver will detect an error.

14/26 Cyclic Redundancy Check (CRC)  CRC is one of most common and powerful error detection code  for block of k data bits, the transmitter generates an n-k bit sequence called Frame Check Sequence (FCS), such as the resulting frame length is n bits  transmits the n bit frame 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

15/26 Cyclic Redundancy Check (CRC)  CRC can be clarified by three equivalent ways:  Modulo 2 Arithmetic  Polynomials  Digital Logic  Modulo 2 Arithmetic: binary addition with no carry (exclusive-OR (XOR) operation)

16/26 CRC: Modulo 2 Arithmetic DataFCS DF T

17/26 CRC: Polynomials  A second way of viewing the CRC process is to express all values as polynomials in a dummy variable X, with binary coefficients  The coefficients corresponds to the bits in the binary number

18/26 CRC: Polynomials

19/26 Error Correction Process FEC: Forward Error Correction

20/26 Error Correction Process  On the transmission, each k-bit block of data is mapped into an n-bit block (n > k) called a codeword, using an FEC (Forward Error Correction) encoder.  At the receiver, the FEC decoder has four possible outcomes: 1.If there are no bit errors, the decoder produces the original data block as output. 2.For certain error patterns, it is possible for the decoder to detect and correct those errors 3.For certain error patterns, the decoder can detect but not correct the errors, the decoder simply reports an uncorrectable error. 4.For certain, typically rare, error patterns, the decoder does not detect that any errors have occurred

21/26 Block Code Principles  The 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  If v 1 = and v 2 =110001, the d(v 1, v 2 )=3  Consider the following assignment:  Suppose that a codeword block is received with the bit pattern This is a not valid code word, so an error is detected.  The Hamming distance d(00000, 00100) =1 d(00111, 00100) =2 d(11001, 00100) =4 d(11110, 00100) =3 Data blockCodeword  Most probably one bit in error (minimum distance): correct → 00000

22/26 Block Code Principles  Consider the following assignment:  The Hamming distance between the code words d(00000, 00111) =3; d(00000, 11001) =3; d(00000, 11110) =4 d(00111, 11001) =4; d(00111, 11110) =3; d(11001, 11110) =3  The minimum hamming distance = d min =3 Data blockCodeword  The maximum number of guaranteed correctable errors per code word is:  The number of errors that can be detected satisfies:

23/26 Block Code Principles  With an (n, k) block code, there are 2 k, valid code words and a total of 2 n possible codewords  The ratio of the redundant bits to data bits (n-k)/k is called the redundancy of the code  The ratio of the data bits to the total bits k/n is called the code rate

20/26 How Coding Improves System Performance  For BER=10 -6, the coding gain = 2.77dB

25/26 Line Configuration - Topology  Physical arrangement of stations on medium  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)

26/26  Classify data exchange 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 Line Configuration – Duplex