<!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>High-concurrency Solution for Intelligent Connected Vehicle Race Based on Cloud Computing 1</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Shiman Liu</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ziyi Liu</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shuai Zhao</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xin Hu</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bolin Zhou</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chen Chen</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lingxiang Zhang</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiaoting Li</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Automotive Data of China (Tianjin) Co.</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tianjin</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>China</string-name>
        </contrib>
      </contrib-group>
      <fpage>90</fpage>
      <lpage>98</lpage>
      <abstract>
        <p>Based on the existing high-concurrency solutions, this paper studies the high-concurrency solutions for intelligent connected vehicle race based on cloud computing, and verifies the effectiveness of the scheme by designing the scheduling method of the intelligent networked car race platform and high-concurrency tests. The experimental results show that the designed scheduling method of the intelligent networked car event platform can meet the high concurrency requirements of the event, especially when international communication is affected by the epidemic, ensuring the participation of domestic and foreign teams in the competition and effective technical exchanges. It has a relatively broad application prospect.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Cloud computing</kwd>
        <kwd>intelligent connected automobile events</kwd>
        <kwd>high concurrency demand</kwd>
        <kwd>cloud simulation platform</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>tion, in order to meet the fairness, fairness and openness of the competition, it is necessary to ensure
that the competition environment of the participants is consistent.Therefore, it is necessary to invent a
high concurrency solution of intelligent connected auto race based on cloud computing.This can
ensure the success of the intelligent connected car event, promote the technical exchanges among the
participating teams, and help the implementation of domestic intelligent connected technology.</p>
      <p>
        Based on the existing high-concurrency solutions, this paper studies the high-concurrency
