\documentclass[a4paper]{exam}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,swedish]{babel}
\usepackage[hyphens]{url}
\usepackage{hyperref}
\usepackage{natbib}
\usepackage{prettyref,varioref}
\usepackage[binary]{SIunits}

\printanswers

\title{DT153G -- Nätverksteknik A\\
  Laboration 1}
  \author{Lennart Franked\footnote{%
    E-post: \href{mailto:lennart.franked@miun.se}{lennart.franked@miun.se}
  }
}
\date{\today}

\begin{document}
\maketitle

\section{Reading Instructions}
Before starting Homework 1, you must have read \cite[Chapters 1-11]{2014ITN},
and attended or read the lectures from the first part of this 
course.

\section{Tasks}

\begin{questions}
  \uplevel{
    You can learn alot about a network using using very simple tools that are
    already available on any computer today.

    \emph{You are not allowed to install any new software to solve this
      laboratory assignment, unless it is explicitly specified in the 
    question.}
  }
  \question 
  \label{q:settings}
  Start by check the basic network configurations.
  \begin{parts}
    \part[1] What is the computer's MAC address?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the computer's IP address?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the computer's subnet mask?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the network ID of your subnet?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the broadcast address of your subnet?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] Based on the MAC-address, who is the manufacturer of your network
    interface controller?
    \begin{solution}
      \ldots
    \end{solution}

    \part[2] Is the IP address dynamically or manually set? Name one advantage
    and one disadvantage for each address allocation method.
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the DNS server set to?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the purpose of the DNS server?
    \begin{solution}
      \ldots
    \end{solution}

  \end{parts}

  \question
  \label{q:netstat}
  Next point of business is to make sure that the gateway to the outside network
  is correctly applied. Use \texttt{'netstat'} to confirm this. Refer to
  netstat's documentation for information on how to retrieve this information.
  \emph{Do NOT search for the answer on the internet, the entire point of this
    assignment is for you to learn and get comfortable with program
    documentation and not having to browse the internet and rely on questionable
    blogs all the time.}

  \begin{parts}
    \part[1] What is your default gateway, show how you reached to this
    conclusion with the help of netstat.
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What flags did you use on netstat to achieve this?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] Explain the meaning of every \emph{column}.
    \begin{solution}
      \ldots
    \end{solution}

  \end{parts}

  \question
  \label{q:arp}
  What other computers can you find in your broadcast domain?
  However before doing this, you need to flush all previously stored network
  data your computer might have stored about other computers in the network on
  the computer, since that information might be outdated by now.

  \begin{parts}
    \part[1] How do you flush the previously stored information about
    available computers on your broadcast domain?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is the process to obtain information about
    available computers on your broadcast domain?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] Curiosity is the force that drives most of us to learn more, and
    you are of course curious to know the manufacturer of the other network
    interface controllers in the broadcast domain. How can you retrieve this 
    information?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] Sadly you are not able to see all the computers on the
    broadcast domain from your computer, even though they are connected
    and working, give one theory why this is so.
    \begin{solution}
      \ldots
    \end{solution}

  \end{parts}

  \question
  \label{q:traceroute}
  You are feeling rather confident that the default gateway on this computer
  is not the only gateway your packages must traverse before actually reaching
  your ISP and beyond.
  \begin{parts}
    \part[1] What program can you use to confirm or refute this 'hunch'
    of yours?
    \begin{solution}
      \ldots
    \end{solution}

    \part[2] Explain in detail how this utility works, and how you used it to
    confirm or refute the hunch.
    \begin{solution}
      \ldots
    \end{solution}

  \end{parts}

  \question
  \label{q:bandwidth1}
  Next on the agenda is to check what bandwidth you have, however you will not
  use available online tools such as bredbandskollen.
  Go to ftp.sunet.se and locate a reasonable sized Linux image file to download.
  Time the download in seconds and calculate how long it took to download.
 
  \begin{parts}
    \part[1] What is your goodput in \byte\per\second?
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] What is your goodput in \bit\per\second?
    \begin{solution}
      \ldots
    \end{solution}

  \end{parts}

  \question[2]
  \label{q:bandwidth2}
  The restlessness is hitting you hard\ldots You decide to take a short break
  and look at an old short movie. The movie you want to watch
  is available at:

  \url{http://www.bigbuckbunny.org} 

  Based on your result from \prettyref{q:bandwidth1}. If you were to stream this
  movie, what is the highest quality you can choose without having to rely on 
  heavy buffering for watching?

  \begin{solution}
    \ldots
  \end{solution}

  \question
  It is time to be a bit more intrusive, install Wireshark, which is a packet
  sniffing software, consult the documentation on their website for details of
  how to operate this software.

  Once installed, clear all the locally cached addresses and DNS information (if
  possible) before you proceed with the next step.

  Using Wireshark, start a new capture and then visit a web page that you
  haven't visited before. Once established, stop the capture in Wireshark.
  \begin{parts}
    \part[4] Study your capture-file and present all the protocols involved in
    the process of retrieving a website. Include the relevant data along with
    an explanation from your capture file to clearly present your findings.
    \begin{solution}
      \ldots
    \end{solution}

    \part[1] Since a packet capture will capture all the activity on the
    network card, it is important to filter out the unwanted data. 
    Explain the difference between 'capture filters' and 'display filters', 
    together along with advantages and disadvantages of them.
    \begin{solution}
      \ldots
    \end{solution}

  \end{parts}
\end{questions}

\bibliography{literature}
\bibliographystyle{plain}
\end{document}
