Network infrastructure knowledge points excuse

Enter the url address in the browser -> Show home page of the process

(1) DNS parsing
(2) TCP connections
(3) sends an HTTP request
(4) server processes the request and returns the HTTP packet
(5) the browser parses rendering the page
(6) connected to the end

status code:

(1) * 1: The request is being processed
(2) ** 2: The request is processed normally
(3) * 3: additional operations required to complete the request
(4) 4 **: the server to process the request
(5) 5 * *: server processes the request error

Long and short connection HTTP connection

Short link: HTTP1.0默认的连接方式,客户端和服务端每进行一次HTTP操作都要建立一次连接
long connection:HTTP1.1默认的连接方式,客户端和服务器端之间用于传输的HTTP数据的TCP连接不会关闭,并且会有一个设定好的时间值去关闭(附:需要在响应头加上:Connection:keep-alive)

HTTP1.0 and the difference HTTP1.1

(1)HTTP1.0默认使用短连接,而HTTP默认使用长连接
(2)HTTP1.1新增了24个错误状态响应码,如409(冲突),410(已删除)
(3)HTTP完善了缓存处理机制
(4)HTTP1.0中存在带宽浪费的现象,如请求一部分资源,服务器把全部资源传输过来;HTTP1.1就不会这样子,完善了资源的利用率。

The difference between URI and URL

(1)URI是资源标志符,唯一标识一个资源 
(2)URL是资源定位符,提供该资源的路径,是具体的URI,不仅标识资源,而且提供该资源的定位信息

The difference between HTTP and HTTPS

(1) HTTP是应用层的协议,运行于TCP协议之上;HTTPS则是运行于SSL/TLS(安全套接层/传输层安全)之上,保证了分组的安全性。
(2) 默认端口不同,HTTP是80端口,HTTPS默认443端口。
(3) symmetric encryption and asymmetric encryption :( symmetric encryption) 密钥只有一个,加密解密同一个密码,方便效率高不安全(asymmetric encryption)密钥成对出现(公钥和私钥不能相互推算),加密解密使用不同的密钥,安全性高

Guess you like

Origin www.cnblogs.com/chengxiaodi/p/11324655.html