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

DHCP Lease time and dropping connection.

Discussion in 'Tomato Firmware' started by Jaidee, Jul 12, 2007.

  1. Jaidee

    Jaidee LI Guru Member

    Hey folks,

    I really hope someone can shed some light on this, as it's driving me crazy, and has been for weeks now.

    I've got a PPPoA connection only, and I'm using a D-Link DSL-300T as a modem connected by ethernet to the WAN port of my Buffalo WHR54GS. I've also tried the newer DSL-320T modem, and the AOpen firmware on it, but no better.

    Here's how it's set up. DHCP needs to be turned on on the modem in order for the WAN IP (62.3.228.92) to get forwarded correctly. If I don't do this, the router just sits there with 0.0.0.0 Even though my WAN IP is static, if I set it to static IP in the tomato firmware and set the WAN IP to 62.3.228.92, I can't get online.

    So, I set the router to get ip from DHCP (Auto), and it does, it gets 62.3.228.92 from the modem. Great. Default lease time on the modem is only 60 secs, and after a few minutes (or even seconds) I'm suddenly unable to browse the web. So, I think, well, it'sa static IP, so I'll just set the lease time on the modem to a day. Nope, still stops working.

    So I log into the router and hit "renew lease", it renews it, and we're back online! But I'm constantly having to click "renew lease" every time it stops working! It was the same with DD-WRT!

    Please help me, I'm at the end of my tether.

    Jonathan.
     
  2. mstombs

    mstombs Network Guru Member

    I don't know about Aopen software but will have a look if you could pass on details, but this is a typical problem with Half-Bridge or D-Link zipb mode. The only 3rd party firmware I know of for the DSL32OT is Routertech (which only has an experimental half bridge script). A short lease time is generally used with half-bridge as its the only way a new IP address can be communicated. You should be able to extend the lease time on the modem to router dhcp if your IP is truly static, but watch out for strange Gateway IP addresses - the router may get the same IP address as gateway in zipb mode which gives problems with arp table filling (Tomato device list). You should also check that the the zipb mode passes both ISP DNS server addresses to the router - the DSL320T firmware I looked at only passed one.
     
  3. Jaidee

    Jaidee LI Guru Member

    I've had a looka round but I've seen nothing which indicates Routertech firmware is compatible with this router, other than a couple of forum posts. Could you point me to the firmware and particularly this half-bridge script please?

    Also, how can I change which mode (Half-Bridge or zipb) mode I'm running in? Shall I just sod it and get a Linksys modem?
     
  4. mstombs

    mstombs Network Guru Member

    Here's an example of a thread that suggests a user has the 2.2 version of the Routertech firmware running on a DSL320T.

    http://www.routertech.org/viewtopic.php?t=1157&highlight=dsl320t

    My ADSL2MUE is so similar to a DSL320T it can run the D-Link zipb firmware, the reverse not necessarily true because the 2MUE has double the flash/ram I believe.

    The half-bridge script (which runs fine for me - but I wrote it!) is in the latest version 2.3, with documentation in this thread

    http://www.routertech.org/viewtopic.php?t=1189&start=0&postdays=0&postorder=asc&highlight=

    You have to register on the site to be able to download the correct version which should be suitable for a 1 port non-wireless pspboot? router.

    I am bit concerned the original problems I experienced - similar to those here

    http://www.csc.liv.ac.uk/~greg/projects/dlink.html

    are the same as yours - have you tried the Tomato switch "Reduce Packet Size" which may solve your immediate problem!

    http://www.polarcloud.com/tomatofaq#why_cant_my_router_get_an_ip_a
     
  5. Jaidee

    Jaidee LI Guru Member

    First of all, let me just say thankyou. It seems that you are the most active person for solving this problem on the entire internet.

    I have reached an interesting point since I last posted. I've found that by:
    running the AOpen firmware (which is far more comprehensive) and
    disabling the DHCP server on the modem,
    setting its IP to 192.168.0.1,
    setting WAN side on router to static at 192.168.0.2 with gateway 192.168.0.1, and setting LAN side of router to 192.168.1.100 with DHCP allocating from router in the range 192.168.1.50-99,

    I can now get online, with stability being tested. As the router is not getting the WAN side IP, I don't think I'll get the same issue.

    Question - I don't know what the method I'm using is called. What is it? half-bridge? Double NAT?

    If I still have issues I'm going to give your script a try.

    Thanks again.
     
  6. Jaidee

    Jaidee LI Guru Member

    Quick bump as for some reason the thread didn't log me as the last to post.
     
  7. ifican

    ifican Network Guru Member

    Yes its double nat but it should work fine overall. Looking at what mstombs said though, it appears the issue is with the half-bridge mode and since you are no longer using half-bridge mode i would suspect that your problems are no longer present.
     
  8. mstombs

    mstombs Network Guru Member

    Double nat does work, but you should probably put the router in the dmz of the modem if you want to enable external connections and/or upnp on the router. You also need the nat connection settings in both router and modem to optimized for p2p - so watch out for problems with vpn/ voip apps - both devices will be maintaining connection tracking tables (two chances for problems!).

    I didn't find a link for Aopen firmware for Ti ar7 modems - is the GPL source also available?
     
  9. Jaidee

    Jaidee LI Guru Member

    Right folks, double NAT has been thrown out of the window as it made torrenting impossible - too many connections tracked on the DSL-320T.

    But I have news! Good news! I've got Routertech 2.3 firmware running on the DSL-320T! Here's what I'm doing now:

    Routertech 2.3 firmware installed on the DSL-320T.
    DSL-320T reset to factory settings.
    New connection made on DSL-320T to my ISP, NAT and Firewall unticked.
    hostname of LAN config changed to pppHB
    Save All Settings - done.
    Run pppHB.sh from web gui (also runs from telnet, but I was scared that the script would halt when telnet disconnected - made no difference)
    Script runs fine.
    Connect modem to PC only - not router yet!
    Assign PC to get IP from DHCP - modem provides WAN IP, netmask, gatway and DNS all correctly! Hooray!
    Can browse web from PC! Hooray!

    But:

    Connect modem to router - in this case, tomato firmware.
    Router set to DHCP on WAN side, allocates 192.168.0.* on LAN side.
    Router gets WAN IP address correctly - Hooray!
    Still cannot browse internet from any PC behind the router - router cannot ping web addresses.

    Hope you can help, I think I'm really close now. It's so strange that my PC when directly connected is fine, but the router isn't.
     
  10. mstombs

    mstombs Network Guru Member

    Wow - your the first to try - or at least give feedback! I think I covered this in the readme, Hyperwrt and Thibor need help to cope with handling the IP address and Gateway being in different networks. You can either force a shorter netmask in the modem or use a firewall script in Hyperwrt/ Tomato.

    http://www.linksysinfo.org/forums/showthread.php?t=52937
     
  11. Jaidee

    Jaidee LI Guru Member

    Holy crap.

    It's working.Seems a little intermittent at the moment - some pages are taking a while to load from the PCs behind the router. Is there anything else I can look at?

    OK, so a couple of final questions - the pppHB.sh script - is there a way to automate it so that it will run every time the modem boots? And finally, is there only one NAT now happening, and is that on the router?
     
  12. mstombs

    mstombs Network Guru Member

    Sorry to disappoint you neither Tomato nor Routertech are 100% open - both have binary modules from the chipset supplier, more in RT which has to overcome the Ti "core logic" and the RT team have added a few more of their own non-GPL source utilities. Openwrt attempts to be more open, but even they can't avoid all the Broadcom/ Ti binaries!

    Re pages loading. There may be an issue to do with basic TCP/IP settings in the modem - when you turn off firewall some usual iptables command to do with "clamp to pmtu" gets dropped. You may find setting the MTU in the router to lower than 1500 may help (try 1400 then slowly increase). Check this and other TCP/IP settings such as Rwin seen from remote servers using online checkers such as

    http://www.speedguide.net/analyzer.php

    There's a couple of ways to automate the pppHB script in Routertech firmware. You can set an environment variable to start the script on bootup with

    setenv RT_CMD_1 "pppHB.sh &"

    I actually prefer to enable NAT and Firewall in the DSL connection properties by default, and then use the Routertech autoexec function to only switch to half-bridge mode when an internet connection established (ie successfully pings google) and time set, dyndns updated etc.

    setenv autoexec.sh "pppHB.sh &"

    (the script turns off NAT and firewall using similar commands to the web interface)

    [I'm a little unsure about the "&", this is intended to allow the calling function to exit with the script running detached. There was a problem with it getting missed, then a series of init and calling programs never exit. I will experiment and update here - may need variants of "\&" ]

    I currently do neither and link to another script stored on the modem which sends an email and ends with "pppHB.sh &"... I don't think you have enough spare flash on the DSL320T to add a non-volatile directory to do this?

    With no NAT on the modem you do now only have Network Address Translation on the router, and can play with No of connections/timeouts through the Tomato web interface. However Linux is still doing some form of connection tracking in the modem I believe, over on the RT forums I am waiting for advice for any extra Linux iptables commands to be put in a firewall.sh to be called when WAN IP changes. I can see other uses for an incoming firewall on the modem - but note that the script disables all modem firewalling at present.
     
  13. Jaidee

    Jaidee LI Guru Member

    Just a quick reply to update: I've just switched the router to have a static WAN IP address, and it seems to be running a little smoother.

    Here are my results from the speed test:

    « SpeedGuide.net TCP Analyzer Results »
    Tested on: 07.16.2007 12:57
    IP address: 62.3.xxx.xx

    TCP options string: 0204059e01010402
    MSS: 1438
    MTU: 1478
    TCP Window: 65535 (NOT multiple of MSS)
    RWIN Scaling: 0
    Unscaled RWIN : 65535
    Reccomended RWINs: 63272, 126544, 253088, 506176
    BDP limit (200ms): 2621kbps (328KBytes/s)
    BDP limit (500ms): 1049kbps (131KBytes/s)
    MTU Discovery: ON
    TTL: 49
    Timestamps: OFF
    SACKs: ON
    IP ToS: 00000000 (0)

    I'll let you know about the new startup scripts as I try them, but I don't think I've got any spare flash at all. probably going to go with your second method.
     
  14. mstombs

    mstombs Network Guru Member

    If static IP improves things that suggests there is a real performance hit from the 30 second dhcp renews - still looking for a way round this with my dynamic IP. You could probably also just use a startup or WANUP script to set the route to the modem to avoid the need for the firewall script (not sure how this works with static IP?).
    You also have a choice of gateway to define the modem IP address or ISP gateway (if that is static).

    I must look into MSS/MTU problems some more, some time - I don't seem to have a problem using MTU =1500 for both cable and my PPPOA DSL, possibly because the auto MTU discovery works, others on the same UK DSL ISP have to use 1432...

    Some references also say WINXP auto adjusts the TCP/IP settings - I've always had to play with DrTCP utility to tweak them to get the most out of my connection - which I am sure the above site still recommends you to do.
     
  15. Jaidee

    Jaidee LI Guru Member

    Well, I'm currenly veyr happy - speeds are great for http connections, bittorrent is runing at 45kB/s which is about half of what it should be (but I suspect throttling at ISP end) and the whole thing seems pretty stable.

    One thing though - I really am quite clueless when it comes to routes, so I wouldn't know where to start with a script to control the modem route. This would go on the router though, right?
     
  16. mstombs

    mstombs Network Guru Member

    The key to the half bridging for me was the routes, fortunately the version of Linux in the modem is very similar to that in the router so what I learnt applies to both.

    If your gateway never changes, you really only need the following 2 route commands which are always the same.

    GW=$(nvram get wan_gateway)
    route add -host $GW dev vlan1
    route add default gw $GW

    The first just gets the IP address from its nvram storage, the second tells the router where to find the gateway, the third to use that route as the default gateway ie where to send the messages when address not local.

    If the Gateway does change although the IP is constant, you could make the GW the local address of the modem which doesn't change and it "should" work but I cannot test as I don't have a static connection. But if it is working then leave it alone and see how long it lasts! There is a comment on the RT website about some modems with smaller ram struggling and may need a regular ram optimiser - I would hope that in half-bridge mode with most modem router functions turned off it should work fine - let us know!
     
  17. Jaidee

    Jaidee LI Guru Member

    OK, update here:

    I telnet'ed the following command as suggested:

    setenv autoexec.sh "pppHB.sh &"

    and the script now runs great every time I boot the router. Also set firewall and NAT to be on in the GU, and the script does indeed appear to shut them off as desired. Hooray!

    Torrents seem to be rather slow though, after a while dropping to only 4 or 5 kB/s, and sometimes a page fails to load, but works on a refresh. There's something still not quite right.
     
  18. mstombs

    mstombs Network Guru Member

    Can you try a well seeded 'official' torrent such as

    ftp://nero-mirror.com/software/Nero7/7.10.1.0/Nero-7.10.1.0_eng_trial.exe.torrent

    I am downloading with uTorrent at over 200kB/s, peaking at 300kB/s on an 8Meg connection.

    Then log into the modem with telnet and issue the command 'top', I am curious to know how heavily loaded the modem is - mine reports: (ctrl-C to stop monitoring)

    Code:
    Mem: 10640K used, 3516K free, 0K shrd, 1032K buff, 4668K cached
    Load average: 0.08 0.05 0.01  (Status: S=sleeping R=running, W=waiting)
      PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
    20787 root     R        296 20786  5.4  2.0 top
    20785 root     S        200   104  1.0  1.4 utelnetd
      109 root     S       1408   104  0.0  9.9 cm_logic
      104 root     S        672     1  0.0  4.7 cm_pc
    19257 root     S        592   104  0.0  4.1 pppd
      107 root     S        504     1  0.0  3.5 thttpd
    20786 root     S        440 20785  0.0  3.0 sh
      326 root     S        436     1  0.0  3.0 pppHB.sh
      266 root     S        320     1  0.0  2.2 init
        1 root     S        316     0  0.0  2.2 init
      198 root     S        308     1  0.0  2.1 crond
    19301 root     S        296   326  0.0  2.0 udhcpd
    20829 root     S        212   326  0.0  1.4 sleep
        3 root     SWN        0     0  0.0  0.0 ksoftirqd_CPU0
        8 root     SW         0     1  0.0  0.0 mtdblockd
        2 root     SW         0     1  0.0  0.0 keventd
        4 root     SW         0     0  0.0  0.0 kswapd
        5 root     SW         0     0  0.0  0.0 bdflush
        6 root     SW         0     0  0.0  0.0 kupdated
        7 root     SW         0     1  0.0  0.0 cifsoplockd
    I think I have 16MB to start with you will have 8MB.

    To reduce memory usage disable IP Accounting on the modem (defaults to off) and disable the usb module from loading with another env variable, only applied on reboot.

    Code:
    setenv usb_enable no
     
  19. Jaidee

    Jaidee LI Guru Member

    OK, here's my top, looks like the problem is that I'm using up all the memory!

    Code:
    Mem: 6076K used, 212K free, 0K shrd, 88K buff, 944K cached
    Load average: 0.38 0.14 0.04  (Status: S=sleeping R=running, W=waiting)
      PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
       97 root     S        616    92  1.8  9.7 cm_logic
     5008 root     R        196  5007  1.4  3.1 top
     5006 root     S        104    92  1.0  1.6 utelnetd
        4 root     SW         0     0  0.2  0.0 kswapd
       92 root     S        524     1  0.0  8.3 cm_pc
       94 root     S        264     1  0.0  4.1 thttpd
      328 root     S        216   238  0.0  3.4 pppHB.sh
      448 root     S        164   328  0.0  2.6 udhcpd
      298 root     S        160    92  0.0  2.5 pppd
     5029 root     S        156   328  0.0  2.4 sleep
      201 root     S        148     1  0.0  2.3 crond
     5007 root     S        132  5006  0.0  2.0 sh
        1 root     S        124     0  0.0  1.9 init
      238 root     S        108     1  0.0  1.7 autoexec.sh
      266 root     S        104     1  0.0  1.6 init
        7 root     SW         0     1  0.0  0.0 mtdblockd
        3 root     SWN        0     0  0.0  0.0 ksoftirqd_CPU0
        2 root     SW         0     1  0.0  0.0 keventd
        5 root     SW         0     0  0.0  0.0 bdflush
        6 root     SW         0     0  0.0  0.0 kupdated
    
    I'll try and free up the USB memory, will report back.

    (why is it using up so much memory?)

    edit:

    Immediately after a reboot with torrent just kicking in, top gives:

    Code:
    Mem: 5928K used, 360K free, 0K shrd, 32K buff, 1440K cached
    Load average: 0.20 0.14 0.05  (Status: S=sleeping R=running, W=waiting)
      PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
      469 root     R        296   468  0.8  4.6 top
      467 root     S        196    92  0.2  3.1 utelnetd
       97 root     S        748    92  0.0 11.8 cm_logic
       92 root     S        676     1  0.0 10.7 cm_pc
      468 root     S        448   467  0.0  7.1 sh
      330 root     S        416   238  0.0  6.6 pppHB.sh
       94 root     S        412     1  0.0  6.5 thttpd
      238 root     S        340     1  0.0  5.3 autoexec.sh
      299 root     S        296    92  0.0  4.6 pppd
      449 root     S        276   330  0.0  4.3 udhcpd
      199 root     S        256     1  0.0  4.0 crond
        1 root     S        248     0  0.0  3.9 init
      264 root     S        240     1  0.0  3.8 init
      511 root     S        216   330  0.0  3.4 sleep
        7 root     SW         0     1  0.0  0.0 mtdblockd
        4 root     SW         0     0  0.0  0.0 kswapd
        3 root     SWN        0     0  0.0  0.0 ksoftirqd_CPU0
        2 root     SW         0     1  0.0  0.0 keventd
        5 root     SW         0     0  0.0  0.0 bdflush
        6 root     SW         0     0  0.0  0.0 kupdated
    
    Seems that this modem may not have the memory to handle this firmware?
     
  20. mstombs

    mstombs Network Guru Member

    I see that the "&" in the launch command didn't work, autoexec.sh is still there, one way to allow this to die after launching pppHB.sh is to use the combination commands, first creates a file containing the command, second calls it from autoexec.sh:-

    Code:
    setenv RT_CMD_1 "cd /var;echo \"pppHB.sh &\" >hb.sh;chmod +x hb.sh" 
    setenv autoexec.sh /var/hb.sh
    Not too sure about memory - the 'cached' may actually be 'free', just mopping up any available - see how Tomato can report free memory.
     
  21. Jaidee

    Jaidee LI Guru Member

    OK, tried those new env variables and it seems they worked nicely, top now gives immediately after reboot:

    Code:
    Mem: 6084K used, 204K free, 0K shrd, 148K buff, 1636K cached
    Load average: 0.06 0.03 0.00  (Status: S=sleeping R=running, W=waiting)
      PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
      491 root     R        296   490  0.5  4.6 top
      489 root     S        200    92  0.1  3.1 utelnetd
       97 root     S        752    92  0.0 11.9 cm_logic
       92 root     S        692     1  0.0 10.9 cm_pc
      490 root     S        448   489  0.0  7.1 sh
      331 root     S        416     1  0.0  6.6 pppHB.sh
       94 root     S        412     1  0.0  6.5 thttpd
      296 root     S        304    92  0.0  4.8 pppd
      450 root     S        288   331  0.0  4.5 udhcpd
      202 root     S        256     1  0.0  4.0 crond
        1 root     S        248     0  0.0  3.9 init
      268 root     S        244     1  0.0  3.8 init
      488 root     S        216   331  0.0  3.4 sleep
        7 root     SW         0     1  0.0  0.0 mtdblockd
        4 root     SW         0     0  0.0  0.0 kswapd
        3 root     SWN        0     0  0.0  0.0 ksoftirqd_CPU0
        2 root     SW         0     1  0.0  0.0 keventd
        5 root     SW         0     0  0.0  0.0 bdflush
        6 root     SW         0     0  0.0  0.0 kupdated
    
    So, if the memory is not the problem, is there any way I can determine why my torrents are being slowed so dramatically? Even the "official" torrent suggested achieves speeds no greater than 20kB/s (torrent client used is the low footprint uTorrent with uPnP used to provide open ports, which works fine.)

    Going to bed now, so I'll be back in the morning (UK time).
     
  22. mstombs

    mstombs Network Guru Member

    It is also possible to turn off the cron demon in the modem with the command

    cron_disable.sh

    which you are probably not using - can be used to schedule regular logs of DSL properties and/or the memory optimizer.

    but I suggest you also look through this old thread I remember - I had to patch my tcpip.sys a while ago, maybe you now have this problem?

    http://www.linksysinfo.org/forums/showthread.php?t=49801

    The command

    cat /proc/net/ip_conntrack

    does seem to list lots of connections on the router, none on the modem for me.

    netstat -a

    also lists some network links

    There is also an advanced property in uTorrent called "net.max_halfopen" mine is set to 8 default? And protocol encryption "enabled" - but can't believe that can get around modern packet sniffers though.
     
  23. Jaidee

    Jaidee LI Guru Member

    OK, ip_conntrack gives zero results, as expected. :(

    Netstat is a good idea, here's my output without any torrents running:

    Code:
    /var # netstat -a
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 *:www                   *:*                     LISTEN
    tcp        0      0 *:ftp                   *:*                     LISTEN
    tcp        0      0 *:ssh                   *:*                     LISTEN
    tcp        0      0 *:telnet                *:*                     LISTEN
    tcp        0    466 192.168.1.1:telnet      62.3.228.92:1333        ESTABLISHED
    udp        0      0 *:bootps                *:*
    udp        0      0 *:tftp                  *:*
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  6      [ ]         DGRAM                    163    /dev/log
    unix  2      [ ]         DGRAM                    165    /dev/klog
    unix  2      [ ]         DGRAM                    130    /var/tmp/cm_pc.ctl
    unix  2      [ ]         DGRAM                    144    /var/tmp/cm_logic.ctl
    unix  2      [ ]         DGRAM                    21340
    unix  2      [ ]         DGRAM                    11872
    unix  2      [ ]         DGRAM                    1100
    unix  2      [ ]         DGRAM                    265
    unix  2      [ ]         STREAM                   117
    unix  2      [ ]         DGRAM                    116
    
    That seems OK to me, it's just passing everything right through?

    And here's the same after five minutes of a well seeded official torrent:

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 *:www                   *:*                     LISTEN
    tcp        0      0 *:ftp                   *:*                     LISTEN
    tcp        0      0 *:ssh                   *:*                     LISTEN
    tcp        0      0 *:telnet                *:*                     LISTEN
    tcp        0    466 192.168.1.1:telnet      62.3.228.92:1333        ESTABLISHED
    udp        0      0 *:bootps                *:*
    udp        0      0 *:tftp                  *:*
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  6      [ ]         DGRAM                    163    /dev/log
    unix  2      [ ]         DGRAM                    165    /dev/klog
    unix  2      [ ]         DGRAM                    130    /var/tmp/cm_pc.ctl
    unix  2      [ ]         DGRAM                    144    /var/tmp/cm_logic.ctl
    unix  2      [ ]         DGRAM                    21340
    unix  2      [ ]         DGRAM                    11872
    unix  2      [ ]         DGRAM                    1100
    unix  2      [ ]         DGRAM                    265
    unix  2      [ ]         STREAM                   117
    unix  2      [ ]         DGRAM                    116
    
    I should also note that as of this morning, with no reboots of anything but my PC, I'm now getting much better speeds of 70 - 90 kB/s on my torrents (1Meg line) , so I suspect packet sniffing in the evenings. I'm going to ring my ISP (Nildram) and ask them if this is the case, and if it is, I'm switching ISPs. Currently paying over £50 per month for this "feature".

    One point of note - crond won't disable - do I have to reboot?
     
  24. mstombs

    mstombs Network Guru Member

    Yes, that cron disable command just sets another env variable that tells the RT extensions not to load the cron daemon on a reboot.

    I think all ISPs will be now investing in 'traffic management', as they need the high connect speeds for marketting but no-one can afford to provide the maximum theoretical throughput. It's easy to deprioritize P2P traffic by prioritizing the standard known TCP/IP ports (for web email etc) and limiting the number of concurrent connections to your IP (a feature of all P2P apps).
     
  25. Jaidee

    Jaidee LI Guru Member

    How annoying. I remember much happier days, before everybody and their Grandma was online downloading 8 gigs a day of Ainsley Harriot's "Can't cook, won't cook." But I digress.

    I just found that I was in fact getting event 4226, so I've patched that up, and I'm trying a slightly busier torrent to test the new settings. XP SP2 limits connection to 10 per second? That's crazy - I'm glad this is the only machine I use that isn't on Ubuntu. And that won't be the case for much longer!

    Will report back with new speeds.
     
  26. Jaidee

    Jaidee LI Guru Member

    OK, after several hours of leaving the connection active, I'm now getting torrent download speeds of just 1-2kB/s, even on the official Nero torrents.

    Here's top from the modem:

    Code:
    Mem: 6032K used, 256K free, 0K shrd, 96K buff, 1732K cached
    Load average: 0.07 0.03 0.00  (Status: S=sleeping R=running, W=waiting)
      PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
    14663 root     R        296 14662  0.3  4.6 top
    14661 root     S        200    92  0.1  3.1 utelnetd
       97 root     S        740    92  0.0 11.7 cm_logic
       92 root     S        516     1  0.0  8.1 cm_pc
    14662 root     S        448 14661  0.0  7.1 sh
       94 root     S        432     1  0.0  6.8 thttpd
      327 root     S        372     1  0.0  5.9 pppHB.sh
     4175 root     S        348    92  0.0  5.5 pppd
     4220 root     S        276   327  0.0  4.3 udhcpd
        1 root     S        240     0  0.0  3.8 init
      253 root     S        236     1  0.0  3.7 init
    14660 root     S        216   327  0.0  3.4 sleep
        7 root     SW         0     1  0.0  0.0 mtdblockd
        4 root     SW         0     0  0.0  0.0 kswapd
        3 root     SWN        0     0  0.0  0.0 ksoftirqd_CPU0
        2 root     SW         0     1  0.0  0.0 keventd
        6 root     SW         0     0  0.0  0.0 kupdated
        5 root     SW         0     0  0.0  0.0 bdflush
    
    and here's netstat -a

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 *:www                   *:*                     LISTEN
    tcp        0      0 *:ftp                   *:*                     LISTEN
    tcp        0      0 *:ssh                   *:*                     LISTEN
    tcp        0      0 *:telnet                *:*                     LISTEN
    tcp        0    466 192.168.1.1:telnet      62.3.228.92:7680        ESTABLISHED
    udp        0      0 *:bootps                *:*
    udp        0      0 *:tftp                  *:*
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  5      [ ]         DGRAM                    163    /dev/log
    unix  2      [ ]         DGRAM                    165    /dev/klog
    unix  2      [ ]         DGRAM                    130    /var/tmp/cm_pc.ctl
    unix  2      [ ]         DGRAM                    144    /var/tmp/cm_logic.ctl
    unix  2      [ ]         DGRAM                    9613
    unix  2      [ ]         DGRAM                    3523
    unix  2      [ ]         DGRAM                    912
    unix  2      [ ]         STREAM                   117
    unix  2      [ ]         DGRAM                    116
    
    conntrack reports just 98 connections, and I have QoS enabled and defaults selected, 50% of connections are of the "lowest" category.

    I'm going to restart the modem now, and see what difference it makes.
     
  27. mstombs

    mstombs Network Guru Member

    But it is 5pm, peak time for ISP traffic? How good is your connection to the net mine is pretty good at the moment, jave you seen

    http://www.nildram.net/faqs/question/traffic-management-faqs

    Code:
    C:\>tracert www.google.com
    
    Tracing route to www.l.google.com [66.102.9.99]
    over a maximum of 30 hops:
    
      1    <1 ms    <1 ms    <1 ms  wrt54gs.lan [192.168.1.1]
      2     1 ms     1 ms     1 ms  192.168.100.1 <- ADSL2MUE
      3    13 ms    13 ms    13 ms  89.243.64.1  <- ISP Gateway
      4    13 ms    13 ms    12 ms  62.24.131.141
      5    13 ms    14 ms    12 ms  gig-10-1-rtr001.thn.opaltelecom.net [62.24.254.42]
      6    13 ms    14 ms    14 ms  gig-5-1-rtr001.hex.opaltelecom.net [62.24.254.46]
      7    13 ms    13 ms    13 ms  gig0-1-rtr002.hex.opaltelecom.net [62.24.196.38]
      8    14 ms    13 ms    14 ms  195.66.226.125
      9    14 ms    56 ms    15 ms  72.14.238.242
     10    25 ms    25 ms    24 ms  209.85.250.216
     11    25 ms    25 ms    25 ms  72.14.232.233
     12    25 ms    25 ms    25 ms  64.233.174.187
     13    33 ms    34 ms    29 ms  64.233.174.14
     14    26 ms    26 ms    25 ms  lm-in-f99.google.com [66.102.9.99]
    
    Trace complete.
     
  28. Jaidee

    Jaidee LI Guru Member

    I guess I'll have to do a traceroute later on today for best results, but I think you're right, I was under the impression that my business line was unaffected by traffic shaping, but this clearly isn't the case. Many thanks for pointing this out.

    I've ordered a new ISP connection which has no shaping on the line and a 300GB allowance from Pulsegaming, spoke to them yesterday and they seem very cool, so we shall see how that affects my speeds.
     
  29. mstombs

    mstombs Network Guru Member

    And if your new IP allows PPPOE you can put the modem into full bridge mode and avoid the complication of half-bridge mode...
     
  30. Jaidee

    Jaidee LI Guru Member

    Just to report that everything is working fine still, the slow torrents are simply due to ISP throttling, my network is finally a work of art. Will report back once I get the new ISP next Friday and I'll let you know the speeds.
     

Share This Page