LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to check network speed conection (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-check-network-speed-conection-930925/)

brokerj 02-28-2012 08:19 AM

Quote:

Originally Posted by miros84 (Post 4610397)
Hello,

In windows you can check network speed conection when you go to network and see speed if it is 54Mps, 100Mps or 1000Mps, but in Linux, where can I check that?

I have Debian squeeze.

good speed

onebuck 02-28-2012 09:46 AM

Member response
 
Hi,
Quote:

Originally Posted by miros84 (Post 4614082)
Code:

eth0      Link encap:Ethernet  HWaddr 00:19:66:bf:9f:e8 
          inet addr:192.168.0.19  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::219:66ff:febf:9fe8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2771 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2706 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2441962 (2.3 MiB)  TX bytes:562001 (548.8 KiB)
          Interrupt:29 Base address:0xe000

Also in information to network it shows speed 100Mb/s. That is 12MB. I can copy almost to 10MB
I changed the cable and I connect the PC to the 1Gigabit Switch with factory cord Cat6. Nothing change. It shows 100Mps again.
When I put ethtool eth0 in terminal, nothing appears.
I dissconect all other cables from the switch and I try only to connect my PC connected to the Switch and the connection appears 100Mps again. Something that I can try?

You are going to be gated by the slowest devices on your LAN. So if you have other systems on the LAN that are 10MB then you are gated by those devices. You could split the LAN so the devices are matched on that sub. Still you will be limited by the bandwidth of your provider.

onebuck 02-28-2012 09:49 AM

Moderator response
 
Hi,
Welcome to LQ!
Quote:

Originally Posted by brokerj (Post 4614103)
good speed

Please re-read LQ Rules;
Quote:

Do not post if you do not have anything constructive to say in the post.

H_TeXMeX_H 02-28-2012 10:32 AM

Try this with only your cable plugged in:

Code:

ethtool -s eth0 speed 1000 duplex full autoneg on

miros84 02-28-2012 02:46 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 4614226)
Try this with only your cable plugged in:

Code:

ethtool -s eth0 speed 1000 duplex full autoneg on

Hi,

I try this command and internet disconected and now I have not internet. I tried the same command changing 1000 with 100 or 10 but the same thing. Now I have not internet. Please provide me a command to fix this problem. What aobut the above command what I got is:

Code:

Settings for eth0:
        Supported ports: [ MII ]
        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 pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 3
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Link detected: yes


H_TeXMeX_H 02-29-2012 06:32 AM

What do you mean you don't have internet ? How have you determined this ? Did it disconnect ?

Just connect again, if this is dsl connection run:

Code:

killall dhcpcd
dhcpcd eth0

as root, or use whatever programs the distro has to connect to the internet.

miros84 03-01-2012 06:56 AM

Well, now I have internet, but speed still is 100Mps, any idea what could be wrong and why I cannot get 1Gigabit?

H_TeXMeX_H 03-01-2012 10:01 AM

It could be many things:

Drivers.
Cables.
Switch.
Router.

I did get gigabit ethernet even with cat 5e cable, maybe it wasn't exactly 1000 Mbps, but close enough.

miros84 03-01-2012 01:54 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 4616039)
It could be many things:

Drivers.
Cables.
Switch.
Router.

I did get gigabit ethernet even with cat 5e cable, maybe it wasn't exactly 1000 Mbps, but close enough.

Router - Well, when I tried to connect the PC with the switch, I disconnected all cables. Included the cable between the switch and the router. I connected only the PC and the router. So, i discard the problem is the router.
Cables - I tryed with 3 different cables Cat 5e and new Cat 6 cable. So, I discard are the cables.
Switch - is new, TP-LINK, but meybe is not good quality. I will try to look another switch.
Drivers - I tried with Debian and Windows 7. if drivers are not good, that menas both OS doesnot install proper lan driver. Meybe the next step is install a PCIe LAN 1Gigabit card to some PCIe and try again.

Well, please tell me your opinion. I see you have expirians and can advice me more things.

Regards

H_TeXMeX_H 03-02-2012 09:45 AM

It seems that that those are the last things to check: Drivers, Switch, Gigabit ethernet card. I can't think of anything else that would cause it to fail. Maybe the card or switch are bad, if you have spares, use them to test.

miros84 03-02-2012 10:07 AM

I gave got it. Now I have 1Gbps conextion.
I just add new PCIe LAN card 1Gps to my computer and now it appears 1Gps in Windows 7 and Debian. Speed jump from 8MB to 20MB when copy files, and I think thatīs because of the PCIe, because it works of 250Mb per second. I read in WIKI about PCIe speed but I am not sure if it is 250Mb (Megabit) or 250MB (megabyte). Because if it is Mb, so I am limited to 30MB by the motherboard. What do you think H_TeXMeX_H?

H_TeXMeX_H 03-02-2012 10:15 AM

It depends on the PCIe version that the card and mobo support. Let's assume 1.0 for an old board, this means 250 MB/s. 1000 Mbits/s (/ 8 bits per byte) = 125 MB/s, so it should be ok.

miros84 03-02-2012 11:06 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 4616921)
It depends on the PCIe version that the card and mobo support. Let's assume 1.0 for an old board, this means 250 MB/s. 1000 Mbits/s (/ 8 bits per byte) = 125 MB/s, so it should be ok.

So you understand that 250 are bytes and not bits?

H_TeXMeX_H 03-02-2012 11:32 AM

Yes, 250 megabytes (MB).

sarath@slashroot.in 02-05-2013 12:51 AM

network speed test
 
Hi..

Speed testing using iperf is a credible method.
Because iperf can be used to modify even the operating system window size while testing the speed. Window size plays a major role in throughput.
Also you can determine the jitter, and data grams dropped using iperf. It works on a client server model.
I recommend going thorough Network Speed test using iperf


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