1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Peer to Peer kills the Linksys with too many connections

Discussion in 'Sveasoft Firmware' started by Yalla-One, May 4, 2005.

  1. Yalla-One

    Yalla-One Network Guru Member

    Hardware: Linksys WRT54GS with Alchemy

    I have a dedicated machine that runs my peer2peer networking application (mldonkey, connecting to bitoerrent and edonkey2000 networks) .

    Problem: When downloading/waiting for multiple files, the line becomes 100% saturated even though I only use appr. 10% of my bandwidth. According to P2P resources, this is due to 100s of connections being opened from the P2P Client, and this satuates the NAT table on my Linksys, and also fills the connection tables.

    QUESTION: How many simultaneous connections does the Linksys w/Alchemy support? Will downgrading to Satori help? How do I control this flow in the Linksys box, so that the edonkey2000 program isn't allowed to steal too many connections or too many NAT table entries?

    I assume this is a fairly natural problem - anyone care to share their experiences?
  2. _Shorty

    _Shorty Network Guru Member

  3. Yalla-One

    Yalla-One Network Guru Member

  4. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    Another option is to enable QoS on Alchemy and set the edonkey service to bulk. This should control how much bandwidth is used by P2P. The the thread from _Shorty does seem promising but I don't think you need to change to HyperWRT to get the same results. You should be able to add the script to rc_startup and should work on Alchemy as well.
  5. _Shorty

    _Shorty Network Guru Member

    with satoria/alchemy you can telnet in and issue these commands
    echo 4096 > /proc/sys/net/ipv4/ip_conntrack_max
    sysctl -w net.ipv4.ip_conntrack_tcp_timeouts="1800 3600 120 60 120 120 10 60 30 120"
    but I am not sure if there is a startup script that you could also put them in with satori/alchemy as I haven't tried them extensively yet.
  6. akshay18

    akshay18 Network Guru Member

    can you plz tell me how to enter that info in the alchemy startup script. Where do I find the damn thing? I only see it when I save a backup copy of the settings and there is a file called rc_startup.. but where can I add the code to without backing up and then editting the file and loading the settings again?
  7. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    Go to http://router_ip/Diagnostics.asp and click command shell run button. An new window will open. Paste the code provided in the Commands: windows and then click the "Save startup" button. Wait a few seconds then power off your router. Power it back on and the commands should execute up router initiliazation.
  8. Guyfromhe

    Guyfromhe Network Guru Member

    oh is that where it's hidden, heh... guess I should have read the docs :p I only used Alchemy for 10 mins though :p
  9. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    It takes time to get familiar with what is where. Hell I still get remember all pages from memory.
  10. akshay18

    akshay18 Network Guru Member

    Thanks a lot Disman.. you're a star. :)
  11. akshay18

    akshay18 Network Guru Member


    I have some problems with QoS. I only have a desktop (cable link) and a wireless PC connected to my router. Everything works fine when I have the QoS disabled on my router... but when I enable it, my connection slows down a lot... it takes a long time to even open the router setup pages.

    I used to use HpyerWRT firmware before and the QoS used to work great but then after some time my connection speed slowed down a lot. I could only use one PC at a time for the internet.

    I changed to Alchemy and it worked fine. But as soon as I enabled QoS option, I couldn't even open the router settings pages without resetting my router. So I just left the QoS option off.

    I was told above by Disman above that I could add a certain code in the startup script to improve the connection... I tried adding the code.. but no luck.

    My internet connection is 512kbps cable connection. Is it correct that I add 50kbps for Uplink, and 500kbps for Dnlink on the QoS page??

    I try this and do a speed test but I get a low rating.. if I increase these values to 500kbps for Uplink and 5000kbps for Dnlink.. I get a much higher rating.. but I don't think the QoS distributes the brandwidth evenly between the two PC if I leave this setting.

    Any help would be geatly appreciated.

  12. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    You only gain throughput if you are setting priorities to the type of services. For example, if you want web browsing fast but like to download from ftp while doing it, set it to premium to http and standard to ftp. This will control the amount of bandwidth allocation to the ftp to stop it from taking over the connection. If you are turning on QoS but not setting any priorities, it won't control what service takes precendence over the other.
  13. akshay18

    akshay18 Network Guru Member

    Thanks for the reply.. but I am aware that devices/services need to be given priorities in order for QoS to take effect.. but even so, I get very slow connection speed.

    Here are my settings for QoS:

    My ISP is 512kbps cable.

    Port:               LAN & wLAN
    Uplink kbps:    50
    Dnlink kbps:    500
    Services Priority
    http             Premium
    FTP              Express
    msn             Standard
    bittorrent      Bulk
    MAC Priority
    xx-xx-xx-xx-xx  Premium
    xx-xx-xx-xx-xx  Premium
    Ethernet Port Priority
    Port1   Standard        256K
    Port2   Standard        Disable
    Port3   Standard        Disable
    Port4   Standard        Disable

    When I have QoS disabled.. everything seems to run smoothly on my PC although I experience some slowdown at times but not as much as if I have the QoS off. I am not sure how the internet connection is on the wireless PC connect to the router since I cannot get to it.. but I assume it is good since I see the WLAN light flashing on the router at a fast rate.

    But when I enable the QoS with the above settings, my internet speed dramatically slows down.. I have to wait for minutes just for a page to load.. even the router settings page takes long time to load.

    Please give me advice on best settings.

    My aim is to share the bandwidth between the two PCs I have on my LAN/WLAN equally.. so that we could both share the download rate equally when both PCs are downloading and full rate when only one of them is downloading. Simply setting MAC priorities for both PCs to Premium doesn't work.
  14. precursor

    precursor Network Guru Member

    I have had the same problems with dd-wrt.. what router you using?!


Share This Page