Communications and Wireless
1758663 Members
2147 Online
108874 Solutions
New Discussion юеВ

test Internet bandwidth speed

 
SOLVED
Go to solution
'chris'
Super Advisor

test Internet bandwidth speed

hi

How is the best way to test Internet bandwidth speed?
13 REPLIES 13
Alzhy
Honored Contributor
Solution

Re: test Internet bandwidth speed

From One Linux node to another accross the internet or local internet?

UNIX to UNIX (or Linux) I use:

ftp> put "dd if=/dev/zero bs=1024k count =100" /dev/null


That is pure network testing that does not involve Disk I/O
Hakuna Matata.
Alzhy
Honored Contributor

Re: test Internet bandwidth speed

Correction:

ftp> put "|dd if=/dev/zero bs=1024k count =100" /dev/null
Hakuna Matata.
'chris'
Super Advisor

Re: test Internet bandwidth speed

Thx a lot, but can you pls give some more details what exactly does this command do?
Alzhy
Honored Contributor

Re: test Internet bandwidth speed

It reads from the zero device at a block size of 1MB up to 1000 times for a total of ~ 1GB (1024KB x 1000). Then the stream is written on the destination Linux or UNIX system to a NULL device -- so no DIsk I.O is involved.

I've always used this trick to see if the bandwidth I should be seeing is available -- i.e. to find out if my GigE or 10GbE pipe is working according to spec.

Hakuna Matata.
rick jones
Honored Contributor

Re: test Internet bandwidth speed

It does leave one at the mercy of FTP's selection of socket buffer and thus TCP window size, which can be quite important for "Internet" bandwidth.
there is no rest for the wicked yet the virtuous have no pillows
Alan_152
Honored Contributor

Re: test Internet bandwidth speed

dslreports.com
'chris'
Super Advisor

Re: test Internet bandwidth speed

> Correction:

ftp> put "|dd if=/dev/zero bs=1024k count =100" /dev/null

I've tried on unix and linux and get this error:

unix sco:

ftp> put "|dd if=/dev/zero bs=1024k count =100" /dev/null
local: |dd if=/dev/zero bs=1024k count =100 remote: /dev/null
dd: bad arg: "count"
200 PORT command successful
550 /dev/null: No such file or directory

linux debian:

ftp> put "|dd if=/dev/zero bs=1024k count =100" /dev/null
local: |dd if=/dev/zero bs=1024k count =100 remote: /dev/null
dd: unrecognized operand `count'
Try `dd --help' for more information.
200 PORT command successful
550 /dev/null: No such file or directory
Dennis Handly
Acclaimed Contributor

Re: test Internet bandwidth speed

>dd: bad arg: "count"

Cutting from your command, Alzhy and you shouldn't have a space before the "=".
Reiner  Rottmann
Frequent Advisor

Re: test Internet bandwidth speed

This may also come handy:
http://bwmon.sourceforge.net/