summaryrefslogtreecommitdiff
path: root/assignment7.tex
blob: bf9ea1ecd48b170d2b3a8ba731bee3c661c23bd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
\documentclass[a4paper,9pt]{article}

\author{Camil Staps\\\small{s4498062}}
\title{Networking\\\large{Assignment 7}}
\date{May 22, 2016}

\usepackage{polyglossia}
\setmainlanguage{english}
\usepackage{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage{subcaption}
\usepackage{verbatimbox}

\begin{document}

\maketitle

\section{Cyclic Redundancy Checks}
\begin{enumerate}[label=\alph*)]
	\item It computes the remainder of $(D\cdot2^r\oplus R) \div G$, and checks
		that it equals $0$.
	\item See \autoref{fig:longdiv:b}. The answer is \texttt{111}.
	\item See \autoref{fig:longdiv:c}. The answer is \texttt{010}.
	\item See \autoref{fig:longdiv:d}. The answer is \texttt{111}.
\end{enumerate}

\begin{figure}[h]
	\small
	\begin{subfigure}[b]{.32\linewidth}
		\centering
		\begin{verbbox}
			1001010101 000
			1001
			0000010101 000
			     1001
			0000000111 000
			       100 1
			0000000011 100
			        10 01
			0000000001 110
			         1 001
			0000000000 111
		\end{verbbox}
		\theverbbox%
		\caption{\label{fig:longdiv:b}}
	\end{subfigure}
	\begin{subfigure}[b]{.32\linewidth}
		\centering
		\begin{verbbox}
			0101101010 000
			 1001
			0001001010 000
			   1001
			0000000010 000
			        10 01
			0000000000 010
		\end{verbbox}
		\theverbbox%
		\caption{\label{fig:longdiv:c}}
	\end{subfigure}
	\begin{subfigure}[b]{.32\linewidth}
		\centering
		\begin{verbbox}
			1010100000 000
			1001
			0011100000 000
			  1001
			0001110000 000
			   1001
			0000111000 000
			    1001
			0000011100 000
			     1001
			0000001110 000
			      1001
			0000000111 000
			       100 1
			0000000011 100
			        10 01
			0000000001 110
			         1 001
			0000000000 111
		\end{verbbox}
		\theverbbox%
		\caption{\label{fig:longdiv:d}}
	\end{subfigure}
	\caption{Computing CRC using long division\label{fig:longdiv}}
\end{figure}

\section{Address Resolution Protocol}
\begin{enumerate}
	\item
			A --- 192.168.1.100; B --- 192.168.1.200;\\
			C --- 192.168.2.100; D --- 192.168.2.200;\\
			E --- 192.168.3.100; F --- 192.168.3.200.
	\item We call the left router R and the right router S. Let $R_i$ be the
		interface of router $R$ for subnet $i$. Then:

		A --- 00.00.00.00.00.A0; B --- 00.00.00.00.00.B0;\\
		C --- 00.00.00.00.00.C0; D --- 00.00.00.00.00.D0;\\
		E --- 00.00.00.00.00.E0; F --- 00.00.00.00.00.F0;\\
		R$_1$ --- 88.88.88.00.00.00; R$_2$ --- 88.88.88.00.88.00;\\
		S$_2$ --- 88.88.88.88.00.00; S$_3$ --- 88.88.88.88.88.00.
	\item %todo
	\item %todo
\end{enumerate}

\section{Self-learning}
\begin{enumerate}[label=(\roman*)]
	\item %todo
	\item %todo
	\item %todo
	\item %todo
\end{enumerate}

\section{All things learned put together}
%todo

\end{document}