> 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/elastic-compute/networking/01-overview/03-data-transfer.md).

# 流量计费

## 简介

流量计费是一种**按 GB 付费**的计量方式，可叠加可选的承诺用量套餐。您按月选择 GB（或 TB）套餐大小作为承诺最低用量；每月月末按承诺用量与实际用量两者中的较高值计费，超出套餐部分按每 GB 超额费率收费。计量器以 EIP 为单位运行——一个 EIP 对应一个套餐和一条超额计费记录。

适合吞吐量突发、但每月总流量可预测的场景。您无需为宽管道付费，只需为实际传输的字节付费。

***

## 套餐的运作方式

创建使用流量计费的 EIP 时，需提供两项配置：

* **带宽** — EIP 允许推送的最大 Mbps。这不是计量器，而是管道的上限。如不设置，默认为 `10 Gbps`（详见[带宽上限](/welcome/cn/elastic-compute/networking/01-overview/07-bandwidth-cap.md)）。
* **流量套餐大小** — 承诺月用量（TB），Console 提供 0、0.5、1、5、10 或自定义 TB/月。

套餐为 `0 TB` 是合法的：您以标准费率为每个 GB 付费，无承诺最低用量。套餐为 `5 TB` 意味着月末至少按 5 TB 计费，无论实际使用量多少；如超过 5 TB，超出部分按超额计费。

#### 提前删除

如果在计费月结束前删除 EIP，承诺最低用量将根据 EIP 存续时长按比例折算。超额部分将基于折算后的最低值计算。

**示例。** 您选择 5 TB/月 套餐，并在 30 天月份中存续 15 天后删除该 EIP。

* 折算后最低用量：5 TB × (15 / 30) = **2.5 TB**
* 如实际用量为 2 TB → 按 2.5 TB（折算后最低用量）计费。
* 如实际用量为 3 TB → 按套餐费率计 2.5 TB，加 0.5 TB 超额。

***

## 计费与不计费的流量

流量计费仅针对**出方向**公网流量计费，入方向流量不计费。在 Zenlayer 网络内部流转的流量——VPC 间流量、同区域私有 IP 流量、跨区域网络默认网格——完全不在公网计费范围内，无论使用哪种计费方式均不计费。

***

## 流量计费与带宽上限的结合

由于流量计费按**字节**计价，计量器本身无法防止失控工作负载在全天内占满线路。带宽上限就是为此设计的：保留按 GB 付费的经济性，同时限制最坏情况。上限不影响每 GB 的价格，只是防止计量器运行速度超过上限允许的值。

有关两种上限行为（宽松与严格）及 10 Gbps 默认值，详见[带宽上限](/welcome/cn/elastic-compute/networking/01-overview/07-bandwidth-cap.md)。

***

## 适合选择流量计费的场景

* **每月流量可预测。** 您能较准确估算工作负载每月移动的总 GB 数，并希望享受套餐折扣。
* **吞吐量突发。** 您的峰值 Mbps 在短时间内较高，但时间平均吞吐量较低。包月带宽会迫使您为峰值付费；95 计费会按峰值计费；而流量计费不关注流量形状。
* **单个 EIP，单个工作负载。** 计量器以 EIP 为单位，无法在多个实例间分摊成本。

## 不适合使用流量计费的场景

* **持续大流量。** 如果您的流量接近峰值全天不间断，按 GB 的价格会占主导，包月带宽通常更划算。
* **多个 EIP 且峰值不相关。** [聚合 95 计费](/welcome/cn/elastic-compute/networking/01-overview/05-aggregated-95th.md)的聚合折扣将优于按 EIP 的套餐计费。


---

# 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/elastic-compute/networking/01-overview/03-data-transfer.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.
