All Products
Search
Document Center

Elastic Compute Service:Public bandwidth

Last Updated:Nov 12, 2024

This topic describes the billing rules and billing methods for network usage, and the network usage fees generated for Elastic Compute Service (ECS) instances that use static public IPv4 addresses (also called auto-assigned or system-assigned public IPv4 addresses) to access the Internet. This topic also provides examples on how to calculate network usage fees.

Note

This topic describes only the billing rules for IPv4 network usage. For information about the billing rules for IPv6 network usage, see Billing rules.

Overview

An ECS instance can use a static public IP address (also called auto-assigned or system-assigned public IP address), an elastic IP address (EIP), or a network address translation (NAT) gateway to access the Internet. The billable items and billing methods for network usage vary based on the resource that is used by the instance to access the Internet.

  • Static public IP address

    If an ECS instance is automatically assigned a public IPv4 address and uses the IPv4 address to access the Internet, you are charged for outbound public bandwidth or outbound traffic to the Internet. You are not charged for the static public IPv4 address. For more information, see the Billing for network usage when a static public IP address is used for Internet access section of this topic.

  • EIP

    If an EIP is associated with an ECS instance, the instance can use the EIP to access the Internet. EIPs are public IP addresses that you can separately purchase and use. You can associate EIPs only with ECS instances that reside in virtual private clouds (VPCs). For information about the billing of EIPs, see Billing overview.

  • NAT gateway

    If an ECS instance and a NAT gateway on which Source Network Address Translation (SNAT) entries are configured reside in the same VPC, the instance can use the NAT gateway to access the Internet. NAT gateways are Internet gateways that you can purchase separately. For information about the billing of NAT gateways, see Billing of Internet NAT gateways.

Billing for network usage when a static public IP address is used for Internet access

If you select Assign Public IPv4 Address when you create an ECS instance, a static public IP address is automatically assigned to allow the instance to access the Internet. When the instance uses the static public IP address to access the Internet, you are charged for outbound public bandwidth or outbound traffic to the Internet.

Billable items

After a static public IP address is automatically assigned to an ECS instance, the instance can access the Internet and receive requests from the Internet. You are charged for outbound public bandwidth or outbound traffic to the Internet.

image
  • Outbound public bandwidth (chargeable): The bandwidth for traffic from ECS instances to the Internet. For example, outbound public bandwidth is used by FTP clients to download resources from ECS instances that use static public IP addresses.

  • Inbound public bandwidth (free of charge): The bandwidth for traffic from the Internet to ECS instances. For example, inbound public bandwidth is used by FTP clients to upload resources to ECS instances that use static public IP addresses.

Note
  • You are not charged for internal bandwidth. If ECS instances and other Alibaba Cloud services are deployed in the same VPC, you are not charged for the traffic that is generated when the instances communicate with each other or with the Alibaba Cloud services by using private IP addresses.

  • If an ECS instance communicates with another ECS instance or with an Alibaba Cloud service over the Internet, you are charged for outbound public bandwidth or outbound traffic to the Internet. For example, you are charged for network usage when an ECS instance located in the China (Hangzhou) region communicates with an ECS instance located in the China (Shanghai) region over the Internet.

Billing methods for network usage

Two billing methods for network usage are available when ECS instances use static public IP addresses for Internet access: pay-by-bandwidth and pay-by-traffic. The following table describes the different scenarios for which the two billing methods for network usage are suitable and the billing rules for each billing method.

Important
  • If the pay-by-traffic billing method is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios in which demand exceeds resource supplies, the maximum bandwidths may not be reached. If you want guaranteed bandwidths for your instances, use the pay-by-bandwidth billing method for network usage.

  • BGP (Multi-ISP) Pro in the China (Hong Kong) region does not support the pay-by-traffic billing method.

Item

Pay-by-bandwidth

Pay-by-traffic

Scenario

You are charged based on a specific bandwidth value. The actual outbound public bandwidth is capped at the specified bandwidth value.

  • Pay-by-bandwidth is suitable for scenarios that require stable bandwidth.

  • If your instances frequently communicate with external networks and require long-term use of bandwidth or if your instances have a public bandwidth utilization that is higher than 10%, we recommend that you select pay-by-bandwidth as the billing method for network usage.

You are charged based on the actual traffic volume. To prevent excessive fees that are caused by traffic bursts, you can specify a maximum bandwidth for outbound traffic.

  • Pay-by-traffic is suitable for scenarios in which bandwidth needs are highly variable.

  • If your instances have a public bandwidth utilization that does not exceed 10% and experience occasional traffic spikes, we recommend that you select pay-by-traffic as the billing method for network usage.

Charging method

Network usage fees are included in ECS instance fees.

Network usage fees are not included in ECS instance fees.

Billing rule

Subscription instance

The following billing rules apply:

  • Metering rule: You are charged for a specific amount of bandwidth (in Mbit/s) based on a tiered metering model.

  • Payment method: You must pay the full amount for the bandwidth upfront when you purchase instances.

The following billing rules apply:

  • Metering rule: You are charged per GB of traffic.

    Note

    If your traffic is less than 1 GB, you are charged based on the actual traffic volume.

  • Payment method: You are charged for network usage based on the pay-as-you-go billing method. Network usage fees are automatically deducted from the balance of your Alibaba Cloud account.

    You can purchase data transfer plans or activate the Cloud Data Transfer (CDT) service to offset the network usage fees that are generated based on the pay-by-traffic billing method. For more information, see Purchase data transfer plans or the Use CDT to offset public bandwidth fees section of this topic.

Note

CDT provides an efficient and cost-effective method for managing public bandwidth expenses. CDT supports flexible billing, free data transfer quota, tiered pricing, and unified billing for multiple Alibaba Cloud services. Compared with the pay-by-traffic billing method, the CDT billing method provides specific discounts. For more information, see What is CDT?

  • Billing cycle: You are billed in 1-second increments, and bills are generated on the hour every hour.

    Note
    • Bills are generated on the hour every hour (UTC+8). After the settlement is completed, a new billing cycle begins. A bill is generated after the current billing cycle ends. The actual time when bills are generated is determined by the system.

    • If you do not have sufficient funds in your Alibaba Cloud account, including the account balance and vouchers, to complete a payment, the payment becomes overdue. You can specify an alert threshold to prevent overdue payments. For more information, see Overdue payments.

Pay-as-you-go instance

The following billing rules apply:

  • Metering rule: You are charged for a specific amount of bandwidth (in Mbit/s) based on a tiered metering model.

  • Payment method:

    • You are charged for network usage based on the pay-as-you-go billing method. Network usage fees are automatically deducted from the balance of your Alibaba Cloud account.

    • You cannot use data transfer plans to offset network usage fees.

  • Billing cycle: You are billed in 1-second increments, and bills are generated on the hour every hour.

    Note
    • Bills are generated on the hour every hour (UTC+8). After the settlement is completed, a new billing cycle begins. A bill is generated after the current billing cycle ends. The actual time when bills are generated is determined by the system.

    • If you do not have sufficient funds in your Alibaba Cloud account, including the account balance and vouchers, to complete a payment, the payment becomes overdue. You can specify an alert threshold to prevent overdue payments. For more information, see Overdue payments.

Note

For information about the formulas used to calculate public bandwidth fees, see the Billing examples section of this topic.

Pricing

The pricing of public bandwidth varies based on the region. For information about the price schedule of public bandwidth, go to the Pricing tab of the ECS product page.

Billing examples

The following table describes how you are charged for network usage. In the examples, ECS instances in the China (Hangzhou) region are used.

Note

The unit prices are provided for reference only. The prices on the Pricing tab of the ECS product page prevail.

Billing method of ECS instances

Billing method for network usage

Example of billing conditions

Network usage fee (USD)

Subscription

Pay-by-bandwidth

  • Subscription duration: one month.

  • Bandwidth value: 2 Mbit/s.

  • Unit price for 2 Mbit/s: USD 6.8 per month.

The fee is calculated by using the following formula: Fee = Unit price of public bandwidth × Subscription duration. In this example, the fee is USD 6.8: 6.8 × 1 = 6.8.

  • Subscription duration: one month.

  • Bandwidth value: 7 Mbit/s.

  • Unit price for 5 Mbit/s: USD 17 per month.

  • Unit price for 6 Mbit/s and more: USD 11.8 per Mbit/s-month.

  • The fee for 5 Mbit/s bandwidth is calculated by using the following formula: Fee = Unit price of public bandwidth × Subscription duration. In this example, the fee for 5 Mbit/s bandwidth is USD 17: 17 × 1 = 17.

  • The fee for bandwidth beyond 5 Mbit/s is calculated by using the following formula: Fee = (Public bandwidth - 5 Mbit/s) × Unit price for bandwidth beyond 5 Mbit/s × Subscription duration. In this example, the fee for bandwidth beyond 5 Mbit/s is USD 23.6: (7 - 5) × 11.8 × 1 = 23.6.

  • The total fee is calculated by using the following formula: Total fee = Fee for 5 Mbit/s bandwidth + Fee for bandwidth beyond 5 Mbit/s. In this example, the total fee for 7 Mbit/s bandwidth is USD 40.6: 17 + 23.6 = 40.6.

Pay-by-traffic

  • Traffic volume: 1 GB.

  • Unit price: USD 0.123 per GB.

  • Usage duration: N/A. You are charged based on the actual traffic volume.

The fee is calculated by using the following formula: Fee = Unit price × Traffic volume. In this example, the fee is USD 0.123: 0.123 × 1 = 0.123.

Pay-as-you-go

Pay-by-bandwidth

  • Usage duration: one month (24 × 30 = 720 hours).

  • Bandwidth value: 2 Mbit/s.

  • Unit price for 2 Mbit/s: USD 0.012 per hour.

The fee is calculated by using the following formula: Fee = Unit price of public bandwidth × Usage duration. In this example, the fee is USD 8.64: 0.012 × (24 × 30) = 8.64.

  • Usage duration: one month (24 × 30 = 720 hours).

  • Bandwidth value: 7 Mbit/s.

  • Unit price for 5 Mbit/s: USD 0.03 per hour.

  • Unit price for 6 Mbit/s and more: USD 0.021 per Mbit/s-hour.

  • The fee for 5 Mbit/s bandwidth is calculated by using the following formula: Fee = Unit price of public bandwidth × Usage duration. In this example, the fee for 5 Mbit/s bandwidth is USD 21.6: 0.03 × (24 × 30) = 21.6.

  • The fee for bandwidth beyond 5 Mbit/s is calculated by using the following formula: Fee = (Public bandwidth - 5 Mbit/s) × Unit price for bandwidth beyond 5 Mbit/s × Usage duration. In this example, the fee for bandwidth beyond 5 Mbit/s bandwidth is USD 30.24: (7 - 5) × 0.021 × (24 × 30) = 30.24.

  • The total fee is calculated by using the following formula: Total fee = Fee for 5 Mbit/s bandwidth + Fee for bandwidth beyond 5 Mbit/s. In this example, the total fee for 7 Mbit/s bandwidth is USD 51.84: 21.6 + 30.24 = 51.84.

Pay-by-traffic

  • Traffic volume: 1 GB.

  • Unit price: USD 0.123 per GB.

  • Usage duration: N/A. You are charged based on the actual traffic volume.

The fee is calculated by using the following formula: Fee = Unit price × Traffic volume. In this example, the fee is USD 0.123: 0.123 × 1 = 0.123.

Use CDT to offset public bandwidth fees

You can use one of the following methods to activate CDT and upgrade the billing mode to CDT to offset the public bandwidth fees of instances that use the pay-by-traffic billing method for network usage.

Important
  • CDT activation is not subject to any restrictions.

  • CDT is an out-of-the-box service and does not involve resource creation. Therefore, you are not charged for the activation or use of the CDT service. The fees that are displayed in CDT bills are billed by CDT and incurred when other Alibaba Cloud services consume data transfer resources. For more information about services that can be billed by CDT, see Supported cloud services.

  • After you activate CDT and use CDT to bill data transfers for Alibaba Cloud services, all existing and new pay-by-data-transfer instances are automatically billed in CDT in a centralized manner, and pay-by-bandwidth instances continue to be billed in the Alibaba Cloud services. You can query your CDT bills on the Bill Details page in the Expenses and Costs console.

  • Check whether you have a pay-by-data-transfer instance. If you only activate CDT but do not have a pay-by-data-transfer instance, you do not enjoy the data transfer benefits of CDT.

  • After you activate CDT, you can obtain a quota of 200 GB free Internet data transfers per month. Among the 200 GB of free Internet data transfers, 20 GB can be used in global regions (including regions in the Chinese mainland) and the other 180 GB can be used only in regions outside the Chinese mainland.

References