• 沒有找到結果。

Wireless Communication Systems

N/A
N/A
Protected

Academic year: 2022

Share "Wireless Communication Systems"

Copied!
28
0
0

加載中.... (立即查看全文)

全文

(1)

Wireless Communication Systems

@CS.NCTU

Lecture 10: Rate Adaptation

Instructor: Kate Ching-Ju Lin (林靖茹)

(2)

Agenda

• What is bit-rate adaptation?

• What are the challenges?

• Receiver-based bit-rate adaptation

• Transmitter-based bit-rate adaptation

• Bit-rate adaptation for multicast

2

(3)

Bit-Rates in 802.11

Bit- 802.11 DSSS Modulation Bits Coding Mega-

rate Stan- or per Rate Symbols

dards OFDM Symbol per

second

1 b DSSS BPSK 1 1/11 11

2 b DSSS QPSK 2 1/11 11

5.5 b DSSS CCK 1 4/8 11

11 b DSSS CCK 2 4/8 11

6 a/g OFDM BPSK 1 1/2 12

9 a/g OFDM BPSK 1 3/4 12

12 a/g OFDM QPSK 2 1/2 12

18 a/g OFDM QPSK 2 3/4 12

24 a/g OFDM QAM-16 4 1/2 12

36 a/g OFDM QAM-16 4 3/4 12

48 a/g OFDM QAM-64 6 2/3 12

54 a/g OFDM QAM-64 6 3/4 12

Figure 2-1: A summary of the 802.11 bit-rates. Each bit-rate uses a specific combination of modulation and channel coding. OFDM bit-rates send 48 symbols in parallel.

a channel. In the presence of fading, multi-path interference, or other interference that is not additive white Gaussian noise, predicting the combinations of modulation and channel coding that will be most effective at masking bit errors is difficult.

All 802.11 packets contain a small preamble before the data payload which is sent at a low bit-rate. The preamble contains the length of the packet, the bit-rate for the data payload, and some parity information calculated over the contents of the preamble. The preamble is sent at 1 megabit in 802.11b and 6 megabits in 802.11g and 802.11a. This results in the unicast packet overhead being different for 802.11b and 802.11g bit-rates; a perfect link can send approximately 710 1500-byte unicast packets per second at 12 megabits (an 802.11g bit-rate) and 535 packets per second at 1 megabit (an 802.11b bit-rate). This means that 12 megabits can sustain nearly 20% loss before a lossless 11 megabits provides better throughput, even though the bit-rate is less than 10% different.

2.2 Medium-Access Control (MAC) Layer

For the purposes of this thesis, the most important properties of the 802.11 MAC layer are the medium access mechanisms and the unicast retry policy.

To prevent nodes from sending at the same time, 802.11 uses carrier sense multiple access

3

(4)

Coding Rate

• Avoid random errors

⎻ 1/2: Add 1x redundant bits

⎻ 3/4: Add 1/3x redundant bits

• Haven’t solved the problem yet

⎻ Data input: 1, 1, 0, 1, 0, 1, 1, 0, …

⎻ After encoding:

1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, ….

⎻ Still one bit error à Suffer from burst errors

4

(5)

Interleave and De-interleave

Source coding Interleave Modulation D/A

channel

noise

+

1, 1, 0, 1, 0 1, 1, 1, 1, 0, 0, 1, 1, 0, 0

1, 0, 0, 1, 0,

1, 1, 0, 1, 1 1, -1, -1, 1, -1, 1, 1, -1, 1, 1

Decoding De-interleave De-modulation A/D

1, 0, 1, 1, 0, 0, 1, 1, 1, 0

1, 0, 1, 0, 0,

1, 1, 0, 1, 1 1, -1, 1, -1, -1, 1, 1, -1, 1, 1 1, 1, 0, 1, 0

Transmitter

Receiver Create a more uniform

distribution of errors

5

(6)

Channel Quality vs. Bit-Rate

• When channels are very good

⎻ Encode more digital bits as a symbol

• When channels are noisy

⎻ Encode fewer data bits as a sample

Why is it affected by the channel quality?

6

(7)

Error Probability vs. Modulations

I

BPSK

Q

|noise|

SNR = 10log10 (|signal|

2

/|noise|

2

)

|signal|

decode correctly

QPSK

I Q

01 11

10 00

|noise|

decode incorrectly

Given the same SNR

Given the same SNR, decodable for BPSK, but un-decodable for QPSK

7

(8)

SNR vs. BER (Bit Error Rate)

1e-05 0.0001 0.001 0.01 0.1 1

0 5 10 15 20 25 30 35

Bit Error Rate

S/N (dB)

BPSK (1 megabit/s) QPSK (2 megabits/s) QAM-16 (4 megabits/s) QAM-64 (6 megabits/s)

