Menu

Upload Speeds extremely low on LAN

Help
Andrew
2014-11-11
2015-05-27
  • Andrew

    Andrew - 2014-11-11

    Hey There,

    First off, fantastic product. Really enjoying using it.

    2nd, there is a thread related to this, but since that setup seems quite different, I thought it wise to start a new one. (https://sourceforge.net/p/radiusdesk/discussion/help/thread/1f849cc5/)

    Short: Upload speeds are very slow for LAN clients, but not wireless clients.

    Reproduce: (Only applies to LAN clients, not wifi)

    Try doing a speed test, and the upload part most often fails, download part is fine.
    Upload files to internet server, (ftp and so on).
    Upload files from client on Radius network, to client outside that network (still on the same local LAN)

    Setup:

    KVM Virtual machine manager
    2nd Version of the RADIUSVM
    eth0 on VM is bridged on the KVM machine.
    eth1 on VM is controlled strait by the VM, no bridge.

    Should I post my network config file?

    I think that is all the relevant data for now.

    Long Description:
    The clients on the LAN network do not get good upload speeds, <16b/s. Most things requiring uploading fail. The wifi clients seem un-affected, their upload speeds are good. The LAN clients are connected through a switch to to the server, the wifi hotspot goes through the same switch. Also, the bandwidth throttling effect of the 1024M default profile does not work, on any of the clients (WIFI and LAN). However, the bandwidth throttling of the data-standard profiles works fine. Hopefully that'll give a better clue.

    I suspect my setup, and not a bug, as I have deviated from the Virtual box VM. Once things are working I could write a guide on how to use the libvirt manager for RadiusDESK?

    So, my question is, what the monkey is going on? What data can I provide and look for that'll help solve the issue? I currently have one node, as I'm still setting up, but the network has been running happily, except for the upload issue.

     
  • Andrew

    Andrew - 2014-11-17

    I tried settings things up differently, and for a short while the upload was great. Work as it should, but soon after the upload speed dropped right down to non-existent. So much so, a user on the network has issues loading their gmail.

    I will report back after setting up the new VM, and seeing how that performs.

     
  • Andrew

    Andrew - 2014-11-17

    Right,

    So after setting up the new VM, other that the lovely looking login page, things are exactly the same.

    That is, upload speed is near enough to 0 to be useless, and the issue i mentioned here:

    https://sourceforge.net/p/radiusdesk/discussion/help/thread/44bef879/#1acf

    is still happening. That is, that at start up, the FREE Radius service doesn't start up correctly, but restarting it seems to fix things. Not sure how much of this helps!

    Should I post my network config Dirk?

    Sincerely,
    Andrew

     
  • Dirk van der Walt

    Hi Andrew,

    I was thinking about this issue, and it is most likely to be somewhat related to networking setup / libraries.

    Perhaps a first stab at this will be to remove RADIUS out of the equation and use the chilli_query command to open the connection for the Coova users:

    http://coova.org/CoovaChilli/chilli_query

    Are you still using VirtualBox as the software to run the WM?
    Which settings have to changed around the networking side of things?
    Have you tried then normal recommender settings and do they work / fail.

    Cheers

     
  • Andrew

    Andrew - 2014-11-17

    Hello Dirk,

    I think I should give you a more detailed picture of how I've set things up.

    Let me answer a few questions first:

    1) I'm not using Virtualbox at all. I downloaded the vm, used virtualbox to convert the image to .qed, and I am running the whole guest under Libvirt qemu.

    2) In terms of the VM, I downloaded the new vm today, converted it, and started it up. It worked just as the other one where I changed some settings, but obviously without my custom login page and users. So on your image side, we can say that nothing has been changed.

    3) I original tried using virtual box and the VM worked well. I can't be perfectly sure, but I'm pretty confident that the system worked correctly. I think I'll try re-installing virtual box and trying it to be sure it's my host setting and not something wrong with my hardware or something, once we can be fairly confident I haven't made a simple error with the network stuff.

    In short, I'm pretty confident this is a setup issue. I'd like to pursue setting it up with libvirt, as I feel this is a much nicer option for anyone wanting to use ubuntu server. Granted, the advantages probably aren't Huge.

    SO here I'll start a better description:

    The Host:

    normal desktop hardware, using onboard LAN as eth0, and a simple USB LAN device for eth1. (Not sure if the USB lan device could be the issue. let me know if I should test this specifically.)

    My network config file for the host:

    # The loopback network interface
    auto lo br0 eth0 eth1
    iface lo inet loopback
    
    iface eth0 inet manual
    # The primary network interface
    iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp on
        bridge_maxwait 0
        bridge_fd 0
    
    #iface eth1 inet dhcp
    iface eth1 inet manual
    

    This is a snippet from the xml file for the VM, concerning network interfaces:

    <interface type='direct'>
        <mac address='52:54:00:4f:ee:f2'/>
        <source dev='eth1' mode='bridge'/>
        <model type='rtl8139'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </interface>
    <interface type='bridge'>
        <mac address='52:54:00:86:c5:43'/>
        <source bridge='br0'/>
        <model type='rtl8139'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    

    If those basic settings don't tell us anything, could you point me to a log file I could give some output of maybe?

    Let me know if these settings look good to you and then I'll proceed with other testing.

    I'll also have to have a look at that chilli command you mentioned

    Sincerely,
    Andrew

     
  • Andrew

    Andrew - 2014-11-21

    Hello There again,

    So, I did more tests.

    I tested the hardware its self. I created another vm and simply routed all traffic from eth0 to eth1 and so on, so in effect, it'd be invisible.

    This means traffic went through all the same hardware and drivers before reaching the testing computer. Even libvirt.

    Uploads and downloads where stable and good speed. Uploads specifically where "correct" speeds.

    So, I can only conclude that the radius VM itself contains the issue.

    I'll test the setup with virtual box soon, and see if I can get the thing definitly working on the same hardware iin the same way. If you have any ideas in the meantime, let me know.

    I can also say that there are weird issues where sometimes a computer will be allowed to access the internet without being signed in, though right after being signed in and being kicked.

    Will try that virtual box thing soon.

    andrew

     
  • Andrew

    Andrew - 2014-11-23

    Right.

    So, basically, Issues.

    First off, this is not a setup thing, as far as I can tell.

    Tried using Virtual Box, and there it failed to achieve good upload speeds. Then tried it back on my laptop, on windows, 32bit os, with Virtual Box, and the same thing happened. Default settings in other words.

    So I must not have tested it correctly before hand.

    Also, I found this link. A little old, but its the same behaviour. Except I think I'm only on 100Mb. Maybe.

    http://coova.org/node/5171

    Can anyone please test this?

    We are talking specifically over Wired connection, with some of the default profiles.

    Hope someone gets some new info on this. cause I'm seriously stumped.

    Andrew

     
  • Andrew

    Andrew - 2014-11-23

    http://www.coova.org/node/5109

    So maybe this is a kernel/chilli thing?

    Any ideas?

     
  • Andrew

    Andrew - 2014-11-23

    Here's log file output, in case it's useful.

    This little file is even having issues being uploaded...

     
  • Andrew

    Andrew - 2014-12-16

    Hey, Has anyone been able to test this?

     
  • Andrew

    Andrew - 2015-01-04

    Hey Guys,

    Can anyone else please check the LAN network set-up for slow upload speeds?

    Thanks

     
  • Andrew

    Andrew - 2015-01-25

    So, I've fixed it!!!

    The problem was the drivers i was using for the lan ports. When I went through this post:
    https://sourceforge.net/p/radiusdesk/discussion/help/thread/1f849cc5

    And saw there the drivers issues, I went back and tried different ones.

    I also checked my cables. There was one that wasn't quite standard. But that wasn't the main issue.

    The problem was, as far as I can see, the same as the post above. I had fast eth devices going through a slow eth device, with fast or non-compatible eth drivers for slow eth devices. My VM server was using the onboard device, a faster eth device, and a USB eth device, a slower one. (10/100/1000 and 10/100). The drivers however weren't playing nice.

    After fiddling with drivers, I found I needed to use the "ne2k_pci" driver on both eth devices. Remember I'm using libvirt and qemu. I changed these drivers using the Virtual machine manager, available in the ubuntu software centre.

    After that the upload speeds went to normal.

    I think I want to put together a guide for using radius desk with libvirt and ubuntu server, but I'm not sure when i'll get round to it, so leave me a message here or somewhere if you'd like help before I get there.

    Andrew

     
  • Jonny Baird

    Jonny Baird - 2015-05-27

    Thanks for that.

    Similar thing here - with doubly whammy of, my bad, not noticing dvdwalt user is limited to about 350K.

    I have 2 vm's running on old desktop hardware and all seems very good now - using KVM.

    2 cards using virtio driver (set using virtual machine manager) and 1 using ne2k_pci (the onboard nic), all bridging
    So 3 net cards. One facing internet and other 2 facing their respective LAN's and enforcing the captive portal etc.

    Can max out the internet connection via both vm's now.

    Jonny

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.