A developer provisions an Alibaba Cloud Linux ECS instance, configures its networking (ENI, security groups, public IP), and then applies network performance tuning (TCP TIME-WAIT reduction, SMC acceleration, XPS) to prepare it for a high-throughput production workload.
This workflow is required when deploying latency-sensitive, high-throughput microservices or data-processing pipelines on Alibaba Cloud. Developers combine ECS infrastructure provisioning with Alibaba Cloud Linux (Alinux) kernel-level network tuning to maximize packet throughput, minimize TCP connection overhead, and leverage hardware-accelerated inter-process communication for production workloads.
aliyun ecs RunInstances --ImageId aliyun_3_x64_20G_alibase_*.vhd --InstanceType ecs.g7.xlarge --VpcId vpc-xxx --VSwitchId vsw-xxx --SecurityGroupId sg-xxx
aliyun ecs AttachNetworkInterface --InstanceId i-xxx --NetworkInterfaceId eni-xxx aliyun ecs AuthorizeSecurityGroup --SecurityGroupId sg-xxx --IpProtocol tcp --PortRange 8000/9000
aliyun vpc AllocateEipAddress --Bandwidth 100 aliyun vpc AssociateEipAddress --EipId eip-xxx --InstanceId i-xxx
/etc/NetworkManager/conf.d/99-unmanaged-eni.conf:[device-unmanaged]\nmatch-device=interface-name:eth1 systemctl restart NetworkManager
/etc/sysctl.conf:net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_max_tw_buckets = 10000 Apply: sysctl -p
modprobe smc echo "smc" >> /etc/modules-load.d/smc.conf
echo f > /sys/class/net/eth0/queues/tx-0/xps_cpus echo f > /sys/class/net/eth0/queues/tx-1/xps_cpus
ss -s and ethtool -S eth0.The ECS control plane manages the virtualized network boundary: VPC routing, ENI attachment, Security Group filtering, and EIP NAT translation. Inbound traffic traverses the EIP → Security Group → ENI pipeline. Alinux takes over at the guest OS layer, where the tuned network stack (TCP parameters, SMC kernel module, XPS CPU affinity) processes packets directly in kernel space, bypassing standard scheduler bottlenecks before delivering them to the application socket.
aliyun) authenticated with RAM credentialsecs.g7)tcp_tw_reuse=1 without verifying application connection pooling can trigger stale connection reuse and data corruption.ecs.g7se) and matching VPC configurations; loading it on unsupported types silently falls back to TCP.xps_cpus without matching the instance’s vCPU topology causes packet drops and CPU starvation.