How to test your internet connection speed

Asalam o alikum brothers/sisters today we will learn, How we can check the speed of our Internet connection.
We will use an online speed test server (eg. speedtest.net) to find the speed of our connection.
Speedtest.net operates mainly over TCP testing with a HTTP fallback for maximum compatibility. Speedtest.net measures ping (latency), download speed and upload speed.
Download
- The client establishes multiple connections with the server over port: 8080. The client requests the server to send an initial chunk of data.
- The client calculates the real-time speed of the transfers, then adjusts the chunk size and buffer size based on this calculation to maximize usage of the network connection.
- As the chunks are received by the client, the client will request more chunks throughout the duration of the test.
- During the first half of the test, the client will establish extra connections to the server if it determines additional threads are required to more accurately measure the download speed.
- The test ends once the configured amount of time has been reached.
Upload
- The client establishes multiple connections with the server over the defined port and sends an initial chunk of data.
- The client calculates the real-time speed of the transfers and adjusts the chunk size and buffer size based on it to maximize usage of the network connection, and requests more data.
- As the chunks are received by the server, the client will send more chunks throughout the duration of the test.
- During the first half of the test, the client will establish extra connections to the server if it determines additional threads are required to more accurately measure the upload speed.
- The test ends once the configured amount of time has been reached.