Unit-I Data Communication
Unit-I Data Communication
Communications
Chapter 1
Introduction
1.WHY TO LEARN THIS SUBJECT
2.WHAT TO LEARN
3. HOW TO LEARN
PREAMBLE
1. ANALOG COMMUNICATION
2. DIGITAL COMMUNICATION.
3. DIGITAL ELECTRONICS
A Communications Model
Source
– generates data to be transmitted
Transmitter
– Converts data into transmittable signals
Transmission System
– Carries data
Receiver
– Converts received signal into data
Destination
– Takes incoming data
Simplified Communications
Model - Diagram
Key Communications Tasks
Transmission System Utilization
Interfacing
Signal Generation
Synchronization
Exchange Management
Error detection and correction
Addressing and routing
Recovery
Message formatting
Security
Network Management
Simplified Data Communications
Model
Networking
Point to point communication not usually
practical
– Devices are too far apart
– Large set of devices would need impractical
number of connections
Solution is a communications network
Simplified Network Model
Characteristics of Data
Communication
The effectiveness of any data
communications system depends upon the
following four fundamental characteristics:
1. Delivery: The data should be delivered to the correct destination and
correct user.
2. Accuracy: The communication system should deliver the data accurately,
without introducing any errors. The data may get corrupted during transmission
affecting the accuracy of the delivered data.
3. Timeliness: Audio and Video data has to be delivered in a timely manner
without any delay; such a data delivery is called real time transmission of data.
4. Jitter: It is the variation in the packet arrival time. Uneven Jitter may affect the
timeliness of data being transmitted.
DATA REPRESENTATION
Data is collection of raw facts which is processed to deduce information. There may be different forms in which data
may be represented. Some of the forms of data used in communications are as follows:
1. Text -Text includes combination of alphabets in small case as well as upper case. It is stored as a pattern of bits.
Prevalent encoding system : ASCII, Unicode
2. Numbers- Numbers include combination of digits from 0 to 9. It is stored as a pattern of bits. Prevalent encoding
system : ASCII, Unicode
3. Images- An image is worth a thousand words‖ is a very famous saying. In computers images are digitally stored. A
Pixel is the smallest element of an image. To put it in simple terms, a picture or image is a matrix of pixel elements.
The pixels are represented in the form of bits. Depending upon the type of image (black n white or color) each pixel
would require different number of bits to represent the value of a pixel. The size of an image depends upon the
number of pixels (also called resolution) and the bit pattern used to indicate the value of each pixel. Example: if an
image is purely black and white (two color) each pixel can be represented by a value either 0 or 1, so an image made
up of 10 x 10 pixel elements would require only 100 bits in memory to be stored. On the other hand an image that
includes gray may require 2 bits to represent every pixel value (00 - black, 01 – dark gray, 10 – light gray, 11 –white).
So the same 10 x 10 pixel image would now require 200 bits of memory to be stored. Commonly used Image formats :
jpg, png, bmp, etc
4. Audio Data can also be in the form of sound which can be recorded and broadcasted. Example: What we hear on
the radio is a source of data or information. Audio data is continuous, not discrete.
5. Video:-Video refers to broadcasting of data in form of picture or movie.
DATA FLOW
dB = 10log10P2/P1
P1 - input signal
P2 - output signal
Suppose a signal travels through a transmission medium and
its power is reduced to one-half. This means that P2
is (1/2)P1. In this case, the attenuation (loss of
power) can be calculated as
C = B log2(1 + SNR)
Consider an extremely noisy channel in which the
value of the signal-to-noise ratio is almost zero. In
other words, the noise is so strong that the signal
is faint. For this channel the capacity C is
calculated as
Performance metrics
– bandwidth
– latency
– bandwidth delay product
– throughput
Bandwidth: Number of bits that can be
transmitted over a certain tiem -- typically
per unit time.
Some people also refer it to the spectrum --
example 10 Ghz.
This typically translates to a maximum data
rate.
Transmission Time
A function of bandwidth
If bandwidth is B, transmission time is 1/B.
If bandwidth is 10 Mbps, the transmission
time is 1/(10 x 106) = 1 s.
Propagation Delay
Once a bit is put on a link, the time it takes
to go across the link.
Depends on the speed with which the
electromagnetic signal (light) travels in the
medium -- 2 x 108 m/s in fiber.
Propagation delay = distance/speed of
signal.
Queuing Delay
At each intermediate node or router, a
packet is queued.
Thus, it has to wait prior to transmission.
How long does it have to wait ? Dependent
on the load on the network -- how many
packets are traversing that router ?
Latency
How long does a packet take to go from one
host to another.
Also called “Delay”.
Latency = Propagation Delay +
Queueing Delay +
Transmission Delay
Round Trip Time
Packet is sent from sender to receiver.
Receiver sends ACK (assume immediately)
to sender.
Total time delay incurred between the
instance the packet is set to the time the
ACK is received.
Note if forward delay = backward delay,
RTT = 2 * Latency (typically assumed --
although not always accurate).
Bandwidth Delay Product
Think of this as a pipe.
How much
Delay does the pipe hold in bits ?
Bandwidth
In essence, if I send a stream of bits, the first bit
traverses the bit in “Delay” seconds.
In the meantime, how many more bits can I send ?
For a transcontinental channel -- latency =
50 milliseconds.
Bandwidth = 45 Mbps.
Bandwidth delay product =
50 x 10-3 x 45 x 106
= 2.25 Mbits
We can transmit 2.25 M bits before the first
bit reaches the other end of the channel !
Throughput
Defines how efficiently channel is being
used.
Throughput = Transfer size/ Transfer time.
What is the transfer time ?
RTT + (Transfer size/Bandwidth)
(ignoring queuing delays).
1 MB file over a 1 Gbps network with RTT
100 milliseconds.
Transfer time = 100 ms + (1 MB/1Gbps) =
100 ms + 8 ms = 108 ms.
Effective throughput = 1 MB/108 ms = 74.1
Mbps.
Impact of data size
If data size increases,
(Transfer size/Bandwidth) increases.
Could become much larger than RTT.
In that case, Throughput ~ (Transfer size
/(Transfer size/Bandwidth) ~ Bandwidth!
Bottomline : Throughput increases with
data transfer size.
Data and Signals
Data can be analog or digital.
Analog data are continuous and take
continuous values.
Digital data have discrete states and take
discrete values.
Signals can be analog or digital.
Analog signals can have an infinite number
of values in a range; digital signals can have
only a limited
number of values.
The Theoretical Basis for Data
Communication
• Fourier Analysis
• Bandwidth-Limited Signals
• Maximum Data Rate of a Channel
A binary signal and its root-
mean-square Fourier amplitudes.
Guided Transmission Data
• Magnetic Media
• Twisted Pair
• Coaxial Cable
• Fiber Optics
Twisted Pair
Category 3 UTP.
(b) Category 5 UTP.
Fiber Cables
) Side view of a single fiber.
(b) End view of a sheath with three
Wireless Transmission
• The Electromagnetic Spectrum
• Radio Transmission
• Microwave Transmission
• Infrared and Millimeter Waves
• Lightwave Transmission
Wide Area Networks
Large geographical area
Crossing public rights of way
Rely in part on common carrier circuits
Alternative technologies
– Circuit switching
– Packet switching
– Frame relay
– Asynchronous Transfer Mode (ATM)
The Electromagnetic Spectrum
Radio Transmission
Polar NRZ
NRZ-Inverted
(Differential
Encoding)
Bipolar
Encoding
Mancheste
r
Encoding
Differential
Manchester
Encoding