HTTPS和TCP的关系

简介: HTTPS和TCP的关系

看stackoverflow上的这个讨论:

https://serverfault.com/questions/98951/does-https-use-tcp-or-udp

HTTPS到底是基于TCP还是UDP?


image.png

获得38个赞的答案:


HTTPS can run over any reliable stream transport protocol. Normally that’s TCP, but it could also be SCTP. It is NOT expected to run over UDP, which is an unreliable datagram protocol (in fact, while that’s not its official name, that’s a good way to remember what it is).

The IANA assignment for UDP is historical; at the time, nearly every protocol was assigned both the TCP and UDP port numbers, even if it was expected that it would only ever use one. There has been discussion of merging the port number registries, and only ever assigning one port to one protocol from here on. That is to make it easier to deploy future transport protocols that would otherwise need their own registries. I’m not aware of how that discussion concluded.

HTTPS可以使用任何可靠的stream transport,即流传输协议。通常是TCP,也可以是SCTP。


Most SSL implementations expose it as SSL socket, so it implies TCP.


大多数SSL的实现将其通过SSL套接字暴露,因此基于TCP。


image.png


在windows电脑,查看目录C:\Windows\System32\drivers\etc下的services文件,能知道每个服务对应是用TCP还是UDP实现的:

image.png

相关文章
|
3月前
|
缓存 网络协议 安全
计算机网络 TCP、RPC、GRPC、HTTP 对比
【1月更文挑战第1天】计算机网络 TCP、RPC、GRPC、HTTP 对比
|
7月前
|
网络协议 算法 安全
Android 面试必备 - 计算机网络基本知识(TCP,UDP,Http,https)
Android 面试必备 - 计算机网络基本知识(TCP,UDP,Http,https)
|
3月前
|
Web App开发 网络协议 Linux
Linux C/C++ 开发(学习笔记十 ):实现http请求器(TCP客户端)
Linux C/C++ 开发(学习笔记十 ):实现http请求器(TCP客户端)
49 0
|
3月前
|
网络协议 安全 API
计算机网络 TCP、RPC、GRPC、HTTP 总结
【1月更文挑战第1天】计算机网络 TCP、RPC、GRPC、HTTP 总结
|
4月前
|
网络协议 JavaScript Unix
TCP实现HTTP服务
TCP实现HTTP服务
29 0
|
4月前
|
缓存 网络协议 安全
tcp、http、rpc和grpc得一些个人总结
tcp、http、rpc和grpc得一些个人总结
77 0
|
4月前
|
网络协议
HTTP基于TCP还是UDP
HTTP基于TCP还是UDP
|
4月前
|
网络协议
百度搜索:蓝易云【TCP和HTTP的区别详解】
综上所述,TCP和HTTP是不同层级的协议,TCP负责在网络中可靠地传输数据,而HTTP则使用TCP作为底层传输协议,在应用层上实现网页浏览和数据通信。它们在功能、连接性、数据传输方式、状态保持、端口号和应用范围等方面有所区别。
123 1
|
5月前
|
缓存 网络协议 算法
网络基本功:http报文及TCP拥塞控制机制
网络基本功:http报文及TCP拥塞控制机制
|
6月前
|
网络协议 网络性能优化 数据库
华为18级工程师用200张图带你一次性搞懂HTTP/TCP/IP网络协议
互联网世界中,网络协议的重要性不言而喻。很多人都知道,网络协议中的五层模型或者七层模型,这些在操作系统中,那都是“必考题”。上学的时候,无论是死记硬背,还是各种小抄,总得把下面这个图记下来。踏入工作,走进 web 开发“不归路”,发现还是不能落下它。 计算机网络相关的知识点是在面试过程中开发者经常被问到。当然可能这一块知识点与前面的操作系统、数据库相比较比重可能没那么高。但是优秀的你,一定是想做好充分的准备吧!