Figure 1-2: Theoretical bit error rate (BER) versus signal-to-noise ratio for several modu- lation schemes assuming AGWN. The y axis is a log scale. Higher bit-rates require larger S/N to achieve the same bit-rate as lower bit-rates.

802.11 operating region 5dB

8

Given the same SNR, a higher order modulation

leads to a higher BER

(9)

SNR vs. PDR (Packet Delivery Ratio)

• In 802.11, a packet is received correctly if it passes the CRC check (all bits are correct)

⎻ Receive all or none

• Given a SNR value, BER and PDR change with bit-rates

0 1 2 3 4 5 6

5 10 15 20 25 30

Throughput (Megabits per Second)

S/N (dB) BPSK (1 megabit/s) QPSK (2 megabit/s) QAM-16 (4 megabits/s) QAM-64 (6 megabits/s)

Figure 1-4: Theoretical throughput in megabits per second using packets versus signal-to- noise ratio for several modulations, assuming AGWN and a symbol rate of 1 mega-symbol per second.

packets can be estimated using the following equation:

throughput = (1− BER)n∗ bitrate

This equation assumes the transmitter sends packets back-to-back, the receiver knows the location of each packet boundary, the receiver can determine the integrity of the data with no overhead, there is no error correction, and the symbol rate is 1 mega-symbol per second.

Packets change the throughput versus S/N graph dramatically; Figure 1-4 shows through- put in megabits per second versus S/N for 1500-byte packets after accounting for packet losses caused by bit-errors. The range where each modulation delivers non-zero throughput but suffers from loss is much smaller in Figure 1-4 than in Figure 1-3. For most S/N values in the range from 5 to 30 dB, the best bit-rate delivers packets without loss.

Bit-rate selection is easier for links that behave as in Figure 1-4 than as in Figure 1-3;

the sender can start on the highest bit-rate and switch to another bit-rate whenever the

PDR(r) = (1-BER(r))

n

Throughput(r)

= PDR(r) * r

Throughput degrades quickly even with a small BER

9

(10)

Bit-Rate Selection

• Given the SNR, select the optimal bit-rate that achieves the highest throughput

0 1 2 3 4 5 6

5 10 15 20 25 30

Throughput (Megabits per Second)

S/N (dB) BPSK (1 megabit/s) QPSK (2 megabit/s) QAM-16 (4 megabits/s) QAM-64 (6 megabits/s)

Figure 1-4: Theoretical throughput in megabits per second using packets versus signal-to- noise ratio for several modulations, assuming AGWN and a symbol rate of 1 mega-symbol per second.

packets can be estimated using the following equation:

throughput = (1− BER)n∗ bitrate

This equation assumes the transmitter sends packets back-to-back, the receiver knows the location of each packet boundary, the receiver can determine the integrity of the data with no overhead, there is no error correction, and the symbol rate is 1 mega-symbol per second.

Packets change the throughput versus S/N graph dramatically; Figure 1-4 shows through- put in megabits per second versus S/N for 1500-byte packets after accounting for packet losses caused by bit-errors. The range where each modulation delivers non-zero throughput but suffers from loss is much smaller in Figure 1-4 than in Figure 1-3. For most S/N values in the range from 5 to 30 dB, the best bit-rate delivers packets without loss.

Bit-rate selection is easier for links that behave as in Figure 1-4 than as in Figure 1-3;

the sender can start on the highest bit-rate and switch to another bit-rate whenever the

QPSK

64QAM

10

Ideal case without considering the protocol overhead

r

= arg min

r

PDR(r) ⇤ r

(11)

Difficulties with Rate Adaptation

• Channel quality changes very quickly

⎻ Especially when the device is moving

• Can’t tell the difference between

⎻ poor channel quality due to

noise/interference/collision (high |noise|)

⎻ poor channel quality due to long distance (low |signal|)

Ideally, we want to decrease the rate due to low signal strength, but not interference/collisions

11

(12)

Types of Auto-Rate Adaptation

12

Transmitter-based Receiver-Based

SNR-based RBAR, OAR, ESNR

ACK-based ARF, AARF, ONOE Throughput-based SampleRate, RRAA

Partial packet ZipTx

Soft information SoftRate

(13)

Sync. ACK vs. Async ACK

• Synchronous ACK

⎻ Sent immediately after SIFS as a control frame (defined in 802.11)

⎻ Cost the minimum overhead

⎻ Only know whether the packet is transmitted correctly

• Asynchronous ACK

⎻ Sent as a data frame

⎻ Cost additional overhead

⎻ Can include more detailed information (e.g., error rate)

Tx Rx

backoff Data

ACK

SIFS

backoff A-ACK DIFS

13

(14)

Types of Auto-Rate Adaptation

14

Selected by Tx Selected by Rx Sync. ACK Async. ACK

