全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 TCP connection?

又称: three-way handshake

Definition 19.8 University Computer Science — Year 2 · 第 19 章 — The Transport Layer: UDP and TCP

A TCP connection is the state two ends keep about one byte stream in each direction: the sequence numbers sent and acknowledged, the windows, and a connection state such as ESTABLISHED. It is opened by a three-way handshake: the client sends SYN with its starting sequence number, the server answers SYN+ACK with its own, and the client acknowledges it. Each end later closes its direction separately with FIN.

The handshake and a close initiated by the client, with the state each end enters (time runs downwards). The side that closes first waits in TIME-WAIT before forgetting the connection.
The handshake and a close initiated by the client, with the state each end enters (time runs downwards). The side that closes first waits in TIME-WAIT before forgetting the connection.
在原文中阅读 →