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

DD-WRT Peer to peer performance tweaking

Discussion in 'DD-WRT Firmware' started by Yalla-One, May 5, 2005.

  1. Yalla-One

    Yalla-One Network Guru Member

    I have had frequent problems with my WRT54GS and Sveasoft Alchemy, and am about to move to DD-WRT due to its excellent feedback here on LinksysInfo.org.

    Running a peer 2 peer networking client on my server, my linksys box frequently crawls to a halt, and I found this thread explaining how to fix it on HypereWRT http://www.linksysinfo.org/modules....wtopic&t=847&postdays=0&postorder=asc&start=0

    My question is - will something similar work on DD-WRT as well? Does anyone have any links that outlines how this is done in dd-wrt ?

    The commands to be put into the startup are:

    Code:
    echo 4096 > /proc/sys/net/ipv4/ip_conntrack_max
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    echo 512 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
    echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
    echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh3
    echo "600 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts 
    
    In short, the "600 1800 120 60 ..." line sets the default TCP timeout to 30 minutes, rather than 5 days (Linksys standard) and thus fixes the problem.

    Will this or something equivalent solve the issue in dd-wrt ?

    Thank you for your kind feedback on this - I'm greatly looking forwards to getting rid of Alchemy and getting started on dd-wrt once this is settled!
     
  2. ZORAX

    ZORAX Network Guru Member

    Well, I'm just replying to this post 'cause I have the same doubt.

    I'm currently using HyperWRT and after implementing these TCP connection tracking timeouts my WRT54GS stability and performance has improved a lot when using eMule or BitTornado.

    I am looking forward to installing DD-WRT here to use its advanced features, so the question is simple:

    Is it possible to tweak these settings in DD-WRT too, specially the ones related to the "ip_conntrack_tcp_timeouts" parameter? If so, how would it be done?

    Thanks in advance.
     
  3. kubanczyk

    kubanczyk LI Guru Member

    The file
    /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
    is silently ignored in DD-WRT v23 and later (or on any linux kernel 2.4.23 and later).

    On new kernel use /proc/sys/net/ipv4/netfilter/... files:

    Code:
    /proc/sys/net/ipv4/netfilter/ip_conntrack_generic_timeout
    /proc/sys/net/ipv4/netfilter/ip_conntrack_icmp_timeout
    /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close
    /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close
    /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close_wait
    /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established   # IMPORTANT
    /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_fin_wait
    /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_last_ack
    /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
    /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout_stream        # IMPORTANT
    
    See also http://www.dd-wrt.com/wiki/index.php/Router_Slowdown page.
     

Share This Page