<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Markov Model of FPGA Resources as a Service Considering Hardware Failures</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Inna Kolesnyk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vitaliy Kulanov</string-name>
          <email>v.kulanov@csn.khai.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artem Perepelitsyn</string-name>
          <email>a.perepelitsyn@csn.khai.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Aerospace University “KhAI”</institution>
          ,
          <addr-line>Chkalov str. 17, 61070 Kharkov</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <fpage>56</fpage>
      <lpage>62</lpage>
      <abstract>
        <p>The FaaS architecture is analyzed. Based on information on the structure and principles of the architecture FaaS the structural reliability diagram is developed. Markov model for structural reliability diagram considering possible hardware failures is presented. The expert evaluation of intensities of failure and maintenance is proposed. The reliability evaluation of FaaS based on obtained results is performed.</p>
      </abstract>
      <kwd-group>
        <kwd>Markov model</kwd>
        <kwd>Programmable Logic</kwd>
        <kwd>FPGA</kwd>
        <kwd>FaaS</kwd>
        <kwd>Hardware Failures</kwd>
        <kwd>Computer System</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Introduction</p>
      <p>The popularity of cloud services as well as the current level of technology
development makes it possible to provide resources of programmable logic integrated
circuits to an end user via the Internet. In the work [1], a solution was proposed to use
FPGA as a Service (FaaS). The proposed architecture can be recommended for tasks
focused on intensive information processing when the requirements for the input and
output data streams are not so strict. A resource intensive computational task was
performed to test the proposed approach and it consisted of searching polynomials for
shift registers with nonlinear feedback of the second degree by the "brute force"
method [2]. This has saved time and resources for obtaining final results.</p>
      <p>One of the main requirements for cloud services is their high availability achieved
by reducing and managing failures as well as minimizing planned downtime time.
Classical models of the reliability of data storage, built on the basis of Markov chains
in continuous time, the models are considered in a number of works [3, 4]. Markov
models retain a significant advantage in productivity and speed of calculations (up to
150 times, see [5]) in comparison with full-scale imitation modeling.</p>
      <p>Disadvantages of classical models with one-dimensional Markov chains without
memory are described in detail in a widely known paper [6]. In [7, 8], the Markov
model of the availability of SBC based on the analysis of hardware and software
failures was developed and investigated.</p>
      <p>Thus, the goal of the study is to improve the systems reliability implementing FaaS
with the provision of FPGA resources for user tasks. To achieve this goal it is
necessary to solve the problem of formalizing actions order to evaluate the reliability of
these systems based on Markov model, as well as the practical application of the
proposed method.
2</p>
      <p>Assessment of Reliability of FaaS based on Markov Model,
Considering Possible Hardware Failures</p>
      <p>The FaaS architecture is a complex multi-level and multi-component hardware and
software system. The FaaS infrastructure components are conditionally divided into
two parts: client and server (Figure 1). The model of server part with FPGA boards
will be considered.</p>
    </sec>
    <sec id="sec-2">
      <title>Internet</title>
    </sec>
    <sec id="sec-3">
      <title>FaaS Tasks</title>
    </sec>
    <sec id="sec-4">
      <title>WEB Server</title>
      <p>Binary/HEX
Data Files
Task Status/
Results Data</p>
    </sec>
    <sec id="sec-5">
      <title>JTAG Server</title>
      <p>SOFs</p>
      <p>Server-side</p>
    </sec>
    <sec id="sec-6">
      <title>Data</title>
    </sec>
    <sec id="sec-7">
      <title>Distributor</title>
      <p>and Collector
sandm ttsaeaS
oCm dnaD
P
rod tS
tcedauD tsuadna
a</p>
    </sec>
    <sec id="sec-8">
      <title>FPGA Board</title>
      <p>The FaaS architecture assumes the usage of multiple components in the server part.
The use of redundancy is advisable for such systems, because their individual nodes
efficiency determines the entire system operability. In case of failure of one system
component (the reservation backup of which is provided), the system remains
operational. Such degradation changes in the system affect the probability of safe operation
at any given time.</p>
      <p>The main functional elements of the system are the server part components and
