前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >HTTPS和TCP的关系

HTTPS和TCP的关系

作者头像
Jerry Wang
发布2019-05-31 09:30:11
1.8K0
发布2019-05-31 09:30:11
举报

看stackoverflow上的这个讨论: https://serverfault.com/questions/98951/does-https-use-tcp-or-udp

HTTPS到底是基于TCP还是UDP?

clipboard1
clipboard1

获得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。

clipboard2
clipboard2

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

clipboard3
clipboard3
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年03月12日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
SSL 证书
腾讯云 SSL 证书(SSL Certificates)为您提供 SSL 证书的申请、管理、部署等服务,为您提供一站式 HTTPS 解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档