Skip to content

Commit

Permalink
fix indent of report item
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhakh committed Dec 18, 2020
1 parent d9bb4eb commit 1298a93
Show file tree
Hide file tree
Showing 8 changed files with 255 additions and 255 deletions.
36 changes: 18 additions & 18 deletions 1 Linux and TCP-IP networking/Linux and TCP-IP networking.tex
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ \section{Telnet Service}
Then use \lstinline[emph={process-id-of-telnet}]{kill process-id-of-telnet} to terminate the \lstinline{telnet} process.

\begin{report}
\item What is Internet Service Daemon (\lstinline{inetd})?
\item What is Internet Service Daemon (\lstinline{inetd})?

\item Is \lstinline{inetd} started in your system? Why?
\item Is \lstinline{inetd} started in your system? Why?

\item Is \lstinline{xinetd} started in your system? What is its PID?
\item Is \lstinline{xinetd} started in your system? What is its PID?
\end{report}

\section{Default Network Services}
Expand All @@ -100,7 +100,7 @@ \section{Default Network Services}
Save the output.

\begin{report}
\item What are the sizes of files \path{ser-more}, \path{ser-cp}, and \path{ser-cat}?
\item What are the sizes of files \path{ser-more}, \path{ser-cp}, and \path{ser-cat}?
\end{report}

\section{Network Command Manual}
Expand All @@ -122,8 +122,8 @@ \section{Network Command Manual}
Throughout this lab you will use these commands rather extensively.

\begin{report}
\item Explain the above commands briefly.
(Two or three sentences per command would be adequate.)
\item Explain the above commands briefly.
(Two or three sentences per command would be adequate.)
\end{report}

\section{Packet Capturing}
Expand All @@ -142,10 +142,10 @@ \section{Packet Capturing}
In GNS3 you can capture ans see packet with right click on wire and select \textit{Start Capture}.

\begin{report}
\item What is the value of the \texttt{protocol} field in the IP header of the packet you saved?
What is the use of the \texttt{protocol} field?
\item What is the value of the \texttt{protocol} field in the IP header of the packet you saved?
What is the use of the \texttt{protocol} field?

\item What is the value of the \texttt{frame type} field in an Ethernet frame carrying an IP datagram?
\item What is the value of the \texttt{frame type} field in an Ethernet frame carrying an IP datagram?
\end{report}

\section{\texttt{ARPing}}
Expand All @@ -156,9 +156,9 @@ \section{\texttt{ARPing}}
Now you should see several ARP replies in the \lstinline{arping} output.

\begin{report}
\item What is the value of the \texttt{frame type} field in an Ethernet frame carrying an ARP request and in an Ethernet frame carrying an ARP reply, respectively?
\item What is the value of the \texttt{frame type} field in an Ethernet frame carrying an ARP request and in an Ethernet frame carrying an ARP reply, respectively?

\item What is the use of the \texttt{frame type} field?
\item What is the use of the \texttt{frame type} field?
\end{report}

\section{Packet Filtering}
Expand All @@ -174,7 +174,7 @@ \section{Packet Filtering}
(e.g.\ \lstinline{telnet}, \lstinline{ping}, etc.).

\begin{report}
\item Explain briefly the purposes of the following \lstinline{tcpdump} expressions.
\item Explain briefly the purposes of the following \lstinline{tcpdump} expressions.
\end{report}

% todo: make sample traffic
Expand Down Expand Up @@ -203,9 +203,9 @@ \section{Connection Port}
\end{lstlisting}

\begin{report}
\item What are the port numbers used by the \textit{h1} (local machine) and \textit{h2} (remote machine)?
\item What are the port numbers used by the \textit{h1} (local machine) and \textit{h2} (remote machine)?

\item Which machine’s port number matches the port number listed for \lstinline{telnet} in the \path{/etc/services} file?
\item Which machine’s port number matches the port number listed for \lstinline{telnet} in the \path{/etc/services} file?
\end{report}

\section{Random Port}
Expand All @@ -218,12 +218,12 @@ \section{Random Port}
Check the port numbers being used on both sides of the two connections from the output in the \lstinline{wireshark} window.

\begin{report}
\item When you have two \lstinline{telnet} sessions with your machine, what port number is used on the \textit{h2} (remote machine)?
\item When you have two \lstinline{telnet} sessions with your machine, what port number is used on the \textit{h2} (remote machine)?

