rework for rescom
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 10 Jun 2009 23:02:07 +0200
changeset 48 142b1e000e6d
parent 47 bc71c7c558cb
child 49 0610ea5cc07c
rework for rescom
Makefile
experimentation.tex
extras.tex
highlevel-features.tex
tutorial.tex
--- a/Makefile	Wed Jun 10 22:28:06 2009 +0200
+++ b/Makefile	Wed Jun 10 23:02:07 2009 +0200
@@ -56,7 +56,7 @@
 	pdflatex $(MAIN_SOURCE)
 
 view: $(MAIN_PDF)
-	evince $(MAIN_PDF)
+	acroread $(MAIN_PDF) &
 
 SUFFIXES=.aux .log .nav .out .pdf .snm .toc .vrb
 clean:  
--- a/experimentation.tex	Wed Jun 10 22:28:06 2009 +0200
+++ b/experimentation.tex	Wed Jun 10 23:02:07 2009 +0200
@@ -150,7 +150,9 @@
 \end{columns}
 \hspace{1cm}\\
 \vspace{1cm}
-Various combinations and hybrids of the above are possible
+Various combinations and hybrids of the above are possible. 
+
+Today: it is possible to do all this manually.
 
 \end{frame}
 
@@ -181,6 +183,23 @@
 
 \end{frame}
 
+\begin{frame}{Example: nepi and nef}
+
+\begin{itemize}
+  \item Early prototypes
+  \item Nef: GUI to control nepi
+  \item Nepi:
+  \begin{itemize}
+    \item A single API for multiple backends
+    \item Backends for Planetlab, ns-3 initially
+    \item Plans for more backends
+    \item Automates ip addressing
+    \item Automates deployment
+  \end{itemize}
+\end{itemize}
+
+\end{frame}
+
 \section{Application loader}
 
 \begin{frame}{Binary loader}
