Tienda Wifi

Tienda Wifi
CiudadWireless es la tienda Wifi recomendada por elhacker.NET

Entradas Mensuales

Síguenos en:

Canal Oficial Telegram de elhacker.NET Grupo Facebook elhacker.NET Twitter elhacker.NET Canal Youtube elhacker.NET Comunidad Steam: Grupo elhacker.NET Mastodon

Entradas populares

PostHeaderIcon Medir la velocidad conexión en línea de comandos (cmd, terminal)


Speedtest es  uno de los servicios más populares para medir la velocidad de conexión a internet. Pero utiliza Flash. Ahora con este nuevo script escrito en Python  llamado speedtest-cli podemos ejecutarlo y obtener los resultados. sin entorno gráfico, sin GUI, directamente desde la shell.





Si nos interesa medir la velocidad de conexión (velocidad de subida y de bajada) de nuestro servidor dedicado en diferentes puntos del mundo podemos usar speedtest-cli para ver quién tiene mejor peering  y mejores conexiones de las grandes compañías Hosting con datacenter (centro de datos o CPD propio) como: OVHSoftlayer, Leaseweb, online.net, Server4you, Hetzner, una vps de Amazon, o cualquier otro.

Otra herramienta muy parecida podría ser testspeed, un script python disponible en https://github.com/Janhouse/tespeed. Requiere el módulo lxml de python. Éste último script es incluso más completo ya que coge automáticamente los 5 servidores más cercanos

What the script does:

 *  Loads config from speedtest.net (http://speedtest.net/speedtest-config.php).

 *  Gets server list (http://speedtest.net/speedtest-servers.php).

 *  Picks 5 closests servers using the coordinates provides by speedtest.net 
    config and serverlist.

 *  Checks latency for those servers and picks one with the lowest.

 *  Does download speed test and returns results.

 *  Does upload speed test and returns results.

También hay una versión más actualizada y mejorada en php:

http://tech.ivkin.net/wiki/Run_Speedtest_from_command_line

Test de Velocidad usando CloudFlare

Requiere npm

npx speed-cloudflare-cli

Ejemplo resultado: 


Test de Velocidad usando Fast

Utiliza Puppeteer (Chrome)

Descarga y uso (utilización) speedtest-cli

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

$ speedtest-cli -h
usage: speedtest-cli [-h] [--share] [--simple] [--list] [--server SERVER]
                     [--mini MINI] [--version]

Command line interface for testing internet bandwidth using speedtest.net.
--------------------------------------------------------------------------
https://github.com/sivel/speedtest-cli

optional arguments:
  -h, --help       show this help message and exit
  --share          Generate and provide a URL to the speedtest.net share
                   results image
  --simple         Suppress verbose output, only show basic information
  --list           Display a list of speedtest.net servers sorted by distance
  --server SERVER  Specify a server ID to test against
  --mini MINI      URL of the Speedtest Mini server
  --version        Show the version number and exit

Por defecto speedtest-cli elige el servidor más cercano (en este ejemplo Barcelona)

[el-brujo@ns2 ~]$ ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Selecting best server based on ping...
Hosted by CESCA (Barcelona) [3.73 km]: 20.742 ms
Testing download speed........................................
Download: 103.91 Mbit/s
Testing upload speed..................................................
Upload: 86.80 Mbit/s


Pero podemos elegir cualquier servidor de Speedtest de cualquier ciudad o país que nos interese:

./speedtest-cli --list | grep -i barcelona


 1695) Adamo (Barcelona, Spain) [831.22 km]
3466) Vodafone España (Barcelona, Spain) [831.22 km]
2254) CESCA (Barcelona, Spain) [831.22 km]
3816) SEREDNET (Barcelona, Spain) [831.22 km]
Con el ID del servidor de Speedtest (el primer número) podemos efectuar el test de nuevo:

[el-brujo@ns2 ~]$  ./speedtest-cli --server 1695
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Hosted by Adamo (Barcelona) [3.73 km]: 16.61 ms
Testing download speed........................................
Download: 100.89 Mbit/s
Testing upload speed..................................................
Upload: 78.76 Mbit/s

 Listado de  Servidores de Speedtest

Podemos obtener un listado de los servidores de Speedtest en todo el mundo:

 Ejemplos de Resultados Servidores Dedicados

