- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to determine the speed of ethernet/network
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 09:48 PM
02-20-2006 09:48 PM
How to determine the speed of ethernet/network
The data transfer rate between the linux servers here is very slow. For example scp to copy a folder from one machine to another machine takes a long time. The scp shows a speed only between 700KB to 1MB per second. How can I improve the speed, please guide me.
Please suggest.
Thanks & Regards,
-GnanaShekar-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 09:54 PM
02-20-2006 09:54 PM
Re: How to determine the speed of ethernet/network
To increase the speed try this:
By default scp uses the Triple-DES to encrypt the data being sent. Using the Blowfish cipher has been shown to increase speed.
$ scp -c blowfish your_file your_username@remotehost:~
Hope you get the desired speed now.
Cheers
Vipul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:11 PM
02-20-2006 10:11 PM
Re: How to determine the speed of ethernet/network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:11 PM
02-20-2006 10:11 PM
Re: How to determine the speed of ethernet/network
With "ethtool" command (http://linux.about.com/od/commands/l/blcmdl8_ethtool.htm?terms=multicast+port) you can check/set NIC parameters.
BTW, what is your network environment? - hubs, switchs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:19 PM
02-20-2006 10:19 PM
Re: How to determine the speed of ethernet/network
I tried using "scp -c blowfish". The speed shown was as high as 18MB/s for some time. Now it is only around 1.5MB/s to 2.5MB/s.
How do I determine the speed at which ethernet card is working. Once I find out the speed with which the ethernet cards of both the servers are working I can ask the network administrator about the speed of the switch.
Please suggest.
Thanks & Regards,
-GnanaShekar-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:24 PM
02-20-2006 10:24 PM
Re: How to determine the speed of ethernet/network
Find below the output of ethtool on both the servers.
[root@bangapps root]# 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: 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
-------------------------------------------
[root@bangpcrh5 backup]# 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: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:24 PM
02-20-2006 10:24 PM
Re: How to determine the speed of ethernet/network
To determine speed of NIC give the following command:
# mii-tool
to get the output:
eth0: negotiated 100baseTx-FD, link ok
you can change the settings of the NIC using mii-tool as well.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:34 PM
02-20-2006 10:34 PM
Re: How to determine the speed of ethernet/network
Do you get any input/output errors or collisions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:34 PM
02-20-2006 10:34 PM
Re: How to determine the speed of ethernet/network
Find below the output of mii-tool on both the servers.
[root@bangapps root]# mii-tool eth0
eth0: negotiated flow-control, link ok
[root@bangpcrh5 backup]# mii-tool eth0
eth0: negotiated, link ok
Regards,
-GnanaShekar-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:39 PM
02-20-2006 10:39 PM
Re: How to determine the speed of ethernet/network
Force the speed on NIC as 100 Mbps and Full duplex:
use the command:
mii-tool --force=100baseTx-FD eth0
Cheers
Vipul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:51 PM
02-20-2006 10:51 PM
Re: How to determine the speed of ethernet/network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 11:07 PM
02-20-2006 11:07 PM
Re: How to determine the speed of ethernet/network
As you have a gig card dont use mii-tool use:
the foll command:
ethtool speed 1000 duplex full autoneg off
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 11:46 PM
02-20-2006 11:46 PM
Re: How to determine the speed of ethernet/network
[root@bangpcrh5 backup]# ethtool -s eth0 speed 1000 duplex full autoneg off
[root@bangpcrh5 backup]# scp -r bangapps:/backup/* .
root@bangapps's password:
drai_290905.tgz 100% 53MB 17.5MB/s 00:03
kvarghes.tgz 100% 191 0.2KB/s 00:00
aabraham_290905.tgz 57% 2062MB 1.8MB/s 14:36 ETA
----------------------------------------
If you see from the above output... the scp starts with 17.5MB/s but soon drops to 1.8MB/s... See what happed a few minutes later...
----------------------------------------
[root@bangpcrh5 backup]# scp -r bangapps:/backup/* .
root@bangapps's password:
drai_290905.tgz 100% 53MB 17.5MB/s 00:03
kvarghes.tgz 100% 191 0.2KB/s 00:00
aabraham_290905.tgz 62% 2261MB 397.9KB/s 58:11 ETA
---------------------------------------
By the way, why should i turn off autonegotiation?
Please suggest,
Thanks & Regards,
-GnanaShekar-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 11:51 PM
02-20-2006 11:51 PM
Re: How to determine the speed of ethernet/network
You can view packet trasaction with,
# netstat -ivn
For tuning you have to see the tcp parameters.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 12:42 AM
02-21-2006 12:42 AM
Re: How to determine the speed of ethernet/network
Find below the output of netstat -i on both the servers. The RX-ERR/TX-ERR,RX-DRP/TX-DRP & RX-OVR/TX-OVR are 0.
[root@bangapps root]# netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 1332579 0 0 0 204 0 0 0 BMRU
eth1 1500 0 20730287 0 0 0 20015587 0 0 0 BMRU
lo 16436 0 11447 0 0 0 11447 0 0 0 LRU
[root@bangpcrh5 backup]# netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 32925745 0 0 0 27987878 0 0 0 BMRU
lo 16436 0 14793546 0 0 0 14793546 0 0 0 LRU
Regards,
-GnanaShekar-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 01:57 AM
02-21-2006 01:57 AM
Re: How to determine the speed of ethernet/network
What is the performance if you set to 100 MB full duplex instead of 1000?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 08:02 AM
02-21-2006 08:02 AM
Re: How to determine the speed of ethernet/network
- what is your linux distro/version? do you use the latest recommended updates?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 10:07 AM
02-23-2006 10:07 AM
Re: How to determine the speed of ethernet/network
IMHO, it's more likely, you have some resource constraint on the receiving server - CPU, memory, disk, or congestion from other sources.
What makes me think this is that it appears that smaller files go "faster", and the variable behavior of the larger transfers.
So, monitor the receiving server (using something like "sar") to try and determine what might be a constraint.
...also, a simple check for connection problems such as lost packets would be to use "ping".
Good luck,
Vince