Sie sind auf Seite 1von 6

Comparative study of Networked Control System and OMNeT++ Simulator, April 26th, 2011

Banarsidas Chandiwala Institute of Information Technology, New Delhi

Comparative study of Networked Control System and OMNeT++ Simulator


Akhilesh Tharakan
MCA 2nd Semester, BCIIT,
akhilesh.tharakan@gmail.com
1. ABSTRACT on different computer nodes linked by a network aim
This paper has a look into the aspect of Co- to overcome the disadvantages of conventional
simulation framework for Networked Control System digital control systems, such as difficulty of
(NCS). It describes about the working of the modification, vulnerability to electrical noise,
Networked Control System and the most suitable difficulty in maintenance and upgrades, at the
simulation for it. The OMNeT++ Co-simulation application level. Therefore using NCSs has many
techniques are explained so that the right technique advantages over the traditional control systems, such
can we derived by the analysis. as reduced system wiring, simple installation,
increased system flexibility, and the great benefits
1.1 KEYWORDS from sharing of the resources. Therefore, NCSs have
Performance, OMNeT++, Networked Controlled been finding many application areas such as DC
System (NCS), Co-simulation. motors, robots, vehicles, car suspension system, ball
maglev system, etc. However a data delay and loss
2. INTRODUCTION on the network may jeopardize stability.
Major advancements over the last decades in wired As Networked Control System (NCS) have grown
and wireless communication networks gave rise to more and more in both aspects of usability and
the new paradigm of Networked Control Systems complexity, a more refined and logical approach is
(NCS). Within this paradigm, sensing and actuation required for performing the simulation activities.
signals are exchanged among various parts of a Certain control system simulators, like the
single system or among many subsystems via Matlab/Simulink, focuses on continuous dynamics
communication networks. having only some support for distinct events.
System-1 Whereas other network simulators like the OMNeT+
System-3 + and ns-2 provides realistic framework for discrete
event driven simulations and also provides support
Network for a wide range of protocols and scenarios. But
unlike the later mentioned network simulators the
OMNeT++ and ns-2 have a limited support for the
System-N
continuous dynamics which was very easily
System-2
supported by the simulators like the Matlab.
Figure 1: Networked Control System
Therefore to solve the problem of an incomplete
Although this enables one to perform more complex simulation technique for a networked control system
tasks than traditional control paradigms, it comes at we introduced our self to the existing solution known
the cost of complicating the design phase and the as the Hybrid Dynamical System. The hybrid
required analysis tools. dynamics system combined the continuous-time
plant dynamics of control system simulators and also
3. THE NETWORKED CONTROL SYSTEM the discrete events present in network simulators.
BASICS But the hybrid dynamical system posed several
Networked control systems where the sensors, problems as they had high levels of abstraction
controller and actuators of a digital controller reside which sees them either unsuitable, or requires large
Comparative study of Networked Control System and OMNeT++ Simulator

modeling effort in order to make a realistic NCS complicated. We come across a


simulation feasible. Thus there was a requirement computational bottleneck.
for a controlled network simulator which has led to
the introduction of co-simulation approach. The co- • The plant may be physically large, meaning
simulation approach is one that has both the that signals need to travel long distances to
simulation environment of the controlled and the the control computer causing noise.
network. Thus it provides a combination of all the
• Long connections mean difficulty in
advantages of both the simulators, i.e., preserve the
maintenance and troubleshooting.
computational flexibility of Matlab, OMNet++ and
alongside provide the functionality of a tested and • The control system is not flexible; adding
verified network simulator. new sensors, actuators to the system and
changing the control algorithm would be
Co-simulation is the act of simulating the continuous major tasks.
and discrete dynamics of the control system
As a remedy, networked control systems can be
simultaneously with the discrete events of the
used. The idea is to design sensor that would
computer network. The co-simulation results can be
measures a physical quantity and converts it into a
used to improve and educate the decision-making
signal which would be read by a sensing instrument,
process of system design for both the control system
control and actuator that would serve as a
and the computer network. Thus it would lead to
mechanism for moving and controlling the system.
discovering new tools and to understand and
The same process as explained above is repeated,
improve the performance of NCS.
except data travels from sensor to control and control
to actuator through a communication network
4. HOW DOES IT WORK instead of dedicated connections.
In conventional digital control systems, there are two
major components, the controlled plant and the
controller. Outputs of the plant are sampled at
periodic intervals by the controller, a control
algorithm applied to the samples, and the result of
the control is produced at the output of the controller
generally as a zero order hold signal.

Sensors Control Actuators

Plant

Figure 2: Conventional Control System

Controller Node
From the theoretical point of view, there is no
Controller Node
problem in this approach. From the implementation Figure 3: NCS
point, several aspects can be improved:
Network
• This structure depends on a single computer This way, the control system becomes more flexible.
to calculate the control algorithm. Depending Network
It can be implemented strictly in the conventional
on the complexity of the plant, it may be too layout, or have different layouts as show in the
figure above where several sensors, controllers and

Sensor Node Actuator Node

Sensor Node Actuator


Figure 5:NCS
3:NCS
4:NCS ControllerNode
Node
Comparative study of Networked Control System and OMNeT++ Simulator

actuators can be present at the same time. Although 1) Network Systems


this setup helps solve the above problems, it brings 2) Networked Devices
in problems of its own: 3) Control Systems
• The communication network brings along 4.1. Control networks
(usually) unpredictable delays The main components of a control network are;
firstly, the network architecture, it gives the sensors,
• It also introduces possibility of data loss and
actuators and controllers to be well connected to
corruption.
each other by reducing the cost of wiring and
• It is not clear how to separate the control maintenance. The last two components are the
algorithm into parts. Some control systems network protocols and the network performance
are not suitable for such separation. analysis. The performance metrics of network
systems looks into the access delay, transmission
Network caused delay directly contributes to the time, response time, message delay, message
delay in the control loop and contributes towards collisions, message throughput and packet size.
instability of the system. Data loss is similar in this
respect. 4.2. Networked devices
The major trend in modern industrial and Network devices are components used to connect
commercial systems is to integrate computing, computers or other electronic devices together so
communication, and control into different levels of that they can share files or resources. Smart sensors,
machine/factory operations. The traditional smart actuators and networked controller are all
communication architecture for control systems is considered as networked devices.
point-to-point, that is, a wire connects the central
control computer with each sensor or actuator point. 4.3. Control systems
This change to common-bus introduced different Networked Control System guarantees the stability
forms of time delay uncertainty between sensors, and the performance to meets the control system
actuators, and controllers. specifications. The limit in the network bandwidth
introduces to an unavoidable time delays in a control
system. These time delays degrade and make the
system unstable. The Modern control applications
have various industrial plants and sophisticated
control systems. But the modern system also has
several problems in it due to the hardware and
software constraints such as poor reliability, inability
to support advanced control schema and poor
performance. To solve this problem a distribution
mechanism was used where in each node was
dedicated to take care of a single control system and
group them to several other sensors and actuators.
These physical nodes, actuators and sensor interacted
with each other by using the bus network topology.

Figure 1: Networked Control System [13] 4.4. Networked control systems design
considerations
Scheduling message and sampling time assignment
The NCSs mainly focuses on the study of the for different control systems interconnected by one
following three components:
Comparative study of Networked Control System and OMNeT++ Simulator

common-bus network where the main design have other tools that keep the key facts fro the data
consideration of a networked control system. The to provide the result so as to find the best case,
sampling period of a control loop was determined by average case and the worst case. The simulation is
the number of loop delays and the network done on event bases where the events are triggered in
bandwidth, so that it could meet the conditions for sequence order.
stability and schedule. Thus to ease this multi-hop
topology were used, where additional hardware and 5.2 USES OF NETWORKED SIMULATORS
software was introduced to implement the message The Network simulators serve as a great tool for cost
transmission. The use of multi hop topology lead to cutting and time involved by the user to in setting up
an increase in the overall system cost. an entire test bed containing multiple networked
computers, routers and other data links very quickly.
4.5 Time-delay systems Simulation give the engineers, researchers the
Delays occur in the transmission of signals or opportunity to test scenarios that might be difficult
materials between different subsystems. The or expensive to implement using real hardware
networked control system is based on the time delay Network simulators help provide new networking
system. The system can be a large-scale system such protocols or changes to existing protocols without
as communication systems, manufacturing systems creating any harm in the society or causing any extra
and transportation systems, The two main cost. A typical network simulator encompasses a
approaches used to analyze the stability of time- wide range of networking technologies and can help
delay systems are: classical (frequency domain) and the users to build complex networks from basic
functional (time domain) approaches. building blocks such as a variety of nodes and links.
With the help of simulators, one can design
5. NETWORKED SIMULATOR hierarchical networks using various types of nodes
A network simulator is a software program that like computers, hubs, bridges, routers, switches,
imitates the working of a computer network. In links, mobile units etc. There are a wide variety of
simulators, the computer network is typically network simulators, ranging from the very simple to
modeled with devices, traffic and the performance is the very complex. The network simulator enable’s a
analyzed. Typically, users can then customize the user to represent a network topology, specifying the
simulator to fulfill their specific analysis needs. nodes on the network, the links between those nodes
Simulators typically come with support for the most and the traffic between the nodes. The graphical
popular protocols in use today, such as WLAN, Wi- applications in the networked simulator allow the
Max, UDP, and TCP [14]. users to easily visualize the workings of their
simulated environment.
5.1 SIMULATIONS
The imitation of some real thing, state of affairs, or 6. SIMULATION TOOLS: OMNeT++
processing a certain network condition is known as OMNeT++ stands for Objective Modular Network
simulation. Most of simulators available are GUI Testbed in C++. It is a discrete event simulation tool
based while others are scripts or commands based. designed to simulate computer networks, multi-
The various parameters of a network describe the processors and other distributed systems. Its
state of the network like the node placement, applications can be extended for modeling other
existing links and the events such as data systems as well. It has become a popular network
transmissions, link failures. The simulator provides simulation tool in the scientific community as well
an output in the form of files known as trace files. as in industry over the years.
Trace files document every event that occurred in
the simulation. These files are further used for 6.1 THE DESIGN OF OMNeT++
analysis of the network. The network simulators
Comparative study of Networked Control System and OMNeT++ Simulator

