Data Transmission Most digital messages are longer than just a few bits. It is neither practical nor economic to transfer all bits of a long message simultaneously.

Slides:



Advertisements
Similar presentations
Data and Computer Communications Digital Data Communications Techniques.
Advertisements

Introduction to Information Technologies
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
Chapter 6 Errors, Error Detection, and Error Control
Chapter 6 Errors, Error Detection, and Error Control.
Chapter 3: Channel Coding (part 1)
Data Link Layer – Part 1 V.T.Raja Oregon State University.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 6 – Digital Data Communications Techniques.
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
Chapter Six Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach Sixth Edition.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
Long distance communication Multiplexing  Allow multiple signals to travel through one medium  Types Frequency division multiplexing Synchronous time.
1 ITC242 – Introduction to Data Communications Week 10 Topic 16 Data link control.
Chapter 6: Errors, Error Detection, and Error Control
Data Communications Chapter 7 Error Detection. Despite the best prevention techniques, errors may still happen. To detect an error, something extra has.
Chapter 6 Errors, Error Detection, and Error Control
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.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Data Transmission Most digital messages are longer than just a few bits. It is neither practical nor economical to transfer all bits of a long message.
Digital Data Communications Techniques Updated: 2/9/2009.
1/26 Chapter 6 Digital Data Communication Techniques.
Synchronous - Asynchronous Data Transmission. Asynchronous ► The sender and receiver are not Synchronised. ► The sender sends only one character at a.
Chapter 10 Error Detection and Correction
Shashank Srivastava Motilal Nehru National Institute Of Technology, Allahabad Error Detection and Correction : Data Link Layer.
Lecture 06 Errors, Error Detection, and Error Control.
Data Communications Theory Lecture-2 Dr. Anwar Mousa University of Palestine International Faculty of Information Technology.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
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
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Communications Theory Lecture-1 Dr. Anwar Mousa University of Palestine International Faculty of Information Technology.
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.
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
Chapter Six Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach Eighth Edition.
1 Introduction 4 Information transfer between two computers occurs in one of two types signals: digital or analog. Chapter 2 Introduction to Data Communication.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Chapter 6: Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach Third Edition.
The Principle of Electronic Data Serial and Parallel Data Communication Transmission Rate Bandwidth Bit Rate Parity bits.
Copyright ©2011 Cengage Learning. All rights reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible web site, in whole.
Data Transmission n Keep errors to an acceptable low probability n Bit-serial transmission n Parallel transmission.
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
FUNDAMENTALS OF NETWORKING
Unit 1 Lecture 4.
1/30/ :20 PM1 Chapter 6 ─ Digital Data Communication Techniques CSE 3213 Fall 2011.
FIT1005 FIT – Monash University
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 6 – Digital Data Communications Techniques.
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.
Serial Communications
Simple Parity Check The simplest form of error detection is the parity check used with ASCII codes, originally on asynchronous modem links Each 7 bit ASCII.
Introduction to Information Technologies
Data Link Layer.
Data Transmission Keep errors to an acceptable low probability
Part III Datalink Layer 10.
Chapter 7 Error Detection and Correction
Data Transmission Most digital messages are longer than just a few bits. It is neither practical nor economical to transfer all bits of a long message.
Introduction to Information Technologies
Chapter Nine: Data Transmission
Packets, Frames, Parity, Checksums, and CRCs
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Error Detection and Correction
Switching, Packets, Frames, Parity, Checksums, and CRCs
Data Link Layer. Position of the data-link layer.
Introduction Communication Modes Transmission Modes
Presentation transcript:

Data Transmission Most digital messages are longer than just a few bits. It is neither practical nor economic to transfer all bits of a long message simultaneously. The message is broken into smaller parts and transmitted sequentially. Bit-serial transmission conveys a message one bit at a time through a channel. Each bit represents a part of the message.

Bit-serial Data Transmission The individual bits are then reassembled at the destination to compose the message. In general, one channel will pass only one bit at a time. Thus, bit-serial transmission is necessary in data communications if only a single channel is available. Bit-serial transmission is normally just called serial transmission and is the chosen communications method in many computer peripherals.

Bit-serial Data Transmission

Byte-serial Data Transmission Byte-serial transmission conveys eight bits at a time through eight parallel channels. Although the raw transfer rate is eight times faster than in bit- serial transmission, eight channels are needed, and the cost may be as much as eight times higher to transmit the message. When distances are short, both techniques may be feasible and economic to use parallel channels in return for high data rates. The popular Centronics printer interface is a case where byte- serial transmission is used.

Byte Transmission As another example, it is common practice to use a 16-bit-wide data bus to transfer data between a microprocessor and memory chips. This provides the equivalent of 16 parallel channels. On the other hand, when communicating with a timesharing system over a modem, only a single channel is available, and bit-serial transmission is required.

Synchronization Two types of transmission: Asynchronous Synchronous Asynchronous Transmission In asynchronous transmission, each character is transmitted separately with separate synchronization information. This type of transmission is often used in situation when characters may be generated at random intervals, such as when a user types at a terminal. In asynchronous transmission, all of the bits that comprise a character are framed and then sent as a single transmission string.

