SlideShare a Scribd company logo
1 of 17
Download to read offline
Test-bench for Task Offloading Mechanisms: Modelling
the Rewards of Non-stationary Nodes
Aniq Ur Rahman, Sarnava Konar, Ayan Banerjee
Department of Electronics and Communication Engineering
National Institute of Technology Durgapur, India
Overview
1 Motivations
2 Non-stationary Rewards and Task Offloading
3 Modelling Using Markov Chain
4 Transition Probability Matrix
5 State Probability Vector
6 Creating Transition Probability Matrix
7 Why the Interval Rate is a Non-Homogeneous Poisson Process
8 Simulation Results
9 State Jump
10 Framework
11 Future Plan
Motivations
Many works which deal with task offloading, define their own models
for the resource availability of the nodes, which makes direct
comparison difficult.
No standard has been set, which emulates the non-stationary
behaviour of the nodes.
Investigations, which treat the task offloading problem in the
multi-armed bandit framework, often consider a non-stationary
scenario where the amount of resources available is sampled from a
fixed distribution at regular intervals of time. This simple treatment
makes the solution less realistic.
Thus, here we present a technique for dynamic modelling of a
time-evolving quantity.
Non-stationary Rewards and Task Offloading
Major reason for task offloading is to minimize the system latency.
Therefore, the amount of resources available directly translates to the
reward of the system.
Learning algorithms like UCB and Thompson Sampling are applied to
find the most reliable node. The performance of these algorithms
varies significantly, on varying the reward distribution and the interval
at which the behaviour changes.
This calls for a standard model of reward distribution across time,
which can serve as a test-bench for comparing algorithms.
Non-stationary reward here means time-evolving reward.
Modelling Using Markov Chain
We model the server nodes’ non-stationary reward distribution as a
Markov chain in which the state transitions occur at an interval defined as
a non-homogeneous Poisson process.
We consider the total space set ∈ [0,1], where 0 is the minimum
reward and 1 is the maximum reward.
The space set is divided into N equal slots X{x1, x2, x3, ..., xN}, where
xi ∈ [i−1
N , i
N ) are the N states of the system.
The probability of the server being in state xi is denoted by pi .
When the server has the state xi , the reward r is obtained by drawing
from a uniform probability distribution in the range of xi , i.e.,
r ∼ U(xi ).
Transition Probability Matrix
For demonstration purpose, we set N = 4 and define the transition
probability matrix as:
T4(p1, p2, p3, p4) =
x1 x2 x3 x4
x1 a11 a12 a13 a14
x2 a21 a22 a23 a24
x3 a31 a32 a33 a34
x4 a41 a42 a43 a44
where aij denotes the probability of transition from state xi to xj and it is
constrained to the property: 4
j=1 aij = 1.
State Probability Vector
The transitional probability matrix elements [aij ]N×N are functions of
the state probability vector [pi ]N.
N
i=1
aik
N
j=1
N
i=1
aij = pk
Another constraint:
N
j=1
aij = 1
We have N2 values to find and only 2N equations to aid us. Thus,
2N = N2, i.e., N = 2.
Thus to remove this constraint of having only a 2 state Markov
process we introduce the following condition for having a N state
Markov process.
T2(p1, p2) =
x1 x2
x1 p1 p2
x2 p1 p2
State Probability Vector (contd.)
T2(p1, p2) =
x1 x2
x1 p1 p2
x2 p1 p2
This solution involves the simple relation aij = pj , which satisfies both
the constraints. This way, there are no constraints on the value of N,
except N > 0.
Creating Transition Probability Matrix
We first need the probability density function of reward. We take the
pdf of the reward y = h(r), where r is the reward.
In an N-state system, we find the probability pi as:
pi =
i
N
i−1
N
h(r) · dr
1
0 h(r) · dr
This set {p1, p2, ..., pN} is used to generate the transition probability
matrix, and hence shape the Markov model, as per the following
relation:
aij = pj ∀i, j ∈ [1, N]
Why the Interval Rate is a Non-Homogeneous Poisson
Process
The state transitions occur at an interval of τ, which is a
non-homogeneous Poisson distributed random variable with a sinusoidally
varying interarrival rate.
τ ∼ P(Λ + β sin ωt)
where P denotes a Poisson distribution. The parameter Λ is the mean
interval, β is the swing parameter and ω is the fluctuation frequency.
Poisson distributions are used to model various processes as they are
analytically tractable. However, not all processes are exponentially
distributed, as modelled by Poisson distribution.
Poisson distributions fail to capture the bursts in traffic. For this
reason, instead of fixing the interarrival rate, we have made it a
sinusoidal function.
Simulation Results
For demonstrating the usage of the framework, we set h(r) = N(µ, σ) 1,
N = 4, Λ0 = 300 s, ω0 = 2π/3600 and time-step of 1 s. There are three
long-term reward distribution models {M1, M2, M3} and three
state-transition behaviour models {T1, T2, T3}.
Parameter M1 M2 M3
µ 0.2 0.5 0.8
σ 0.3 0.2 0.3
Table: Long-term reward distribution.
Parameter T1 T2 T3
Λ Λ0 Λ0/2 2Λ0
β Λ0/3 Λ0/3 Λ0
ω 3ω0 2ω0 ω0
Table: State-transition behaviour.
1
N represents a Gaussian distribution
Simulation Results (contd.)
11 22 33 44
State
0.0
0.1
0.2
0.3
0.4
0.5
Probability
(a) M1
0 2500 5000 7500 10000 12500 15000 17500 20000
Time [sec]
11
22
33
4
State
(b) M1-T1
11 22 33 44
State
0.0
0.1
0.2
0.3
0.4
0.5
Probability
(c) M2
0 2500 5000 7500 10000 12500 15000 17500 20000
Time [sec]
11
22
33
4
State
(d) M2-T1
11 22 33 44
State
0.0
0.1
0.2
0.3
0.4
0.5
Probability
(e) M3
0 2500 5000 7500 10000 12500 15000 17500 20000
Time [sec]
11
22
33
4
State
(f) M3-T1
Figure: State transition characteristics for three contrasting reward distributions
in a 4-state system. M1 resembles a busy node, whereas M3 resembles a node
which is mostly available. M2 represents a node, which is moderately available.
Simulation Results (contd.)
150 200 250 300 350 400 450
Transition Interval [sec]
0.0
0.2
0.4
0.6
0.8
1.0
Probability[x10
−2
]
(a) T1
0 2500 5000 7500 10000 12500 15000 17500 20000
Time [sec]
11
22
33
4
State
(b) M2-T1
0 50 100 150 200 250 300
Transition Interval [sec]
0.0
0.2
0.4
0.6
0.8
1.0
Probability[x10
−2
]
(c) T2
0 2500 5000 7500 10000 12500 15000 17500 20000
Time [sec]
11
22
33
4
State
(d) M2-T2
200 300 400 500 600 700 800 900 1000
Transition Interval [sec]
0.0
0.1
0.2
0.3
0.4
0.5
Probability[x10
−2
]
(e) T3
0 2500 5000 7500 10000 12500 15000 17500 20000
Time [sec]
11
22
33
4
State
(f) M2-T3
Figure: State transition characteristics for three different sets of state transition
frequency parameters.
State Jump
Height of state jump: HN(xi , xj ) = |j−i|
N
Mean height of state jump: ¯HN = E[HN(xi , xj )] = γ 1
N
From graph it is evident that ¯HN is a linear function of 1/N.
0.0 0.1 0.2 0.3 0.4 0.5
1/N
0.4
0.3
0.2
0.1
0.0
̄HN
Figure: µ = 0.2, σ = 0.3, γ = 0.829
In general, a higher value of N resembles a less dynamic scenario,
where the rewards fluctuate steadily. Whereas, for lower value of N,
the reward fluctuation and state jumps affect the learning algorithm
adversely.
Framework
Open source framework at https://github.com/Aniq55/genMarkov.
The library can be readily imported and used to generate resource
availability data based on parameter values defined by user-input.
The state transition characteristics can also be visualized with the
help of inbuilt functions.
Future Plan
Analyze the resource monitor information of real cloud servers, to
assess how well our framework fits the actual measurements.
Thank You!