they are subject to failure which may also be caused by hardware defects. Failure of
system elements is a random and independent event.</p>
      <p>The Markov model is a convenient tool for describing the processes of system
components failure and recovery with the described properties. Since the basic
components of FaaS are a priori known, it is possible to generalize the process of
evaluating the reliability indicators these systems using Markov models.</p>
      <p>To evaluate the reliability of the FaaS architecture hardware, the following
sequence of actions is suggested:
 identify the set of hardware components that make up FaaS;
 determine the availability and type of reservation in the architecture in question;
 build a structural scheme of reliability for a set of components;
 determine the failure rates and recovery for each system component;
 considering the CLS, construct the system state graph;
 using Markov models mathematical apparatus numerically determine the system
reliability indicators.</p>
      <p>To build the FPGA infrastructure as a service, we will simulate the components of
the server part using Markov chains.</p>
      <p>We analyze the redundant computing system FaaS infrastructure designed to
perform service functions by a client request, giving it access to certain resources and
managing programmable logic integrated circuits (FPGAs) that can be programmed
by the user request via the Internet.</p>
      <p>The FaaS includes combination of programmable logic and classical computer
components that required to organize the service itself.</p>
      <p>The system's performance in the above case is presented in accordance with the
structural reliability scheme (Figure 2).
The block diagram used to describe the system reliability is a combination of serial
and parallel connections. All components of the system operate simultaneously.
Failure of a main system element does not affect the system's operability according to
system failure definition. It remains in working order, since the back-up elements
provide the functionality. The main elements are: processor (CPU), random access
memory (RAM), permanent storage (ROM), which must ensure the system
functioning. Each block in the chain is duplicated.</p>
      <p>In these FaaS architecture each FPGA chip implements unique functions provided
by service user. To organize the function properly of this computer system, all FPGAs
involved in the structural diagram are connected in series.</p>
      <p>If the user wants to implement on-chip redundancy he can program FPGA using
fault tolerant approach, but this case will be considered separately.</p>
      <p>Development of the Markov model FPGA as a service</p>
      <p>During the process of using the Markov analysis apparatus, following
computational difficulties can arise: the growth is simple, the sparseness of the matrix of the
intensities of the transitions between the states of the Markov model (MM) and its
rigidity. Since one of the main process requirements is assessing the reliability of the
aircraft and ensuring high accuracy of the results, it is necessary to consider each
feature of the Markov analysis apparatus at all stages of the aircraft readiness
assessment. Our task is to minimize the probability of its occurrence, and in case of
occurrence, identify it in a timely manner and take measures to prevent the elimination of
consequences.</p>
      <p>Consider the computer system FPGA as a service as a redundant system with
parallel connection of backup system equipment. In this scheme, all elements of backup
equipment samples have different failure rates. To this variant of reservation, the rule
to determine the reliability of parallel independent elements is applicable.</p>
      <p>To evaluate the reliability of recoverable objects, the differential equations method
is applied. It is based on the assumption of exponential time distributions between
failures (operating time) and recovery time.</p>
      <p>To apply this method, we need to have a mathematical model for the set of possible
states of the system S = {S1, S2, ..., Sn}, in which it can be located in the event of
system failures and failures.</p>
      <p>From time to time, the system S jumps from one state to another under the
influence of failures and restoration of its individual elements. When analyzing the
behavior of the system in time during wear, it is convenient to use a state graph on the basis
of which we obtain a system of equations. We will illustrate the graph of the state
reflecting the dynamics of the system.</p>
      <p>The dynamics of the system can be reflected by changing the states of the
elements. Each of the elements can be in one of three states:
1 – mode of operation;
2 – mode of the main element failure;
3 – mode of the backup element failure.</p>
      <p>Then the set of states of the system has the form:
