1

I want to create a flowchart for network communication between user and server similar to example below: Example network communication flowchart

I've searched for similar flowcharts on TikZ examples page, but only things that seems someway similar were matrix charts. At the end matrix charts don't look very similar to the end effect I want to achieve.

  • 1
    Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE). This isn't a "Please do my work for me" site! What do you have so far? Try to create ... – Bobyandbob Aug 28 '17 at 14:01
  • You can use msc package (msc: message sequence charts). You'll have to use xelatex. An example: https://tex.stackexchange.com/a/54390/1952 – Ignasi Aug 29 '17 at 08:48
  • Look at the tutorials at the start of the TikZ manual. It is just a couple of rectangles and a few arrows, after all. Nothing complicated. – cfr Aug 29 '17 at 13:10

1 Answers1

5

Code could be prettier, but the outcome is what you want.

enter image description here

\documentclass[border=2cm,tikz]{standalone}


\begin{document}

\begin{tikzpicture}[
%\tikzset{every picture/.style=thick}
every node/.append style={very thick,rounded corners=0.1mm}
]

\node[draw,rectangle] (User) at (0,0) {User};

\node[draw,rectangle] (Server) at (3,0) {Server};

\node[draw=blue!50,rectangle,thick] (Network) at (0,-1) {Network Attach};

\draw [very thick] (User)  --  (Network)--(0,-5);
\draw [very thick] (Server)--++(0,-5);

\draw [->,very thick] (0,-2)--node [auto] {HTTP GET}++(3,0);
\draw [<-,very thick] (0,-2.5)--node [auto] {200 OK}++(3,0);

\draw [->,very thick] (0,-3.5)--node [auto] {HTTP POST}++(3,0);
\draw [<-,very thick] (0,-4)--node [auto] {200 OK}++(3,0);

\end{tikzpicture}

\end{document}
JulianWgs
  • 674