# 减少延迟

与TCP的3次握手相比，QUIC提供了0-RTT和1-RTT的握手，这减少了协商和建立新连接时所需的时间。

除此之外，QUIC提供了提早传输更多数据的“早期数据”（early data）特性，并且它的使用比TCP快速打开（TCP Fast Open）更加简便。

因为数据流概念的引入，客户端不用等待前一个连接结束，便可以与同一个主机建立另一个逻辑连接。

## TCP快速打开存在的问题

TCP快速打开选项由2014年12月发布的[RFC 7413](https://tools.ietf.org/html/rfc7413)定义，该规范中介绍了客户端如何通过第一个TCP SYN报文向服务器推送数据。

但在互联网上，对这个选项的实际支持仍需要时间，在2018年的今天，这个选项还是充满很多问题。想要在TCP栈上实现这个选项以获得改进的工程师，不仅要注意操作系统的版本，还要小心地处理发生问题之时，如何优雅地降级到没有该选项的状态。已知有多个网络在积极破坏这种TCP握手，从而干扰了TCP快速打开的流量。


---

# Agent Instructions: 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:

```
GET https://http3-explained.haxx.se/zh/why-quic/why-latency.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
