To test your connection on Xbox One please follow the steps below:
Move left to the menu and select Settings.
Choose All Settings.
Go to Network → Network Settings.
Select Test network connection.
If there is no error, select Test multiplayer connection.
Test network connection: check if the Xbox One can connect to basic internet features.
Test multiplayer connection: run a test on the connection to the Microsoft servers!