2022-2023/SNT/03_Internet/2P_Protocole.tex

149 lines
4.4 KiB
TeX
Executable File

\documentclass[14pt,xcolor=table]{classPres}
\usepackage{booktabs}
\author{}
\title{Internet -- étape 2 \\ Faire communiquer les outils numériques \\ Établir un protocole}
\date{janvier 2023}
\begin{document}
\frame{\titlepage}
\begin{frame}{Un protocole numérique}
\begin{itemize}
\item Convention pour pouvoir communiquer
\item Numérique: échange de 1 et 0
\end{itemize}
\end{frame}
\begin{frame}{Protocole d'échange d'un mot à travers la classe}
Données échangeable: 0 et 1
\begin{center}
\tiny
\begin{tabular}{|*{2}{m{0.4\linewidth}|}}
\hline
Bit 0 & Bit 1 \\
\hline
Interrupteur ouvert & Interrupteur fermé \\
\hline
Feuille recto & Feuille verso \\
\hline
\includegraphics[scale=0.1]{./fig/lampe_eteind.png} & \includegraphics[scale=0.1]{./fig/lampe_allumee.png}\\
\hline
Pas de courant
\begin{tikzpicture}[baseline=(a.north), xscale=0.5, yscale=1]
\tkzInit[xmin=0,xmax=5,xstep=1,
ymin=0,ymax=5,ystep=5]
\tkzGrid
\tkzAxeXY
\tkzFct[domain=0:5,color=red,very thick]%
{0};
\end{tikzpicture}
&
Courant qui passe
\begin{tikzpicture}[baseline=(a.north), xscale=0.5, yscale=1]
\tkzInit[xmin=0,xmax=5,xstep=1,
ymin=0,ymax=5,ystep=5]
\tkzGrid
\tkzAxeXY
\tkzFct[domain=0:5,color=red,very thick]%
{5};
\end{tikzpicture}\\
\hline
\end{tabular}
\end{center}
\pause
Interdiction d'échanger autrement!
\end{frame}
\begin{frame}{Table de codage}
\begin{center}
\tiny
\setlength{\tabcolsep}{2pt}
\begin{tabular}{|c|*{13}{c|}}
\hline
Caractère & a & b & c & d & e & f & g & h & i & j & k & l & m \\
\hline
Codage & 00000 & 00001 & 00010 & 00011 & 00100 & 00101 & 00110 & 00111 & 01000 & 01001 & 01010 & 01011 & 01100 \\
\hline
\hline
Caractère & n & o & p & q & r & s & t & u & v & w & x & y & z\\
\hline
Codage & 01101 & 01110 & 01111 & 10000 & 10001 & 10010 & 10011 & 10100 & 10101 & 10110 & 10111 & 11000 & 11001 \\
\hline
\hline
Caractère & & & & & & & & & & & & & \\
\hline
Codage & & & & & & & & & & & & &\\
\hline
\end{tabular}
\end{center}
Étapes:
\begin{itemize}
\item Encoder un mot.
\item L'envoyer au destinataire.
\item Décoder le mot.
\item Faire une liste des difficultés rencontrées lors de l'échange.
\end{itemize}
\end{frame}
\begin{frame}{Problèmes - solutions}
Vitesse de transmission: un bit à chaque "bip"
\vfill
Trame d'un message pour 4 lettres
\vfill
\footnotesize
\begin{tabular}{|c|*{8}{c|}}
\hline
Information & Start & & & & & Parité & Stop \\
\hline
Signal & 1 & \_\;\_\;\_\;\_ & \_\;\_\;\_\;\_ & \_\;\_\;\_\;\_ & \_\;\_\;\_\;\_ & \_& 1 \\
\hline
\end{tabular}
\vfill
\end{frame}
\begin{frame}{Envoyer un message}
Table de codage
\vfill
{\tiny
\setlength{\tabcolsep}{2pt}
\begin{tabular}{|c|*{13}{c|}}
\hline
Caractère & a & b & c & d & e & f & g & h & i & j & k & l & m \\
\hline
Codage & 00000 & 00001 & 00010 & 00011 & 00100 & 00101 & 00110 & 00111 & 01000 & 01001 & 01010 & 01011 & 01100 \\
\hline
\hline
Caractère & n & o & p & q & r & s & t & u & v & w & x & y & z\\
\hline
Codage & 01101 & 01110 & 01111 & 10000 & 10001 & 10010 & 10011 & 10100 & 10101 & 10110 & 10111 & 11000 & 11001 \\
\hline
\hline
Caractère & & & & & & & & & & & & & \\
\hline
Codage & & & & & & & & & & & & &\\
\hline
\end{tabular}
}
\vfill
Trame d'un message (paquet de 4 lettres)
\vfill
{\tiny
\begin{tabular}{|c|*{8}{c|}}
\hline
Information & Start & Lettre ... & Lettre ...& Lettre ... & Lettre ... & Parité & Stop \\
\hline
Signal & 1 & \_\;\_\;\_\;\_\;\_ & \_\;\_\;\_\;\_\;\_ & \_\;\_\;\_\;\_\;\_ & \_\;\_\;\_\;\_\;\_ & \_& 1 \\
\hline
\end{tabular}
}
\vfill
\end{frame}
\end{document}