什么是互联网协议及为何要有互联网协议:
连接两台计算机的统一标准就是互联网协议,互联网的本质就是一系列的协议,总称为‘互联网协议’(Internet Protocol Suite).
互联网协议是为了定义计算机如何接入 Internet,以及接入 Internet 的计算机通信的标准。
OSI 五层模型:
用户上网流程:
(1)本机自动获取获取 IP,子网掩码,网关 IP,DNS 的 IP。
(2)打开浏览器输入网址。
(3)DNS 协议(基于 UDP 协议)。
(4)HTTP 端口
(5)TCP 协议
(6)IP 协议
(7)以太网协议
(8)服务器端响应。