HTTPS和TCP的关系
看stackoverflow上的這個討論:
https://serverfault.com/questions/98951/does-https-use-tcp-or-udp
HTTPS到底是基于TCP還是UDP?
獲得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,即流傳輸協(xié)議。通常是TCP,也可以是SCTP。
Most SSL implementations expose it as SSL socket, so it implies TCP.
大多數(shù)SSL的實現(xiàn)將其通過SSL套接字暴露,因此基于TCP。
在windows電腦,查看目錄C:\Windows\System32\drivers\etc下的services文件,能知道每個服務(wù)對應(yīng)是用TCP還是UDP實現(xiàn)的:
要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的HTTPS和TCP的关系的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: React Native应用如何想访问H
- 下一篇: 使用node https module创