Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Cómputo
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Redes
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
Gestión y gobernanza
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
Cloud Operations Center
Resource Governance Center
Migración
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
Análisis
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
IoT
IoT Device Access
Otros
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Seguridad y cumplimiento
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Servicios multimedia
Media Processing Center
Video On Demand
Live
SparkRTC
Almacenamiento
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Contenedores
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Bases de datos
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
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Aplicaciones empresariales
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Data Lake Factory
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Distribución de contenido y cómputo de borde
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Soluciones
SAP Cloud
High Performance Computing
Servicios para desarrolladores
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
Cloud Application Engine
aPaaS MacroVerse
KooPhone
KooDrive
En esta página
Centro de ayuda/ Elastic Cloud Server/ Preguntas frecuentes/ Network Configurations/ Website or Application Access Failures/ ¿Por qué he visto "Invalid argument" durante un acceso a un ECS de Linux?

¿Por qué he visto "Invalid argument" durante un acceso a un ECS de Linux?

Actualización más reciente 2023-08-08 GMT+08:00

Síntomas

  1. Cuando un ECS de Linux envía una solicitud a un servidor de la misma subred, el servidor ha recibido la solicitud pero no devuelve una respuesta. Cuando el servidor hace ping al cliente, aparece el mensaje "sendmsg: Invalid argument" (Argumento no válido).
    64 bytes from 192.168.0.54: icmp_seq=120 ttl=64 time=0.064 ms
    64 bytes from 192.168.0.54: icmp_seq=122 ttl=64 time=0.071 ms
    ping: sendmsg: Invalid argument
    ping: sendmsg: Invalid argument
    ping: sendmsg: Invalid argument
  2. "Neighbor table overflow" se muestra en el archivo de log /var/log/messages o en la salida del comando dmesg de un ECS de Linux.
    [21208.317370] neighbour: ndisc_cache: neighbor table overflow!
    [21208.317425] neighbour: ndisc_cache: neighbor table overflow!
    [21208.317473] neighbour: ndisc_cache: neighbor table overflow!
    [21208.317501] neighbour: ndisc_cache: neighbor table overflow!

Causa raíz

La tabla Neighbour hace referencia a la caché ARP. Cuando la tabla Neighbour se desborda, la tabla ARP está llena y rechazará las conexiones.

Puede ejecutar el siguiente comando para comprobar el tamaño máximo de la tabla de caché ARP:

# cat /proc/sys/net/ipv4/neigh/default/gc_thresh3

Compruebe los siguientes parámetros en la tabla de caché ARP:
/proc/sys/net/ipv4/neigh/default/gc_thresh1
/proc/sys/net/ipv4/neigh/default/gc_thresh2
/proc/sys/net/ipv4/neigh/default/gc_thresh3
  • gc_thresh1: El número mínimo de entradas que se deben mantener en la caché ARP. El recolector de basura no se ejecutará si hay menos de este número de entradas en la caché.
  • gc_thresh2: El número máximo suave de entradas que se deben mantener en la caché ARP. El recolector de basura permitirá que el número de entradas exceda esto durante 5 segundos antes de que se realice la recolección.
  • gc_thresh3: El número máximo de entradas a conservar en la caché ARP. El recolector de basura siempre se ejecutará si hay más de este número de entradas en la caché.

Para verificar el número real de entradas ARP IPv4, ejecute el siguiente comando:

# ip -4 neigh show nud all | wc -l

Solución

  1. Asegúrese de que el número de servidores en una subred es menor que el valor default.gc_thresh3.
  2. Ajuste de parámetros: cambie gc_thresh3 a un valor mucho mayor que el número de servidores en el mismo segmento de red de VPC, y asegúrese de que el valor gc_thresh3 es mayor que el valor gc_thresh2 y el valor gc_thresh2 es mayor que el valor gc_thresh1.

    Por ejemplo, si una subred tiene una máscara de 20 bits, la red puede alojar un máximo de 4,096 servidores. El valor default.gc_thresh3 de este segmento de red debe ser un valor mucho mayor que 4,096.

    Efectivo temporal:
    # sysctl -w net.ipv4.neigh.default.gc_thresh1=2048
    # sysctl -w net.ipv4.neigh.default.gc_thresh2=4096
    # sysctl -w net.ipv4.neigh.default.gc_thresh3=8192

    Efectivo siempre:

    Agregue el siguiente contenido al archivo /etc/sysctl.conf:
    net.ipv4.neigh.default.gc_thresh1 = 2048
    net.ipv4.neigh.default.gc_thresh2 = 4096
    net.ipv4.neigh.default.gc_thresh3 = 8192
    Agregue la configuración de IPv6 si es necesario:
    net.ipv6.neigh.default.gc_thresh1 = 2048
    net.ipv6.neigh.default.gc_thresh2 = 4096
    net.ipv6.neigh.default.gc_thresh3 = 8192

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Comentarios

Comentarios

Comentarios

0/500

Seleccionar contenido

Enviar el contenido seleccionado con los comentarios