Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

52
Adaptation Framework for Wireless Thin- client Computing Mohammad Al-Turkistany

Transcript of Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Page 1: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Adaptation Framework for Wireless Thin-client Computing

Mohammad Al-Turkistany

Page 2: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Presentation Outline Problem Definition Wireless Thin-client Computing Constraints Related Work VNC Thin-client system Thin-client Performance Model Proposed Approach: Adaptive Thin-Clients Experimental Evaluation Conclusion Publications

Page 3: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Problem Definition Thin-client computing is attractive model for

mobile computing Outsource processing and storage to network servers Off-device management & maintenance of

applications Constraints:

Thin-clients may generate excessive traffic when sending screen updates over a wireless network

Sensitive to application’s screen hyper-activity Resources variability of the wireless network and the

mobile device

Page 4: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Wireless Network Variability Service parameters: bandwidth, latency and

error rate are location dependent Causes of resource variability

Wireless noise and interference: multi-path fading, impulse noise, etc.

Surge in the number of users at airport terminal leads to lower bandwidth per user

Vertical & horizontal handoff between different wireless technologies

Page 5: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Client Resources Variability Processing speed, battery energy,

transmission power Causes of variability

OS decides to decrease processor’s frequency when battery energy reaches some threshold.

Decrease in processor’s frequency due to overheating

Switching the network card to low power mode

Page 6: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Approach Dynamic adaptation of thin-client system

operation to optimize performance

Adaptive system needs to discover thin-client's context (processor’s frequency, wireless bandwidth ) and use it to make tradeoff decisions that affect system performance

Page 7: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Thin-client Computing Model

Thin-Client

Server: Application processing & data management

Events

Display updates

Page 8: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Wireless Thin-client Computing Constraints

Major thin-clients systems Citrix's Winframe and Microsoft's Windows

Terminal Server and ATT’s VNC Performance limiting factors

Latency in wireless networks Limited processing power of mobile devices Low bandwidth wireless networks Mobility and resources variability

(bandwidth etc)

Page 9: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Related Work

NCL of Columbia U: Optimizing Bandwidth usage by compressing screen updates may degrade the overall performance in high-latency networks

Server-push eager screen update policy has best performance for multimedia (video) applications

Wireless thin-client web browsing is superior to local fat-client browsing (under high packet loss rates) TCP protocol overheads and latencies for setting up and

maintaining connections under packet loss conditions

Page 10: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Related Work

Mobile Computing Lab at UF: Thin-Clients optimization for wireless active-media applications

Introduced the concept of scalable application localization at the thin-client Transfer some of the application processing tasks

based on the quality of network connectivity Localization of keyboard and mouse events Localization of active-web objects (animated gif

image)

Page 11: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

AT&T’s VNC Thin-client

Encoding requirements for active and media-rich applications (with frequent display updates) Low complexity decoding High compression level: to conserve bandwidth

Performance bottleneck VNC performance depends on the quality of

underlying wireless connection (i.e. bandwidth & latency) and client’s processing power

Page 12: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

VNC Thin-client Limitations

Excessive use of the wireless bandwidth Poor compression of complex-graphic screen

updates (variation of RLE encoding) Variability of wireless connection quality that

causes variable available bandwidth Noise (S/N ratio) Multi-path fading # of users in cell area Power level: position relative to access point

Page 13: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Adaptive Thin-client Computing

It is critical to dynamically adapt (at application level) thin-client performance to the variability of available resources Adapt by changing the encoding type or

compression level of screen updates Employ scalable compression level control by using

lossy Wavelet-based encoding

Page 14: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Performance Model

VNC performance parameters bandwidth, client processing speed, and server

processing speed We model these using three cascading queues

using M/M/1 model (incremental screen updates)

Assumes very high server processing powerServer ClientChannel

Page 15: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

B Link Bandwidth bps Avg Rectangle Size bits/rectangle Avg Arrival Rate rectangles/sec Compression Ratio

Transmission Latency=

Avg time period that starts when screen rectangle enters the queue and ends when the server finishes processing the rectangle

1

Proposed Performance Model

10

B

1

Page 16: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

B Link Bandwidth bps Avg Rectangle Size bits/rectangle Avg Arrival Rate rectangles/sec Compression Ratio

Decoding Latency=

Avg time period that starts when screen rectangle enters the queue and ends when the server finishes processing the rectangle

1

Proposed Performance Model

10

D

1

Page 17: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Decoding rate bps Compression ratio Avg Total Latency =

