This topic describes how to add a UDP listener to a Classic Load Balancer (CLB) instance. UDP applies to services that prioritize real-time content delivery over reliability, such as video conferencing and real-time quote services. You can add a UDP listener to forward UDP requests.
Background information
- You are not allowed to specify port 250, port 4789, or port 4790 for UDP listeners. They are system reserved ports.
- Fragmentation is not supported.
- If you add a UDP listener to a CLB instance deployed in a classic network, the UDP listener cannot pass client IP addresses to backend servers.
- The following operations take effect 5 minutes after they are performed on a UDP listener:
- Remove backend servers.
- Set the weight of a backend server to 0 after it is declared unhealthy.
- IPv6 packets have longer IP headers than IPv4 packets. If an IPv6 CLB instance uses a UDP listener, make sure that the following requirement is met: The
maximum transmission unit (MTU) supported by the network interface controller (NIC)
that each backend server uses to communicate with CLB does not exceed 1,200 bytes. Otherwise, oversized packets may be discarded. You must
modify the MTU setting in the configuration files of some applications accordingly.
TCP supports Maximum Segment Size (MSS) announcement. Therefore, when you use a TCP, HTTP, or HTTPS listener, you do not need to perform additional configurations.
Prerequisites
A CLB instance is created. For more information, see Create and manage a CLB instance.
Step 1: Add a UDP listener
Step 2: Add backend servers
After you configure the listener, you must add backend servers to process client requests. You can use the default server group that is configured for the CLB instance. You can also configure a vServer group or a primary/secondary server group, or enable the primary/secondary mode for the listener. For more information, see Backend server overview.
Step 3: Configure health checks
CLB performs health checks to check the availability of the ECS instances that serve as backend servers. The health check feature improves overall service availability and reduces the impact of backend server failures.
On the Health Check wizard page, click Modify to modify the health check configurations. For more information, see Configure health check.