> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/glossary/o-t/t/tcp.md).

# TCP

TCP 是传输控制协议，它是在互联网协议 (IP) 套件的传输层上运行的通信协议。TCP 提供了应用程序之间可靠、有序和经过错误检查的数据传输。TCP 将数据分解成数据包，这些数据包通过网络发送并在目的地重新组装。它还提供了一种机制，用于在应用程序之间建立和终止连接，以及流量控制和拥塞控制，以确保数据高效传输且无丢失。TCP 通过在两个端点（通常是客户端和服务器）之间建立连接来运行。连接通过三次握手过程建立，客户端和服务器交换 SYN 和 ACK 消息以确定数据传输的初始序列号。连接建立后，两端点之间可以使用滑动窗口机制传输数据。发送方可以一次发送一定数量的数据包，接收方在接收到每个数据包时进行确认。如果数据包在传输过程中丢失或损坏，TCP 会重新传输该数据包，直到正确接收到为止。TCP 还提供了流量控制和拥塞控制机制，以防止网络拥塞并确保数据高效传输。流量控制允许接收方在接收数据过快时向发送方发出减速信号，而拥塞控制则监测网络拥塞并相应地调整传输速率。TCP 广泛应用于需要可靠且有序数据传输的应用程序，例如网页浏览、电子邮件、文件传输及其他客户端-服务器应用程序。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/cn/glossary/o-t/t/tcp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
