LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network speed check (http://www.linuxquestions.org/questions/linux-newbie-8/network-speed-check-794361/)

pinga123 03-10-2010 12:15 AM

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)

sohail0399 03-10-2010 12:26 AM

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/

pinga123 03-10-2010 01:21 AM

Quote:

Originally Posted by sohail0399 (Post 3892469)
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 modes:(I 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

sohail0399 03-10-2010 02:06 AM

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.

jamescondron 03-10-2010 10:58 AM

Can you not just ping it?

pinga123 03-11-2010 12:20 AM

Quote:

Originally Posted by jamescondron (Post 3893054)
Can you not just ping it?

I didnt get you friend.

jamescondron 03-11-2010 04:17 AM

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)


All times are GMT -5. The time now is 02:15 PM.