01_BasicPrinciples
01_BasicPrinciples
of Data Transfer
Computer Networks
Lecture 1
Classification of Data
Transfers
2
Classification According to the
Direction of the Communication
Simplex – signal can flow in only one direction
Example: TV broadcasting
Half duplex – communication is possible in both
directions, but only one direction at a time (i.e. not
simultaneously)
Examples: "walkie-talkie" 2-way radio, Ethernet
stations connected by a hub
Full duplex – allows communication in both
directions simultaneously
Example: Switched Ethernet
3
Parallel and Serial Communication
5
Asynchronous Serial Communication (2)
Detailed explanation at
6
http://en.wikipedia.org/wiki/Asynchronous_serial_communication
Synchronous Serial Communication (1)
The receiver clock is derived from the received
signal
the transmitter and receiver clocks always
synchronized
Data are transmitted in frames containing
Header
Payload
Variable-length (typically hundreds of bytes to a
few kilobytes)
Frame checksum (FCS)
Frames are delimited by flags in a transmitted bit
stream
7
Synchronous Serial Communication (2)
If there are no data to transmit, the transmitter
transmits just the empty frames (repeating flags)
No need for reoccurring synchronization before every
character
lower overhead
8
Processes Involved
in Data Transmission
9
How is the Transmitted Data
Represented ?
The transmitted data are represented by changes of
a suitable physical quantity, i.e. a signal s(t)
The most commonly used physical quantities are
Voltage (current)
Intensity of the electromagnetic radiation (light)
Sound pressure
…
10
Transmission Media
Transmitter Receiver
Data
11
The Processes Involved in the Data
Transmission
Transmitter Receiver
Data
Data
1001101
Encoding Decoding
U
Signal Signal
t
(Modulation) (Demodulation)
(Modulated) (Modulated)
Signal Signal
Medium
12
How does the Transmission Medium
Influence the Signal ?
?
Medium
Medium
noise
13
Characteristics of Transmission Media
attenuation, crosstalk, (ACR)
velocity of the signal propagation
return loss
…
Media characteristics are frequency-dependent
We try to utilize as narrow frequency band as
possible
so that the media characteristics do not differ too
much over the whole band
14
The Utilizable Frequency Band of the
Medium
We use the medium in a frequency range where it
has a desirable parameters
The medium
behaves as a
low-pass filter
17
Usage of Fourier Series
to Investigate the Deformation
of a General Signal
Transmitter Medium
1st component Parameters
Signal @f1
2nd component
Fourier Parameters +
transform @f2
Nth component
2
T
T
2
An g t . sin n t dt
T 0
T
2
Bn g t . cos n t dt
T 0
T
2
c g t dt
T 0
20
An Example (1)
21
An Example (2)
22
Baseband and Broadband
Transmission
23
Baseband and Broadband
Transmission Comparison
Baseband
Utilizes the full bandwidth of the medium
The signal can include frequencies that are very near zero
Broadband
Uses a specific part of the utilizable bandwidth of the
medium
Multiple communications may share the medium at the same
time
Avoids usage of subbands with unsuitable characteristics
Static or dynamic selection
24
Broadband Transmission
25
The Principle of the Broadband
Transmission
The signal have to be shifted to a frequency
band suitable for transmission over a particular
medium using the modulation
26
The Principle of the Modulation
Process
We choose a sine-wave carrier signal
with a frequency suitable for
transmission over the given medium
s t A.sin t
Then we change the carrier signal parameters
to represent data bits being transmitted
amplitude
frequency
phase
combination of the above
27
Amplitude, Frequency and Phase
Modulation
28
Phase Modulation
(Phase-Shift Keying,PSK)
If we have 2n possible phase changes, we may
encode n bits using one signal change
e.g. encode 2 simultaneously data bits by changing
the signal by either 45, 135, 225 or 315 degrees (4
options)
The number of possible signal change options is
limited by capability of the receiver circuitry to
differentiate between them
29
Quadrature Amplitude
Modulation (QAM)
Combines together the amplitude and phase shifts
30
Transfer Rate vs. Modulation Rate
32
Principle of the Baseband
Transmission
The encoded bit stream is transmitted in the
original frequency band
modulation is not used
Commonly used for metallic media in LANs and
optical media in both LANs and WANs
the distance is limited due to unsuitable
characteristics of the medium in some parts of
the utilized frequency band
If the modulation is not used, we need an
another mechanism of the phase synchronization
between transmitter and receiver => data
encoding
33
Data Encoding for Baseband
Transmission
To give a receiver a chance to synchronize with a
transmitter, we need to ensure enough changes of
the signal
necessary for the phase synchronization and
continuous adjustment of the receiver clock
but a signal with more changes during a time interval
contains higher frequencies and thus requires wider
frequency band
Removes the DC component
If the coupling circuitry (such as a transformer) does
not pass the DC component, we would not be able to
differentiate between a sequence of 0's and a
sequence of 1's
Do not confuse the data encoding with data
encryption applied for security purposes 34
Non Return to Zero Encoding (NRZ)
35
Problems with NRZ Encoding
36
The Encodings Most Used
in Baseband Transmission
See http://en.wikipedia.org/wiki/Line_code
37
Manchester, Differential Manchester
Manchester
A 1 is expressed by a low-to-high transition at the middle of
the period, a 0 by a high-to-low transition
Transitions at the start of a period are made as necessary
and don't signify data
Used in 10Mbps Ethernet (on copper media)
Differential Manchester
A 0 is expressed as a signal change at the beginning of a
period, a 1 as an unchanged value
There is always a transition at the middle of the period
(either low-to-high or high-to low as necessary to encode the
subsequent bit)
38
Manchester and Differential
Manchester - An Example
39
Return Zero (RZ)
Three signal levels (0, -1, +1)
The first half of the bit interval encodes the data bit
value
+1 represents binary 1
-1 represents binary 0
The signal is always on the level 0 in the second half
of the bit interval
40
Non Return to Zero Inverted (NRZI)
Two signal levels
Change of the signal encodes binary 1
To encode binary 0 the signals keeps the original level
41
Alternate Mark Inversion (AMI)
Modification of AMI
Solves the problem of loosing the synchronization during
sequences of 0s
Inserts 1 after 3 consecutive 0s
The inserted 1 is identified by violation of polarity
alternation rule
Used on PCM E1-E3 links
Digital links between telephony COs
43
Code Mark Inversion (CMI)
44
4B5B (5B6B, …)
46