Our goal is to control the total latency

)(D10

)(

11

DB

B link bandwidth bps

Ave rectangle size bits/rectangle

Ave arrival rate rectangles/sec

1

Proposed Performance Model

Page 18: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Performance Model

In general, D( , S, T, algorithm) S is RFB rectangle size T represents the information content of RFB rectangle

Decoding rate function is usually non-linear and not easy to model mathematically

Fuzzy control is used to control the system latency Used to control complex non-linear processes, when

there is no simple mathematical model Relies on experimental knowledge to design the

controller

Page 19: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

When operating in client pull mode, then

and

Avg Total Latency=

Virtual Bandwidth of Thin-client system

total

virtual TBD

DBBW

1

B D

)(

11

DB

Page 20: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Virtual Bandwidth of Thin-client system

Data Rate

Compression Ratio ( )

)(D

/B

Service Rate

Page 21: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Update Quality-Latency Trade-off

The maximum virtual bandwidth achievable (best-case latency) is and this happens when

Set the target virtual bandwidth according to quality of screen update requirement :

Dynamic adaptation is achieved by controlling at the server (or proxy) side using fuzzy controller

0DBWvirtual

0

0DQBWvirtual

Page 22: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Thin-client Adaptation Framework

Thin-client events

Wavelet decoder

Wavelet Encoder

Adaptation proxy

Rectangle updates

Server

Thin-client

FuzzyRule-base

Context Discovery

Rectangle updatesQoS

Wireless link

Application

Page 23: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Thin-client Adaptation Framework

Rule base

Fuzzy inference engine

Thin-client system

Ref

Fuzzification Defuzzification

Virtual bandwidth

Page 24: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Thin-client Adaptation Framework

Goal: Minimize the average latency observed by the user by controlling the compression ratio

Trade-off between total latency and screen updates quality (Q=1 corresponds to worst screen quality)

Error signal is used to drive a fuzzy controller that outputs the value for compression ratio 0DQBWError virtualBW

Page 25: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Proposed Thin-client Adaptation Framework

Avoids direct measurement of available wireless bandwidth (B) and the processing speed of the thin-client device

Approximate estimate of virtual bandwidth: measure the time period between two successive, wavelet-encoded, full screen rectangles sent to thin-client

Page 26: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Approximate expert knowledge is used instead of differential equations to describe system dynamics

Rule-based inference system If is normal and is normal then

1/ shall be normal If is low and is low then 1/

shall be high Fuzzy rules fires in parallel to contribute to the

control action

Rule-Based Fuzzy Controller

vBWError

vBWError

vBWError

vBWError

Page 27: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Rule-based Fuzzy Controller

1

0normal

1

0Fuzzy Set normal

1

0

normal

Bandwidth

Bandwidth’s rate of change

Compression Level

Actual Bandwidth

Actual Bandwidth’s rate of change

min

0.75

0.4

0.4

Page 28: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Rule-based Fuzzy Controller

Different rules results overlap to yield the overall output. The result of the fuzzy controller is a fuzzy set.

To get one representative crisp value as the output, we find the center of gravity of the fuzzy set

1

0The result

Compression Level

1

0Final output value

Compression Level

Page 29: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Experimental Evaluation

0

500

1000

1500

2000

2500

0 0.5 1 1.5 2

Bit Rate (bpp)

Dec

od

ing

Tim

e (m

illi

sec)

Page 30: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Experimental Evaluation Fuzzy controller adapts to variations in link

bandwidth by controlling compression level to maintain target total latency

For fast processor, the fuzzy controller has to compress more to keep up with the fast decoding rate and prevent data transmission bottleneck

Page 31: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Experimental Evaluation

Adaptation Proxy (Linux)

Wireless Access Point

Linux Server

IPAQ PDA

CBQ-base traffic control

Page 32: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Compression Level Control

0

10

20

30

40

50

60

70

80

90

100

0 500 1000 1500 2000 2500 3000

Link Bandwidth (kbps)

Co

mp

ress

ion

Lev

el (

1/a)

Pentium 4, 1.8 GHz Pentium 3, 450 MHz

Standard VNC, P 3, 450 MHz

Latency=1.7 sec

Latency= 3.36

Page 33: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Tuning Controller’s Gain is dominating parameter:

higher value results in better latency control but with more fluctuation

aK

aKWireless Thin-client

Rule Base

bK

cK

1

VirtBW

VirtBW

Page 34: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Controller Tuning (Ka)

0

10

20

30

40

50

60

70

80

90

0 20 40 60 80 100 120

Link Bandwidth (kbps)

Co

mp

ress

ion

Lev

el (

1/a)

Ka=0.004 Ka=0.001 Ka=0.01

Page 35: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Fluctuation Effect Chart Title

0

5

10

15

20

25

30

35

0 10 20 30 40 50

Time(x1.74 Sec)

Com

pres

sion

Lev

el (1

/a)

BW from 100 kbit/s to 30 kbit/s

Page 36: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Rules Reduction Effect

virtualBW

virtualBW Neg_Small Near_Zero Pos_Small

Neg_Med Pos_Med Pos_Med Pos_Small

Neg_Small Pos_Small Pos_Small Near_Zero

Near_Zero Pos_Small Near_Zero Neg_Small

Pos_Small Near_Zero Neg_Small Neg_Small

Pos_Med Neg_Small Neg_Med Neg_Med

Page 37: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Rules Reduction Effect

virtualBW

virtualBW Neg_Small Near_Zero Pos_Small

Neg_Med Pos_Med

Neg_Small Pos_Small Near_Zero

Near_Zero Near_Zero

Pos_Small Near_Zero Neg_Small

Pos_Med Neg_Med

Page 38: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Rules Reduction Effect

0

10

20

30

40

50

60

70

80

90

0 20 40 60 80 100 120

Link Bandwidth (kbps)

Co

mp

ress

ion

Lev

el (

1/a)

15 Inference Rules 7 Inference Rules

Page 39: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Fuzzy Variable

0

0.2

0.4

0.6

0.8

1

1.2

-100 -50 0 50 100

Normalized BW

Mem

bers

hip

Valu

e

NM NS AZ PS PM

vBWError

Page 40: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Fuzzy Variable

0

0.2

0.4

0.6

0.8

1

1.2

-100 -50 0 50 100

Normalized BW

Mem

bers

hip

Valu

e

NS AZ PS

vBWError

Page 41: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Fuzzy Variable compLevel

0

0.2

0.4

0.6

0.8

1

1.2

-100 -50 0 50 100

compLevel

NS AZ PS PM NM

Page 42: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Quality Factor Effect

0

10

20

30

40

50

60

70

80

0 20 40 60 80 100 120

Link Bandwidth (kbps)

Com

pres

sion

Lev

el (1

/a)

SQF=1.0 SQF=0.9 SQF=0.8

Page 43: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Performance under Variable CPU Frequency

Adaptation Proxy (Linux)

Linux App Server

Wireless Access Point

IPAQ PDA

XScale Frequency Scaling Unit

Page 44: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Performance under Variable CPU Frequency

05

101520253035404550

300 350 400 450 500 550 600 650

Processor Frequency (MHz)

Com

pres

sion

Lev

el (1

/a)

SQF=0.6 SQF=0.7 SFQ=0.8 SFQ=0.9

Page 45: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Performance under Variable CPU Frequency

0

10

20

30

40

50

300 350 400 450 500 550 600 650

Processor Frequency (MHz)

Com

pres

sion

Lev

el (1

/a)

SQF=0.6 SQF=0.7 SFQ=0.8 SFQ=0.9

Page 46: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Controlling Total Latency

0

0.5

1

1.5

2

2.5

3

3.5

0.4 0.5 0.6 0.7 0.8 0.9 1 1.1

Quality Factor

Late

ncy (

sec)

variable MIPS variable BW

Page 47: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

The ratio is determined by activity characteristics of each application. It estimates average screen update traffic generated by the application

Assign higher Q values for active applications (k is distortion tolerance)

Quality-Latency Trade-offs

kQ

Page 48: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Quality-Latency Trade-offs Tradeoff between latency and screen

rectangles quality (distortion) Higher value of (Q) results in lower total

latency at the cost of increased distortion

For stable thin-client system

Since then

1

Virt

Virt BWBW

0DBWVirt 0D

kQ

Page 49: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Client’s Decoding Rate

Chart Title

0

100

200

300

400

500

600

700

300 5300 10300 15300 20300 25300

Rectangle Size (pixels)

Deco

ding

Tim

e (m

s)

compLevel=5.5

Page 50: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Optimizing Small Screen Areas For small size screen rectangles, high

compression level may be an overkill Improvement method:

Allows the controller to adapt to variable-size screen updates

oldFull

rectnew compLevel

A

AcompLevel

Page 51: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Conclusion

We propose a proxy-based adaptation framework for wireless thin-client systems

Dynamically adapts the performance of wireless thin-client

Context information is used by fuzzy rule-based inference engine to optimize wireless resources usage by trading off among different quality of service parameters

Uses highly scalable wavelet-based image coding technique to provide high scalability of quality of service

Shields the user from the ill effects of abrupt variability of wireless and mobile device resources

Page 52: Adaptation Framework for Wireless Thin-client Computing Mohammad Al-Turkistany.

Publications

M. Al-Turkistany, A. Helal, “Fuzzy Rule-based Adaptation Framework for Wireless Thin-Clients”, Proceedings of International Conference on Computing, Communications and Control Technologies: CCCT’04, August, 2004, Austin, Texas.

M. Al-Turkistany, A. Helal, “Modelling and Performance of Adaptive Wireless Thin-client Computing”, to be submitted to IEEE Transactions on Mobile Computing.