Home > Software engineering >  TCP retransmission (Europe)
TCP retransmission (Europe)

Time:10-17

When I do the TCP server, local test 8 or 9 k concurrent no problem, a connection interval to 10 seconds to send a packet, the server to do,
But on the server, not to 4000 or so, the client's package not sent in the past, has been to send TCP retransmission,
Some parameters like the number of open file set up everything, Windows, Linux has not tried (server configuration is better than the local machine), basic also excludes the router,
Client contract send not the past, the network will be a problem, ping what is normal,
Ask for advice

CodePudding user response:

Look at the server processing package with local time on the contrast,

CodePudding user response:

This reason, it is happened to the network congestion, resulting in packet loss, so we will continue to resend, the bandwidth of the local test is better, to bear the connection of 8 or 9 K, every time you send how much data?

CodePudding user response:

you check your server to collect data first if you have any questions?
: LAN and wan, there is a big difference within the local area network (LAN), a package can usually receive the packet, on the wide area network, may need to collect several times, this will likely lead to server data collection part of the anomaly, you will eventually bring trouble TCP stack back pan for you (because the protocol stack if found in the buffer data has not been removed the upper application, then it will discard the rest of the received packet, so the client will keep retransmission desperately).

to check whether the bandwidth is enough?
if it is not the cause of the above (please check carefully, most of the exceptions are the error caused by above), that is about to see whether your bandwidth exports (the client) or entrance (server) is at or close to access rate

build simulation network, to help test questions
if still failed to check the problem, then please build a simulated network to help you find the problem, in the middle can assume that two or three layers of routing, then put your client in the last layer under the routing in the local area network (LAN), your server deployment on the top-level routing, which could maximize simulation of wan environment, appropriate cases, should also add what the speed limit to simulate the real environment,
  • Related