Asynchronous transmission

Asynchronous Transmission Start and Stop Bit Framing The clocks of the transmitter and the receiver are not continually synchronized. But the receiver needs to know when the character begins and ends. For this reason, the character's bit string is framed with start and stop bits. The start bit reset the receiver's clock so that it matches the transmitter's. The clock only needs to be accurate enough to stay in sync for the next 8 to 11 ticks. At least one stop bit is added to mark the end of the character and allow recognition of the next start bit.

Asynchronous Transmission Error Detection One way to detect errors in asynchronous transmission is to add an extra bit, called a parity bit, to the end of each character in a frame. Summary: Uncomplicated and inexpensive but slow and Overhead for each character.

Synchronous Transmission In some application it is necessary for large blocks of data, such as the contents of a disk file, to be transmitted. Synchronous transmission is more efficient method of transmitting large block of data. The data are usually buffered and transmitted as an entire message or frame. For this reason, clocks on both sides must maintain synchronization during transmission. This is accomplished in one of two ways: 1. A separate synchronizing signal, a clock, can be constantly transmitted 2. Clocking can be included in the data signal

Synchronous Transmission Error Detection Cyclic Redundancy Check (CRC) is often used in synchronous transmission. The CRC process subjects the block of data to an algorithm that computes a result based on its contents. This result is appended to the block prior to transmission. On the receiving side, the same algorithm is used and the result is compared with the CRC field. Any difference is assumed to mean frame damage during transmission and retransmission is repeated. More efficient, higher speed and improved error detection, But expensive and complex transmitter/receiver circuitry.

Communication Modes Three types of communication modes: simple, half-duplex, and full-duplex. Simplex One way transmitting, like Radio station. One transmitter, and the rest are receivers.

Hall-Duplex & Full-Duplex Half-Duplex Alternating two-way transmit and receive. When one is transmitting, other is listening, then one can transmit after a quiet on the channel. Full-Duplex Simultaneous transmit and receive at the same time. Of course, one frequency for transmitting, other for receiving.

Error Detection Methods Noise and momentary electrical disturbances may cause data to be changed as it passes through a communications channel. If the receiver fails to detect this, the received message will be incorrect, resulting in possibly serious consequences. As a first line of defense against data errors, they must be detected. If an error can be flagged, it might be possible to request that the faulty packet be resent, or to at least prevent the flawed data from being taken as correct. If sufficient redundant information is sent, one- or two-bit errors may be corrected by hardware within the receiver before the corrupted data ever reaches its destination

Error Detection Methods A parity bit is added to a data packet for the purpose of error detection. In the even-parity convention, the value of the parity bit is chosen so that the total number of '1' digits in the combined data plus parity packet is an even number. Upon receipt of the packet, the parity needed for the data is recomputed by local hardware and compared to the parity bit received with the data. If any bit has changed state, the parity will not match, and an error will have been detected. In fact, if an odd number of bits (not just one) have been altered, the parity will not match. If an even number of bits have been reversed, the parity will match even though an error has occurred. However, a statistical analysis of data communication errors has shown that a single-bit error is much more probable than a multibit error in the presence of random noise. Thus, parity is a reliable method of error detection.

Parity Method

Block sum check Another approach to error detection involves the computation of a checksum. In this case, the packets that constitute a message are added arithmetically. A checksum number is appended to the packet sequence so that the sum of data plus checksum is zero. When received, the packet sequence may be added, along with the checksum, by a local microprocessor. If the sum is nonzero, an error has occurred. As long as the sum is zero, it is highly unlikely (but not impossible) that any data has been corrupted during transmission.

Block sum check: row and column parity bits

Block sum check: 1’s complement sum

Cyclic Redundancy Check With Synchronous Transmissions, the transmitter uses an algorithm to calculate a CRC value, which is appended to the frame. The receiver uses the same algorithm, recalculates the CRC and compares it to the CRC in the frame. If the values match, it is almost certain there is no errors.

Operators The main operators are as follows:

AND operator Bitwise operator AND returns a 1 if both operand bits are 1. 1 & 1 = 1 0 & 1 = 0 1 & 0 = 0 0 & 0 = 0

OR operator Bitwise operator OR returns a 1 if at least one operand is a 1. 1 | 1 = 1 0 | 1 = 1 1 | 0 = 1 0 | 0 = 0

XOR Bitwise XOR (exclusive OR) returns a 1 if only one of the operands is a 1. 1 ^ 1 = 0 0 ^ 1 = 1 1 ^ 0 = 1 0 ^ 0 = 0

Left Bit Shift Left Bit Shift moves the bit values left to a specified position. Bits to the left are moved out of focus and the new bits on the right are set to zero.

Right Bit Shift Right Bit Shift move the bit values right to a specified position. Bits to the right are moved out of focus and the new bits on the left are set to zero.

The Frame Check Sequence (FCS) generation process

The Frame Check Sequence (FCS) checking process

Error correction Errors may not only be detected, but also corrected if additional code is added to a packet sequence. If the error probability is high or if it is not possible to request retransmission, this may be worth doing. However, including error-correcting code in a transmission lowers channel efficiency, and results in a noticeable drop in channel throughput.