Less accurate Higher overhead

Properties

Transmitter-based Receiver-Based

SNR-based RBAR, OAR, ESNR

ACK-based ARF, AARF, ONOE Throughput-based SampleRate, RRAA

Partial packet ZipTx

Soft information SoftRate

(15)

Rx-based Adaptation

• Receiver Based Auto Rate (RBAR)

⎻ The receiver measures the SNR of the RTS, and picks the optimal rate based on the SNR-to-rate lookup table

⎻ Piggyback the selected rate in CTS

• Opportunistic Auto Rate (OAR)

⎻ Similar to RBAR, but consider the channel coherence time

⎻ If the channel is good, opportunistically send more packets since the channel time of each frame is short

• Pros

⎻ More accurate since the Rx can measure the up-to-date channel condition

• Cons

⎻ Rely on asynchronous ACK, causing a higher overhead

15

(16)

Tx-based Adaptation

• SampleRate

⎻ Default in Linux

• RRAA

⎻ Robust Rate Adaption Algorithm

• In common

⎻ Probe the packets at a rate not used currently

⎻ See if switching to another rate gives a higher throughput

• Differences

⎻ Switch the rate by estimating the effective throughput

⎻ Switch the rate by measuring the packet loss rate

16

(17)

SampleRate – Tx-based Adaptation

• Default in Linux

• Periodically send packets at a randomly-

sampled bit-rate other than the current bit-rate

⎻ Let r* be the current best rate

⎻ After sending 10 packets at the best rate, send a packet at a randomly-sampled rate

⎻ Estimate the achievable throughput of the sampled rates

pkt1 pkt1 pkt1 pkt2 pkt10

r*

retry 1

pkt

r’

pkt

retry 2 retry 1

17

time pkt1 pkt10

r*

pkt

r’’

pkt1 …

r*

J. Bicket, “Bit-rate Selection in Wireless Networks,” Ph.D Thesis, MIT, 2005

(18)

SampleRate – Throughput Estimation

• How to estimate the effective throughput of a rate?

⎻ Calculate the transmission time of a L-bit packet

⎻ Consider packet length (l), bit-rate (r), number of retries (n), backoff time

• Select the rate that has the smallest measured

average transmission time to deliver a L-bit packet

18

pkt1 pkt1 pkt1 pkt2 pkt10

r*

retry 1

pkt

r’

pkt

retry 2 retry 1 time

pkt1 pkt10

r*

pkt

r’’

pkt1 …

r*

r

= min

r

T

tx

(r, n, L)

T

tx

(r, n, l) =T

DIFS

+ T

back o↵

(n)

+ (n + 1)(T

SIFS

+ T

ACK

+ T

header

+ l/r)

(19)

SampleRate

• Do not sample the rates that

⎻ Have failed four successive times

⎻ Are unlikely to be better than the current one

• Is thought of the most efficient scheme for static environments

⎻ SNR, and thereby BER and best rate, do not change rapidly over time

• Waste channel time for sampling if the channel is very stable

19

(20)

RRAA – Tx-based Adaptation

• Robust Rate Adaption Algorithm

• Root causes of packet failures

⎻ Channel fading: mainly determined by the link distance

⎻ Random events: collisions, cross-technique interferenece (e.g., bluetooth or microwave)

• Goal

⎻ Robust against random loss: Should not switch the rate due to random channel variation

⎻ Responsive to drastic channel changes: Should respond quickly to significant channel changes

S. Wong, H. Yang, S. Lu, V. Bharghavan, “Robust Rate Adaptation for 802.11 Wireless Networks,” ACM MOBICOM, 2006

20

(21)

RRAA

• Use short-term loss ratio to assess the channel

⎻ Probe a window of N frames at a bit-rate

⎻ Estimate the loss ratio

• Stay unchanged if the loss ratio is acceptable

⎻ Pmin < P < Pmax

• Switch the rate to

⎻ A higher one if P < Pmin: imply that the channel is good enough to try the higher rate

⎻ A lower one if P < Pmax: imply that the channel is too bad to use the current rate

21

P = # lost frames

# transmitted frame

How to set

P

min

, P

max

, N?

(22)

RRAA – Parameter Configuration

• P

max

: Maximum tolerable loss threshold

⎻ the effective throughput of the current rate should be no worse than the loss-free throughput at a lower rate

• P

min

: Opportunistic rate Increase threshold

⎻ Harder to predict because we do not know how good is good enough

⎻ Heuristic:

• Window size N

⎻ Long enough to capture the minimum probability Pmin

22

(1 Pmaxr ) l

Trx(r, n, l) = l

Trx(r 1, n = 1, l) ) Pmaxr = 1 Trx(r, n, l)

Trx(r 1, n = 1, l)

Pmin = Pmaxr+1/ , = 2

(23)

