博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

文章分类 -  HTTP TCP TLS wireshark

摘要:http://blog.csdn.net/yusiguyuan/article/details/21439719 http://blog.csdn.net/yusiguyuan/article/details/21390177 先明确一个概念:每个TCP socket在内核中都有一个发送缓冲区和一个 阅读全文

posted @ 2016-04-07 14:45 bw_0927 阅读(10403) 评论(0) 推荐(3)

摘要:http://blog.csdn.net/ctthuangcheng/article/details/24981209问题聚焦: 本节从如下四个方面讨论TCP协议: TCP头部信息:指定通信的源端端口号、目的端端口号、管理TCP连接,控制两个方向的数据流 TCP状态转移过程:TCP连接的任意一... 阅读全文

posted @ 2015-05-23 11:26 bw_0927 阅读(1127) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/ctthuangcheng/article/details/249757911 IP服务特点IP协议是TCP/IP协议族的动力,它为上层协议提供无状态、无连接、不可靠的服务。无状态:IP通信双方不同步传输数据的状态信息,因此IP数据包的发送、传输和接收都是无... 阅读全文

posted @ 2015-05-23 10:54 bw_0927 阅读(250) 评论(0) 推荐(0)

摘要:1 TCP/IP协议族体系结构数据链路层: 职责:实现网卡接口的网络驱动程序,一处理数据在物理媒介(如以太网、令牌环等)上的传输。 常用协议:ARP协议(地址解析协议),RARP协议(逆地址解析协议)——实现了IP地址和机器物理地址之间的相互转换。 寻址:使用物理地址(MAC地址)寻址一台机器。因此... 阅读全文

posted @ 2015-05-23 10:27 bw_0927 阅读(284) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/dashoumeixi/article/details/90676087 http://blog.csdn.net/jnu_simba/article/details/9042467 这两天看csdn有一些关于socket粘包,socket缓冲区设置的问题 阅读全文

posted @ 2015-03-02 14:22 bw_0927 阅读(544) 评论(0) 推荐(0)

摘要:http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3The purpose of the 100 (Continue) status (see section10.1.1) is to allow a client that is sending a request message with a request body to determine if the origin server is willing to accept the request (based on the request headers) befo 阅读全文

posted @ 2014-02-10 16:14 bw_0927 阅读(275) 评论(0) 推荐(0)

摘要:http://blog.sina.com.cn/s/blog_56d8ea900100bzpr.html 什么是对称加密技术? 对称加密采用了对称密码编码技术,它的特点是文件加密和解密使用相同的密钥,即加密密钥也可以用作解密密钥,这种方法在密码学中叫做对称加密算法,对称加密算法使用起来简单快捷,密钥 阅读全文

posted @ 2013-12-13 09:50 bw_0927 阅读(251) 评论(0) 推荐(0)

摘要:http://www.albertx.mx/blog/https-connections-browsers/This is the first of a series of posts about HTTP/S that you will find in this blog during the next days. I will explain technical aspects about these protocols, how they work, how to test and validate connections, sites and certificates. I will 阅读全文

posted @ 2013-12-12 17:01 bw_0927 阅读(338) 评论(0) 推荐(0)

摘要:http://www.albertx.mx/blog/https-handshake/In theprevious postI talked about how web browsers connect to the server and how a negotiation is initialized between server and client to establish a secure connection when the HTTPS protocol is used.In this post I wil explain the SSL/TLS protocol and how 阅读全文

posted @ 2013-12-12 16:41 bw_0927 阅读(630) 评论(0) 推荐(0)

摘要:http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html?repost!The First Few Milliseconds of an HTTPS ConnectionConvinced from spending hours readingrave reviews, Bob eagerly clicked "Proceed to Checkout" for his gallon ofTuscan Whole Milkand...Whoa! What just happened?In the 阅读全文

posted @ 2013-12-12 16:27 bw_0927 阅读(445) 评论(0) 推荐(0)

摘要:https://www.cnblogs.com/zhjh256/p/9490588.html http://ahuaxuan.iteye.com/blog/657511 /* * @author: ahuaxuan * @date: 2010-4-30 */ 最近遇到的一个关于socket.clos 阅读全文

