Results 1 to 4 of 4

Thread: Adding bandwith limiting options to the FTP server

  1. #1
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,307

    Adding bandwith limiting options to the FTP server

    My primary reason for buying the WL-500g is the possibility to attach an USB HD and run a FTP server on it. This would eliminate the need for a computer to be on for 24/7 serving large files to friends.

    The low bandwith provided by the ADSL line requires only very little CPU power to saturate that bandwith. This makes the WL-500g a perfect candidate for the job. So if the WL-500g would be able to do this, there would be no need for an energy hungry PC to be on all the time doing nothing, and the router is on 24/7 anyway.

    But you all know that , so I'll get down to business:
    When large files are being transferred, the entire bandwith is used and other data streams like browsing and games suffer tremendous slowdowns (More info on this is in the README in the WonderShaper package). A QoS solution would be a huge benefit to these types of applications. The possibility of adding some sort of QoS with WonderShaper is allready being discussed in the WonderShaper topic.

    I read that topic so far and the usefullness of WonderShaper is obvious but there may be one drawback though. The code size is (still) so large that it has to be run from the external storage device which will probably be very slow. To implement WonderShaper in a neat way there's probably a lot of work to be done here (No flame intended at all!).

    Antiloop pointed me to the source code of the FTP server used in the router (Stupid-FTPd). So when I reviewed this code I thought it might be possible to add some simple bandwith limitation stuff to it. This would bloat the code very little so it could still be a part of the firmware and run from the onboard RAM.

    I am an C/C++ programmer in Industrial Automation and I write cross-platform code for semi-embedded Windows/Linux applications. So this should not be a very difficult task, however the compiling and testing using Linux is . I don't have much experience with Linux other then some Debian configuration and KDeveloper. If I'm going to do some customizing here, I will certainly need some help with this.

    So, any comments on this? Do you guys like the idea or should I just wait for WonderShaper to be implemented?

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Any help on porting/programing/patching are greatly appricated.
    As for stupid-ftpd. In my opinion we should purge it out from wl500g and replace it with something robust like vs-ftpd. The problem is size. vs-ftpd contains traffic management things.

  3. #3
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,307
    I've been looking at vs-ftpd and it seems to require PAM (Pluggable Authentication Modules for Linux). Is this supported by the Linux version running on the router?

    /edit:
    Ok, the above was premature. When PAM is not available to the system, the application falls back to 'shadow' passwords it seems.

    What do you mean with the size being a problem? According to Debian an installed mipsel package takes about 360k. Is this too much?
    Last edited by Styno; 13-04-2004 at 16:38.

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    If you intend to replace the built-in ftp server then the answer is "size does matter". Current firmware already occupies 95% of flash (maximum firmware size is 0x3a000 bytes).

Similar Threads

  1. bandwidth limiting ftp server
    By Royan in forum WL-500g Q&A
    Replies: 7
    Last Post: 09-06-2006, 13:49
  2. WL300g Adding USB port possible?
    By miraculix in forum WL-300g Q&A
    Replies: 0
    Last Post: 19-05-2005, 06:57
  3. Any options left?
    By auduny in forum WL-500g Q&A
    Replies: 7
    Last Post: 24-03-2005, 20:16
  4. Where can I put the VCI/VPI options?
    By Downloads4u.nl in forum WL-500g Q&A
    Replies: 1
    Last Post: 15-07-2004, 21:48
  5. Customized firmware: how to edit PPTP connection options
    By MajleK in forum WL-500g Custom Development
    Replies: 9
    Last Post: 10-01-2004, 14:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •