LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2010, 12:15 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
Network speed check


Is there any tool or command in linux using which i can find the speed between 2 machines.

For example:
How would i determine what will be the data transfer rate between two machines (irrespective of nic card speed between two machines)
 
Old 03-10-2010, 12:26 AM   #2
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
If you want to check network interface supported data rate you can use this command

From root or admin:

/sbin/ethtool eth0

and if you want to check the traffic at specific time and you want to save the traffic then its better to configure MRTG

For MRTG support check this:

http://oss.oetiker.ch/mrtg/
 
1 members found this post helpful.
Old 03-10-2010, 01:21 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by sohail0399 View Post
If you want to check network interface supported data rate you can use this command

From root or admin:

/sbin/ethtool eth0

and if you want to check the traffic at specific time and you want to save the traffic then its better to configure MRTG

For MRTG support check this:

http://oss.oetiker.ch/mrtg/
Thanks i will check MRTG .
can u please tell me little about the output of ethtool eth0 command.

I can able to determine followoing things.
i have a eth0 port in my network card whose
Speed is 1000 Mb/s .

Can u tell me the meaning of following terms.
Supports auto-negotiation: Yes
Advertised link modesI think these are different scales available with my nic port? m i correct? r they hardware specific?).
Advertised auto-negotiation: Yes (what is difference between Support and Advertised?)
Port: Twisted Pair
Supports Wake-on: pumbag
Current message level: 0x00000001 (1)
Link detected: yes (I think this means my nic port is enable and ready to transmit data .correct me if i wrong.)


[root@OFSMUW-VS-51 iso_pool]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbag
Wake-on: d
Current message level: 0x00000001 (1)
Link detected: yes
 
Old 03-10-2010, 02:06 AM   #4
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
For the basic info you can also see man page

man ethtool

or can visit the link
http://www.softpanorama.org/Net/Netutils/ethtool.shtml

Advertised auto-negotiation,Transceiver and Supports Wake-on are wide topics for this you have google or study any network book that how devices communicates on different modes and transfer data, may be any other person on this forum can help you.
 
Old 03-10-2010, 10:58 AM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Can you not just ping it?
 
Old 03-11-2010, 12:20 AM   #6
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by jamescondron View Post
Can you not just ping it?
I didnt get you friend.
 
Old 03-11-2010, 04:17 AM   #7
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Try the ping command, as such:
Code:
jc@jcmain:~$ ping 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=0.994 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=1.23 ms
64 bytes from 192.168.1.8: icmp_seq=3 ttl=64 time=1.83 ms
64 bytes from 192.168.1.8: icmp_seq=4 ttl=64 time=4.48 ms
64 bytes from 192.168.1.8: icmp_seq=5 ttl=64 time=0.857 ms
64 bytes from 192.168.1.8: icmp_seq=6 ttl=64 time=0.998 ms
^C
--- 192.168.1.8 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5004ms
rtt min/avg/max/mdev = 0.857/1.733/4.489/1.272 ms
So there you go, we have packet size on the first output line, we have times. Thats a transfer rate. Lots to go on here for speeds (Including how worrying my times are between two local boxes)

Last edited by jamescondron; 03-11-2010 at 04:18 AM. Reason: bad code tags
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check network speed lukeprog Red Hat 5 06-11-2009 12:47 AM
How to check eth0: speed fparodi Linux - Networking 3 05-13-2007 09:23 PM
How to check Modem speed? gmichel Linux - Newbie 1 12-22-2003 01:06 PM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 10:29 PM
Help check speed of a website! DavidPhillips General 6 01-02-2003 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration