Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Elastic Load Balance/ FAQs/ Service Abnormality/ Why Does a Server Occasionally Time Out When a Client Access It Through Different Load Balancers or Different Listeners of a Load Balancer?

Why Does a Server Occasionally Time Out When a Client Access It Through Different Load Balancers or Different Listeners of a Load Balancer?

Updated on 2025-02-28 GMT+08:00

Symptom

Table 1 Symptom description

Scenarios

  • A client accesses the same backend server through different Layer 4 load balancers.
  • A client accesses the same backend server through different Layer 4 listeners of a load balancer.

Symptom

The client fails to receive responses from the backend server within the timeout duration.

Cause

The backend server received packets with the same 5-tuple.

5-tuple Conflicts

There will be 5-tuple conflicts if the following happens:

  • The source port is hard coded as a fixed one, for example, 80, when the client accesses different load balancers.
  • The client OS automatically selects the same source port when the client accesses different load balancers (different IP addresses).
Figure 1 5-tuple conflicts

Figure 1 shows how two load balancers (with Transfer Client IP Address enabled) forward client requests to the same backend server over the same source port.

  1. The client (IP-Client) uses the same source port (port 100) to send TCP request 1 to EIP1 (12.xx.xx.xx) and TCP request 2 to EIP2 (13.xx.xx.xx) bound to two load balancers.
  2. The two TCP listeners forward client requests over the same port (port 80), and the two load balancers receive the 5-tuples as follows:
    Table 2 5-tuples received by the two load balancers

    Name

    Protocol

    Source IP Address

    Source Port

    Destination IP Address

    Destination Port

    5-tuple 1-ELB

    TCP

    IP-Client

    100

    12.xx.xx.xx

    80

    5-tuple 2-ELB

    TCP

    IP-Client

    100

    13.xx.xx.xx

    80

  3. Each load balancer forwards the client requests to the same backend server (IP-ECS) over port 90.
  4. Transfer Client IP Address has been enabled for the two TCP listeners, so the source IP address and source port are not changed. In this case, IP-ECS receives the 5-tuples from load balancers as follows:
    Table 3 5-tuples received by IP-ECS

    Name

    Protocol

    Source IP Address

    Source Port

    Destination IP Address

    Destination Port

    5-tuple 1-ECS

    TCP

    IP-Client

    100

    IP-ECS

    90

    5-tuple 2-ECS

    TCP

    IP-Client

    100

    IP-ECS

    90

  5. IP-ECS receives requests 1 and 2 with the same 5-tuple, causing connection failures.

Solution

You can solve the problem by taking the following measures:

  • If the source port is hard coded as a fixed port, change the configuration so that the client can access different load balancers over different fixed ports.
  • If the source port is automatically selected by the OS:
    • Allow the client to resend requests using different source ports to load balancers.
    • Add IP addresses as backend servers if your service is sensitive to reset connections. If IP as a Backend is enabled, ELB uses FullNAT to forward requests and Transfer Client IP Address will not take effect. In this case, the source IP address is changed to an IP address in the backend subnet of the load balancer. If you want to transfer the source IP address of the client, Configuring the TOA Plug-in.
  • If you use different listeners to forward client requests, configure listeners to route requests to different backend servers.

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback