Protocol Type | Protocol | Description | Use Case |
Layer-4 protocol | TCP | Connection-oriented and reliable transport layer protocol: The source and destination ends must perform a three-way handshake to establish a connection before data transfer. Session persistence based on the client IP address (source IP address) is supported. The client IP address can be found at the network layer. The server can directly obtain the client IP address. | TCP is suitable for scenarios that have high requirements for reliability and data accuracy but relatively low requirements for transfer speed, such as file transfer, receiving and sending emails, and remote login. For more information, see Configuring a TCP Listener. |
| UDP | Connection-less transport layer protocol: The source and destination ends do not establish a connection, nor maintain the connection status. Each UDP connection is point-to-point. One-to-one, one-to-many, many-to-one, and many-to-many communications are supported. Session persistence based on the client IP address (source IP address) is supported. The server can directly obtain the client IP address. | UDP is suitable for scenarios that have high requirements for transfer efficiency but relatively low requirements for accuracy, such as instant messaging and online videos. For more information, see Configuring a UDP Listener. |
| TCP SSL | Secure TCP: TCP SSL listeners support configuring certificates to block unauthorized access. Unified certificate management is supported for CLB to implement decryption. One-way authentication and mutual authentication are supported. The server can directly obtain the client IP address. | TCP SSL is suitable for scenarios that have high requirements for security when TCP is used and supports TCP-based custom protocols. For more information, see Configuring a TCP SSL Listener. |
| QUIC | UDP-based multiplexing concurrent transport layer protocol: QUIC implements reliable data transmission, security and HTTP2 over UDP, and is comparable to the combination of TCP, TLS, and HTTP2. In a QIUC connection, no matter what happens to the IP address or port, the connection will not be interrupted, enabling seamless connection migration. | QIUC is suitable for audio and video services, game services, etc. When the network is unstable, such as frequent switching between 4G network and Wi-Fi network, it can smoothly migrate and connect services without interruption. For more information, see Configuring a QUIC Listener. |
Layer-7 protocol | HTTP | Application layer protocol: Forwarding based on the request domain name and URL is supported. Cookie-based session persistence is supported. | HTTP is suitable for applications that need to identify request content, such as web applications and mobile applications. For more information, see Configuring an HTTP Listener. |
| HTTPS | Encrypted application layer protocol: Forwarding based on the request domain name and URL is supported. Cookie-based session persistence is supported. Unified certificate management is supported for CLB to implement decryption. One-way authentication and mutual authentication are supported. | HTTPS is suitable for HTTP applications that require encrypted transmission. For more information, see Configuring an HTTPS Listener. |
Port Type | Description | Restrictions |
Listening port (frontend port) | Listening ports are used by CLB instances to receive and forward requests to real servers. You can configure CLB instances for ports 1 to 65535, such as port 21 (FTP), port 25 (SMTP), port 80 (HTTP), and port 443 (HTTPS). | On one CLB instance: Listening ports of UDP can be used for TCP. For example, a TCP:80 listener and a UDP:80 listener can coexist.Listening ports must be unique for the same type of protocol. TCP, TCP SSL, HTTP, and HTTPS are all TCP protocols, so a TCP:80 listener and an HTTP:80 listener cannot coexist. |
Service port (backend port) | Service ports are used by real servers to provide services, receive and process traffic from CLB instances. On one CLB instance, one listening port can forward traffic to ports of multiple real servers. | On one CLB instance: Listeners using different protocols can be bound to the same service port. For example, listener HTTP:80 and listener HTTPS:443 can be bound to the same port of a real server.When using the same listening protocol, each real server port can be bound to only one listener, that is, the quadruple (VIP, listening protocol, private IP address of the real server, and real server port) must be unique. |
Was this page helpful?