Hi all, Hi all,
I've been using linux and OpenWRT for a good few years, and any problems I've had have always been solved by someone previously, often on this great forum. However, this one has me stumped, so I thought I'd better ask the experts.
I've got a small LAN at home, consisting of my media pc (Fedora 6), a Dreambox, an Asus WL500g running OpenWRT Kamikaze(7.09, acting as a file server, with the attached usb storage), an old laptop running Slackware (wireless), and a Linksys WRT54GS (also OpenWRT Kamikaze 7.07). This setup worked great (or so I thought) for about 6 months, until I tried to stream video between the devices (specifically between the PC and Dreambox). I originally had the asus acting as a wireless bridge to the main Linksys router, so I put the 2MB/s(ish) transfer rate down to wireless networking problems.
I recently bought a couple of Powerline adapters to try and improve the streaming. They didn't . I was still getting 2MB/s max transfer. So I thought I'd investigate. I've now found that ALL the devices can only communicate with each other at a maximum of about 20mbps. I've got this maximum using both 'iperf' and by netcatting /dev/zero between devices, as well as ftp'ing, scp'ing and NFS'ing between devices.
Even single hops (e,g, PC to router) will only get 2MB/s. I had a go at changing things like TCP window sizes through /proc/sys/..., in line with what I'd found from google, but I get no difference. I think something else is wrong, and I've no idea what it could be. Might cable quality be a factor? I've connected everything to everything, using about 5 different cables, and everything still gives the same 2MB/s max throughput.
I'm sure there must be something stupid I've missed, but for the life of me I can't think what it is.
I've run ethtool on the PC, Asus and Linksys, and it comes up with Connection speed 100mbps for all the devices.
For instance, here's the output from 'ethtool' on the Linksys WRT54GS:
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 30
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)
Link detected: yes
.
Is there anything wrong with the above output?
Also, ifconfig doesn't show anything strange (as far as I can tell). Here's the output from the Asus's ifconfig:
br-lan Link encap:Ethernet HWaddr 00:11:2F:22:48:59
inet addr:192.168.1.137 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:185665 errors:0 dropped:0 overruns:0 frame:0
TX packets:115445 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16629441 (15.8 MiB) TX bytes:113111465 (107.8 MiB)
eth0 Link encap:Ethernet HWaddr 00:11:2F:22:48:59
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:185684 errors:0 dropped:0 overruns:0 frame:0
TX packets:115439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19972741 (19.0 MiB) TX bytes:113685819 (108.4 MiB)
Interrupt:3
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3220 (3.1 KiB) TX bytes:3220 (3.1 KiB)
, and here it is from the PC:
eth0 Link encap:Ethernet HWaddr 00:1B:FC:59:8D:A7
inet addr:192.168.1.175 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe59:8da7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7076937 errors:0 dropped:0 overruns:0 frame:0
TX packets:12208448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3715284439 (3.4 GiB) TX bytes:10671251888 (9.9 GiB)
Interrupt:23 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7681 errors:0 dropped:0 overruns:0 frame:0
TX packets:7681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3031928 (2.8 MiB) TX bytes:3031928 (2.8 MiB)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:192.168.114.1 Bcast:192.168.114.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
.
I've just noticed the vmware virtual network on the PC. Could that make a difference? I don't see why it might affect every other device on the network.
Thanks a lot for reading this overly long post. I hope someone has some ideas.
Cheers
(Last edited by beady on 5 Mar 2008, 17:55)