\item Are both sessions connected to the same port number on the \textit{h2} (remote machine)?
\item Are both sessions connected to the same port number on the \textit{h2} (remote machine)?

\item What port numbers are used in \textit{h1} (local machine) for the first and second \lstinline{telnet}, respectively?
\item What port numbers are used in \textit{h1} (local machine) for the first and second \lstinline{telnet}, respectively?

\item Explain briefly what a \lstinline[language=bash]{socket} is.
\item Explain briefly what a \lstinline[language=bash]{socket} is.
\end{report}
\end{document}
4 changes: 2 additions & 2 deletions 10 SDN/SDN and nothing else.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ \part{SDN Introduction}
\end{itemize}

\begin{report}
\item Explain line 21 to 26 of \path{switch.py}.
\item Read \url{http://flowgrammable.org/sdn/openflow/state-machine/} and explain switch handshake with controller. What is \texttt{xid} of your packets. Justify your answer with captured packets. \textbf{Don't copy and paste text from reference in your lab report}.
\item Explain line 21 to 26 of \path{switch.py}.
\item Read \url{http://flowgrammable.org/sdn/openflow/state-machine/} and explain switch handshake with controller. What is \texttt{xid} of your packets. Justify your answer with captured packets. \textbf{Don't copy and paste text from reference in your lab report}.
\end{report}

\section{Exercise Two}
Expand Down
62 changes: 31 additions & 31 deletions 2 A single segment network/A single segment network.tex
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,23 @@ \section{Network Interfaces}
Find the IP address and the net mask of your machine.

\begin{report}
\item How many interfaces does the host have?
List all the interfaces found, give their names, and explain their functions briefly.
\item How many interfaces does the host have?
List all the interfaces found, give their names, and explain their functions briefly.

\item What are the MTUs of the interfaces on \textit{h0}?
\item What are the MTUs of the interfaces on \textit{h0}?

\item Is network subnetted?
What is the reasoning for your answer? What the experimental are the reasons for subnetting?
\item Is network subnetted?
What is the reasoning for your answer? What the experimental are the reasons for subnetting?
\end{report}


\section{Local Host Dump}
While \lstinline[emph={lo}]{tcpdump -i lo}\footnote{In old linux use \lstinline[emph={your-host}]{tcpdump host your-host}} is running in one command window, run \lstinline{ping 127.0.0.1} from another command window.

\begin{report}
\item From the \lstinline{ping} output, is the 127.0.0.1 interface on?
Can you see any ICMP message sent from your host in the \lstinline{tcpdump} output?
Why?
\item From the \lstinline{ping} output, is the 127.0.0.1 interface on?
Can you see any ICMP message sent from your host in the \lstinline{tcpdump} output?
Why?
\end{report}


Expand All @@ -103,7 +103,7 @@ \section{Network Statistics}
\end{lstlisting}

\begin{report}
\item Calculate the average collision rate over all the hosts for the set of statistics you collected in this exercise.
\item Calculate the average collision rate over all the hosts for the set of statistics you collected in this exercise.
\end{report}

\part{ARP Exercises}
Expand Down Expand Up @@ -139,8 +139,8 @@ \section{ARP Table}
Then go to menu \textit{File/Print\ldots} to print the marked packets for your lab report (See Exercise~6 of Chapter~1 of reference book).

\begin{report}
\item From the saved \lstinline{tcpdump} output, explain how ARP operates.
Draw the format of a captured, ARP request and reply including each field and the value.
\item From the saved \lstinline{tcpdump} output, explain how ARP operates.
Draw the format of a captured, ARP request and reply including each field and the value.
\end{report}

Your report should include the answers for the following questions.
Expand All @@ -160,8 +160,8 @@ \section{ARP Timeout}
After getting the necessary output, terminate the \lstinline{telnet} session.

\begin{report}
\item From the saved \lstinline{tcpdump} output, describe how the ARP timeout and retransmission were performed.
How many attemps were made to resolve a non-existing IP address?
\item From the saved \lstinline{tcpdump} output, describe how the ARP timeout and retransmission were performed.
How many attemps were made to resolve a non-existing IP address?
\end{report}

\section{ARP Proxy}
Expand Down Expand Up @@ -241,13 +241,13 @@ \section{ARP Proxy}
\end{figure}

\begin{report}
\item Explain the operation of proxy ARP.
\item Explain the operation of proxy ARP.

\item Why can a host in the 128.238.65.0 subnet reach a host in the 128.238.64.0 subnet, even though they have different subnet IDs?
\item Why can a host in the 128.238.65.0 subnet reach a host in the 128.238.64.0 subnet, even though they have different subnet IDs?

\item What are the \textbf{MAC} addresses corresponding to hosts in the 128.238.64.0 subnet, in the ARP table of a host in the 128.238.65.0 subnet?
\item What are the \textbf{MAC} addresses corresponding to hosts in the 128.238.64.0 subnet, in the ARP table of a host in the 128.238.65.0 subnet?

\item Give one advantage and one disadvantage of using proxy ARP.
\item Give one advantage and one disadvantage of using proxy ARP.
\end{report}

\section{** Gratuitous (Unsolicited) ARP}
Expand All @@ -263,11 +263,11 @@ \section{** Gratuitous (Unsolicited) ARP}
Print the gratuitous ARP request for your lab report.

\begin{report}
\item What is the purpose of gratuitous ARP?

\item List the sender IP address, target IP address, sender \textbf{MAC} address, and target \textbf{MAC} address of the gratuitous ARP you saved.
\item What is the purpose of gratuitous ARP?
\item List the sender IP address, target IP address, sender \textbf{MAC} address, and target \textbf{MAC} address of the gratuitous ARP you saved.

\item What is the ARP table in \textit{h5}?
\item What is the ARP table in \textit{h5}?
\end{report}


Expand All @@ -280,7 +280,7 @@ \section{ping ICMP}
Save the \lstinline{tcpdump} and \lstinline{ping} output for the future study on \lstinline{ping}.

\begin{report}
\item What ICMP messages are used by \lstinline{ping}?
\item What ICMP messages are used by \lstinline{ping}?
\end{report}

\section{ICMP Port Unreachable}
Expand All @@ -293,19 +293,19 @@ \section{ICMP Port Unreachable}
Save the \lstinline{tcpdump} output for the lab report.

\begin{report}
\item Study the saved ICMP port unreachable error message (See \hyperref[fig:2.7]{Figure~2.7} of reference book.).
Why are the first 8 bytes of the original IP datagram payload included in the ICMP message?
\item Study the saved ICMP port unreachable error message (See \hyperref[fig:2.7]{Figure~2.7} of reference book.).
Why are the first 8 bytes of the original IP datagram payload included in the ICMP message?
\end{report}

\section{ICMP Host Unreachable}
While \lstinline{tcpdump} is running to capture the ICMP messages, \lstinline{ping} a host with IP address \textbf{128.238.60.100} on \text{h2}.
Save the \lstinline{ping} output.

\begin{report}
\item Can you see any traffic sent on the network? Why? Explain what happened from the \lstinline{ping} output.
\item Can you see any traffic sent on the network? Why? Explain what happened from the \lstinline{ping} output.

\item List the different ICMP messages you captured in \nameref{sec:icmp-ping}.
Give the values of the type and code fields.
\item List the different ICMP messages you captured in \nameref{sec:icmp-ping}.
Give the values of the type and code fields.
\end{report}

\part{Exercises with IP address and subnet mask}
Expand Down Expand Up @@ -352,8 +352,8 @@ \section{Duplicate IP}\label{sec:duplicate-ip}
\end{enumerate}

\begin{report}
\item Explain what happened in the first case and why.
Answer the questions for the second and third cases.
\item Explain what happened in the first case and why.
Answer the questions for the second and third cases.
\end{report}

\newpage
Expand Down Expand Up @@ -396,7 +396,7 @@ \section{IP Subnets}\label{sec:ip-subnets}
Clearly, this exercise has to be performed as a team.

\begin{report}
\item Explain what happened in each case according to the \lstinline{tcpdump} outputs saved.
Explain why \textit{h3} could not be reached from other hosts, whereas \textit{h0}), which has the same incorrect subnet mask, could communicate with the other hosts.
\item Explain what happened in each case according to the \lstinline{tcpdump} outputs saved.
Explain why \textit{h3} could not be reached from other hosts, whereas \textit{h0}), which has the same incorrect subnet mask, could communicate with the other hosts.
\end{report}
\end{document}
Loading

0 comments on commit 1298a93

Please sign in to comment.