在用兩臺電腦用socket實作雙機通信中為什其中一臺電腦只能做客戶端,已用TCP助手驗過
uj5u.com熱心網友回復:
把防火墻關了uj5u.com熱心網友回復:
要學會用工具,比如抓包uj5u.com熱心網友回復:
TCP tuningLike most modern OSes, Linux now does a good job of auto-tuning the TCP buffers, but the default maximum Linux TCP buffer sizes are still too small. Here are some example sysctl.conf commands for different types of hosts.
For a host with a 10G NIC, optimized for network paths up to 100ms RTT, and for friendlyness to single and parallel stream tools, add this to /etc/sysctl.conf
# allow testing with buffers up to 64MB
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
# increase Linux autotuning TCP buffer limit to 32MB
net.ipv4.tcp_rmem = 4096 87380 33554432
net.ipv4.tcp_wmem = 4096 65536 33554432
# recommended default congestion control is htcp
net.ipv4.tcp_congestion_control=htcp
# recommended for hosts with jumbo frames enabled
net.ipv4.tcp_mtu_probing=1
# recommended for CentOS7+/Debian8+ hosts
net.core.default_qdisc = fq
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/59588.html
標籤:網絡協議與配置