More Related Content

What's hot

Hidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionHidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionbutest
 
Markov Chain Monte Carlo explained
Markov Chain Monte Carlo explainedMarkov Chain Monte Carlo explained
Markov Chain Monte Carlo explaineddariodigiuni
 
Z transforms and their applications
Z transforms and their applicationsZ transforms and their applications
Z transforms and their applicationsRam Kumar K R
 
Convolution linear and circular using z transform day 5
Convolution   linear and circular using z transform day 5Convolution   linear and circular using z transform day 5
Convolution linear and circular using z transform day 5vijayanand Kandaswamy
 
Discrete Time Fourier Transform
Discrete Time Fourier TransformDiscrete Time Fourier Transform
Discrete Time Fourier TransformWaqas Afzal
 
Z transform
Z transformZ transform
Z transformnirav34
 
05b distribution functions
05b distribution functions05b distribution functions
05b distribution functionsnumanakhtar2
 
Applications of Z transform
Applications of Z transformApplications of Z transform
Applications of Z transformAakankshaR
 
Queues internet src2
Queues internet  src2Queues internet  src2
Queues internet src2Ammulu Amma
 

What's hot (20)

Z transfrm ppt
Z transfrm pptZ transfrm ppt
Z transfrm ppt
 
Hidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionHidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognition
 
