Data Commn
Data Commn
Communication Basics
Transmission Impairments
Multiplexing
To ensure communication, there must be two parties and channel and both parties must send and
receive the information.
Data communications: are the exchange of data between two devices via some form of
transmission medium such as a wire less or wired.
It is the process of transferring data from place to place (from device to device). It deals with the
transmission of signals in a reliable and efficient manner.
For data communications to occur, the communicating devices must be part of a communication
system made up of a combination of hardware (physical equipment) and software (programs).
1. Message: The message is the information (data) to be communicated. Popular forms of information
include text, numbers, pictures, audio, and video.
2. Sender: The sender is the device that sends the data message.
3. Receiver: The receiver is the device that receives the message.
4. Transmission medium: The transmission medium is the physical path by which a message travels
from sender to receiver. Transmission media include twisted-pair wire, coaxial cable, fiber-optic cable,
and radio waves
5. Protocol: A protocol is a set of rules that govern data communications. It represents an agreement
between the communicating devices.
1. Text
In data communications, text is represented as a bit pattern, a sequence of bits (0s or 1s).
Different sets of bit patterns have been designed to represent text symbols. Each set is called a code, and the
process of representing symbols is called coding.
Today, the prevalent coding system is called ASCII code, which uses 32 bits to represent a symbol or character
used in any language in the world.
2. Numbers
Numbers are also represented by bit patterns.
However, a code such as ASCII is not used to represent numbers; the number is directly converted to a binary
number.
In its simplest form, an image is composed of a matrix of pixels (picture elements), where each
pixel is a small dot.
After an image is divided into pixels, each pixel is assigned a bit pattern.
4. Audio
Audio refers to the recording or broadcasting of sound or music.
It is continuous, not discrete. Even when we use a microphone to change voice or music to an
electric signal, we create a continuous signal.
Video can either be produced as a continuous entity or it can be a combination of images, each
a discrete entity, arranged to convey the idea of motion.
1.1. Line Coding: The process for converting digital data into digital signal. Digital data is found
in digital format, which is binary bits. It is represented (stored) internally as series of 1s and 0s.
i. Unipolar
ii. Polar
iii. Bipolar
1.2. Block Coding: To ensure accuracy of data frame received, redundant bits are used.
Redundant bit(s) are added to each block of information bits to ensure synchronization and error
detection
For example, in even parity one parity bit is added to make the count of 1s in the frame even.
This way the original number of bits are increased. It is called Block Coding.
To convert analog wave into digital data we use Pulse Code Modulation.
Pulse Code Modulation is one of the most commonly used method to convert analog data into
digital form. It involves three steps:
i. Sampling
ii. Quantization
iii. Encoding.
This means that the signal at the beginning of the medium is not the same as the signal at the
end of the medium.
When signals travel through the medium they tend to deteriorate. This may have many reasons:
iii. Noise: Random disturbance or fluctuation in analog or digital signals is said to be Noise in
signal, which may distort the actual information being carried.
through a medium, it loses some of its energy in overcoming the resistance of the medium.
To compensate for this loss, amplifiers are used to amplify the signal.
Example:
Suppose a signal travels through a transmission medium and its power is reduced to one-
half.
NB: that the decibel is negative if a signal is attenuated and positive if a signal is amplified.
Each signal component has its own propagation speed through a medium and, therefore, its own
delay in arriving at the final destination.
i. Thermal Noise is the random motion of electrons in a wire which creates an extra signal not
originally sent by the transmitter.
ii. Crosstalk is the effect of one wire on the other. One wire acts as a sending antenna and the
other as the receiving antenna.
Based on how many bit (s) are transmitted, transmission mode can be divided into two:
i) Parallel ii) Serial transmission
1. Parallel Transmission
In parallel communications
In serial communications
A single bit will be transferred at a time
Bits are sent one after another and will be reassembled at the
destination.
Drawback: Delay
1.5 Mode of Data Transmission
There are 3 different transmission modes characterized according to the direction of the exchanges
that means from one location to other location:
1. A Simplex Connection is a connection in which the data flows in only one direction, from the
transmitter to the receiver.
For example: from your computer to the printer or from the mouse to your computer...
2. A Half-duplex Connection: system can transmit data in both directions, but only in one direction at
a time. Hence, a half-duplex line can alternately send and receive data.
It requires two wires. This is most common type of transmission for voice communication
For Example: Email, Walkie – Talkie, CB (citizens band) radios are both half-duplex
systems.
For example: telephone network. When two people are communicating by a telephone
Multiplexing is the set of techniques that allows the (simultaneous) transmission of multiple
A technique to mix and send multiple data streams over a single medium.
Whenever the bandwidth of a medium linking two devices is greater than the bandwidth needs
streams and sending them on a medium, and de-multiplexer (DMUX) which takes information
The multiplexer combines (multiplexes) data from the n input lines and transmits over a
higher capacity data link.
The demultiplexer accepts the multiplexed data stream, separates (demultiplexes) the data
according to channel, and delivers them to the appropriate output lines.
More than one signals can be sent over single medium or link.
Wavelength-
Frequency- Division Time – Division
Division
Multiplexing Multiplexing
Multiplexing
Frequency-division multiplexing (FDM) can be used in both wired and wireless networking for
FDM is the simplest and oldest form of multiplexing in wireless networking technology.
different frequencies.
Signals from different data sources are fed into a multiplexer that modulates
These signals are then transmitted over the wire or through wireless
communication and are separated at the destination into individual data signals
using a demultiplexer.
combined in round-robin fashion into a single output data stream, which can then be transmitted
over a single channel transmission system and demultiplexed at the destination location.
The segments can be created by the multiplexer itself or can be inherent in the input channel
TDM is a digital multiplexing technique for combining several low-rate digital channels into
one high-rate one.
Weakness: if an input channel does not have anything important to carry for a time, empty
segments are inserted into the output stream anyway.
For example, if channel A is not transmitting data, one-third of the output channel is not being
used.
On sending end, WDM combines multiple light beams(optical signals) from channels
using a multiplexer and sends them as a single light beam through an optic fiber strand.
On the receiving end, the demultiplexer separates the single light back into multiple light
beams and sends them to their own channels.
1.7 Data Transmission Error Detection and Correction
Networks must be able to transfer data from one device to another with acceptable accuracy.
Data can be corrupted during transmission. Some applications require that errors be detected and
corrected.
1. Some errors are due to equipment failure. Redundant devices can also reduce the probability
of failure
2. Some errors are due to attenuation (loss of signal power over a line).
3. Most errors are due to thermal noise that occurs naturally on the line.
There are four possible ways that noise can affect a bit:
ii. Multiple bit error: Frame is received with more than one bits in corrupted state.
iii. Burst error: Frame contains more than one consecutive bits are corrupted.
i. Error detection
1. Error Detection
There is no way to guarantee that all bits will be sent uncorrupted.
Because errors occur randomly, there is no way of knowing with complete certainty if the data
is correct.
The question is, how can the receiver know when an error has occurred?
We could try sending the data twice and comparing the two transmissions to see where the
errors are.
This is inefficient, particularly if all we want to know if there is an error in a particular block of
data.
i. Parity Check
One of the most common ways of checking to see if an error occurs is to count the bits in a
character to see if there is an even or odd number.
Before transmission, an extra bit (parity bit) is appended to the character to force the number
of bits to be even (or odd).
If the received character does not have an even (or odd) number of bits then an error must
have occurred.
Both the sender and receiver must know which form of parity to use.
Parity checking will detect a single error in a character but not double errors.
Imagine we send the data 121, 17, 29 and 47. Adding these numbers up, we get 214.
The receiver can total up the first numbers and compare it to the last one.
Checksums are common but not particularly good at catching errors. Later errors can easily
hide earlier ones.
In CRC, a number is mathematically calculated for a packet by its source computer, and then
recalculated by the destination computer.
If the original and recalculated versions at the destination computer differ, the packet is corrupt
and needs to be resent or ignored.
The sender performs a division operation on the bits being sent and calculates the remainder.
For sending the bit, the sender add the remainder at the end of actual data bit is code word.
The receiving station applies the same polynomial to the data and compares the results to the
trailer appended to the packet.
Example: 1. Calculate CRC for transmit data bit 11001 and the polynomial is 101?
2. Calculate CRC for transmit data bit 100100 and the polynomial is 1101?
The receiving station applies the same polynomial to the data and
CRC.
44
Cont’d…
2. Error Correction
In digital world, error correction can be done in two ways:
i. Backward Error Correction: When the receiver detects an error in the data received, it
requests back the sender to retransmit the data unit. This error correction mechanism use
selective ARQ and Go-Back-N.
ii. Forward Error Correction: When the receiver detects some error in the data received, it
uses an error-correcting code, which helps it to auto-recover and correct some kinds of
errors.
To correct the error in data frame, the receiver must know exactly which bit in the frame is
corrupted.
Assignment
1) Discuss briefly Unipolar, Polar, Bipolar
#1
2) Describe and discuss briefly Sampling, Quantization, Encoding.