OMNeT++ was designed to support network and forces them to write scripts. OMNeT++ solves
simulation on a large scale. The OMNeT++ had the problem that many user face have of writing
various objectives which lead to the main design: script, it was removed by making result analysis
• To enable large-scale simulation, simulation rule-based. Simulations and series of simulations
models need to be hierarchical, and built produce various result files.
from reusable components as much as
possible.
• The simulation software should facilitate
visualizing and debugging of simulation
models in order to reduce debugging time,
which traditionally takes up a large
percentage of simulation projects.
• The simulation software should be
customizable and should allow embedding
simulations into larger applications such as
network planning software.
• Should provide an Integrated Development
Environment that largely facilitates model
development and analyzing results.
Figure 2:OMNeT++ GUI

6.2. Contents of the Simulation Library


The OMNeT++ simulation has various class library. 7. CONCLUSION
The classes were designed to cover most of the This paper is to offer a general overview on what is a
common simulation tasks. It has the ability to networked computer system and there working. The
generate random numbers from several independent various components of a networked computer system
streams. The class library offers queues and various and its difference from the conventional system have
other container classes. Queues are operated as been highlighted. After that an introduction to the
priority queues. OMNeT++ supports routing traffic aspect of simulation has be done wherein the
in the network. Thus has the ability to explore actual simulation process and the various way to perform a
network topology, by using graph data structure and simulation using the available simulator has been
other algorithms to find the shortest path. explained. At the end an overview of OMNeT++
The experiments are executed as a whole or partial simulator has been taken up. The working and the
in a single batch. After specifying the model and the functionality of OMNeT++ has been explained so as
experiment parameters one can further refine which to get a basic idea of the OMNeT++ Simulator.
measurements one is interested in. The simulation
batch can be executed and its progress monitored 8. FUTURE SCOPE
from the IDE. According to the various advancement in the field of
networking it would be great to have or develop
6.3 Result Analysis more system that would help make networking a
Analyzing the simulation result is a lengthy and time much easier process. The variety of simulators
consuming process. In most cases the user wants to would make it very easy and understand for us to
see the same type of data for each run of the implement and test the upcoming networked system
simulation or display the same graphs for different without paying the cost of physically implementing
modules in the model, so automation is very the setup in a real world. Thus the NCS and the
important. The lack of automation support drives various simulators would help in attaining a much
many users away from existing GUI analysis tools, more well connected world ahead.
Comparative study of Networked Control System and OMNeT++ Simulator

Ability to Integrate Arbitrary Quality of


Service Behavior”. In Proceedings of the
9. REFERENCES Communication Networks and Distributed
Systems Modeling and Simulation
i. Co-Simulation Tools for Networked Control Conference 2001, Phoenix (AZ), USA,
Systems,Ahmad T. Al-Hammouri⋆, Michael January 7-11.
S. Branicky, and Vincenzo Liberatore, Case xiii. Network Control Systems: Performance
Western Reserve University, Electrical Analysis and Design, Refaat Y Al Ashi and
Engineering and Computer Science Dept. Prof. Abdulla Ismail, Department of
Cleveland, Ohio 44106 USA Electrical Engineering, UAE University
{ata5,mb,vl}@case.edu xiv. http://en.wikipedia.org/wiki/Network_simula
ii. Intelligent Scheduling Control of Networked tion
Control Systems with Networked-induced
Delay and Packet Dropout Hongbo Li,
Zengqi Sun*, Badong Chen, Huaping Liu,
and Fuchun Sun
iii. An Introduction to Networked Control
Systems Richard M. Murray (editor) Control
and Dynamical Systems, California Institute
of Technology
iv. Network Control Systems: Performance
Analysis and Design Refaat Y Al Ashi and
Prof. Abdulla Ismail Department of
Electrical Engineering, UAE University
v. http://control.ee.ethz.ch/~ncs/
vi. https://www.cds.caltech.edu/~murray/wiki/in
dex.php/EECI08:_Introduction_to_Networke
d_Control_Systems
vii. http://vorlon.case.edu/~vxl11/NetBots/#moz
TocId237569
viii. http://en.wikipedia.org/wiki/Control_system
ix. OMNeT++ Home Page.
http://www.omnetpp.org [accessedon
September, 2007]
x. Varga, A. 2001. The OMNeT++ Discrete
Event Simulation System. In the Proceedings
of the European Simulation Multiconference
(ESM2001. June 6-9, 2001. Prague, Czech
Republic).
xi. Kaage, U., V. Kahmann, F. Jondral. 2001.
An OMNeT++ TCP Model. To appear in
Proceedings of the European Simulation
Multiconference (ESM 2001), June 7-9,
Prague.
xii. Wehrle, K, J. Reber, V. Kahmann. 2001. “A
Simulation Suite for Internet Nodes with the

Das könnte Ihnen auch gefallen