Introduction to chaos
Introduction to chaosIntroduction to chaos
Introduction to chaos
 
Markov Chain Monte Carlo explained
Markov Chain Monte Carlo explainedMarkov Chain Monte Carlo explained
Markov Chain Monte Carlo explained
 
Z transform
Z transformZ transform
Z transform
 
Z Transform
Z TransformZ Transform
Z Transform
 
z transforms
z transformsz transforms
z transforms
 
Z Transform
Z TransformZ Transform
Z Transform
 
Chap 4 markov chains
Chap 4   markov chainsChap 4   markov chains
Chap 4 markov chains
 
HIDDEN MARKOV MODEL AND ITS APPLICATION
HIDDEN MARKOV MODEL AND ITS APPLICATIONHIDDEN MARKOV MODEL AND ITS APPLICATION
HIDDEN MARKOV MODEL AND ITS APPLICATION
 
Z transforms and their applications
Z transforms and their applicationsZ transforms and their applications
Z transforms and their applications
 
Convolution linear and circular using z transform day 5
Convolution   linear and circular using z transform day 5Convolution   linear and circular using z transform day 5
Convolution linear and circular using z transform day 5
 
Discrete Time Fourier Transform
Discrete Time Fourier TransformDiscrete Time Fourier Transform
Discrete Time Fourier Transform
 
Z transform
Z transformZ transform
Z transform
 
Cdc18 dg lee
Cdc18 dg leeCdc18 dg lee
Cdc18 dg lee
 
05b distribution functions
05b distribution functions05b distribution functions
05b distribution functions
 
Applications of Z transform
Applications of Z transformApplications of Z transform
Applications of Z transform
 
Properties of z transform day 2
Properties of z transform day 2Properties of z transform day 2
Properties of z transform day 2
 
Queues internet src2
Queues internet  src2Queues internet  src2
Queues internet src2
 
Z transform
 Z transform Z transform
Z transform
 

Similar to Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stationary nodes

International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisDSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisAmr E. Mohamed
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsAmr E. Mohamed
 
Probility distribution
Probility distributionProbility distribution
Probility distributionVinya P
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals MdFazleRabbi18
 
Modeling of Granular Mixing using Markov Chains and the Discrete Element Method
Modeling of Granular Mixing using Markov Chains and the Discrete Element MethodModeling of Granular Mixing using Markov Chains and the Discrete Element Method
Modeling of Granular Mixing using Markov Chains and the Discrete Element Methodjodoua
 
Phase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle SystemsPhase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle SystemsStefan Eng
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal ProcessingPRABHAHARAN429
 
Speaker recognition systems
Speaker recognition systemsSpeaker recognition systems
Speaker recognition systemsNamratha Dcruz
 
Lossless image compression via by lifting scheme
Lossless image compression via by lifting schemeLossless image compression via by lifting scheme
Lossless image compression via by lifting schemeSubhashini Subramanian
 
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920Karl Rudeen
 
CS221: HMM and Particle Filters
CS221: HMM and Particle FiltersCS221: HMM and Particle Filters
CS221: HMM and Particle Filterszukun
 

Similar to Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stationary nodes (20)

International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisDSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
 
Probility distribution
Probility distributionProbility distribution
Probility distribution
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
 
Modeling of Granular Mixing using Markov Chains and the Discrete Element Method
Modeling of Granular Mixing using Markov Chains and the Discrete Element MethodModeling of Granular Mixing using Markov Chains and the Discrete Element Method
Modeling of Granular Mixing using Markov Chains and the Discrete Element Method
 
Phase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle SystemsPhase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle Systems
 
Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
 
Talk 5
Talk 5Talk 5
Talk 5
 
Speaker recognition systems
Speaker recognition systemsSpeaker recognition systems
Speaker recognition systems
 
Lossless image compression via by lifting scheme
Lossless image compression via by lifting schemeLossless image compression via by lifting scheme
Lossless image compression via by lifting scheme
 
