From 7fe4e05705b4df82e8d710e432cb8f5fb79222bf Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 27 Apr 2018 01:46:46 +0200 Subject: wip --- slides/images/ip-encapsulation.pgf | 25 +++++++++++++++++++++++++ slides/images/tcpip.pgf | 12 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 slides/images/ip-encapsulation.pgf create mode 100644 slides/images/tcpip.pgf (limited to 'slides/images') diff --git a/slides/images/ip-encapsulation.pgf b/slides/images/ip-encapsulation.pgf new file mode 100644 index 0000000..34ba423 --- /dev/null +++ b/slides/images/ip-encapsulation.pgf @@ -0,0 +1,25 @@ +\begin{tikzpicture}[ +mybox/.style={ + draw, + rectangle, + minimum height=1 cm, + anchor=west, + align=center, + font=\bfseries} +] + +%\draw (0,0) rectangle (3cm, 1cm) {wat}; + +\node at (0 cm, 0 cm) [mybox, minimum width=2cm, text width=1.7cm] {Frame header}; +\node at (2 cm, 0 cm) [mybox, minimum width=6cm] {Frame data}; +\node at (8 cm, 0 cm) [mybox, minimum width=2cm, text width=1.7cm] {Frame footer}; + +\node at (2 cm, 1.1 cm) [mybox, minimum width=2cm] {IP header}; +\node at (4 cm, 1.1 cm) [mybox, minimum width=4cm] {IP Data}; + +\node at (4 cm, 2.2 cm) [mybox, minimum width=2cm, text width=1.7 cm] {UDP header}; +\node at (6 cm, 2.2 cm) [mybox, minimum width=2cm, text width=1.7 cm] {UDP Data}; + +\node at (6 cm, 3.3 cm) [mybox, minimum width=2cm, text width=1.7 cm] {Data}; + +\end{tikzpicture} diff --git a/slides/images/tcpip.pgf b/slides/images/tcpip.pgf new file mode 100644 index 0000000..def5a31 --- /dev/null +++ b/slides/images/tcpip.pgf @@ -0,0 +1,12 @@ +\begin{tikzpicture}[ +mybox/.style={draw, rectangle, minimum width=4cm, minimum height=1 cm,font=\bfseries} +] + +%\draw (0,0) rectangle (3cm, 1cm) {wat}; + +\node at (0, -0) [mybox] {Application}; +\node at (0, -1) [mybox] {Transport}; +\node at (0, -2) [mybox] {Internet}; +\node at (0, -3)[mybox] {Network interface}; + +\end{tikzpicture} -- cgit v1.2.3