Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a weird problem with a 10/100Mbit-Realtek-NIC (Chip on the card reads "8139D", lspci reports "RTL-8139/8139C/8139C+")
If used in combination with a Supermicro X7SBE, the network card receives about 100Mbit/s, but is only able to transmit around 30Mbit/s. The NIC reports Full Duplex 100Mbit/s.
I have a few of these available for testing, and this behavior is reproducible - but only if used together. Any other NIC (other Realtek, VIA, Intel) will work just fine, as does the 8139D if placed on another board.
What I've done so far:
Looked into IRQ-related stuff. Doesn't seem to be an issue.
Upgraded the BIOS - no change.
Tried tweaking with ethtool. The card only supports very basic stuff like autoneg on/off and fixed speed settings. Changed these settings around a bit - no effect.
Changing PCI parameters. Changing the PCI-Slot. Nothing.
Tried different Kernels / Debian Linux Versions. Nope. (Currently on Squeeze with 3.2.0 bpo)
Tried to use 8139cp instead of 8139too. Didn't work, 8139cp doesn't grab the NIC.
Multiple reboots and smashing my head on the keyboard also didn't help.
I'm at a bit of a loss here, any hints appreciated :>.
not an answer, but have you tried to adjust the settings of the card using mii-tool? I vaguely remember having to use it instead of ethtool with some realtek chipsets. also, have you done a trace with tcpdump to maybe see if packets are getting dropped at the card?
It could be hardware related. Does ifconfig report errors or dropped frames? If the card is connected to a port on a managed switch, check the port statistics for errors.
This may sound silly, but have you tried replacing the network cable? Cable defects are surprisingly common.
This may sound silly, but have you tried replacing the network cable? Cable defects are surprisingly common.
Cable is fine.
Quote:
Originally Posted by psycroptic
i've had to use it on older cards that ethtool wouldn't work with. specifically a linksys lne100tx from ~2000.
mii-tool doesn't have a lot of options though. I could only do what I was already able to do with ethtool.
Quote:
It could be hardware related. Does ifconfig report errors or dropped frames? If the card is connected to a port on a managed switch, check the port statistics for errors.
Everything looks fine. No errors. Got some overruns once, but they weren't reproducible.
Since you're only seeing poor performance with this particular brand and type of NIC, it clearly is related to the hardware or the driver, or how those interact with other components.
Still, it would be interesting to see how it performs with iperf or any similar testing tool, since that kind of test basically excludes absolutely all other hardware, subsystems and drivers as possible problem sources.
Still, it would be interesting to see how it performs with iperf or any similar testing tool, since that kind of test basically excludes absolutely all other hardware, subsystems and drivers as possible problem sources.
iperf confirmed the measured data rates. RX ~95 Mbit, TX ~30Mbit
A -vv tcpdump on the receiving side showed something interesting though: An unusually high amount of incorrect TCP checksums. Currently googling possible reasons.
$ ethtool --show-offload eth0
Offload parameters for eth0:
rx-checksumming: on
tx-checksumming: on
scatter-gather: on
tcp-segmentation-offload: on
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: off
large-receive-offload: off
ntuple-filters: off
receive-hashing: off
Problem: I get an "operation not supported". As posted before, ethtool does have many options, but the Realtek NIC supports only the really basic stuff. How can I change these parameters?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.