Rate Adaptation for Multicast

• Why it is difficult?

⎻ Can only assign a single rate to each packet

⎻ But the channel conditions of clients are different

• Possible Solutions

⎻ For reliable transmission: select the rate based on the worst node

⎻ For non-reliable transmission: provide clients heterogeneous throughput

(24)

Reliable Multicast Protocol

• Before rate adaptation, we should first ask:

⎻ How to efficiently collect ACK from multicast clients?

• Leader-based Protocol (LBP)

⎻ Select one of the receivers as the leader to reply ACK

⎻ Leader

if receive successfully, send ACK otherwise, send NACK

⎻ Others

if receive successfully, do nothing otherwise, send NACK

⎻ Retransmit if the AP receives any NACK

24

J. Kuri and S. Kasera, “Reliable Multicast in Multi-Access Wireless LANs,”

IEEE INFOCOM, Mar. 1999.

(25)

Rate Adaptation for Data Multicast

• Rate Adaptive Reliable Multicast (RAM)

⎻ Should pick the bit-rate based on the channel of the worst receiver

• Say we have three receivers A, B, and C

⎻ Each receiver feedbacks CTS at its optimal rate chosen based on its SNR

⎻ The AP detects the lowest rate by measuring the longest channel time occupied by CTS

25

A. Basalamah, H. Sugimoto, and T. Sato, “Rate Adaptive Reliable

Multicast MAC Protocol for WLANs,” Proc. IEEE VTC-Spring, May 2006.

RTS

CTS

CTS CTS

data

ACK AP

A B C

(26)

• Video codec usually allows some losses

⎻ Receive more frames à better video quality

⎻ Receive less frame à lower video quality

• No need to receive everything

⎻ No need to be constrained by the channel of the worst receiver

• One would expect a video quality

proportional to its channel condition, i.e., differential QoS

⎻ Higher SNR à better video quality

⎻ Lower SNR à lower video quality

26

J. Villalon et. Al., “Cross-Layer Architecture for Adaptive Video

Multicast Streaming over Multirate Wireless LANs,” IEEE JSAC, vol. 25, no. 4, pp. 699-711, May 2007.

Rate Adaptation for Video Multicast

(27)

• H-ARSM (Hybrid Auto Rate Selection Mechanism)

• Mainly consider two video layers: base layer and enhancement layer

Design principles

• Guarantee a minimum video quality

⎻ Ensure that everyone reliably gets the base layer

⎻ Again, send at the rate according to the worst receiver

• Pick a more aggressive rate for the enhancement layer

⎻ Use the next higher rate if there exist one (or more)

receivers with an SNR above the threshold of that rate

27

Heuristic; not really optimizing for QoS/QoE

Rate Adaptation for Video Multicast

(28)

Recent Proposals

• ZipTx

K. Lin, N. Kushman and D. Katabi, “Harnessing Partial Packets in 802.11 Networks,” ACM MOBICOM, 2008

Exploit partial packets with consideration of bit-rate adaptation

• SoftRate

M. Vutukuru, H. Balakrishnan and K. Jamieson, “Cross-Layer Wireless Bit Rate Adaptation,” ACM SIGCOMM, 2009

Exploit soft information to improve selection accuracy

• FARA

H. Rahul, F. Edalat, D. Katabi and C. Sodini, “Frequency-Aware Rate Adaptation and MAC Protocols,” ACM MOBICOM, 2009

Adapt the bit-rate for every OFDM subcarrier

• ESNR

D. Halperin, W. Hu, A. Sheth and D. Wetherall, “Predictable 802.11 Packet Delivery from Wireless Channel Measurements”, ACM

SIGCOMM, 2010

Consider frequency selective fading

參考文獻

相關文件

Writing of a 16MB incurs 1K block erases because of the reclaiming of invalid space.. 2008/1/30 Embedded Systems and Wireless Networking Lab. 80. Wear Leveling versus

-39% want to learn more English in other subjects -1 time per semester.

4- Per-capita non-shopping spending of interviewed visitors by place of residence 5- Per-capita shopping spending of interviewed visitors by place of residence 6-

• Give the chemical symbol, including superscript indicating mass number, for (a) the ion with 22 protons, 26 neutrons, and 19

A theoretical and reflexive study on cultivating literacy of mathematical culture by using lesson plans from humanistic mathematics.. Taiwan Journal of Mathematics Education,

3: Calculated ratio of dynamic structure factor S(k, ω) to static structure factor S(k) for &#34;-Ge at T = 1250K for several values of k, plotted as a function of ω, calculated

# Elderly dependency ratio refers to the number of persons aged 65 or over per 1 000 persons aged between 15 and 648. Sources: cadenza.hk Image

1 camera sample and 16 shadow samples per pixel. 16 camera samples and each with 1 shadow sample