When I went to work today, I opened wechat and saw XXX project group. The customer sent a picture to the group

Just these eight big words, “System interface request timed out”. Excuse me everyone, you see these eight words, can think of what causes?

  • First look for their own problems, back-end code that part of the function is not a long time to execute?

I asked the customer, many pages have this problem, brand management list will report this error

  • Then find the customer problem, is the customer side bandwidth is relatively slow

Just query a list, want some bandwidth, self-denial is gone

  • Is the customer network unstable, network delay

With the following network test, the problem is solved

Network stability test

First, ping the server computer from the client’s computer for several times. If the request times out, it indicates that the client’s network is unstable.

Ping 14.215.177.39Copy the code

Open the speed measurement website, www.speedtest.cn/, and test network jitter

The figure below is our company’s computer test, there is no problem, the network jitter of the customer’s computer is more than 200 /ms

Network jitter:

On the net, the delay in the network refers to the delay time that information goes through from sending to receiving, which is generally composed of transmission delay and processing delay. Jitter is the difference between the maximum delay and the minimum delay. For example, if the maximum delay is 20 ms and the minimum delay is 5 ms, network jitter is 15 ms, which indicates the stability of a network.

Network latency

  • Normal condition: 1-60 ms

  • General condition: 61-90 ms

  • Poor: 91-120 ms

  • Poor: more than 120 ms

conclusion

Sometimes it’s not necessarily our code, it’s the customer.

reference

What is network jitter

Don’t shake, OK? Operating system jitter, network jitter and delay, function jitter and throttling