Research Assignment INAR(1)
Research Assignment INAR(1)Research Assignment INAR(1)
Research Assignment INAR(1)
 
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
 
Project Paper
Project PaperProject Paper
Project Paper
 
Data Analysis Assignment Help
Data Analysis Assignment HelpData Analysis Assignment Help
Data Analysis Assignment Help
 
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
 
Sat
SatSat
Sat
 
PhysicsSIG2008-01-Seneviratne
PhysicsSIG2008-01-SeneviratnePhysicsSIG2008-01-Seneviratne
PhysicsSIG2008-01-Seneviratne
 
CS221: HMM and Particle Filters
CS221: HMM and Particle FiltersCS221: HMM and Particle Filters
CS221: HMM and Particle Filters
 
con-dif2
con-dif2con-dif2
con-dif2
 

Recently uploaded

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 

Recently uploaded (20)

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 

Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stationary nodes

  • 1. Test-bench for Task Offloading Mechanisms: Modelling the Rewards of Non-stationary Nodes Aniq Ur Rahman, Sarnava Konar, Ayan Banerjee Department of Electronics and Communication Engineering National Institute of Technology Durgapur, India
  • 2. Overview 1 Motivations 2 Non-stationary Rewards and Task Offloading 3 Modelling Using Markov Chain 4 Transition Probability Matrix 5 State Probability Vector 6 Creating Transition Probability Matrix 7 Why the Interval Rate is a Non-Homogeneous Poisson Process 8 Simulation Results 9 State Jump 10 Framework 11 Future Plan
  • 3. Motivations Many works which deal with task offloading, define their own models for the resource availability of the nodes, which makes direct comparison difficult. No standard has been set, which emulates the non-stationary behaviour of the nodes. Investigations, which treat the task offloading problem in the multi-armed bandit framework, often consider a non-stationary scenario where the amount of resources available is sampled from a fixed distribution at regular intervals of time. This simple treatment makes the solution less realistic. Thus, here we present a technique for dynamic modelling of a time-evolving quantity.
  • 4. Non-stationary Rewards and Task Offloading Major reason for task offloading is to minimize the system latency. Therefore, the amount of resources available directly translates to the reward of the system. Learning algorithms like UCB and Thompson Sampling are applied to find the most reliable node. The performance of these algorithms varies significantly, on varying the reward distribution and the interval at which the behaviour changes. This calls for a standard model of reward distribution across time, which can serve as a test-bench for comparing algorithms. Non-stationary reward here means time-evolving reward.
  • 5. Modelling Using Markov Chain We model the server nodes’ non-stationary reward distribution as a Markov chain in which the state transitions occur at an interval defined as a non-homogeneous Poisson process. We consider the total space set ∈ [0,1], where 0 is the minimum reward and 1 is the maximum reward. The space set is divided into N equal slots X{x1, x2, x3, ..., xN}, where xi ∈ [i−1 N , i N ) are the N states of the system. The probability of the server being in state xi is denoted by pi . When the server has the state xi , the reward r is obtained by drawing from a uniform probability distribution in the range of xi , i.e., r ∼ U(xi ).
  • 6. Transition Probability Matrix For demonstration purpose, we set N = 4 and define the transition probability matrix as: T4(p1, p2, p3, p4) = x1 x2 x3 x4 x1 a11 a12 a13 a14 x2 a21 a22 a23 a24 x3 a31 a32 a33 a34 x4 a41 a42 a43 a44 where aij denotes the probability of transition from state xi to xj and it is constrained to the property: 4 j=1 aij = 1.
  • 7. State Probability Vector The transitional probability matrix elements [aij ]N×N are functions of the state probability vector [pi ]N. N i=1 aik N j=1 N i=1 aij = pk Another constraint: N j=1 aij = 1 We have N2 values to find and only 2N equations to aid us. Thus, 2N = N2, i.e., N = 2. Thus to remove this constraint of having only a 2 state Markov process we introduce the following condition for having a N state Markov process. T2(p1, p2) = x1 x2 x1 p1 p2 x2 p1 p2
  • 8. State Probability Vector (contd.) T2(p1, p2) = x1 x2 x1 p1 p2 x2 p1 p2 This solution involves the simple relation aij = pj , which satisfies both the constraints. This way, there are no constraints on the value of N, except N > 0.
  • 9. Creating Transition Probability Matrix We first need the probability density function of reward. We take the pdf of the reward y = h(r), where r is the reward. In an N-state system, we find the probability pi as: pi = i N i−1 N h(r) · dr 1 0 h(r) · dr This set {p1, p2, ..., pN} is used to generate the transition probability matrix, and hence shape the Markov model, as per the following relation: aij = pj ∀i, j ∈ [1, N]
  • 10. Why the Interval Rate is a Non-Homogeneous Poisson Process The state transitions occur at an interval of τ, which is a non-homogeneous Poisson distributed random variable with a sinusoidally varying interarrival rate. τ ∼ P(Λ + β sin ωt) where P denotes a Poisson distribution. The parameter Λ is the mean interval, β is the swing parameter and ω is the fluctuation frequency. Poisson distributions are used to model various processes as they are analytically tractable. However, not all processes are exponentially distributed, as modelled by Poisson distribution. Poisson distributions fail to capture the bursts in traffic. For this reason, instead of fixing the interarrival rate, we have made it a sinusoidal function.
  • 11. Simulation Results For demonstrating the usage of the framework, we set h(r) = N(µ, σ) 1, N = 4, Λ0 = 300 s, ω0 = 2π/3600 and time-step of 1 s. There are three long-term reward distribution models {M1, M2, M3} and three state-transition behaviour models {T1, T2, T3}. Parameter M1 M2 M3 µ 0.2 0.5 0.8 σ 0.3 0.2 0.3 Table: Long-term reward distribution. Parameter T1 T2 T3 Λ Λ0 Λ0/2 2Λ0 β Λ0/3 Λ0/3 Λ0 ω 3ω0 2ω0 ω0 Table: State-transition behaviour. 1 N represents a Gaussian distribution
  • 12. Simulation Results (contd.) 11 22 33 44 State 0.0 0.1 0.2 0.3 0.4 0.5 Probability (a) M1 0 2500 5000 7500 10000 12500 15000 17500 20000 Time [sec] 11 22 33 4 State (b) M1-T1 11 22 33 44 State 0.0 0.1 0.2 0.3 0.4 0.5 Probability (c) M2 0 2500 5000 7500 10000 12500 15000 17500 20000 Time [sec] 11 22 33 4 State (d) M2-T1 11 22 33 44 State 0.0 0.1 0.2 0.3 0.4 0.5 Probability (e) M3 0 2500 5000 7500 10000 12500 15000 17500 20000 Time [sec] 11 22 33 4 State (f) M3-T1 Figure: State transition characteristics for three contrasting reward distributions in a 4-state system. M1 resembles a busy node, whereas M3 resembles a node which is mostly available. M2 represents a node, which is moderately available.
  • 13. Simulation Results (contd.) 150 200 250 300 350 400 450 Transition Interval [sec] 0.0 0.2 0.4 0.6 0.8 1.0 Probability[x10 −2 ] (a) T1 0 2500 5000 7500 10000 12500 15000 17500 20000 Time [sec] 11 22 33 4 State (b) M2-T1 0 50 100 150 200 250 300 Transition Interval [sec] 0.0 0.2 0.4 0.6 0.8 1.0 Probability[x10 −2 ] (c) T2 0 2500 5000 7500 10000 12500 15000 17500 20000 Time [sec] 11 22 33 4 State (d) M2-T2 200 300 400 500 600 700 800 900 1000 Transition Interval [sec] 0.0 0.1 0.2 0.3 0.4 0.5 Probability[x10 −2 ] (e) T3 0 2500 5000 7500 10000 12500 15000 17500 20000 Time [sec] 11 22 33 4 State (f) M2-T3 Figure: State transition characteristics for three different sets of state transition frequency parameters.
  • 14. State Jump Height of state jump: HN(xi , xj ) = |j−i| N Mean height of state jump: ¯HN = E[HN(xi , xj )] = γ 1 N From graph it is evident that ¯HN is a linear function of 1/N. 0.0 0.1 0.2 0.3 0.4 0.5 1/N 0.4 0.3 0.2 0.1 0.0 ̄HN Figure: µ = 0.2, σ = 0.3, γ = 0.829 In general, a higher value of N resembles a less dynamic scenario, where the rewards fluctuate steadily. Whereas, for lower value of N, the reward fluctuation and state jumps affect the learning algorithm adversely.
  • 15. Framework Open source framework at https://github.com/Aniq55/genMarkov. The library can be readily imported and used to generate resource availability data based on parameter values defined by user-input. The state transition characteristics can also be visualized with the help of inbuilt functions.
  • 16. Future Plan Analyze the resource monitor information of real cloud servers, to assess how well our framework fits the actual measurements.