Home > other >  TCP communications
TCP communications

Time:09-22

With two computers implement dual-machine communications with the socket for which a computer can only do the client, already use TCP assistant examination

CodePudding user response:

Turn off the firewall

CodePudding user response:

Learn to use tools, such as caught

CodePudding user response:

TCP tuning
Like 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 marketers types of hosts.

For a host with a 10 g NIC, optimized For network paths up to 100 ms RTT, and For friendlyness to single and parallel stream tools, add this to/etc/sysctl. Conf

# allow testing with buffers of up to 64 MB
Net. Core. Rmem_max=67108864
Net. Core. Wmem_max=67108864
# happens Linux autotuning TCP buffer limit to 32 MB
Net. Ipv4. Tcp_rmem=4096, 87380, 33554432
Net. Ipv4. Tcp_wmem=4096, 65536, 33554432
# it default congestion control is HTCP
Net. Ipv4. Tcp_congestion_control=HTCP
# it for hosts with jumbo frames enabled
Net. Ipv4. Tcp_mtu_probing=1
# it for CentOS7 +/Debian8 + hosts
Net. Core. Default_qdisc=fq