<!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>Cost Perspective of a Service Oriented Architecture in Vehicle Design</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Boris Schegolev</string-name>
          <email>schegolev@pef.czu.cz</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Himesha Wijekoon</string-name>
          <email>wijekoon@pef.czu.cz</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vojtěch Merunka</string-name>
          <email>merunka@pef.czu.cz</email>
          <email>vojtech.merunka@fjfi.cvut.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Czech Technical University in Prague, Faculty of Nuclear Sciences and Physical Engineering, Department of Software Engineering</institution>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Czech University of Life Sciences Prague, Faculty of Economics and Management, Department of Information Engineering</institution>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
      </contrib-group>
      <fpage>90</fpage>
      <lpage>97</lpage>
      <abstract>
        <p>This paper looks at organization of micro-controllers in a Service Oriented Architecture in road vehicles. Research is being done on why SOA was originally considered by automotive manufacturers and compares the situation with the one of nowadays. Overview of a common implementation setup is provided as an example to showcase the resulting complexity of the solution. This is followed by a discussion on alternative paths that may be taken to reduce the overall cost of the solution with comparison of key differentiating points between SOA and the alternative solution.</p>
      </abstract>
      <kwd-group>
        <kwd>SOA</kwd>
        <kwd>Micro Services</kwd>
        <kwd>design patterns</kwd>
        <kwd>cost efficiency</kwd>
        <kwd>Separation of Concerns</kwd>
        <kwd>Forced Encapsulation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Vehicle manufacturing industry is over 100 years old. It has experienced numerous
changes in approaches to manufacturing, design and market positioning. What’s even
more important, over that time the industry had the opportunity to degrade some design
and manufacturing cues that were deemed ineffective, only to reinvent them decades
later in a different context.</p>
      <p>
        One such change took place at the end of the 1980s, when computerization of
vehicles became economically viable. Not only it altered the production processes, but
it also required the whole product to be regarded in a different manner. No longer was
it a set of mechanical elements with given projected reliability, but rather a complete
system that can be designed in a way we understand the systems design and
development today.
        <xref ref-type="bibr" rid="ref1">(Hula, Alson, Bunker, Bolon, 2014)</xref>
        .
      </p>
    </sec>
    <sec id="sec-2">
      <title>Motivation</title>
      <p>One of the differences between the mechanical and electronically controlled
elements is that the latter can provide feedback. This is crucial from a systematic point
of view. This has been widely accepted in automotive production, which resulted in a
wave of effort to replace mechanical moving parts with an electronically enhanced
unit. (Hula, Alson, Bunker, Bolon, 2014)</p>
      <p>Generally speaking, moving parts have to be controlled in modern cars. Ideally, all
moving parts should be computerized to provide information on the part’s usage,
health, errors, etc. Initial automakers’ solutions used dedicated controllers and
computation units to support them. For example, Antilock Brake System (ABS), Anti
Slip System (ASR), Electronic Brakeforce Distribution (EBD), Electronic Stability
Programme (ESP) and other active suspension parts (to name a few), all have a
dedicated computer chip to support its need for computing power.</p>
      <p>This approach largely resembles the Service Oriented Architecture (SOA) or Micro
Services, widely used in the software world. Compared to the software, the hardware
solution required in production of an individual vehicle is way more sensitive to
production, deployment and maintenance costs. The question here is whether the
advantages of SOA outweigh the added complexity of the system when discussed in a
highly cost-sensitive environment.</p>
      <p>In this paper we will look into the organization of micro-controllers in cars.
Research will be done on why SOA was favored by manufacturers and comparison
will be made with the current situation of R&amp;D. A common implementation setup will
be reviewed as an example to showcase the resulting complexity of the solution,
followed by a discussion on alternative paths that may be taken to reduce the overall
cost of the solution with comparison of key differentiating points between SOA and
the alternative solution.
3 SOA</p>
      <p>
        Service Oriented Architecture (SOA) is at the heart of a revolutionary computing
platform that is being adopted world-wide and has earned the support of every major
software provider.
        <xref ref-type="bibr" rid="ref2">(Erl, 2005)</xref>
        The micro service-based architecture implements
several concepts
        <xref ref-type="bibr" rid="ref5">(Singh, Huhns, 2005)</xref>
        <xref ref-type="bibr" rid="ref6">(Marks, Bell, 2006)</xref>
        <xref ref-type="bibr" rid="ref7">(Udantha, 2019)</xref>
        :
• Scalability
• Availability
• Resiliency
• Flexibility
• Independent, autonomous
• Decentralized governance
• Failure isolation
• Auto-Provisioning
• Continuous delivery through DevOps
• Separation of Concerns
• Forced Encapsulation
      </p>
      <sec id="sec-2-1">
        <title>3.1 Original implementation arguments</title>
        <p>Even though all of the concepts are deemed beneficial to a vehicle’s controller
network design, it’s probably the failure isolation that tipped the scale. It’s easy to
understand that at the point in time when these decisions were made, the production
quality particularly in the electronics segment was different from today’s standards.
The automakers had to adopt not only the new functionality, but also the complete
technology that supported it.</p>
        <p>Another factor that played a role in architectural decisions is the power output of
individual chips. At that historic moment the processing units were largely
underpowered. Individual chips had to be chosen carefully for a given task to prevent
failures, overheating, etc.</p>
      </sec>
      <sec id="sec-2-2">
        <title>3.2 Implementation details</title>
        <p>Individual chips, properly scaled for the task, had to interact further to give the
benefit of a responsive system. This was covered by a Controller Area Network (CAN
bus). Its aim was to provide a common protocol to integrate individual
microcontrollers into a network of units that can communicate information in a unified
manner. (Johansson, Törngren, Nielsen, 2005)</p>
        <p>Later on, CAN bus was replaced by a LID bus. It served the same purpose and its
main goal was to provide a lower-cost alternative for the proprietary CAN bus. Many
sources still reference it a CAN bus and do not make a difference between the two as
they are conceptually same.</p>
        <p>The later results can be illustrated in an official schematic provided by Volvo:</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4 Centralization</title>
      <p>As a part of simplification process, some automakers are considering a partial or
even a complete removal of a common bus between controllers. This has large
implications on the overall solution. In particular, computational power requirements,
manufacturing processes, pattern support and, of course, cost efficiency.</p>
      <sec id="sec-3-1">
        <title>4.1 Computational power</title>
        <p>Current state of the processing units is very different from the situation of the end
of the 20th century. Controllers and chips are easy to produce, and the demanded
production quality standard may be high.</p>
        <p>Also, there is a huge performance overhang above what is required for almost any
individual function. This said, there is no reason to believe that computational power
may be a limiting factor preventing unification of multiple controllers into one unit.</p>
      </sec>
      <sec id="sec-3-2">
        <title>4.2 Manufacturing processes</title>
        <p>Reduction in a number of controllers used to cover the same functionality results in
wider use of analog communication. For example, when a vehicle’s door controllers
are replaced with a single unit, this unit will be farther from each individual door. This
will require more analog wiring (controller-to-servo) then in the case when the
controller is incorporated in the door itself.</p>
        <p>It was stated that Tesla Model S (as an example of a highly centralized architecture)
uses about 3km of wiring. The number can be allegedly reduced multiple times.
(D’Angelo, 2017)</p>
      </sec>
      <sec id="sec-3-3">
        <title>4.3 Pattern support</title>
        <p>Service Oriented Architectural patterns (as described in section 3) are suspected of
being generally applicable to any distributed system. Here individual patterns will be
confronted with the possible implementation options in automotive environment and
effort will be made to validate its benefits in given context.</p>
        <p>Scalability (horizontal) is naturally reduced. As stated earlier though, the requirement
of horizontal scalability is minimal, as the performance overhang of individual chips
may be enormous.</p>
        <p>Availability and Resiliency is only a concern in case of critical systems. These, of
course, can use separate controllers. Yet again, manufacturers like Tesla have shown
that even critical components like Self Driving Computers (SDC) may be implemented
with multiple CPUs on the same motherboard.</p>
        <p>Flexibility is a matter of maintenance and development point of view. This is not really
degraded by unification of similar controllers or equal redundant controllers.
Independent and autonomous services are welcome, but not required. This largely
covers very specific situations.</p>
        <p>Decentralized governance is not beneficial in automotive environment at all. A
vehicle is an isolated system with only a few input-output options, which provide all
the governance possible.</p>
        <p>Failure isolation is a big issue. It also is probably the main argument why
manufacturers focus on the SOA instead of following the obvious simplification
strategy.</p>
        <p>Auto-Provisioning is not beneficial in automotive environment. The services are
closely incorporated with the hardware, so there can be no automated provisioning of
new services.</p>
        <p>Continuous delivery through DevOps is yet again non-beneficial in automotive
environment, as the services are closely incorporated with the hardware.
Separation of Concerns is a development pattern that has a great use in vehicle
manufacturing. This is because it allows to purchase some of required functionality.
However, if the functionality is completely developed in-house by the company itself,
the benefits are much smaller.
Forced Encapsulation is another development pattern. This one is exactly the reason
why a common bus had to be introduced in every modern vehicle. It also causes the
obvious costs attached to the development of bus-compatible controllers and
production of the bus itself during every vehicle’s manufacture.</p>
      </sec>
      <sec id="sec-3-4">
        <title>4.4 Cost efficiency</title>
        <p>Development and maintenance of a large system is costly. The further the
development deviates from a monolithic design, the more costly the development
becomes. Micro Services have their great advantages, but cost efficiency is not one of
them.</p>
        <p>Service Oriented Architecture introduces borders between individual services.
These have to be maintained, documented, and in case of vehicle context they also
have to be manufactured.</p>
      </sec>
      <sec id="sec-3-5">
        <title>4.5 Example of a centralized model</title>
        <p>Electric vehicles have fewer moving parts in general. There are no driveshafts, no
intake and exhaust systems, etc. In case of the aforementioned Tesla, the solution
seems to come down to a body control unit, Self-Driving Computer (SDC) and a
central computer with infotainment. Currently Tesla also use in-door universal micro
controllers to reduce wiring in between the components.</p>
        <p>
          Here is a comparison of a similarly sized vehicles. One uses a micro service setup
(Chevrolet Bolt, left) and one uses a centralized setup (Tesla Model 3, right).
Fig. 2. Source: UBS
          <xref ref-type="bibr" rid="ref4">(Rapier, 2018)</xref>
          .
5
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Discussion</title>
      <p>Utilization of a common chip to complete multiple tasks is an option. Vehicle
manufacturers historically used a Service Oriented Architecture, but some are
targeting simplification through:
• Computation power sharing. This makes possible to use a single HW unit to
provide multiple functions, provisioning individual applications with unused
computational power.
• Workspace sharing between applications. This is important during both
development and maintenance, as applications may utilize common logging,
same outer-world interfaces, unified storage, etc.
• Great reduction in HW production costs. Due to less produced elements the</p>
      <p>HW design and production may be largely simplified.
• Some reduction in SW production costs. As developers are not required to
overcome strict restrictions imposed on them by forced encapsulation, the
SW development processes may become less costly.</p>
      <p>It has been shown that there is a historic reason why vehicle manufacturers maintain
the Service Oriented Architecture. SOA has undeniable benefits in both SW
development world and in automotive field. Redundancy and failure isolation are
hugely beneficial, same as Separation of Concerns during the development process.</p>
      <p>Yet the costs of maintaining this design are large and may use some reduction.
There are companies that try to achieve cost efficiency through removal of SOA from
their micro-controller network. It has been shown that some of the concerns are of little
value, while others may be mitigated by proper design even within a reduced number
of separate computational units.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Hula</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alson</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bunker</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Bolon</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          (
          <year>2014</year>
          ).
          <article-title>Analysis of Technology Adoption Rates in New Vehicles</article-title>
          .
          <source>SAE Technical Paper 2014-01-0781</source>
          ,
          <year>2014</year>
          , doi:10.4271/2014-01-0781.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Erl</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          (
          <year>2005</year>
          ).
          <article-title>Service-Oriented Architecture (SOA): Concepts, Technology, and</article-title>
          <string-name>
            <given-names>Design. Prentice</given-names>
            <surname>Hall</surname>
          </string-name>
          , Englewood Cliffs, ISBN-
          <volume>13</volume>
          :
          <fpage>978</fpage>
          -
          <lpage>0131858589</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Johansson</surname>
            <given-names>K.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Törngren</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nielsen</surname>
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2005</year>
          )
          <article-title>Vehicle Applications of Controller Area Network</article-title>
          . In:
          <string-name>
            <surname>Hristu-Varsakelis</surname>
            <given-names>D.</given-names>
          </string-name>
          , Levine W.S. (eds)
          <article-title>Handbook of Networked and Embedded Control Systems</article-title>
          . Control Engineering. Birkhäuser Boston. DOI:
          <volume>10</volume>
          .1007/0-8176-4404-0_
          <fpage>32</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Rapier</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Tesla's electronics are miles ahead of the competition - but Wall Street analysts who tore down a whole car worry they could be “too centralized” (TSLA). [online] markets</article-title>
          .businessinsider.com. Available at: https://markets.businessinsider.com/news/stocks/tesla-stock
          <article-title>-price-electronicsmiles-ahead-but-could-be-too-centralized-ubs-</article-title>
          <string-name>
            <surname>warns-</surname>
          </string-name>
          2018
          <source>-8-1027473918 [Accessed 29 Mar</source>
          .
          <year>2020</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>M.P.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Huhns</surname>
            ,
            <given-names>M.N.</given-names>
          </string-name>
          (
          <year>2005</year>
          ).
          <article-title>Service-oriented computing: semantics, processes, agents</article-title>
          . Hoboken N.J: J. Wiley. ISBN:
          <fpage>978</fpage>
          -
          <lpage>0470091487</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Marks</surname>
            ,
            <given-names>E. A.</given-names>
          </string-name>
          , &amp;
          <string-name>
            <surname>Bell</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2006</year>
          ).
          <article-title>Service-oriented architecture: a planning and implementation guide for business and technology</article-title>
          . Wiley. ISBN:
          <fpage>978</fpage>
          -
          <lpage>0471768944</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Udantha</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2019</year>
          ).
          <article-title>Microservice Architecture and Design Patterns for Microservices</article-title>
          . [online] Medium. Available at: https://medium.com/@madhukaudantha/microservice
          <article-title>-architecture-and-designpatterns-for-microservices-</article-title>
          <source>e0e5013fd58a [Accessed 29 Mar</source>
          .
          <year>2020</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>D</given-names>
            <surname>'Angelo</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          (
          <year>2017</year>
          ).
          <article-title>Tesla's “flexible circuit” technology could spark wiring changes in EVs</article-title>
          . [online] TESLARATI. Available at: https://www.teslarati.
          <article-title>com/teslas-flex-circuit-spark-changes-</article-title>
          <source>evs/ [Accessed 29 Mar</source>
          .
          <year>2020</year>
          ].
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>