High ping for the first 20 seconds after logging in

I have been getting high pings up to 20 seconds for that player after the player logs in. for me my normal ping is 1 and it’s like 600 for about 20 seconds then normal play any idea on whats causing this. It happens on all spigot servers and if you were to switch servers also.