Contents

  1. main.tex

main.tex

%\documentclass{IEEEtran}
\documentclass{article}

\begin{document}

\title{
    Achieving Flexibility in Wireless Network Simulation Data Processing
    by Logging and Using SQL
}

\author{
    David Baird \\
    IEEE Student Member No.\ 41623016
}

\maketitle

\clearpage

\tableofcontents

\clearpage

\section*{Abstract}


\section{Introduction}

    Simulations are useful engineering tools but retrieving data from them
    is sometimes merely an afterthought.  Many simulations are designed to
    produce data for a particular purpose.  if a simulation's purpose is
    changed, significant re-programming might need to be done to produce
    the new data.  Another problem occurs when the output of simulation
    data is in a difficult to process format.

    The main concern of a simulation is to mimic reality.  A separate
    concern is the analysis and interpretation of data collected from
    the simulation.  It is proposed that this separation of concerns
    should be manifest in the design of the simulator.  The data from
    the simulator is exported into well defined tables and it is up to
    other software to process the data in these tables.

    This technique for data processing can be applied to the wireless
    network simulations.

    %The program NS~\cite{NS} is used in reality to apply %these concepts.

\section{Procedure}

    \begin{enumerate}

        \item Define a schema.

        \item Simulation must export everything.  Any data that might
            be of interest to the user must be exported.  The data must
            be encoded as a table of values.

        \item Import into databse.  Import the data into an SQL database.

        \item Query.  Use the SQL language to ask questions about
            the data.  These answers to these questions will be
            encoded as a table of values which can be easily processed
            by many programs.  Sometimes the queries can be used to
            provide input directly to a visualization program such as
            GNUPLOT~\cite{GNUPLOT}.

    \end{enumerate}

\section{Demonstration}

    The demonstration will apply the data processing procedures to
    a simulation of wireless networks.  In this demonstration, the
    simulation will be written in C++, the data will be written to ASCII
    files each containing a table of values.

\subsection{Definining a Schema}

    A schema consists of definitions of the tables.  The schema must be
    defined for the C++ language and for the SQL language.  Since the
    schemas in SQL and C++ both describe the same thing, the C++ format
    will be quickly introduced and the full schema will be presented
    in SQL.

\begin{verbatim}
typedef struct {
    double time;
    int nodeid;
    int pktid1;
    int pktid2;
    int type;
} stream_collision_t;
std::ostream &operator<<(std::ostream &o, stream_collision_t &b);
\end{verbatim}

\section{Related Work}

% DSMS

\bibliographystyle{IEEEtran}
\bibliography{references}

\end{document}



Generated by GNU enscript 1.6.3.