S0 – it functions;
S1 – Element CPU1 has failed, the system operates in standby mode;
S2 – failed element RAM 1, the system operates in standby mode;
S3 – ROM 1 failed, the system operates in standby mode;
S4 – FPGA1..4 failed, the system operates in standby mode;
S5 – the elements CPU1 and RAM1 failed, the system operates in standby mode;
S6 – the elements CPU1 and ROM1 failed, the system operates in standby mode;
S7 – the elements of CPU1 and FPGA1,4 failed, the system operates in standby
mode;
S8 – elements of RAM1 and ROM1 failed, the system operates in standby mode;
S9 – the elements of RAM1 and FPGA1,4 failed, the system operates in standby
mode;
S10 – the elements of ROM1 and FPGA1,4 failed, the system operates in standby
mode;
S11 – the elements CPU1, RAM1 and ROM1 failed, the system operates in the
standby mode;
S12 – elements of CPU1, RAM1 and FPGA1,4 failed, the system operates in
standby mode;
S13 – the elements CPU1, ROM1 and FPGA1.4 failed, the system operates in
standby mode;
S14 – elements of RAM1, ROM1 and FPGA1,4 failed, the system operates in
standby mode;
S15 – the elements CPU1, RAM1, ROM1 and FPGA1.4 failed, the system operates
in a redundant mode;
S16 – the system is inoperable.</p>
      <p>The illustrated graph of the state reflecting the dynamics of the system is provided
in figure 3.</p>
      <p>Based of result of solving the system of differential equations in the computer
mathematics system Mathcad the curve of failure-free state probability of the
proposed FaaS architecture was created. The assessment result are shown in figure 4.</p>
      <p>In this paper following results were achieved: a method for assessing the FaaS
reliability based on the Markov model, in a view of possible hardware failures,
considering the order of finding failure rates and restoring parts of the system, and practical
implementation of the proposed method for a specific implementation of FaaS.</p>
      <p>Within the framework of practical implementation, a computer system was
simulated on the basis of continuous Markov chains. When assessing the reliability of
complex redundant and recoverable systems, the Markov chain method leads to
complex solutions because of the large number of states.</p>
      <p>Based on the marked state graph of the system, i.e. graph of transitions, in which
the intensities of all transitions are known, it is possible to determine the probabilities
of these states as a function of time.</p>
      <p>Based on the graph, the probability of the system state was determined for various
parameters λ and μ. Based on obtained results the reliability evaluation of FaaS was
performed.
19.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>In: International journal of computers and communications ISSN: 2074-1294</source>
          , Volume
          <volume>10</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          pp.
          <fpage>113</fpage>
          -
          <lpage>119</lpage>
          (
          <year>2016</year>
          )
          <string-name>
            <surname>Kharchenko</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolisnyk</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Piskachova</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bardis</surname>
            <given-names>N.</given-names>
          </string-name>
          :
          <article-title>Reliability and Security Issues for IoT-Based Smart Business Center: Architecture and Markov Model</article-title>
          . In: IEEE; Computer of science,
          <source>MCSI</source>
          <year>2016</year>
          ,
          <string-name>
            <surname>Paper</surname>
            <given-names>ID</given-names>
          </string-name>
          :
          <volume>4564699</volume>
          (
          <year>2016</year>
          )
          <string-name>
            <surname>Kharchenko</surname>
            <given-names>V.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cherepakhin</surname>
            <given-names>D.A.</given-names>
          </string-name>
          :
          <article-title>Risk Analysis of Control Systems by Use of QDdiagrams and FMECA-approach</article-title>
          .
          <source>In: Proceedings of 12 th European Conference on Safety and Reliability</source>
          , Turin, Italy, pp.
          <fpage>16</fpage>
          -
          <lpage>20</lpage>
          (
          <year>2001</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <source>Software Engineering</source>
          <year>2008</year>
          (
          <article-title>SE 2008)</article-title>
          . LNI, vol.
          <volume>121</volume>
          ,
          <year>February 2008</year>
          . pp.
          <fpage>140</fpage>
          -
          <lpage>154</lpage>
          . GI (
          <year>2008</year>
          )
          <article-title>Martin L. Shooman: Reliability of Computer Systems and Networks: Fault Tolerance, Analysis, and Design</article-title>
          . pp.
          <fpage>446</fpage>
          -
          <lpage>449</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>