Wireless Networks Slides8
Wireless Networks Slides8
Fundamentals
Slides 8
David Tipper, Ph.D., Professor
Department of Informatics and Networked
Systems
University of Pittsburgh
[email protected]
Last Class
• Diversity Techniques
– Fade Margin è increase power or reduce cell size
– Error Control Coding,
• ARQ, FEC, Hybrid, Interleaving
– Frequency Hopping
– Equalization
– Direct Sequence Spread Spectrum
– Multiple Antennas
• SIMO, MISO, MIMO, Beamforming, MU-MIMO, MIMO
Multipliexing
– OFDM
• Different combinations of diversity techniques used in
various systems – along with other concepts like AMC
Telcom 2700
2
Typical Wireless Communication System
Transmitter
Source Channel
Source Modulator
Encoder Encoder
Analog
Channel
Source Channel Demod
Destination
Decoder Decoder -ulator
Receiver
Digital
Telcom 2700 3
Source Coding
• Source Coding seeks to efficiently encode the
information for transmission: application layer function
L5 Application
• Mobile environment different from wired
– Efficient use of spectrum L4 Transport
• Compress to lower bit rate per user => more users L3 Network
– Quality L2 Data link
• Want near wired network quality in difficult transmission
L1 Physical
environment (high BER, bursty errors)
– Hardware complexity
• Size, speed and power consumption at UE
• Consider Digital Speech as example
– Convert speech to digital form and transmit digitally
– 4G/5G use Voice over IP
Ø Session Initiation Protocol (SIP)
Ø Real Time Transport Protocol (RTP)
Ø Real Time Control Protocol (RTCP)
Telcom 2700 4
4
Digital Speech
• Speech Coder: device that converts speech to digital
• Types of speech coders
– Waveform coders
• Convert any analog signal to digital form
– Vocoders (Parametric coders)
• Try to exploit special properties of speech signal to reduce bit rate
• Build model of speech – transmit parameters of model
– Hybrid Coders
• Combine features of waveform and vocoders
Telcom 2700 5
6
Waveform Coders
• For wireless want to reduce the data rate and maintain quality
• Sub-band coding and differential coding were used
Bandpass
A/D 1
Filter 1
Bandpass A/D 3
Filter 3
• Partition signal into non-overlapping
band Range encoding
frequency bands use different A/D
----------------------------------------
quantizer for each band
1 50- 700 Hz 4 bits
2 700-2000 Hz 3 bits
• Example: 3 sub-bands data rate
3 2000-3400Hz 2 bits
5600+12000 + 13600 = 31.2 Kbps
7
Characteristics of Speech
• Bandwidth
– Most of energy between 20 Hz to
about 7KHz ,
– Human ear sensitive to energy
between 50 Hz and 4KHz
• Time Signal
– High correlation
– Short term stationary
• Classified into four categories
– Voiced : created by air passed
through vocal cords (e.g., ah, v)
– Unvoiced : created by air through
mouth and lips (e.g., s, f )
– Mixed or transitional
– Silence
Telcom 2700 8
8
Characteristics of Speech
Typical
Voiced
speech
Typical
Unvoiced
speech
Telcom 2700 9
Vocoders
• Vocoders (Parametric Coders)
• Models the vocalization of speech
• Speech sampled and broken into frames (~25 msec)
• Instead of transmitting digitized speech build model of speech and
transmit parameters of model and synthesize approximation of speech
• Linear Predictive Coders (LPC)
• Models Vocal tract as a filter
• Filter excitation
• periodic pulse (voiced speech)
• noise (unvoiced)
• Transmitted parameters: gain, voiced/unvoiced decision, pitch (if voiced),
LPC parameters
Telcom 2700 10
10
Vocoders
• Example Tenth Order Linear Predictive Coder
• Samples Voice at 8000 Hz – buffer 240 samples => 30 msec
• Filter Model
• (M=10 is order, G is gain, z-1 unit delay, bk are filter coefficients)
G
H ( z) = M
1 + å bk z - k
k =1
Telcom 2700 11
11
Vocoders
• LPC coders can achieve low bit rates 1.2 – 4.8 Kbps
• Characteristics of LPC
• Quality – Low
• Complexity – Moderate
• Bit Rate – Low
• Delay – Moderate
• Robustness – Low
• Hybrid Coders
• Combine Vocoder and Waveform Coder concept
• Residual LPC (RELP)
• Codebook excited LPC (CELP)
Telcom 2700 12
12
RELP Vocoder
• Residual Excited LPC
• improve quality of LPC by transmitting error (residue)
along with LPC parameters
residue
s(n) Buffer/
Window
ENCODER
Encoded
LPC LPC parameters output
Analysis
v/u decision
gain, pitch
LPC
Synthesis
Telcom 2700 13
13
8000 samples/s,
13 bits/sample
Telcom 2700 14
14
GSM Speech Coding (cont)
Telcom 2700 15
15
Hybrid Vocoders
Telcom 2700 16
16
CELP Speech Coders
Telcom 2700 17
17
18
Evaluating Speech Coders
MOS for clear channel environment – no errors
Result vary a little with language and speaker gender
Telcom 2700 19
19
20
20
Source Coding
• Many other source coding algorithms depending on
application
• Photos:
– png, jpeg, AVIF, etc.
• Streaming Audio:
– MPEG-1, Audio Layer 3 (MP3), Advanced Audio Coding (AAC),
Waveform Audio Format (WAV), Ogg vorbis, etc.
– App may use different coding based on interface (web, desktop, mobile
app) and/or available bandwidth
• Streaming Video
– MPEG-1, H.262 MPEG 2, H.264 MPEG-4/AVC, etc
– As in the audio may adapt coding used to the available bandwidth
• Trend is to use put intelligence in the app and use adjustable bit rate
coding - use UDP for the transport layer
– MPEG-DASH protocol does this
Telcom 2700 21
21
constant bit
rate video client video constant bit
Cumulative data
delay
22
Streaming multimedia: DASH
Dynamic, Adaptive Streaming over HTTP (DASH) also called (MPEG-DASH)
server:
§ divides video file into multiple chunks
§ each chunk encoded at multiple different rates (384kb, 1Mb, 5Mb, etc.)
§ different rate encodings stored in different files
§ files replicated in various content distribution nodes (CDN)
...
§ manifest file: provides URLs for different chunks
...
client:
...
§ periodically estimates server-to-client bandwidth client
§ consulting manifest, requests one chunk at a time
• chooses maximum coding rate sustainable given current bandwidth
• can choose different coding rates at different points in time (depending on
available bandwidth at time), and from different servers
23
24
How does Netflix work?
§ Netflix: stores copies of content (e.g., MADMEN) at its (worldwide)
OpenConnect CDN nodes (> 17,000 servers, each > 10,000 movies)
… …
…
manifest file
…
where’s Madmen?
… …
25
Source Channel
Source Modulator
Encoder Encoder
Analog
Channel
Receiver
Digital
Telcom 2700 26
26
Multiple Access and Mode
• Mode how two parties share channel during conversation
– Simplex – one way communication (e.g., broadcast AM)
– Duplex – two way communication Tx and Rx on both ends
• TDD – time division duplex: each end takes turns on the channel
• FDD – frequency division duplex: each end get two channels – one for
each direction of communication
– For example one channel for uplink (mobile to base station) another
channel for downlink (base station to mobile)
27
Telcom 2700
27
28
Multiple Access (cont)
user 3
frequency
frequency
guard band
frequency
guard time
guard time
user 1
user 2
user 3
user 2
2 3
1,2,3
guard band
user 1 3 1
time time time
29
Telcom 2700
29
30
Time Division Multiple Access
slot
frame
frequency
time
31
Telcom 2700
31
code
time
frequency 32
Telcom 2700
32
FDMA
f1 f2
33
Telcom 2700
33
f
893.97MHz 799
880.65 MHz
355 30 kHz
20 MHz
849.97 MHz 799
355
835.65 MHz
t
34
TDMA
35
Telcom 2700
35
GSM - TDMA/FDMA/FDD
935-960 MHz
124 channels (200 kHz)
downlink
cy
en
qu
890-915 MHz
fre
1 2 3 4 5 6 7 8
4.615 ms
Telcom 2700
36
TDD/TDMA - example
417 µs
1 2 3 11 12 1 2 3 11 12
t
downlink uplink
CT2 cordless
phone standard
37
Telcom 2700
37
CDMA
38
Telcom 2700
38
Simple example illustrating CDMA
Traditional Simple CDMA
• To send a 0, send +1 V for T
seconds • To send a 0, Bob sends +1 V for T
seconds; Alice sends +1 V for T/2
• To send a 1, send -1 V for T
seconds seconds and -1 V for T/2 seconds
• Use separate time slots or • To send a 1, Bob sends -1 V for T
frequency bands to separate seconds; Alice sends -1 V for T/2
signals seconds and +1 V for T/2
1 0 1
V 0 chip
Data 1 1
time
T T T T
39
T 2T 3T 4T
t 40
Transmitted signal
Telcom 2700
40
Simple CDMA Receiver
V
2
Received
signal T 2T 3T 4T t
ò = -2 x T/2 = -T
V
1
Alice’s
Code T 2T 3T 4T t = -T has a negative sign
Þ Alice sent a 1
as the first bit 41
Telcom 2700
41
42
CDMA Properties: Near-Far Problem
43
User 1
User 2
User 3
44
OFDMA
• OFDMA assigns each user a set of OFDM subchannels to use for a
fixed time interval
• Users separated by FDMA
• Bandwidth and assigned to each user can change each time interval
• Basis of 4G, 5G
45
Summary
• Source Coding
– Speech Coding
• Waveform
• Vocoders
• Hybrid : RELP, Codebook
• MOS, CMOS
– Streaming Video
• Adapt rate to match available bandwidth – DASH protocol
Telcom 2700
46