--- a/extras.tex	Wed Jun 10 22:28:06 2009 +0200
+++ b/extras.tex	Wed Jun 10 23:02:07 2009 +0200
@@ -1,3 +1,92 @@
+\section{Random variables}
+
+\begin{frame}[fragile]{Random variables}
+
+Specify a \emph{random} start time:
+{\footnotesize
+\begin{block}{}
+\begin{verbatim}
+onoff.SetAttribute ("OnTime", StringValue ("Uniform:1.0:2.0"));
+\end{verbatim}
+\end{block}
+}
+
+\begin{itemize}
+\item  Uses the MRG32k3a generator from Pierre L'Ecuyer (like ns-2):
+\begin{itemize}
+\item \url{http://www.iro.umontreal.ca/~lecuyer/myftp/papers/streams00.pdf}
+\item Period of PRNG is $3.1x10^{57}$
+\end{itemize}
+\item Partitions a pseudo-random number
+  generator into uncorrelated streams and
+  substreams:
+\begin{itemize}
+\item Each RandomVariable gets its own stream
+\item This stream partitioned into substreams
+\end{itemize}
+\item If you increment the seed of the PRNG,
+  the RandomVariable streams across
+  different runs are not guaranteed to be
+  uncorrelated
+\item If you fix the seed, but increment the run
+  number, you will get an uncorrelated
+  substream
+\end{itemize}
+
+\end{frame}
+
+\begin{frame}{Random variables in ns-3}
+
+Ns-3 simulations use a fixed seed (1) and run
+number (1) by default:
+\begin{itemize}
+\item \code{--RngSeed}, \code{--RngRun}
+\item \code{NS\_GLOBAL\_VALUE=RngRun=2}
+\item Default was random seeding prior to 3.4
+\end{itemize}
+
+To run independent replications of the 
+same scenario:
+\begin{itemize}
+\item Don't change the seed ever
+\item Increment the run number for each simulation
+\end{itemize}
+
+\end{frame}
+
+\begin{frame}[fragile]{Random variable API}
+
+Currently implemented distributions:
+\begin{itemize}
+\item Uniform: values uniformly distributed in an interval
+\item Constant: value is always the same (not really random)
+\item Sequential: return a sequential list of predefined values
+\item Exponential: exponential distribution (poisson process)
+\item Normal (gaussian)
+\item Log-normal
+\item Pareto, Weibull, Triangular,
+\item etc.
+\end{itemize}
+\begin{columns}
+\begin{column}{0.75\textwidth}
+\begin{block}{}
+\begin{verbatim}
+import pylab 
+import ns3
+rng = ns3.NormalVariable(10.0, 5.0)
+x = [rng.GetValue() for t in range(100000)]
+pylab.hist(x,100)
+pylab.show()
+\end{verbatim}
+\end{block}
+\end{column}
+\begin{column}{0.25\textwidth}
+\includegraphics[width=3cm]{test-random-variable}
+\end{column}
+\end{columns}
+
+\end{frame}
+
 \section{Callbacks}
 
 \begin{frame}[fragile,allowframebreaks]{Callback objects}
--- a/highlevel-features.tex	Wed Jun 10 22:28:06 2009 +0200
+++ b/highlevel-features.tex	Wed Jun 10 23:02:07 2009 +0200
@@ -1113,91 +1113,3 @@
 
 \end{frame}
 
-\subsection{Random variables}
-
-\begin{frame}[fragile]{Random variables}
-
-Specify a \emph{random} start time:
-{\footnotesize
-\begin{block}{}
-\begin{verbatim}
-onoff.SetAttribute ("OnTime", StringValue ("Uniform:1.0:2.0"));
-\end{verbatim}
-\end{block}
-}
-
-\begin{itemize}
-\item  Uses the MRG32k3a generator from Pierre L'Ecuyer (like ns-2):
-\begin{itemize}
-\item \url{http://www.iro.umontreal.ca/~lecuyer/myftp/papers/streams00.pdf}
-\item Period of PRNG is $3.1x10^{57}$
-\end{itemize}
-\item Partitions a pseudo-random number
-  generator into uncorrelated streams and
-  substreams:
-\begin{itemize}
-\item Each RandomVariable gets its own stream
-\item This stream partitioned into substreams
-\end{itemize}
-\item If you increment the seed of the PRNG,
-  the RandomVariable streams across
-  different runs are not guaranteed to be
-  uncorrelated
-\item If you fix the seed, but increment the run
-  number, you will get an uncorrelated
-  substream
-\end{itemize}
-
-\end{frame}
-
-\begin{frame}{Random variables in ns-3}
-
-Ns-3 simulations use a fixed seed (1) and run
-number (1) by default:
-\begin{itemize}
-\item \code{--RngSeed}, \code{--RngRun}
-\item \code{NS\_GLOBAL\_VALUE=RngRun=2}
-\item Default was random seeding prior to 3.4
-\end{itemize}
-
-To run independent replications of the 
-same scenario:
-\begin{itemize}
-\item Don't change the seed ever
-\item Increment the run number for each simulation
-\end{itemize}
-
-\end{frame}
-
-\begin{frame}[fragile]{Random variable API}
-
-Currently implemented distributions:
-\begin{itemize}
-\item Uniform: values uniformly distributed in an interval
-\item Constant: value is always the same (not really random)
-\item Sequential: return a sequential list of predefined values
-\item Exponential: exponential distribution (poisson process)
-\item Normal (gaussian)
-\item Log-normal
-\item Pareto, Weibull, Triangular,
-\item etc.
-\end{itemize}
-\begin{columns}
-\begin{column}{0.75\textwidth}
-\begin{block}{}
-\begin{verbatim}
-import pylab 
-import ns3
-rng = ns3.NormalVariable(10.0, 5.0)
-x = [rng.GetValue() for t in range(100000)]
-pylab.hist(x,100)
-pylab.show()
-\end{verbatim}
-\end{block}
-\end{column}
-\begin{column}{0.25\textwidth}
-\includegraphics[width=3cm]{test-random-variable}
-\end{column}
-\end{columns}
-
-\end{frame}
--- a/tutorial.tex	Wed Jun 10 22:28:06 2009 +0200
+++ b/tutorial.tex	Wed Jun 10 23:02:07 2009 +0200
@@ -8,7 +8,7 @@
 \author[Mathieu Lacage]{Mathieu Lacage \\ \texttt{mathieu.lacage@sophia.inria.fr}}
 \institute{INRIA}
 \title{An ns-3 tutorial}
-\date[Tunis'09-04]{Tunis, April, 7th and 8th 2009}
+\date[Rescom'09]{Rescom june 12th 2009, Palmyre}
 \begin{document}
 
 \begin{frame}
@@ -38,17 +38,10 @@
 \end{frame}
 
 \begin{frame}{Tutorial schedule}
-Tuesday 7th:
 \begin{itemize}
-\item 14h00-16h00: Overview of ns-3 features
-\item 16h00-16h30: Pause
-\item 16h30-17h30: An end-to-end tour of a simulation
-\item 17h30-18h00: Experimentation
-\end{itemize}
-Wednesday 8th:
-\begin{itemize}
-\item 09h00-10h00: Setup
-\item ...
+\item 11h00-11h30: Overview of ns-3 features
+\item 11h30-12h00: An end-to-end tour of a simulation
+\item 12h00-12h30: Experimentation
 \end{itemize}
 \end{frame}
 
@@ -68,7 +61,7 @@
 
 \begin{frame}{Pause !!}
 
-Let's have a break
+Maybe some questions ?
 
 \end{frame}
 
@@ -86,7 +79,7 @@
 
 \begin{frame}{Pause !!}
 
-Let's have a break
+More questions ?
 
 \end{frame}
 
@@ -103,14 +96,6 @@
 
 \include{experimentation}
 
-\part{Practical exercise}
-
-\begin{frame}
-\partpage
-\end{frame}
-
-\include{exercise}
-
 \part{We are done, finally}
 
 \begin{frame}