posted @ 2013-12-06 16:06 bw_0927 阅读(1388) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/sunnydogzhou/article/details/6572071 http://blog.csdn.net/feiyinzilgd/article/details/5894446 刚刚开始看TCP socket的4次握手终止流程图的时候,对于最后的T 阅读全文

posted @ 2013-12-06 10:09 bw_0927 阅读(494) 评论(0) 推荐(1)

摘要:http://blog.csdn.net/c0c0cf/article/details/8677768最初A,B主机都处于CLOSE状态。B的TCP服务器进程先创建传输控制块TCB,准备接受客户端进程的连接请求。然后服务器进程就处于LISTEN状态,等待客户的连接请求,如有,即做出响应。A的TCP客户端进程也首先创建传输控制块TCB,然后向B发出连接请求报文,这时首部中的同步位SYN=1,同时选择一个初始序号seq=x。TCP规定,SYN报文段(即SYN=1的报文段)不能携带数据,但要消耗一个序号。这时TCP客户端进入SYN-SEND(同步以发送)状态。B收到连接请求报文后,如同意建立连接,则 阅读全文

posted @ 2013-12-05 19:36 bw_0927 阅读(294) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/vamei/archive/2012/12/16/2812188.html在TCP协议与"流"通信中,我们概念性的讲解了TCP通信的方式。可以看到,TCP通信最重要的特征是:有序(ordering)和可靠(reliable)。有序是通过将文本流分段并编号实现的。可靠是通过ACK回复和重复发送(retransmission)实现的。这一篇文章将引入TCP连接(connection)的概念。TCP连接网络层在逻辑上提供了端口的概念。一个IP地址可以有多个端口。一个具体的端口需要IP地址和端口号共同确定(我们记为IP:port的形式) 阅读全文

posted @ 2013-12-05 19:33 bw_0927 阅读(727) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/hnrainll/archive/2011/10/14/2212415.html CLOSED:初始状态,表示TCP连接是“关闭着的”或“未打开的”。 LISTEN :表示服务器端的某个SOCKET处于监听状态,可以接受客户端的连接。 SYN_RCVD  阅读全文

posted @ 2013-12-05 16:18 bw_0927 阅读(277) 评论(0) 推荐(0)

摘要:http://www.inetdaemon.com/tutorials/internet/tcp/data_transfer.shtmlTransmission Control Protocol is aTransport Layerhost-to-host protocol that providesreliable,connection-orientedcommunication overIPnetworks.Transmission Control Protocol CharacteristicsTCP Data TransferTCP ReliabilityTCP Flow Contr 阅读全文

posted @ 2013-12-05 16:10 bw_0927 阅读(317) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/rootq/articles/1377355.html在TCP层,有个FLAGS字段,这个字段有以下几个标识:SYN, FIN, ACK, PSH, RST, URG. 其中,对于我们日常的分析有用的就是前面的五个字段。 它们的含义是: SYN表示要求建立连接, FIN表示要求关闭连接, ACK表示响应, PSH表示有 DATA数据传输, RST表示连接重置。 其中,ACK是可能与SYN,FIN等同时使用的,比如SYN和ACK可能同时为1,它表示的就是建立连接之后的响应,如果只是单个的一个SYN,它表示的只是要求建立连接。 TCP的几次握手就是.. 阅读全文

posted @ 2013-12-05 14:59 bw_0927 阅读(194) 评论(0) 推荐(0)

摘要:TCP segment of a reassembled PDUTCP segment of a reassembled PDU是什么意思,其实主机响应一个查询或者命令时如果要回应很多数据(信息)而这些数据超出了TCP的最大MSS时,主机会通过发送多个数据包来传送这些数据(注意:这些包并未被分片)。对wireshark来说这些对相应同一个查询命令的数据包被标记了“TCP segment of a reassembled PDU”问题,wireshark如何识别多个数据包是对同一个查询数据包的响应? wireshark是根据sequence number来识别,这些数据包ACK number是相 阅读全文

posted @ 2013-12-05 14:09 bw_0927 阅读(327) 评论(0) 推荐(0)