Professional Documents
Culture Documents
DATA COMMUNICATION
JTO Phase – I Data Communication
INTRODUCTION TO DATA
COMMUNICATION
CONTENTS
1.1 OBJECTIVES
1.2 INTRODUCTION
Chapter 1
INTRODUCTION TO DATA COMMUNICATION
1.1OBJECTIVES
The objective of this chapter is to familiarize with : -
i) Concept of data communication
ii) Components of data communication
iii) Transmission Definitions
iv) Transmission codes
v) Nyquist–Shannon sampling theorem
vi) Data Transmission
vii) Signal encoding
viii) Modulation Techniques
1.2INTRODUCTION
Communication plays a very important part in our lives because we are almost
always involved in some form of communication, e.g.
• Face-to-face conversation
• Reading a book
• Sending or receiving a letter
• Telephonic conversation
• Watching a film or T. V.
• Looking at paintings in an art gallery
• Attending a lecture
There are many other examples of communications and Data Communications
is one specific area of whole field of communication. Aim of communication is to
transfer some information from one point to another. In data communication, this
information is generally called as Data or a message.
1.3COMPONENTS
In order to send data/message from one point to another, following three
components are must:
1. Source
2. Medium
3. Receiver
Message
SOURCE RECEIVER
Medium
Fig. 1 Components
These elements are the minimum requirement for any communication process. In data
communication, source and receiver data is called Data Terminal Equipment (DTE),
e.g. A teleprinter or a computer terminal with keyboard. The medium may be a 2W
telephone line or 2W/4W leased line. Let us see a simple data network (Fig.2).
Remote Terminals
Fig. 2 Simple Data Network
It involves a computer. One or more terminals (Remote Terminals) connected
to the computer via communication lines.
1.4TRANSMISSION DEFINITIONS
For understanding the data communication following terminology is
discussed: -
• Communication lines
The medium that carries the message in a data communication system, e.g. A
2W telephone line.
• Communication Channel
A channel is defined as a means of one way transmission.
It can carry information in either direction but in only one direction at a time,
e.g. A hose pipe. It can carry water in either direction, but the direction of flow
depends on which end of pipe is connected to the water tap.
• Simplex Transmission
1. Message always flows in one direction only.
2. An input Terminal can only receive and never transmit.
3. An O/P Terminal can only transmit and never receive.
We can say that it is a one-way communication. Electrical example of one-way
communication system is given in Fig.3.
Full-Duplex Transmission
1.5TRANSMISSION CODES
All data communication codes are based on the binary system (1s and 0s). A
message can be encoded into a meaningful string of 1s and 0s that can be transmitted
along a data line and decoded by a receiver. The string of 1s and 0s is meaningful
because it is defined by a code that is known to both the source and the receiver. Code
is limited by the number of bits (binary digits) it contains, e.g. one-bit code means that
we can have 2 characters so that we can encode the letter A by '0' and B by '1'.
Similarly, a 2 bit code will enable us to handle 4 characters. Thus, a n-bit code enables
n
us to handle 2 characters.
1.5.1Baudot Code
This is also called International Alphabet no.2. This is used on International
telex network and is often called telex code.
Limitations
All the 5 bits are used for information and there is no inherent means of error
detection.
Table 1
Baudot Codes
We can have odd or even parity. Fig 6(a) and Fig. 6(b) shows that only odd number of
bits going reverse error can be detected. If changes occur in an even number of bits,
the parity check will be passed and receiver will assume that it has received a valid
character. So parity checking method cannot detect the multiple errors.
Source Receiver
1.6DATA TRANSMISSION
(a) Parallel Transmission.
(b) Serial Transmission.
Parallel Transmission
In this method, all bits of encoded character are transmitted simultaneously
which means that each bit of the code is having a dedicated channel (Fig.7).
Serial Transmission
It is the most commonly used method of communication. In this method, bits
of the encoded character are transmitted one after the other along one channel serial
bit by bit as well as character by character as shown in the Fig.8.
We set the receive clock to run at 100 b/s. In most of the systems, timing
signals are propagated through the network so that the receiver can derive a clock that
is precisely in step with the transmit clock. Extracted clock is applied for sampling the
data bits (Fig.10).
Fig. 10
Character Synchronisation
Receiver can identify the character if it knows.
1. How many bits are there in the character ?
2. The speed at which the bits are coming down the line.
Then it can count off the required number of bits and assemble the character
once it has identified the first bit of a character. There are two ways to identify the
first bit of a character.
1. Synchronous Transmission.
2. Asynchronous Transmission.
Synchronous Transmission
It is used to transmit whole blocks of data at once. Each block of data is
preceded with a unique synchronising pattern. This makes use of SYN transmission
control character. The SYN character has a bit pattern of 00010110 with odd parity.
Asynchronous Transmission
It is called start/stop system. In this system Data is transmitted by character.
There is no fixed time relationship between one character and the next.
Idle
0 1 0 1 0 1 1 0 Line
At the end of a character, a stop pulse '1' is applied to allow the receiver to
stabilize itself before another character is transmitted. Stop pulse duration varies from
1 bit to 2 bit length. Another reason to add/stop bit is to make the line condition as '1'
(Mark) if last bit of last character happens to be '0' (Space). So that the next character
will be identified only when polarity changes from '1' to '0', i.e. start pulse is
recognised.
0 1 1 0 1 0 0 1
1.0 ‘1’ Mark
Decision
0.5 Threshold
‘0’ Space
0.0
The receiver under the control of its clock, properly phased with respect
to the incoming data waveform, samples the wave at the middle of each symbol
interval. If the amplitude is between half and full amplitude, the symbol is
recorded as a '1' ; if between zero and half amplitude the symbol is recorded as
'0'. The threshold of decision is the half amplitude level (normally). Instead of
current and no current, opposite directions or polarities of current can be used.
Fig.14 shows a waveform having equal positive and negative amplitudes. In this
case the decision threshold is zero. This type of signal is referred to as 'Polar'
signal.
0 1 1 0 1 0 0 1
+V
0 t
-V
Fig. 14 Polar Signal
In the foregoing examples, there is no change in the signal if one of the
symbols is repeated. It is sometimes desirable to have definite separation between two
consecutive symbols as shown in Fig.15. This type of signal is called the "Return to
Zero" signal as opposed to the 'Non return to zero' signals of the previous examples
which used full bit length pulses.
+V
0 t
-V
0 1 1 0 1 0 0 1
The theorem states the conditions under which the samples of a signal (e.g., a
function of time) can be used to reconstruct the signal perfectly: When sampling a
bandlimited signal (e.g., through analog to digital conversion) the sampling frequency
must be greater than twice the signal's bandwidth in order to be able to reconstruct the
original perfectly from the sampled version.
(where is normalized to
the actual frequency in Hz)
such that
Then is a bandlimited signal with bandwidth fH (in hertz or, equivalently, cycles
per second). If fs is the sampling rate (in samples per second), then the theorem can
be stated mathematically as
The Nyquist theorem states that a signal must be sampled at a rate greater than
twice the highest frequency component of the signal to accurately reconstruct the
waveform; otherwise, the high-frequency content will alias at a frequency inside the
spectrum of interest. An alias is a false lower frequency component that appears in
sampled data acquired at too low a sampling rate.
Here, let us state the Nyquist theorem which gives the maximum data rate
permissible (without distortion) on a channel:
r = 2 B log2L
Where r is the Maximum data rate, B is the Bandwidth, L is the level of the data
signal. Value of L may be 2 or more than 2. Similarly, we have Shannon's theorem
which takes noise into consideration.
As per Shannon's theorem
r = B log2 (1+S/N)
Where,
r = Max. bit rate.
B = Bandwidth.
S = Signal.
N = Noise.
Example: Calculate the number of level required for transmission if the B.W. of a
channel is 300-3400 Hz and S/N ratio is 20 dB.
Solution.
S/N = 20 dB
We know that
20 dB = 10 log10 (S/N) (for converting S/N into a ratio)
2 = log10 (S/N)
log10(102) = log10(S/N)
S/N = 102 = 100
B.W = 3100 Hz.
1.8.2SIGNAL ENCODING
We can represent bits as digital electrical signals in many ways. Data bits can
be coded into following two types of codes :
(a) Non Return to Zero (NRZ Codes).
(b) Return to Zero (RZ Codes)
NRZ Codes
In this type of codes, the signal level remains constant during a bit duration.
There are 3 types of NRZ codes.
NRZ-L Coding
Bit is represented as a voltage level which remains constant during the bit
duration.
NRZ-M Coding
A transition in the beginning of a bit interval whenever there is a 'Mark.
NRZ-S Coding
A transition in the beginning of a bit interval whenever there is a 'Space'. Let
us see the following bit stream 10100110 into three different types of NRZ codes
(Fig.20).
1.9RZ CODES:
Following are the RZ Codes
(a) Manchester Coding
(b) Biphase-M Coding
(c) Biphase-S Coding
(d) Differential Manchester Coding.
1.9.1MANCHESTER CODING
There '1' is represented as the clock pulse itself and '0' as inverted clock pulse.
It is widely used in local area networks. Fig.21 shows representation of '1' and '0'.
1.9.2BI-PHASE M CODING
There is always a transition in the beginning of a bit interval and binary '1' is
having additional transition in the middle of the bit interval.
1.9.3BI-PHASE S CODING
There is a transition at the beginning of a bit interval and binary '0' is having
additional transition in the middle of the bit interval.
1.10BASEBAND TRANSMISSION
If we transmit the data bits on the medium using one of the NRZ or RZ codes,
it is called baseband transmission. It is suitable for low bit rate. For high bit rates, the
baseband signal modulates a carrier and modulated carrier is transmitted on the
medium.
Fig. 22 - RZ Codes
1.11BAUDS
This is a unit to express how many times an electrical signal changes its levels
in one second. It is also called the modulation rate. When the electrical signal is
having two levels, the bit rate and band rate is same (Fig.23). If a signal has four
levels, bit rate will be twice the baud rate.
Here, in one second signal changes 4 levels so baud rate is 4 bauds. But bit rate = 8
bits/second (double of Baud rate).
Example
Two persons, one knowing English language only and the other knowing
French language only cannot communicate with each other.
Here transmission is taking place, but communication is not there. Therefore,
for communication, we need much more than the transmission. For communication,
we must have the same language, i.e. Data codes should be understood both by
transmitter and the receiver. Moreover, receiver should be in a position to receive, i.e.
Timing is also very important.
We have two types of communication :
(1) Synchronous Communication.
(2) Asynchronous Communication.
Synchronous Communication
In Synchronous communication the exchange of information is in a well disciplined
manner, e.g. if A want to send some information to B, it can do so only when B
permits it to send. Similarly, vice-versa is true. There is complete synchronisation of
dialogues, i.e. each message of the dialogue is either a command or a response.
Physical transmission of data may be in synchronous or asynchronous mode already
decided between A and B.
Asynchronous Communication
Thus, we see that Simplex Transmission is one way communication (OW), Half
Duplex Transmission is two way Alternate Communication (TWA), and Full Duplex
Transmission is two way Simultaneously Communication (TWS).