Skip to content

Commit

Permalink
Fixed typos in tikz figure
Browse files Browse the repository at this point in the history
  • Loading branch information
obonaventure committed Dec 4, 2019
1 parent ec13d78 commit f43fb7b
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions exercises/routing-protocols.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1235,36 +1235,35 @@ d. What are the BGP messages that will be exchanged when the link between ``AS3`

4. The network below contains nine ASes with one host per AS. Assuming that ``AS1`` announces prefix `p1` and that ``AS2`` announces prefix `p2`.

.. tikz:: A simple Internet
:libs: shapes, positioning, matrix, arrows, shapes

\tikzstyle{arrow} = [thick,->,>=stealth]
\tikzset{router/.style = {rectangle, draw, text centered, minimum height=2em}, }
\tikzset{host/.style = {circle, draw, text centered, minimum height=2em}, }
\tikzset{ftable/.style={rectangle, dashed, draw} }
\tikzset{as/.style={cloud, draw,cloud puffs=10,cloud puff arc=120, aspect=2, minimum height=1em, minimum width=1em} }
\tikzset{state/.style={circle, draw, minimum height=2cm, minimum width=2cm} }

\node[as] (AS2) {AS2};
\node[as, right of=AS2] (AS3) {AS3};
\node[as, above of=AS3] (AS4) {AS4};
\node[as, right of=AS3] (AS6) {AS6};
\node[as, above of=AS6] (AS5) {AS5};
\node[as, right of=AS6] (AS8) {AS8};
\node[as, right of=AS5] (AS7) {AS7};
\node[as, right of=AS8] (AS1) {AS1};
% customer provider
\draw[->, line width=1.5mm]
(AS2) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS3)
(AS3) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS4)
(AS4) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS5)
(AS7) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS5)
(AS5) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS6)
(AS1) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS8);
\path[draw, line width= 1 mm]
(AS3) edge node [sloped, midway, above] {\textbf{=}} (AS6)
(AS6) edge node [sloped, midway, above] {\textbf{=}} (AS8)
(AS8) edge node [sloped, midway, above] {\textbf{=}} (AS7);
.. tikz:: A simple Internet
:libs: shapes, positioning, matrix, arrows, shapes

\tikzstyle{arrow} = [thick,->,>=stealth]
\tikzset{router/.style = {rectangle, draw, text centered, minimum height=2em}, }
\tikzset{host/.style = {circle, draw, text centered, minimum height=2em}, }
\tikzset{ftable/.style={rectangle, dashed, draw} }
\tikzset{as/.style={cloud, draw,cloud puffs=10,cloud puff arc=120, aspect=2, minimum height=1em, minimum width=1em} }

\node[as] (AS2) {AS2};
\node[as, right=of AS2] (AS3) {AS3};
\node[as, above=of AS3] (AS4) {AS4};
\node[as, right=of AS3] (AS6) {AS6};
\node[as, above=of AS6] (AS5) {AS5};
\node[as, right=of AS6] (AS8) {AS8};
\node[as, right=of AS5] (AS7) {AS7};
\node[as, right=of AS8] (AS1) {AS1};
% customer provider
\draw[->, line width=1.5mm]
(AS2) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS3)
(AS3) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS4)
(AS4) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS5)
(AS7) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS5)
(AS5) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS6)
(AS1) edge node [pos=0.5, sloped, above] {\texttt{\$}} (AS8);
\path[draw, line width= 1 mm]
(AS3) edge node [sloped, midway, above] {\textbf{=}} (AS6)
(AS6) edge node [sloped, midway, above] {\textbf{=}} (AS8)
(AS8) edge node [sloped, midway, above] {\textbf{=}} (AS7);


a. What is the Loc-RIB of ``AS6`` for prefix `p1` ? Indicate which is the best route towards this prefix.
Expand All @@ -1276,15 +1275,16 @@ d. What are the BGP messages that will be exchanged when the link between ``AS3`

5. Let us now consider another example, also implemented using an IPMininet_ script. The network contains eight ASes with one host per AS. This small Internet is shown below and the script is available from :download:`/exercises/ipmininet_scripts/ebgp-bug-3.py`.

.. tikz:: A simple Internet

.. tikz:: A simple Internet
:libs: shapes, positioning, matrix, arrows, shapes

\tikzstyle{arrow} = [thick,->,>=stealth]
\tikzset{router/.style = {rectangle, draw, text centered, minimum height=2em}, }
\tikzset{host/.style = {circle, draw, text centered, minimum height=2em}, }
\tikzset{ftable/.style={rectangle, dashed, draw} }
\tikzset{as/.style={cloud, draw,cloud puffs=10,cloud puff arc=120, aspect=2, minimum height=1em, minimum width=1em} }

\node[as] (AS1) {AS1};
\node[as, right=of AS1] (AS2) {AS2};
\node[as, above=of AS2] (AS3) {AS3};
Expand Down

0 comments on commit f43fb7b

Please sign in to comment.