From d7507c1fbae1362bfb4525b074061a5303a9cc71 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 18 Apr 2018 08:47:15 +0200 Subject: wip --- images/IP-Header_eng.aux | 1 + images/IP-Header_eng.pdf | Bin 0 -> 31300 bytes images/IP-Header_eng.tex | 38 ++++++++++++++++++++++++++++++++++++++ images/ip-header.pdf | Bin 0 -> 17867 bytes images/ip-header.svg | 2 ++ images/ip-header.xml | 1 + 6 files changed, 42 insertions(+) create mode 100644 images/IP-Header_eng.aux create mode 100644 images/IP-Header_eng.pdf create mode 100644 images/IP-Header_eng.tex create mode 100644 images/ip-header.pdf create mode 100644 images/ip-header.svg create mode 100644 images/ip-header.xml (limited to 'images') diff --git a/images/IP-Header_eng.aux b/images/IP-Header_eng.aux new file mode 100644 index 0000000..f23e546 --- /dev/null +++ b/images/IP-Header_eng.aux @@ -0,0 +1 @@ +\relax diff --git a/images/IP-Header_eng.pdf b/images/IP-Header_eng.pdf new file mode 100644 index 0000000..86ed3c3 Binary files /dev/null and b/images/IP-Header_eng.pdf differ diff --git a/images/IP-Header_eng.tex b/images/IP-Header_eng.tex new file mode 100644 index 0000000..b65ecdf --- /dev/null +++ b/images/IP-Header_eng.tex @@ -0,0 +1,38 @@ +\documentclass[preview]{standalone} +\usepackage{blindtext} +\usepackage[utf8]{inputenc} +\usepackage{tikz} +\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,positioning,shapes.symbols,chains,shapes.geometric,shapes.arrows,calc} + +\begin{document} + \begin{tikzpicture}[scale=0.47] + \foreach \x in {0,...,31} + \node at (\x+0.5,20.5) {\scriptsize \x}; + \foreach \x in {0,...,31} + \node at (\x+0.5,13.5) {\scriptsize \x}; + \foreach \x in {0,...,32} + \draw[thick, blue] (\x,13) -- (\x,21); + \node[thick] (bit1) at (-0.5,20.5) {\scriptsize bit}; + \node[thick] (bit2) at (-0.5,13.5) {\scriptsize bit}; + \draw [<->, thick] (-0.5, 19.9) -- (-0.5,15.1); + \draw [thick] (-1, 20) -- (-0.1,20); + \draw [thick] (-1, 15) -- (-0.1,15); + \node[fill=white] at (-1.1,17.5) {\tiny 20 bytes}; + \filldraw[thick,draw=black, fill=white] (0,20) rectangle (4,19); \node (mode) at (2,19.5) {\scriptsize version}; + \filldraw[thick,draw=black, fill=white] (4,20) rectangle (8,19); \node (mode) at (6,19.68) {\tiny header length};\node (mode) at (6,19.25) {\tiny with options}; + \draw[thick, draw=black, fill=white] (8,20) rectangle (16,19); \node (stratum) at (11.5,19.5) {\scriptsize type of service (TOS)}; + \draw[thick, draw=black, fill=white] (16,20) rectangle (32,19); \node (li) at (24,19.5) {\scriptsize full length of packet}; + \filldraw[thick,draw=black, fill=white] (0,19) rectangle (16,18); \node (mode) at (8,18.5) {\scriptsize identification}; + \draw[thick, draw=black] (16,19) rectangle (19,18); \filldraw[white] (16.5,18.43) rectangle (19,18.88); \node [](li) at (17.5,18.67) {\tiny IP flags}; \node at (16.5,18.25) {\tiny x};\node at (17.5,18.25) {\tiny D};\node at (18.5,18.25) {\tiny M}; + \draw[thick, draw=black, fill=white] (19,19) rectangle (32,18); \node (li) at (24,18.5) {\scriptsize fragment Offset}; + \filldraw[thick,draw=black, fill=white] (0,18) rectangle (8,17); \node (mode) at (4,17.5) {\scriptsize time to live (TTL)}; + \draw[thick, draw=black, fill=white] (8,18) rectangle (16,17); \node (stratum) at (11.5,17.5) {\scriptsize protocol}; + \draw[thick, draw=black, fill=white] (16,18) rectangle (32,17); \node (li) at (24,17.5) {\scriptsize header checksum}; + \filldraw[thick,draw=black, fill=white] (0,17) rectangle (32,16); \node (mode) at (16,16.5) {\scriptsize source IP address}; + \filldraw[thick,draw=black, fill=white] (0,16) rectangle (32,15); \node (mode) at (16,15.5) {\scriptsize destination IP address}; + \draw[thick,draw=black, fill=white] (0,15) rectangle (31.5,14); + \draw[fill=white, draw=white] (31.4,14.96) rectangle (31.6,14.05); + \draw[thick] (31.5,14.97) decorate [decoration=saw] { -- (31.5,14.02)}; + \node (mode) at (16,14.5) {\scriptsize IP options (variable length)}; + \end{tikzpicture} +\end{document} diff --git a/images/ip-header.pdf b/images/ip-header.pdf new file mode 100644 index 0000000..2ad03c7 Binary files /dev/null and b/images/ip-header.pdf differ diff --git a/images/ip-header.svg b/images/ip-header.svg new file mode 100644 index 0000000..83c1600 --- /dev/null +++ b/images/ip-header.svg @@ -0,0 +1,2 @@ + +
IHL
IHL
Version
Version
ECN
ECN
DSCP
DSCP
15
[Not supported by viewer]
4
[Not supported by viewer]
8
[Not supported by viewer]
7
[Not supported by viewer]
Total length
Total length
23
[Not supported by viewer]
16
[Not supported by viewer]
31
[Not supported by viewer]
24
[Not supported by viewer]
Identification
Identification
Flags
Flags
Fragment offset
Fragment offset
Header checksum
Header checksum
Time to live
Time to live
Protocol
Protocol
Source address
Source address
Destination address
Destination address
0
[Not supported by viewer]
0
[Not supported by viewer]
8
[Not supported by viewer]
12
[Not supported by viewer]
16
[Not supported by viewer]
Options
Options
20 - 32
[Not supported by viewer]
Bit
Bit
Byte
Byte
\ No newline at end of file diff --git a/images/ip-header.xml b/images/ip-header.xml new file mode 100644 index 0000000..4ac4521 --- /dev/null +++ b/images/ip-header.xml @@ -0,0 +1 @@ +7VvbbqMwEP0aHisBJiR5bJJ2u9JeKqXafXbBIVYNzhqnafbr1wYTLiZtKhVDuqnUFsbGlzPH45kxWGAev3xhcLP+TkNELNcOXyywsFx34ozEXynY5wLPG+eCiOEwFzmlYIn/IiW0lXSLQ5TWKnJKCcebujCgSYICXpNBxuiuXm1FSb3XDYyQJlgGkOjS3zjkazUtd1zK7xCO1kXPjj/NSx5h8BQxuk1Uf5YLVtlPXhzDoi010XQNQ7qriMCNBeaMUp5fxS9zRCS0BWz5c7dHSg/jZijhpzzg5g88Q7JVU/96900Nje8LOLIJIfmIbYHZbo05Wm5gIEt3Qv9CtuYxEXeOuFzRhN/CGBOp+1+IhTCBQqw6Qoyjl6ODdQ4QCGYhGiPO9qKKesC1FWr7xv2uoiMlWlfU4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