From 28c867e65f9ee04d8966bb539107639b0474c39e Mon Sep 17 00:00:00 2001 From: Xphi Date: Thu, 25 Feb 2021 16:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86TCP=E6=8A=A5=E6=96=87=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=9B=BE=E6=9B=BF=E6=8D=A2=E4=B8=BAASCII=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/ch_wireshark/sec_tcp.tex | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/data/ch_wireshark/sec_tcp.tex b/data/ch_wireshark/sec_tcp.tex index 8dfea35..dac387c 100644 --- a/data/ch_wireshark/sec_tcp.tex +++ b/data/ch_wireshark/sec_tcp.tex @@ -52,9 +52,31 @@ TCP的连接管理、差错控制、流量控制和拥塞控制的原理。 TCP 报文段结构如图\ref{fig:c:wireshark_TCP-structure}所示, 采用20字节的报文段头并有最长40字节的可选项。 +\small \begin{figure}[!ht] \centering - \includegraphics[width=10cm]{TCP-structure} + \begin{code}[text] + 0 1 2 3 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | Source Port | Destination Port | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | Sequence Number | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | Acknowledgment Number | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | Data | |U|A|P|R|S|F| | + | Offset| Reserved |R|C|S|S|Y|I| Window | + | | |G|K|H|T|N|N| | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | Checksum | Urgent Pointer | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | Options | Padding | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | data | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + \end{code} +% \includegraphics[width=10cm]{TCP-structure} \caption{TCP报文段结构标意图} \label{fig:c:wireshark_TCP-structure} \end{figure}