Professional Documents
Culture Documents
BASIC CONCEPT OF
DATA COMMUNICATION
DEPARTMENT
OF ELECTRICAL
ENGINEERING
1
Data Communication
data : number, alphabet or symbol processed by computer.(raw
facts before
processing).
computer data: binary digit (0s and 1s binary).
information: data, voice, image, character and code has been
processed in a form that can be use and understand by
receiver.
code : message that can be read and has a meaning that can be
understood by the end user (machine or human).
Main purpose of an electronic communications system is to
transfer information from one place to another.
Electronic communications can be viewed as the
transmission, reception and processing of information
between two or more locations using electronic
circuit/device.
Basic communication models shows the communication
flows between 2 points.
3
Exchangeable
of digital data
coding between
two devices via
some form of
transmission
medium.
The system
consists of
group up the
data, processing
the data and
transmit the data
using a specified
communication
channel
Data
Communication
1) Electronic communication:
- email, video teleconferencing, etc.
2) Internet access:
- email, chat, download
3) ATM card:
- money draw from bank that has link
4) Shopping privilege:
- order through television or radio
5) Public access
- Jabatan Pendaftaran Negara, Jabatan Pengangkutan Jalan &
many others.
cont.
cont.
Communication Codes
2.Boudot code
3.EBCDIC
code
4.ASCII code
1.Morse code
COMMUNICATION
CODES
11
Communication Codes
cont...
Morse Code
Communication Codes
cont...
Morse
Code
Table
13
Communication Codes
cont...
14
Communication Codes
cont...
Exercise:
1. Convert English code back into Morse and
how many times required for data
transmission of
SWEET 17.
2. Convert Morse code back into English
15
Communication Codes
cont...
16
Communication Codes
cont...
17
1.2 .1
Communication Codes
cont...
Baudot code
18
19
Communication Codes
cont...
Example:
Convert English code into Baudot code for;
2 BUS
Solution:
Shift to upper case column 2 : 11011
Space : 00100
Shift to lower case column B : 11111
Shift to lower case column U : 11111
Shift to lower case column S : 11111
10011
11001
00111
00101
20
Communication Codes
cont...
Exercise:
21
Communication Codes
cont...
Solution:
Shift to
Shift to
Shift to
Shift to
Space :
Shift to
Shift to
Shift to
11011
11111
11111
11111
10001
01001
00110
00101
11011 10111
11011 00001
11011 10001
22
Communication Codes
cont...
EBCDIC Code
Extended Binary coded Decimal Characters
Information.
8 bit characters created by IBM.
there are 256 different combination.
Often used in IBM.
23
24
Communication Codes
cont...
Example:
Translate those characters using EBCDIC code;
a) B
b) 5
Solution:
a) B:
b) 5:
1100 0010
1111 0101
25
Communication Codes
cont...
Exercise
Translate those characters using EBCDIC code;
a) A
b) 7
c) a
d) SYN
26
Communication Codes
cont...
Solution:
Translate those characters using EBCDIC code;
a) A : 1100
0001
b) 7 : 1111
0111
c) a : 1000
0001
d) SYN : 0011 0010
27
Communication Codes
cont...
ASCII Code
American Standard Character Information
Interchange
Consists of 7 bit character.
Has 128 different character combination.
28
29
Communication Codes
cont...
Example:
Translate those characters using ASCII code;
a) 7
b) SYN
Solution:
Translate those characters using ASCII code;
a) 7 : 0110111
b) SYN : 0010110
30
Communication Codes
cont...
Exercise
31
Communication Codes
cont...
Solution:
Translate those phrases using ASCII code of
1 SeRaH
: 010
0010
1 : 011
0001
S : 101
0011
E : 110
0101
R : 101
0010
A : 110
0001
H : 100
1000
: 010
0010
32
Morse
code
Boudot
code
EBCDIC
code
ASCII code
34
Terminal
Modem
DTE
DCE
Telecommunication
Network
Modem
DCE
Terminal
DTE
35
cont.
cont.
Repeater
A device to regenerate
back the signal.
Receiver /sink
The device that receives the message.
a device to detect electrical signal and translate back to
the original signal.
37
Communication
DTE
A subscriber equipment or users device for
data communications.
Consists of a source of data or receiving data
or both.
These tools may include an error control,
synchronization and identification capabilities
of the station.
Examples of DTE is the computers, logical
control, visual display units and work station.
DCE
Provided
by
authorities
or
by
client
communication network itself.
DCE is capable of implementing, operating and
terminate a data communication, exchanging
signals and coding needed to make the
relationship between the DTE and data circuits.
Internal or external parts of a computer.
Example: a modem or data set.
38
39
40
cont....
Baud Rate :
The number of symbols transmitted during one second and is
expressed in symbols per second.
The rate of change of a signal on the transmission medium
after encoding and modulation have occurred.
Sometimes is written transmission rate, modulation rate or
symbol rate.
cont....
Baud rate
Is the number of signal
units per second that
are require to
represent those bit
42
Example:
What is the bit rate and baud rate for an analogue signal that carries 3
bits in each signal unit if 2000 signal units are sent per second?
Solution:
Baud rate = 2000 baud per second
Bit rate = 2000 x 3 = 6000 bps
What is the baud rate for an analogue signal if the bit rate of the
cont....
Exercise:
a) An analog signal carries 4 bits in each signal unit. If
1000 signal units are sent per second, find the baud rate
and the bit rate.
b) The bit rate of a signal is 3000. If each signal unit carries
6 bits, what is the baud rate?
44
Solution:
a)
b)
45
I B log 2 1
N
or
S
I 3.32 B log10 1
N
where;
I = information capacity (bits per second)
B = bandwidth (Hz)
S/N = signal to noise power ratio (unitless)
46
EXAMPLE:
For a standard telephone circuit with a signal-to-noise power ratio of
1000W (30dB) and a bandwidth of 2.7kHz, the Shannon limit for
information capacity is,
I 3.32 B log10 1
N
I ( 3.32 )( 2700 ) log10 1 1000
I 26.9kbps
47
DATA ENCODING
Encoding Techniques
1. Digital data Digital signal.
2. Digital data Analog signal.
3. Analog data Digital signal.
4. Analog data Analog signal.
48
DATA ENCODING
cont
49
There are several ways for encoding digital data to digital signals:
Non-return to Zero (NRZ)
Return to Zero (RZ)
DATA
ENCODING
Unipolar
51
cont.....
cont
52
cont.....
cont
53
cont...
54
cont...
55
cont...
Manchester Code
56
Digital to Digital
Encoding
cont...
Manchester Code
1
cont
0
57
cont...
58
cont...
cont
59
cont...
cont...
cont
61
cont...
Polarity of
preceding
pulse
cont
Number of
Bipolar
Pulses (Bit 1)
since Last
Substitution
Odd
Even
000-
+00+
000+ -00-
cont...
cont
Exercise:
Encoded the data below to AMI and HDB3:
a)
"10000110"
b)
"1010000011000011000000"
63
cont
b)
cont...
65
66
67
cont...
68
cont...
When the data is bit 1, the carrier signal has the amplitude,
when the data is bit 0, the amplitude of carrier signal is 0.
69
70
71
cont
72
73
cont...
74
75
77
cont...
78
79
cont...
cont...
80
cont...
cont...
81
cont...
cont...
82
cont...
cont...
83
M-ary Coding
In binary coding:
Data bit 1 has waveform 1
Data bit 0 has waveform 2
Data rate = bit rate = symbol rate
84
M-ary Coding
cont
n log 2 M
Where;
n = number of bits
M = number of conditions, levels or
combinations possible with n bits
85
M-ary Coding
cont
2n M
For example, with n = 1 bit, only 21 = 2 conditions are possible.
86
M-ary Coding
cont
Advantages:
Required transmission rate is low (bit rate/M).
Low bandwidth.
Disadvantages:
Low signal to noise ratio (due to multiple amplitude
pulses).
87
00 phase 0
10 phase 180
01 - phase 90
11 phase 270
88
QPSK
digital
data
is
represented by 4 points of a 2-bit
binary code around a circle
which correspond to 4 phases
of the carrier signal. These
points are called symbols.
89
cont
90
Constellation diagram
example for BPSK.
Constellation diagram
for QPSK with Gray
coding. Each adjacent
symbol only differs by
one bit.
91
92
The QAM
cont
93
The QAM
cont
4 QAM and 8 -QAM constellations
94
QPSK
95
cont
Execise:
a)
96
b)
97
Data Transmitting
The importance of timing and framing
98
HEADER
DATA
10
0
TIMING (PEMASAAN)
Signal timing repetition signal (clock) used to control timing
operations.
Sender and receiver - should have the same timing bit so
that sampling process can be done appropriately (preferably
in the middle of the bit period) to determine exactly the level
of the data , either bit 0 or bit 1.
10
1
Data Transmitting
10
2
Data Transmitting
Parallel and Serial Transmission
Parallel Transmission
10
3
Data Transmitting
cont
Parallel and Serial Transmission cont
Serial Transmission
10
4
Data Transmitting
cont
105
Data Transmitting
cont
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 as data.
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 bit element.
106
Data Transmitting
cont.
Asynchronous Transmission
cont
107
Data Transmitting
cont
Asynchronous Transmission
cont
We send 1 start bit (0) at the beginning and 1 or more stop bits (1s) at the
end of each byte.
There may be a gap between each byte.
Data Transmitting
cont
Asynchronous Transmission
cont
109
Data Transmitting
cont
Synchronous Transmission
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.
Data Transmitting
cont
Synchronous Transmission
cont
We send bits one after another without start or stop bits or gaps.
It is the responsibility of the receiver to group the bits.
111
11
2
113
cont
11
4
cont
115
116
cont
cont
117
cont
cont
118
Error Control
11
9
cont
120
cont
121
cont
122
cont
What happens if the character 10010101 (parity bit is the last bit)
and the first two 0s accidentally become two 1s?
Thus, the following character is received: 11110101.
Will there be a parity error?
Problem: Simple parity only detects odd numbers of bits in
error (50%)
123
cont
124
cont
Polynomials
CRC generator(divisor) is most often represented not as
a string of 1s and 0s, but as an algebraic polynomial.
125
12
6
= 1101
= 10011010
Generator
Message
11111001
1101
k + 1 bit check
sequence c,
equivalent to a
degree-k
polynomial
10011010000
1101
Message plus k
zeros
1001
1101
1000
1101
Result:
1011
1101
1100
1101
Remainder
m mod c
1000
1101
101
11111001
Result:
CRC test is past.
128
Result:
CRC test is failed.
129
130
REFERENCES:
Main:
Forouzan, B.A. (2012). Data Communications
and Networking (5th edision). Mc Graw Hill.
(ISBN: 978-0-07-131586-9)
Additional:
William Stallings. (2011). Data And Computer
Communication (9th edition). Prentice Hall.
(ISBN-10: 0131392050)
13
1