> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# iPerf3 网络速度测试指南

**iPerf** 是由互联网性能工作组开发的开源网络性能测量工具。它允许用户通过创建 **TCP** 或 **UDP** 流来测试网络吞吐量，并将流量从一个主机（客户端）发送到另一个（服务器）。结果显示**最大可达到的带宽**，有助于诊断网络问题或验证性能。


---

## 🧩 TCP 与 UDP – 有什么区别？

| 协议 | 连接类型 | 可靠性? | 使用场景 |
| ---- |
| **TCP** | 基于连接 | ✅ 是 | 文件传输、网络浏览 |
| **UDP** | 无连接 | ❌ 否 | 流媒体、VoIP、游戏 |

* **TCP** 使用*三路握手*来确保可靠交付。
* **UDP** 在不建立连接的情况下发送数据，使其更快但可靠性更低。

---

## 🖥️ 安装 iPerf3

### Linux（基于Debian的系统）

1. 登录到您的基于Debian的系统。
2. 运行：

```
   sudo apt-get install iperf3
```
3. 在提示时按 **Y** 确认安装。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863551/image-20240526-205835.png?version=2&modificationDate=1752497969781&cacheVersion=1&api=v2)

### Windows

1. 下载 iPerf3：[https://files.budman.pw/](https://files.budman.pw/)
2. 将zip文件解压到已知位置，例如桌面。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863551/image-20240526-212744.png?version=2&modificationDate=1752497986633&cacheVersion=1&api=v2)

---

## ▶️ 运行 iPerf3

### 步骤1：在Debian上启动iPerf3服务器

在Debian机器上：

```
iperf3 -s
```

这启动服务器处于**监听模式**，等待客户端连接。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863551/image-20240526-211320.png?version=2&modificationDate=1752498013116&cacheVersion=1&api=v2)

---

### 步骤2：在Windows上运行iPerf3客户端

1. 打开**命令提示符**。
2. 导航到提取的iPerf3目录：

```
   cd C:\Users\YourUsername\Desktop\iperf3
```

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863551/image-20240526-211746.png?version=2&modificationDate=1752498032511&cacheVersion=1&api=v2)

3. 运行客户端测试：

```
   iperf3.exe -c
```

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863551/image-20240526-212014.png?version=2&modificationDate=1752498057322&cacheVersion=1&api=v2)

运行**反向测试**（在客户端上测量下载）：

```
iperf3.exe -c -R
```

---

## 📊 解释结果

### 示例输出

如果您从远程客户端进行测试，输出将显示：

* **发送者（客户端）**：测量从客户端到服务器的上传。
* **接收者（服务器）**：测量从客户端到服务器的下载。

您可以在客户端上使用 `-R` 标志交换方向以测试相反的路径。

![](https://storage.crisp.chat/users/helpdesk/website/-/a/f/d/6/afd6941e8bc7d800/image-20240526-212135_qypr50.png)

---

## 🎥 视频教程

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863551/iperf.webm?version=2&modificationDate=1752498257353&cacheVersion=1&api=v2)

---