| |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
-> 网络协议 -> Computer Network Questions -> 正文阅读 |
|
[网络协议]Computer Network Questions |
The TCP sender does not have any initial estimate of the round-trip time (RTT). Starting with a
conservative retransmission timeout (RTO) of several seconds prevents the excessive
retransmissions that would result from using an RTO that is smaller than the actual RTT.
TCP is a bi-directional communication protocol, which means either end ought to be able to send data reliably.
Both parties need to establish an Initial Sequence Number (ISN), and both parties need to acknowledge the
other's ISN. Thus a two-way handshake is required in each direction as follows:
1) Alice picks an ISN and SYNchronises it with Bob.
2) Bob ACKnowledges the ISN.
3) Bob picks an ISN and SYNchronises it with Alice.
4) Alice ACKnowledges the ISN.
Steps 2 and 3 can be combined in an SYN-ACK segment, which reduces this to a 3-way handshake.
A 2-way handshake would only allow one party to establish an ISN, and the other party to acknowledge it.
Which means only one party can send data.
1. Since the ARP cache on your computer is initially empty, your computer will use ARP protocol to get the MAC address of the local DNS server and first-hop router. 2. Then query the local DNS server to get the IP address of the Web page you would like to visit. 3. Once your computer has the IP address of the Web page, it will establish a TCP connection with the Web server by a 3-way handshake and send out an HTTP request via the first-hop router (assume the Web server does not reside inside the local network). The HTTP request message will be encapsulated in a TCP segment, and then encapsulated in an IP datagram and then an Ethernet frame. 4. Your computer sends the Ethernet frame destined to the first-hop router. Once the router receives the frame, it passes the encapsulated IP datagram up to the network layer, checks its routing table, and then sends the datagram encapsulated in an Ethernet frame to the next-hop router corresponding to?the routing algorithm. Then the IP datagram will be routed through the Internet until it reach the Web server. 5. The server of the Web page will send back the Web page to your computer via HTTP response messages. Those messages will be encapsulated in TCP segments and then further into IP datagrams and link-layer frames. Those IP datagrams follow the routes made by the routing algorithm and finally reach your first-hop router, and then the router will forward them to your computer by encapsulating them into Ethernet frames. |
|
网络协议 最新文章 |
使用Easyswoole 搭建简单的Websoket服务 |
常见的数据通信方式有哪些? |
Openssl 1024bit RSA算法---公私钥获取和处 |
HTTPS协议的密钥交换流程 |
《小白WEB安全入门》03. 漏洞篇 |
HttpRunner4.x 安装与使用 |
2021-07-04 |
手写RPC学习笔记 |
K8S高可用版本部署 |
mySQL计算IP地址范围 |
|
上一篇文章 下一篇文章 查看所有文章 |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 | -2024/11/25 20:30:35- |
|
网站联系: qq:121756557 email:121756557@qq.com IT数码 |