All Products
Search
Document Center

ENS:Configure a UDP listener

Last Updated:Sep 09, 2026

When your services prioritize real-time performance over guaranteed delivery, such as video chats and live financial data feeds, you can add a UDP listener to an ELB instance. The listener forwards UDP requests from clients to backend servers for processing.

Prerequisites

You have created an ELB instance. For instructions, see Create an ELB instance.

Procedure

  1. Log in to the ENS console.

  2. On the ELB Instance page, find the target instance and, in the Actions column, click Listener Configuration.

  3. On the Listener tab, click Add Listener.

  4. Configure the basic settings.

    Parameter

    Description

    Listener name

    Enter a custom name for the listener.

    Load balancing protocol

    Select UDP.

    Listener port

    The port the listener uses to receive and forward requests to backend servers. Valid values: 1–65535.

    Note

    For a UDP listener, ports 250, 4789, and 4790 are reserved by the system and cannot be used.

    Advanced settings

    Note

    Click Modify to expand the advanced settings.

    Scheduling algorithm

    • Weighted Round-Robin (WRR): Backend servers with higher weights receive a proportionally higher number of requests.

    • Weighted Least Connections (WLC): Distributes requests based on both the weight and the number of active connections of each backend server. If multiple backend servers have the same weight, the one with the fewest active connections receives the next request.

    • Round-Robin (RR): Distributes requests to backend servers in sequence.

    • Consistent Hashing (CH)

      • Hashing based on client IP address: Requests from the same client IP address are routed to the same backend server.

      • Hashing based on QUIC Connection ID: Requests with the same QUIC Connection ID are routed to the same backend server.

    • IQCH: Performs consistent hashing on three specific bytes of the iQUIC Connection ID, starting from the second byte.

    Obtain client IP address

    For Layer 4 listeners, backend servers can directly obtain the client IP address. This feature is enabled by default.

  5. Click Next and configure health checks. For parameter details, see Health check.

  6. After you configure health checks, click Next. Review the configuration and click Create.

  7. After the listener is created, you must enable it manually. On the Listener tab, find the listener, and in the Actions column, click Enable.