solutions of intelligent connected auto races based on cloud computing. By designing the scheduling
method of the intelligent connected vehicle event platform[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and verifying the effectiveness and
reliability of the scheme through highly concurrent testing, it provides a reference for the intelligent
connected vehicle event based on cloud computing in the industry.
2.
      </p>
    </sec>
    <sec id="sec-2">
      <title>The experiment design</title>
    </sec>
    <sec id="sec-3">
      <title>2.1. Design of scheduling method for intelligent Connected car race platform</title>
      <p>In this experimental design, teams need to enter the corresponding contest interface by using their
account and password on the competition login interface. After confirming the information on the
question interface, manually start the question. In this case, the contest server automatically queries
the current K8s cluster resource usage and determines whether there are idle resources available. If it
determines that there are no idle resources available, the server directly enters the queuing mechanism.
If it is determined that there are idle resources available, the server directly starts the virtual engine
(UE4 is used in this experiment) and determines whether UE4 is successfully started. If the startup
fails, the monitoring page is displayed. If the startup is successful, the server accounts for a period of
time and checks whether an algorithm is connected within this period. If no algorithm is added, the
server automatically stops the UE4 running process. If an algorithm is connected, the server will
directly run the questions until the end of the questions and calculate the results.(see Figure 1).</p>
    </sec>
    <sec id="sec-4">
      <title>2.1.1. Queuing mechanism design</title>
      <p>In this experiment, the queuing mechanism is applied to the case that the server used in the contest
determines that there is no idle resource available after automatically querying the current K8s cluster
resource usage.</p>
      <p>When the server automatically checks and determines that no idle resources are available, the
current team will directly enter the queue, and the number of people in the queue will be increased by
one. The current queue number is displayed. After that, it is up to the teams to choose whether to wait.
If the team chooses not to wait, it will exit the queue directly, and the number of people in the queue
will be increased or decreased by one. If you choose to continue waiting, the interface updates the
number of people in line in real time.</p>
      <p>When the server automatically queries that there are idle resources in the current K8s cluster
resources, the team can choose whether to start the contest. If a team fails to manually click the start
button in time within the time specified by the system, the team will directly exit the queue, lose the
qualification and need to queue up again. If the team manually clicks the start button in time within
the time specified by the system, the server will directly start UE4, and the current queue of the team
will end (Figure 2).</p>
    </sec>
    <sec id="sec-5">
      <title>2.1.2 Design of K8s deployment scheme</title>
      <p>
        This experiment adopts the container arrangement scheme of Kubernetes(K8s)[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The minimum
number of program units can be infinitely extended by K8s technology. If the number of access
reaches the load value, the hardware is configured as a new Node by kubectl (command), which can
be put into use immediately after the startup, reducing the time of configuring the running
environment(Figure 3).
      </p>
      <p>
        In addition, K8s could manage multiple management nodes [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], reducing the access load of a single
management node. It also greatly reduces the possibility of system outages. In addition, it facilitates
node scaling and expansion management, achieves high concurrency, all containers, supports Web
interface access, and automatically adjusts hardware resources based on requirements. Each task runs in
Docker container, isolated from each other, and does not affect each other to maximize the use of
physical hardware resources. At the same time, it ensures the convenience of deployment and
expansion, and ensures the requirement of high concurrency for hundreds of people to go online
simultaneously.
      </p>
    </sec>
    <sec id="sec-6">
      <title>2.1.3. Design of algorithm access scheme</title>
      <p>In this experiment, the algorithm access scheme design is applicable to the server accounting time
for a period of time after UE4 is successfully started. And judge whether there is an algorithm access
in this period of time.</p>
      <p>In this experiment, the algorithm invokes the login interface for authentication. At the same time,
verify that the user name and password are valid, and verify that the user has a running question. If the
preceding authentication fails, the interface returns the failure cause, and the algorithm connection
process ends. If the above verification is successful, the algorithm will call the Web interface to obtain
the access key and the communication address. Then, the Web interface is called to obtain the
installation sensor information of the main vehicle. Next, the algorithm invokes the UE4 interface with the
secret key to send the start instruction. Next, the algorithm calls UE4 interface to obtain sensor data
and master vehicle data, makes decisions, and sends control instructions according to the decisions.
Finally, after running the questions, the questions are finished and the scores are calculated(Figure 4) .</p>
    </sec>
    <sec id="sec-7">
      <title>2.2. Test concurrency experimental design</title>
      <p>
        In this experiment, after completing the design of the scheduling method for the intelligent
connected car race platform, it is necessary to carry out a high concurrency test on this method, so as to
verify that this experiment can finally solve the high concurrency requirements of intelligent
connected car race based on cloud computing. Therefore, the high concurrency test is carried out from the
following two aspects[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
    </sec>
    <sec id="sec-8">
      <title>2.2.1. Experimental design of single server concurrency test</title>
      <p>This experiment first needs to test how many UE4 can run on a single server. According to the
requirements of this experimental competition, different kinds of sensors are installed for different kinds
of questions. For example, only millimeter wave radar is installed in the decision control class, and
only camera is installed in the perception class. Therefore, in this experiment, the decision control and
perception questions are respectively run on the same K8s server, and the running conditions of the
two different questions are represented by the number of UE4 runs. (as shown in Table 1)</p>
    </sec>
    <sec id="sec-9">
      <title>2.2.2. Experimental design of single server concurrency test</title>
      <p>After determining the number of UE4s running on a single K8s server, a high concurrency test
experiment is required based on the overall race high concurrency requirements.（The high
concurrency test environment required by the experiment is shown in Table 2 and Table 3） For example, in
this experiment, 100 UE4s are run in the same time period. Therefore, this experiment will set up a
test environment and carry out high concurrency tests for 100 UE4s running in the same time period
from four aspects: time characteristics, resource utilization, capacity and compliance of performance
efficiency(Figure 5) .</p>
      <p>Test content
The corresponding time, processing time and
throughput when the product performs its functions
under specified conditions.</p>
      <p>CPU utilization and memory utilization when
executing test tasks.</p>
      <p>Whether the maximum number of concurrent users,
communication bandwidth, transaction throughput
and other parameters meet the requirements.</p>
      <p>Whether the product complies with the
requirements specification, product description, etc., as well
as the performance and efficiency requirements in
the standard.</p>
    </sec>
    <sec id="sec-10">
      <title>Results analysis</title>
      <p>Based on the scheduling method of intelligent connected car race platform, this method is tested
with high concurrency in this experiment. The individual server concurrency was first tested to
determine the amount of UE4 a single server could run. This was followed by a high concurrency test for
large-scale events (this experiment required running 100 UE4 high concurrency tests in the same time
period). Finally, after several rounds of testing and code tuning, the experimental results are as
follows:</p>
    </sec>
    <sec id="sec-11">
      <title>3.1. Single server concurrency test result</title>
      <p>According to the different question types of the competition, this experiment selected six types of
scenes in the competition: stationary front vehicle (straight line), pedestrian crossing the road (no
cover), curved road, obstructed front vehicle, horizontal parking, vertical parking, automatic driving (low
dynamic traffic flow). After 8 tests, the test results are shown in Figure 6. Marked red indicates that
the server runs at a frame rate below 20fps, and marked green indicates that the server runs at a frame
rate above 20fps.</p>
      <p>In order to further guarantee the smooth operation of a single K8s server, this experiment further
averages the number of UE4 running in the above different scenarios. In addition, if the frame rate of
a single server is above 24fps, it is qualified. Therefore, after calculation, the number of UE4
questions in decision control category and running perception category can be run by a single server is 6
and 5 respectively (as shown in Table 4).</p>
    </sec>
    <sec id="sec-12">
      <title>3.2.High concurrency test results applied to large events</title>
      <p>According to the requirement that a single K8s server can run 5 UE4, 20 K8s servers are selected
for the high concurrency test of 100 concurrency. Then the monitoring data is randomly selected and
the maximum value is recorded. After several rounds of testing and code tuning, the monitoring data
is extracted as follows:</p>
      <p>This highly concurrent test involves a total of 5 interfaces (system login, running the contest,
obtaining the data of the main vehicle, obtaining the monitoring data, and the algorithm). In addition,
100 concurrent tests can be started in both the running contest and the data acquisition history, so the
concurrency test passes (as shown in Table 5).</p>
      <p>In this paper, the high concurrency solution of intelligent connected auto race based on cloud
computing is studied. By designing the scheduling method of the intelligent connected car race platform,
and through high concurrency test, the validity and reliability of the scheme are verified. The
competition is further ensured through the cloud server, which guarantees the high concurrent demand of the
intelligent connected car event based on cloud computing for competitors from different regions to go
online at the same time. At the same time, it also ensures that all teams can see the ranking of each
team in real time. In addition, ensure that the competition is fair, impartial and open. Especially when
international exchanges are affected by the epidemic, it guarantees the participation of domestic and
foreign teams in competitions and effective technical exchanges, and has a broad application prospect.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Wang</given-names>
            <surname>Run</surname>
          </string-name>
          <article-title>-min, ZHAO Xiang-mo, XU Zhi-gang,</article-title>
          <string-name>
            <surname>WANG</surname>
          </string-name>
          Wen-Wei, CHENG Jing-Jun.
          <article-title>A kind of automatic driving vehicle in ring virtual simulation test platform design</article-title>
          [J/OL]. Automotive technology:
          <fpage>1</fpage>
          -
          <lpage>7</lpage>
          [
          <fpage>2021</fpage>
          -08-29]. HTTP: / / https://doi.org/10.19620/j.cnki.
          <volume>1000</volume>
          -
          <fpage>3703</fpage>
          .
          <fpage>20210130</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Lin</surname>
            <given-names>Fan</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            <given-names>Qiuzhen</given-names>
          </string-name>
          , Yang Feng.
          <source>Internet of Things Technology</source>
          ,
          <year>2020</year>
          ,
          <volume>10</volume>
          (
          <issue>09</issue>
          ):
          <fpage>65</fpage>
          -
          <lpage>68</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Wen</given-names>
            <surname>Long</surname>
          </string-name>
          .
          <source>High Performance Computing Simulation Platform for Intelligent Connected Vehicle [D]. University of Electronic Science and Technology of China</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Li</given-names>
            <surname>Xue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Wang</given-names>
            <surname>Fang</surname>
          </string-name>
          .
          <article-title>Application of Cloud Computing in Building Large-scale Highly Concurrent Websites</article-title>
          [J].
          <source>Computers and Networks</source>
          ,
          <year>2021</year>
          ,
          <volume>47</volume>
          (
          <issue>11</issue>
          ):
          <fpage>40</fpage>
          -
          <lpage>42</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Li</surname>
            <given-names>Si-li</given-names>
          </string-name>
          ,
          <article-title>Yang Jing-Rong, Gou Qiang. Research and Implementation of High Concurrency Technology for Lightweight Web Server</article-title>
          [J].
          <source>Computer Technology and Development</source>
          ,
          <year>2020</year>
          ,
          <volume>30</volume>
          (
          <issue>10</issue>
          ):
          <fpage>75</fpage>
          -
          <lpage>78</lpage>
          +
          <fpage>85</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Zhao</surname>
            <given-names>Guang</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ju Changjiang</surname>
            ,
            <given-names>Pan</given-names>
          </string-name>
          <string-name>
            <surname>Jingpeng</surname>
          </string-name>
          .
          <article-title>Design and Practice of Building Resilient and highly Available Architecture for Massive and highly concurrent data Collection [J]</article-title>
          .
          <source>New Industrialization</source>
          ,
          <year>2020</year>
          ,
          <volume>10</volume>
          (
          <issue>09</issue>
          ):
          <fpage>58</fpage>
          -
          <lpage>62</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Yu</surname>
          </string-name>
          Lian-he.
          <source>Fast Construction of Custom Task Scheduling System [J]. Telecommunication Letters</source>
          ,
          <year>2020</year>
          (
          <volume>08</volume>
          ):
          <fpage>30</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Tian</given-names>
            <surname>Yang-feng</surname>
          </string-name>
          ,
          <source>WANG Zhen. Research and Analysis of PaaS Architecture and industry typical Products based on K8s [J]. Science and Technology Innovation</source>
          ,
          <year>2018</year>
          (
          <volume>06</volume>
          ):
          <fpage>97</fpage>
          -
          <lpage>98</lpage>
          .]
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Jin</given-names>
            <surname>Ziwei</surname>
          </string-name>
          .
          <article-title>Design and implementation of Docker distributed container automatic operation and maintenance system based on K8S [D]</article-title>
          . Central South University for Nationalities,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Yang</given-names>
            <surname>Di</surname>
          </string-name>
          .
          <source>Microservice System based on Container Cloud [J]. Telecommunication Science</source>
          ,
          <year>2018</year>
          ,
          <volume>34</volume>
          (
          <issue>09</issue>
          ):
          <fpage>169</fpage>
          -
          <lpage>178</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>