Updated on 2024-01-25 GMT+08:00

Billing (Classic VPN)

Classic VPNs can be billed on a pay-per-use (hourly) basis. You pay only for what you use, and for as long as you use it. No complex forecasts and budgets are required. You can buy one or more VPN connections and will be billed based on the number of VPN connections and usage duration.

Unless otherwise specified, VPN in this section refers to Classic VPN.

Billing Items

Table 1 Billing items of Classic VPNs

Billing Mode

Billing Item 1

Billing Item 2

Billing Formula


VPN connection (billed by hour)

  • Bandwidth

    Bandwidth fee (by Hour)

  • Traffic

    Traffic fee (by GB)

  • Billed by bandwidth

    Total price = Classic VPN connection fee + Bandwidth fee

  • Billed by traffic

    Total price = Classic VPN connection fee + Traffic fee

The total price of Classic VPN consists of the following parts:

  • Classic VPN connection fee: indicates the fee charged for the connections between a Classic VPN gateway and a customer gateway.
    • In yearly/monthly billing mode, 10 VPN connections are included free of charge with the purchase of a Classic VPN gateway by default. You can purchase additional VPN connections as required. VPN connections are sold in units of 10.
    • In pay-per-use billing mode, VPN connections are sold in units of 1. The billing formula is as follows: VPN connection fee = Connection unit price (USD/hour) x Usage duration (hour).
  • Bandwidth fee: indicates the fee charged for the bandwidth consumed by a Classic VPN gateway.

For details about Classic VPN pricing, see Product Pricing Details.

Billing Modes

  • Billed by bandwidth

    If you select billing by bandwidth, the billing cycle is one hour. The generated fee also varies depending on the bandwidth size. The price includes the VPN gateway bandwidth or traffic price and the price of the VPN connection created together with the gateway. If you create another connection for the gateway, you will be charged for the additional connection.

    Total price = VPN gateway bandwidth fee + VPN connection fee

    The bandwidth you purchased for a VPN gateway refers to outbound bandwidth, that is, bandwidth for traffic sent from a VPC on the cloud to a customer gateway in an on-premises data center.

    1. If the purchased bandwidth is 10 Mbit/s or less, the inbound bandwidth is limited to 10 Mbit/s.
    2. If the purchased bandwidth is greater than 10 Mbit/s, the inbound bandwidth is the same as the purchased bandwidth.

    For example, assuming that the bandwidth you purchased is 50 Mbit/s and you use the VPN gateway for 5 hours and then delete it, you will be charged for the use of 50 Mbit/s bandwidth for 5 hours even if you do not transmit any data during the 5 hours.

  • Billed by traffic

    If you select billing by traffic, you will be charged for the traffic generated in every hour, with the billing unit being 1 GB. If less than 1 GB is generated, the fee is calculated based on the actually generated traffic volume. In this case, modifying the bandwidth size does not change the public network traffic price per GB. Only traffic in the outbound direction is billed.

    Total price = Public network traffic fee + VPN connection fee

Resource Name/ID

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click Service List in the upper left corner. Under Networking, select Virtual Private Network.
  4. In the navigation pane on the left, choose Virtual Private Network > Classic – VPN Gateways.

    If Enterprise Edition VPN is available for the selected region, choose Virtual Private Network > Classic.

  5. Click next to the name of a target VPN gateway to view its resource ID.

    The name of a VPN gateway is its resource name.

Changing Billing Modes

Pay-per-use VPN gateways billed by bandwidth can be changed to being billed by traffic or the other way around. For details, see Changing a Pay-Per-Use VPN Gateway from Being Billed by Bandwidth to Being Billed by Traffic or the Other Way Around.


For details, see Renewal Management.

Expiration and Overdue Payment

For details, see Service Suspension and Resource Release and Payment and Repayment.