- What's New
- Function Overview
- Service Overview
- Billing
-
Getting Started
- Using a Public NAT Gateway to Enable Servers to Share One or More EIPs to Access the Internet
- Using a Public NAT Gateway to Enable Servers to Be Accessed by the Internet
- Using a Private NAT Gateway to Connect Cloud and On-premises Networks
- Using Multiple Public NAT Gateways Together in Performance-Demanding Scenarios
-
User Guide
- Public NAT Gateways
- Private NAT Gateways
- Permissions Management
- Tag Management
- Managing Quotas
- Monitoring
- Auditing
-
Best Practices
- Enabling Private Networks to Access the Internet Using a Cloud Connection and SNAT
- Using a Public NAT Gateway and Direct Connect to Accelerate Internet Access
- Using a Private NAT Gateway and Direct Connect to Enable Communications Between a VPC and an On-premises Data Center
- Using a Public NAT Gateway and VPC Peering to Enable Communications Between VPCs and the Internet
- Preserving Your Network with NAT Gateways During Cloud Migration
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- APIs of Public NAT Gateways
- APIs for Private NAT Gateways
- Application Examples
- Permissions Policies and Supported Actions
- Appendixes
- Out-of-Date APIs
- SDK Reference
-
FAQs
-
Public NAT Gateways
- What Is the Relationship Between a VPC, Public NAT Gateway, EIP Bandwidth, and ECS?
- How Does a Public NAT Gateway Offer High Availability?
- Which Ports Cannot Be Accessed?
- What Are the Differences Between Using a Public NAT Gateway and Using an EIP for an ECS?
- What Should I Do If I Fail to Access the Internet Through a Public NAT Gateway?
- Can I Change the VPC for a Public NAT Gateway?
- Does Public NAT Gateway Support IPv6 Addresses?
- What Security Policies Can I Configure to Implement Access Control If I Use a Public NAT Gateway?
- What Can I Do If Connection Between My Servers and the Internet Fails After I Add SNAT and DNAT Rules?
- Can a Public NAT Gateway Limit the Bandwidth of a Server?
- What Can I Do If the Number of Lost Packets of a Public NAT Gateway Exceeds the Threshold (or EIP Port Allocation Exceeds the Threshold)?
-
Private NAT Gateways
- How Do I Troubleshoot a Network Failure After a Private NAT Gateway Is Configured?
- How Many Private NAT Gateways Can I Buy in a VPC?
- Can I Increase the Numbers of SNAT and DNAT Rules Supported by a Private NAT Gateway?
- Can Private NAT Gateways Translate On-premises IP Addresses Connected to the Cloud Through Direct Connect?
- What Are the Differences Between Private NAT Gateways and Public NAT Gateways?
- Can a Private NAT Gateway Be Used Across Accounts?
-
SNAT Rules
- Why Do I Need SNAT?
- What Are SNAT Connections?
- What Is the Bandwidth of a Public NAT Gateway That Is Used by Servers to Access the Internet? How Do I Configure the Bandwidth?
- How Do I Resolve Packet Loss or Connection Failure Issues When Using a NAT Gateway?
- What Should I Do If My ECS Fails to Access a Server on the Public Network Through a Public NAT Gateway?
- What Are the Relationships and Differences Between the CIDR Blocks in a NAT Gateway and in an SNAT Rule?
- DNAT Rules
-
Public NAT Gateways
- Videos
- Glossary
-
More Documents
-
User Guide (ME-Abu Dhabi Region)
- Overview
- Getting Started
- Managing NAT Gateways
- Managing SNAT Rules
- Managing DNAT Rules
- Monitoring Management
-
FAQs
-
NAT Gateway
- What Is the Relationship Between VPC, NAT Gateway, EIP Bandwidth, and ECS?
- How Does A NAT Gateway Offer High Availability?
- Which Ports Cannot Be Accessed?
- What Can I Do If I Fail to Access the Internet Through the NAT Gateway?
- Can I Change the VPC for a NAT Gateway After It Is Created?
- What Is the Quota of the NAT Gateway?
-
SNAT
- Why SNAT Is Used?
- What Are SNAT Connections?
- What Is the Bandwidth of the NAT Gateway When a Server Accesses the Internet Through the NAT Gateway? Where Can I Configure the Bandwidth?
- How Do I Resolve Packet Loss or Connection Failure Issues When Using a NAT Gateway?
- What Are the Relationships and Differences Between the CIDR Blocks in a NAT Gateway and in an SNAT Rule?
- DNAT
-
NAT Gateway
- Change History
- API Reference (ME-Abu Dhabi Region)
-
User Guide (Paris Region)
- Overview
-
Getting Started
- Allowing a Private Network to Access the Internet Using SNAT
- Allowing Internet Users to Access a Service in a Private Network Using DNAT
- Allowing On-Premises Servers to Communicate with the Internet
- Using Private NAT Gateways to Enable Communications Between Cloud and On-premises Networks
- Using Multiple Public NAT Gateways Together in Performance-Demanding Scenarios
- Public NAT Gateways
- Private NAT Gateways
- Permissions Management
- Monitoring
-
FAQs
-
Public NAT Gateways
- What Is the Relationship Between a VPC, Public NAT Gateway, EIP Bandwidth, and ECS?
- How Does a Public NAT Gateway Offer High Availability?
- Which Ports Cannot Be Accessed?
- What Are the Differences Between Using a NAT Gateway and Using an EIP for an ECS?
- What Should I Do If I Fail to Access the Internet Through a NAT Gateway?
- Can I Change the VPC for a NAT Gateway?
- What Is the Quota of the NAT Gateway?
- Can I Update NAT Gateways and SNAT Rules?
- Does NAT Gateway Support IPv6 Addresses?
- What Security Policies Can I Configure to Implement Access Control If I Use a NAT Gateway?
- What Can I Do If Connection Between My Servers and the Internet Fails After I Add SNAT and DNAT Rules?
-
Private NAT Gateways
- How Do I Troubleshoot a Network Failure After a Private NAT Gateway Is Configured?
- How Many Private NAT Gateways Can I Create in a VPC?
- Can I Increase the Numbers of SNAT and DNAT Rules Supported by a Private NAT Gateway?
- Can an SNAT Rule and a DNAT Rule of a Private NAT Gateway Share the Same Transit IP Address?
- Can Private NAT Gateways Translate On-premises IP Addresses Connected to the Cloud Through Direct Connect?
- What Are the Differences Between Private NAT Gateways and Public NAT Gateways?
- Can a Private NAT Gateway Be Used Across ?
-
SNAT Rules
- Why Do I Need SNAT?
- What Are SNAT Connections?
- What Is the Bandwidth of a NAT Gateway That Is Used by Servers to Access the Internet? How Do I Configure the Bandwidth?
- How Do I Resolve Packet Loss or Connection Failure Issues When Using a NAT Gateway?
- What Should I Do If My ECS Fails to Access a Server on the Public Network Through a NAT Gateway?
- What Are the Relationships and Differences Between the CIDR Blocks in a NAT Gateway and in an SNAT Rule?
- DNAT Rules
-
Public NAT Gateways
- Change History
- API Reference (Paris Region)
-
User Guide (Kuala Lumpur Region)
- Overview
- Getting Started
- Managing NAT Gateways
- Managing SNAT Rules
- Managing DNAT Rules
- Permissions Management
- Monitoring Management
-
FAQs
- NAT Gateway
-
SNAT
- Why Is SNAT Used?
- What Are SNAT Connections?
- What Is the Bandwidth of the NAT Gateway When a Server Accesses the Internet Through the NAT Gateway? Where Can I Configure the Bandwidth?
- How Do I Resolve Packet Loss or Connection Failure Issues When Using a NAT Gateway?
- What Are the Relationships and Differences Between the CIDR Blocks in a NAT Gateway and in an SNAT Rule?
- DNAT
- Change History
- API Reference (Kuala Lumpur Region)
-
User Guide (Ankara Region)
- Service Overview
- Getting Started
- Public NAT Gateways
- Private NAT Gateways
- Permissions Management
- Monitoring
-
FAQs
- Public NAT Gateways
-
Private NAT Gateways
- How Do I Troubleshoot a Network Failure After a Private NAT Gateway Is Configured?
- How Many Private NAT Gateways Can I Create in a VPC?
- Can Private NAT Gateways Translate On-premises IP Addresses Connected to the Cloud Through Direct Connect?
- What Are the Differences Between Private NAT Gateways and Public NAT Gateways?
- Can a Private NAT Gateway Be Used Across Accounts?
- SNAT Rules
- DNAT Rules
- Change History
-
API Reference (Ankara Region)
- Before You Start
- API Overview
- Calling APIs
- APIs for Public NAT Gateways
- Private Nat API
- Permissions Policies and Supported Actions
- Common Parameters
- Change History
-
User Guide (ME-Abu Dhabi Region)
- General Reference
Copied.
Pay-per-use Billing
Pay-per-use billing means you pay nothing up front and are not tied into any contract or commitment. Public NAT gateways support pay-per-use billing by day only. Private NAT gateways support pay-per-use billing by hour only. This section describes the billing rules for pay-per-use NAT gateways.
Application Scenarios
Pay-per-use billing is good for short-term, bursty, or unpredictable workloads that cannot tolerate any interruptions, such as applications for e-commerce flash sales, temporary testing, and scientific computing.
Billing Items
The fee of a pay-per-use NAT gateway is charged based on the NAT gateway type, specifications, and usage duration.
Billing Usage Period
Public NAT gateway
The billing cycle of a pay-per-use public NAT gateway is from 08:00 on the previous day to 08:00 on the next day. Any period less than one day is counted as one day.
For example, you purchased a small public NAT gateway charged by day on April 18, 2024, 06:00:00 and deleted it on April 19, 2024, 9:00:00. The following three usage periods will be billed:
- April 18, 2023, 06:00:00 to April 18, 2023, 8:00:00
- April 18, 2023, 08:00:00 to April 19, 2023, 8:00:00
- April 19, 2023, 08:00:00 to April 20, 2023, 8:00:00
Private NAT gateway
Pay-per-use private NAT gateway usage is calculated by the second and billed every hour. The billing starts when the private NAT gateway is launched and ends when the instance is deleted.
For example, if you purchased a small pay-per-use private NAT gateway on April 18, 2023, 8:45:30 and deleted it on April 18, 2023, 8:55:30, you are billed for the 600 seconds from 8:45:30 to 8:55:30.
Billing Examples
Public NAT gateway
Suppose you purchased a small public NAT gateway on April 18, 2023, 6:00:00 and deleted it on April 19, 2023 9:00:00, the NAT gateway are billed as follows:
Billing Usage Period |
Formula |
Total Price (USD) |
---|---|---|
One day (April 18, 2023, 6:00:00 to April 18, 2023, 8:00:00) |
Unit price of the public NAT gateway specifications x Required duration |
2.44 x 1 = 2.44 |
One day (April 18, 2023, 8:00:00 to April 19, 2023, 8:00:00) |
2.44 x 1 = 2.44 |
|
One day (April 19, 2023, 08:00:00 to April 20, 2023, 8:00:00) |
2.44 x 1 = 2.44 |
Private NAT gateway
Suppose you purchased a small private NAT gateway on April 18, 2023, 8:45:00 and deleted it on April 18, 2023, 9:55:00.
Billing Usage Period |
Formula |
Total Price (USD) |
---|---|---|
One hour (April 18, 2023, 8:00:00 to April 18, 2023, 9:00:00) |
Unit price of the private NAT gateway specifications x Required duration |
0.1/3600 x 900 = 0.025 |
One hour (April 18, 2023, 9:00:00 to April 18, 2023, 10:00:00) |
0.1/3600 x 3300 = 0.09 |
- The prices are examples only. The actual prices are those displayed on NAT Gateway Pricing Details.
- The hourly price of a resource is displayed in the product pricing details. If the usage period of a resource is less than one hour, the usage period is calculated by second. In this case, you need to divide the hourly price by 3,600 to obtain the price for each second. Then, calculate the price.
Price Change After Specification Change
- If you upgrade your public NAT gateway specifications, the billing will be based on the more robust specifications used on the same day.
For example, you purchased a small, pay-per-use public NAT gateway at 9:00:00 on April 18, 2023, and upgraded it to a medium one at 9:30:00. Then you deleted the medium public NAT gateway at 10:30:00 on April 18, 2023. The medium public NAT gateway will be billed from April 18, 2023, 8:00:00 to April 19, 2023, 8:00:00.
- If you purchase a pay-per-use private NAT gateway and change its specifications later, you will be billed separately (accurate to seconds) before and after the change in the current billing cycle (by hour).
For example, you purchased a small private NAT gateway at 9:00:00 on April 18, 2023, and upgraded it to a medium one at 9:30:00. Then you deleted the medium private NAT gateway at 10:30:00 on April 18, 2023. The first billing cycle is from April 18, 2023, 9:00:00 to April 19, 2023, 10:00:00. Charges incurred between 9:00:00 and 9:30:00 are billed based on the small specifications, and charges incurred between 9:30:00 and 10:00:00 are billed based on the medium specifications. The second billing cycle from April 18, 2023, 10:00:00 to April 19, 2023, 11:00:00. Charges incurred between 10:00:00 to 10:30:00 are billed based on the medium specifications.
Impact of Arrears
Figure 1 shows the statuses of a NAT gateway can have throughout its lifecycle. After a NAT gateway is purchased, it enters the valid period and runs normally during this period. If your account goes into arrears, the NAT gateway enters a grace period and then a retention period.
Arrears Reminder
The system will bill you for pay-per-use resources after each billing cycle ends. If your account goes into arrears, we will notify you by email, SMS, or in-app message.
Impact of Arrears
- If your account is insufficient to pay your amount due, your account goes into arrears, and the pay-per-use NAT gateway enters the grace period. You are still responsible for expenditures generated during the grace period. You can view the charges on the Billing Center > Overview page and pay any past due balance as needed.
- If you do not bring your account balance current before the grace period expires, the NAT gateway turns to Frozen and enters a retention period. You cannot perform any operations on a pay-per-use NAT gateway in the Frozen state.
- If you do not bring your account balance current before the retention period ends, your NAT gateway will be released and the data cannot be restored.
- For details about the grace period and retention period, see What Is a Grace Period of Huawei Cloud? How Long Is It? and What Is a Retention Period of Huawei Cloud? How Long Is It?
- For details about top-up, see Topping Up an Account (Prepaid Direct Customers).
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot