Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, Header IPv4 in Portuguese #1

Open
ronyjah opened this issue Jun 22, 2019 · 0 comments
Open

Hi, Header IPv4 in Portuguese #1

ronyjah opened this issue Jun 22, 2019 · 0 comments

Comments

@ronyjah
Copy link

ronyjah commented Jun 22, 2019

\begin{figure}[h!]
\begin{center}
\caption{Cabeçalho do quadro IPv4}
\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 versão};
\filldraw[thick,draw=black, fill=white] (4,20) rectangle (8,19); \node (mode) at (6,19.68) {\tiny comp. Cabeçalho};\node (mode) at (6,19.25) {\tiny com opções};
\draw[thick, draw=black, fill=white] (8,20) rectangle (16,19); \node (stratum) at (11.5,19.5) {\scriptsize Tipo de serviço (TOS)};
\draw[thick, draw=black, fill=white] (16,20) rectangle (32,19); \node (li) at (24,19.5) {\scriptsize Comprimento do pacote completo};
\filldraw[thick,draw=black, fill=white] (0,19) rectangle (16,18); \node (mode) at (8,18.5) {\scriptsize Identificação};
\draw[thick, draw=black] (16,19) rectangle (19,18); \filldraw[white] (16.5,18.43) rectangle (19,18.88); \node 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 Offset do fragmento};
\filldraw[thick,draw=black, fill=white] (0,18) rectangle (8,17); \node (mode) at (4,17.5) {\scriptsize Tempo de vida (TTL)};
\draw[thick, draw=black, fill=white] (8,18) rectangle (16,17); \node (stratum) at (11.5,17.5) {\scriptsize Protocolo};
\draw[thick, draw=black, fill=white] (16,18) rectangle (32,17); \node (li) at (24,17.5) {\scriptsize cabeçalho do checksum};
\filldraw[thick,draw=black, fill=white] (0,17) rectangle (32,16); \node (mode) at (16,16.5) {\scriptsize Endereço IP de origem};
\filldraw[thick,draw=black, fill=white] (0,16) rectangle (32,15); \node (mode) at (16,15.5) {\scriptsize Endereço IP de destino};
\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 Opções IP (Tamanho variável)};
\end{tikzpicture}
\captionof*{figure}{Fonte: \citeonline{tikzrepo}}
\end{center}
\end{figure}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant