A detection method of man-in-the-middle attack based on the variance of the RTT