Basic concepts and security at the physical layer Flashcards
(40 cards)
What is a signal?
A signal is a function that conveys information about the behavior or attributes of some phenomenon. It can vary over time, space, or another independent variable.
It can be:
* Analog signal – continuous in time and amplitude (e.g., audio waveform).
* Digital signal – discrete in time and amplitude (e.g., binary code: 0s and 1s).
How can a signal be represented?
There are different ways to represent a signal since the time representation is always effective for many applications.
A signal, for example, can be represented as a lineare combination of basis functions (sum of elementary signals). It means that:
* the signal will be represented as the sum of M components
* each component is the product between the i-th component w_i of a complete orthonormal basis for x(t) and a parameter alpha_i
* alpha_i is the result of the scalar product between x(t) and w_i. The meaning of this coefficient is “how much of the i-th signal is needed to make x(t)”
Notes:
* w(t) is composed by “elementary” signals
* the scalar product associates a (complex) scalar number to a pair of vectors or signals that measures theur “similarity”. If the scalar product is zero the signals are said to be orthogonal
* The scalar product is useful to associate signals with vector coefficients (modulations) or with frequency components (spectral analysis).
* If the signal x(t) is represented with vector coefficients such as x = (a_1, a_2, …, a_M) then x is a base that can result in different signals by asociating the base with different coefficients.
What is the general model of a Digital Communication System like?
TX -> encoder -> modulator -> channel -> demodulator -> decoder -> RX
It can be divided in three sections:
- user: digital signals
- interface: to transform bits into signals having the wanted characteristics -> to have them we use compression, encoding, association and other methodologies
- channel: to propagate analog waveforms that convey info
Components:
* encoder: it implements source and channel encoding to limit respectively the amount of data transmitted and the effects of channel disturbances
* modulator: converts the digital signal to an analog one
* channel: transmits the analog signals
* demodulator: converts the analog signals into a SEQUENCE OF SAMPLES. to be processed by the decoder
* decoder: it implements source and channel decoding to resectively expand the compressed data and limit the effects of channel errors
Fourier Analysis
The core idea is that any complex, periodic or non-periodic signal can be decomposed into a series of simpler sine and cosine waves. These simpler waves make up the frequency components of the original signal.
In essence, Fourier analysis transforms a signal from the time domain to the frequency domain.
So:
* for each signal there is a spectral representation
* for each operation over a signal there are equivalent effects in the frequency domain
* finite duration signals have infinite support in the frequency domain
TODO: come si arriva alla trasformata
Bandwidth
The bandwidth is the interval of frequencies occupied by a signal. Signals have always infinite support in frequency domain but many signals are characterized by quasi-null frequencies out of the main lobes.
One of the most popular definitions of bandwidth is related to the square of the modulus |X(f)|^2 ->
3dB bandwidth: it is the frequency range between the two points on the frequency response curve where the output power falls to half (i.e., -3 dB) of its maximum value.
Linear systems and filters
A set of operations applied to ignals can be modeled as a system.
Systems can be Lineare-time-invariant (LTI): these systems are modeled by a frequency response commonly noted as H(f) -> Y(f) = H(f)X(f)
When a system is used to pass or to remove particular frequencies of the singal it is regarded as a filter. They are useful to model desired and undesired effects.
Signal modulation and demodulation (theoretical)
Modulation is an operation that allows to move a signal spectral content to a different center frequency. This is done by multiplying the signal BY a sinusoidal function, which results in a frequency shift.
y(t) = x(t)cos(2 pi f_0 t)
F(x(t)cos(2 pi f_0 t)) = 1/2 [X(f-f0) + X(f+f0)]
(look at drawings)
This result is fundamental for most wireless modulations to move the spectral content of the original signal to the most appropriate frequency band: thy way multiple signals can be received on the same shared medium and the be separated. -> FDM
The original signal, when received, can be recovered by first multiplying it for a sinusoid at the same frequency and then using a low pass filtering H(f) which selects just the component centered at the frequency f
Frequency multiplexing (FDM)
Thanks to modulation, different signals with overlapping bandwidths can be frequency-modulated in different portions of the spectrum. Once they are received they can be de-multiplexed without distortions.
Analog-to-digital conversion and Sampling Theorem
- analog signal
- sampling
- quantization
- digital signal
Nyquist theorem: a continuous time signal can be sampled and perfectly reconstructed from its samples if the sampling frequency is greater than twice the band of the signal.
“perfectly reconstructed”… actually not because the signal bandwidth is infinite, but in general is quasi-null outside the main lobes.
So:
- if the sampling frequency is f_c = 1/T_c
- and f_c has to be > 2B
- this means that T_c < 1/2B
B is the one-side bandwidth of the analog signal.
Modulation process: definition and types of modulation
Modulation is the process of varying one or more properties of a periodic waveform, called the carrier signal, with a separate signal called the modulation signal, that typically contains information to be transmitted.
Modulation can be done both on digital and analog signals. In general, all the techniques are based on basic modulation types:
- Amplitude modulation: the amplitude of the carrier signal is varied according to the istantaneous amplitude of the modulation signal
- Frequency modulation: the carrier amplitude remain constant BUT the carrier frequency shifts proportionately to the AMPLITUDE of the information signal (as the modulating signal amplitude increases, the carrier frequency increases)
- Phase modulation: the phase of the carrier is modulated to follow the changing signal amplitude of the message signal. The peak and the frequency of the carrier are maintained constant, but as the amplitude of the message signal changes, the phase of the carrier changes accordingly
Similar ideas have been applied to digital signals:
- Amplitude shift keying (ASK)
- Frequency shift keying (FSK)
- Phase shift keying (PSK)
Baseband and bandpass signals
Baseband: signals whose frequency spectrum is concentrated around zero
Bandpass: // around some f_c away from zero
Baseband signals can be converted to bandpass signals through modulation (mult. by some sinusoid with f_c)
Pulse Amplitude Modulation (PAM) (2-PAM and M-ary PAM) and Solution for errors
In digital communication, baseband PAM refers to modulating a digital signal (like a sequence of 1s and 0s) without converting it to a high-frequency carrier. Instead, we shape the signal into pulses and transmit them directly over the channel.
𝑔(t) is the basic pulse shape—the building block. The most basic choice is a rectangular pulse: it consists of a constant value over a short time. In practice, more advanced pulse shapes (like sinc or raised cosine) are used to reduce bandwidth and minimize interference between symbols (ISI – Inter Symbol Interference).
2-PAM uses two amplitude levels to represent binary values:
- A pulse of amplitude +A represents a binary “1”
- A pulse of amplitude –A represents a binary “0”
So:
- If the bit is 1 → transmit 𝑠(t) = 𝑔(t)
- If the bit is 0 → transmit 𝑠(t) = −𝑔(t)
In M-ary PAM, instead of just two amplitude levels (like in 2-PAM), we use M different amplitudes. This allows us to send more than one bit per symbol.
Each signal is a scaled version of the basic pulse
s_i(t) = A_i * g(t)
Each amplitude (signal level) represents a unique bit pattern.
Number of bits per symbol: log_2(M)
Why Use M-PAM?
- Higher data rate: More bits per symbol.
- More efficient bandwidth usage.
Trade-Off: Higher M ⇒ Less noise tolerance
As the amplitude levels get closer together, it’s easier for noise to cause symbol errors.
Gray coding
It is a strategy for mapping bits to symbols so that the number of bit errors is minimized.
Considering that it is most likely to have symbol errors between adjacent levels, the goals is to minimize the number of bits that differ from one level ot the adjacent one.
This technique achieves 1 bit difference between adjacent levels.
- No gray coding: 01 10 -> two errors
- Gray coding: 01 11 -> one error
Energy per bit
A measure of the energy efficiency of the modulation can be obtained from the average energy per bit
𝐸_𝑏 = 𝐸_𝑠/ log2 𝑀
- is the average energy per symbol divided by the number of bits carried by each symbol
- the energy needed to transmit information reliably depends also on the amount of noise in the system
E_s is the avarage energy per symbol: 𝐸_𝑠 = 𝐸_𝑚/𝑀
and E_m is the actual energy per symbol which is computed with the integral of S(m)^2 over [0, T].
For example, if
𝑀 = 4
and 𝐴1 = −3, 𝐴2 = −1, 𝐴3 = 1, 𝐴4 = 3
then 𝑠_𝑖 (𝑡) = 𝐴_𝑖 𝑔(𝑡)
and E_s = (9T + T + T + 9T) / 4 = 5T
The distance from the origin is proportional to the energy of the symbol.
For example 𝐴4 = 3 is more distant from 0 than 𝐴3 = 1
Why there is the need to have a trade off between bandwidth efficiency and energy efficiency?
Generally, we want to choose the pulse shape 𝑔(𝑡) in order to put more energy in a small bandwidth.
For a pulse of duration 𝑇,
- the symbol rate is 𝑅_𝑠 = 1/𝑇
- There are log2(𝑀) bits per symbol, therefore the bitrate 𝑅𝑏 = log2(𝑀) 𝑅𝑠
- Roughly, the two-sided bandwidth is 𝐵𝑊 = 2R_s = 2/T
- the bandiwdth efficiency eta = R_b / BW = (log_2(M)/T) * (T/2) = log_2(M) / 2 𝑏𝑝𝑠/𝐻𝑧
- Increased BW efficiency with increasing M
Example:
M = 4 ⇒ BW efficiency = 1
M = 8 ⇒ BW efficiency = 3/2
However, as M increases we are more prone to errors as symbols are closer together (for a
given energy level)
=> Need to increase symbol energy level to
overcome errors
=> Tradeoff between BW efficiency and
energy efficiency
Two dimensional modulations
Instead of using just one pulse shape (as in PAM), two-dimensional modulation uses two orthonormal basis functions (think of them like X and Y axes in a 2D space). Every symbol is a point (vector) in this 2D space.
- The set of all possible transmitted signals (or symbols) forms a constellation.
- Each symbol corresponds to a unique bit pattern.
- The position of each point in the 2D plane (based on amplitude and phase) determines the symbol being sent.
- More bits per symbol → higher data rate
- Efficient use of bandwidth
- Example: A 16-point constellation can represent 4 bits per symbol.
But: - Symbols are closer together → more sensitive to noise.
- Error probability increases as constellation gets denser.
Common constellations:
- QAM: Quadrature Amplitude Modulation such as a PAM in two dimensions
- PSK: Phase Shift Keying: special constellation where all symbols have equal power
Symmetric M-QAM
Here M is the totl number of signal points / symbols. Radice of M is the number of signal levels on each axis.
M = K^2 for some K then the costellation is symmetric.
Signal levels on each axis are the same as for PAM
E.g. 4-QAM -> +/-1
16-QAM -> +/-1, +/-3
Using the same pulse g(t), the bandwidth efficiency is the same as M_PAM BUT QAM has larger energy efficiency than PAM.
M-QAM Modulator and Demodulator
- Your symbol is a point 𝑠_𝑚=(𝐴𝑥, 𝐴𝑦) in the I-Q constellation plane.
- You convert that 2D value into a bandpass waveform by multiplying:
Icomponent(𝐴𝑥)×cos(2𝜋𝑓𝑐𝑡)
Qcomponent(𝐴𝑦)×sin(2𝜋𝑓𝑐𝑡) - Cosine and sine are orthogonal (independent) sinusoids at carrier frequency 𝑓𝑐
- They form a basis for the bandpass signal, just like
𝑥 and 𝑦 axes form the basis for 2D geometry.
If your symbol is the 𝑚-th one from the constellation, with components 𝐴𝑥,𝑚 and 𝐴𝑦,𝑚, and your pulse shape is 𝑔(𝑡), then:
𝑠𝑚(𝑡) = 𝐴𝑥,𝑚⋅𝑔(𝑡)⋅cos(2𝜋𝑓𝑐𝑡)−𝐴𝑦,𝑚⋅𝑔(𝑡)⋅sin(2𝜋𝑓𝑐𝑡)
This is the bandpass QAM signal for the m-th symbol.
- The minus sign ensures the Q component is in quadrature (90° out of phase) with the I component.
- It also aligns with standard signal processing conventions and makes demodulation simpler at the receiver.
Over one full symbol duration 𝑇, sine and cosine at frequency 𝑓𝑐 are orthogonal: this means they don’t interfere with each other when used as basis functions. The symbol duration 𝑇 must match an integer number of carrier cycles: f c = n/T, forsomeintegern. This ensures clean separation of I and Q during demodulation.
At the receiver, to recover 𝐴𝑥 and 𝐴𝑦, we do:
1. Recover I (Aₓ):
Multiply 𝑈(𝑡) by cos(2𝜋𝑓𝑐𝑡)
Low-pass filter (to remove high-frequency terms)
Why it works: cos⋅cos term survives while sin⋅cos term averages to zero (because of orthogonality)
- Recover Q (Aᵧ):
Multiply 𝑈(𝑡) by sin(2𝜋𝑓𝑐𝑡)
Low-pass filter again
Why it works: sin⋅sin term survives while cos⋅sin term cancels out
PSK
PSK is a form of digital modulation where the phase of a carrier wave is changed to represent digital data.
- The amplitude remains constant
- Only the phase of the carrier changes
This means:
- All symbols have the same energy.
- The signal points lie on the circumference of a circle in the I-Q (In-phase and Quadrature) plane.
PSK symbols are placed evenly around a circle with radius radice(E_s) (symbol energy).
This helps keep symbol spacing equal and minimizes bit errors.
Example: M-PSK (e.g., 8-PSK, 16-PSK)
𝑀 symbols are spaced evenly around a circle
Each symbol represents: log2(𝑀)bits
Example:
8-PSK: 3 bits/symbol
16-PSK: 4 bits/symbol
Essentially, it is the same modulator and demodulator of M-QAM (schema).
challenges of the wireless medium
the communication channel is the major source of error. Errors come for example from
- Thermal Noise
- Inter Symbol Interference (ISI).
Simplifying our model, the received signal experience additive noise
r(t) = s_i(t)*h_c(t)+ n(t) where n(t) = AWGN
That’s why we need to build a receiver which tries to:
- miximize the Signal to noise ration (SNR)
- minimize the ISI
Steps in design:
- Model the received signal
- Find separate solutions for each of the goals
How to Maximize SNR?
- Considering a simplified noise model, n(t) is a random process (each “sample” of 𝑛(𝑡) is a random variable) => Its variance is proportional to the noise density 𝑁0
- What is the filter ℎ(𝑡) that yields the maximum SNR at sampling? => SNR is maximized by the matched filter ℎ 𝑡 = 𝑔(𝑇 − 𝑡)
How to minimize ISI?
- Channel impulse response must be reverted
- ISI due to filtering effect of the communications channel (e.g. wireless channels)
- Channels behave like band-limited filters
- A linear distortion can be compensated by an equalizer => ideally, H_e(f) = 1/H_c(f) => An approximation 𝑠𝑖appr(𝑡) of the transmitted symbol is obtained
How to know 𝐻𝑐(𝑓)?
- Channel Estimation is the process that takes place before equalization in the communication system
- The channel transfer function is estimated thanks to known signal characteristics
- Types based on the density of training symbols:
Blind Channel Estimation
Semi-Blind Channel Estimation
Pilot Assisted Channel Estimation
Channel’s fading
- slow fading: channel impulse response variations are slow => symbols transmitted less frequently
- fast fading: channel impulse response variations are fast => symbols transmitted more frequently
multiplexing and multiple access, types
multiplexing: method by which multiple analog or digital signal are combined into one signal over a shared medium => the capacity of the communication channel is divided into LOGICAL channels
-> deals with combining signals
multiple access: enables multiple users or devices to share a communication channel simultaneously
-> deals with allowing multiple users to access and share a signle medium
Types of M/MA:
- Frequency division
- Code division
- Time division
- time & frequency division
FDM/FDMA
- Each signal, which has its specific central frequency, is modulated to a different carrier frequency.
- Useful bandwidth of medium exceeds required bandwidth of channel
- Carrier frequencies separated so signals do not
overlap (guard bands) - Channel gets band of the spectrum for the whole
time - Channel allocated even if no data
Advantages:
- no dynamic coordination needed
- works also for analog signals
Disadvantages:
- waste of bandwidth (fixed allocation) if traffic
distributed unevenly
- guard spaces
Applications:
- All wireless systems basically!
- Radio and tv broadcasting, telephone,
communication satellites (uplink and
downlink), DSL,…
FDM Scheme
- Different signals can be frequency-modulated in different portions of the spectrum.
- Once they are received they can be de-multiplexed withouth distortions.
Thermal Noise characteristics
Thermal Noise (AWGN)
- disturbs the signal in an additive fashion (Additive)
- has flat spectral density for all frequencies of interest (White)
- is modeled by Gaussian random process (Gaussian Noise)
What are the receiver tasks?
Receiver Tasks
1. Demodulation and sampling
2. Waveform recovery and preparing the received signal for detection
- Improving the signal-to-noise ratio (SNR)
- Reducing ISI
- Sampling the recovered waveform
3. Detection: Estimate the transmitted symbol based on the received sample