ICCCNT
ICCCNT
Noman Islam
Indus University, Pakistan
[email protected]
Zubair A. Shaikh
National University of Computer and Emerging Sciences, Pakistan
[email protected]
Abstract: Simulations are considered as the most convenient A large number of simulation software has been proposed
approach for validating any research proposal. A simulator in literature [1, 2]. Among them, NS-2, Opnet and JIST/SWANS
attempts to model a real-world setting in order to analyze are some of the popular software. These simulation tools
the behavior of any algorithm. A large number of simulation generally provide a scripting language, such as TCL, for
software for ad hoc network has been proposed in literature. modeling simulation scenarios. The details of the various entities
These simulators are based on execution of simulation on involved in simulation are written in programming languages
standalone computers. This paper introduces the notion of like C/C++ and Java. In addition, a number of statistical and
simulation as a service for mobile ad hoc networks visualization packages are often supported by the software. The
simulation based on cloud computing. Cloud computing is an problem with current simulation software is that most of them
emerging discipline that enables outsourcing computing task are not suitable for simulating large scenarios. Some efforts have
remotely based on pay-as-you-go model. The paper provides been put in this direction to produce scalable simulation tool kits
a generalized architecture to perform ad hoc network (see details in section 2). JIST/SWANS, for instance, provides
simulations on cloud platforms. Similar to different service scalability by embedding simulation time into a virtual machine
models provided by cloud, some service models have been [3].
introduced for cloud based simulation. The proposed
approach provides different advantages such as dynamic This paper presents a novel cloud based approach to
service provisioning to support large scale simulation, simulation. A novel tool called Online Ad hoc Network
sharing of simulation models and reduced cost for simulation Simulation System (OASIS) has been proposed. According to
etc. The proposed tool has been implemented on Heroku Cayirci [4], Modeling and Simulation as a service is a model
platform that demonstrates the scalability of proposed for provisioning modeling and simulation (M&S) services on
approach. demand from a cloud service provider (CSP), which keeps the
underlying infrastructure, platform and software
Keywords: ad hoc network, simulation as a service, cloud based requirements/details hidden from the users. Cloud computing
simulation, collaborative simulation has emerged as a new model of computing. It comprises a set of
pooled resources available to users as a utility. This enables
1 Introduction execution of high performance computing (HPC) algorithms.
The paper presents a generalized architecture to simulation based
Simulation has been considered as amongst few effective
on cloud computing. The approach defines different types of
strategies for validating any research proposal. They are
service models similar to service models supported by
especially useful in situations where the environment imposes
conventional cloud computing systems.
different constraints in implementation of a proposition. Ad hoc
network (an infrastructure-less wireless network) is one such
Rest of the paper discusses the proposed scheme. In the
area where it is often impossible to perform real-time
next section, a review of literature relevant to cloud based
implementation of any proposed solution.
simulation is provided. The proposed approach to cloud based
simulation is then presented. The discussions on implementation
A testbed provides an alternative to analyze and validate a
and evaluation of proposed approach are then provided. The
research proposal in lab-settings. However, testbeds are not
paper concludes with discussions on limitations and possible
economically feasible. In addition, it is very difficult to deploy,
extensions of proposed work.
control and monitor a testbed environment. Simulations are an
alternative and cost effective approach for the validation of
scientific proposals. A simulator is a piece of software that 2 Literature Review
mimics the behavior of any real world environment. It provides a In literature, a large number of software has been proposed
handy approach to conduct research experiments. The input to for simulation of MANET. Some of these tools are NS-2,
any simulation software is a set of scenarios and the outputs are Glmosim, Opnet, JSim, OMNet++, QualNet and JIST/SWANS
usually captured in trace file. The input scenarios are [1, 2, 5]. Among these tools, only few provide support for large
reproducible thus enhances the credibility of the experiments. scale simulation. For instance, Glomosim [6] enables scalable
The trace files can be used for further analysis. simulation using parallel discrete simulation capability provided
by Parsec and can be run on shared memory symmetric The simulations can be accessed globally irrespective of the
processor computer. JIST/SWANS [7] is a Java based location. Even the simulation can be controlled from thin clients
simulation tool that provides a highly efficient sequential like mobile devices. Finally, the cloud can be easily
simulation engine. It adopts virtual machine based simulation i.e. administered, can be deployed with very low deployment cost,
simulation time advances not by any clock but entities and requires very low associated cost for maintenance of
themselves. The software claims to simulate networks twice as hardware.
large as what can be simulated by NS-2 and GlmoSim.
3.2 Proposed architecture
There have several efforts put in literature to provide Figure 1 shows the layered architecture of proposed cloud
modeling and simulation as a service on cloud platform. In [8], based simulation. At the infrastructure layer resides different
the concept of modeling and simulation as a service is types of computation and storage resources that are dynamically
introduced. In [9], the authors presented a polymer portal which provisioned using the hypervisor software. The platform layer
is motivated by the fact that simulation software are often hosts the actual operation system. Then, at the simulation layer,
expensive to use. So, a user can learn the simulation software various components of simulation (as discussed later on) are
first before actually buying the simulator. In addition, the available as services. These services can be accessed using
simulation can be rented when needed to reduce the cost. The application interfaces or directly by client.
authors in [10] proposed that all the activities of modeling and
simulation ranging from development and execution to analysis
should be performed online via a web browser on a cloud
platform. Cayirci [4] presented a survey on cloud based
modeling and simulation. In [11], Simulation Software-as-a-
Service (SimSaaS) is proposed for cloud that provides rapid
simulation in an elastic cloud environment. In [12], the authors
presented a network simulation environment based on the
concept of cloud computing.
4 Implementation Details
The proposed approach has been implemented on Heroku
cloud platform [15]. As a bench mark algorithm, the service
a) Control Panel b) Configuration Panel discovery scheme presented in [16] has been implemented. The
relevant scripts and different simulation scenarios have been
executed. Figure 4 shows the snapshot of simulation. The
various messages exchanged among the nodes, logs and service
records are shown in figure. The simulator implements various
(such as MAC, transport and routing) protocols, statistical
analysis tools and algorithms for ad hoc network simulation.
Two basic routing protocols i.e. AODV [17] and DSR [18] are
provided for simulation. The simulation results are generated as
trace files that can be read by any visualizer such as NAM. The
proposed approach has been analyzed by varying the number of
nodes as well as services in the network.
c) Visualizer
Figure 3: User interfaces for cloud based simulation
Figure 6 shows the result with varying number of
services. It can be seen that as the number of service increases,
the cloud based simulation shows linear degradation in
performance while the non-cloud simulation degrades very
sharply. The results confirmed that the cloud based simulation
environment is scalable and is able to be simulated virtually for
any resource requirements.
70
60
Unanswered Requests
50
40
Cloud based
30 Simulation
20 Non Cloud
Simulation
10
Figure 4: Snapshot of simulation 0
10 50 100 200 500
Services
Figure 5 shows the performance of our simulator when it
is run on cloud computing environment of Heroku. The results Simulation Parameters
are compared with the same simulation run on a non-cloud
environment. The simulations were performed with different Simulation Time 300 sec
number of nodes. The results are obtained after 300sec of Nodes 100
simulation. Hence, some service discovery requests remain Service Advertisement Frequency 10 / sec
unanswered. From the graph, it can be seen that with the rise in
number of nodes, the number of service discovery requests that Requests Issued 30 / min
remain unanswered rises very sharply in non-cloud based
simulation. While in the cloud-based simulation, the rise in Figure 6: Performance with varying number of services
unanswered discovery requests is linear. The reason is that the
cloud based simulation dynamically provisions itself with the 5 Open research issues in cloud based
rise in need of resource requirements. Hence, performance
doesnt degraded sharply.
simulation
Cloud based simulation is a new paradigm that opens
various research issues. This section outlines some of these
60
research issues and limitations of cloud based simulation. The
50 first challenge is the emergence of new security threats. The
Unanswered Requests