Lecture 3 - Physical Layer
Lecture 3 - Physical Layer
1
Overview
Physical layer is responsible for transmission
of a stream of bits
Put bits from a machine to a medium
Pick bits from the medium give to receiver
Some issues
Medium
Line Encoding: representing the digital logic
levels using the physical attributes associated
with the media.
Multiplexing 2
From signal to packet
Analog Signal
“Digital” Signal
Bit Stream 0 0 1 0 1 1 1 0 0 0 1
0100010101011100101010101011101110000001111010101110101010101101011010111001
Packets
Header/Body Header/Body Header/Body
Packet
Transmission Sender Receiver
3
Model of data transmission
system
4
Data Communication networks
5
Media
Wired
Twisted Pair
Coaxial Cable
Fiber Optics
Wireless
Radio
Infra red
Light
…
7
Twisted pair
9
II. Coaxial
10
Application
Using in TV transmission For digital transmission
For transmission of Repeater should be
telephone signal used after each 1km
10,000 calls in the same More repeater is needed
time for high speed
Is being replaced by fiber transmission
optics
Linking the computers of
the short distance
LAN 10BaseT, 100BaseT,
…
11
Optical fiber
Jacket
13
Optical fiber
14
Application of optical fiber
Used for long distance Advantage in
transmission comparison with other
Used for cables
communication in Large data rate
metropolitan networks Small and light cable
Used for connecting Low attenuation
routers of ISP Better isolation from
electromagnetic
Used in backbone part environment
of a LAN Large distance between
repeaters (10km)
15
Wireless media
Data transmission on different frequency
band of electromagnetic waves
No physical lines
Broadcast, half-duplex: only send or
receive at a time
Being impact by environment
Reflection
Noise/interfering
Scattering caused by obstacles
16
Wireless media
Radio wave:
Wavelengths: 1mm – 100.000km
Frequencies: 3 Hz – 300 GHz
Ex: Bluetooth, WIFI
Microwave:
Wavelengths: 1mm-1 m
Frequencies: 300 MHz-300 GHz
Terrestrial microwave : metro connection, cellular
communication
Satelite microwave: TV, long distance telephone
17
Wireless media
Infra red:
Wavelengths: 700 nm- 1 mm
frequency: 300 GHz-430 THz
Small scope, no wall penetration
Ex: use in remote controls
Free Space Optics
Wavelengths: 850nm, 1300nm, 1550 nm
18
Frequency range of transmission
chanels
19
Transmission type
Simplex: Data is trasmitted in one direction
Full Duplex: Data can be transmitted in both
directions in the same time
Half duplex: Data can be transmitted in both
directions but one direction at a time.
20
Transmission format
Sequent transmission: Transmit 1 bit at a moment (over a signal
line)
Parallel transmission: Trasmit multiple bits in the same time (over
multiple signal lines)
1
0
1010 A B
A B 1
0
21
Topology
Point-to-point
Star
Ring
Mesh
Point-to-multipoint
Bus
Ring
Star
22
Point -to-Point
1 2 3 4 5 N-2 N-1 N
23
Point-to-multipoint
24
Medium interface
Data terminal equipment (DTE)
Have data to transmit but has no feature for transmission
Need an additional device for accessing the media
Data circuit terminating equipment (DCE)
Transmit bits on the media
Transmit data and control information with DCE through
connection the media
Need a clear interface standard between DTE, DCE
25
DTE-DCE
26
Media interface
Mechanism
Define the form of the interface, number of pins for assuring the
interfaces match together
Electrics
Define the level of voltage to be used
Define the length of pulse (frequency)
Define enconding method
Functionalities
Functionality of each pins
There are 4 groups of pins: data, control, synchronization,
ground
Procedure
Lists of events to perform for transmitting data
27
Example: EIA-232-E/RS-232
Define for serial communication
Mechanism: ISO 2110
Electrics: V. 28
Functionality: V. 24
Procedure: V. 24
28
Example: V.24 /EIA-232-E
Mechanic:
25 or 15 pins
Transmission distance 15m
Electrics
Digital data
1=-3v, 0=+3v (NRZ-L)
Data rate 20kbps
Transmission distance<
15m
29
Data Encoding
Introduction
Encoding digital data to digital signal
Encoding digital data to analogical signal
Encoding analogical data to digital signal
Encoding analogical data to digital signal
30
Fundamental concepts
Objective
Transform the data into some signals that is suitable for
transmission media
4 forms of encoding
digital data to digital signal
digital data to analogical signal
analogical data to digital signal
analogical data to digital signal
10/11/2021 31
Data encoding
Use different discrete signal, different voltage level
for representing bit 0 and 1.
Data transmission should be synchronized between
sender and receiver: clock synchronization
Encoding could be performed by bit or by a group of
bit e.g., 4 or 8 bits.
There are many way to represent 0 and 1 See
data transmission technique.
32
1. Digital data- Digital signal
Data unit: 1 bit
Digital data is a digital signal
Each pulse is considered as a signal unit.
10/11/2021 33
Line encoding method
10/11/2021 34
NRZ-L Non Return to Zero Level
10/11/2021 35
NRZ-I Non return to zero invert
10/11/2021 36
Line encoding consideration
Two aspects should be consider in any encoding
methods:
Clock recovery on receiver side: If the clock recovery is
not ideal, then the signal to be decoded will not be sampled at
the optimal times. This will increase the probability of error in the
received data.
DC-component: Directed Current vontage
component.
DC-component makes recepter mistakenly detect level of
signal
Encoding should avoid DC-component by having signal mean
altitude to be around 0.
37
NRZ
NRZ Advantage
Simple, utilise the maximum capacity of the line
Frequency range from 0 - ½ data speed
Example: 9600bps -> 4800khz
NRZ Weakness
NRZ does not contain element supporting clock synchorization
Example: when sending a suit of 1 or 0 with many consecutive signals of
the same level lost synchronization.
Set of 0 for NRZI and set of 1 for NRZ-L
Contain DC-component when sending a suit of 1.
Application
Encoding data on magnetic storage
Not popular in data transmission
10/11/2021 38
Bipolar AMI
10/11/2021 39
Bipolar-AMI
10/11/2021 40
Bipolar AMI
DC component =0
Good synchronization when there are many bit 1(0),
lost of synchronization when there are many bit 0(1)
3 possible signal levels for 1 bit:
Not optimal in using transmission line.
10/11/2021 41
Biphase: Manchester
Manchester: Always change signal level in the middle of bit
time
Bit 1: Signal change from low level to high level
Bit 0: Signal change from high level to low level
Level change provide synchonisation mechanism.
Differential Manchester:
0: signal level change at the begining of bit
1: no signal level change at the begining of bit
Always change signal level in the middle of bit time for
synchronization purpose
10/11/2021 42
Manchester encoding
10/11/2021 43
Manchester encoding
10/11/2021 44
Units in transmitting digital
data in digital transmission
10/11/2021 46
Line encoding summary
10/11/2021 47
Exercise 1
Present the following bit set by encoding
methods
11000000 00000010 11001101 01010101
48 10/11/2021
Exercise 2
Given a Manchester coding signals as
followed
Determine the timing of each bit
Determine the original bits
49 10/11/2021
Solution for exercise 2
50
2. Encoding digital data to
analogical signal
Example: transfer data through telephone system
Traditional telephone transfer, and forward data from 300Hz to 3400Hz
At sources and destination, digital data need to be converted to analog
signals to transfer on telephone lines
Depend on signals, we have 3 different encoding techniques
Amplitude shift keying – ASK: Điều chế khóa dịch biên độ
Frequency shift keying – FSK: Điều chế khóa dịch pha
Phase shift keying – PSK: Điều chế khóa dịch tần số
10/11/2021 51
Amplitude shift keying (ASK)
10/11/2021 52
On-Off Keying (OOK)
Used in optical cables
A type of ASK
1: having light during bit period (ON).
0: no light during bit period (OFF).
OOK can use different format :
NRZ: emit light signal in the whole of bit 1
RZ (return-to-zero): only emit light signal in a
proportion of bit 1.
53
On-Off Keying (OOK)
54
Frequency shift keying (FSK)
10/11/2021 55
Phase shift keying (PSK)
10/11/2021 56
Amplitude and phase-shift keying
(APSK)
10/11/2021 57
Encoding digital-to-analogue
10/11/2021 58
3. Encoding analog data to digital data
Encoding analog data to digital data,
Convert to digital signals
Direcly by NRZ-L
Or other digital-digital encoding
Convert to analog signals
Presented digital-analog encoding
Two main encoding methods
Pulse Code Modulation
Delta Modulation
10/11/2021 59
Pulse Code Modulation (PCM)
Pulse Code Modulation
Shannon sampling theorem
the sampling rate is be equal to or
greater than twice the highest
frequency in the signal, the
original is intact
Example: voice has maximum
frequency of 4300Hz, sampling
rate should be minimum at
8600Hz
Two steps
Sampling (Pulse-amplitude
modulation)
Quantization
Differential pulse-code
modulation
Only sampling the differences
10/11/2021 60
Delta Modulation
Use a staircase function (hàm bậc thang)
The approximation falls below the signal 1
The approximation lies above the signa 0
Increase or decrease the approximation "delta" depending on 1 (increase) or 0
(decrease)
In general
1-bit per sampling period based on derivative
Parameters
Delta / step-size
Sampling rate
Noise/ Error/ Distortion
Slow-change signal/ small delta: quantization error / granular noise
Fast-change signal/ large delta: Slope Over load distortion
10/11/2021 61
10/11/2021 62
Delta Modulation
Delta modulation requires a sampling rate
much greater than the Nyquist rate
(commonly four or five times the Nyquist rate)
Close to DPCM
63
Analog data to analog signals
10/11/2021 64