\documentclass{ictlab}

% Copyright (c) 2003 by Nick Urbanik <nicku(at)nicku.org>.
% This material may be distributed only subject to the terms and
% conditions set forth in the Open Publication License, v1.0 or later
% (the latest version is presently available at
% http://www.opencontent.org/openpub/).

\RCS $Revision: 1.3 $

\usepackage{verbatim,key,alltt,amstext,xr}
\usepackage[hang,bf,nooneline]{caption2}
\ifx\pdftexversion\undefined \else
  \usepackage[pdfpagemode=None,pdfauthor={Nick Urbanik}]{hyperref}
\fi
\externaldocument[ckt-]{../cricket/cricket}

\newcommand*{\labTitle}{Exercises with Cricket}
\providecommand*{\SNMP}{\acro{SNMP}\xspace}
\providecommand*{\MIB}{\acro{MIB}\xspace}
\providecommand*{\ID}{\acro{ID}\xspace}
\providecommand*{\OID}{\acro{OID}\xspace}
\providecommand*{\IOS}{\acro{IOS}\xspace}
\providecommand*{\FAQ}{\acro{FAQ}\xspace}
\providecommand*{\RPM}{\acro{RPM}\xspace}
\providecommand*{\MRTG}{\acro{MRTG}\xspace}
\providecommand*{\CPAN}{\acro{CPAN}\xspace}
\providecommand*{\RRD}{\acro{RRD}\xspace}
\providecommand*{\URL}{\acro{URL}\xspace}

\renewcommand*{\floatpagefraction}{0.75} % default is .5, to increase
% density.
\renewcommand*{\bottomfraction}{0.6} % default is 0.3
\renewcommand*{\topfraction}{0.85} % default is 0.7
\renewcommand*{\textfraction}{0.1} % default is 0.2


\begin{document}

\section{Some Background}
\label{sec:background}

Refer to
section~\vref{ckt-sec:Adding-a-new-set-of-Graphs-and-Targets-for-Cricket-to-Monitor}
of the Cricket handout I gave your earlier, and all the remaining
sections right to the end.  In this handout, I have provided a
detailed explanation of how Cricket configuration works.

Also refer to the Cricket manual at
\url{http://cricket.sourceforge.net/support/doc/reference.html} (or
locally at
\url{http://localhost.tyict.vtc.edu.hk/~cricket/doc/reference.html} if
you set up the link as described in section~\vref{ckt-sec:doc-link} of
my Cricket handout) as you do these exercises.

All network traffic should to be monitored in units of \emph{bits per
  second}.  Kilobits or megabits per second are okay.  One kilobit per
second is $2^{10}$ bits per second; one megabit per second is $2^{20}$
bits per second.

To do this, you will need to have the agent running on your machine,
configured with access to the \MIB-2 tree.  You should have done this
already; the process is described in the handout entitled \emph{SNMP
  Agent and the Set Operation}\@.

For each of the variables you monitor, you should provide:
\begin{itemize}
\item at least one set of graphs, monitoring the data over a daily,
  weekly, monthly and annual basis;
\item meaningful labels to the graphs; for example, the graph for
  Internet network traffic should be labelled something like:
  ``Internet network traffic'' rather than as ``\texttt{3}'' or
  ``\texttt{ppp0}''.  The axes of the graphs should also be labelled
  properly.
\item meaningful names on the links to the graphs.
\end{itemize}
%% For each network interface, there should be one set of graphs for the
%% broadcast and multicast data, and another set for the total network
%% traffic.

You should also check that the data in your graphs is meaningful by
comparing it with the output from programs such as \texttt{ifconfig}.
Perform the necessary calculations to indicate that the network
traffic shown in your graph is consistent with the output of
\texttt{ifconfig}.

\section{The Exercises}
\label{sec:exercises}

\begin{enumerate}
\item Configure \texttt{cricket} to monitor network traffic on all
  network interfaces on your computer.  Particularly, please refer to
  section~\vref{ckt-sec:listinterfaces} of my Cricket handout.
\item Configure \texttt{cricket} to monitor network statistics on the
  Cisco 3548 switch in A204e\@.  It has the \IP address 172.19.66.82;
  the read-only community string is \texttt{693729}.
  \begin{explanation}
    \emph{Important:} Please read section \vref{ckt-sec:35xx-cisco} of
    the Cricket notes before starting this exercise.
  \end{explanation}
\item Choose some other interesting network service(s) and configure
  Cricket to monitor them.
\end{enumerate}
\end{document}