Para hacer el test podemos elegir varios puntos de speedtest en Europa y varios en USA, en America del Norte y del Sur (Sudámerica).

3747 --> Servidor Movistar en Madrid
3863 --> Servidor Orange en Madrid
1901 --> Servidor Fibertel en Buenos Aires (Argentina)
4042 --> Servidor Softlayer en San Jose, CA (USA)
2574 --> ServerCentral (Chicago, IL, United States)
2789 --> Vodafone UK (London, Great Britain) (Muy rápido)
3782 -->  Orange France (Paris) (Muy rápido)
4045 -->  SoftLayer Technologies, Inc. (Amsterdam) (Muy rápido)
1682 --> Telmex (Queretaro, Mexico)


OVH (Servidor Dedicado)

Datacenter: rbx (Roubaix)

Europa

[el-brujo@ns93 el-brujo]$ ./speedtest-cli --server 1889 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list... Testing from OVH Systems (46.105.119.93)...
Hosted by OVH (Roubaix) [212.07 km]: 17.643 ms
Testing download speed........................................
Download: 778.09 Mbit/s
Testing upload speed..................................................
Upload: 586.81 Mbit/s
Share results: http://www.speedtest.net/result/3116297901.png








./speedtest-cli --server 3747 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from OVH Systems (46.105.119.93)...
Hosted by Movistar (Madrid) [1054.11 km]: 17.325 ms
Testing download speed........................................
Download: 112.70 Mbit/s
Testing upload speed..................................................
Upload: 28.03 Mbit/s
Share results: http://www.speedtest.net/result/3116422777.png





./speedtest-cli --server 2574 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from OVH Systems (46.105.119.93)...
Hosted by ServerCentral (Chicago, IL) [6653.60 km]: 20.266 ms
Testing download speed........................................
Download: 22.16 Mbit/s
Testing upload speed..................................................
Upload: 15.20 Mbit/s
Share results: http://www.speedtest.net/result/3116431538.png




Adamo


[el-brujo@ns2 ~]$  ./speedtest-cli --server 3747 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Hosted by Movistar (Madrid) [507.36 km]: 22.57 ms
Testing download speed........................................
Download: 33.49 Mbit/s
Testing upload speed..................................................
Upload: 13.04 Mbit/s
Share results: http://www.speedtest.net/result/3116365488.png

[el-brujo@ns2 ~]$  ./speedtest-cli --server 3863 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Hosted by Orange (Madrid) [507.36 km]: 22.093 ms
Testing download speed........................................
Download: 97.73 Mbit/s
Testing upload speed..................................................
Upload: 85.06 Mbit/s
Share results: http://www.speedtest.net/result/3116368086.png

[el-brujo@ns2 ~]$ ./speedtest-cli --server 1901 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Hosted by Fibertel (Buenos Aires) [10469.28 km]: 23.683 ms
Testing download speed........................................
Download: 13.88 Mbit/s
Testing upload speed..................................................
Upload: 5.96 Mbit/s
Share results: http://www.speedtest.net/result/3116378996.png



[el-brujo@ns2 ~]$ ./speedtest-cli --server 4042 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Hosted by SoftLayer Technologies, Inc. (San Jose, CA) [9583.49 km]: 20.583 ms
Testing download speed........................................
Download: 21.82 Mbit/s
Testing upload speed..................................................
Upload: 13.11 Mbit/s
Share results: http://www.speedtest.net/result/3116391498.png

[el-brujo@ns2 ~]$ ./speedtest-cli --server 2574 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Adamo Telecom Iberia S.A. (91.126.236.36)...
Hosted by ServerCentral (Chicago, IL) [7086.09 km]: 23.365 ms
Testing download speed........................................
Download: 13.66 Mbit/s
Testing upload speed..................................................
Upload: 13.86 Mbit/s
Share results: http://www.speedtest.net/result/3116413702.png



Dinahosting (Servidor administrado)

./speedtest-cli --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from DinaHosting S.L. (82.98.x.x)...
Selecting best server based on ping...
Hosted by Orange (Madrid) [51.98 km]: 17.643 ms
Testing download speed........................................
Download: 93.87 Mbit/s
Testing upload speed..................................................
Upload: 92.37 Mbit/s
Share results: http://www.speedtest.net/result/3116474480.png


./speedtest-cli --server 2574 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from DinaHosting S.L. (82.98..x.x)...
Hosted by ServerCentral (Chicago, IL) [6730.62 km]: 17.007 ms
Testing download speed........................................
Download: 29.81 Mbit/s
Testing upload speed..................................................
Upload: 15.01 Mbit/s
Share results: http://www.speedtest.net/result/3116476737.png


./speedtest-cli --server 2574 --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from DinaHosting S.L. (82.98.x.x)...
Hosted by ServerCentral (Chicago, IL) [6730.62 km]: 19.232 ms
Testing download speed........................................
Download: 31.13 Mbit/s
Testing upload speed..................................................
Upload: 13.72 Mbit/s
Share results: http://www.speedtest.net/result/3116477959.png



Adamo Año 2021
 

Adamo Año 2022



Descarga ficheros grandes para medir la velocidad conexión

Diferentes puntos, diferentes tamaños y diferentes conexiones, ideal para medir la velocidad desde diferentes puntos del mundo.

Listado descargas (ficheros test de 10MB, 100MB, 1000MB, etc, sin contenido)
wget -O /dev/null https://proof.ovh.net/files/10Gb.dat
wget -O /dev/null http://ipv4.bhs.proof.ovh.net/files/10Gio.dat
wget -O /dev/null http://test.atl.ramnode.com/100MB.test
wget -O /dev/null http://test.sea.ramnode.com/100MB.test
wget -O /dev/null http://test.nl.ramnode.com/1000MB.test
wget -O /dev/null http://mirror.internode.on.net/pub/test/1000meg.test
wget -O /dev/null http://109.123.87.183/speedtest.256mb
wget -O /dev/null http://201.163.118.249/speedtest.50mb
wget -O /dev/null http://174.127.120.209/speedtest.256mb
wget -O /dev/null http://speedtest.clt.carohosting.com/500MB.dtf
wget -O /dev/null http://download.thinkbroadband.com/1GB.zip
wget -O /dev/null http://speedtest.london.linode.com/100MB-london.bin
wget -O /dev/null http://speedtest.atlanta.linode.com/100MB-atlanta.bin
wget -O /dev/null http://speedtest.fremont.linode.com/100MB-fremont.bin
wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin
wget -O /dev/null http://test.gorillaservers.com/1gb.bin
wget -O /dev/null http://cachefly.cachefly.net/10mb.test
wget -O /dev/null http://50.23.64.58/downloads/test100.zip
wget -O /dev/null http://speedtest.dal01.softlayer.com/downloads/test100.zip
wget -O /dev/null http://speed.mirror.sptel.com.au/50mb.dat
wget -O /dev/null http://37.46.126.6/100mb.test
wget -O /dev/null http://31.3.153.125/100mb.test
wget -O /dev/null http://79.142.78.123/100mb.test
wget -O /dev/null http://speedtest.tweak.nl/1000mb.bin
wget -O /dev/null http://404672522.r.cdn77.net/design/swf/testfile100.bin
wget -O /dev/null http://793343545.r.cdn77.net/design/swf/testfile100.bin
wget -O /dev/null http://630109321.r.cdn77.net/design/swf/testfile100.bin
wget -O /dev/null http://880046809.r.cdn77.net/design/swf/testfile100.bin
wget -O /dev/null http://60454056.r.cdn77.net/design/swf/testfile100.bin
wget -O /dev/null http://www.as35662.net/10000.log
wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip

También podemos usar la herramienta mtr (My Trace Route) que combina el comando ping con el traceroute para diagnosticar posibles problemas de red:

Enlaces relacionados:

Test de velocidad, Medir y calcular la velocidad conexión a Internet 

  Medir la velocidad DNS en Linux y Windows 

Listado comandos para GNU/Linux

 


0 comentarios :

Publicar un comentario

Los comentarios pueden ser revisados en cualquier momento por los moderadores.

Serán publicados aquellos que cumplan las siguientes condiciones:
- Comentario acorde al contenido del post.
- Prohibido mensajes de tipo SPAM.
- Evite incluir links innecesarios en su comentario.
- Contenidos ofensivos, amenazas e insultos no serán permitidos.

Debe saber que los comentarios de los lectores no reflejan necesariamente la opinión del STAFF.