Template_These_MathSTIC/figures/tikzpicture/osi_layers_stdl.tex
2022-12-02 19:18:41 +01:00

82 lines
1.7 KiB
TeX

%%%%%%%%%%%%
%
% @file: osi_layers_stdl.tex
% @author: Camille Monière
% @year: 2022
% @license: CC-BY 4.0
%
% This file is licensed under the Creative Commons Attribution 4.0 International License.
% To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons,
% PO Box 1866, Mountain View, CA 94042, USA.
%
%%%%%%%%%%%%
\documentclass[tikz,border=0cm,dvipsnames,x11names,rgb]{standalone}
\input{../stdl_preamble.tex}
\begin{document}
\pgfdeclarelayer{background}
\pgfsetlayers{background, main}
\begin{tikzpicture}[
every node/.style={font=\huge}
]
\node [
draw,
fill=blue!00,
minimum width = 5cm,
minimum height = 1cm] (lv1) at (0,0) {Physical};
\node [
draw,
fill=blue!05,
minimum width = 5cm,
minimum height = 1cm,
above = 2mm of lv1
] (lv2) {Data Link};
\node [
draw,
fill=blue!10,
minimum width = 5cm,
minimum height = 1cm,
above = 2mm of lv2
] (lv3) {Network};
\node [
draw,
fill=blue!15,
minimum width = 5cm,
minimum height = 1cm,
above = 2mm of lv3
] (lv4) {Transport};
\node [
draw,
fill=blue!20,
minimum width = 5cm,
minimum height = 1cm,
above = 2mm of lv4
] (lv5) {Session};
\node [
draw,
fill=blue!25,
minimum width = 5cm,
minimum height = 1cm,
above = 2mm of lv5
] (lv6) {Presentation};
\node [
draw,
fill=blue!30,
minimum width = 5cm,
minimum height = 1cm,
above = 2mm of lv6
] (lv7) {Application};
\foreach \i in {1,2,3,4,5,6,7} {
\node [right = .1mm of lv\i] (lv\i_lb) {Layer \i};
}
\node [draw=red, ultra thick, inner sep=1mm, fit = (lv1) (lv1_lb) ] {};
\end{tikzpicture}
\end{document}