Hello,
Thank you for posting in Microsoft Q&A.
Based on the description, I understand your question is related to Ping spikes nearly exactly every 20 seconds.
Open Command Prompt as an administrator. Run the following commands to reset TCP/IP stack.
netsh int ip reset
netsh winsock reset
ipconfig /flushdns
Check there are no physical obstructions or electronic devices causing interference with your Wi-Fi signal. Chang the Wi-Fi channel on your router to a less congested one.
Open Device Manager. Find your network adapter under Network adapters. Right-click and select Properties. Go to the Power Management tab. Uncheck Allow the computer to turn off this device to save power.
Open task manager and check the network usage, if there are background apps consuming excessive bandwidth, try end it and monitor the issue.
Have a nice day.
Best Regards,
Molly
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it