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

智慧团建网站什么时候维护好企业管理软件app

智慧团建网站什么时候维护好,企业管理软件app,做团购网站需要什么资质,企业网站建设技巧参考了网上一些文章,最终发现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/432889.html

相关文章:

  • 深圳高端网站建设网页设计南昌it制作电商网站的公司
  • 学网站开发有什么好处网页升级紧急通知网页
  • 网站备案行业怎么知道网站是哪个公司做的
  • 网站建设论坛报告手机怎么创网站免费下载
  • 阜阳网站建设云平台链接网站某一页面如何做
  • 门户网站营销泉州市住房和城乡建设网站
  • 帮人网站开发维护违法上海网站建设代码
  • 松江泗泾网站建设企业页面
  • 电商网站界面规范网页下载网站
  • 做网站什么域名好做网站的外包公司
  • 信息网站怎么做企业网站搭建步骤
  • app手机网站课程培训网站建设
  • 设计师个人网站江门鹤山最新消息新闻
  • 东莞服务公司网站建设网站建设王滨1983
  • 网站范例牙科网站开发
  • 济南网站优化seo讯杰网站建设
  • 东莞专业网站建站设计自动点击竞价广告软件
  • 西昌有哪些做网站的公司如何建设网站挣钱
  • 可信网站认证图标企业安全文化建设中的安全承诺
  • 安徽 网站信息内容建设wordpress 预约主题
  • 曲靖高端网站制作分工做网站如何
  • 网站地图样式淘宝网那样的网站模板
  • 用动易建设网站个人备案的网站
  • 创网通信科技有限公司百度关键词优化培训
  • 宁波网站建设定制开发怎么建立一个网站网址
  • 怎么设置iis默认网站搭建一个视频网站多少钱
  • 网站框架代码wordpress外网访问不
  • 矩阵转置与压缩
  • 高校网站模板第二章 营销型网站建设测验
  • 网站商城方案提供电商网站建设