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

怎么给网站 做排名凡科网站建站教程

怎么给网站 做排名,凡科网站建站教程,阳春做网站,哪网站建设好参考了网上一些文章,最终发现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/wzjs/233626.html

相关文章:

  • 购物网站建设实战教程答案最常用的网页制作软件
  • 设计培训网页班百度推广seo
  • 巴中网站制作总排行榜总点击榜总收藏榜
  • 昆明行业网站建设济南新站seo外包
  • 鞍山做网站公司seo营销策略
  • 盐城市建设工程网站注册网站免费注册
  • 网站建设流量入口外贸网站推广方法之一
  • 静态网站怎么做有效页西安百度推广外包
  • 个人网站web模板工具站seo
  • 服装批发网站建设求职seo服务
  • wordpress软件站主题免费网站怎么申请
  • 毕业设计代做网站靠谱吗发布
  • 曲沃县做网站公司识万物扫一扫
  • 重庆网站建设狐灵传媒seo工作内容和薪资
  • vs做网站案例厦门seo推广公司
  • 企业网站案列福州百度关键词排名
  • 做电影网站要不要收费郑州seo博客
  • iis7架设网站2345电脑版网址导航
  • 网站代码特效广告百度推广点击软件
  • wordpress 做音乐网站纯手工seo公司
  • 做男装海报的素材网站投稿网
  • 网站百度收录秒收方法百度怎么做推广
  • 做彩票网站如何加入广告联盟赚钱
  • 新建网站需要多少钱郑州网站关键词优化外包
  • 服务器租用价格网站seo优化多少钱
  • 长春网站建设那家好seo推广培训资料
  • 网站备案相机今日军事新闻最新消息新闻
  • 自己做网站不用WordPress百度招商加盟
  • 网站群建设指导意见最新病毒感染
  • 北京网站建设多少钱seo和sem推广