Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to check connectivity / network speed of a VPS???
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to check connectivity / network speed of a VPS???

hybridizedhybridized Member
edited September 2011 in General

As the title suggests, I'd like to know the exact command for Centos 5 which would tell me the internet speed of my VPS. If possible like a command which would run the test by downloading a file but doesn't save it.

Thanks

Comments

  • mail [email protected] ??

    Seriously. That's a setting your provider sets up. You'll have to test it and you're not going to get an exact number every time you run the test.

    to delete it, can't you save the file to /dev/null?

  • How is that a setting? Isn't there a test / benchmark to check how fast my VPS downloads a file from the internet?

  • Something like "wget -O /dev/null http://cachefly.cachefly.net/100mb.test && rm -rf 100mb.test" but I don't want it to save the file it downloads.

  • Which speed are you referring to? The connection it has, the speed of data transferred from foreign servers? The latter depends on the network the provider does not have any access to. The first is something your provider only knows.

    What you only can do is download files and measure the speed via the programm you download files with. But this does not give you any exact data as it depends where you download your stuff from.

  • If you use wget -O /dev/null - http://cachefly.cachefly.net/100mb.test it will not save anything. But again, you are not checking the exact speed of your vps. You are just checking how the speed is for the link between your vps and the server you download from and the servers/routers in between.

  • Wouldn't it be "wget http://cachefly.cachefly.net/100mb.test >> /dev/null" ?

    I can't do a ssh connection from here so I have no way of testing.

  • hybridizedhybridized Member
    edited September 2011

    Well how can I test if my VPS has 10 Mbits or 100 Mbits or even 1 Gbits connection? That's my main question :D You know how many hosts advertise this spec?

  • japonjapon Member
    edited September 2011

    Wouldn't it be "wget http://cachefly.cachefly.net/100mb.test >> /dev/null" ?

    That will first download the file and save it to 100mb.test and then put it to /dev/null.

  • japonjapon Member
    edited September 2011

    Well how can I test if my VPS has 10 Mbits or 100 Mbits or even 1 Gbits connection? That's my main question :D You know how many hosts advertise this spec?

    As stated and explained before you can't do that exactly.

  • hybridizedhybridized Member
    edited September 2011

    But by downloading a file through the above mentioned command and getting a speed like 12 MB/s would give us an idea or no?

  • But again, you are not checking the exact speed of your vps. You are just checking how the speed is for the link between your vps and the server you download from and the servers/routers in between.

  • Hmmm, actually there is a method. Hold on a sec.

  • drmikedrmike Member
    edited September 2011

    I'm looking at this tutorial on how to pull up data about your network connection but I don't see anything about the card's actual speed:

    http://www.cyberciti.biz/faq/howto-configuring-network-interface-cards-on-debian/

    For me though, it does confirm that my network card is eth0. Since I know that, I would be able to do a:

    ethtool eth0 | grep -i speed

    but that's just returning a blank result for me.

    edit: Forgot to give the link for that command:

    http://linuxhelp.blogspot.com/2005/10/find-speed-of-your-ethernet-card-in.html

  • if you know somebody on different node in same dc use wget command with there permission to download that would give you clearer indication of port speed as opposed to wget to different dc.

  • I'm looking at this tutorial on how to pull up data about your network connection but I don't see anything about the card's actual speed

    But the card's speed does not indicate how fast you can download, i.e. I've a 1GBit/s card but my DSL is just 16MBit. It would show 1Gbit/s.

    if you know somebody on different node in same dc use wget command with there permission to download that would give you clearer indication of port speed as opposed to wget to different dc.

    As long as the node is not in use by other customers.

  • drmikedrmike Member
    edited September 2011

    But the card's speed does not indicate how fast you can download

    That you need to ask you host about. If they restrict you to a max speed or a percentage of the available bandwidth, that's a setting that they have done.

    edit: Forgot to mention that it appears that I'm locked out of getting any setting from the eth0 card. i guess that's why it's returning a blank result on the lookups that I'm doing.

  • True but even it were it would give clearer indication then going out of the d/c to pull something in.

  • japonjapon Member
    edited September 2011

    That you need to ask you host about. If they restrict you to a max speed or a percentage of the available bandwidth, that's a setting that they have done.

    That and the fact that you share the node with other customers and the fact that the files you want to download are on a server that shares the line with others plus the fact that the routing might be quite crowded.

    True but even it were it would give clearer indication then going out of the d/c to pull something in.

    Thats right. Because you don't have the hassle with the external routing et al.

  • @drmike

    [root@tiger ~]# ethtool eth0 | grep -i speed
            Speed: 100Mb/s
    [root@tiger ~]# wget -O /dev/null http://216.189.8.153/100mb.test
    --2011-09-08 18:49:15--  http://216.189.8.153/100mb.test
    Connecting to 216.189.8.153:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 104857600 (100M) [application/octet-stream]
    Saving to: `/dev/null'
    
    100%[======================================>] 104,857,600 21.1M/s   in 5.0s    
    
    2011-09-08 18:49:20 (20.0 MB/s) - `/dev/null' saved [104857600/104857600]
    
    [root@tiger ~]# 

    20 MB/s is 160mbps.

  • @dmmcintyre3 what are you running? I'm on Xen and it just goes to the next prompt. When I do a:

    ethtool eth0

    it just comes back with a "Link detected: yes"

  • @hybridized -- the command you're looking for to speedtest but not save the download is:

    wget -O - http://216.189.8.153/100mb.test > /dev/null

    This redirects the downloaded file to sdtout, then captures that output and 'saves' it to /dev/null. The only output will be the download speed.

    Dave

  • @drmike It's my KVM VPS.

  • No, I think they are talking about verify the real link speed of your VPS. And I am afraid that you can't n_n

  • No, I think they are talking about verify the real link speed of your VPS. And I am afraid that you can't

    Rrrright :-)

  • Thanks for the replies guys :)

Sign In or Register to comment.