> 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/pricing/elastic-compute-billing/load-balancer-billing.md).

# Load Balancer Billing

## Prerequisites

* Load balancer resources are all [**pay-as-you-go**](https://docs.console.zenlayer.com/welcome/pricing/general-pricing-rules/pay-as-you-go.md) resources charged by hour, with a minimum of one hour price. Please first see [**General Pricing Rules**](https://docs.console.zenlayer.com/welcome/pricing/general-pricing-rules.md) and [**General Lifecycle Rules**](https://docs.console.zenlayer.com/welcome/pricing/general-lifecycle-rules.md) to know about basic pricing ways of pay-as-you-go resources.
* Load Balancer currently includes the following pricing items: instance fees, LCU fees, elastic IP fees, and public data transfer fees.

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>

<mark style="color:blue;">The actual price varies in different locations and zones, therefore the price shown on the order page shall prevail.</mark>
{% endhint %}

## Billing Items

### Load Balance Instance

The billing method of the load balancer is [**Pay-as-you-go**](https://docs.console.zenlayer.com/welcome/pricing/general-pricing-rules/pay-as-you-go.md). You pay for your resources afterward by hour.

### LCU

An LCU (Load Balancer Capacity Unit) is the smallest unit used to measure resources consumed by a load balancer. The number of LCUs per hour is calculated separately for each listener: take the peak concurrent connections and the average new connections per second (CPS) within the hour, divide each by the LCU coefficient for the listener's protocol, and use the larger result. The number of LCUs per hour of a load balancer is the sum of the LCUs of all its listeners.

**Metrics**

* **Concurrent Connections**\
  Concurrent Connections refer to the number of active connections handled simultaneously by a listener, sampled once per minute. Billing uses the peak value within the hour.
* **CPS**\
  Connections Per Second (CPS) refers to the number of new connections established through a listener per second. Billing uses the average value within the hour.

**Protocols**

* **TCP**\
  TCP, Transmission Control Protocol, is reliable and ensures all data arrives correctly and in order, making it ideal for web browsing, emails, and file transfers.
* **UDP**\
  UDP, User Datagram Protocol, is faster but less reliable, as it doesn’t guarantee delivery or order—perfect for streaming, online games, and real-time communication where speed matters more than accuracy.

**LCU Coefficient**

TCP and UDP use different LCU coefficients. Within the same protocol, concurrent connections and CPS each have their own coefficient.

<table><thead><tr><th width="281.70703125">Metric</th><th>TCP</th><th>UDP</th></tr></thead><tbody><tr><td>Concurrent Connections</td><td>100,000</td><td>50,000</td></tr><tr><td>CPS</td><td>800</td><td>400</td></tr></tbody></table>

#### **LCU Fee Formula**

> * LCU fee = LCU unit price (USD/LCU) × Number of LCUs per hour × Duration (hours)
>
> * Number of LCUs per hour = Sum of the LCUs of all listeners
>
> * Number of LCUs for a listener = max {Number of LCUs for concurrent connections, Number of LCUs for CPS}
>
> > Number of LCUs for concurrent connections = Peak concurrent connections in the hour/Concurrent connections LCU coefficient of the listener's protocol
> >
> > Number of LCUs for CPS = Average CPS in the hour/CPS LCU coefficient of the listener's protocol

#### LCU Billing Example

You create a pay-as-you-go load balancer with a TCP listener and a UDP listener. You release it after one hour. The following table describes the peak concurrent connections and the average CPS of each listener during this period.

<table><thead><tr><th width="164.15625">Metric</th><th>TCP Listener</th><th>UDP Listener</th></tr></thead><tbody><tr><td>Concurrent Connections</td><td><p>The highest value within the hour is 550,000.</p><p>Number of LCUs = 550,000/100,000 = 5.5</p></td><td><p>The highest value within the hour is 350,000.</p><p>Number of LCUs = 350,000/50,000 = 7.0</p></td></tr><tr><td>CPS</td><td><p>The average value within the hour is 2,400.</p><p>Number of LCUs = 2,400/800 = 3.0</p></td><td><p>The average value within the hour is 1,600.</p><p>Number of LCUs = 1,600/400 = 4.0</p></td></tr></tbody></table>

The Number of LCUs:

* For TCP listener per hour\
  \= max {Number of LCUs for concurrent connections, Number of LCUs for CPS}\
  \= Number of LCUs for concurrent connections\
  \= 5.5
* For UDP listener per hour\
  \= max {Number of LCUs for concurrent connections, Number of LCUs for CPS}\
  \= Number of LCUs for concurrent connections\
  \= 7.0

Assume the LCU unit price is $0.02/h, then your LCU fee will be:

* LCU fee\
  \= LCU unit price (USD/LCU) × Number of LCUs per hour × Duration (hours)\
  \= $0.02/LCU/h × (5.5 LCUs + 7.0 LCUs) × 1 h\
  \= $0.25

### Elastic IP

Elastic IP billing is based on usage time (hourly) and the number of IPs. Please refer to the order page for exact pricing.

### Public Data Transfer

Public network fees can be billed by data transfer or flat rate. View [Data Transfer](https://docs.console.zenlayer.com/welcome/pricing/network-billing/data-transfer.md) and [Flat Rate](https://docs.console.zenlayer.com/welcome/pricing/network-billing/flat-rate.md) for more details.
