# 基于UDP

## 基于UDP的传输层协议

QUIC是基于UDP在用户空间实现的传输协议。如果不观察细节，你会觉得QUIC跟UDP报文差不多。

基于UDP意味着它使用UDP端口号来识别指定机器上的特定服务器。

目前已知的所有QUIC实现都位于用户空间，这使它能得到更快速的迭代（相较于内核空间中的实现）。

## 跑得起来吗？

有一些网络上的中间设备会拦截端口53（用于DNS）以外的UDP流量。还有一些网络会节流（throttle）UDP流量，使得QUIC的表现慢于基于TCP的协议。更多网络的表现未知。

在可预见的未来，所有基于QUIC的传输可能会配有一个优雅地回退到另一个基于TCP的后备方案的替代机制。据Google多位工程师早前的报告，协议的失败率不足10%。

## 会好起来吗？

如果QUIC被证明确实是互联网世界的一个有益补充，用户会希望能正常使用QUIC，网络公司就可能重新解决上述的拦截。多年以来，随着QUIC取得进展，在互联网上建立和使用QUIC的成功率有所提高。


---

# 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/the-protocol/feature-udp.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.
