当前位置: 首页 > news >正文

洛阳青峰做网站教育网站制作价格

洛阳青峰做网站,教育网站制作价格,怎么建个自己的网站,wordpress 评价插件参考了网上一些文章,最终发现wireshark的wiki写的比较好,以此为基准,说明TCP在连接和断开时的状态迁移过程。 全局的TCP连接和断开的状态变更如下图所示: TCP 3-way handshake We assume that both host (A) and server (B) sid…

参考了网上一些文章,最终发现wireshark的wiki写的比较好,以此为基准,说明TCP在连接和断开时的状态迁移过程。

全局的TCP连接和断开的状态变更如下图所示:

TCP 3-way handshake

We assume that both host (A) and server (B) side start from CLOSED status.

  1. The server process create a TCB [1] and use TCB prepares to accept the host's request. After TCB born the server change status to LISTEN.

  2. The host does the same thing, create a TCB and use this TCB to send request, set the "SYN=1" in the request header, and initates a arbitrary sequence number, seq=x. SYN paccket (which means SYN=1) can not take any data content, but it will consume a sequence number. After request sent, the host goes into SYN-SENT status.

  3. After receiving the host's request:

    1. i. If the server accept to this connection, it will send back a confirm response. In the response both SYN and ACK bits should be '1', and server side also initiates a SEQ number, seq=y. The server will send its sequence number within packet which is used to be acknowledged to the clinet's SYN packet. This packet can not take any data content either, but it consumes a sequence number. So in this packet seq=y, ack=x+1. And the server goes into SYN-RCVD status.

    2. ii. If the server rejects the connection, it just responses a RST packet to reset the connection.

  4. After the host received the server's response, it will send back also a confirm packet with ACK bit sets to '1' and seq=x+1, ack=y+1. [2]

After that, both side gose into ESTABLISHED status. This is what we called three-way handshake.

Example

Capture Example

3-way handshake.pcap

[1]. TCB---Transmission Control Block, something like PCB, it stores some significant info like, TCP connectio table, the pointer for the sending and receiving buffer, retransmission queue pointer, the current sequence number and acknowledge number and ext.

[2]. ACK packet could take data content, if not, this packet will not consume SYN number. So the sequence number of the confirm packet is seq=x+1. But in practice, at times, TCP 3-way handshake not only just initiates the connection, but also negotiate some very important parameters. MSS (maximum segment size) negotiation occurs in this steps.

TCP 4-times close

  1. Client send finish datagram to the server, indicated that client will close the transmission from client to server. This is called active close. (FIN=1, seq=u)

  2. Server acknowledged the FIN datagram. (ACK=1, seq=v, ack=u+1)

  3. Server contiues to transmit, if the server finishs the transmission it will close transmission from server to client. This is called passive close.(FIN=1, ACK=1, seq=w, ack=u+1)

  4. Client acknowledged the FIN datagram to the server.[1] (ACK=1, seq=u+1, ack=w+1)

[1]. After the ACK send, the client will not release the resource immediately, it will turn into TIME-WAIT status and wait 2-MSL (Maximum Segment Lifetime) time to release resource.

Example

Capture Example

4 times close.pcap

状态迁移图

http://www.dtcms.com/a/445455.html

相关文章:

  • 贵阳公司网站建立政务服务中心网站建设实施方案
  • 医院网站建设与管理ppt如何结合搜索检索与seo推广
  • 网站怎样做seo推广桂林网上服务
  • 玉环网站建设wordpress tag 去掉
  • 石家庄网站开发与优化华阴网络推广
  • 凤凰网站建设公司上海闵行是郊区吗
  • 如何做一起好的视频宣传自己的网站做视频网站需要什么空间吗
  • 宇宙设计网站推荐网站建设中企动力公司
  • 园区 网站建设策划方案瀑布流 wordpress
  • 甘家口网站建设网络营销推广方法视频
  • 建个普通网站多少钱佛山搜索引擎优化
  • 自助建站系统开发分销系统php开源
  • 南昌网站建设讯息上海网站se0优化
  • 做百度网站分录爱电影网站
  • 西安网站设计培训试听网站建设多少钱一年
  • 做网站要遵守的基本原则企业app怎么做
  • 武威市网站建设关于网站建设的书籍
  • 蓬莱专业做网站公司凡客精选带货达人
  • 如何让域名到网站北京建设网坡屋顶改造工程指标
  • 简约大气风格网站模板网站建设效果评估
  • 分析海报的网站怎么优化网站程序
  • 甘南北京网站建设网站建设先学什么
  • 郑州网站建设及优化wordpress导航框架
  • 19网站建设网站 国外服务器
  • 新乡网站开发赣州城市资讯
  • 网站 案例2022年最新国际新闻
  • 网站qq联系怎么做wordpress邮箱插件漏洞
  • 外贸网站建设服务平台企业网站建设一条龙多少钱
  • 平台网站做等级保护测评成都网站营销seo多少费用
  • 电脑系统下载官方网站怎样推广公司的网站