Lecture 3 - Physical Layer
Lecture 3 - Physical Layer
1
Overview
l Physical layer is responsible for transmission
of a stream of bits
l Put bits from a machine to a medium
l Pick bits from the medium give to receiver
l Some issues
l Medium
l Line Encoding: representing the digital logic
levels using the physical attributes associated
with the media.
l 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
Direct Data transmission
system
1 or more
6
Communication Media
l Wired media: cable guides signals
l Twisted Pair
l Coaxial Cable
l Fiber Optics
l Wireless media: no cable guides signal
l Radio
l Infra red
l Light
l …
7
Twisted pair
10
II. Coaxial
12
Application
l Using in TV transmission l For digital transmission
l For transmission of l Repeater should be
telephone signal used after each 1km
l 10,000 calls in the same l More repeater is needed
time for high speed
l Is being replaced by fiber transmission
optics
l Linking the computers of
the short distance
l LAN 10BaseT, 100BaseT,
…
13
Optical fiber
15
Optical fiber
16
Optical fiber
l Multimode stepped index :
l Several beam travel in slightly different direction
l Beams arrive in different delay
l Pulse can easily distort
l Multimode graded index:
l Index reduce gradually from the center to cladding.
l Beams closed to center travel slower than cladding.
Beams travel in curve form.
l Reduce pulse distortion.
17
Optical fiber
l Single mode:
l Index change less from center to cladding in
comparison with multimode.
l Beams travel along the center axe.
l Pulses experience less distortion.
18
Application of optical fiber
l Used for long distance l Advantage in comparison
transmission with other cables
l Large data rate
l Used for
l Small and light cable
communication in
l Low attenuation
metropolitan networks l Better isolation from
l Used for connecting electromagnetic
routers of ISP environment
l Large distance between
l Used in backbone part repeaters
of a LAN l Multimode à10km
l Singlemode à40 km
19
Wireless media
l Terrestrial microwave
l Used for metropolitan connection, for cellular
network
l Microwave satellite
l Used in TV, Long distance telephone
communication
l Radio broadcast
l Infrared
l Small scope, low data rate, unable to travel
through the wall 20
Wireless media
l Radio wave:
l Wavelengths: 1mm – 100.000km
l Frequencies: 3 Hz – 300 GHz
l Ex: Bluetooth, WIFI
l Microwave:
l Wavelengths: 1mm-1 m
l Frequencies: 300 MHz-300 GHz
l Terrestrial microwave : metro connection, cellular
communication
l Satelite microwave: TV, long distance telephone 21
Wireless media
l Infra red:
l Wavelengths: 700 nm- 1 mm
l frequency: 300 GHz-430 THz
l Small scope, no wall penetration
l Ex: use in remote controls
l Free Space Optics
l Wavelengths: 850nm, 1300nm, 1550 nm
22
Frequency range of transmission
chanels
23
Transmission methods
l Simplex: Data is trasmitted in one direction
l Full Duplex: Data can be transmitted in both
directions in the same time
l Half duplex: Data can be transmitted in both
directions but one direction at a time.
24
Transmission format
l Sequent transmission: Transmit 1 bit at a moment (over a signal
line)
l Parallel transmission: Trasmit multiple bits in the same time (over
multiple signal lines)
1
0
1010 A B
A B 1
0
25
Topology
l Point-to-point
l Star
l Ring
l Mesh
l Point-to-multipoint
l Bus
l Ring
l Star
26
Point -to-Point
1 2 3 4 5 N-2 N-1 N
27
Point-to-point
o A transmission line connects two devices
o Link between two devices:
o 1 line (half duplex) or
o 2 lines (duplex)
o In case of half duplex transmission, there may be
collision if two devices on the same link send data
in the same time
28
Point-to-multipoint
29
Point-to-multipoint
l Common character of point-to-multipoint
topo is to use an unique medium to
connects multiple nodes.
l Data is broadcasting over the medium
l Collision when two nodes transmit signal in
the same time
l Need a control mechanism to allow a single
node to transmit àmultiple access method
à see in Datalink layer.
30
Medium interface
l Data terminal equipment (DTE)
l Have data to transmit but has no feature for transmission
l Need an additional device for accessing the media
l Data circuit terminating equipment (DCE)
l Transmit bits on the media
l Transmit data and control information with other DCE
through the media
l Need a clear interface standard between DTE, DCE
31
DTE-DCE
32
Media interface
l Mechanism
l Define the form of the interface, number of pins for assuring the
interfaces match together
l Electrics
l Define the level of voltage to be used
l Define the length of pulse (frequency)
l Define enconding method
l Functionalities
l Functionality of each pins
l There are 4 groups of pins: data, control, synchronization,
ground
l Procedure
l Lists of events to perform for transmitting data
33
Example: EIA-232-E/RS-232
l Define for serial communication
l Mechanism: ISO 2110
l Electrics: V. 28
l Functionality: V. 24
l Procedure: V. 24
34
Example: V.24 /EIA-232-E
l Mechanic:
l 25 or 15 pins
l Transmission distance 15m
l Electrics
l Digital data
l 1=-3v, 0=+3v (NRZ-L)
l Data rate 20kbps
l Transmission distance<
15m
35
Data to Signals
representations
Introduction
Digital data - digital signal
Digital data - analogical signal
Analogical data - digital signal
Analogical data - analogical signal
36
Basic ideas
l Representing data by symbols
l A symbol is an elementary signal:
Ex: 1: , 0: or 1: 0:
38
Line coding: represent digital
data by digital signals
40
Some line codes
10/19/23 41
NRZ-L Non Return to Zero Level
Signal baseline
Signal baseline
10/19/23 42
NRZ-I Non return to zero invert
Signal baseline
Signal baseline
10/19/23 43
Line code consideration
l 3 aspects should be considered in any encoding method:
l Data speed: number of bits could be sent per second given
symbol rate
l Clock recovery on receiver side: If the clock recovery is
correctly at receiver side, the received signal can be incorrectly
seperated into symbols è cause error in the received data.
l DC-component: Directed Current vontage
component.
l DC-component makes recepter mistakenly detect level of
signal (by wrongly detect signal baseline)
l Encoding should avoid DC-component by maintaining signal
mean amplitude around 0.
44
NRZ
l NRZ Advantage
l Simple, utilise the maximum capacity of the line
l NRZ Weakness
l NRZ does not contain factors supporting clock synchorization
l Example: when sending a suit of 20 bits 1s, the signal is maintain in one
level and can be detected at receivers as 19 bits 1s.
l Contain DC-component when sending a suit of 1.
l Application
l Encoding data on magnetic storage
l Not popular in data transmission
10/19/23 45
Bipolar AMI
l Use more than 2 signal levels for 1 bit
l Bipolar alternate mark inversion
l 0 : No signal
l 1: Presence of signal. Two consequent 1s have two different
signal levels
l pseudoternary
l 1 : No signal
l 0 : Presence of signal. Two consequent 0 have two different signal
levels
Baseline
Baseline
10/19/23 46
Bipolar AMI
l No DC component
l Mean of signal lever is always 0
l Good synchronization when there are many bit 1s, lost
of synchronization when there are many bit 0s
l 3 possible signal levels for 1 bit:
l Not optimal in transmission line usage.
10/19/23 47
Biphase: Manchester
l Manchester: Always change signal level in the middle of bit
time
l Bit 1: Signal change from low level to high level.
l Bit 0: Signal change from high level to low level
10/19/23 48
Manchester encoding
10/19/23 49
Manchester encoding
10/19/23 50
Units in transmitting digital
data in digital transmission
10/19/23 52
Nyquist rate
l Nyquist rate: 2 times bandwidth of a
transmission line
l Bandwidth: B (Hz)
l Nyquist rate = 2B (Hz)
l The maximum pulse rate for
a baseband channel is the Nyquist rate, and is
double the bandwidth
l Bandwidth B (Hz)à max pulse rate is 2B pulse/s
l Data rate (bps) = pulse rate * number of
bits represented by a symbol/pulse.
l Data rate using NRZ-L?
l Data rate using Manchester encoding?
l Baseband transmission: signal is directly sent
using its original frequency
l Passband transmission: signal is shifted to
53
frequency around carrier frequency.
Line codes
10/19/23 54
Ex-01
l Draw the signal generated when we encode
following data using different encodings:
l 11000000 11001101
l NRZ-L
l Bipolar AMI
l Manchester
10/19/23 55
Ex-02
l We know that the following signal is
generated from some data using standard
Manchester encoding, assume that you act
as receiver, please
l Identify the starting and ending points of signal
corresponding to bits
l Identify the original data sent
10/19/23 56
Modulation of digital data to
analog signal
l Example: data transmission over telephone line
l Telephone line accept signal with frequencies between 300Hz - 3400Hz
l Digital data from the source must be modulated to analog signal to
transmit over telephone line.
l 3 modulation technics:
l Amplitude-Shift Key
l Frequency-Shift Key
l Phase-Shift Key
10/19/23 57
Amplitude-Shift Key (ASK)
10/19/23 58
On-Off Keying (OOK)
l Used in optical fiber
l A kind of ASK.
l 1: having light during the bit time (turn on the light
source).
l 0: no light during the bit time (turn off light
source).
l OOK may be realized in two forms:
l NRZ: light is on during all bit time of bit 1.
l RZ (return-to-zero): light is on only in a part of 1.
59
Mã On-Off Keying (OOK)
10/19/23 61
Phase-shift key (PSK)
l Carrier signal at different
phases to represent bit 0
and 1
l A symbol is a signal with
one phase
10/19/23 63
Digital to analog modulation
10/19/23 64
Analog data to digital signal
l Converting the analog data to digital data then
l Encode digital data to digital signal
l Using line codes: NRZ-L, Manchester etc…
l Two methods for converting analog data to digital data
l Pulse Code Modulation
l Delta Modulation
10/19/23 65
Pulse Code Modulation (PCM)
l Pulse Code Modulation
l Sample signal according to
Nyquist–Shannon sampling
theorem
l If sample a signal with
frequency >= 2 *max frequency,
the original signal can be
recovered fidely from the
samples.
l Ex: human voice has greatest
frequency of 4300Hz, it should
be sampled with at least 8600
sample/s.
l Sample are then quantized
l Approximate the amplitude of
the sample by some digital
values
l 4 bit quantization è 16 diffrent
10/19/23 possible sample amplitudes. 66
l More bits, more precise.
Delta Modulation
l Weakness of PCM: generate a lot of dataà
l Delta modulation: Use a single bit for each
sample
l Idea: Instead sending the real value of the
sample 𝑥(𝑡), send the variation in sample
value in comparison with the last sample:
approximative value 𝑥(𝑡).
%
l If x t > 𝑥(𝑡)
$ : send bit 1
l If x t > 𝑥(𝑡)
$ : send bit 0
67
Delta Modulation
l Nếu 𝑥 𝑡 > 𝑥% 𝑡 → 𝑥% 𝑡 ≔ 𝑥% 𝑡 + 𝛿
l Output = 1
l Nếu 𝑥 𝑡 < 𝑥% 𝑡 → 𝑥% 𝑡 ≔ 𝑥% 𝑡 − 𝛿
l Output = 0
𝑥 𝑡 > 𝑥0 𝑡
+𝛿
Output: 1
𝑥 𝑡 < 𝑥0 𝑡
−𝛿
Output: 0
68
Transmitting 1 1 1 0 00 0 011
signal:
Delta Modulation
l Parameters of the
modulation
l Step delta
l Sampling rate
l Errors:
l When the signal
varies slowly:
quantizing noise
l When the signal
varies quickly:
overloaded noise
69 10/19/23
Analog data – analog signal
l Integrate signal m(t) to carrier
wave with Fc frequency to a
signal with frequency around Fc
l Technic is used to shift signal to a
frequency appropriate to the
frequency of the transmission
channel
l 3 methods
l Amplitude modulation
l Frequency modulation
l Phase modulation
10/19/23 70